/*! For license information please see 3822.3469d88d.js.LICENSE.txt */ (self.webpackChunkapp=self.webpackChunkapp||[]).push([[3822],{9109:function(module,__unused_webpack_exports,__webpack_require__){function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function _objectSpread(e){for(var t=1;t(()=>{"use strict";var __webpack_modules__=[,(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.VerbosityLevel=t.Util=t.UnknownErrorException=t.UnexpectedResponseException=t.TextRenderingMode=t.RenderingIntentFlag=t.PromiseCapability=t.PermissionFlag=t.PasswordResponses=t.PasswordException=t.PageActionEventType=t.OPS=t.MissingPDFException=t.MAX_IMAGE_SIZE_TO_CACHE=t.LINE_FACTOR=t.LINE_DESCENT_FACTOR=t.InvalidPDFException=t.ImageKind=t.IDENTITY_MATRIX=t.FormatError=t.FeatureTest=t.FONT_IDENTITY_MATRIX=t.DocumentActionEventType=t.CMapCompressionType=t.BaseException=t.BASELINE_FACTOR=t.AnnotationType=t.AnnotationReplyType=t.AnnotationPrefix=t.AnnotationMode=t.AnnotationFlag=t.AnnotationFieldFlag=t.AnnotationEditorType=t.AnnotationEditorPrefix=t.AnnotationEditorParamsType=t.AnnotationBorderStyleType=t.AnnotationActionEventType=t.AbortException=void 0,t.assert=function(e,t){e||a(t)},t.bytesToString=c,t.createValidAbsoluteUrl=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!e)return null;try{if(r&&"string"===typeof e){if(r.addDefaultProtocol&&e.startsWith("www.")){var n=e.match(/\./g);(null===n||void 0===n?void 0:n.length)>=2&&(e="http://".concat(e))}if(r.tryConvertEncoding)try{e=f(e)}catch(i){}}var o=t?new URL(e,t):new URL(e);if(function(e){switch(null===e||void 0===e?void 0:e.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}(o))return o}catch(a){}return null},t.getModificationDate=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date;return[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")].join("")},t.getUuid=function(){var e,t;if("undefined"!==typeof crypto&&"function"===typeof(null===(e=crypto)||void 0===e?void 0:e.randomUUID))return crypto.randomUUID();var r=new Uint8Array(32);if("undefined"!==typeof crypto&&"function"===typeof(null===(t=crypto)||void 0===t?void 0:t.getRandomValues))crypto.getRandomValues(r);else for(var n=0;n<32;n++)r[n]=Math.floor(255*Math.random());return c(r)},t.getVerbosityLevel=function(){return o},t.info=function(e){o>=n.INFOS&&console.log("Info: ".concat(e))},t.isArrayBuffer=function(e){return"object"===typeof e&&void 0!==(null===e||void 0===e?void 0:e.byteLength)},t.isArrayEqual=function(e,t){if(e.length!==t.length)return!1;for(var r=0,n=e.length;rt?t.normalize("NFKC"):g.get(r)))},t.objectFromMap=function(e){var t=Object.create(null);for(var[r,n]of e)t[r]=n;return t},t.objectSize=function(e){return Object.keys(e).length},t.setVerbosityLevel=function(e){Number.isInteger(e)&&(o=e)},t.shadow=s,t.string32=function(e){return String.fromCharCode(e>>24&255,e>>16&255,e>>8&255,255&e)},t.stringToBytes=u,t.stringToPDFString=function(e){var t;if(e[0]>="\xef"&&("\xfe"===e[0]&&"\xff"===e[1]?t="utf-16be":"\xff"===e[0]&&"\xfe"===e[1]?t="utf-16le":"\xef"===e[0]&&"\xbb"===e[1]&&"\xbf"===e[2]&&(t="utf-8"),t))try{var r=new TextDecoder(t,{fatal:!0}),n=u(e);return r.decode(n)}catch(c){i('stringToPDFString: "'.concat(c,'".'))}for(var o=[],a=0,s=e.length;a=n.WARNINGS&&console.log("Warning: ".concat(e))}function a(e){throw new Error(e)}function s(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return Object.defineProperty(e,t,{value:r,enumerable:!n,configurable:!0,writable:!1}),r}var l=function(){function e(t,r){this.constructor===e&&a("Cannot initialize BaseException."),this.message=t,this.name=r}return e.prototype=new Error,e.constructor=e,e}();function c(e){"object"===typeof e&&void 0!==(null===e||void 0===e?void 0:e.length)||a("Invalid argument for bytesToString");var t=e.length,r=8192;if(te.toString(16).padStart(2,"0")));t.Util=class{static makeHexColor(e,t,r){return"#".concat(d[e]).concat(d[t]).concat(d[r])}static scaleMinMax(e,t){var r;e[0]?(e[0]<0&&(r=t[0],t[0]=t[1],t[1]=r),t[0]*=e[0],t[1]*=e[0],e[3]<0&&(r=t[2],t[2]=t[3],t[3]=r),t[2]*=e[3],t[3]*=e[3]):(r=t[0],t[0]=t[2],t[2]=r,r=t[1],t[1]=t[3],t[3]=r,e[1]<0&&(r=t[2],t[2]=t[3],t[3]=r),t[2]*=e[1],t[3]*=e[1],e[2]<0&&(r=t[0],t[0]=t[1],t[1]=r),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){var r=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])/r,(-e[0]*t[1]+e[1]*t[0]+t[4]*t[1]-t[5]*t[0])/r]}static getAxialAlignedBoundingBox(e,t){var r=this.applyTransform(e,t),n=this.applyTransform(e.slice(2,4),t),o=this.applyTransform([e[0],e[3]],t),i=this.applyTransform([e[2],e[1]],t);return[Math.min(r[0],n[0],o[0],i[0]),Math.min(r[1],n[1],o[1],i[1]),Math.max(r[0],n[0],o[0],i[0]),Math.max(r[1],n[1],o[1],i[1])]}static inverseTransform(e){var 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 singularValueDecompose2dScale(e){var t=[e[0],e[2],e[1],e[3]],r=e[0]*t[0]+e[1]*t[2],n=e[0]*t[1]+e[1]*t[3],o=e[2]*t[0]+e[3]*t[2],i=e[2]*t[1]+e[3]*t[3],a=(r+i)/2,s=Math.sqrt((r+i)**2-4*(r*i-o*n))/2,l=a+s||1,c=a-s||1;return[Math.sqrt(l),Math.sqrt(c)]}static normalizeRect(e){var t=e.slice(0);return e[0]>e[2]&&(t[0]=e[2],t[2]=e[0]),e[1]>e[3]&&(t[1]=e[3],t[3]=e[1]),t}static intersect(e,t){var r=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(r>n)return null;var o=Math.max(Math.min(e[1],e[3]),Math.min(t[1],t[3])),i=Math.min(Math.max(e[1],e[3]),Math.max(t[1],t[3]));return o>i?null:[r,o,n,i]}static bezierBoundingBox(e,t,r,n,o,i,a,s){for(var l,c,u,d,p,f,h,v,g=[],m=[[],[]],b=0;b<2;++b)if(0===b?(c=6*e-12*r+6*o,l=-3*e+9*r-9*o+3*a,u=3*r-3*e):(c=6*t-12*n+6*i,l=-3*t+9*n-9*i+3*s,u=3*n-3*t),Math.abs(l)<1e-12){if(Math.abs(c)<1e-12)continue;0<(d=-u/c)&&d<1&&g.push(d)}else h=c*c-4*u*l,v=Math.sqrt(h),h<0||(0<(p=(-c+v)/(2*l))&&p<1&&g.push(p),0<(f=(-c-v)/(2*l))&&f<1&&g.push(f));for(var y,A=g.length,_=A;A--;)y=1-(d=g[A]),m[0][A]=y*y*y*e+3*y*y*d*r+3*y*d*d*o+d*d*d*a,m[1][A]=y*y*y*t+3*y*y*d*n+3*y*d*d*i+d*d*d*s;return m[0][_]=e,m[1][_]=t,m[0][_+1]=a,m[1][_+1]=s,m[0].length=m[1].length=_+2,[Math.min(...m[0]),Math.min(...m[1]),Math.max(...m[0]),Math.max(...m[1])]}};var p=[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 f(e){return decodeURIComponent(escape(e))}var h=new WeakMap;t.PromiseCapability=class{constructor(){_classPrivateFieldInitSpec(this,h,{writable:!0,value:!1}),this.promise=new Promise(((e,t)=>{this.resolve=t=>{_classPrivateFieldSet(this,h,!0),e(t)},this.reject=e=>{_classPrivateFieldSet(this,h,!0),t(e)}}))}get settled(){return _classPrivateFieldGet(this,h)}};var v=null,g=null;t.AnnotationPrefix="pdfjs_internal_id_"},(__unused_webpack_module,exports,__w_pdfjs_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.RenderTask=exports.PDFWorkerUtil=exports.PDFWorker=exports.PDFPageProxy=exports.PDFDocumentProxy=exports.PDFDocumentLoadingTask=exports.PDFDataRangeTransport=exports.LoopbackPort=exports.DefaultStandardFontDataFactory=exports.DefaultFilterFactory=exports.DefaultCanvasFactory=exports.DefaultCMapReaderFactory=void 0,Object.defineProperty(exports,"SVGGraphics",{enumerable:!0,get:function(){return _displaySvg.SVGGraphics}}),exports.build=void 0,exports.getDocument=getDocument,exports.version=void 0;var _util=__w_pdfjs_require__(1),_annotation_storage=__w_pdfjs_require__(3),_display_utils=__w_pdfjs_require__(6),_font_loader=__w_pdfjs_require__(9),_displayNode_utils=__w_pdfjs_require__(10),_canvas=__w_pdfjs_require__(11),_worker_options=__w_pdfjs_require__(14),_message_handler=__w_pdfjs_require__(15),_metadata=__w_pdfjs_require__(16),_optional_content_config=__w_pdfjs_require__(17),_transport_stream=__w_pdfjs_require__(18),_displayFetch_stream=__w_pdfjs_require__(19),_displayNetwork=__w_pdfjs_require__(22),_displayNode_stream=__w_pdfjs_require__(23),_displaySvg=__w_pdfjs_require__(24),_xfa_text=__w_pdfjs_require__(25),DEFAULT_RANGE_CHUNK_SIZE=65536,RENDERING_CANCELLED_TIMEOUT=100,DELAYED_CLEANUP_TIMEOUT=5e3,DefaultCanvasFactory=_util.isNodeJS?_displayNode_utils.NodeCanvasFactory:_display_utils.DOMCanvasFactory;exports.DefaultCanvasFactory=DefaultCanvasFactory;var DefaultCMapReaderFactory=_util.isNodeJS?_displayNode_utils.NodeCMapReaderFactory:_display_utils.DOMCMapReaderFactory;exports.DefaultCMapReaderFactory=DefaultCMapReaderFactory;var DefaultFilterFactory=_util.isNodeJS?_displayNode_utils.NodeFilterFactory:_display_utils.DOMFilterFactory;exports.DefaultFilterFactory=DefaultFilterFactory;var DefaultStandardFontDataFactory=_util.isNodeJS?_displayNode_utils.NodeStandardFontDataFactory:_display_utils.DOMStandardFontDataFactory;function getDocument(e){var t,r;if("string"===typeof e||e instanceof URL?e={url:e}:(0,_util.isArrayBuffer)(e)&&(e={data:e}),"object"!==typeof e)throw new Error("Invalid parameter in getDocument, need parameter object.");if(!e.url&&!e.data&&!e.range)throw new Error("Invalid parameter object: need either .data, .range or .url");var n=new PDFDocumentLoadingTask,{docId:o}=n,i=e.url?getUrlProp(e.url):null,a=e.data?getDataProp(e.data):null,s=e.httpHeaders||null,l=!0===e.withCredentials,c=null!==(t=e.password)&&void 0!==t?t:null,u=e.range instanceof PDFDataRangeTransport?e.range:null,d=Number.isInteger(e.rangeChunkSize)&&e.rangeChunkSize>0?e.rangeChunkSize:DEFAULT_RANGE_CHUNK_SIZE,p=e.worker instanceof PDFWorker?e.worker:null,f=e.verbosity,h="string"!==typeof e.docBaseUrl||(0,_display_utils.isDataScheme)(e.docBaseUrl)?null:e.docBaseUrl,v="string"===typeof e.cMapUrl?e.cMapUrl:null,g=!1!==e.cMapPacked,m=e.CMapReaderFactory||DefaultCMapReaderFactory,b="string"===typeof e.standardFontDataUrl?e.standardFontDataUrl:null,y=e.StandardFontDataFactory||DefaultStandardFontDataFactory,A=!0!==e.stopAtErrors,_=Number.isInteger(e.maxImageSize)&&e.maxImageSize>-1?e.maxImageSize:-1,C=!1!==e.isEvalSupported,w="boolean"===typeof e.isOffscreenCanvasSupported?e.isOffscreenCanvasSupported:!_util.isNodeJS,x=Number.isInteger(e.canvasMaxAreaInBytes)?e.canvasMaxAreaInBytes:-1,k="boolean"===typeof e.disableFontFace?e.disableFontFace:_util.isNodeJS,S=!0===e.fontExtraProperties,P=!0===e.enableXfa,E=e.ownerDocument||globalThis.document,O=!0===e.disableRange,M=!0===e.disableStream,F=!0===e.disableAutoFetch,R=!0===e.pdfBug,T=u?u.length:null!==(r=e.length)&&void 0!==r?r:NaN,I="boolean"===typeof e.useSystemFonts?e.useSystemFonts:!_util.isNodeJS&&!k,D="boolean"===typeof e.useWorkerFetch?e.useWorkerFetch:m===_display_utils.DOMCMapReaderFactory&&y===_display_utils.DOMStandardFontDataFactory&&v&&b&&(0,_display_utils.isValidFetchUrl)(v,document.baseURI)&&(0,_display_utils.isValidFetchUrl)(b,document.baseURI),j=e.canvasFactory||new DefaultCanvasFactory({ownerDocument:E}),B=e.filterFactory||new DefaultFilterFactory({docId:o,ownerDocument:E});(0,_util.setVerbosityLevel)(f);var L={canvasFactory:j,filterFactory:B};if(D||(L.cMapReaderFactory=new m({baseUrl:v,isCompressed:g}),L.standardFontDataFactory=new y({baseUrl:b})),!p){var Z={verbosity:f,port:_worker_options.GlobalWorkerOptions.workerPort};p=Z.port?PDFWorker.fromPort(Z):new PDFWorker(Z),n._worker=p}var N={docId:o,apiVersion:"3.11.174",data:a,password:c,disableAutoFetch:F,rangeChunkSize:d,length:T,docBaseUrl:h,enableXfa:P,evaluatorOptions:{maxImageSize:_,disableFontFace:k,ignoreErrors:A,isEvalSupported:C,isOffscreenCanvasSupported:w,canvasMaxAreaInBytes:x,fontExtraProperties:S,useSystemFonts:I,cMapUrl:D?v:null,standardFontDataUrl:D?b:null}},G={ignoreErrors:A,isEvalSupported:C,disableFontFace:k,fontExtraProperties:S,enableXfa:P,ownerDocument:E,disableAutoFetch:F,pdfBug:R,styleElement:null};return p.promise.then((function(){if(n.destroyed)throw new Error("Loading aborted");var e=_fetchDocument(p,N),t=new Promise((function(e){var t,r;u?t=new _transport_stream.PDFDataTransportStream({length:T,initialData:u.initialData,progressiveDone:u.progressiveDone,contentDispositionFilename:u.contentDispositionFilename,disableRange:O,disableStream:M},u):a||(r={url:i,length:T,httpHeaders:s,withCredentials:l,rangeChunkSize:d,disableRange:O,disableStream:M},t=_util.isNodeJS?new _displayNode_stream.PDFNodeStream(r):(0,_display_utils.isValidFetchUrl)(r.url)?new _displayFetch_stream.PDFFetchStream(r):new _displayNetwork.PDFNetworkStream(r)),e(t)}));return Promise.all([e,t]).then((function(e){var[t,r]=e;if(n.destroyed)throw new Error("Loading aborted");var i=new _message_handler.MessageHandler(o,t,p.port),a=new WorkerTransport(i,n,r,G,L);n._transport=a,i.send("Ready",null)}))})).catch(n._capability.reject),n}function _fetchDocument(e,t){return _fetchDocument2.apply(this,arguments)}function _fetchDocument2(){return(_fetchDocument2=_asyncToGenerator((function*(e,t){if(e.destroyed)throw new Error("Worker was destroyed");var r=yield e.messageHandler.sendWithPromise("GetDocRequest",t,t.data?[t.data.buffer]:null);if(e.destroyed)throw new Error("Worker was destroyed");return r}))).apply(this,arguments)}function getUrlProp(e){if(e instanceof URL)return e.href;try{return new URL(e,window.location).href}catch(t){if(_util.isNodeJS&&"string"===typeof e)return e}throw new Error("Invalid PDF url data: either string or URL-object is expected in the url property.")}function getDataProp(e){if(_util.isNodeJS&&"undefined"!==typeof Buffer&&e instanceof Buffer)throw new Error("Please provide binary data as `Uint8Array`, rather than `Buffer`.");if(e instanceof Uint8Array&&e.byteLength===e.buffer.byteLength)return e;if("string"===typeof e)return(0,_util.stringToBytes)(e);if("object"===typeof e&&!isNaN(null===e||void 0===e?void 0:e.length)||(0,_util.isArrayBuffer)(e))return new Uint8Array(e);throw new Error("Invalid PDF binary data: either TypedArray, string, or array-like object is expected in the data property.")}exports.DefaultStandardFontDataFactory=DefaultStandardFontDataFactory;class PDFDocumentLoadingTask{constructor(){var e,t;this._capability=new _util.PromiseCapability,this._transport=null,this._worker=null,this.docId="d".concat((_classStaticPrivateFieldSpecSet(PDFDocumentLoadingTask,PDFDocumentLoadingTask,_docId,(e=_classStaticPrivateFieldSpecGet(PDFDocumentLoadingTask,PDFDocumentLoadingTask,_docId),t=e++,e)),t)),this.destroyed=!1,this.onPassword=null,this.onProgress=null}get promise(){return this._capability.promise}destroy(){var e=this;return _asyncToGenerator((function*(){e.destroyed=!0;try{var t,r;null!==(t=e._worker)&&void 0!==t&&t.port&&(e._worker._pendingDestroy=!0),yield null===(r=e._transport)||void 0===r?void 0:r.destroy()}catch(o){var n;throw null!==(n=e._worker)&&void 0!==n&&n.port&&delete e._worker._pendingDestroy,o}e._transport=null,e._worker&&(e._worker.destroy(),e._worker=null)}))()}}var _docId={writable:!0,value:0};exports.PDFDocumentLoadingTask=PDFDocumentLoadingTask;class PDFDataRangeTransport{constructor(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;this.length=e,this.initialData=t,this.progressiveDone=r,this.contentDispositionFilename=n,this._rangeListeners=[],this._progressListeners=[],this._progressiveReadListeners=[],this._progressiveDoneListeners=[],this._readyCapability=new _util.PromiseCapability}addRangeListener(e){this._rangeListeners.push(e)}addProgressListener(e){this._progressListeners.push(e)}addProgressiveReadListener(e){this._progressiveReadListeners.push(e)}addProgressiveDoneListener(e){this._progressiveDoneListeners.push(e)}onDataRange(e,t){for(var r of this._rangeListeners)r(e,t)}onDataProgress(e,t){this._readyCapability.promise.then((()=>{for(var r of this._progressListeners)r(e,t)}))}onDataProgressiveRead(e){this._readyCapability.promise.then((()=>{for(var t of this._progressiveReadListeners)t(e)}))}onDataProgressiveDone(){this._readyCapability.promise.then((()=>{for(var e of this._progressiveDoneListeners)e()}))}transportReady(){this._readyCapability.resolve()}requestDataRange(e,t){(0,_util.unreachable)("Abstract method PDFDataRangeTransport.requestDataRange")}abort(){}}exports.PDFDataRangeTransport=PDFDataRangeTransport;class PDFDocumentProxy{constructor(e,t){this._pdfInfo=e,this._transport=t,Object.defineProperty(this,"getJavaScript",{value:()=>((0,_display_utils.deprecated)("`PDFDocumentProxy.getJavaScript`, please use `PDFDocumentProxy.getJSActions` instead."),this.getJSActions().then((e=>{if(!e)return e;var t=[];for(var r in e)t.push(...e[r]);return t})))})}get annotationStorage(){return this._transport.annotationStorage}get filterFactory(){return this._transport.filterFactory}get numPages(){return this._pdfInfo.numPages}get fingerprints(){return this._pdfInfo.fingerprints}get isPureXfa(){return(0,_util.shadow)(this,"isPureXfa",!!this._transport._htmlForXfa)}get allXfaHtml(){return this._transport._htmlForXfa}getPage(e){return this._transport.getPage(e)}getPageIndex(e){return this._transport.getPageIndex(e)}getDestinations(){return this._transport.getDestinations()}getDestination(e){return this._transport.getDestination(e)}getPageLabels(){return this._transport.getPageLabels()}getPageLayout(){return this._transport.getPageLayout()}getPageMode(){return this._transport.getPageMode()}getViewerPreferences(){return this._transport.getViewerPreferences()}getOpenAction(){return this._transport.getOpenAction()}getAttachments(){return this._transport.getAttachments()}getJSActions(){return this._transport.getDocJSActions()}getOutline(){return this._transport.getOutline()}getOptionalContentConfig(){return this._transport.getOptionalContentConfig()}getPermissions(){return this._transport.getPermissions()}getMetadata(){return this._transport.getMetadata()}getMarkInfo(){return this._transport.getMarkInfo()}getData(){return this._transport.getData()}saveDocument(){return this._transport.saveDocument()}getDownloadInfo(){return this._transport.downloadInfoCapability.promise}cleanup(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this._transport.startCleanup(e||this.isPureXfa)}destroy(){return this.loadingTask.destroy()}get loadingParams(){return this._transport.loadingParams}get loadingTask(){return this._transport.loadingTask}getFieldObjects(){return this._transport.getFieldObjects()}hasJSActions(){return this._transport.hasJSActions()}getCalculationOrderIds(){return this._transport.getCalculationOrderIds()}}exports.PDFDocumentProxy=PDFDocumentProxy;var _delayedCleanupTimeout=new WeakMap,_pendingCleanup=new WeakMap,_tryCleanup=new WeakSet,_abortDelayedCleanup=new WeakSet;class PDFPageProxy{constructor(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];_classPrivateMethodInitSpec(this,_abortDelayedCleanup),_classPrivateMethodInitSpec(this,_tryCleanup),_classPrivateFieldInitSpec(this,_delayedCleanupTimeout,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,_pendingCleanup,{writable:!0,value:!1}),this._pageIndex=e,this._pageInfo=t,this._transport=r,this._stats=n?new _display_utils.StatTimer:null,this._pdfBug=n,this.commonObjs=r.commonObjs,this.objs=new PDFObjects,this._maybeCleanupAfterRender=!1,this._intentStates=new Map,this.destroyed=!1}get pageNumber(){return this._pageIndex+1}get rotate(){return this._pageInfo.rotate}get ref(){return this._pageInfo.ref}get userUnit(){return this._pageInfo.userUnit}get view(){return this._pageInfo.view}getViewport(){var{scale:e,rotation:t=this.rotate,offsetX:r=0,offsetY:n=0,dontFlip:o=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new _display_utils.PageViewport({viewBox:this.view,scale:e,rotation:t,offsetX:r,offsetY:n,dontFlip:o})}getAnnotations(){var{intent:e="display"}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this._transport.getRenderingIntent(e);return this._transport.getAnnotations(this._pageIndex,t.renderingIntent)}getJSActions(){return this._transport.getPageJSActions(this._pageIndex)}get filterFactory(){return this._transport.filterFactory}get isPureXfa(){return(0,_util.shadow)(this,"isPureXfa",!!this._transport._htmlForXfa)}getXfa(){var e=this;return _asyncToGenerator((function*(){var t;return(null===(t=e._transport._htmlForXfa)||void 0===t?void 0:t.children[e._pageIndex])||null}))()}render(e){var t,r,{canvasContext:n,viewport:o,intent:i="display",annotationMode:a=_util.AnnotationMode.ENABLE,transform:s=null,background:l=null,optionalContentConfigPromise:c=null,annotationCanvasMap:u=null,pageColors:d=null,printAnnotationStorage:p=null}=e;null===(t=this._stats)||void 0===t||t.time("Overall");var f=this._transport.getRenderingIntent(i,a,p);_classPrivateFieldSet(this,_pendingCleanup,!1),_classPrivateMethodGet(this,_abortDelayedCleanup,_abortDelayedCleanup2).call(this),c||(c=this._transport.getOptionalContentConfig());var h=this._intentStates.get(f.cacheKey);h||(h=Object.create(null),this._intentStates.set(f.cacheKey,h)),h.streamReaderCancelTimeout&&(clearTimeout(h.streamReaderCancelTimeout),h.streamReaderCancelTimeout=null);var v,g=!!(f.renderingIntent&_util.RenderingIntentFlag.PRINT);h.displayReadyCapability||(h.displayReadyCapability=new _util.PromiseCapability,h.operatorList={fnArray:[],argsArray:[],lastChunk:!1,separateAnnots:null},null===(v=this._stats)||void 0===v||v.time("Page Request"),this._pumpOperatorList(f));var m=e=>{var t,r;h.renderTasks.delete(b),(this._maybeCleanupAfterRender||g)&&_classPrivateFieldSet(this,_pendingCleanup,!0),_classPrivateMethodGet(this,_tryCleanup,_tryCleanup2).call(this,!g),e?(b.capability.reject(e),this._abortOperatorList({intentState:h,reason:e instanceof Error?e:new Error(e)})):b.capability.resolve(),null===(t=this._stats)||void 0===t||t.timeEnd("Rendering"),null===(r=this._stats)||void 0===r||r.timeEnd("Overall")},b=new InternalRenderTask({callback:m,params:{canvasContext:n,viewport:o,transform:s,background:l},objs:this.objs,commonObjs:this.commonObjs,annotationCanvasMap:u,operatorList:h.operatorList,pageIndex:this._pageIndex,canvasFactory:this._transport.canvasFactory,filterFactory:this._transport.filterFactory,useRequestAnimationFrame:!g,pdfBug:this._pdfBug,pageColors:d});((r=h).renderTasks||(r.renderTasks=new Set)).add(b);var y=b.task;return Promise.all([h.displayReadyCapability.promise,c]).then((e=>{var t,[r,n]=e;this.destroyed?m():(null===(t=this._stats)||void 0===t||t.time("Rendering"),b.initializeGraphics({transparency:r,optionalContentConfig:n}),b.operatorListChanged())})).catch(m),y}getOperatorList(){var e,t,r,{intent:n="display",annotationMode:o=_util.AnnotationMode.ENABLE,printAnnotationStorage:i=null}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=this._transport.getRenderingIntent(n,o,i,!0),s=this._intentStates.get(a.cacheKey);return s||(s=Object.create(null),this._intentStates.set(a.cacheKey,s)),s.opListReadCapability||((e=Object.create(null)).operatorListChanged=function(){s.operatorList.lastChunk&&(s.opListReadCapability.resolve(s.operatorList),s.renderTasks.delete(e))},s.opListReadCapability=new _util.PromiseCapability,((t=s).renderTasks||(t.renderTasks=new Set)).add(e),s.operatorList={fnArray:[],argsArray:[],lastChunk:!1,separateAnnots:null},null===(r=this._stats)||void 0===r||r.time("Page Request"),this._pumpOperatorList(a)),s.opListReadCapability.promise}streamTextContent(){var{includeMarkedContent:e=!1,disableNormalization:t=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this._transport.messageHandler.sendWithStream("GetTextContent",{pageIndex:this._pageIndex,includeMarkedContent:!0===e,disableNormalization:!0===t},{highWaterMark:100,size(e){return e.items.length}})}getTextContent(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(this._transport._htmlForXfa)return this.getXfa().then((e=>_xfa_text.XfaText.textContent(e)));var t=this.streamTextContent(e);return new Promise((function(e,r){var n=t.getReader(),o={items:[],styles:Object.create(null)};!function t(){n.read().then((function(r){var{value:n,done:i}=r;i?e(o):(Object.assign(o.styles,n.styles),o.items.push(...n.items),t())}),r)}()}))}getStructTree(){return this._transport.getStructTree(this._pageIndex)}_destroy(){this.destroyed=!0;var e=[];for(var t of this._intentStates.values())if(this._abortOperatorList({intentState:t,reason:new Error("Page was destroyed."),force:!0}),!t.opListReadCapability)for(var r of t.renderTasks)e.push(r.completed),r.cancel();return this.objs.clear(),_classPrivateFieldSet(this,_pendingCleanup,!1),_classPrivateMethodGet(this,_abortDelayedCleanup,_abortDelayedCleanup2).call(this),Promise.all(e)}cleanup(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];_classPrivateFieldSet(this,_pendingCleanup,!0);var t=_classPrivateMethodGet(this,_tryCleanup,_tryCleanup2).call(this,!1);return e&&t&&this._stats&&(this._stats=new _display_utils.StatTimer),t}_startRenderPage(e,t){var r,n,o=this._intentStates.get(t);o&&(null===(r=this._stats)||void 0===r||r.timeEnd("Page Request"),null===(n=o.displayReadyCapability)||void 0===n||n.resolve(e))}_renderPageChunk(e,t){for(var r=0,n=e.length;r{a.read().then((e=>{var{value:t,done:r}=e;r?s.streamReader=null:this._transport.destroyed||(this._renderPageChunk(t,s),l())}),(e=>{if(s.streamReader=null,!this._transport.destroyed){if(s.operatorList){for(var t of(s.operatorList.lastChunk=!0,s.renderTasks))t.operatorListChanged();_classPrivateMethodGet(this,_tryCleanup,_tryCleanup2).call(this,!0)}if(s.displayReadyCapability)s.displayReadyCapability.reject(e);else{if(!s.opListReadCapability)throw e;s.opListReadCapability.reject(e)}}}))};l()}_abortOperatorList(e){var{intentState:t,reason:r,force:n=!1}=e;if(t.streamReader){if(t.streamReaderCancelTimeout&&(clearTimeout(t.streamReaderCancelTimeout),t.streamReaderCancelTimeout=null),!n){if(t.renderTasks.size>0)return;if(r instanceof _display_utils.RenderingCancelledException){var o=RENDERING_CANCELLED_TIMEOUT;return r.extraDelay>0&&r.extraDelay<1e3&&(o+=r.extraDelay),void(t.streamReaderCancelTimeout=setTimeout((()=>{t.streamReaderCancelTimeout=null,this._abortOperatorList({intentState:t,reason:r,force:!0})}),o))}}if(t.streamReader.cancel(new _util.AbortException(r.message)).catch((()=>{})),t.streamReader=null,!this._transport.destroyed){for(var[i,a]of this._intentStates)if(a===t){this._intentStates.delete(i);break}this.cleanup()}}}get stats(){return this._stats}}function _tryCleanup2(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(_classPrivateMethodGet(this,_abortDelayedCleanup,_abortDelayedCleanup2).call(this),!_classPrivateFieldGet(this,_pendingCleanup)||this.destroyed)return!1;if(e)return _classPrivateFieldSet(this,_delayedCleanupTimeout,setTimeout((()=>{_classPrivateFieldSet(this,_delayedCleanupTimeout,null),_classPrivateMethodGet(this,_tryCleanup,_tryCleanup2).call(this,!1)}),DELAYED_CLEANUP_TIMEOUT)),!1;for(var{renderTasks:t,operatorList:r}of this._intentStates.values())if(t.size>0||!r.lastChunk)return!1;return this._intentStates.clear(),this.objs.clear(),_classPrivateFieldSet(this,_pendingCleanup,!1),!0}function _abortDelayedCleanup2(){_classPrivateFieldGet(this,_delayedCleanupTimeout)&&(clearTimeout(_classPrivateFieldGet(this,_delayedCleanupTimeout)),_classPrivateFieldSet(this,_delayedCleanupTimeout,null))}exports.PDFPageProxy=PDFPageProxy;var _listeners=new WeakMap,_deferred=new WeakMap;class LoopbackPort{constructor(){_classPrivateFieldInitSpec(this,_listeners,{writable:!0,value:new Set}),_classPrivateFieldInitSpec(this,_deferred,{writable:!0,value:Promise.resolve()})}postMessage(e,t){var r={data:structuredClone(e,t?{transfer:t}:null)};_classPrivateFieldGet(this,_deferred).then((()=>{for(var e of _classPrivateFieldGet(this,_listeners))e.call(this,r)}))}addEventListener(e,t){_classPrivateFieldGet(this,_listeners).add(t)}removeEventListener(e,t){_classPrivateFieldGet(this,_listeners).delete(t)}terminate(){_classPrivateFieldGet(this,_listeners).clear()}}exports.LoopbackPort=LoopbackPort;var PDFWorkerUtil={isWorkerDisabled:!1,fallbackWorkerSrc:null,fakeWorkerId:0};if(exports.PDFWorkerUtil=PDFWorkerUtil,_util.isNodeJS)PDFWorkerUtil.isWorkerDisabled=!0,PDFWorkerUtil.fallbackWorkerSrc="./pdf.worker.js";else if("object"===typeof document){var _document,pdfjsFilePath=null===(_document=document)||void 0===_document||null===(_document=_document.currentScript)||void 0===_document?void 0:_document.src;pdfjsFilePath&&(PDFWorkerUtil.fallbackWorkerSrc=pdfjsFilePath.replace(/(\.(?:min\.)?js)(\?.*)?$/i,".worker$1$2"))}PDFWorkerUtil.isSameOrigin=function(e,t){var r;try{if(!(r=new URL(e)).origin||"null"===r.origin)return!1}catch(o){return!1}var n=new URL(t,r);return r.origin===n.origin},PDFWorkerUtil.createCDNWrapper=function(e){var t='importScripts("'.concat(e,'");');return URL.createObjectURL(new Blob([t]))};class PDFWorker{constructor(){var{name:e=null,port:t=null,verbosity:r=(0,_util.getVerbosityLevel)()}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(this.name=e,this.destroyed=!1,this.verbosity=r,this._readyCapability=new _util.PromiseCapability,this._port=null,this._webWorker=null,this._messageHandler=null,t){var n;if(null!==(n=_classStaticPrivateFieldSpecGet(PDFWorker,PDFWorker,_workerPorts))&&void 0!==n&&n.has(t))throw new Error("Cannot use more than one PDFWorker per port.");return(_classStaticPrivateFieldSpecGet(PDFWorker,PDFWorker,_workerPorts)||_classStaticPrivateFieldSpecSet(PDFWorker,PDFWorker,_workerPorts,new WeakMap)).set(t,this),void this._initializeFromPort(t)}this._initialize()}get promise(){return this._readyCapability.promise}get port(){return this._port}get messageHandler(){return this._messageHandler}_initializeFromPort(e){this._port=e,this._messageHandler=new _message_handler.MessageHandler("main","worker",e),this._messageHandler.on("ready",(function(){})),this._readyCapability.resolve(),this._messageHandler.send("configure",{verbosity:this.verbosity})}_initialize(){if(!PDFWorkerUtil.isWorkerDisabled&&!PDFWorker._mainThreadWorkerMessageHandler){var{workerSrc:e}=PDFWorker;try{PDFWorkerUtil.isSameOrigin(window.location.href,e)||(e=PDFWorkerUtil.createCDNWrapper(new URL(e,window.location).href));var t=new Worker(e),r=new _message_handler.MessageHandler("main","worker",t),n=()=>{t.removeEventListener("error",o),r.destroy(),t.terminate(),this.destroyed?this._readyCapability.reject(new Error("Worker was destroyed")):this._setupFakeWorker()},o=()=>{this._webWorker||n()};t.addEventListener("error",o),r.on("test",(e=>{t.removeEventListener("error",o),this.destroyed?n():e?(this._messageHandler=r,this._port=t,this._webWorker=t,this._readyCapability.resolve(),r.send("configure",{verbosity:this.verbosity})):(this._setupFakeWorker(),r.destroy(),t.terminate())})),r.on("ready",(e=>{if(t.removeEventListener("error",o),this.destroyed)n();else try{i()}catch(r){this._setupFakeWorker()}}));var i=()=>{var e=new Uint8Array;r.send("test",e,[e.buffer])};return void i()}catch(a){(0,_util.info)("The worker has been disabled.")}}this._setupFakeWorker()}_setupFakeWorker(){PDFWorkerUtil.isWorkerDisabled||((0,_util.warn)("Setting up fake worker."),PDFWorkerUtil.isWorkerDisabled=!0),PDFWorker._setupFakeWorkerGlobal.then((e=>{if(this.destroyed)this._readyCapability.reject(new Error("Worker was destroyed"));else{var t=new LoopbackPort;this._port=t;var r="fake".concat(PDFWorkerUtil.fakeWorkerId++),n=new _message_handler.MessageHandler(r+"_worker",r,t);e.setup(n,t);var o=new _message_handler.MessageHandler(r,r+"_worker",t);this._messageHandler=o,this._readyCapability.resolve(),o.send("configure",{verbosity:this.verbosity})}})).catch((e=>{this._readyCapability.reject(new Error('Setting up fake worker failed: "'.concat(e.message,'".')))}))}destroy(){var e;this.destroyed=!0,this._webWorker&&(this._webWorker.terminate(),this._webWorker=null),null===(e=_classStaticPrivateFieldSpecGet(PDFWorker,PDFWorker,_workerPorts))||void 0===e||e.delete(this._port),this._port=null,this._messageHandler&&(this._messageHandler.destroy(),this._messageHandler=null)}static fromPort(e){var t;if(null===e||void 0===e||!e.port)throw new Error("PDFWorker.fromPort - invalid method signature.");var r=null===(t=_classStaticPrivateFieldSpecGet(this,PDFWorker,_workerPorts))||void 0===t?void 0:t.get(e.port);if(r){if(r._pendingDestroy)throw new Error("PDFWorker.fromPort - the worker is being destroyed.\nPlease remember to await `PDFDocumentLoadingTask.destroy()`-calls.");return r}return new PDFWorker(e)}static get workerSrc(){if(_worker_options.GlobalWorkerOptions.workerSrc)return _worker_options.GlobalWorkerOptions.workerSrc;if(null!==PDFWorkerUtil.fallbackWorkerSrc)return _util.isNodeJS||(0,_display_utils.deprecated)('No "GlobalWorkerOptions.workerSrc" specified.'),PDFWorkerUtil.fallbackWorkerSrc;throw new Error('No "GlobalWorkerOptions.workerSrc" specified.')}static get _mainThreadWorkerMessageHandler(){try{var e;return(null===(e=globalThis.pdfjsWorker)||void 0===e?void 0:e.WorkerMessageHandler)||null}catch(t){return null}}static get _setupFakeWorkerGlobal(){var _this3=this,loader=function(){var _ref8=_asyncToGenerator((function*(){var mainWorkerMessageHandler=_this3._mainThreadWorkerMessageHandler;if(mainWorkerMessageHandler)return mainWorkerMessageHandler;if(_util.isNodeJS){var worker=eval("require")(_this3.workerSrc);return worker.WorkerMessageHandler}return yield(0,_display_utils.loadScript)(_this3.workerSrc),window.pdfjsWorker.WorkerMessageHandler}));return function(){return _ref8.apply(this,arguments)}}();return(0,_util.shadow)(this,"_setupFakeWorkerGlobal",loader())}}var _workerPorts={writable:!0,value:void 0};exports.PDFWorker=PDFWorker;var _methodPromises=new WeakMap,_pageCache=new WeakMap,_pagePromises=new WeakMap,_passwordCapability=new WeakMap,_cacheSimpleMethod=new WeakSet;class WorkerTransport{constructor(e,t,r,n,o){_classPrivateMethodInitSpec(this,_cacheSimpleMethod),_classPrivateFieldInitSpec(this,_methodPromises,{writable:!0,value:new Map}),_classPrivateFieldInitSpec(this,_pageCache,{writable:!0,value:new Map}),_classPrivateFieldInitSpec(this,_pagePromises,{writable:!0,value:new Map}),_classPrivateFieldInitSpec(this,_passwordCapability,{writable:!0,value:null}),this.messageHandler=e,this.loadingTask=t,this.commonObjs=new PDFObjects,this.fontLoader=new _font_loader.FontLoader({ownerDocument:n.ownerDocument,styleElement:n.styleElement}),this._params=n,this.canvasFactory=o.canvasFactory,this.filterFactory=o.filterFactory,this.cMapReaderFactory=o.cMapReaderFactory,this.standardFontDataFactory=o.standardFontDataFactory,this.destroyed=!1,this.destroyCapability=null,this._networkStream=r,this._fullReader=null,this._lastProgress=null,this.downloadInfoCapability=new _util.PromiseCapability,this.setupMessageHandler()}get annotationStorage(){return(0,_util.shadow)(this,"annotationStorage",new _annotation_storage.AnnotationStorage)}getRenderingIntent(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:_util.AnnotationMode.ENABLE,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=_util.RenderingIntentFlag.DISPLAY,i=_annotation_storage.SerializableEmpty;switch(e){case"any":o=_util.RenderingIntentFlag.ANY;break;case"display":break;case"print":o=_util.RenderingIntentFlag.PRINT;break;default:(0,_util.warn)("getRenderingIntent - invalid intent: ".concat(e))}switch(t){case _util.AnnotationMode.DISABLE:o+=_util.RenderingIntentFlag.ANNOTATIONS_DISABLE;break;case _util.AnnotationMode.ENABLE:break;case _util.AnnotationMode.ENABLE_FORMS:o+=_util.RenderingIntentFlag.ANNOTATIONS_FORMS;break;case _util.AnnotationMode.ENABLE_STORAGE:i=((o+=_util.RenderingIntentFlag.ANNOTATIONS_STORAGE)&_util.RenderingIntentFlag.PRINT&&r instanceof _annotation_storage.PrintAnnotationStorage?r:this.annotationStorage).serializable;break;default:(0,_util.warn)("getRenderingIntent - invalid annotationMode: ".concat(t))}return n&&(o+=_util.RenderingIntentFlag.OPLIST),{renderingIntent:o,cacheKey:"".concat(o,"_").concat(i.hash),annotationStorageSerializable:i}}destroy(){var e;if(this.destroyCapability)return this.destroyCapability.promise;this.destroyed=!0,this.destroyCapability=new _util.PromiseCapability,null===(e=_classPrivateFieldGet(this,_passwordCapability))||void 0===e||e.reject(new Error("Worker was destroyed during onPassword callback"));var t=[];for(var r of _classPrivateFieldGet(this,_pageCache).values())t.push(r._destroy());_classPrivateFieldGet(this,_pageCache).clear(),_classPrivateFieldGet(this,_pagePromises).clear(),this.hasOwnProperty("annotationStorage")&&this.annotationStorage.resetModified();var n=this.messageHandler.sendWithPromise("Terminate",null);return t.push(n),Promise.all(t).then((()=>{var e;this.commonObjs.clear(),this.fontLoader.clear(),_classPrivateFieldGet(this,_methodPromises).clear(),this.filterFactory.destroy(),null===(e=this._networkStream)||void 0===e||e.cancelAllRequests(new _util.AbortException("Worker was terminated.")),this.messageHandler&&(this.messageHandler.destroy(),this.messageHandler=null),this.destroyCapability.resolve()}),this.destroyCapability.reject),this.destroyCapability.promise}setupMessageHandler(){var{messageHandler:e,loadingTask:t}=this;e.on("GetReader",((e,t)=>{(0,_util.assert)(this._networkStream,"GetReader - no `IPDFStream` instance available."),this._fullReader=this._networkStream.getFullReader(),this._fullReader.onProgress=e=>{this._lastProgress={loaded:e.loaded,total:e.total}},t.onPull=()=>{this._fullReader.read().then((function(e){var{value:r,done:n}=e;n?t.close():((0,_util.assert)(r instanceof ArrayBuffer,"GetReader - expected an ArrayBuffer."),t.enqueue(new Uint8Array(r),1,[r]))})).catch((e=>{t.error(e)}))},t.onCancel=e=>{this._fullReader.cancel(e),t.ready.catch((e=>{if(!this.destroyed)throw e}))}})),e.on("ReaderHeadersReady",(e=>{var r=new _util.PromiseCapability,n=this._fullReader;return n.headersReady.then((()=>{var e;n.isStreamingSupported&&n.isRangeSupported||(this._lastProgress&&(null===(e=t.onProgress)||void 0===e||e.call(t,this._lastProgress)),n.onProgress=e=>{var r;null===(r=t.onProgress)||void 0===r||r.call(t,{loaded:e.loaded,total:e.total})});r.resolve({isStreamingSupported:n.isStreamingSupported,isRangeSupported:n.isRangeSupported,contentLength:n.contentLength})}),r.reject),r.promise})),e.on("GetRangeReader",((e,t)=>{(0,_util.assert)(this._networkStream,"GetRangeReader - no `IPDFStream` instance available.");var r=this._networkStream.getRangeReader(e.begin,e.end);r?(t.onPull=()=>{r.read().then((function(e){var{value:r,done:n}=e;n?t.close():((0,_util.assert)(r instanceof ArrayBuffer,"GetRangeReader - expected an ArrayBuffer."),t.enqueue(new Uint8Array(r),1,[r]))})).catch((e=>{t.error(e)}))},t.onCancel=e=>{r.cancel(e),t.ready.catch((e=>{if(!this.destroyed)throw e}))}):t.close()})),e.on("GetDoc",(e=>{var{pdfInfo:r}=e;this._numPages=r.numPages,this._htmlForXfa=r.htmlForXfa,delete r.htmlForXfa,t._capability.resolve(new PDFDocumentProxy(r,this))})),e.on("DocException",(function(e){var r;switch(e.name){case"PasswordException":r=new _util.PasswordException(e.message,e.code);break;case"InvalidPDFException":r=new _util.InvalidPDFException(e.message);break;case"MissingPDFException":r=new _util.MissingPDFException(e.message);break;case"UnexpectedResponseException":r=new _util.UnexpectedResponseException(e.message,e.status);break;case"UnknownErrorException":r=new _util.UnknownErrorException(e.message,e.details);break;default:(0,_util.unreachable)("DocException - expected a valid Error.")}t._capability.reject(r)})),e.on("PasswordRequest",(e=>{if(_classPrivateFieldSet(this,_passwordCapability,new _util.PromiseCapability),t.onPassword)try{t.onPassword((e=>{e instanceof Error?_classPrivateFieldGet(this,_passwordCapability).reject(e):_classPrivateFieldGet(this,_passwordCapability).resolve({password:e})}),e.code)}catch(r){_classPrivateFieldGet(this,_passwordCapability).reject(r)}else _classPrivateFieldGet(this,_passwordCapability).reject(new _util.PasswordException(e.message,e.code));return _classPrivateFieldGet(this,_passwordCapability).promise})),e.on("DataLoaded",(e=>{var r;null===(r=t.onProgress)||void 0===r||r.call(t,{loaded:e.length,total:e.length}),this.downloadInfoCapability.resolve(e)})),e.on("StartRenderPage",(e=>{this.destroyed||_classPrivateFieldGet(this,_pageCache).get(e.pageIndex)._startRenderPage(e.transparency,e.cacheKey)})),e.on("commonobj",(t=>{var r,[n,o,i]=t;if(!this.destroyed&&!this.commonObjs.has(n))switch(o){case"Font":var a=this._params;if("error"in i){var s=i.error;(0,_util.warn)("Error during font loading: ".concat(s)),this.commonObjs.resolve(n,s);break}var l=a.pdfBug&&null!==(r=globalThis.FontInspector)&&void 0!==r&&r.enabled?(e,t)=>globalThis.FontInspector.fontAdded(e,t):null,c=new _font_loader.FontFaceObject(i,{isEvalSupported:a.isEvalSupported,disableFontFace:a.disableFontFace,ignoreErrors:a.ignoreErrors,inspectFont:l});this.fontLoader.bind(c).catch((t=>e.sendWithPromise("FontFallback",{id:n}))).finally((()=>{!a.fontExtraProperties&&c.data&&(c.data=null),this.commonObjs.resolve(n,c)}));break;case"FontPath":case"Image":case"Pattern":this.commonObjs.resolve(n,i);break;default:throw new Error("Got unknown common object type ".concat(o))}})),e.on("obj",(e=>{var[t,r,n,o]=e;if(!this.destroyed){var i=_classPrivateFieldGet(this,_pageCache).get(r);if(!i.objs.has(t))switch(n){case"Image":if(i.objs.resolve(t,o),o){var a;if(o.bitmap){var{width:s,height:l}=o;a=s*l*4}else{var c;a=(null===(c=o.data)||void 0===c?void 0:c.length)||0}a>_util.MAX_IMAGE_SIZE_TO_CACHE&&(i._maybeCleanupAfterRender=!0)}break;case"Pattern":i.objs.resolve(t,o);break;default:throw new Error("Got unknown object type ".concat(n))}}})),e.on("DocProgress",(e=>{var r;this.destroyed||null===(r=t.onProgress)||void 0===r||r.call(t,{loaded:e.loaded,total:e.total})})),e.on("FetchBuiltInCMap",(e=>this.destroyed?Promise.reject(new Error("Worker was destroyed.")):this.cMapReaderFactory?this.cMapReaderFactory.fetch(e):Promise.reject(new Error("CMapReaderFactory not initialized, see the `useWorkerFetch` parameter.")))),e.on("FetchStandardFontData",(e=>this.destroyed?Promise.reject(new Error("Worker was destroyed.")):this.standardFontDataFactory?this.standardFontDataFactory.fetch(e):Promise.reject(new Error("StandardFontDataFactory not initialized, see the `useWorkerFetch` parameter."))))}getData(){return this.messageHandler.sendWithPromise("GetData",null)}saveDocument(){var e,t;this.annotationStorage.size<=0&&(0,_util.warn)("saveDocument called while `annotationStorage` is empty, please use the getData-method instead.");var{map:r,transfers:n}=this.annotationStorage.serializable;return this.messageHandler.sendWithPromise("SaveDocument",{isPureXfa:!!this._htmlForXfa,numPages:this._numPages,annotationStorage:r,filename:null!==(e=null===(t=this._fullReader)||void 0===t?void 0:t.filename)&&void 0!==e?e:null},n).finally((()=>{this.annotationStorage.resetModified()}))}getPage(e){if(!Number.isInteger(e)||e<=0||e>this._numPages)return Promise.reject(new Error("Invalid page request."));var t=e-1,r=_classPrivateFieldGet(this,_pagePromises).get(t);if(r)return r;var n=this.messageHandler.sendWithPromise("GetPage",{pageIndex:t}).then((e=>{if(this.destroyed)throw new Error("Transport destroyed");var r=new PDFPageProxy(t,e,this,this._params.pdfBug);return _classPrivateFieldGet(this,_pageCache).set(t,r),r}));return _classPrivateFieldGet(this,_pagePromises).set(t,n),n}getPageIndex(e){return"object"!==typeof e||null===e||!Number.isInteger(e.num)||e.num<0||!Number.isInteger(e.gen)||e.gen<0?Promise.reject(new Error("Invalid pageIndex request.")):this.messageHandler.sendWithPromise("GetPageIndex",{num:e.num,gen:e.gen})}getAnnotations(e,t){return this.messageHandler.sendWithPromise("GetAnnotations",{pageIndex:e,intent:t})}getFieldObjects(){return _classPrivateMethodGet(this,_cacheSimpleMethod,_cacheSimpleMethod2).call(this,"GetFieldObjects")}hasJSActions(){return _classPrivateMethodGet(this,_cacheSimpleMethod,_cacheSimpleMethod2).call(this,"HasJSActions")}getCalculationOrderIds(){return this.messageHandler.sendWithPromise("GetCalculationOrderIds",null)}getDestinations(){return this.messageHandler.sendWithPromise("GetDestinations",null)}getDestination(e){return"string"!==typeof e?Promise.reject(new Error("Invalid destination request.")):this.messageHandler.sendWithPromise("GetDestination",{id:e})}getPageLabels(){return this.messageHandler.sendWithPromise("GetPageLabels",null)}getPageLayout(){return this.messageHandler.sendWithPromise("GetPageLayout",null)}getPageMode(){return this.messageHandler.sendWithPromise("GetPageMode",null)}getViewerPreferences(){return this.messageHandler.sendWithPromise("GetViewerPreferences",null)}getOpenAction(){return this.messageHandler.sendWithPromise("GetOpenAction",null)}getAttachments(){return this.messageHandler.sendWithPromise("GetAttachments",null)}getDocJSActions(){return _classPrivateMethodGet(this,_cacheSimpleMethod,_cacheSimpleMethod2).call(this,"GetDocJSActions")}getPageJSActions(e){return this.messageHandler.sendWithPromise("GetPageJSActions",{pageIndex:e})}getStructTree(e){return this.messageHandler.sendWithPromise("GetStructTree",{pageIndex:e})}getOutline(){return this.messageHandler.sendWithPromise("GetOutline",null)}getOptionalContentConfig(){return this.messageHandler.sendWithPromise("GetOptionalContentConfig",null).then((e=>new _optional_content_config.OptionalContentConfig(e)))}getPermissions(){return this.messageHandler.sendWithPromise("GetPermissions",null)}getMetadata(){var e="GetMetadata",t=_classPrivateFieldGet(this,_methodPromises).get(e);if(t)return t;var r=this.messageHandler.sendWithPromise(e,null).then((e=>{var t,r,n,o;return{info:e[0],metadata:e[1]?new _metadata.Metadata(e[1]):null,contentDispositionFilename:null!==(t=null===(r=this._fullReader)||void 0===r?void 0:r.filename)&&void 0!==t?t:null,contentLength:null!==(n=null===(o=this._fullReader)||void 0===o?void 0:o.contentLength)&&void 0!==n?n:null}}));return _classPrivateFieldGet(this,_methodPromises).set(e,r),r}getMarkInfo(){return this.messageHandler.sendWithPromise("GetMarkInfo",null)}startCleanup(){var e=arguments,t=this;return _asyncToGenerator((function*(){var r=e.length>0&&void 0!==e[0]&&e[0];if(!t.destroyed){for(var n of(yield t.messageHandler.sendWithPromise("Cleanup",null),_classPrivateFieldGet(t,_pageCache).values()))if(!n.cleanup())throw new Error("startCleanup: Page ".concat(n.pageNumber," is currently rendering."));t.commonObjs.clear(),r||t.fontLoader.clear(),_classPrivateFieldGet(t,_methodPromises).clear(),t.filterFactory.destroy(!0)}}))()}get loadingParams(){var{disableAutoFetch:e,enableXfa:t}=this._params;return(0,_util.shadow)(this,"loadingParams",{disableAutoFetch:e,enableXfa:t})}}function _cacheSimpleMethod2(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=_classPrivateFieldGet(this,_methodPromises).get(e);if(r)return r;var n=this.messageHandler.sendWithPromise(e,t);return _classPrivateFieldGet(this,_methodPromises).set(e,n),n}var _objs=new WeakMap,_ensureObj=new WeakSet;class PDFObjects{constructor(){_classPrivateMethodInitSpec(this,_ensureObj),_classPrivateFieldInitSpec(this,_objs,{writable:!0,value:Object.create(null)})}get(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(t){var r=_classPrivateMethodGet(this,_ensureObj,_ensureObj2).call(this,e);return r.capability.promise.then((()=>t(r.data))),null}var n=_classPrivateFieldGet(this,_objs)[e];if(null===n||void 0===n||!n.capability.settled)throw new Error("Requesting object that isn't resolved yet ".concat(e,"."));return n.data}has(e){var t=_classPrivateFieldGet(this,_objs)[e];return(null===t||void 0===t?void 0:t.capability.settled)||!1}resolve(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=_classPrivateMethodGet(this,_ensureObj,_ensureObj2).call(this,e);r.data=t,r.capability.resolve()}clear(){for(var e in _classPrivateFieldGet(this,_objs)){var t,{data:r}=_classPrivateFieldGet(this,_objs)[e];null===r||void 0===r||null===(t=r.bitmap)||void 0===t||t.close()}_classPrivateFieldSet(this,_objs,Object.create(null))}}function _ensureObj2(e){var t;return(t=_classPrivateFieldGet(this,_objs))[e]||(t[e]={capability:new _util.PromiseCapability,data:null})}var _internalRenderTask=new WeakMap;class RenderTask{constructor(e){_classPrivateFieldInitSpec(this,_internalRenderTask,{writable:!0,value:null}),_classPrivateFieldSet(this,_internalRenderTask,e),this.onContinue=null}get promise(){return _classPrivateFieldGet(this,_internalRenderTask).capability.promise}cancel(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;_classPrivateFieldGet(this,_internalRenderTask).cancel(null,e)}get separateAnnots(){var{separateAnnots:e}=_classPrivateFieldGet(this,_internalRenderTask).operatorList;if(!e)return!1;var{annotationCanvasMap:t}=_classPrivateFieldGet(this,_internalRenderTask);return e.form||e.canvas&&(null===t||void 0===t?void 0:t.size)>0}}exports.RenderTask=RenderTask;class InternalRenderTask{constructor(e){var{callback:t,params:r,objs:n,commonObjs:o,annotationCanvasMap:i,operatorList:a,pageIndex:s,canvasFactory:l,filterFactory:c,useRequestAnimationFrame:u=!1,pdfBug:d=!1,pageColors:p=null}=e;this.callback=t,this.params=r,this.objs=n,this.commonObjs=o,this.annotationCanvasMap=i,this.operatorListIdx=null,this.operatorList=a,this._pageIndex=s,this.canvasFactory=l,this.filterFactory=c,this._pdfBug=d,this.pageColors=p,this.running=!1,this.graphicsReadyCallback=null,this.graphicsReady=!1,this._useRequestAnimationFrame=!0===u&&"undefined"!==typeof window,this.cancelled=!1,this.capability=new _util.PromiseCapability,this.task=new RenderTask(this),this._cancelBound=this.cancel.bind(this),this._continueBound=this._continue.bind(this),this._scheduleNextBound=this._scheduleNext.bind(this),this._nextBound=this._next.bind(this),this._canvas=r.canvasContext.canvas}get completed(){return this.capability.promise.catch((function(){}))}initializeGraphics(e){var t,r,{transparency:n=!1,optionalContentConfig:o}=e;if(!this.cancelled){if(this._canvas){if(_classStaticPrivateFieldSpecGet(InternalRenderTask,InternalRenderTask,_canvasInUse).has(this._canvas))throw new Error("Cannot use the same canvas during multiple render() operations. Use different canvas or ensure previous operations were cancelled or completed.");_classStaticPrivateFieldSpecGet(InternalRenderTask,InternalRenderTask,_canvasInUse).add(this._canvas)}this._pdfBug&&null!==(t=globalThis.StepperManager)&&void 0!==t&&t.enabled&&(this.stepper=globalThis.StepperManager.create(this._pageIndex),this.stepper.init(this.operatorList),this.stepper.nextBreakPoint=this.stepper.getNextBreakPoint());var{canvasContext:i,viewport:a,transform:s,background:l}=this.params;this.gfx=new _canvas.CanvasGraphics(i,this.commonObjs,this.objs,this.canvasFactory,this.filterFactory,{optionalContentConfig:o},this.annotationCanvasMap,this.pageColors),this.gfx.beginDrawing({transform:s,viewport:a,transparency:n,background:l}),this.operatorListIdx=0,this.graphicsReady=!0,null===(r=this.graphicsReadyCallback)||void 0===r||r.call(this)}}cancel(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this.running=!1,this.cancelled=!0,null===(e=this.gfx)||void 0===e||e.endDrawing(),_classStaticPrivateFieldSpecGet(InternalRenderTask,InternalRenderTask,_canvasInUse).delete(this._canvas),this.callback(t||new _display_utils.RenderingCancelledException("Rendering cancelled, page ".concat(this._pageIndex+1),r))}operatorListChanged(){var e;this.graphicsReady?(null===(e=this.stepper)||void 0===e||e.updateOperatorList(this.operatorList),this.running||this._continue()):this.graphicsReadyCallback||(this.graphicsReadyCallback=this._continueBound)}_continue(){this.running=!0,this.cancelled||(this.task.onContinue?this.task.onContinue(this._scheduleNextBound):this._scheduleNext())}_scheduleNext(){this._useRequestAnimationFrame?window.requestAnimationFrame((()=>{this._nextBound().catch(this._cancelBound)})):Promise.resolve().then(this._nextBound).catch(this._cancelBound)}_next(){var e=this;return _asyncToGenerator((function*(){e.cancelled||(e.operatorListIdx=e.gfx.executeOperatorList(e.operatorList,e.operatorListIdx,e._continueBound,e.stepper),e.operatorListIdx===e.operatorList.argsArray.length&&(e.running=!1,e.operatorList.lastChunk&&(e.gfx.endDrawing(),_classStaticPrivateFieldSpecGet(InternalRenderTask,InternalRenderTask,_canvasInUse).delete(e._canvas),e.callback())))}))()}}var _canvasInUse={writable:!0,value:new WeakSet},version="3.11.174";exports.version=version;var build="ce8716743";exports.build=build},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SerializableEmpty=t.PrintAnnotationStorage=t.AnnotationStorage=void 0;var n=r(1),o=r(4),i=r(8),a=Object.freeze({map:null,hash:"",transfers:void 0});t.SerializableEmpty=a;var s=new WeakMap,l=new WeakMap,c=new WeakSet;class u{constructor(){_classPrivateMethodInitSpec(this,c),_classPrivateFieldInitSpec(this,s,{writable:!0,value:!1}),_classPrivateFieldInitSpec(this,l,{writable:!0,value:new Map}),this.onSetModified=null,this.onResetModified=null,this.onAnnotationEditor=null}getValue(e,t){var r=_classPrivateFieldGet(this,l).get(e);return void 0===r?t:Object.assign(t,r)}getRawValue(e){return _classPrivateFieldGet(this,l).get(e)}remove(e){if(_classPrivateFieldGet(this,l).delete(e),0===_classPrivateFieldGet(this,l).size&&this.resetModified(),"function"===typeof this.onAnnotationEditor){for(var t of _classPrivateFieldGet(this,l).values())if(t instanceof o.AnnotationEditor)return;this.onAnnotationEditor(null)}}setValue(e,t){var r=_classPrivateFieldGet(this,l).get(e),n=!1;if(void 0!==r)for(var[i,a]of Object.entries(t))r[i]!==a&&(n=!0,r[i]=a);else n=!0,_classPrivateFieldGet(this,l).set(e,t);n&&_classPrivateMethodGet(this,c,d).call(this),t instanceof o.AnnotationEditor&&"function"===typeof this.onAnnotationEditor&&this.onAnnotationEditor(t.constructor._type)}has(e){return _classPrivateFieldGet(this,l).has(e)}getAll(){return _classPrivateFieldGet(this,l).size>0?(0,n.objectFromMap)(_classPrivateFieldGet(this,l)):null}setAll(e){for(var[t,r]of Object.entries(e))this.setValue(t,r)}get size(){return _classPrivateFieldGet(this,l).size}resetModified(){_classPrivateFieldGet(this,s)&&(_classPrivateFieldSet(this,s,!1),"function"===typeof this.onResetModified&&this.onResetModified())}get print(){return new f(this)}get serializable(){if(0===_classPrivateFieldGet(this,l).size)return a;var e=new Map,t=new i.MurmurHash3_64,r=[],n=Object.create(null),s=!1;for(var[c,u]of _classPrivateFieldGet(this,l)){var d=u instanceof o.AnnotationEditor?u.serialize(!1,n):u;d&&(e.set(c,d),t.update("".concat(c,":").concat(JSON.stringify(d))),s||(s=!!d.bitmap))}if(s)for(var p of e.values())p.bitmap&&r.push(p.bitmap);return e.size>0?{map:e,hash:t.hexdigest(),transfers:r}:a}}function d(){_classPrivateFieldGet(this,s)||(_classPrivateFieldSet(this,s,!0),"function"===typeof this.onSetModified&&this.onSetModified())}t.AnnotationStorage=u;var p=new WeakMap;class f extends u{constructor(e){super(),_classPrivateFieldInitSpec(this,p,{writable:!0,value:void 0});var{map:t,hash:r,transfers:n}=e.serializable,o=structuredClone(t,n?{transfer:n}:null);_classPrivateFieldSet(this,p,{map:o,hash:r,transfers:n})}get print(){(0,n.unreachable)("Should not call PrintAnnotationStorage.print")}get serializable(){return _classPrivateFieldGet(this,p)}}t.PrintAnnotationStorage=f},(e,t,r)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.AnnotationEditor=void 0;var o=r(5),i=r(1),a=r(6),s=new WeakMap,l=new WeakMap,c=new WeakMap,u=new WeakMap,d=new WeakMap,p=new WeakMap,f=new WeakMap,h=new WeakMap,v=new WeakMap,g=new WeakMap,m=new WeakMap,b=new WeakMap,y=new WeakMap,A=new WeakMap,_=new WeakSet,C=new WeakSet,w=new WeakSet,x=new WeakSet,k=new WeakSet,S=new WeakSet,P=new WeakSet,E=new WeakSet;class O{constructor(e){_classPrivateMethodInitSpec(this,E),_classPrivateMethodInitSpec(this,P),_classPrivateMethodInitSpec(this,S),_classPrivateMethodInitSpec(this,k),_classPrivateMethodInitSpec(this,x),_classPrivateMethodInitSpec(this,w),_classPrivateMethodInitSpec(this,C),_classPrivateMethodInitSpec(this,_),_classPrivateFieldInitSpec(this,s,{writable:!0,value:""}),_classPrivateFieldInitSpec(this,l,{writable:!0,value:!1}),_classPrivateFieldInitSpec(this,c,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,u,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,d,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,p,{writable:!0,value:!1}),_classPrivateFieldInitSpec(this,f,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,h,{writable:!0,value:this.focusin.bind(this)}),_classPrivateFieldInitSpec(this,v,{writable:!0,value:this.focusout.bind(this)}),_classPrivateFieldInitSpec(this,g,{writable:!0,value:!1}),_classPrivateFieldInitSpec(this,m,{writable:!0,value:!1}),_classPrivateFieldInitSpec(this,b,{writable:!0,value:!1}),_defineProperty(this,"_initialOptions",Object.create(null)),_defineProperty(this,"_uiManager",null),_defineProperty(this,"_focusEventsAllowed",!0),_defineProperty(this,"_l10nPromise",null),_classPrivateFieldInitSpec(this,y,{writable:!0,value:!1}),_classPrivateFieldInitSpec(this,A,{writable:!0,value:O._zIndex++}),this.constructor===O&&(0,i.unreachable)("Cannot initialize AnnotationEditor."),this.parent=e.parent,this.id=e.id,this.width=this.height=null,this.pageIndex=e.parent.pageIndex,this.name=e.name,this.div=null,this._uiManager=e.uiManager,this.annotationElementId=null,this._willKeepAspectRatio=!1,this._initialOptions.isCentered=e.isCentered,this._structTreeParentId=null;var{rotation:t,rawDims:{pageWidth:r,pageHeight:n,pageX:o,pageY:a}}=this.parent.viewport;this.rotation=t,this.pageRotation=(360+t-this._uiManager.viewParameters.rotation)%360,this.pageDimensions=[r,n],this.pageTranslation=[o,a];var[M,F]=this.parentDimensions;this.x=e.x/M,this.y=e.y/F,this.isAttachedToDOM=!1,this.deleted=!1}get editorType(){return Object.getPrototypeOf(this).constructor._type}static get _defaultLineColor(){return(0,i.shadow)(this,"_defaultLineColor",this._colorManager.getHexCode("CanvasText"))}static deleteAnnotationElement(e){var t=new N({id:e.parent.getNextId(),parent:e.parent,uiManager:e._uiManager});t.annotationElementId=e.annotationElementId,t.deleted=!0,t._uiManager.addToAnnotationStorage(t)}static initialize(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(O._l10nPromise||(O._l10nPromise=new Map(["editor_alt_text_button_label","editor_alt_text_edit_button_label","editor_alt_text_decorative_tooltip"].map((t=>[t,e.get(t)])))),null!==t&&void 0!==t&&t.strings)for(var r of t.strings)O._l10nPromise.set(r,e.get(r));if(-1===O._borderLineWidth){var n=getComputedStyle(document.documentElement);O._borderLineWidth=parseFloat(n.getPropertyValue("--outline-width"))||0}}static updateDefaultParams(e,t){}static get defaultPropertiesToUpdate(){return[]}static isHandlingMimeForPasting(e){return!1}static paste(e,t){(0,i.unreachable)("Not implemented")}get propertiesToUpdate(){return[]}get _isDraggable(){return _classPrivateFieldGet(this,y)}set _isDraggable(e){var t;_classPrivateFieldSet(this,y,e),null===(t=this.div)||void 0===t||t.classList.toggle("draggable",e)}center(){var[e,t]=this.pageDimensions;switch(this.parentRotation){case 90:this.x-=this.height*t/(2*e),this.y+=this.width*e/(2*t);break;case 180:this.x+=this.width/2,this.y+=this.height/2;break;case 270:this.x+=this.height*t/(2*e),this.y-=this.width*e/(2*t);break;default:this.x-=this.width/2,this.y-=this.height/2}this.fixAndSetPosition()}addCommands(e){this._uiManager.addCommands(e)}get currentLayer(){return this._uiManager.currentLayer}setInBackground(){this.div.style.zIndex=0}setInForeground(){this.div.style.zIndex=_classPrivateFieldGet(this,A)}setParent(e){null!==e&&(this.pageIndex=e.pageIndex,this.pageDimensions=e.pageDimensions),this.parent=e}focusin(e){this._focusEventsAllowed&&(_classPrivateFieldGet(this,g)?_classPrivateFieldSet(this,g,!1):this.parent.setSelected(this))}focusout(e){var t;if(this._focusEventsAllowed&&this.isAttachedToDOM){var r=e.relatedTarget;null!==r&&void 0!==r&&r.closest("#".concat(this.id))||(e.preventDefault(),null!==(t=this.parent)&&void 0!==t&&t.isMultipleSelection||this.commitOrRemove())}}commitOrRemove(){this.isEmpty()?this.remove():this.commit()}commit(){this.addToAnnotationStorage()}addToAnnotationStorage(){this._uiManager.addToAnnotationStorage(this)}setAt(e,t,r,n){var[o,i]=this.parentDimensions;[r,n]=this.screenToPageTranslation(r,n),this.x=(e+r)/o,this.y=(t+n)/i,this.fixAndSetPosition()}translate(e,t){_classPrivateMethodGet(this,_,M).call(this,this.parentDimensions,e,t)}translateInPage(e,t){_classPrivateMethodGet(this,_,M).call(this,this.pageDimensions,e,t),this.div.scrollIntoView({block:"nearest"})}drag(e,t){var[r,n]=this.parentDimensions;if(this.x+=e/r,this.y+=t/n,this.parent&&(this.x<0||this.x>1||this.y<0||this.y>1)){var{x:o,y:i}=this.div.getBoundingClientRect();this.parent.findNewParent(this,o,i)&&(this.x-=Math.floor(this.x),this.y-=Math.floor(this.y))}var{x:a,y:s}=this,[l,c]=_classPrivateMethodGet(this,C,F).call(this);a+=l,s+=c,this.div.style.left="".concat((100*a).toFixed(2),"%"),this.div.style.top="".concat((100*s).toFixed(2),"%"),this.div.scrollIntoView({block:"nearest"})}fixAndSetPosition(){var[e,t]=this.pageDimensions,{x:r,y:n,width:o,height:i}=this;switch(o*=e,i*=t,r*=e,n*=t,this.rotation){case 0:r=Math.max(0,Math.min(e-o,r)),n=Math.max(0,Math.min(t-i,n));break;case 90:r=Math.max(0,Math.min(e-i,r)),n=Math.min(t,Math.max(o,n));break;case 180:r=Math.min(e,Math.max(o,r)),n=Math.min(t,Math.max(i,n));break;case 270:r=Math.min(e,Math.max(i,r)),n=Math.max(0,Math.min(t-o,n))}this.x=r/=e,this.y=n/=t;var[a,s]=_classPrivateMethodGet(this,C,F).call(this);r+=a,n+=s;var{style:l}=this.div;l.left="".concat((100*r).toFixed(2),"%"),l.top="".concat((100*n).toFixed(2),"%"),this.moveInDOM()}screenToPageTranslation(e,t){return _classStaticPrivateMethodGet(O,O,R).call(O,e,t,this.parentRotation)}pageTranslationToScreen(e,t){return _classStaticPrivateMethodGet(O,O,R).call(O,e,t,360-this.parentRotation)}get parentScale(){return this._uiManager.viewParameters.realScale}get parentRotation(){return(this._uiManager.viewParameters.rotation+this.pageRotation)%360}get parentDimensions(){var{parentScale:e,pageDimensions:[t,r]}=this,n=t*e,o=r*e;return i.FeatureTest.isCSSRoundSupported?[Math.round(n),Math.round(o)]:[n,o]}setDims(e,t){var r,[n,o]=this.parentDimensions;this.div.style.width="".concat((100*e/n).toFixed(2),"%"),_classPrivateFieldGet(this,p)||(this.div.style.height="".concat((100*t/o).toFixed(2),"%")),null===(r=_classPrivateFieldGet(this,c))||void 0===r||r.classList.toggle("small",ee.stopPropagation())),t.addEventListener("click",(t=>{t.preventDefault(),e._uiManager.editAltText(e)}),{capture:!0}),t.addEventListener("keydown",(r=>{r.target===t&&"Enter"===r.key&&(r.preventDefault(),e._uiManager.editAltText(e))})),_classPrivateMethodGet(e,P,B).call(e),e.div.append(t),O.SMALL_EDITOR_SIZE||(O.SMALL_EDITOR_SIZE=Math.min(128,Math.round(1.4*t.getBoundingClientRect().width)))}}))()}getClientDimensions(){return this.div.getBoundingClientRect()}get altTextData(){return{altText:_classPrivateFieldGet(this,s),decorative:_classPrivateFieldGet(this,l)}}set altTextData(e){var{altText:t,decorative:r}=e;_classPrivateFieldGet(this,s)===t&&_classPrivateFieldGet(this,l)===r||(_classPrivateFieldSet(this,s,t),_classPrivateFieldSet(this,l,r),_classPrivateMethodGet(this,P,B).call(this))}render(){this.div=document.createElement("div"),this.div.setAttribute("data-editor-rotation",(360-this.rotation)%360),this.div.className=this.name,this.div.setAttribute("id",this.id),this.div.setAttribute("tabIndex",0),this.setInForeground(),this.div.addEventListener("focusin",_classPrivateFieldGet(this,h)),this.div.addEventListener("focusout",_classPrivateFieldGet(this,v));var[e,t]=this.parentDimensions;this.parentRotation%180!==0&&(this.div.style.maxWidth="".concat((100*t/e).toFixed(2),"%"),this.div.style.maxHeight="".concat((100*e/t).toFixed(2),"%"));var[r,n]=this.getInitialTranslation();return this.translate(r,n),(0,o.bindEvents)(this,this.div,["pointerdown"]),this.div}pointerdown(e){var{isMac:t}=i.FeatureTest.platform;0!==e.button||e.ctrlKey&&t?e.preventDefault():(_classPrivateFieldSet(this,g,!0),_classPrivateMethodGet(this,E,Z).call(this,e))}moveInDOM(){var e;null===(e=this.parent)||void 0===e||e.moveEditorInDOM(this)}_setParentAndPosition(e,t,r){e.changeParent(this),this.x=t,this.y=r,this.fixAndSetPosition()}getRect(e,t){var r=this.parentScale,[n,o]=this.pageDimensions,[i,a]=this.pageTranslation,s=e/r,l=t/r,c=this.x*n,u=this.y*o,d=this.width*n,p=this.height*o;switch(this.rotation){case 0:return[c+s+i,o-u-l-p+a,c+s+d+i,o-u-l+a];case 90:return[c+l+i,o-u+s+a,c+l+p+i,o-u+s+d+a];case 180:return[c-s-d+i,o-u+l+a,c-s+i,o-u+l+p+a];case 270:return[c-l-p+i,o-u-s-d+a,c-l+i,o-u-s+a];default:throw new Error("Invalid rotation")}}getRectInCurrentCoords(e,t){var[r,n,o,i]=e,a=o-r,s=i-n;switch(this.rotation){case 0:return[r,t-i,a,s];case 90:return[r,t-n,s,a];case 180:return[o,t-n,a,s];case 270:return[o,t-i,s,a];default:throw new Error("Invalid rotation")}}onceAdded(){}isEmpty(){return!1}enableEditMode(){_classPrivateFieldSet(this,b,!0)}disableEditMode(){_classPrivateFieldSet(this,b,!1)}isInEditMode(){return _classPrivateFieldGet(this,b)}shouldGetKeyboardEvents(){return!1}needsToBeRebuilt(){return this.div&&!this.isAttachedToDOM}rebuild(){var e,t;null===(e=this.div)||void 0===e||e.addEventListener("focusin",_classPrivateFieldGet(this,h)),null===(t=this.div)||void 0===t||t.addEventListener("focusout",_classPrivateFieldGet(this,v))}serialize(){(0,i.unreachable)("An editor must be serializable")}static deserialize(e,t,r){var n=new this.prototype.constructor({parent:t,id:t.getNextId(),uiManager:r});n.rotation=e.rotation;var[o,i]=n.pageDimensions,[a,s,l,c]=n.getRectInCurrentCoords(e.rect,i);return n.x=a/o,n.y=s/i,n.width=l/o,n.height=c/i,n}remove(){var e;this.div.removeEventListener("focusin",_classPrivateFieldGet(this,h)),this.div.removeEventListener("focusout",_classPrivateFieldGet(this,v)),this.isEmpty()||this.commit(),this.parent?this.parent.remove(this):this._uiManager.removeEditor(this),null===(e=_classPrivateFieldGet(this,c))||void 0===e||e.remove(),_classPrivateFieldSet(this,c,null),_classPrivateFieldSet(this,u,null)}get isResizable(){return!1}makeResizable(){this.isResizable&&(_classPrivateMethodGet(this,x,I).call(this),_classPrivateFieldGet(this,f).classList.remove("hidden"))}select(){var e;this.makeResizable(),null===(e=this.div)||void 0===e||e.classList.add("selectedEditor")}unselect(){var e,t,r;null===(e=_classPrivateFieldGet(this,f))||void 0===e||e.classList.add("hidden"),null===(t=this.div)||void 0===t||t.classList.remove("selectedEditor"),null!==(r=this.div)&&void 0!==r&&r.contains(document.activeElement)&&this._uiManager.currentLayer.div.focus()}updateParams(e,t){}disableEditing(){_classPrivateFieldGet(this,c)&&(_classPrivateFieldGet(this,c).hidden=!0)}enableEditing(){_classPrivateFieldGet(this,c)&&(_classPrivateFieldGet(this,c).hidden=!1)}enterInEditMode(){}get contentDiv(){return this.div}get isEditing(){return _classPrivateFieldGet(this,m)}set isEditing(e){_classPrivateFieldSet(this,m,e),this.parent&&(e?(this.parent.setSelected(this),this.parent.setActiveEditor(this)):this.parent.setActiveEditor(null))}setAspectRatio(e,t){_classPrivateFieldSet(this,p,!0);var r=e/t,{style:n}=this.div;n.aspectRatio=r,n.height="auto"}static get MIN_SIZE(){return 16}}function M(e,t,r){var[n,o]=e;[t,r]=this.screenToPageTranslation(t,r),this.x+=t/n,this.y+=r/o,this.fixAndSetPosition()}function F(){var[e,t]=this.parentDimensions,{_borderLineWidth:r}=n,o=r/e,i=r/t;switch(this.rotation){case 90:return[-o,i];case 180:return[o,i];case 270:return[o,-i];default:return[-o,-i]}}function R(e,t,r){switch(r){case 90:return[t,-e];case 180:return[-e,-t];case 270:return[-t,e];default:return[e,t]}}function T(e){switch(e){case 90:var[t,r]=this.pageDimensions;return[0,-t/r,r/t,0];case 180:return[-1,0,0,-1];case 270:var[n,o]=this.pageDimensions;return[0,n/o,-o/n,0];default:return[1,0,0,1]}}function I(){if(!_classPrivateFieldGet(this,f)){_classPrivateFieldSet(this,f,document.createElement("div")),_classPrivateFieldGet(this,f).classList.add("resizers");var e=["topLeft","topRight","bottomRight","bottomLeft"];for(var t of(this._willKeepAspectRatio||e.push("topMiddle","middleRight","bottomMiddle","middleLeft"),e)){var r=document.createElement("div");_classPrivateFieldGet(this,f).append(r),r.classList.add("resizer",t),r.addEventListener("pointerdown",_classPrivateMethodGet(this,k,D).bind(this,t)),r.addEventListener("contextmenu",a.noContextMenu)}this.div.prepend(_classPrivateFieldGet(this,f))}}function D(e,t){t.preventDefault();var{isMac:r}=i.FeatureTest.platform;if(!(0!==t.button||t.ctrlKey&&r)){var n=_classPrivateMethodGet(this,S,j).bind(this,e),o=this._isDraggable;this._isDraggable=!1;var a={passive:!0,capture:!0};window.addEventListener("pointermove",n,a);var s=this.x,l=this.y,c=this.width,u=this.height,d=this.parent.div.style.cursor,p=this.div.style.cursor;this.div.style.cursor=this.parent.div.style.cursor=window.getComputedStyle(t.target).cursor;var f=()=>{this._isDraggable=o,window.removeEventListener("pointerup",f),window.removeEventListener("blur",f),window.removeEventListener("pointermove",n,a),this.parent.div.style.cursor=d,this.div.style.cursor=p;var e=this.x,t=this.y,r=this.width,i=this.height;e===s&&t===l&&r===c&&i===u||this.addCommands({cmd:()=>{this.width=r,this.height=i,this.x=e,this.y=t;var[n,o]=this.parentDimensions;this.setDims(n*r,o*i),this.fixAndSetPosition()},undo:()=>{this.width=c,this.height=u,this.x=s,this.y=l;var[e,t]=this.parentDimensions;this.setDims(e*c,t*u),this.fixAndSetPosition()},mustExec:!0})};window.addEventListener("pointerup",f),window.addEventListener("blur",f)}}function j(e,t){var r,o,[i,a]=this.parentDimensions,s=this.x,l=this.y,c=this.width,u=this.height,d=n.MIN_SIZE/i,p=n.MIN_SIZE/a,f=e=>Math.round(1e4*e)/1e4,h=_classPrivateMethodGet(this,w,T).call(this,this.rotation),v=(e,t)=>[h[0]*e+h[2]*t,h[1]*e+h[3]*t],g=_classPrivateMethodGet(this,w,T).call(this,360-this.rotation),m=!1,b=!1;switch(e){case"topLeft":m=!0,r=(e,t)=>[0,0],o=(e,t)=>[e,t];break;case"topMiddle":r=(e,t)=>[e/2,0],o=(e,t)=>[e/2,t];break;case"topRight":m=!0,r=(e,t)=>[e,0],o=(e,t)=>[0,t];break;case"middleRight":b=!0,r=(e,t)=>[e,t/2],o=(e,t)=>[0,t/2];break;case"bottomRight":m=!0,r=(e,t)=>[e,t],o=(e,t)=>[0,0];break;case"bottomMiddle":r=(e,t)=>[e/2,t],o=(e,t)=>[e/2,0];break;case"bottomLeft":m=!0,r=(e,t)=>[0,t],o=(e,t)=>[e,0];break;case"middleLeft":b=!0,r=(e,t)=>[0,t/2],o=(e,t)=>[e,t/2]}var y,A,_=r(c,u),C=o(c,u),x=v(...C),k=f(s+x[0]),S=f(l+x[1]),P=1,E=1,[O,M]=this.screenToPageTranslation(t.movementX,t.movementY);if([O,M]=(y=O/i,A=M/a,[g[0]*y+g[2]*A,g[1]*y+g[3]*A]),m){var F=Math.hypot(c,u);P=E=Math.max(Math.min(Math.hypot(C[0]-_[0]-O,C[1]-_[1]-M)/F,1/c,1/u),d/c,p/u)}else b?P=Math.max(d,Math.min(1,Math.abs(C[0]-_[0]-O)))/c:E=Math.max(p,Math.min(1,Math.abs(C[1]-_[1]-M)))/u;var R=f(c*P),I=f(u*E),D=k-(x=v(...o(R,I)))[0],j=S-x[1];this.width=R,this.height=I,this.x=D,this.y=j,this.setDims(i*R,a*I),this.fixAndSetPosition()}function B(){return L.apply(this,arguments)}function L(){return(L=_asyncToGenerator((function*(){var e=_classPrivateFieldGet(this,c);if(e){var t;if(!_classPrivateFieldGet(this,s)&&!_classPrivateFieldGet(this,l))return e.classList.remove("done"),void(null===(t=_classPrivateFieldGet(this,u))||void 0===t||t.remove());n._l10nPromise.get("editor_alt_text_edit_button_label").then((t=>{e.setAttribute("aria-label",t)}));var r=_classPrivateFieldGet(this,u);if(!r){_classPrivateFieldSet(this,u,r=document.createElement("span")),r.className="tooltip",r.setAttribute("role","tooltip");var o=r.id="alt-text-tooltip-".concat(this.id);e.setAttribute("aria-describedby",o),e.addEventListener("mouseenter",(()=>{_classPrivateFieldSet(this,d,setTimeout((()=>{_classPrivateFieldSet(this,d,null),_classPrivateFieldGet(this,u).classList.add("show"),this._uiManager._eventBus.dispatch("reporttelemetry",{source:this,details:{type:"editing",subtype:this.editorType,data:{action:"alt_text_tooltip"}}})}),100))})),e.addEventListener("mouseleave",(()=>{var e;clearTimeout(_classPrivateFieldGet(this,d)),_classPrivateFieldSet(this,d,null),null===(e=_classPrivateFieldGet(this,u))||void 0===e||e.classList.remove("show")}))}e.classList.add("done"),r.innerText=_classPrivateFieldGet(this,l)?yield n._l10nPromise.get("editor_alt_text_decorative_tooltip"):_classPrivateFieldGet(this,s),r.parentNode||e.append(r)}}))).apply(this,arguments)}function Z(e){if(this._isDraggable){var t,r,n=this._uiManager.isSelected(this);this._uiManager.setUpDragSession(),n&&(t={passive:!0,capture:!0},r=e=>{var[t,r]=this.screenToPageTranslation(e.movementX,e.movementY);this._uiManager.dragSelectedEditors(t,r)},window.addEventListener("pointermove",r,t));var o=()=>{if(window.removeEventListener("pointerup",o),window.removeEventListener("blur",o),n&&window.removeEventListener("pointermove",r,t),_classPrivateFieldSet(this,g,!1),!this._uiManager.endDragSession()){var{isMac:a}=i.FeatureTest.platform;e.ctrlKey&&!a||e.shiftKey||e.metaKey&&a?this.parent.toggleSelected(this):this.parent.setSelected(this)}};window.addEventListener("pointerup",o),window.addEventListener("blur",o)}}n=O,_defineProperty(O,"_borderLineWidth",-1),_defineProperty(O,"_colorManager",new o.ColorManager),_defineProperty(O,"_zIndex",1),_defineProperty(O,"SMALL_EDITOR_SIZE",0),t.AnnotationEditor=O;class N extends O{constructor(e){super(e),this.annotationElementId=e.annotationElementId,this.deleted=!0}serialize(){return{id:this.annotationElementId,deleted:!0,pageIndex:this.pageIndex}}}},(e,t,r)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.KeyboardManager=t.CommandManager=t.ColorManager=t.AnnotationEditorUIManager=void 0,t.bindEvents=function(e,t,r){for(var n of r)t.addEventListener(n,e[n].bind(e))},t.opacityToHex=function(e){return Math.round(Math.min(255,Math.max(1,255*e))).toString(16).padStart(2,"0")};var o=r(1),i=r(6),a=new WeakMap;class s{constructor(){_classPrivateFieldInitSpec(this,a,{writable:!0,value:0})}getId(){var e,t;return"".concat(o.AnnotationEditorPrefix).concat((_classPrivateFieldSet(this,a,(e=_classPrivateFieldGet(this,a),t=e++,e)),t))}}var l=new WeakMap,c=new WeakMap,u=new WeakMap,d=new WeakSet;class p{constructor(){_classPrivateMethodInitSpec(this,d),_classPrivateFieldInitSpec(this,l,{writable:!0,value:(0,o.getUuid)()}),_classPrivateFieldInitSpec(this,c,{writable:!0,value:0}),_classPrivateFieldInitSpec(this,u,{writable:!0,value:null})}static get _isSVGFittingCanvas(){var e=new OffscreenCanvas(1,3).getContext("2d"),t=new Image;t.src='data:image/svg+xml;charset=UTF-8,';var r=t.decode().then((()=>(e.drawImage(t,0,0,1,1,0,0,1,3),0===new Uint32Array(e.getImageData(0,0,1,1).data.buffer)[0])));return(0,o.shadow)(this,"_isSVGFittingCanvas",r)}getFromFile(e){var t=this;return _asyncToGenerator((function*(){var{lastModified:r,name:n,size:o,type:i}=e;return _classPrivateMethodGet(t,d,f).call(t,"".concat(r,"_").concat(n,"_").concat(o,"_").concat(i),e)}))()}getFromUrl(e){var t=this;return _asyncToGenerator((function*(){return _classPrivateMethodGet(t,d,f).call(t,e,e)}))()}getFromId(e){var t=this;return _asyncToGenerator((function*(){_classPrivateFieldGet(t,u)||_classPrivateFieldSet(t,u,new Map);var r=_classPrivateFieldGet(t,u).get(e);return r?r.bitmap?(r.refCounter+=1,r):r.file?t.getFromFile(r.file):t.getFromUrl(r.url):null}))()}getSvgUrl(e){var t=_classPrivateFieldGet(this,u).get(e);return null!==t&&void 0!==t&&t.isSvg?t.svgUrl:null}deleteId(e){_classPrivateFieldGet(this,u)||_classPrivateFieldSet(this,u,new Map);var t=_classPrivateFieldGet(this,u).get(e);t&&(t.refCounter-=1,0===t.refCounter&&(t.bitmap=null))}isValidId(e){return e.startsWith("image_".concat(_classPrivateFieldGet(this,l),"_"))}}function f(e,t){return h.apply(this,arguments)}function h(){return(h=_asyncToGenerator((function*(e,t){var r;_classPrivateFieldGet(this,u)||_classPrivateFieldSet(this,u,new Map);var o=_classPrivateFieldGet(this,u).get(e);if(null===o)return null;if(null!==(r=o)&&void 0!==r&&r.bitmap)return o.refCounter+=1,o;try{var i,a,s;if(o||(o={bitmap:null,id:"image_".concat(_classPrivateFieldGet(this,l),"_").concat((_classPrivateFieldSet(this,c,(i=_classPrivateFieldGet(this,c),a=i++,i)),a)),refCounter:0,isSvg:!1}),"string"===typeof t){o.url=t;var d=yield fetch(t);if(!d.ok)throw new Error(d.statusText);s=yield d.blob()}else s=o.file=t;if("image/svg+xml"===s.type){var p=n._isSVGFittingCanvas,f=new FileReader,h=new Image,v=new Promise(((e,t)=>{h.onload=()=>{o.bitmap=h,o.isSvg=!0,e()},f.onload=_asyncToGenerator((function*(){var e=o.svgUrl=f.result;h.src=(yield p)?"".concat(e,"#svgView(preserveAspectRatio(none))"):e})),h.onerror=f.onerror=t}));f.readAsDataURL(s),yield v}else o.bitmap=yield createImageBitmap(s);o.refCounter=1}catch(g){console.error(g),o=null}return _classPrivateFieldGet(this,u).set(e,o),o&&_classPrivateFieldGet(this,u).set(o.id,o),o}))).apply(this,arguments)}n=p;var v=new WeakMap,g=new WeakMap,m=new WeakMap,b=new WeakMap;class y{constructor(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:128;_classPrivateFieldInitSpec(this,v,{writable:!0,value:[]}),_classPrivateFieldInitSpec(this,g,{writable:!0,value:!1}),_classPrivateFieldInitSpec(this,m,{writable:!0,value:void 0}),_classPrivateFieldInitSpec(this,b,{writable:!0,value:-1}),_classPrivateFieldSet(this,m,e)}add(e){var{cmd:t,undo:r,mustExec:n,type:o=NaN,overwriteIfSameType:i=!1,keepUndo:a=!1}=e;if(n&&t(),!_classPrivateFieldGet(this,g)){var s={cmd:t,undo:r,type:o};if(-1===_classPrivateFieldGet(this,b))return _classPrivateFieldGet(this,v).length>0&&(_classPrivateFieldGet(this,v).length=0),_classPrivateFieldSet(this,b,0),void _classPrivateFieldGet(this,v).push(s);if(i&&_classPrivateFieldGet(this,v)[_classPrivateFieldGet(this,b)].type===o)return a&&(s.undo=_classPrivateFieldGet(this,v)[_classPrivateFieldGet(this,b)].undo),void(_classPrivateFieldGet(this,v)[_classPrivateFieldGet(this,b)]=s);var l=_classPrivateFieldGet(this,b)+1;l===_classPrivateFieldGet(this,m)?_classPrivateFieldGet(this,v).splice(0,1):(_classPrivateFieldSet(this,b,l),l<_classPrivateFieldGet(this,v).length&&_classPrivateFieldGet(this,v).splice(l)),_classPrivateFieldGet(this,v).push(s)}}undo(){-1!==_classPrivateFieldGet(this,b)&&(_classPrivateFieldSet(this,g,!0),_classPrivateFieldGet(this,v)[_classPrivateFieldGet(this,b)].undo(),_classPrivateFieldSet(this,g,!1),_classPrivateFieldSet(this,b,_classPrivateFieldGet(this,b)-1))}redo(){_classPrivateFieldGet(this,b)<_classPrivateFieldGet(this,v).length-1&&(_classPrivateFieldSet(this,b,_classPrivateFieldGet(this,b)+1),_classPrivateFieldSet(this,g,!0),_classPrivateFieldGet(this,v)[_classPrivateFieldGet(this,b)].cmd(),_classPrivateFieldSet(this,g,!1))}hasSomethingToUndo(){return-1!==_classPrivateFieldGet(this,b)}hasSomethingToRedo(){return _classPrivateFieldGet(this,b)<_classPrivateFieldGet(this,v).length-1}destroy(){_classPrivateFieldSet(this,v,null)}}t.CommandManager=y;var A=new WeakSet;class _{constructor(e){_classPrivateMethodInitSpec(this,A),this.buffer=[],this.callbacks=new Map,this.allKeys=new Set;var{isMac:t}=o.FeatureTest.platform;for(var[r,n,i={}]of e)for(var a of r){var s=a.startsWith("mac+");t&&s?(this.callbacks.set(a.slice(4),{callback:n,options:i}),this.allKeys.add(a.split("+").at(-1))):t||s||(this.callbacks.set(a,{callback:n,options:i}),this.allKeys.add(a.split("+").at(-1)))}}exec(e,t){if(this.allKeys.has(t.key)){var r=this.callbacks.get(_classPrivateMethodGet(this,A,C).call(this,t));if(r){var{callback:n,options:{bubbles:o=!1,args:i=[],checker:a=null}}=r;a&&!a(e,t)||(n.bind(e,...i)(),o||(t.stopPropagation(),t.preventDefault()))}}}}function C(e){e.altKey&&this.buffer.push("alt"),e.ctrlKey&&this.buffer.push("ctrl"),e.metaKey&&this.buffer.push("meta"),e.shiftKey&&this.buffer.push("shift"),this.buffer.push(e.key);var t=this.buffer.join("+");return this.buffer.length=0,t}t.KeyboardManager=_;class w{get _colors(){var e=new Map([["CanvasText",null],["Canvas",null]]);return(0,i.getColorValues)(e),(0,o.shadow)(this,"_colors",e)}convert(e){var t=(0,i.getRGB)(e);if(!window.matchMedia("(forced-colors: active)").matches)return t;for(var[r,n]of this._colors)if(n.every(((e,r)=>e===t[r])))return w._colorsMapping.get(r);return t}getHexCode(e){var t=this._colors.get(e);return t?o.Util.makeHexColor(...t):e}}_defineProperty(w,"_colorsMapping",new Map([["CanvasText",[0,0,0]],["Canvas",[255,255,255]]])),t.ColorManager=w;var x=new WeakMap,k=new WeakMap,S=new WeakMap,P=new WeakMap,E=new WeakMap,O=new WeakMap,M=new WeakMap,F=new WeakMap,R=new WeakMap,T=new WeakMap,I=new WeakMap,D=new WeakMap,j=new WeakMap,B=new WeakMap,L=new WeakMap,Z=new WeakMap,N=new WeakMap,G=new WeakMap,z=new WeakMap,W=new WeakMap,U=new WeakMap,q=new WeakMap,V=new WeakMap,H=new WeakMap,K=new WeakMap,Y=new WeakMap,$=new WeakMap,X=new WeakMap,Q=new WeakMap,J=new WeakMap,ee=new WeakMap,te=new WeakMap,re=new WeakMap,ne=new WeakMap,oe=new WeakSet,ie=new WeakSet,ae=new WeakSet,se=new WeakSet,le=new WeakSet,ce=new WeakSet,ue=new WeakSet,de=new WeakSet,pe=new WeakSet,fe=new WeakSet,he=new WeakSet,ve=new WeakSet,ge=new WeakSet;class me{static get _keyboardManager(){var e=me.prototype,t=e=>{var{activeElement:t}=document;return t&&_classPrivateFieldGet(e,re).contains(t)&&e.hasSomethingToControl()},r=this.TRANSLATE_SMALL,n=this.TRANSLATE_BIG;return(0,o.shadow)(this,"_keyboardManager",new _([[["ctrl+a","mac+meta+a"],e.selectAll],[["ctrl+z","mac+meta+z"],e.undo],[["ctrl+y","ctrl+shift+z","mac+meta+shift+z","ctrl+shift+Z","mac+meta+shift+Z"],e.redo],[["Backspace","alt+Backspace","ctrl+Backspace","shift+Backspace","mac+Backspace","mac+alt+Backspace","mac+ctrl+Backspace","Delete","ctrl+Delete","shift+Delete","mac+Delete"],e.delete],[["Escape","mac+Escape"],e.unselectAll],[["ArrowLeft","mac+ArrowLeft"],e.translateSelectedEditors,{args:[-r,0],checker:t}],[["ctrl+ArrowLeft","mac+shift+ArrowLeft"],e.translateSelectedEditors,{args:[-n,0],checker:t}],[["ArrowRight","mac+ArrowRight"],e.translateSelectedEditors,{args:[r,0],checker:t}],[["ctrl+ArrowRight","mac+shift+ArrowRight"],e.translateSelectedEditors,{args:[n,0],checker:t}],[["ArrowUp","mac+ArrowUp"],e.translateSelectedEditors,{args:[0,-r],checker:t}],[["ctrl+ArrowUp","mac+shift+ArrowUp"],e.translateSelectedEditors,{args:[0,-n],checker:t}],[["ArrowDown","mac+ArrowDown"],e.translateSelectedEditors,{args:[0,r],checker:t}],[["ctrl+ArrowDown","mac+shift+ArrowDown"],e.translateSelectedEditors,{args:[0,n],checker:t}]]))}constructor(e,t,r,n,a,l){_classPrivateMethodInitSpec(this,ge),_classPrivateMethodInitSpec(this,ve),_classPrivateMethodInitSpec(this,he),_classPrivateMethodInitSpec(this,fe),_classPrivateMethodInitSpec(this,pe),_classPrivateMethodInitSpec(this,de),_classPrivateMethodInitSpec(this,ue),_classPrivateMethodInitSpec(this,ce),_classPrivateMethodInitSpec(this,le),_classPrivateMethodInitSpec(this,se),_classPrivateMethodInitSpec(this,ae),_classPrivateMethodInitSpec(this,ie),_classPrivateMethodInitSpec(this,oe),_classPrivateFieldInitSpec(this,x,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,k,{writable:!0,value:new Map}),_classPrivateFieldInitSpec(this,S,{writable:!0,value:new Map}),_classPrivateFieldInitSpec(this,P,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,E,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,O,{writable:!0,value:new y}),_classPrivateFieldInitSpec(this,M,{writable:!0,value:0}),_classPrivateFieldInitSpec(this,F,{writable:!0,value:new Set}),_classPrivateFieldInitSpec(this,R,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,T,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,I,{writable:!0,value:new Set}),_classPrivateFieldInitSpec(this,D,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,j,{writable:!0,value:new s}),_classPrivateFieldInitSpec(this,B,{writable:!0,value:!1}),_classPrivateFieldInitSpec(this,L,{writable:!0,value:!1}),_classPrivateFieldInitSpec(this,Z,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,N,{writable:!0,value:o.AnnotationEditorType.NONE}),_classPrivateFieldInitSpec(this,G,{writable:!0,value:new Set}),_classPrivateFieldInitSpec(this,z,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,W,{writable:!0,value:this.blur.bind(this)}),_classPrivateFieldInitSpec(this,U,{writable:!0,value:this.focus.bind(this)}),_classPrivateFieldInitSpec(this,q,{writable:!0,value:this.copy.bind(this)}),_classPrivateFieldInitSpec(this,V,{writable:!0,value:this.cut.bind(this)}),_classPrivateFieldInitSpec(this,H,{writable:!0,value:this.paste.bind(this)}),_classPrivateFieldInitSpec(this,K,{writable:!0,value:this.keydown.bind(this)}),_classPrivateFieldInitSpec(this,Y,{writable:!0,value:this.onEditingAction.bind(this)}),_classPrivateFieldInitSpec(this,$,{writable:!0,value:this.onPageChanging.bind(this)}),_classPrivateFieldInitSpec(this,X,{writable:!0,value:this.onScaleChanging.bind(this)}),_classPrivateFieldInitSpec(this,Q,{writable:!0,value:this.onRotationChanging.bind(this)}),_classPrivateFieldInitSpec(this,J,{writable:!0,value:{isEditing:!1,isEmpty:!0,hasSomethingToUndo:!1,hasSomethingToRedo:!1,hasSelectedEditor:!1}}),_classPrivateFieldInitSpec(this,ee,{writable:!0,value:[0,0]}),_classPrivateFieldInitSpec(this,te,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,re,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,ne,{writable:!0,value:null}),_classPrivateFieldSet(this,re,e),_classPrivateFieldSet(this,ne,t),_classPrivateFieldSet(this,P,r),this._eventBus=n,this._eventBus._on("editingaction",_classPrivateFieldGet(this,Y)),this._eventBus._on("pagechanging",_classPrivateFieldGet(this,$)),this._eventBus._on("scalechanging",_classPrivateFieldGet(this,X)),this._eventBus._on("rotationchanging",_classPrivateFieldGet(this,Q)),_classPrivateFieldSet(this,E,a.annotationStorage),_classPrivateFieldSet(this,D,a.filterFactory),_classPrivateFieldSet(this,z,l),this.viewParameters={realScale:i.PixelsPerInch.PDF_TO_CSS_UNITS,rotation:0}}destroy(){for(var e of(_classPrivateMethodGet(this,se,_e).call(this),_classPrivateMethodGet(this,ie,ye).call(this),this._eventBus._off("editingaction",_classPrivateFieldGet(this,Y)),this._eventBus._off("pagechanging",_classPrivateFieldGet(this,$)),this._eventBus._off("scalechanging",_classPrivateFieldGet(this,X)),this._eventBus._off("rotationchanging",_classPrivateFieldGet(this,Q)),_classPrivateFieldGet(this,S).values()))e.destroy();_classPrivateFieldGet(this,S).clear(),_classPrivateFieldGet(this,k).clear(),_classPrivateFieldGet(this,I).clear(),_classPrivateFieldSet(this,x,null),_classPrivateFieldGet(this,G).clear(),_classPrivateFieldGet(this,O).destroy(),_classPrivateFieldGet(this,P).destroy()}get hcmFilter(){return(0,o.shadow)(this,"hcmFilter",_classPrivateFieldGet(this,z)?_classPrivateFieldGet(this,D).addHCMFilter(_classPrivateFieldGet(this,z).foreground,_classPrivateFieldGet(this,z).background):"none")}get direction(){return(0,o.shadow)(this,"direction",getComputedStyle(_classPrivateFieldGet(this,re)).direction)}editAltText(e){var t;null===(t=_classPrivateFieldGet(this,P))||void 0===t||t.editAltText(this,e)}onPageChanging(e){var{pageNumber:t}=e;_classPrivateFieldSet(this,M,t-1)}focusMainContainer(){_classPrivateFieldGet(this,re).focus()}findParent(e,t){for(var r of _classPrivateFieldGet(this,S).values()){var{x:n,y:o,width:i,height:a}=r.div.getBoundingClientRect();if(e>=n&&e<=n+i&&t>=o&&t<=o+a)return r}return null}disableUserSelect(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];_classPrivateFieldGet(this,ne).classList.toggle("noUserSelect",e)}addShouldRescale(e){_classPrivateFieldGet(this,I).add(e)}removeShouldRescale(e){_classPrivateFieldGet(this,I).delete(e)}onScaleChanging(e){var{scale:t}=e;for(var r of(this.commitOrRemove(),this.viewParameters.realScale=t*i.PixelsPerInch.PDF_TO_CSS_UNITS,_classPrivateFieldGet(this,I)))r.onScaleChanging()}onRotationChanging(e){var{pagesRotation:t}=e;this.commitOrRemove(),this.viewParameters.rotation=t}addToAnnotationStorage(e){e.isEmpty()||!_classPrivateFieldGet(this,E)||_classPrivateFieldGet(this,E).has(e.id)||_classPrivateFieldGet(this,E).setValue(e.id,e)}blur(){if(this.hasSelection){var{activeElement:e}=document;for(var t of _classPrivateFieldGet(this,G))if(t.div.contains(e)){_classPrivateFieldSet(this,Z,[t,e]),t._focusEventsAllowed=!1;break}}}focus(){if(_classPrivateFieldGet(this,Z)){var[e,t]=_classPrivateFieldGet(this,Z);_classPrivateFieldSet(this,Z,null),t.addEventListener("focusin",(()=>{e._focusEventsAllowed=!0}),{once:!0}),t.focus()}}addEditListeners(){_classPrivateMethodGet(this,ae,Ae).call(this),_classPrivateMethodGet(this,le,Ce).call(this)}removeEditListeners(){_classPrivateMethodGet(this,se,_e).call(this),_classPrivateMethodGet(this,ce,we).call(this)}copy(e){var t;if(e.preventDefault(),null===(t=_classPrivateFieldGet(this,x))||void 0===t||t.commitOrRemove(),this.hasSelection){var r=[];for(var n of _classPrivateFieldGet(this,G)){var o=n.serialize(!0);o&&r.push(o)}0!==r.length&&e.clipboardData.setData("application/pdfjs",JSON.stringify(r))}}cut(e){this.copy(e),this.delete()}paste(e){e.preventDefault();var{clipboardData:t}=e;for(var r of t.items)for(var n of _classPrivateFieldGet(this,T))if(n.isHandlingMimeForPasting(r.type))return void n.paste(r,this.currentLayer);var i=t.getData("application/pdfjs");if(i){try{i=JSON.parse(i)}catch(u){return void(0,o.warn)('paste: "'.concat(u.message,'".'))}if(Array.isArray(i)){this.unselectAll();var a=this.currentLayer;try{var s=[];for(var l of i){var c=a.deserialize(l);if(!c)return;s.push(c)}this.addCommands({cmd:()=>{for(var e of s)_classPrivateMethodGet(this,he,Ee).call(this,e);_classPrivateMethodGet(this,ge,Me).call(this,s)},undo:()=>{for(var e of s)e.remove()},mustExec:!0})}catch(u){(0,o.warn)('paste: "'.concat(u.message,'".'))}}}}keydown(e){var t;null!==(t=this.getActive())&&void 0!==t&&t.shouldGetKeyboardEvents()||me._keyboardManager.exec(this,e)}onEditingAction(e){["undo","redo","delete","selectAll"].includes(e.name)&&this[e.name]()}setEditingState(e){e?(_classPrivateMethodGet(this,oe,be).call(this),_classPrivateMethodGet(this,ae,Ae).call(this),_classPrivateMethodGet(this,le,Ce).call(this),_classPrivateMethodGet(this,ue,xe).call(this,{isEditing:_classPrivateFieldGet(this,N)!==o.AnnotationEditorType.NONE,isEmpty:_classPrivateMethodGet(this,ve,Oe).call(this),hasSomethingToUndo:_classPrivateFieldGet(this,O).hasSomethingToUndo(),hasSomethingToRedo:_classPrivateFieldGet(this,O).hasSomethingToRedo(),hasSelectedEditor:!1})):(_classPrivateMethodGet(this,ie,ye).call(this),_classPrivateMethodGet(this,se,_e).call(this),_classPrivateMethodGet(this,ce,we).call(this),_classPrivateMethodGet(this,ue,xe).call(this,{isEditing:!1}),this.disableUserSelect(!1))}registerEditorTypes(e){if(!_classPrivateFieldGet(this,T))for(var t of(_classPrivateFieldSet(this,T,e),_classPrivateFieldGet(this,T)))_classPrivateMethodGet(this,de,ke).call(this,t.defaultPropertiesToUpdate)}getId(){return _classPrivateFieldGet(this,j).getId()}get currentLayer(){return _classPrivateFieldGet(this,S).get(_classPrivateFieldGet(this,M))}getLayer(e){return _classPrivateFieldGet(this,S).get(e)}get currentPageIndex(){return _classPrivateFieldGet(this,M)}addLayer(e){_classPrivateFieldGet(this,S).set(e.pageIndex,e),_classPrivateFieldGet(this,B)?e.enable():e.disable()}removeLayer(e){_classPrivateFieldGet(this,S).delete(e.pageIndex)}updateMode(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(_classPrivateFieldGet(this,N)!==e){if(_classPrivateFieldSet(this,N,e),e===o.AnnotationEditorType.NONE)return this.setEditingState(!1),void _classPrivateMethodGet(this,fe,Pe).call(this);for(var r of(this.setEditingState(!0),_classPrivateMethodGet(this,pe,Se).call(this),this.unselectAll(),_classPrivateFieldGet(this,S).values()))r.updateMode(e);if(t)for(var n of _classPrivateFieldGet(this,k).values())if(n.annotationElementId===t){this.setSelected(n),n.enterInEditMode();break}}}updateToolbar(e){e!==_classPrivateFieldGet(this,N)&&this._eventBus.dispatch("switchannotationeditormode",{source:this,mode:e})}updateParams(e,t){if(_classPrivateFieldGet(this,T))if(e!==o.AnnotationEditorParamsType.CREATE){for(var r of _classPrivateFieldGet(this,G))r.updateParams(e,t);for(var n of _classPrivateFieldGet(this,T))n.updateDefaultParams(e,t)}else this.currentLayer.addNewEditor(e)}enableWaiting(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(_classPrivateFieldGet(this,L)!==e)for(var t of(_classPrivateFieldSet(this,L,e),_classPrivateFieldGet(this,S).values()))e?t.disableClick():t.enableClick(),t.div.classList.toggle("waiting",e)}getEditors(e){var t=[];for(var r of _classPrivateFieldGet(this,k).values())r.pageIndex===e&&t.push(r);return t}getEditor(e){return _classPrivateFieldGet(this,k).get(e)}addEditor(e){_classPrivateFieldGet(this,k).set(e.id,e)}removeEditor(e){var t;_classPrivateFieldGet(this,k).delete(e.id),this.unselect(e),e.annotationElementId&&_classPrivateFieldGet(this,F).has(e.annotationElementId)||null===(t=_classPrivateFieldGet(this,E))||void 0===t||t.remove(e.id)}addDeletedAnnotationElement(e){_classPrivateFieldGet(this,F).add(e.annotationElementId),e.deleted=!0}isDeletedAnnotationElement(e){return _classPrivateFieldGet(this,F).has(e)}removeDeletedAnnotationElement(e){_classPrivateFieldGet(this,F).delete(e.annotationElementId),e.deleted=!1}setActiveEditor(e){_classPrivateFieldGet(this,x)!==e&&(_classPrivateFieldSet(this,x,e),e&&_classPrivateMethodGet(this,de,ke).call(this,e.propertiesToUpdate))}toggleSelected(e){if(_classPrivateFieldGet(this,G).has(e))return _classPrivateFieldGet(this,G).delete(e),e.unselect(),void _classPrivateMethodGet(this,ue,xe).call(this,{hasSelectedEditor:this.hasSelection});_classPrivateFieldGet(this,G).add(e),e.select(),_classPrivateMethodGet(this,de,ke).call(this,e.propertiesToUpdate),_classPrivateMethodGet(this,ue,xe).call(this,{hasSelectedEditor:!0})}setSelected(e){for(var t of _classPrivateFieldGet(this,G))t!==e&&t.unselect();_classPrivateFieldGet(this,G).clear(),_classPrivateFieldGet(this,G).add(e),e.select(),_classPrivateMethodGet(this,de,ke).call(this,e.propertiesToUpdate),_classPrivateMethodGet(this,ue,xe).call(this,{hasSelectedEditor:!0})}isSelected(e){return _classPrivateFieldGet(this,G).has(e)}unselect(e){e.unselect(),_classPrivateFieldGet(this,G).delete(e),_classPrivateMethodGet(this,ue,xe).call(this,{hasSelectedEditor:this.hasSelection})}get hasSelection(){return 0!==_classPrivateFieldGet(this,G).size}undo(){_classPrivateFieldGet(this,O).undo(),_classPrivateMethodGet(this,ue,xe).call(this,{hasSomethingToUndo:_classPrivateFieldGet(this,O).hasSomethingToUndo(),hasSomethingToRedo:!0,isEmpty:_classPrivateMethodGet(this,ve,Oe).call(this)})}redo(){_classPrivateFieldGet(this,O).redo(),_classPrivateMethodGet(this,ue,xe).call(this,{hasSomethingToUndo:!0,hasSomethingToRedo:_classPrivateFieldGet(this,O).hasSomethingToRedo(),isEmpty:_classPrivateMethodGet(this,ve,Oe).call(this)})}addCommands(e){_classPrivateFieldGet(this,O).add(e),_classPrivateMethodGet(this,ue,xe).call(this,{hasSomethingToUndo:!0,hasSomethingToRedo:!1,isEmpty:_classPrivateMethodGet(this,ve,Oe).call(this)})}delete(){if(this.commitOrRemove(),this.hasSelection){var e=[..._classPrivateFieldGet(this,G)];this.addCommands({cmd:()=>{for(var t of e)t.remove()},undo:()=>{for(var t of e)_classPrivateMethodGet(this,he,Ee).call(this,t)},mustExec:!0})}}commitOrRemove(){var e;null===(e=_classPrivateFieldGet(this,x))||void 0===e||e.commitOrRemove()}hasSomethingToControl(){return _classPrivateFieldGet(this,x)||this.hasSelection}selectAll(){for(var e of _classPrivateFieldGet(this,G))e.commit();_classPrivateMethodGet(this,ge,Me).call(this,_classPrivateFieldGet(this,k).values())}unselectAll(){if(_classPrivateFieldGet(this,x))_classPrivateFieldGet(this,x).commitOrRemove();else if(this.hasSelection){for(var e of _classPrivateFieldGet(this,G))e.unselect();_classPrivateFieldGet(this,G).clear(),_classPrivateMethodGet(this,ue,xe).call(this,{hasSelectedEditor:!1})}}translateSelectedEditors(e,t){if(arguments.length>2&&void 0!==arguments[2]&&arguments[2]||this.commitOrRemove(),this.hasSelection){_classPrivateFieldGet(this,ee)[0]+=e,_classPrivateFieldGet(this,ee)[1]+=t;var[r,n]=_classPrivateFieldGet(this,ee),o=[..._classPrivateFieldGet(this,G)];for(var i of(_classPrivateFieldGet(this,te)&&clearTimeout(_classPrivateFieldGet(this,te)),_classPrivateFieldSet(this,te,setTimeout((()=>{_classPrivateFieldSet(this,te,null),_classPrivateFieldGet(this,ee)[0]=_classPrivateFieldGet(this,ee)[1]=0,this.addCommands({cmd:()=>{for(var e of o)_classPrivateFieldGet(this,k).has(e.id)&&e.translateInPage(r,n)},undo:()=>{for(var e of o)_classPrivateFieldGet(this,k).has(e.id)&&e.translateInPage(-r,-n)},mustExec:!1})}),1e3)),o))i.translateInPage(e,t)}}setUpDragSession(){if(this.hasSelection)for(var e of(this.disableUserSelect(!0),_classPrivateFieldSet(this,R,new Map),_classPrivateFieldGet(this,G)))_classPrivateFieldGet(this,R).set(e,{savedX:e.x,savedY:e.y,savedPageIndex:e.pageIndex,newX:0,newY:0,newPageIndex:-1})}endDragSession(){if(!_classPrivateFieldGet(this,R))return!1;this.disableUserSelect(!1);var e=_classPrivateFieldGet(this,R);_classPrivateFieldSet(this,R,null);var t=!1;for(var[{x:r,y:n,pageIndex:o},i]of e)i.newX=r,i.newY=n,i.newPageIndex=o,t||(t=r!==i.savedX||n!==i.savedY||o!==i.savedPageIndex);if(!t)return!1;var a=(e,t,r,n)=>{if(_classPrivateFieldGet(this,k).has(e.id)){var o=_classPrivateFieldGet(this,S).get(n);o?e._setParentAndPosition(o,t,r):(e.pageIndex=n,e.x=t,e.y=r)}};return this.addCommands({cmd:()=>{for(var[t,{newX:r,newY:n,newPageIndex:o}]of e)a(t,r,n,o)},undo:()=>{for(var[t,{savedX:r,savedY:n,savedPageIndex:o}]of e)a(t,r,n,o)},mustExec:!0}),!0}dragSelectedEditors(e,t){if(_classPrivateFieldGet(this,R))for(var r of _classPrivateFieldGet(this,R).keys())r.drag(e,t)}rebuild(e){if(null===e.parent){var t=this.getLayer(e.pageIndex);t?(t.changeParent(e),t.addOrRebuild(e)):(this.addEditor(e),this.addToAnnotationStorage(e),e.rebuild())}else e.parent.addOrRebuild(e)}isActive(e){return _classPrivateFieldGet(this,x)===e}getActive(){return _classPrivateFieldGet(this,x)}getMode(){return _classPrivateFieldGet(this,N)}get imageManager(){return(0,o.shadow)(this,"imageManager",new p)}}function be(){window.addEventListener("focus",_classPrivateFieldGet(this,U)),window.addEventListener("blur",_classPrivateFieldGet(this,W))}function ye(){window.removeEventListener("focus",_classPrivateFieldGet(this,U)),window.removeEventListener("blur",_classPrivateFieldGet(this,W))}function Ae(){window.addEventListener("keydown",_classPrivateFieldGet(this,K),{capture:!0})}function _e(){window.removeEventListener("keydown",_classPrivateFieldGet(this,K),{capture:!0})}function Ce(){document.addEventListener("copy",_classPrivateFieldGet(this,q)),document.addEventListener("cut",_classPrivateFieldGet(this,V)),document.addEventListener("paste",_classPrivateFieldGet(this,H))}function we(){document.removeEventListener("copy",_classPrivateFieldGet(this,q)),document.removeEventListener("cut",_classPrivateFieldGet(this,V)),document.removeEventListener("paste",_classPrivateFieldGet(this,H))}function xe(e){Object.entries(e).some((e=>{var[t,r]=e;return _classPrivateFieldGet(this,J)[t]!==r}))&&this._eventBus.dispatch("annotationeditorstateschanged",{source:this,details:Object.assign(_classPrivateFieldGet(this,J),e)})}function ke(e){this._eventBus.dispatch("annotationeditorparamschanged",{source:this,details:e})}function Se(){if(!_classPrivateFieldGet(this,B))for(var e of(_classPrivateFieldSet(this,B,!0),_classPrivateFieldGet(this,S).values()))e.enable()}function Pe(){if(this.unselectAll(),_classPrivateFieldGet(this,B))for(var e of(_classPrivateFieldSet(this,B,!1),_classPrivateFieldGet(this,S).values()))e.disable()}function Ee(e){var t=_classPrivateFieldGet(this,S).get(e.pageIndex);t?t.addOrRebuild(e):this.addEditor(e)}function Oe(){if(0===_classPrivateFieldGet(this,k).size)return!0;if(1===_classPrivateFieldGet(this,k).size)for(var e of _classPrivateFieldGet(this,k).values())return e.isEmpty();return!1}function Me(e){for(var t of(_classPrivateFieldGet(this,G).clear(),e))t.isEmpty()||(_classPrivateFieldGet(this,G).add(t),t.select());_classPrivateMethodGet(this,ue,xe).call(this,{hasSelectedEditor:!0})}_defineProperty(me,"TRANSLATE_SMALL",1),_defineProperty(me,"TRANSLATE_BIG",10),t.AnnotationEditorUIManager=me},(e,t,r)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.StatTimer=t.RenderingCancelledException=t.PixelsPerInch=t.PageViewport=t.PDFDateString=t.DOMStandardFontDataFactory=t.DOMSVGFactory=t.DOMFilterFactory=t.DOMCanvasFactory=t.DOMCMapReaderFactory=void 0,t.deprecated=function(e){console.log("Deprecated API usage: "+e)},t.getColorValues=function(e){var t=document.createElement("span");for(var r of(t.style.visibility="hidden",document.body.append(t),e.keys())){t.style.color=r;var n=window.getComputedStyle(t).color;e.set(r,q(n))}t.remove()},t.getCurrentTransform=function(e){var{a:t,b:r,c:n,d:o,e:i,f:a}=e.getTransform();return[t,r,n,o,i,a]},t.getCurrentTransformInverse=function(e){var{a:t,b:r,c:n,d:o,e:i,f:a}=e.getTransform().invertSelf();return[t,r,n,o,i,a]},t.getFilenameFromUrl=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t||([e]=e.split(/[#?]/,1)),e.substring(e.lastIndexOf("/")+1)},t.getPdfFilenameFromUrl=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"document.pdf";if("string"!==typeof e)return t;if(W(e))return(0,i.warn)('getPdfFilenameFromUrl: ignore "data:"-URL for performance reasons.'),t;var r=/[^/?#=]+\.pdf\b(?!.*\.pdf\b)/i,n=/^(?:(?:[^:]+:)?\/\/[^/]+)?([^?#]*)(\?[^#]*)?(#.*)?$/.exec(e),o=r.exec(n[1])||r.exec(n[2])||r.exec(n[3]);if(o&&(o=o[0]).includes("%"))try{o=r.exec(decodeURIComponent(o))[0]}catch(a){}return o||t},t.getRGB=q,t.getXfaPageViewport=function(e,t){var{scale:r=1,rotation:n=0}=t,{width:o,height:i}=e.attributes.style,a=[0,0,parseInt(o),parseInt(i)];return new G({viewBox:a,scale:r,rotation:n})},t.isDataScheme=W,t.isPdfFile=function(e){return"string"===typeof e&&/\.pdf$/i.test(e)},t.isValidFetchUrl=U,t.loadScript=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new Promise(((r,n)=>{var o=document.createElement("script");o.src=e,o.onload=function(e){t&&o.remove(),r(e)},o.onerror=function(){n(new Error("Cannot load script at: ".concat(o.src)))},(document.head||document.documentElement).append(o)}))},t.noContextMenu=function(e){e.preventDefault()},t.setLayerDimensions=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(t instanceof G){var{pageWidth:o,pageHeight:a}=t.rawDims,{style:s}=e,l=i.FeatureTest.isCSSRoundSupported,c="var(--scale-factor) * ".concat(o,"px"),u="var(--scale-factor) * ".concat(a,"px"),d=l?"round(".concat(c,", 1px)"):"calc(".concat(c,")"),p=l?"round(".concat(u,", 1px)"):"calc(".concat(u,")");r&&t.rotation%180!==0?(s.width=p,s.height=d):(s.width=d,s.height=p)}n&&e.setAttribute("data-main-rotation",t.rotation)};var o=r(7),i=r(1),a="http://www.w3.org/2000/svg";class s{}n=s,_defineProperty(s,"CSS",96),_defineProperty(s,"PDF",72),_defineProperty(s,"PDF_TO_CSS_UNITS",n.CSS/n.PDF),t.PixelsPerInch=s;var l,c=new WeakMap,u=new WeakMap,d=new WeakMap,p=new WeakMap,f=new WeakMap,h=new WeakMap,v=new WeakMap,g=new WeakMap,m=new WeakMap,b=new WeakMap,y=new WeakMap,A=new WeakMap,_=new WeakMap,C=new WeakSet,w=new WeakSet,x=new WeakSet,k=new WeakSet,S=new WeakSet;class P extends o.BaseFilterFactory{constructor(){var{docId:e,ownerDocument:t=globalThis.document}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super(),_classPrivateMethodInitSpec(this,S),_classPrivateMethodInitSpec(this,k),_classPrivateMethodInitSpec(this,x),_classPrivateMethodInitSpec(this,w),_classPrivateMethodInitSpec(this,C),_classPrivateFieldInitSpec(this,_,{get:O,set:void 0}),_classPrivateFieldInitSpec(this,A,{get:E,set:void 0}),_classPrivateFieldInitSpec(this,c,{writable:!0,value:void 0}),_classPrivateFieldInitSpec(this,u,{writable:!0,value:void 0}),_classPrivateFieldInitSpec(this,d,{writable:!0,value:void 0}),_classPrivateFieldInitSpec(this,p,{writable:!0,value:void 0}),_classPrivateFieldInitSpec(this,f,{writable:!0,value:void 0}),_classPrivateFieldInitSpec(this,h,{writable:!0,value:void 0}),_classPrivateFieldInitSpec(this,v,{writable:!0,value:void 0}),_classPrivateFieldInitSpec(this,g,{writable:!0,value:void 0}),_classPrivateFieldInitSpec(this,m,{writable:!0,value:void 0}),_classPrivateFieldInitSpec(this,b,{writable:!0,value:void 0}),_classPrivateFieldInitSpec(this,y,{writable:!0,value:0}),_classPrivateFieldSet(this,d,e),_classPrivateFieldSet(this,p,t)}addFilter(e){var t,r;if(!e)return"none";var n,o,i,a,s=_classPrivateFieldGet(this,A).get(e);if(s)return s;if(1===e.length){for(var l=e[0],c=new Array(256),u=0;u<256;u++)c[u]=l[u]/255;a=n=o=i=c.join(",")}else{for(var[p,f,h]=e,v=new Array(256),g=new Array(256),m=new Array(256),b=0;b<256;b++)v[b]=p[b]/255,g[b]=f[b]/255,m[b]=h[b]/255;n=v.join(","),o=g.join(","),i=m.join(","),a="".concat(n).concat(o).concat(i)}if(s=_classPrivateFieldGet(this,A).get(a))return _classPrivateFieldGet(this,A).set(e,s),s;var _="g_".concat(_classPrivateFieldGet(this,d),"_transfer_map_").concat((_classPrivateFieldSet(this,y,(t=_classPrivateFieldGet(this,y),r=t++,t)),r)),C="url(#".concat(_,")");_classPrivateFieldGet(this,A).set(e,C),_classPrivateFieldGet(this,A).set(a,C);var x=_classPrivateMethodGet(this,w,F).call(this,_);return _classPrivateMethodGet(this,k,T).call(this,n,o,i,x),C}addHCMFilter(e,t){var r,n="".concat(e,"-").concat(t);if(_classPrivateFieldGet(this,h)===n)return _classPrivateFieldGet(this,v);if(_classPrivateFieldSet(this,h,n),_classPrivateFieldSet(this,v,"none"),null===(r=_classPrivateFieldGet(this,f))||void 0===r||r.remove(),!e||!t)return _classPrivateFieldGet(this,v);var o=_classPrivateMethodGet(this,S,I).call(this,e);e=i.Util.makeHexColor(...o);var a=_classPrivateMethodGet(this,S,I).call(this,t);if(t=i.Util.makeHexColor(...a),_classPrivateFieldGet(this,_).style.color="","#000000"===e&&"#ffffff"===t||e===t)return _classPrivateFieldGet(this,v);for(var s=new Array(256),l=0;l<=255;l++){var c=l/255;s[l]=c<=.03928?c/12.92:((c+.055)/1.055)**2.4}var u=s.join(","),p="g_".concat(_classPrivateFieldGet(this,d),"_hcm_filter"),m=_classPrivateFieldSet(this,g,_classPrivateMethodGet(this,w,F).call(this,p));_classPrivateMethodGet(this,k,T).call(this,u,u,u,m),_classPrivateMethodGet(this,C,M).call(this,m);var b=(e,t)=>{for(var r=o[e]/255,n=a[e]/255,i=new Array(t+1),s=0;s<=t;s++)i[s]=r+s/t*(n-r);return i.join(",")};return _classPrivateMethodGet(this,k,T).call(this,b(0,5),b(1,5),b(2,5),m),_classPrivateFieldSet(this,v,"url(#".concat(p,")")),_classPrivateFieldGet(this,v)}addHighlightHCMFilter(e,t,r,n){var o,i="".concat(e,"-").concat(t,"-").concat(r,"-").concat(n);if(_classPrivateFieldGet(this,m)===i)return _classPrivateFieldGet(this,b);if(_classPrivateFieldSet(this,m,i),_classPrivateFieldSet(this,b,"none"),null===(o=_classPrivateFieldGet(this,g))||void 0===o||o.remove(),!e||!t)return _classPrivateFieldGet(this,b);var[a,s]=[e,t].map(_classPrivateMethodGet(this,S,I).bind(this)),l=Math.round(.2126*a[0]+.7152*a[1]+.0722*a[2]),c=Math.round(.2126*s[0]+.7152*s[1]+.0722*s[2]),[u,p]=[r,n].map(_classPrivateMethodGet(this,S,I).bind(this));c{for(var n=new Array(256),o=(c-l)/r,i=e/255,a=(t-e)/(255*r),s=0,u=0;u<=r;u++){for(var d=Math.round(l+u*o),p=i+u*a,f=s;f<=d;f++)n[f]=p;s=d+1}for(var h=s;h<256;h++)n[h]=n[s-1];return n.join(",")},h="g_".concat(_classPrivateFieldGet(this,d),"_hcm_highlight_filter"),v=_classPrivateFieldSet(this,g,_classPrivateMethodGet(this,w,F).call(this,h));return _classPrivateMethodGet(this,C,M).call(this,v),_classPrivateMethodGet(this,k,T).call(this,f(u[0],p[0],5),f(u[1],p[1],5),f(u[2],p[2],5),v),_classPrivateFieldSet(this,b,"url(#".concat(h,")")),_classPrivateFieldGet(this,b)}destroy(){arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&(_classPrivateFieldGet(this,v)||_classPrivateFieldGet(this,b))||(_classPrivateFieldGet(this,u)&&(_classPrivateFieldGet(this,u).parentNode.parentNode.remove(),_classPrivateFieldSet(this,u,null)),_classPrivateFieldGet(this,c)&&(_classPrivateFieldGet(this,c).clear(),_classPrivateFieldSet(this,c,null)),_classPrivateFieldSet(this,y,0))}}function E(){return _classPrivateFieldGet(this,c)||_classPrivateFieldSet(this,c,new Map)}function O(){if(!_classPrivateFieldGet(this,u)){var e=_classPrivateFieldGet(this,p).createElement("div"),{style:t}=e;t.visibility="hidden",t.contain="strict",t.width=t.height=0,t.position="absolute",t.top=t.left=0,t.zIndex=-1;var r=_classPrivateFieldGet(this,p).createElementNS(a,"svg");r.setAttribute("width",0),r.setAttribute("height",0),_classPrivateFieldSet(this,u,_classPrivateFieldGet(this,p).createElementNS(a,"defs")),e.append(r),r.append(_classPrivateFieldGet(this,u)),_classPrivateFieldGet(this,p).body.append(e)}return _classPrivateFieldGet(this,u)}function M(e){var t=_classPrivateFieldGet(this,p).createElementNS(a,"feColorMatrix");t.setAttribute("type","matrix"),t.setAttribute("values","0.2126 0.7152 0.0722 0 0 0.2126 0.7152 0.0722 0 0 0.2126 0.7152 0.0722 0 0 0 0 0 1 0"),e.append(t)}function F(e){var t=_classPrivateFieldGet(this,p).createElementNS(a,"filter");return t.setAttribute("color-interpolation-filters","sRGB"),t.setAttribute("id",e),_classPrivateFieldGet(this,_).append(t),t}function R(e,t,r){var n=_classPrivateFieldGet(this,p).createElementNS(a,t);n.setAttribute("type","discrete"),n.setAttribute("tableValues",r),e.append(n)}function T(e,t,r,n){var o=_classPrivateFieldGet(this,p).createElementNS(a,"feComponentTransfer");n.append(o),_classPrivateMethodGet(this,x,R).call(this,o,"feFuncR",e),_classPrivateMethodGet(this,x,R).call(this,o,"feFuncG",t),_classPrivateMethodGet(this,x,R).call(this,o,"feFuncB",r)}function I(e){return _classPrivateFieldGet(this,_).style.color=e,q(getComputedStyle(_classPrivateFieldGet(this,_)).getPropertyValue("color"))}t.DOMFilterFactory=P;class D extends o.BaseCanvasFactory{constructor(){var{ownerDocument:e=globalThis.document}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super(),this._document=e}_createCanvas(e,t){var r=this._document.createElement("canvas");return r.width=e,r.height=t,r}}function j(e){return B.apply(this,arguments)}function B(){return B=_asyncToGenerator((function*(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(U(e,document.baseURI)){var r=yield fetch(e);if(!r.ok)throw new Error(r.statusText);return t?new Uint8Array(yield r.arrayBuffer()):(0,i.stringToBytes)(yield r.text())}return new Promise(((r,n)=>{var o=new XMLHttpRequest;o.open("GET",e,!0),t&&(o.responseType="arraybuffer"),o.onreadystatechange=()=>{if(o.readyState===XMLHttpRequest.DONE){var e;if((200===o.status||0===o.status)&&(t&&o.response?e=new Uint8Array(o.response):!t&&o.responseText&&(e=(0,i.stringToBytes)(o.responseText)),e))return void r(e);n(new Error(o.statusText))}},o.send(null)}))})),B.apply(this,arguments)}t.DOMCanvasFactory=D;class L extends o.BaseCMapReaderFactory{_fetchData(e,t){return j(e,this.isCompressed).then((e=>({cMapData:e,compressionType:t})))}}t.DOMCMapReaderFactory=L;class Z extends o.BaseStandardFontDataFactory{_fetchData(e){return j(e,!0)}}t.DOMStandardFontDataFactory=Z;class N extends o.BaseSVGFactory{_createSVG(e){return document.createElementNS(a,e)}}t.DOMSVGFactory=N;class G{constructor(e){var{viewBox:t,scale:r,rotation:n,offsetX:o=0,offsetY:i=0,dontFlip:a=!1}=e;this.viewBox=t,this.scale=r,this.rotation=n,this.offsetX=o,this.offsetY=i;var s,l,c,u,d,p,f,h,v=(t[2]+t[0])/2,g=(t[3]+t[1])/2;switch((n%=360)<0&&(n+=360),n){case 180:s=-1,l=0,c=0,u=1;break;case 90:s=0,l=1,c=1,u=0;break;case 270:s=0,l=-1,c=-1,u=0;break;case 0:s=1,l=0,c=0,u=-1;break;default:throw new Error("PageViewport: Invalid rotation, must be a multiple of 90 degrees.")}a&&(c=-c,u=-u),0===s?(d=Math.abs(g-t[1])*r+o,p=Math.abs(v-t[0])*r+i,f=(t[3]-t[1])*r,h=(t[2]-t[0])*r):(d=Math.abs(v-t[0])*r+o,p=Math.abs(g-t[1])*r+i,f=(t[2]-t[0])*r,h=(t[3]-t[1])*r),this.transform=[s*r,l*r,c*r,u*r,d-s*r*v-c*r*g,p-l*r*v-u*r*g],this.width=f,this.height=h}get rawDims(){var{viewBox:e}=this;return(0,i.shadow)(this,"rawDims",{pageWidth:e[2]-e[0],pageHeight:e[3]-e[1],pageX:e[0],pageY:e[1]})}clone(){var{scale:e=this.scale,rotation:t=this.rotation,offsetX:r=this.offsetX,offsetY:n=this.offsetY,dontFlip:o=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new G({viewBox:this.viewBox.slice(),scale:e,rotation:t,offsetX:r,offsetY:n,dontFlip:o})}convertToViewportPoint(e,t){return i.Util.applyTransform([e,t],this.transform)}convertToViewportRectangle(e){var t=i.Util.applyTransform([e[0],e[1]],this.transform),r=i.Util.applyTransform([e[2],e[3]],this.transform);return[t[0],t[1],r[0],r[1]]}convertToPdfPoint(e,t){return i.Util.applyInverseTransform([e,t],this.transform)}}t.PageViewport=G;class z extends i.BaseException{constructor(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;super(e,"RenderingCancelledException"),this.extraDelay=t}}function W(e){for(var t=e.length,r=0;r>16,(65280&t)>>8,255&t]}return e.startsWith("rgb(")?e.slice(4,-1).split(",").map((e=>parseInt(e))):e.startsWith("rgba(")?e.slice(5,-1).split(",").map((e=>parseInt(e))).slice(0,3):((0,i.warn)('Not a valid color format: "'.concat(e,'"')),[0,0,0])}t.RenderingCancelledException=z,t.StatTimer=class{constructor(){_defineProperty(this,"started",Object.create(null)),_defineProperty(this,"times",[])}time(e){e in this.started&&(0,i.warn)("Timer is already running for ".concat(e)),this.started[e]=Date.now()}timeEnd(e){e in this.started||(0,i.warn)("Timer has not been started for ".concat(e)),this.times.push({name:e,start:this.started[e],end:Date.now()}),delete this.started[e]}toString(){var e=[],t=0;for(var{name:r}of this.times)t=Math.max(r.length,t);for(var{name:n,start:o,end:i}of this.times)e.push("".concat(n.padEnd(t)," ").concat(i-o,"ms\n"));return e.join("")}},t.PDFDateString=class{static toDateObject(e){if(!e||"string"!==typeof e)return null;l||(l=new RegExp("^D:(\\d{4})(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?([Z|+|-])?(\\d{2})?'?(\\d{2})?'?"));var t=l.exec(e);if(!t)return null;var r=parseInt(t[1],10),n=parseInt(t[2],10);n=n>=1&&n<=12?n-1:0;var o=parseInt(t[3],10);o=o>=1&&o<=31?o:1;var i=parseInt(t[4],10);i=i>=0&&i<=23?i:0;var a=parseInt(t[5],10);a=a>=0&&a<=59?a:0;var s=parseInt(t[6],10);s=s>=0&&s<=59?s:0;var c=t[7]||"Z",u=parseInt(t[8],10);u=u>=0&&u<=23?u:0;var d=parseInt(t[9],10)||0;return d=d>=0&&d<=59?d:0,"-"===c?(i+=u,a+=d):"+"===c&&(i-=u,a-=d),new Date(Date.UTC(r,n,o,i,a,s))}}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BaseStandardFontDataFactory=t.BaseSVGFactory=t.BaseFilterFactory=t.BaseCanvasFactory=t.BaseCMapReaderFactory=void 0;var n=r(1);class o{constructor(){this.constructor===o&&(0,n.unreachable)("Cannot initialize BaseFilterFactory.")}addFilter(e){return"none"}addHCMFilter(e,t){return"none"}addHighlightHCMFilter(e,t,r,n){return"none"}destroy(){}}t.BaseFilterFactory=o;class i{constructor(){this.constructor===i&&(0,n.unreachable)("Cannot initialize BaseCanvasFactory.")}create(e,t){if(e<=0||t<=0)throw new Error("Invalid canvas size");var r=this._createCanvas(e,t);return{canvas:r,context:r.getContext("2d")}}reset(e,t,r){if(!e.canvas)throw new Error("Canvas is not specified");if(t<=0||r<=0)throw new Error("Invalid canvas size");e.canvas.width=t,e.canvas.height=r}destroy(e){if(!e.canvas)throw new Error("Canvas is not specified");e.canvas.width=0,e.canvas.height=0,e.canvas=null,e.context=null}_createCanvas(e,t){(0,n.unreachable)("Abstract method `_createCanvas` called.")}}t.BaseCanvasFactory=i;class a{constructor(e){var{baseUrl:t=null,isCompressed:r=!0}=e;this.constructor===a&&(0,n.unreachable)("Cannot initialize BaseCMapReaderFactory."),this.baseUrl=t,this.isCompressed=r}fetch(e){var t=this;return _asyncToGenerator((function*(){var{name:r}=e;if(!t.baseUrl)throw new Error('The CMap "baseUrl" parameter must be specified, ensure that the "cMapUrl" and "cMapPacked" API parameters are provided.');if(!r)throw new Error("CMap name must be specified.");var o=t.baseUrl+r+(t.isCompressed?".bcmap":""),i=t.isCompressed?n.CMapCompressionType.BINARY:n.CMapCompressionType.NONE;return t._fetchData(o,i).catch((e=>{throw new Error("Unable to load ".concat(t.isCompressed?"binary ":"","CMap at: ").concat(o))}))}))()}_fetchData(e,t){(0,n.unreachable)("Abstract method `_fetchData` called.")}}t.BaseCMapReaderFactory=a;class s{constructor(e){var{baseUrl:t=null}=e;this.constructor===s&&(0,n.unreachable)("Cannot initialize BaseStandardFontDataFactory."),this.baseUrl=t}fetch(e){var t=this;return _asyncToGenerator((function*(){var{filename:r}=e;if(!t.baseUrl)throw new Error('The standard font "baseUrl" parameter must be specified, ensure that the "standardFontDataUrl" API parameter is provided.');if(!r)throw new Error("Font filename must be specified.");var n="".concat(t.baseUrl).concat(r);return t._fetchData(n).catch((e=>{throw new Error("Unable to load font data at: ".concat(n))}))}))()}_fetchData(e){(0,n.unreachable)("Abstract method `_fetchData` called.")}}t.BaseStandardFontDataFactory=s;class l{constructor(){this.constructor===l&&(0,n.unreachable)("Cannot initialize BaseSVGFactory.")}create(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e<=0||t<=0)throw new Error("Invalid SVG dimensions");var n=this._createSVG("svg:svg");return n.setAttribute("version","1.1"),r||(n.setAttribute("width","".concat(e,"px")),n.setAttribute("height","".concat(t,"px"))),n.setAttribute("preserveAspectRatio","none"),n.setAttribute("viewBox","0 0 ".concat(e," ").concat(t)),n}createElement(e){if("string"!==typeof e)throw new Error("Invalid SVG element type");return this._createSVG(e)}_createSVG(e){(0,n.unreachable)("Abstract method `_createSVG` called.")}}t.BaseSVGFactory=l},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MurmurHash3_64=void 0;var n=r(1),o=3285377520,i=4294901760,a=65535;t.MurmurHash3_64=class{constructor(e){this.h1=e?4294967295&e:o,this.h2=e?4294967295&e:o}update(e){var t,r;if("string"===typeof e){t=new Uint8Array(2*e.length),r=0;for(var o=0,s=e.length;o>>8,t[r++]=255&l)}}else{if(!(0,n.isArrayBuffer)(e))throw new Error("Wrong data format in MurmurHash3_64_update. Input must be a string or array.");r=(t=e.slice()).byteLength}for(var c=r>>2,u=r-4*c,d=new Uint32Array(t.buffer,0,c),p=0,f=0,h=this.h1,v=this.h2,g=3432918353,m=461845907,b=11601,y=13715,A=0;A>>17)*m&i|p*y&a)<<13|h>>>19)+3864292196:v=5*(v=(v^=f=(f=(f=(f=d[A])*g&i|f*b&a)<<15|f>>>17)*m&i|f*y&a)<<13|v>>>19)+3864292196;switch(p=0,u){case 3:p^=t[4*c+2]<<16;case 2:p^=t[4*c+1]<<8;case 1:p=(p=(p=(p^=t[4*c])*g&i|p*b&a)<<15|p>>>17)*m&i|p*y&a,1&c?h^=p:v^=p}this.h1=h,this.h2=v}hexdigest(){var e=this.h1,t=this.h2;return e=3981806797*(e^=t>>>1)&i|36045*e&a,e=444984403*(e^=(t=4283543511*t&i|(2950163797*(t<<16|e>>>16)&i)>>>16)>>>1)&i|60499*e&a,((e^=(t=3301882366*t&i|(3120437893*(t<<16|e>>>16)&i)>>>16)>>>1)>>>0).toString(16).padStart(8,"0")+(t>>>0).toString(16).padStart(8,"0")}}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FontLoader=t.FontFaceObject=void 0;var n=r(1),o=new WeakMap;t.FontLoader=class{constructor(e){var{ownerDocument:t=globalThis.document,styleElement:r=null}=e;_classPrivateFieldInitSpec(this,o,{writable:!0,value:new Set}),this._document=t,this.nativeFontFaces=new Set,this.styleElement=null,this.loadingRequests=[],this.loadTestFontId=0}addNativeFontFace(e){this.nativeFontFaces.add(e),this._document.fonts.add(e)}removeNativeFontFace(e){this.nativeFontFaces.delete(e),this._document.fonts.delete(e)}insertRule(e){this.styleElement||(this.styleElement=this._document.createElement("style"),this._document.documentElement.getElementsByTagName("head")[0].append(this.styleElement));var t=this.styleElement.sheet;t.insertRule(e,t.cssRules.length)}clear(){for(var e of this.nativeFontFaces)this._document.fonts.delete(e);this.nativeFontFaces.clear(),_classPrivateFieldGet(this,o).clear(),this.styleElement&&(this.styleElement.remove(),this.styleElement=null)}loadSystemFont(e){var t=this;return _asyncToGenerator((function*(){if(e&&!_classPrivateFieldGet(t,o).has(e.loadedName))if((0,n.assert)(!t.disableFontFace,"loadSystemFont shouldn't be called when `disableFontFace` is set."),t.isFontLoadingAPISupported){var{loadedName:r,src:i,style:a}=e,s=new FontFace(r,i,a);t.addNativeFontFace(s);try{yield s.load(),_classPrivateFieldGet(t,o).add(r)}catch(l){(0,n.warn)("Cannot load system font: ".concat(e.baseFontName,", installing it could help to improve PDF rendering.")),t.removeNativeFontFace(s)}}else(0,n.unreachable)("Not implemented: loadSystemFont without the Font Loading API.")}))()}bind(e){var t=this;return _asyncToGenerator((function*(){if(!(e.attached||e.missingFile&&!e.systemFontInfo))if(e.attached=!0,e.systemFontInfo)yield t.loadSystemFont(e.systemFontInfo);else if(t.isFontLoadingAPISupported){var r=e.createNativeFontFace();if(r){t.addNativeFontFace(r);try{yield r.loaded}catch(i){throw(0,n.warn)("Failed to load font '".concat(r.family,"': '").concat(i,"'.")),e.disableFontFace=!0,i}}}else{var o=e.createFontFaceRule();if(o){if(t.insertRule(o),t.isSyncFontLoadingSupported)return;yield new Promise((r=>{var n=t._queueLoadingCallback(r);t._prepareFontLoadEvent(e,n)}))}}}))()}get isFontLoadingAPISupported(){var e,t=!(null===(e=this._document)||void 0===e||!e.fonts);return(0,n.shadow)(this,"isFontLoadingAPISupported",t)}get isSyncFontLoadingSupported(){var e=!1;return(n.isNodeJS||"undefined"!==typeof navigator&&/Mozilla\/5.0.*?rv:\d+.*? Gecko/.test(navigator.userAgent))&&(e=!0),(0,n.shadow)(this,"isSyncFontLoadingSupported",e)}_queueLoadingCallback(e){var{loadingRequests:t}=this,r={done:!1,complete:function(){for((0,n.assert)(!r.done,"completeRequest() cannot be called twice."),r.done=!0;t.length>0&&t[0].done;){var e=t.shift();setTimeout(e.callback,0)}},callback:e};return t.push(r),r}get _loadTestFont(){var e=atob("T1RUTwALAIAAAwAwQ0ZGIDHtZg4AAAOYAAAAgUZGVE1lkzZwAAAEHAAAABxHREVGABQAFQAABDgAAAAeT1MvMlYNYwkAAAEgAAAAYGNtYXABDQLUAAACNAAAAUJoZWFk/xVFDQAAALwAAAA2aGhlYQdkA+oAAAD0AAAAJGhtdHgD6AAAAAAEWAAAAAZtYXhwAAJQAAAAARgAAAAGbmFtZVjmdH4AAAGAAAAAsXBvc3T/hgAzAAADeAAAACAAAQAAAAEAALZRFsRfDzz1AAsD6AAAAADOBOTLAAAAAM4KHDwAAAAAA+gDIQAAAAgAAgAAAAAAAAABAAADIQAAAFoD6AAAAAAD6AABAAAAAAAAAAAAAAAAAAAAAQAAUAAAAgAAAAQD6AH0AAUAAAKKArwAAACMAooCvAAAAeAAMQECAAACAAYJAAAAAAAAAAAAAQAAAAAAAAAAAAAAAFBmRWQAwAAuAC4DIP84AFoDIQAAAAAAAQAAAAAAAAAAACAAIAABAAAADgCuAAEAAAAAAAAAAQAAAAEAAAAAAAEAAQAAAAEAAAAAAAIAAQAAAAEAAAAAAAMAAQAAAAEAAAAAAAQAAQAAAAEAAAAAAAUAAQAAAAEAAAAAAAYAAQAAAAMAAQQJAAAAAgABAAMAAQQJAAEAAgABAAMAAQQJAAIAAgABAAMAAQQJAAMAAgABAAMAAQQJAAQAAgABAAMAAQQJAAUAAgABAAMAAQQJAAYAAgABWABYAAAAAAAAAwAAAAMAAAAcAAEAAAAAADwAAwABAAAAHAAEACAAAAAEAAQAAQAAAC7//wAAAC7////TAAEAAAAAAAABBgAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAD/gwAyAAAAAQAAAAAAAAAAAAAAAAAAAAABAAQEAAEBAQJYAAEBASH4DwD4GwHEAvgcA/gXBIwMAYuL+nz5tQXkD5j3CBLnEQACAQEBIVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYAAABAQAADwACAQEEE/t3Dov6fAH6fAT+fPp8+nwHDosMCvm1Cvm1DAz6fBQAAAAAAAABAAAAAMmJbzEAAAAAzgTjFQAAAADOBOQpAAEAAAAAAAAADAAUAAQAAAABAAAAAgABAAAAAAAAAAAD6AAAAAAAAA==");return(0,n.shadow)(this,"_loadTestFont",e)}_prepareFontLoadEvent(e,t){function r(e,t){return e.charCodeAt(t)<<24|e.charCodeAt(t+1)<<16|e.charCodeAt(t+2)<<8|255&e.charCodeAt(t+3)}function o(e,t,r,n){return e.substring(0,t)+n+e.substring(t+r)}var i,a,s=this._document.createElement("canvas");s.width=1,s.height=1;var l=s.getContext("2d"),c=0,u="lt".concat(Date.now()).concat(this.loadTestFontId++),d=this._loadTestFont,p=1482184792,f=r(d=o(d,976,u.length,u),16);for(i=0,a=u.length-3;i30)return(0,n.warn)("Load test font never loaded."),void r();l.font="30px "+t,l.fillText(".",0,20),l.getImageData(0,0,1,1).data[3]>0?r():setTimeout(e.bind(null,t,r))}(u,(()=>{g.remove(),t.complete()}))}},t.FontFaceObject=class{constructor(e,t){var{isEvalSupported:r=!0,disableFontFace:n=!1,ignoreErrors:o=!1,inspectFont:i=null}=t;for(var a in this.compiledGlyphs=Object.create(null),e)this[a]=e[a];this.isEvalSupported=!1!==r,this.disableFontFace=!0===n,this.ignoreErrors=!0===o,this._inspectFont=i}createNativeFontFace(){var e,t;if(!this.data||this.disableFontFace)return null;if(this.cssFontInfo){var r={weight:this.cssFontInfo.fontWeight};this.cssFontInfo.italicAngle&&(r.style="oblique ".concat(this.cssFontInfo.italicAngle,"deg")),t=new FontFace(this.cssFontInfo.fontFamily,this.data,r)}else t=new FontFace(this.loadedName,this.data,{});return null===(e=this._inspectFont)||void 0===e||e.call(this,this),t}createFontFaceRule(){var e;if(!this.data||this.disableFontFace)return null;var t,r=(0,n.bytesToString)(this.data),o="url(data:".concat(this.mimetype,";base64,").concat(btoa(r),");");if(this.cssFontInfo){var i="font-weight: ".concat(this.cssFontInfo.fontWeight,";");this.cssFontInfo.italicAngle&&(i+="font-style: oblique ".concat(this.cssFontInfo.italicAngle,"deg;")),t='@font-face {font-family:"'.concat(this.cssFontInfo.fontFamily,'";').concat(i,"src:").concat(o,"}")}else t='@font-face {font-family:"'.concat(this.loadedName,'";src:').concat(o,"}");return null===(e=this._inspectFont)||void 0===e||e.call(this,this,o),t}getPathGenerator(e,t){if(void 0!==this.compiledGlyphs[t])return this.compiledGlyphs[t];var r;try{r=e.get(this.loadedName+"_path_"+t)}catch(s){if(!this.ignoreErrors)throw s;return(0,n.warn)('getPathGenerator - ignoring character: "'.concat(s,'".')),this.compiledGlyphs[t]=function(e,t){}}if(this.isEvalSupported&&n.FeatureTest.isEvalSupported){var o=[];for(var i of r){var a=void 0!==i.args?i.args.join(","):"";o.push("c.",i.cmd,"(",a,");\n")}return this.compiledGlyphs[t]=new Function("c","size",o.join(""))}return this.compiledGlyphs[t]=function(e,t){for(var n of r)"scale"===n.cmd&&(n.args=[t,-t]),e[n.cmd].apply(e,n.args)}}}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NodeStandardFontDataFactory=t.NodeFilterFactory=t.NodeCanvasFactory=t.NodeCMapReaderFactory=void 0;var n=r(7),o=(r(1),function(e){return new Promise(((t,r)=>{__webpack_require__(70172).readFile(e,((e,n)=>{!e&&n?t(new Uint8Array(n)):r(new Error(e))}))}))});class i extends n.BaseFilterFactory{}t.NodeFilterFactory=i;class a extends n.BaseCanvasFactory{_createCanvas(e,t){return __webpack_require__(93414).createCanvas(e,t)}}t.NodeCanvasFactory=a;class s extends n.BaseCMapReaderFactory{_fetchData(e,t){return o(e).then((e=>({cMapData:e,compressionType:t})))}}t.NodeCMapReaderFactory=s;class l extends n.BaseStandardFontDataFactory{_fetchData(e){return o(e)}}t.NodeStandardFontDataFactory=l},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CanvasGraphics=void 0;var n=r(1),o=r(6),i=r(12),a=r(13),s=4096,l=16;class c{constructor(e){this.canvasFactory=e,this.cache=Object.create(null)}getCanvas(e,t,r){var n;return void 0!==this.cache[e]?(n=this.cache[e],this.canvasFactory.reset(n,t,r)):(n=this.canvasFactory.create(t,r),this.cache[e]=n),n}delete(e){delete this.cache[e]}clear(){for(var e in this.cache){var t=this.cache[e];this.canvasFactory.destroy(t),delete this.cache[e]}}}function u(e,t,r,n,i,a,s,l,c,u){var[d,p,f,h,v,g]=(0,o.getCurrentTransform)(e);if(0===p&&0===f){var m=s*d+v,b=Math.round(m),y=l*h+g,A=Math.round(y),_=(s+c)*d+v,C=Math.abs(Math.round(_)-b)||1,w=(l+u)*h+g,x=Math.abs(Math.round(w)-A)||1;return e.setTransform(Math.sign(d),0,0,Math.sign(h),b,A),e.drawImage(t,r,n,i,a,0,0,C,x),e.setTransform(d,p,f,h,v,g),[C,x]}if(0===d&&0===h){var k=l*f+v,S=Math.round(k),P=s*p+g,E=Math.round(P),O=(l+u)*f+v,M=Math.abs(Math.round(O)-S)||1,F=(s+c)*p+g,R=Math.abs(Math.round(F)-E)||1;return e.setTransform(0,Math.sign(p),Math.sign(f),0,S,E),e.drawImage(t,r,n,i,a,0,0,R,M),e.setTransform(d,p,f,h,v,g),[R,M]}return e.drawImage(t,r,n,i,a,s,l,c,u),[Math.hypot(d,p)*c,Math.hypot(f,h)*u]}class d{constructor(e,t){this.alphaIsShape=!1,this.fontSize=0,this.fontSizeScale=1,this.textMatrix=n.IDENTITY_MATRIX,this.textMatrixScale=1,this.fontMatrix=n.FONT_IDENTITY_MATRIX,this.leading=0,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRenderingMode=n.TextRenderingMode.FILL,this.textRise=0,this.fillColor="#000000",this.strokeColor="#000000",this.patternFill=!1,this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.activeSMask=null,this.transferMaps="none",this.startNewPathAndClipBox([0,0,e,t])}clone(){var e=Object.create(this);return e.clipBox=this.clipBox.slice(),e}setCurrentPoint(e,t){this.x=e,this.y=t}updatePathMinMax(e,t,r){[t,r]=n.Util.applyTransform([t,r],e),this.minX=Math.min(this.minX,t),this.minY=Math.min(this.minY,r),this.maxX=Math.max(this.maxX,t),this.maxY=Math.max(this.maxY,r)}updateRectMinMax(e,t){var r=n.Util.applyTransform(t,e),o=n.Util.applyTransform(t.slice(2),e);this.minX=Math.min(this.minX,r[0],o[0]),this.minY=Math.min(this.minY,r[1],o[1]),this.maxX=Math.max(this.maxX,r[0],o[0]),this.maxY=Math.max(this.maxY,r[1],o[1])}updateScalingPathMinMax(e,t){n.Util.scaleMinMax(e,t),this.minX=Math.min(this.minX,t[0]),this.maxX=Math.max(this.maxX,t[1]),this.minY=Math.min(this.minY,t[2]),this.maxY=Math.max(this.maxY,t[3])}updateCurvePathMinMax(e,t,r,o,i,a,s,l,c,u){var d=n.Util.bezierBoundingBox(t,r,o,i,a,s,l,c);if(u)return u[0]=Math.min(u[0],d[0],d[2]),u[1]=Math.max(u[1],d[0],d[2]),u[2]=Math.min(u[2],d[1],d[3]),void(u[3]=Math.max(u[3],d[1],d[3]));this.updateRectMinMax(e,d)}getPathBoundingBox(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.PathType.FILL,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=[this.minX,this.minY,this.maxX,this.maxY];if(e===i.PathType.STROKE){t||(0,n.unreachable)("Stroke bounding box must include transform.");var o=n.Util.singularValueDecompose2dScale(t),a=o[0]*this.lineWidth/2,s=o[1]*this.lineWidth/2;r[0]-=a,r[1]-=s,r[2]+=a,r[3]+=s}return r}updateClipFromPath(){var e=n.Util.intersect(this.clipBox,this.getPathBoundingBox());this.startNewPathAndClipBox(e||[0,0,0,0])}isEmptyClip(){return this.minX===1/0}startNewPathAndClipBox(e){this.clipBox=e,this.minX=1/0,this.minY=1/0,this.maxX=0,this.maxY=0}getClippedPathBoundingBox(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.PathType.FILL,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return n.Util.intersect(this.clipBox,this.getPathBoundingBox(e,t))}}function p(e,t){if("undefined"!==typeof ImageData&&t instanceof ImageData)e.putImageData(t,0,0);else{var r,o,i,a,s,c=t.height,u=t.width,d=c%l,p=(c-d)/l,f=0===d?p:p+1,h=e.createImageData(u,l),v=0,g=t.data,m=h.data;if(t.kind===n.ImageKind.GRAYSCALE_1BPP){var b=g.byteLength,y=new Uint32Array(m.buffer,0,m.byteLength>>2),A=y.length,_=u+7>>3,C=4294967295,w=n.FeatureTest.isLittleEndian?4278190080:255;for(o=0;o_?u:8*x-7,P=-8&S,E=0,O=0;k>=1}for(;r=p&&(s=u*(a=d)),r=0,i=s;i--;)m[r++]=g[v++],m[r++]=g[v++],m[r++]=g[v++],m[r++]=255;e.putImageData(h,0,o*l)}}}}function f(e,t){if(t.bitmap)e.drawImage(t.bitmap,0,0);else for(var r=t.height,n=t.width,o=r%l,i=(r-o)/l,s=0===o?i:i+1,c=e.createImageData(n,l),u=0,d=t.data,p=c.data,f=0;f>8,e[i-2]=e[i-2]*a+r*s>>8,e[i-1]=e[i-1]*a+n*s>>8}}}function m(e,t,r){for(var n=e.length,o=3;o>8]>>8:t[o]*i>>16}}function y(e,t,r,n){var o=n[0],i=n[1],a=n[2]-o,s=n[3]-i;0!==a&&0!==s&&(function(e,t,r,n,o,i,a,s,l,c,u){for(var d=!!i,p=d?i[0]:0,f=d?i[1]:0,h=d?i[2]:0,v="Luminosity"===o?b:m,y=Math.min(n,Math.ceil(1048576/r)),A=0;A1&&void 0!==arguments[1]?arguments[1]:null;return"string"===typeof e?e.startsWith("g_")?this.commonObjs.get(e):this.objs.get(e):t}beginDrawing(e){var{transform:t,viewport:r,transparency:n=!1,background:i=null}=e,a=this.ctx.canvas.width,s=this.ctx.canvas.height,l=this.ctx.fillStyle;if(this.ctx.fillStyle=i||"#ffffff",this.ctx.fillRect(0,0,a,s),this.ctx.fillStyle=l,n){var c=this.cachedCanvases.getCanvas("transparent",a,s);this.compositeCtx=this.ctx,this.transparentCanvas=c.canvas,this.ctx=c.context,this.ctx.save(),this.ctx.transform(...(0,o.getCurrentTransform)(this.compositeCtx))}this.ctx.save(),v(this.ctx),t&&(this.ctx.transform(...t),this.outputScaleX=t[0],this.outputScaleY=t[0]),this.ctx.transform(...r.transform),this.viewportScale=r.scale,this.baseTransform=(0,o.getCurrentTransform)(this.ctx)}executeOperatorList(e,t,r,o){var i=e.argsArray,a=e.fnArray,s=t||0,l=i.length;if(l===s)return s;for(var c,u=l-s>10&&"function"===typeof r,d=u?Date.now()+15:0,p=0,f=this.commonObjs,h=this.objs;;){if(void 0!==o&&s===o.nextBreakPoint)return o.breakIt(s,r),s;if((c=a[s])!==n.OPS.dependency)this[c].apply(this,i[s]);else for(var v of i[s]){var g=v.startsWith("g_")?f:h;if(!g.has(v))return g.get(v,r),s}if(++s===l)return s;if(u&&++p>10){if(Date.now()>d)return r(),s;p=0}}}endDrawing(){for(var e of(_classPrivateMethodGet(this,k,E).call(this),this.cachedCanvases.clear(),this.cachedPatterns.clear(),this._cachedBitmapsMap.values())){for(var t of e.values())"undefined"!==typeof HTMLCanvasElement&&t instanceof HTMLCanvasElement&&(t.width=t.height=0);e.clear()}this._cachedBitmapsMap.clear(),_classPrivateMethodGet(this,S,O).call(this)}_scaleImage(e,t){for(var r,n,o=e.width,i=e.height,a=Math.max(Math.hypot(t[0],t[1]),1),s=Math.max(Math.hypot(t[2],t[3]),1),l=o,c=i,u="prescale1";a>2&&l>1||s>2&&c>1;){var d=l,p=c;a>2&&l>1&&(a/=l/(d=l>=16384?Math.floor(l/2)-1||1:Math.ceil(l/2))),s>2&&c>1&&(s/=c/(p=c>=16384?Math.floor(c/2)-1||1:Math.ceil(c)/2)),(n=(r=this.cachedCanvases.getCanvas(u,d,p)).context).clearRect(0,0,d,p),n.drawImage(e,0,0,l,c,0,0,d,p),e=r.canvas,l=d,c=p,u="prescale1"===u?"prescale2":"prescale1"}return{img:e,paintWidth:l,paintHeight:c}}_createMaskCanvas(e){var t,r,a,s,l=this.ctx,{width:c,height:d}=e,p=this.current.fillColor,h=this.current.patternFill,v=(0,o.getCurrentTransform)(l);if((e.bitmap||e.data)&&e.count>1){var g=e.bitmap||e.data.buffer;r=JSON.stringify(h?v:[v.slice(0,4),p]),(t=this._cachedBitmapsMap.get(g))||(t=new Map,this._cachedBitmapsMap.set(g,t));var m=t.get(r);if(m&&!h)return{canvas:m,offsetX:Math.round(Math.min(v[0],v[2])+v[4]),offsetY:Math.round(Math.min(v[1],v[3])+v[5])};a=m}a||f((s=this.cachedCanvases.getCanvas("maskCanvas",c,d)).context,e);var b=n.Util.transform(v,[1/c,0,0,-1/d,0,0]);b=n.Util.transform(b,[1,0,0,1,0,-d]);var y=n.Util.applyTransform([0,0],b),_=n.Util.applyTransform([c,d],b),C=n.Util.normalizeRect([y[0],y[1],_[0],_[1]]),w=Math.round(C[2]-C[0])||1,x=Math.round(C[3]-C[1])||1,k=this.cachedCanvases.getCanvas("fillCanvas",w,x),S=k.context,P=Math.min(y[0],_[0]),E=Math.min(y[1],_[1]);S.translate(-P,-E),S.transform(...b),a||(a=(a=this._scaleImage(s.canvas,(0,o.getCurrentTransformInverse)(S))).img,t&&h&&t.set(r,a)),S.imageSmoothingEnabled=A((0,o.getCurrentTransform)(S),e.interpolate),u(S,a,0,0,a.width,a.height,0,0,c,d),S.globalCompositeOperation="source-in";var O=n.Util.transform((0,o.getCurrentTransformInverse)(S),[1,0,0,1,-P,-E]);return S.fillStyle=h?p.getPattern(l,this,O,i.PathType.FILL):p,S.fillRect(0,0,c,d),t&&!h&&(this.cachedCanvases.delete("fillCanvas"),t.set(r,k.canvas)),{canvas:k.canvas,offsetX:Math.round(P),offsetY:Math.round(E)}}setLineWidth(e){e!==this.current.lineWidth&&(this._cachedScaleForStroking[0]=-1),this.current.lineWidth=e,this.ctx.lineWidth=e}setLineCap(e){this.ctx.lineCap=_[e]}setLineJoin(e){this.ctx.lineJoin=C[e]}setMiterLimit(e){this.ctx.miterLimit=e}setDash(e,t){var r=this.ctx;void 0!==r.setLineDash&&(r.setLineDash(e),r.lineDashOffset=t)}setRenderingIntent(e){}setFlatness(e){}setGState(e){for(var[t,r]of e)switch(t){case"LW":this.setLineWidth(r);break;case"LC":this.setLineCap(r);break;case"LJ":this.setLineJoin(r);break;case"ML":this.setMiterLimit(r);break;case"D":this.setDash(r[0],r[1]);break;case"RI":this.setRenderingIntent(r);break;case"FL":this.setFlatness(r);break;case"Font":this.setFont(r[0],r[1]);break;case"CA":this.current.strokeAlpha=r;break;case"ca":this.current.fillAlpha=r,this.ctx.globalAlpha=r;break;case"BM":this.ctx.globalCompositeOperation=r;break;case"SMask":this.current.activeSMask=r?this.tempSMask:null,this.tempSMask=null,this.checkSMaskState();break;case"TR":this.ctx.filter=this.current.transferMaps=this.filterFactory.addFilter(r)}}get inSMaskMode(){return!!this.suspendedCtx}checkSMaskState(){var e=this.inSMaskMode;this.current.activeSMask&&!e?this.beginSMaskMode():!this.current.activeSMask&&e&&this.endSMaskMode()}beginSMaskMode(){if(this.inSMaskMode)throw new Error("beginSMaskMode called while already in smask mode");var e=this.ctx.canvas.width,t=this.ctx.canvas.height,r="smaskGroupAt"+this.groupLevel,n=this.cachedCanvases.getCanvas(r,e,t);this.suspendedCtx=this.ctx,this.ctx=n.context;var i=this.ctx;i.setTransform(...(0,o.getCurrentTransform)(this.suspendedCtx)),h(this.suspendedCtx,i),function(e,t){if(e._removeMirroring)throw new Error("Context is already forwarding operations.");e.__originalSave=e.save,e.__originalRestore=e.restore,e.__originalRotate=e.rotate,e.__originalScale=e.scale,e.__originalTranslate=e.translate,e.__originalTransform=e.transform,e.__originalSetTransform=e.setTransform,e.__originalResetTransform=e.resetTransform,e.__originalClip=e.clip,e.__originalMoveTo=e.moveTo,e.__originalLineTo=e.lineTo,e.__originalBezierCurveTo=e.bezierCurveTo,e.__originalRect=e.rect,e.__originalClosePath=e.closePath,e.__originalBeginPath=e.beginPath,e._removeMirroring=()=>{e.save=e.__originalSave,e.restore=e.__originalRestore,e.rotate=e.__originalRotate,e.scale=e.__originalScale,e.translate=e.__originalTranslate,e.transform=e.__originalTransform,e.setTransform=e.__originalSetTransform,e.resetTransform=e.__originalResetTransform,e.clip=e.__originalClip,e.moveTo=e.__originalMoveTo,e.lineTo=e.__originalLineTo,e.bezierCurveTo=e.__originalBezierCurveTo,e.rect=e.__originalRect,e.closePath=e.__originalClosePath,e.beginPath=e.__originalBeginPath,delete e._removeMirroring},e.save=function(){t.save(),this.__originalSave()},e.restore=function(){t.restore(),this.__originalRestore()},e.translate=function(e,r){t.translate(e,r),this.__originalTranslate(e,r)},e.scale=function(e,r){t.scale(e,r),this.__originalScale(e,r)},e.transform=function(e,r,n,o,i,a){t.transform(e,r,n,o,i,a),this.__originalTransform(e,r,n,o,i,a)},e.setTransform=function(e,r,n,o,i,a){t.setTransform(e,r,n,o,i,a),this.__originalSetTransform(e,r,n,o,i,a)},e.resetTransform=function(){t.resetTransform(),this.__originalResetTransform()},e.rotate=function(e){t.rotate(e),this.__originalRotate(e)},e.clip=function(e){t.clip(e),this.__originalClip(e)},e.moveTo=function(e,r){t.moveTo(e,r),this.__originalMoveTo(e,r)},e.lineTo=function(e,r){t.lineTo(e,r),this.__originalLineTo(e,r)},e.bezierCurveTo=function(e,r,n,o,i,a){t.bezierCurveTo(e,r,n,o,i,a),this.__originalBezierCurveTo(e,r,n,o,i,a)},e.rect=function(e,r,n,o){t.rect(e,r,n,o),this.__originalRect(e,r,n,o)},e.closePath=function(){t.closePath(),this.__originalClosePath()},e.beginPath=function(){t.beginPath(),this.__originalBeginPath()}}(i,this.suspendedCtx),this.setGState([["BM","source-over"],["ca",1],["CA",1]])}endSMaskMode(){if(!this.inSMaskMode)throw new Error("endSMaskMode called while not in smask mode");this.ctx._removeMirroring(),h(this.ctx,this.suspendedCtx),this.ctx=this.suspendedCtx,this.suspendedCtx=null}compose(e){if(this.current.activeSMask){e?(e[0]=Math.floor(e[0]),e[1]=Math.floor(e[1]),e[2]=Math.ceil(e[2]),e[3]=Math.ceil(e[3])):e=[0,0,this.ctx.canvas.width,this.ctx.canvas.height];var t=this.current.activeSMask;y(this.suspendedCtx,t,this.ctx,e),this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.clearRect(0,0,this.ctx.canvas.width,this.ctx.canvas.height),this.ctx.restore()}}save(){this.inSMaskMode?(h(this.ctx,this.suspendedCtx),this.suspendedCtx.save()):this.ctx.save();var e=this.current;this.stateStack.push(e),this.current=e.clone()}restore(){0===this.stateStack.length&&this.inSMaskMode&&this.endSMaskMode(),0!==this.stateStack.length&&(this.current=this.stateStack.pop(),this.inSMaskMode?(this.suspendedCtx.restore(),h(this.suspendedCtx,this.ctx)):this.ctx.restore(),this.checkSMaskState(),this.pendingClip=null,this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null)}transform(e,t,r,n,o,i){this.ctx.transform(e,t,r,n,o,i),this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null}constructPath(e,t,r){for(var i,a,s=this.ctx,l=this.current,c=l.x,u=l.y,d=(0,o.getCurrentTransform)(s),p=0===d[0]&&0===d[3]||0===d[1]&&0===d[2],f=p?r.slice(0):null,h=0,v=0,g=e.length;h0&&void 0!==arguments[0])||arguments[0],t=this.ctx,r=this.current.strokeColor;t.globalAlpha=this.current.strokeAlpha,this.contentVisible&&("object"===typeof r&&null!==r&&void 0!==r&&r.getPattern?(t.save(),t.strokeStyle=r.getPattern(t,this,(0,o.getCurrentTransformInverse)(t),i.PathType.STROKE),this.rescaleAndStroke(!1),t.restore()):this.rescaleAndStroke(!0)),e&&this.consumePath(this.current.getClippedPathBoundingBox()),t.globalAlpha=this.current.fillAlpha}closeStroke(){this.closePath(),this.stroke()}fill(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=this.ctx,r=this.current.fillColor,n=!1;this.current.patternFill&&(t.save(),t.fillStyle=r.getPattern(t,this,(0,o.getCurrentTransformInverse)(t),i.PathType.FILL),n=!0);var a=this.current.getClippedPathBoundingBox();this.contentVisible&&null!==a&&(this.pendingEOFill?(t.fill("evenodd"),this.pendingEOFill=!1):t.fill()),n&&t.restore(),e&&this.consumePath(a)}eoFill(){this.pendingEOFill=!0,this.fill()}fillStroke(){this.fill(!1),this.stroke(!1),this.consumePath()}eoFillStroke(){this.pendingEOFill=!0,this.fillStroke()}closeFillStroke(){this.closePath(),this.fillStroke()}closeEOFillStroke(){this.pendingEOFill=!0,this.closePath(),this.fillStroke()}endPath(){this.consumePath()}clip(){this.pendingClip=w}eoClip(){this.pendingClip=x}beginText(){this.current.textMatrix=n.IDENTITY_MATRIX,this.current.textMatrixScale=1,this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0}endText(){var e=this.pendingTextPaths,t=this.ctx;if(void 0!==e){for(var r of(t.save(),t.beginPath(),e))t.setTransform(...r.transform),t.translate(r.x,r.y),r.addToPath(t,r.fontSize);t.restore(),t.clip(),t.beginPath(),delete this.pendingTextPaths}else t.beginPath()}setCharSpacing(e){this.current.charSpacing=e}setWordSpacing(e){this.current.wordSpacing=e}setHScale(e){this.current.textHScale=e/100}setLeading(e){this.current.leading=-e}setFont(e,t){var r,o=this.commonObjs.get(e),i=this.current;if(!o)throw new Error("Can't find font for ".concat(e));if(i.fontMatrix=o.fontMatrix||n.FONT_IDENTITY_MATRIX,0!==i.fontMatrix[0]&&0!==i.fontMatrix[3]||(0,n.warn)("Invalid font matrix for font "+e),t<0?(t=-t,i.fontDirection=-1):i.fontDirection=1,this.current.font=o,this.current.fontSize=t,!o.isType3Font){var a=o.loadedName||"sans-serif",s=(null===(r=o.systemFontInfo)||void 0===r?void 0:r.css)||'"'.concat(a,'", ').concat(o.fallbackName),l="normal";o.black?l="900":o.bold&&(l="bold");var c=o.italic?"italic":"normal",u=t;t<16?u=16:t>100&&(u=100),this.current.fontSizeScale=t/u,this.ctx.font="".concat(c," ").concat(l," ").concat(u,"px ").concat(s)}}setTextRenderingMode(e){this.current.textRenderingMode=e}setTextRise(e){this.current.textRise=e}moveText(e,t){this.current.x=this.current.lineX+=e,this.current.y=this.current.lineY+=t}setLeadingMoveText(e,t){this.setLeading(-t),this.moveText(e,t)}setTextMatrix(e,t,r,n,o,i){this.current.textMatrix=[e,t,r,n,o,i],this.current.textMatrixScale=Math.hypot(e,t),this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0}nextLine(){this.moveText(0,this.current.leading)}paintChar(e,t,r,i){var a,s=this.ctx,l=this.current,c=l.font,u=l.textRenderingMode,d=l.fontSize/l.fontSizeScale,p=u&n.TextRenderingMode.FILL_STROKE_MASK,f=!!(u&n.TextRenderingMode.ADD_TO_PATH_FLAG),h=l.patternFill&&!c.missingFile;(c.disableFontFace||f||h)&&(a=c.getPathGenerator(this.commonObjs,e)),c.disableFontFace||h?(s.save(),s.translate(t,r),s.beginPath(),a(s,d),i&&s.setTransform(...i),p!==n.TextRenderingMode.FILL&&p!==n.TextRenderingMode.FILL_STROKE||s.fill(),p!==n.TextRenderingMode.STROKE&&p!==n.TextRenderingMode.FILL_STROKE||s.stroke(),s.restore()):(p!==n.TextRenderingMode.FILL&&p!==n.TextRenderingMode.FILL_STROKE||s.fillText(e,t,r),p!==n.TextRenderingMode.STROKE&&p!==n.TextRenderingMode.FILL_STROKE||s.strokeText(e,t,r)),f&&(this.pendingTextPaths||(this.pendingTextPaths=[])).push({transform:(0,o.getCurrentTransform)(s),x:t,y:r,fontSize:d,addToPath:a})}get isFontSubpixelAAEnabled(){var{context:e}=this.cachedCanvases.getCanvas("isFontSubpixelAAEnabled",10,10);e.scale(1.5,1),e.fillText("I",0,10);for(var t=e.getImageData(0,0,10,10).data,r=!1,o=3;o0&&t[o]<255){r=!0;break}return(0,n.shadow)(this,"isFontSubpixelAAEnabled",r)}showText(e){var t=this.current,r=t.font;if(r.isType3Font)return this.showType3Text(e);var a=t.fontSize;if(0!==a){var s,l=this.ctx,c=t.fontSizeScale,u=t.charSpacing,d=t.wordSpacing,p=t.fontDirection,f=t.textHScale*p,h=e.length,v=r.vertical,g=v?1:-1,m=r.defaultVMetrics,b=a*t.fontMatrix[0],y=t.textRenderingMode===n.TextRenderingMode.FILL&&!r.disableFontFace&&!t.patternFill;if(l.save(),l.transform(...t.textMatrix),l.translate(t.x,t.y+t.textRise),p>0?l.scale(f,-1):l.scale(f,1),t.patternFill){l.save();var A=t.fillColor.getPattern(l,this,(0,o.getCurrentTransformInverse)(l),i.PathType.FILL);s=(0,o.getCurrentTransform)(l),l.restore(),l.fillStyle=A}var _=t.lineWidth,C=t.textMatrixScale;if(0===C||0===_){var w=t.textRenderingMode&n.TextRenderingMode.FILL_STROKE_MASK;w!==n.TextRenderingMode.STROKE&&w!==n.TextRenderingMode.FILL_STROKE||(_=this.getSinglePixelWidth())}else _/=C;if(1!==c&&(l.scale(c,c),_/=c),l.lineWidth=_,r.isInvalidPDFjsFont){var x=[],k=0;for(var S of e)x.push(S.unicode),k+=S.width;return l.fillText(x.join(""),0,0),t.x+=k*b*f,l.restore(),void this.compose()}var P,E=0;for(P=0;P0){var N=1e3*l.measureText(R).width/a*c;if(jnew P(e,this.commonObjs,this.objs,this.canvasFactory,this.filterFactory,{optionalContentConfig:this.optionalContentConfig,markedContentStack:this.markedContentStack})};t=new i.TilingPattern(e,r,this.ctx,a,n)}else t=this._getPattern(e[1],e[2]);return t}setStrokeColorN(){this.current.strokeColor=this.getColorN_Pattern(arguments)}setFillColorN(){this.current.fillColor=this.getColorN_Pattern(arguments),this.current.patternFill=!0}setStrokeRGBColor(e,t,r){var o=n.Util.makeHexColor(e,t,r);this.ctx.strokeStyle=o,this.current.strokeColor=o}setFillRGBColor(e,t,r){var o=n.Util.makeHexColor(e,t,r);this.ctx.fillStyle=o,this.current.fillColor=o,this.current.patternFill=!1}_getPattern(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return this.cachedPatterns.has(e)?t=this.cachedPatterns.get(e):(t=(0,i.getShadingPattern)(this.getObject(e)),this.cachedPatterns.set(e,t)),r&&(t.matrix=r),t}shadingFill(e){if(this.contentVisible){var t=this.ctx;this.save();var r=this._getPattern(e);t.fillStyle=r.getPattern(t,this,(0,o.getCurrentTransformInverse)(t),i.PathType.SHADING);var a=(0,o.getCurrentTransformInverse)(t);if(a){var{width:s,height:l}=t.canvas,[c,u,d,p]=n.Util.getAxialAlignedBoundingBox([0,0,s,l],a);this.ctx.fillRect(c,u,d-c,p-u)}else this.ctx.fillRect(-1e10,-1e10,2e10,2e10);this.compose(this.current.getClippedPathBoundingBox()),this.restore()}}beginInlineImage(){(0,n.unreachable)("Should not call beginInlineImage")}beginImageData(){(0,n.unreachable)("Should not call beginImageData")}paintFormXObjectBegin(e,t){if(this.contentVisible&&(this.save(),this.baseTransformStack.push(this.baseTransform),Array.isArray(e)&&6===e.length&&this.transform(...e),this.baseTransform=(0,o.getCurrentTransform)(this.ctx),t)){var r=t[2]-t[0],n=t[3]-t[1];this.ctx.rect(t[0],t[1],r,n),this.current.updateRectMinMax((0,o.getCurrentTransform)(this.ctx),t),this.clip(),this.endPath()}}paintFormXObjectEnd(){this.contentVisible&&(this.restore(),this.baseTransform=this.baseTransformStack.pop())}beginGroup(e){if(this.contentVisible){this.save(),this.inSMaskMode&&(this.endSMaskMode(),this.current.activeSMask=null);var t=this.ctx;e.isolated||(0,n.info)("TODO: Support non-isolated groups."),e.knockout&&(0,n.warn)("Knockout groups not supported.");var r=(0,o.getCurrentTransform)(t);if(e.matrix&&t.transform(...e.matrix),!e.bbox)throw new Error("Bounding box is required.");var i=n.Util.getAxialAlignedBoundingBox(e.bbox,(0,o.getCurrentTransform)(t)),a=[0,0,t.canvas.width,t.canvas.height];i=n.Util.intersect(i,a)||[0,0,0,0];var l=Math.floor(i[0]),c=Math.floor(i[1]),u=Math.max(Math.ceil(i[2])-l,1),d=Math.max(Math.ceil(i[3])-c,1),p=1,f=1;u>s&&(p=u/s,u=s),d>s&&(f=d/s,d=s),this.current.startNewPathAndClipBox([0,0,u,d]);var v="groupAt"+this.groupLevel;e.smask&&(v+="_smask_"+this.smaskCounter++%2);var g=this.cachedCanvases.getCanvas(v,u,d),m=g.context;m.scale(1/p,1/f),m.translate(-l,-c),m.transform(...r),e.smask?this.smaskStack.push({canvas:g.canvas,context:m,offsetX:l,offsetY:c,scaleX:p,scaleY:f,subtype:e.smask.subtype,backdrop:e.smask.backdrop,transferMap:e.smask.transferMap||null,startTransformInverse:null}):(t.setTransform(1,0,0,1,0,0),t.translate(l,c),t.scale(p,f),t.save()),h(t,m),this.ctx=m,this.setGState([["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push(t),this.groupLevel++}}endGroup(e){if(this.contentVisible){this.groupLevel--;var t=this.ctx,r=this.groupStack.pop();if(this.ctx=r,this.ctx.imageSmoothingEnabled=!1,e.smask)this.tempSMask=this.smaskStack.pop(),this.restore();else{this.ctx.restore();var i=(0,o.getCurrentTransform)(this.ctx);this.restore(),this.ctx.save(),this.ctx.setTransform(...i);var a=n.Util.getAxialAlignedBoundingBox([0,0,t.canvas.width,t.canvas.height],i);this.ctx.drawImage(t.canvas,0,0),this.ctx.restore(),this.compose(a)}}}beginAnnotation(e,t,r,i,a){if(_classPrivateMethodGet(this,k,E).call(this),v(this.ctx),this.ctx.save(),this.save(),this.baseTransform&&this.ctx.setTransform(...this.baseTransform),Array.isArray(t)&&4===t.length){var s=t[2]-t[0],l=t[3]-t[1];if(a&&this.annotationCanvasMap){(r=r.slice())[4]-=t[0],r[5]-=t[1],(t=t.slice())[0]=t[1]=0,t[2]=s,t[3]=l;var[c,u]=n.Util.singularValueDecompose2dScale((0,o.getCurrentTransform)(this.ctx)),{viewportScale:p}=this,f=Math.ceil(s*this.outputScaleX*p),h=Math.ceil(l*this.outputScaleY*p);this.annotationCanvas=this.canvasFactory.create(f,h);var{canvas:g,context:m}=this.annotationCanvas;this.annotationCanvasMap.set(e,g),this.annotationCanvas.savedCtx=this.ctx,this.ctx=m,this.ctx.save(),this.ctx.setTransform(c,0,0,-u,0,l*u),v(this.ctx)}else v(this.ctx),this.ctx.rect(t[0],t[1],s,l),this.ctx.clip(),this.endPath()}this.current=new d(this.ctx.canvas.width,this.ctx.canvas.height),this.transform(...r),this.transform(...i)}endAnnotation(){this.annotationCanvas&&(this.ctx.restore(),_classPrivateMethodGet(this,S,O).call(this),this.ctx=this.annotationCanvas.savedCtx,delete this.annotationCanvas.savedCtx,delete this.annotationCanvas)}paintImageMaskXObject(e){if(this.contentVisible){var t=e.count;(e=this.getObject(e.data,e)).count=t;var r=this.ctx,n=this.processingType3;if(n&&(void 0===n.compiled&&(n.compiled=function(e){var{width:t,height:r}=e;if(t>1e3||r>1e3)return null;var n,o,i,a=new Uint8Array([0,2,4,0,1,0,5,4,8,10,0,8,0,2,1,0]),s=t+1,l=new Uint8Array(s*(r+1)),c=t+7&-8,u=new Uint8Array(c*r),d=0;for(var p of e.data)for(var f=128;f>0;)u[d++]=p&f?0:255,f>>=1;var h=0;for(0!==u[d=0]&&(l[0]=1,++h),o=1;o>2)+(u[d+1]?4:0)+(u[d-c+1]?8:0)]&&(l[i+o]=a[v],++h),d++;if(u[d-c]!==u[d]&&(l[i+o]=u[d]?2:4,++h),h>1e3)return null}for(i=n*s,0!==u[d=c*(r-1)]&&(l[i]=8,++h),o=1;o1e3)return null;var g=new Int32Array([0,s,-1,0,-s,0,0,0,1]),m=new Path2D;for(n=0;h&&n<=r;n++){for(var b=n*s,y=b+t;b>4,l[b]&=_>>2|_<<2),m.lineTo(b%s,b/s|0),l[b]||--h}while(A!==b);--n}}return u=null,l=null,function(e){e.save(),e.scale(1/t,-1/r),e.translate(0,-r),e.fill(m),e.beginPath(),e.restore()}}(e)),n.compiled))n.compiled(r);else{var o=this._createMaskCanvas(e),i=o.canvas;r.save(),r.setTransform(1,0,0,1,0,0),r.drawImage(i,o.offsetX,o.offsetY),r.restore(),this.compose()}}}paintImageMaskXObjectRepeat(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0;if(this.contentVisible){e=this.getObject(e.data,e);var l=this.ctx;l.save();var c=(0,o.getCurrentTransform)(l);l.transform(t,r,i,a,0,0);var u=this._createMaskCanvas(e);l.setTransform(1,0,0,1,u.offsetX-c[4],u.offsetY-c[5]);for(var d=0,p=s.length;dv?h/v:1,t=f>v?f/v:1}}this._cachedScaleForStroking[0]=e,this._cachedScaleForStroking[1]=t}return this._cachedScaleForStroking}rescaleAndStroke(e){var{ctx:t}=this,{lineWidth:r}=this.current,[n,o]=this.getScaleForStroking();if(t.lineWidth=r||1,1!==n||1!==o){var i=t.getLineDash();if(e&&t.save(),t.scale(n,o),i.length>0){var a=Math.max(n,o);t.setLineDash(i.map((e=>e/a))),t.lineDashOffset/=a}t.stroke(),e&&t.restore()}else t.stroke()}isContentVisible(){for(var e=this.markedContentStack.length-1;e>=0;e--)if(!this.markedContentStack[e].visible)return!1;return!0}}function E(){for(;this.stateStack.length||this.inSMaskMode;)this.restore();this.ctx.restore(),this.transparentCanvas&&(this.ctx=this.compositeCtx,this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.drawImage(this.transparentCanvas,0,0),this.ctx.restore(),this.transparentCanvas=null)}function O(){if(this.pageColors){var e=this.filterFactory.addHCMFilter(this.pageColors.foreground,this.pageColors.background);if("none"!==e){var t=this.ctx.filter;this.ctx.filter=e,this.ctx.drawImage(this.ctx.canvas,0,0),this.ctx.filter=t}}}for(var M in t.CanvasGraphics=P,n.OPS)void 0!==P.prototype[M]&&(P.prototype[n.OPS[M]]=P.prototype[M])},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TilingPattern=t.PathType=void 0,t.getShadingPattern=function(e){switch(e[0]){case"RadialAxial":return new l(e);case"Mesh":return new d(e);case"Dummy":return new p}throw new Error("Unknown IR type: ".concat(e[0]))};var n=r(1),o=r(6),i={FILL:"Fill",STROKE:"Stroke",SHADING:"Shading"};function a(e,t){if(t){var r=t[2]-t[0],n=t[3]-t[1],o=new Path2D;o.rect(t[0],t[1],r,n),e.clip(o)}}t.PathType=i;class s{constructor(){this.constructor===s&&(0,n.unreachable)("Cannot initialize BaseShadingPattern.")}getPattern(){(0,n.unreachable)("Abstract method `getPattern` called.")}}class l extends s{constructor(e){super(),this._type=e[1],this._bbox=e[2],this._colorStops=e[3],this._p0=e[4],this._p1=e[5],this._r0=e[6],this._r1=e[7],this.matrix=null}_createGradient(e){var t;for(var r of("axial"===this._type?t=e.createLinearGradient(this._p0[0],this._p0[1],this._p1[0],this._p1[1]):"radial"===this._type&&(t=e.createRadialGradient(this._p0[0],this._p0[1],this._r0,this._p1[0],this._p1[1],this._r1)),this._colorStops))t.addColorStop(r[0],r[1]);return t}getPattern(e,t,r,s){var l;if(s===i.STROKE||s===i.FILL){var c=t.current.getClippedPathBoundingBox(s,(0,o.getCurrentTransform)(e))||[0,0,0,0],u=Math.ceil(c[2]-c[0])||1,d=Math.ceil(c[3]-c[1])||1,p=t.cachedCanvases.getCanvas("pattern",u,d,!0),f=p.context;f.clearRect(0,0,f.canvas.width,f.canvas.height),f.beginPath(),f.rect(0,0,f.canvas.width,f.canvas.height),f.translate(-c[0],-c[1]),r=n.Util.transform(r,[1,0,0,1,c[0],c[1]]),f.transform(...t.baseTransform),this.matrix&&f.transform(...this.matrix),a(f,this._bbox),f.fillStyle=this._createGradient(f),f.fill(),l=e.createPattern(p.canvas,"no-repeat");var h=new DOMMatrix(r);l.setTransform(h)}else a(e,this._bbox),l=this._createGradient(e);return l}}function c(e,t,r,n,o,i,a,s){var l,c=t.coords,u=t.colors,d=e.data,p=4*e.width;c[r+1]>c[n+1]&&(l=r,r=n,n=l,l=i,i=a,a=l),c[n+1]>c[o+1]&&(l=n,n=o,o=l,l=a,a=s,s=l),c[r+1]>c[n+1]&&(l=r,r=n,n=l,l=i,i=a,a=l);var f=(c[r]+t.offsetX)*t.scaleX,h=(c[r+1]+t.offsetY)*t.scaleY,v=(c[n]+t.offsetX)*t.scaleX,g=(c[n+1]+t.offsetY)*t.scaleY,m=(c[o]+t.offsetX)*t.scaleX,b=(c[o+1]+t.offsetY)*t.scaleY;if(!(h>=b))for(var y,A,_,C,w,x,k,S,P=u[i],E=u[i+1],O=u[i+2],M=u[a],F=u[a+1],R=u[a+2],T=u[s],I=u[s+1],D=u[s+2],j=Math.round(h),B=Math.round(b),L=j;L<=B;L++){if(Lb?1:g===b?0:(g-L)/(g-b)),A=M-(M-T)*N,_=F-(F-I)*N,C=R-(R-D)*N}var G=void 0;w=f-(f-m)*(G=Lb?1:(h-L)/(h-b)),x=P-(P-T)*G,k=E-(E-I)*G,S=O-(O-D)*G;for(var z=Math.round(Math.min(y,w)),W=Math.round(Math.max(y,w)),U=p*L+4*z,q=z;q<=W;q++)(G=(y-q)/(y-w))<0?G=0:G>1&&(G=1),d[U++]=A-(A-x)*G|0,d[U++]=_-(_-k)*G|0,d[U++]=C-(C-S)*G|0,d[U++]=255}}function u(e,t,r){var n,o,i=t.coords,a=t.colors;switch(t.type){case"lattice":var s=t.verticesPerRow,l=Math.floor(i.length/s)-1,u=s-1;for(n=0;n=n?o=n:r=o/e,{scale:r,size:o}}clipBbox(e,t,r,n,i){var a=n-t,s=i-r;e.ctx.rect(t,r,a,s),e.current.updateRectMinMax((0,o.getCurrentTransform)(e.ctx),[t,r,n,i]),e.clip(),e.endPath()}setFillAndStrokeStyleToContext(e,t,r){var o=e.ctx,i=e.current;switch(t){case f:var a=this.ctx;o.fillStyle=a.fillStyle,o.strokeStyle=a.strokeStyle,i.fillColor=a.fillStyle,i.strokeColor=a.strokeStyle;break;case h:var s=n.Util.makeHexColor(r[0],r[1],r[2]);o.fillStyle=s,o.strokeStyle=s,i.fillColor=s,i.strokeColor=s;break;default:throw new n.FormatError("Unsupported paint type: ".concat(t))}}getPattern(e,t,r,o){var a=r;o!==i.SHADING&&(a=n.Util.transform(a,t.baseTransform),this.matrix&&(a=n.Util.transform(a,this.matrix)));var s=this.createPatternCanvas(t),l=new DOMMatrix(a);l=(l=l.translate(s.offsetX,s.offsetY)).scale(1/s.scaleX,1/s.scaleY);var c=e.createPattern(s.canvas,"repeat");return c.setTransform(l),c}}_defineProperty(v,"MAX_PATTERN_SIZE",3e3),t.TilingPattern=v},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.convertBlackAndWhiteToRGBA=o,t.convertToRGBA=function(e){switch(e.kind){case n.ImageKind.GRAYSCALE_1BPP:return o(e);case n.ImageKind.RGB_24BPP:return function(e){var{src:t,srcPos:r=0,dest:o,destPos:i=0,width:a,height:s}=e,l=0,c=t.length>>2,u=new Uint32Array(t.buffer,r,c);if(n.FeatureTest.isLittleEndian){for(;l>>24|p<<8|4278190080,o[i+2]=p>>>16|f<<16|4278190080,o[i+3]=f>>>8|4278190080}for(var h=4*l,v=t.length;h>>8|255,o[i+2]=m<<16|b>>>16|255,o[i+3]=b<<8|255}for(var y=4*l,A=t.length;y>3,f=7&i,h=t.length;o=new Uint32Array(o.buffer);for(var v=0,g=0;g{Object.defineProperty(t,"__esModule",{value:!0}),t.GlobalWorkerOptions=void 0;var r=Object.create(null);t.GlobalWorkerOptions=r,r.workerPort=null,r.workerSrc=""},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MessageHandler=void 0;var n=r(1),o=1,i=2,a=1,s=2,l=3,c=4,u=5,d=6,p=7,f=8;function h(e){switch(e instanceof Error||"object"===typeof e&&null!==e||(0,n.unreachable)('wrapReason: Expected "reason" to be a (possibly cloned) Error.'),e.name){case"AbortException":return new n.AbortException(e.message);case"MissingPDFException":return new n.MissingPDFException(e.message);case"PasswordException":return new n.PasswordException(e.message,e.code);case"UnexpectedResponseException":return new n.UnexpectedResponseException(e.message,e.status);case"UnknownErrorException":return new n.UnknownErrorException(e.message,e.details);default:return new n.UnknownErrorException(e.message,e.toString())}}var v=new WeakSet,g=new WeakSet,m=new WeakSet;function b(e){var t=e.streamId,r=this.sourceName,o=e.sourceName,i=this.comObj,a=this,s=this.actionHandler[e.action],d={enqueue(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,s=arguments.length>2?arguments[2]:void 0;if(!this.isCancelled){var l=this.desiredSize;this.desiredSize-=a,l>0&&this.desiredSize<=0&&(this.sinkCapability=new n.PromiseCapability,this.ready=this.sinkCapability.promise),i.postMessage({sourceName:r,targetName:o,stream:c,streamId:t,chunk:e},s)}},close(){this.isCancelled||(this.isCancelled=!0,i.postMessage({sourceName:r,targetName:o,stream:l,streamId:t}),delete a.streamSinks[t])},error(e){(0,n.assert)(e instanceof Error,"error must have a valid reason"),this.isCancelled||(this.isCancelled=!0,i.postMessage({sourceName:r,targetName:o,stream:u,streamId:t,reason:h(e)}))},sinkCapability:new n.PromiseCapability,onPull:null,onCancel:null,isCancelled:!1,desiredSize:e.desiredSize,ready:null};d.sinkCapability.resolve(),d.ready=d.sinkCapability.promise,this.streamSinks[t]=d,new Promise((function(t){t(s(e.data,d))})).then((function(){i.postMessage({sourceName:r,targetName:o,stream:f,streamId:t,success:!0})}),(function(e){i.postMessage({sourceName:r,targetName:o,stream:f,streamId:t,reason:h(e)})}))}function y(e){var t=e.streamId,r=this.sourceName,o=e.sourceName,i=this.comObj,v=this.streamControllers[t],g=this.streamSinks[t];switch(e.stream){case f:e.success?v.startCall.resolve():v.startCall.reject(h(e.reason));break;case p:e.success?v.pullCall.resolve():v.pullCall.reject(h(e.reason));break;case d:if(!g){i.postMessage({sourceName:r,targetName:o,stream:p,streamId:t,success:!0});break}g.desiredSize<=0&&e.desiredSize>0&&g.sinkCapability.resolve(),g.desiredSize=e.desiredSize,new Promise((function(e){var t;e(null===(t=g.onPull)||void 0===t?void 0:t.call(g))})).then((function(){i.postMessage({sourceName:r,targetName:o,stream:p,streamId:t,success:!0})}),(function(e){i.postMessage({sourceName:r,targetName:o,stream:p,streamId:t,reason:h(e)})}));break;case c:if((0,n.assert)(v,"enqueue should have stream controller"),v.isClosed)break;v.controller.enqueue(e.chunk);break;case l:if((0,n.assert)(v,"close should have stream controller"),v.isClosed)break;v.isClosed=!0,v.controller.close(),_classPrivateMethodGet(this,m,A).call(this,v,t);break;case u:(0,n.assert)(v,"error should have stream controller"),v.controller.error(h(e.reason)),_classPrivateMethodGet(this,m,A).call(this,v,t);break;case s:e.success?v.cancelCall.resolve():v.cancelCall.reject(h(e.reason)),_classPrivateMethodGet(this,m,A).call(this,v,t);break;case a:if(!g)break;new Promise((function(t){var r;t(null===(r=g.onCancel)||void 0===r?void 0:r.call(g,h(e.reason)))})).then((function(){i.postMessage({sourceName:r,targetName:o,stream:s,streamId:t,success:!0})}),(function(e){i.postMessage({sourceName:r,targetName:o,stream:s,streamId:t,reason:h(e)})})),g.sinkCapability.reject(h(e.reason)),g.isCancelled=!0,delete this.streamSinks[t];break;default:throw new Error("Unexpected stream case")}}function A(e,t){return _.apply(this,arguments)}function _(){return(_=_asyncToGenerator((function*(e,t){var r,n,o;yield Promise.allSettled([null===(r=e.startCall)||void 0===r?void 0:r.promise,null===(n=e.pullCall)||void 0===n?void 0:n.promise,null===(o=e.cancelCall)||void 0===o?void 0:o.promise]),delete this.streamControllers[t]}))).apply(this,arguments)}t.MessageHandler=class{constructor(e,t,r){_classPrivateMethodInitSpec(this,m),_classPrivateMethodInitSpec(this,g),_classPrivateMethodInitSpec(this,v),this.sourceName=e,this.targetName=t,this.comObj=r,this.callbackId=1,this.streamId=1,this.streamSinks=Object.create(null),this.streamControllers=Object.create(null),this.callbackCapabilities=Object.create(null),this.actionHandler=Object.create(null),this._onComObjOnMessage=e=>{var t=e.data;if(t.targetName===this.sourceName)if(t.stream)_classPrivateMethodGet(this,g,y).call(this,t);else if(t.callback){var n=t.callbackId,a=this.callbackCapabilities[n];if(!a)throw new Error("Cannot resolve callback ".concat(n));if(delete this.callbackCapabilities[n],t.callback===o)a.resolve(t.data);else{if(t.callback!==i)throw new Error("Unexpected callback case");a.reject(h(t.reason))}}else{var s=this.actionHandler[t.action];if(!s)throw new Error("Unknown action from worker: ".concat(t.action));if(t.callbackId){var l=this.sourceName,c=t.sourceName;new Promise((function(e){e(s(t.data))})).then((function(e){r.postMessage({sourceName:l,targetName:c,callback:o,callbackId:t.callbackId,data:e})}),(function(e){r.postMessage({sourceName:l,targetName:c,callback:i,callbackId:t.callbackId,reason:h(e)})}))}else t.streamId?_classPrivateMethodGet(this,v,b).call(this,t):s(t.data)}},r.addEventListener("message",this._onComObjOnMessage)}on(e,t){var r=this.actionHandler;if(r[e])throw new Error('There is already an actionName called "'.concat(e,'"'));r[e]=t}send(e,t,r){this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,data:t},r)}sendWithPromise(e,t,r){var o=this.callbackId++,i=new n.PromiseCapability;this.callbackCapabilities[o]=i;try{this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,callbackId:o,data:t},r)}catch(a){i.reject(a)}return i.promise}sendWithStream(e,t,r,o){var i=this.streamId++,s=this.sourceName,l=this.targetName,c=this.comObj;return new ReadableStream({start:r=>{var a=new n.PromiseCapability;return this.streamControllers[i]={controller:r,startCall:a,pullCall:null,cancelCall:null,isClosed:!1},c.postMessage({sourceName:s,targetName:l,action:e,streamId:i,data:t,desiredSize:r.desiredSize},o),a.promise},pull:e=>{var t=new n.PromiseCapability;return this.streamControllers[i].pullCall=t,c.postMessage({sourceName:s,targetName:l,stream:d,streamId:i,desiredSize:e.desiredSize}),t.promise},cancel:e=>{(0,n.assert)(e instanceof Error,"cancel must have a valid reason");var t=new n.PromiseCapability;return this.streamControllers[i].cancelCall=t,this.streamControllers[i].isClosed=!0,c.postMessage({sourceName:s,targetName:l,stream:a,streamId:i,reason:h(e)}),t.promise}},r)}destroy(){this.comObj.removeEventListener("message",this._onComObjOnMessage)}}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Metadata=void 0;var n=r(1),o=new WeakMap,i=new WeakMap;t.Metadata=class{constructor(e){var{parsedData:t,rawData:r}=e;_classPrivateFieldInitSpec(this,o,{writable:!0,value:void 0}),_classPrivateFieldInitSpec(this,i,{writable:!0,value:void 0}),_classPrivateFieldSet(this,o,t),_classPrivateFieldSet(this,i,r)}getRaw(){return _classPrivateFieldGet(this,i)}get(e){var t;return null!==(t=_classPrivateFieldGet(this,o).get(e))&&void 0!==t?t:null}getAll(){return(0,n.objectFromMap)(_classPrivateFieldGet(this,o))}has(e){return _classPrivateFieldGet(this,o).has(e)}}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.OptionalContentConfig=void 0;var n=r(1),o=r(8),i=Symbol("INTERNAL"),a=new WeakMap;class s{constructor(e,t){_classPrivateFieldInitSpec(this,a,{writable:!0,value:!0}),this.name=e,this.intent=t}get visible(){return _classPrivateFieldGet(this,a)}_setVisible(e,t){e!==i&&(0,n.unreachable)("Internal method `_setVisible` called."),_classPrivateFieldSet(this,a,t)}}var l=new WeakMap,c=new WeakMap,u=new WeakMap,d=new WeakMap,p=new WeakSet;function f(e){var t=e.length;if(t<2)return!0;for(var r=e[0],o=1;o1&&void 0!==arguments[1])||arguments[1];_classPrivateFieldGet(this,c).has(e)?(_classPrivateFieldGet(this,c).get(e)._setVisible(i,!!t),_classPrivateFieldSet(this,l,null)):(0,n.warn)("Optional content group not found: ".concat(e))}get hasInitialVisibility(){return null===_classPrivateFieldGet(this,u)||this.getHash()===_classPrivateFieldGet(this,u)}getOrder(){return _classPrivateFieldGet(this,c).size?_classPrivateFieldGet(this,d)?_classPrivateFieldGet(this,d).slice():[..._classPrivateFieldGet(this,c).keys()]:null}getGroups(){return _classPrivateFieldGet(this,c).size>0?(0,n.objectFromMap)(_classPrivateFieldGet(this,c)):null}getGroup(e){return _classPrivateFieldGet(this,c).get(e)||null}getHash(){if(null!==_classPrivateFieldGet(this,l))return _classPrivateFieldGet(this,l);var e=new o.MurmurHash3_64;for(var[t,r]of _classPrivateFieldGet(this,c))e.update("".concat(t,":").concat(r.visible));return _classPrivateFieldSet(this,l,e.hexdigest())}}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PDFDataTransportStream=void 0;var n=r(1),o=r(6);t.PDFDataTransportStream=class{constructor(e,t){var{length:r,initialData:o,progressiveDone:i=!1,contentDispositionFilename:a=null,disableRange:s=!1,disableStream:l=!1}=e;if((0,n.assert)(t,'PDFDataTransportStream - missing required "pdfDataRangeTransport" argument.'),this._queuedChunks=[],this._progressiveDone=i,this._contentDispositionFilename=a,(null===o||void 0===o?void 0:o.length)>0){var c=o instanceof Uint8Array&&o.byteLength===o.buffer.byteLength?o.buffer:new Uint8Array(o).buffer;this._queuedChunks.push(c)}this._pdfDataRangeTransport=t,this._isStreamingSupported=!l,this._isRangeSupported=!s,this._contentLength=r,this._fullRequestReader=null,this._rangeReaders=[],this._pdfDataRangeTransport.addRangeListener(((e,t)=>{this._onReceiveData({begin:e,chunk:t})})),this._pdfDataRangeTransport.addProgressListener(((e,t)=>{this._onProgress({loaded:e,total:t})})),this._pdfDataRangeTransport.addProgressiveReadListener((e=>{this._onReceiveData({chunk:e})})),this._pdfDataRangeTransport.addProgressiveDoneListener((()=>{this._onProgressiveDone()})),this._pdfDataRangeTransport.transportReady()}_onReceiveData(e){var{begin:t,chunk:r}=e,o=r instanceof Uint8Array&&r.byteLength===r.buffer.byteLength?r.buffer:new Uint8Array(r).buffer;if(void 0===t)this._fullRequestReader?this._fullRequestReader._enqueue(o):this._queuedChunks.push(o);else{var i=this._rangeReaders.some((function(e){return e._begin===t&&(e._enqueue(o),!0)}));(0,n.assert)(i,"_onReceiveData - no `PDFDataTransportStreamRangeReader` instance found.")}}get _progressiveDataLength(){var e,t;return null!==(e=null===(t=this._fullRequestReader)||void 0===t?void 0:t._loaded)&&void 0!==e?e:0}_onProgress(e){var t,r,n,o;void 0===e.total?null===(t=this._rangeReaders[0])||void 0===t||null===(r=t.onProgress)||void 0===r||r.call(t,{loaded:e.loaded}):null===(n=this._fullRequestReader)||void 0===n||null===(o=n.onProgress)||void 0===o||o.call(n,{loaded:e.loaded,total:e.total})}_onProgressiveDone(){var e;null===(e=this._fullRequestReader)||void 0===e||e.progressiveDone(),this._progressiveDone=!0}_removeRangeReader(e){var t=this._rangeReaders.indexOf(e);t>=0&&this._rangeReaders.splice(t,1)}getFullReader(){(0,n.assert)(!this._fullRequestReader,"PDFDataTransportStream.getFullReader can only be called once.");var e=this._queuedChunks;return this._queuedChunks=null,new i(this,e,this._progressiveDone,this._contentDispositionFilename)}getRangeReader(e,t){if(t<=this._progressiveDataLength)return null;var r=new a(this,e,t);return this._pdfDataRangeTransport.requestDataRange(e,t),this._rangeReaders.push(r),r}cancelAllRequests(e){var t;for(var r of(null===(t=this._fullRequestReader)||void 0===t||t.cancel(e),this._rangeReaders.slice(0)))r.cancel(e);this._pdfDataRangeTransport.abort()}};class i{constructor(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;for(var i of(this._stream=e,this._done=r||!1,this._filename=(0,o.isPdfFile)(n)?n:null,this._queuedChunks=t||[],this._loaded=0,this._queuedChunks))this._loaded+=i.byteLength;this._requests=[],this._headersReady=Promise.resolve(),e._fullRequestReader=this,this.onProgress=null}_enqueue(e){this._done||(this._requests.length>0?this._requests.shift().resolve({value:e,done:!1}):this._queuedChunks.push(e),this._loaded+=e.byteLength)}get headersReady(){return this._headersReady}get filename(){return this._filename}get isRangeSupported(){return this._stream._isRangeSupported}get isStreamingSupported(){return this._stream._isStreamingSupported}get contentLength(){return this._stream._contentLength}read(){var e=this;return _asyncToGenerator((function*(){if(e._queuedChunks.length>0)return{value:e._queuedChunks.shift(),done:!1};if(e._done)return{value:void 0,done:!0};var t=new n.PromiseCapability;return e._requests.push(t),t.promise}))()}cancel(e){for(var t of(this._done=!0,this._requests))t.resolve({value:void 0,done:!0});this._requests.length=0}progressiveDone(){this._done||(this._done=!0)}}class a{constructor(e,t,r){this._stream=e,this._begin=t,this._end=r,this._queuedChunk=null,this._requests=[],this._done=!1,this.onProgress=null}_enqueue(e){if(!this._done){if(0===this._requests.length)this._queuedChunk=e;else{var t=this._requests.shift();for(var r of(t.resolve({value:e,done:!1}),this._requests))r.resolve({value:void 0,done:!0});this._requests.length=0}this._done=!0,this._stream._removeRangeReader(this)}}get isStreamingSupported(){return!1}read(){var e=this;return _asyncToGenerator((function*(){if(e._queuedChunk){var t=e._queuedChunk;return e._queuedChunk=null,{value:t,done:!1}}if(e._done)return{value:void 0,done:!0};var r=new n.PromiseCapability;return e._requests.push(r),r.promise}))()}cancel(e){for(var t of(this._done=!0,this._requests))t.resolve({value:void 0,done:!0});this._requests.length=0,this._stream._removeRangeReader(this)}}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PDFFetchStream=void 0;var n=r(1),o=r(20);function i(e,t,r){return{method:"GET",headers:e,signal:r.signal,mode:"cors",credentials:t?"include":"same-origin",redirect:"follow"}}function a(e){var t=new Headers;for(var r in e){var n=e[r];void 0!==n&&t.append(r,n)}return t}function s(e){return e instanceof Uint8Array?e.buffer:e instanceof ArrayBuffer?e:((0,n.warn)("getArrayBuffer - unexpected data format: ".concat(e)),new Uint8Array(e).buffer)}t.PDFFetchStream=class{constructor(e){this.source=e,this.isHttp=/^https?:/i.test(e.url),this.httpHeaders=this.isHttp&&e.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){var e,t;return null!==(e=null===(t=this._fullRequestReader)||void 0===t?void 0:t._loaded)&&void 0!==e?e:0}getFullReader(){return(0,n.assert)(!this._fullRequestReader,"PDFFetchStream.getFullReader can only be called once."),this._fullRequestReader=new l(this),this._fullRequestReader}getRangeReader(e,t){if(t<=this._progressiveDataLength)return null;var r=new c(this,e,t);return this._rangeRequestReaders.push(r),r}cancelAllRequests(e){var t;for(var r of(null===(t=this._fullRequestReader)||void 0===t||t.cancel(e),this._rangeRequestReaders.slice(0)))r.cancel(e)}};class l{constructor(e){this._stream=e,this._reader=null,this._loaded=0,this._filename=null;var t=e.source;this._withCredentials=t.withCredentials||!1,this._contentLength=t.length,this._headersCapability=new n.PromiseCapability,this._disableRange=t.disableRange||!1,this._rangeChunkSize=t.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),this._abortController=new AbortController,this._isStreamingSupported=!t.disableStream,this._isRangeSupported=!t.disableRange,this._headers=a(this._stream.httpHeaders);var r=t.url;fetch(r,i(this._headers,this._withCredentials,this._abortController)).then((e=>{if(!(0,o.validateResponseStatus)(e.status))throw(0,o.createResponseStatusError)(e.status,r);this._reader=e.body.getReader(),this._headersCapability.resolve();var t=t=>e.headers.get(t),{allowRangeRequests:i,suggestedLength:a}=(0,o.validateRangeRequestCapabilities)({getResponseHeader:t,isHttp:this._stream.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});this._isRangeSupported=i,this._contentLength=a||this._contentLength,this._filename=(0,o.extractFilenameFromHeader)(t),!this._isStreamingSupported&&this._isRangeSupported&&this.cancel(new n.AbortException("Streaming is disabled."))})).catch(this._headersCapability.reject),this.onProgress=null}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}read(){var e=this;return _asyncToGenerator((function*(){var t;yield e._headersCapability.promise;var{value:r,done:n}=yield e._reader.read();return n?{value:r,done:n}:(e._loaded+=r.byteLength,null===(t=e.onProgress)||void 0===t||t.call(e,{loaded:e._loaded,total:e._contentLength}),{value:s(r),done:!1})}))()}cancel(e){var t;null===(t=this._reader)||void 0===t||t.cancel(e),this._abortController.abort()}}class c{constructor(e,t,r){this._stream=e,this._reader=null,this._loaded=0;var s=e.source;this._withCredentials=s.withCredentials||!1,this._readCapability=new n.PromiseCapability,this._isStreamingSupported=!s.disableStream,this._abortController=new AbortController,this._headers=a(this._stream.httpHeaders),this._headers.append("Range","bytes=".concat(t,"-").concat(r-1));var l=s.url;fetch(l,i(this._headers,this._withCredentials,this._abortController)).then((e=>{if(!(0,o.validateResponseStatus)(e.status))throw(0,o.createResponseStatusError)(e.status,l);this._readCapability.resolve(),this._reader=e.body.getReader()})).catch(this._readCapability.reject),this.onProgress=null}get isStreamingSupported(){return this._isStreamingSupported}read(){var e=this;return _asyncToGenerator((function*(){var t;yield e._readCapability.promise;var{value:r,done:n}=yield e._reader.read();return n?{value:r,done:n}:(e._loaded+=r.byteLength,null===(t=e.onProgress)||void 0===t||t.call(e,{loaded:e._loaded}),{value:s(r),done:!1})}))()}cancel(e){var t;null===(t=this._reader)||void 0===t||t.cancel(e),this._abortController.abort()}}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createResponseStatusError=function(e,t){return 404===e||0===e&&t.startsWith("file:")?new n.MissingPDFException('Missing PDF "'+t+'".'):new n.UnexpectedResponseException("Unexpected server response (".concat(e,') while retrieving PDF "').concat(t,'".'),e)},t.extractFilenameFromHeader=function(e){var t=e("Content-Disposition");if(t){var r=(0,o.getFilenameFromContentDispositionHeader)(t);if(r.includes("%"))try{r=decodeURIComponent(r)}catch(n){}if((0,i.isPdfFile)(r))return r}return null},t.validateRangeRequestCapabilities=function(e){var{getResponseHeader:t,isHttp:r,rangeChunkSize:n,disableRange:o}=e,i={allowRangeRequests:!1,suggestedLength:void 0},a=parseInt(t("Content-Length"),10);return Number.isInteger(a)?(i.suggestedLength=a,a<=2*n||o||!r||"bytes"!==t("Accept-Ranges")||"identity"!==(t("Content-Encoding")||"identity")||(i.allowRangeRequests=!0),i):i},t.validateResponseStatus=function(e){return 200===e||206===e};var n=r(1),o=r(21),i=r(6)},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getFilenameFromContentDispositionHeader=function(e){var t=!0,r=a("filename\\*","i").exec(e);if(r){var o=c(r=r[1]);return l(o=d(o=u(o=unescape(o))))}if(r=function(e){for(var t,r=[],n=a("filename\\*((?!0\\d)\\d+)(\\*?)","ig");null!==(t=n.exec(e));){var[,o,i,s]=t;if((o=parseInt(o,10))in r){if(0===o)break}else r[o]=[i,s]}for(var l=[],d=0;d{Object.defineProperty(t,"__esModule",{value:!0}),t.PDFNetworkStream=void 0;var n=r(1),o=r(20);class i{constructor(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.url=e,this.isHttp=/^https?:/i.test(e),this.httpHeaders=this.isHttp&&t.httpHeaders||Object.create(null),this.withCredentials=t.withCredentials||!1,this.currXhrId=0,this.pendingRequests=Object.create(null)}requestRange(e,t,r){var n={begin:e,end:t};for(var o in r)n[o]=r[o];return this.request(n)}requestFull(e){return this.request(e)}request(e){var t=new XMLHttpRequest,r=this.currXhrId++,n=this.pendingRequests[r]={xhr:t};for(var o in t.open("GET",this.url),t.withCredentials=this.withCredentials,this.httpHeaders){var i=this.httpHeaders[o];void 0!==i&&t.setRequestHeader(o,i)}return this.isHttp&&"begin"in e&&"end"in e?(t.setRequestHeader("Range","bytes=".concat(e.begin,"-").concat(e.end-1)),n.expectedStatus=206):n.expectedStatus=200,t.responseType="arraybuffer",e.onError&&(t.onerror=function(r){e.onError(t.status)}),t.onreadystatechange=this.onStateChange.bind(this,r),t.onprogress=this.onProgress.bind(this,r),n.onHeadersReceived=e.onHeadersReceived,n.onDone=e.onDone,n.onError=e.onError,n.onProgress=e.onProgress,t.send(null),r}onProgress(e,t){var r,n=this.pendingRequests[e];n&&(null===(r=n.onProgress)||void 0===r||r.call(n,t))}onStateChange(e,t){var r=this.pendingRequests[e];if(r){var o=r.xhr;if(o.readyState>=2&&r.onHeadersReceived&&(r.onHeadersReceived(),delete r.onHeadersReceived),4===o.readyState&&e in this.pendingRequests)if(delete this.pendingRequests[e],0===o.status&&this.isHttp){var i;null===(i=r.onError)||void 0===i||i.call(r,o.status)}else{var a=o.status||200;if(200===a&&206===r.expectedStatus||a===r.expectedStatus){var s=function(e){var t=e.response;return"string"!==typeof t?t:(0,n.stringToBytes)(t).buffer}(o);if(206===a){var l=o.getResponseHeader("Content-Range"),c=/bytes (\d+)-(\d+)\/(\d+)/.exec(l);r.onDone({begin:parseInt(c[1],10),chunk:s})}else if(s)r.onDone({begin:0,chunk:s});else{var u;null===(u=r.onError)||void 0===u||u.call(r,o.status)}}else{var d;null===(d=r.onError)||void 0===d||d.call(r,o.status)}}}}getRequestXhr(e){return this.pendingRequests[e].xhr}isPendingRequest(e){return e in this.pendingRequests}abortRequest(e){var t=this.pendingRequests[e].xhr;delete this.pendingRequests[e],t.abort()}}t.PDFNetworkStream=class{constructor(e){this._source=e,this._manager=new i(e.url,{httpHeaders:e.httpHeaders,withCredentials:e.withCredentials}),this._rangeChunkSize=e.rangeChunkSize,this._fullRequestReader=null,this._rangeRequestReaders=[]}_onRangeRequestReaderClosed(e){var t=this._rangeRequestReaders.indexOf(e);t>=0&&this._rangeRequestReaders.splice(t,1)}getFullReader(){return(0,n.assert)(!this._fullRequestReader,"PDFNetworkStream.getFullReader can only be called once."),this._fullRequestReader=new a(this._manager,this._source),this._fullRequestReader}getRangeReader(e,t){var r=new s(this._manager,e,t);return r.onClosed=this._onRangeRequestReaderClosed.bind(this),this._rangeRequestReaders.push(r),r}cancelAllRequests(e){var t;for(var r of(null===(t=this._fullRequestReader)||void 0===t||t.cancel(e),this._rangeRequestReaders.slice(0)))r.cancel(e)}};class a{constructor(e,t){this._manager=e;var r={onHeadersReceived:this._onHeadersReceived.bind(this),onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=t.url,this._fullRequestId=e.requestFull(r),this._headersReceivedCapability=new n.PromiseCapability,this._disableRange=t.disableRange||!1,this._contentLength=t.length,this._rangeChunkSize=t.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),this._isStreamingSupported=!1,this._isRangeSupported=!1,this._cachedChunks=[],this._requests=[],this._done=!1,this._storedError=void 0,this._filename=null,this.onProgress=null}_onHeadersReceived(){var e=this._fullRequestId,t=this._manager.getRequestXhr(e),r=e=>t.getResponseHeader(e),{allowRangeRequests:n,suggestedLength:i}=(0,o.validateRangeRequestCapabilities)({getResponseHeader:r,isHttp:this._manager.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});n&&(this._isRangeSupported=!0),this._contentLength=i||this._contentLength,this._filename=(0,o.extractFilenameFromHeader)(r),this._isRangeSupported&&this._manager.abortRequest(e),this._headersReceivedCapability.resolve()}_onDone(e){if(e&&(this._requests.length>0?this._requests.shift().resolve({value:e.chunk,done:!1}):this._cachedChunks.push(e.chunk)),this._done=!0,!(this._cachedChunks.length>0)){for(var t of this._requests)t.resolve({value:void 0,done:!0});this._requests.length=0}}_onError(e){for(var t of(this._storedError=(0,o.createResponseStatusError)(e,this._url),this._headersReceivedCapability.reject(this._storedError),this._requests))t.reject(this._storedError);this._requests.length=0,this._cachedChunks.length=0}_onProgress(e){var t;null===(t=this.onProgress)||void 0===t||t.call(this,{loaded:e.loaded,total:e.lengthComputable?e.total:this._contentLength})}get filename(){return this._filename}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}get contentLength(){return this._contentLength}get headersReady(){return this._headersReceivedCapability.promise}read(){var e=this;return _asyncToGenerator((function*(){if(e._storedError)throw e._storedError;if(e._cachedChunks.length>0)return{value:e._cachedChunks.shift(),done:!1};if(e._done)return{value:void 0,done:!0};var t=new n.PromiseCapability;return e._requests.push(t),t.promise}))()}cancel(e){for(var t of(this._done=!0,this._headersReceivedCapability.reject(e),this._requests))t.resolve({value:void 0,done:!0});this._requests.length=0,this._manager.isPendingRequest(this._fullRequestId)&&this._manager.abortRequest(this._fullRequestId),this._fullRequestReader=null}}class s{constructor(e,t,r){this._manager=e;var n={onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=e.url,this._requestId=e.requestRange(t,r,n),this._requests=[],this._queuedChunk=null,this._done=!1,this._storedError=void 0,this.onProgress=null,this.onClosed=null}_close(){var e;null===(e=this.onClosed)||void 0===e||e.call(this,this)}_onDone(e){var t=e.chunk;for(var r of(this._requests.length>0?this._requests.shift().resolve({value:t,done:!1}):this._queuedChunk=t,this._done=!0,this._requests))r.resolve({value:void 0,done:!0});this._requests.length=0,this._close()}_onError(e){for(var t of(this._storedError=(0,o.createResponseStatusError)(e,this._url),this._requests))t.reject(this._storedError);this._requests.length=0,this._queuedChunk=null}_onProgress(e){var t;this.isStreamingSupported||null===(t=this.onProgress)||void 0===t||t.call(this,{loaded:e.loaded})}get isStreamingSupported(){return!1}read(){var e=this;return _asyncToGenerator((function*(){if(e._storedError)throw e._storedError;if(null!==e._queuedChunk){var t=e._queuedChunk;return e._queuedChunk=null,{value:t,done:!1}}if(e._done)return{value:void 0,done:!0};var r=new n.PromiseCapability;return e._requests.push(r),r.promise}))()}cancel(e){for(var t of(this._done=!0,this._requests))t.resolve({value:void 0,done:!0});this._requests.length=0,this._manager.isPendingRequest(this._requestId)&&this._manager.abortRequest(this._requestId),this._close()}}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PDFNodeStream=void 0;var n=r(1),o=r(20),i=/^file:\/\/\/[a-zA-Z]:\//;t.PDFNodeStream=class{constructor(e){this.source=e,this.url=function(e){var t=__webpack_require__(66558),r=t.parse(e);return"file:"===r.protocol||r.host?r:/^[a-z]:[/\\]/i.test(e)?t.parse("file:///".concat(e)):(r.host||(r.protocol="file:"),r)}(e.url),this.isHttp="http:"===this.url.protocol||"https:"===this.url.protocol,this.isFsUrl="file:"===this.url.protocol,this.httpHeaders=this.isHttp&&e.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){var e,t;return null!==(e=null===(t=this._fullRequestReader)||void 0===t?void 0:t._loaded)&&void 0!==e?e:0}getFullReader(){return(0,n.assert)(!this._fullRequestReader,"PDFNodeStream.getFullReader can only be called once."),this._fullRequestReader=this.isFsUrl?new d(this):new c(this),this._fullRequestReader}getRangeReader(e,t){if(t<=this._progressiveDataLength)return null;var r=this.isFsUrl?new p(this,e,t):new u(this,e,t);return this._rangeRequestReaders.push(r),r}cancelAllRequests(e){var t;for(var r of(null===(t=this._fullRequestReader)||void 0===t||t.cancel(e),this._rangeRequestReaders.slice(0)))r.cancel(e)}};class a{constructor(e){this._url=e.url,this._done=!1,this._storedError=null,this.onProgress=null;var t=e.source;this._contentLength=t.length,this._loaded=0,this._filename=null,this._disableRange=t.disableRange||!1,this._rangeChunkSize=t.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),this._isStreamingSupported=!t.disableStream,this._isRangeSupported=!t.disableRange,this._readableStream=null,this._readCapability=new n.PromiseCapability,this._headersCapability=new n.PromiseCapability}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}read(){var e=this;return _asyncToGenerator((function*(){var t;if(yield e._readCapability.promise,e._done)return{value:void 0,done:!0};if(e._storedError)throw e._storedError;var r=e._readableStream.read();return null===r?(e._readCapability=new n.PromiseCapability,e.read()):(e._loaded+=r.length,null===(t=e.onProgress)||void 0===t||t.call(e,{loaded:e._loaded,total:e._contentLength}),{value:new Uint8Array(r).buffer,done:!1})}))()}cancel(e){this._readableStream?this._readableStream.destroy(e):this._error(e)}_error(e){this._storedError=e,this._readCapability.resolve()}_setReadableStream(e){this._readableStream=e,e.on("readable",(()=>{this._readCapability.resolve()})),e.on("end",(()=>{e.destroy(),this._done=!0,this._readCapability.resolve()})),e.on("error",(e=>{this._error(e)})),!this._isStreamingSupported&&this._isRangeSupported&&this._error(new n.AbortException("streaming is disabled")),this._storedError&&this._readableStream.destroy(this._storedError)}}class s{constructor(e){this._url=e.url,this._done=!1,this._storedError=null,this.onProgress=null,this._loaded=0,this._readableStream=null,this._readCapability=new n.PromiseCapability;var t=e.source;this._isStreamingSupported=!t.disableStream}get isStreamingSupported(){return this._isStreamingSupported}read(){var e=this;return _asyncToGenerator((function*(){var t;if(yield e._readCapability.promise,e._done)return{value:void 0,done:!0};if(e._storedError)throw e._storedError;var r=e._readableStream.read();return null===r?(e._readCapability=new n.PromiseCapability,e.read()):(e._loaded+=r.length,null===(t=e.onProgress)||void 0===t||t.call(e,{loaded:e._loaded}),{value:new Uint8Array(r).buffer,done:!1})}))()}cancel(e){this._readableStream?this._readableStream.destroy(e):this._error(e)}_error(e){this._storedError=e,this._readCapability.resolve()}_setReadableStream(e){this._readableStream=e,e.on("readable",(()=>{this._readCapability.resolve()})),e.on("end",(()=>{e.destroy(),this._done=!0,this._readCapability.resolve()})),e.on("error",(e=>{this._error(e)})),this._storedError&&this._readableStream.destroy(this._storedError)}}function l(e,t){return{protocol:e.protocol,auth:e.auth,host:e.hostname,port:e.port,path:e.path,method:"GET",headers:t}}class c extends a{constructor(e){super(e);var t=t=>{if(404===t.statusCode){var r=new n.MissingPDFException('Missing PDF "'.concat(this._url,'".'));return this._storedError=r,void this._headersCapability.reject(r)}this._headersCapability.resolve(),this._setReadableStream(t);var i=e=>this._readableStream.headers[e.toLowerCase()],{allowRangeRequests:a,suggestedLength:s}=(0,o.validateRangeRequestCapabilities)({getResponseHeader:i,isHttp:e.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});this._isRangeSupported=a,this._contentLength=s||this._contentLength,this._filename=(0,o.extractFilenameFromHeader)(i)};if(this._request=null,"http:"===this._url.protocol){var r=__webpack_require__(2001);this._request=r.request(l(this._url,e.httpHeaders),t)}else{var i=__webpack_require__(33779);this._request=i.request(l(this._url,e.httpHeaders),t)}this._request.on("error",(e=>{this._storedError=e,this._headersCapability.reject(e)})),this._request.end()}}class u extends s{constructor(e,t,r){for(var o in super(e),this._httpHeaders={},e.httpHeaders){var i=e.httpHeaders[o];void 0!==i&&(this._httpHeaders[o]=i)}this._httpHeaders.Range="bytes=".concat(t,"-").concat(r-1);var a=e=>{if(404!==e.statusCode)this._setReadableStream(e);else{var t=new n.MissingPDFException('Missing PDF "'.concat(this._url,'".'));this._storedError=t}};if(this._request=null,"http:"===this._url.protocol){var s=__webpack_require__(2001);this._request=s.request(l(this._url,this._httpHeaders),a)}else{var c=__webpack_require__(33779);this._request=c.request(l(this._url,this._httpHeaders),a)}this._request.on("error",(e=>{this._storedError=e})),this._request.end()}}class d extends a{constructor(e){super(e);var t=decodeURIComponent(this._url.path);i.test(this._url.href)&&(t=t.replace(/^\//,""));var r=__webpack_require__(70172);r.lstat(t,((e,o)=>{if(e)return"ENOENT"===e.code&&(e=new n.MissingPDFException('Missing PDF "'.concat(t,'".'))),this._storedError=e,void this._headersCapability.reject(e);this._contentLength=o.size,this._setReadableStream(r.createReadStream(t)),this._headersCapability.resolve()}))}}class p extends s{constructor(e,t,r){super(e);var n=decodeURIComponent(this._url.path);i.test(this._url.href)&&(n=n.replace(/^\//,""));var o=__webpack_require__(70172);this._setReadableStream(o.createReadStream(n,{start:t,end:r-1}))}}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SVGGraphics=void 0;var n=r(6),o=r(1),i="normal",a="normal",s="#000000",l=["butt","round","square"],c=["miter","round","bevel"],u=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(URL.createObjectURL&&"undefined"!==typeof Blob&&!r)return URL.createObjectURL(new Blob([e],{type:t}));for(var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",o="data:".concat(t,";base64,"),i=0,a=e.length;i>2]+n[(3&s)<<4|l>>4]+n[i+1>6:64]+n[i+2>1&2147483647:n>>1&2147483647;t[r]=n}function a(e,r,n,o){var i=o,a=r.length;n[i]=a>>24&255,n[i+1]=a>>16&255,n[i+2]=a>>8&255,n[i+3]=255&a,n[i+=4]=255&e.charCodeAt(0),n[i+1]=255&e.charCodeAt(1),n[i+2]=255&e.charCodeAt(2),n[i+3]=255&e.charCodeAt(3),i+=4,n.set(r,i);var s=function(e,r,n){for(var o=-1,i=r;i>>8^t[a]}return-1^o}(n,o+4,i+=r.length);n[i]=s>>24&255,n[i+1]=s>>16&255,n[i+2]=s>>8&255,n[i+3]=255&s}function s(e){var t=e.length,r=65535,n=Math.ceil(t/r),o=new Uint8Array(2+t+5*n+4),i=0;o[i++]=120,o[i++]=156;for(var a=0;t>r;)o[i++]=0,o[i++]=255,o[i++]=255,o[i++]=0,o[i++]=0,o.set(e.subarray(a,a+r),i),i+=r,a+=r,t-=r;o[i++]=1,o[i++]=255&t,o[i++]=t>>8&255,o[i++]=255&~t,o[i++]=(65535&~t)>>8&255,o.set(e.subarray(a),i),i+=e.length-a;var s=function(e,t,r){for(var n=1,o=0,i=t;i>24&255,o[i++]=s>>16&255,o[i++]=s>>8&255,o[i++]=255&s,o}function l(t,r,n,i){var l,c,d,p=t.width,f=t.height,h=t.data;switch(r){case o.ImageKind.GRAYSCALE_1BPP:c=0,l=1,d=p+7>>3;break;case o.ImageKind.RGB_24BPP:c=2,l=8,d=3*p;break;case o.ImageKind.RGBA_32BPP:c=6,l=8,d=4*p;break;default:throw new Error("invalid format")}for(var v=new Uint8Array((1+d)*f),g=0,m=0,b=0;b>24&255,p>>16&255,p>>8&255,255&p,f>>24&255,f>>16&255,f>>8&255,255&f,l,c,0,0,0]),C=function(e){if(!o.isNodeJS)return s(e);try{var t=parseInt(process.versions.node)>=8?e:Buffer.from(e),r=__webpack_require__(82258).deflateSync(t,{level:9});return r instanceof Uint8Array?r:new Uint8Array(r)}catch(n){(0,o.warn)("Not compressing PNG because zlib.deflateSync is unavailable: "+n)}return s(e)}(v),w=e.length+36+_.length+C.length,x=new Uint8Array(w),k=0;return x.set(e,k),a("IHDR",_,x,k+=e.length),a("IDATA",C,x,k+=12+_.length),k+=12+C.length,a("IEND",new Uint8Array(0),x,k),u(x,"image/png",n)}return function(e,t,r){return l(e,void 0===e.kind?o.ImageKind.GRAYSCALE_1BPP:e.kind,t,r)}}();class p{constructor(){this.fontSizeScale=1,this.fontWeight=a,this.fontSize=0,this.textMatrix=o.IDENTITY_MATRIX,this.fontMatrix=o.FONT_IDENTITY_MATRIX,this.leading=0,this.textRenderingMode=o.TextRenderingMode.FILL,this.textMatrixScale=1,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRise=0,this.fillColor=s,this.strokeColor="#000000",this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.lineJoin="",this.lineCap="",this.miterLimit=0,this.dashArray=[],this.dashPhase=0,this.dependencies=[],this.activeClipUrl=null,this.clipGroup=null,this.maskId=""}clone(){return Object.create(this)}setCurrentPoint(e,t){this.x=e,this.y=t}}function f(e){if(Number.isInteger(e))return e.toString();var t=e.toFixed(10),r=t.length-1;if("0"!==t[r])return t;do{r--}while("0"===t[r]);return t.substring(0,"."===t[r]?r:r+1)}function h(e){if(0===e[4]&&0===e[5]){if(0===e[1]&&0===e[2])return 1===e[0]&&1===e[3]?"":"scale(".concat(f(e[0])," ").concat(f(e[3]),")");if(e[0]===e[3]&&e[1]===-e[2]){var t=180*Math.acos(e[0])/Math.PI;return"rotate(".concat(f(t),")")}}else if(1===e[0]&&0===e[1]&&0===e[2]&&1===e[3])return"translate(".concat(f(e[4])," ").concat(f(e[5]),")");return"matrix(".concat(f(e[0])," ").concat(f(e[1])," ").concat(f(e[2])," ").concat(f(e[3])," ").concat(f(e[4])," ")+"".concat(f(e[5]),")")}var v=0,g=0,m=0;t.SVGGraphics=class{constructor(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];for(var i in(0,n.deprecated)("The SVG back-end is no longer maintained and *may* be removed in the future."),this.svgFactory=new n.DOMSVGFactory,this.current=new p,this.transformMatrix=o.IDENTITY_MATRIX,this.transformStack=[],this.extraStack=[],this.commonObjs=e,this.objs=t,this.pendingClip=null,this.pendingEOFill=!1,this.embedFonts=!1,this.embeddedFonts=Object.create(null),this.cssStyle=null,this.forceDataSchema=!!r,this._operatorIdMapping=[],o.OPS)this._operatorIdMapping[o.OPS[i]]=i}getObject(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return"string"===typeof e?e.startsWith("g_")?this.commonObjs.get(e):this.objs.get(e):t}save(){this.transformStack.push(this.transformMatrix);var e=this.current;this.extraStack.push(e),this.current=e.clone()}restore(){this.transformMatrix=this.transformStack.pop(),this.current=this.extraStack.pop(),this.pendingClip=null,this.tgrp=null}group(e){this.save(),this.executeOpTree(e),this.restore()}loadDependencies(e){for(var t=this,r=e.fnArray,n=e.argsArray,i=0,a=r.length;i{r.get(e,t)}));t.current.dependencies.push(n)};for(var l of n[i])s(l)}return Promise.all(this.current.dependencies)}transform(e,t,r,n,i,a){var s=[e,t,r,n,i,a];this.transformMatrix=o.Util.transform(this.transformMatrix,s),this.tgrp=null}getSVG(e,t){this.viewport=t;var r=this._initialize(t);return this.loadDependencies(e).then((()=>(this.transformMatrix=o.IDENTITY_MATRIX,this.executeOpTree(this.convertOpList(e)),r)))}convertOpList(e){for(var t=this._operatorIdMapping,r=e.argsArray,n=e.fnArray,o=[],i=0,a=n.length;i0&&(this.current.lineWidth=e)}setLineCap(e){this.current.lineCap=l[e]}setLineJoin(e){this.current.lineJoin=c[e]}setMiterLimit(e){this.current.miterLimit=e}setStrokeAlpha(e){this.current.strokeAlpha=e}setStrokeRGBColor(e,t,r){this.current.strokeColor=o.Util.makeHexColor(e,t,r)}setFillAlpha(e){this.current.fillAlpha=e}setFillRGBColor(e,t,r){this.current.fillColor=o.Util.makeHexColor(e,t,r),this.current.tspan=this.svgFactory.createElement("svg:tspan"),this.current.xcoords=[],this.current.ycoords=[]}setStrokeColorN(e){this.current.strokeColor=this._makeColorN_Pattern(e)}setFillColorN(e){this.current.fillColor=this._makeColorN_Pattern(e)}shadingFill(e){var{width:t,height:r}=this.viewport,n=o.Util.inverseTransform(this.transformMatrix),[i,a,s,l]=o.Util.getAxialAlignedBoundingBox([0,0,t,r],n),c=this.svgFactory.createElement("svg:rect");c.setAttributeNS(null,"x",i),c.setAttributeNS(null,"y",a),c.setAttributeNS(null,"width",s-i),c.setAttributeNS(null,"height",l-a),c.setAttributeNS(null,"fill",this._makeShadingPattern(e)),this.current.fillAlpha<1&&c.setAttributeNS(null,"fill-opacity",this.current.fillAlpha),this._ensureTransformGroup().append(c)}_makeColorN_Pattern(e){return"TilingPattern"===e[0]?this._makeTilingPattern(e):this._makeShadingPattern(e)}_makeTilingPattern(e){var t=e[1],r=e[2],n=e[3]||o.IDENTITY_MATRIX,[i,a,s,l]=e[4],c=e[5],u=e[6],d=e[7],p="shading".concat(m++),[f,h,v,g]=o.Util.normalizeRect([...o.Util.applyTransform([i,a],n),...o.Util.applyTransform([s,l],n)]),[b,y]=o.Util.singularValueDecompose2dScale(n),A=c*b,_=u*y,C=this.svgFactory.createElement("svg:pattern");C.setAttributeNS(null,"id",p),C.setAttributeNS(null,"patternUnits","userSpaceOnUse"),C.setAttributeNS(null,"width",A),C.setAttributeNS(null,"height",_),C.setAttributeNS(null,"x","".concat(f)),C.setAttributeNS(null,"y","".concat(h));var w=this.svg,x=this.transformMatrix,k=this.current.fillColor,S=this.current.strokeColor,P=this.svgFactory.create(v-f,g-h);if(this.svg=P,this.transformMatrix=n,2===d){var E=o.Util.makeHexColor(...t);this.current.fillColor=E,this.current.strokeColor=E}return this.executeOpTree(this.convertOpList(r)),this.svg=w,this.transformMatrix=x,this.current.fillColor=k,this.current.strokeColor=S,C.append(P.childNodes[0]),this.defs.append(C),"url(#".concat(p,")")}_makeShadingPattern(e){switch("string"===typeof e&&(e=this.objs.get(e)),e[0]){case"RadialAxial":var t,r="shading".concat(m++),n=e[3];switch(e[1]){case"axial":var i=e[4],a=e[5];(t=this.svgFactory.createElement("svg:linearGradient")).setAttributeNS(null,"id",r),t.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),t.setAttributeNS(null,"x1",i[0]),t.setAttributeNS(null,"y1",i[1]),t.setAttributeNS(null,"x2",a[0]),t.setAttributeNS(null,"y2",a[1]);break;case"radial":var s=e[4],l=e[5],c=e[6],u=e[7];(t=this.svgFactory.createElement("svg:radialGradient")).setAttributeNS(null,"id",r),t.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),t.setAttributeNS(null,"cx",l[0]),t.setAttributeNS(null,"cy",l[1]),t.setAttributeNS(null,"r",u),t.setAttributeNS(null,"fx",s[0]),t.setAttributeNS(null,"fy",s[1]),t.setAttributeNS(null,"fr",c);break;default:throw new Error("Unknown RadialAxial type: ".concat(e[1]))}for(var d of n){var p=this.svgFactory.createElement("svg:stop");p.setAttributeNS(null,"offset",d[0]),p.setAttributeNS(null,"stop-color",d[1]),t.append(p)}return this.defs.append(t),"url(#".concat(r,")");case"Mesh":return(0,o.warn)("Unimplemented pattern Mesh"),null;case"Dummy":return"hotpink";default:throw new Error("Unknown IR type: ".concat(e[0]))}}setDash(e,t){this.current.dashArray=e,this.current.dashPhase=t}constructPath(e,t){var r=this.current,n=r.x,i=r.y,a=[],s=0;for(var l of e)switch(0|l){case o.OPS.rectangle:n=t[s++],i=t[s++];var c=n+t[s++],u=i+t[s++];a.push("M",f(n),f(i),"L",f(c),f(i),"L",f(c),f(u),"L",f(n),f(u),"Z");break;case o.OPS.moveTo:n=t[s++],i=t[s++],a.push("M",f(n),f(i));break;case o.OPS.lineTo:n=t[s++],i=t[s++],a.push("L",f(n),f(i));break;case o.OPS.curveTo:n=t[s+4],i=t[s+5],a.push("C",f(t[s]),f(t[s+1]),f(t[s+2]),f(t[s+3]),f(n),f(i)),s+=6;break;case o.OPS.curveTo2:a.push("C",f(n),f(i),f(t[s]),f(t[s+1]),f(t[s+2]),f(t[s+3])),n=t[s+2],i=t[s+3],s+=4;break;case o.OPS.curveTo3:n=t[s+2],i=t[s+3],a.push("C",f(t[s]),f(t[s+1]),f(n),f(i),f(n),f(i)),s+=4;break;case o.OPS.closePath:a.push("Z")}a=a.join(" "),r.path&&e.length>0&&e[0]!==o.OPS.rectangle&&e[0]!==o.OPS.moveTo?a=r.path.getAttributeNS(null,"d")+a:(r.path=this.svgFactory.createElement("svg:path"),this._ensureTransformGroup().append(r.path)),r.path.setAttributeNS(null,"d",a),r.path.setAttributeNS(null,"fill","none"),r.element=r.path,r.setCurrentPoint(n,i)}endPath(){var e=this.current;if(e.path=null,this.pendingClip)if(e.element){var t="clippath".concat(v++),r=this.svgFactory.createElement("svg:clipPath");r.setAttributeNS(null,"id",t),r.setAttributeNS(null,"transform",h(this.transformMatrix));var n=e.element.cloneNode(!0);if("evenodd"===this.pendingClip?n.setAttributeNS(null,"clip-rule","evenodd"):n.setAttributeNS(null,"clip-rule","nonzero"),this.pendingClip=null,r.append(n),this.defs.append(r),e.activeClipUrl){for(var o of(e.clipGroup=null,this.extraStack))o.clipGroup=null;r.setAttributeNS(null,"clip-path",e.activeClipUrl)}e.activeClipUrl="url(#".concat(t,")"),this.tgrp=null}else this.pendingClip=null}clip(e){this.pendingClip=e}closePath(){var e=this.current;if(e.path){var t="".concat(e.path.getAttributeNS(null,"d"),"Z");e.path.setAttributeNS(null,"d",t)}}setLeading(e){this.current.leading=-e}setTextRise(e){this.current.textRise=e}setTextRenderingMode(e){this.current.textRenderingMode=e}setHScale(e){this.current.textHScale=e/100}setRenderingIntent(e){}setFlatness(e){}setGState(e){for(var[t,r]of e)switch(t){case"LW":this.setLineWidth(r);break;case"LC":this.setLineCap(r);break;case"LJ":this.setLineJoin(r);break;case"ML":this.setMiterLimit(r);break;case"D":this.setDash(r[0],r[1]);break;case"RI":this.setRenderingIntent(r);break;case"FL":this.setFlatness(r);break;case"Font":this.setFont(r);break;case"CA":this.setStrokeAlpha(r);break;case"ca":this.setFillAlpha(r);break;default:(0,o.warn)("Unimplemented graphic state operator ".concat(t))}}fill(){var e=this.current;e.element&&(e.element.setAttributeNS(null,"fill",e.fillColor),e.element.setAttributeNS(null,"fill-opacity",e.fillAlpha),this.endPath())}stroke(){var e=this.current;e.element&&(this._setStrokeAttributes(e.element),e.element.setAttributeNS(null,"fill","none"),this.endPath())}_setStrokeAttributes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=this.current,n=r.dashArray;1!==t&&n.length>0&&(n=n.map((function(e){return t*e}))),e.setAttributeNS(null,"stroke",r.strokeColor),e.setAttributeNS(null,"stroke-opacity",r.strokeAlpha),e.setAttributeNS(null,"stroke-miterlimit",f(r.miterLimit)),e.setAttributeNS(null,"stroke-linecap",r.lineCap),e.setAttributeNS(null,"stroke-linejoin",r.lineJoin),e.setAttributeNS(null,"stroke-width",f(t*r.lineWidth)+"px"),e.setAttributeNS(null,"stroke-dasharray",n.map(f).join(" ")),e.setAttributeNS(null,"stroke-dashoffset",f(t*r.dashPhase)+"px")}eoFill(){var e;null===(e=this.current.element)||void 0===e||e.setAttributeNS(null,"fill-rule","evenodd"),this.fill()}fillStroke(){this.stroke(),this.fill()}eoFillStroke(){var e;null===(e=this.current.element)||void 0===e||e.setAttributeNS(null,"fill-rule","evenodd"),this.fillStroke()}closeStroke(){this.closePath(),this.stroke()}closeFillStroke(){this.closePath(),this.fillStroke()}closeEOFillStroke(){this.closePath(),this.eoFillStroke()}paintSolidColorImageMask(){var e=this.svgFactory.createElement("svg:rect");e.setAttributeNS(null,"x","0"),e.setAttributeNS(null,"y","0"),e.setAttributeNS(null,"width","1px"),e.setAttributeNS(null,"height","1px"),e.setAttributeNS(null,"fill",this.current.fillColor),this._ensureTransformGroup().append(e)}paintImageXObject(e){var t=this.getObject(e);t?this.paintInlineImageXObject(t):(0,o.warn)("Dependent image with object ID ".concat(e," is not ready yet"))}paintInlineImageXObject(e,t){var r=e.width,n=e.height,o=d(e,this.forceDataSchema,!!t),i=this.svgFactory.createElement("svg:rect");i.setAttributeNS(null,"x","0"),i.setAttributeNS(null,"y","0"),i.setAttributeNS(null,"width",f(r)),i.setAttributeNS(null,"height",f(n)),this.current.element=i,this.clip("nonzero");var a=this.svgFactory.createElement("svg:image");a.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",o),a.setAttributeNS(null,"x","0"),a.setAttributeNS(null,"y",f(-n)),a.setAttributeNS(null,"width",f(r)+"px"),a.setAttributeNS(null,"height",f(n)+"px"),a.setAttributeNS(null,"transform","scale(".concat(f(1/r)," ").concat(f(-1/n),")")),t?t.append(a):this._ensureTransformGroup().append(a)}paintImageMaskXObject(e){var t=this.getObject(e.data,e);if(t.bitmap)(0,o.warn)("paintImageMaskXObject: ImageBitmap support is not implemented, ensure that the `isOffscreenCanvasSupported` API parameter is disabled.");else{var r=this.current,n=t.width,i=t.height,a=r.fillColor;r.maskId="mask".concat(g++);var s=this.svgFactory.createElement("svg:mask");s.setAttributeNS(null,"id",r.maskId);var l=this.svgFactory.createElement("svg:rect");l.setAttributeNS(null,"x","0"),l.setAttributeNS(null,"y","0"),l.setAttributeNS(null,"width",f(n)),l.setAttributeNS(null,"height",f(i)),l.setAttributeNS(null,"fill",a),l.setAttributeNS(null,"mask","url(#".concat(r.maskId,")")),this.defs.append(s),this._ensureTransformGroup().append(l),this.paintInlineImageXObject(t,s)}}paintFormXObjectBegin(e,t){if(Array.isArray(e)&&6===e.length&&this.transform(e[0],e[1],e[2],e[3],e[4],e[5]),t){var r=t[2]-t[0],n=t[3]-t[1],o=this.svgFactory.createElement("svg:rect");o.setAttributeNS(null,"x",t[0]),o.setAttributeNS(null,"y",t[1]),o.setAttributeNS(null,"width",f(r)),o.setAttributeNS(null,"height",f(n)),this.current.element=o,this.clip("nonzero"),this.endPath()}}paintFormXObjectEnd(){}_initialize(e){var t=this.svgFactory.create(e.width,e.height),r=this.svgFactory.createElement("svg:defs");t.append(r),this.defs=r;var n=this.svgFactory.createElement("svg:g");return n.setAttributeNS(null,"transform",h(e.transform)),t.append(n),this.svg=n,t}_ensureClipGroup(){if(!this.current.clipGroup){var e=this.svgFactory.createElement("svg:g");e.setAttributeNS(null,"clip-path",this.current.activeClipUrl),this.svg.append(e),this.current.clipGroup=e}return this.current.clipGroup}_ensureTransformGroup(){return this.tgrp||(this.tgrp=this.svgFactory.createElement("svg:g"),this.tgrp.setAttributeNS(null,"transform",h(this.transformMatrix)),this.current.activeClipUrl?this._ensureClipGroup().append(this.tgrp):this.svg.append(this.tgrp)),this.tgrp}}},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.XfaText=void 0;class r{static textContent(e){var t=[],n={items:t,styles:Object.create(null)};return function e(n){var o;if(n){var i=null,a=n.name;if("#text"===a)i=n.value;else{if(!r.shouldBuildText(a))return;null!==n&&void 0!==n&&null!==(o=n.attributes)&&void 0!==o&&o.textContent?i=n.attributes.textContent:n.value&&(i=n.value)}if(null!==i&&t.push({str:i}),n.children)for(var s of n.children)e(s)}}(e),n}static shouldBuildText(e){return!("textarea"===e||"input"===e||"option"===e||"select"===e)}}t.XfaText=r},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TextLayerRenderTask=void 0,t.renderTextLayer=function(e){e.textContentSource||!e.textContent&&!e.textContentStream||((0,o.deprecated)("The TextLayerRender `textContent`/`textContentStream` parameters will be removed in the future, please use `textContentSource` instead."),e.textContentSource=e.textContent||e.textContentStream);var{container:t,viewport:r}=e,n=getComputedStyle(t),i=n.getPropertyValue("visibility"),a=parseFloat(n.getPropertyValue("--scale-factor"));"visible"===i&&(!a||Math.abs(a-r.scale)>1e-5)&&console.error("The `--scale-factor` CSS-variable must be set, to the same value as `viewport.scale`, either on the `container`-element itself or higher up in the DOM.");var s=new d(e);return s._render(),s},t.updateTextLayer=function(e){var{container:t,viewport:r,textDivs:n,textDivProperties:i,isOffscreenCanvasSupported:a,mustRotate:s=!0,mustRescale:c=!0}=e;if(s&&(0,o.setLayerDimensions)(t,{rotation:r.rotation}),c){var d=l(0,a),p={prevFontSize:null,prevFontFamily:null,div:null,scale:r.scale*(globalThis.devicePixelRatio||1),properties:null,ctx:d};for(var f of n)p.properties=i.get(f),p.div=f,u(p)}};var n=r(1),o=r(6),i=30,a=.8,s=new Map;function l(e,t){var r;if(t&&n.FeatureTest.isOffscreenCanvasSupported)r=new OffscreenCanvas(e,e).getContext("2d",{alpha:!1});else{var o=document.createElement("canvas");o.width=o.height=e,r=o.getContext("2d",{alpha:!1})}return r}function c(e,t,r){var o=document.createElement("span"),c={angle:0,canvasWidth:0,hasText:""!==t.str,hasEOL:t.hasEOL,fontSize:0};e._textDivs.push(o);var u=n.Util.transform(e._transform,t.transform),d=Math.atan2(u[1],u[0]),p=r[t.fontName];p.vertical&&(d+=Math.PI/2);var f,h,v=Math.hypot(u[2],u[3]),g=v*function(e,t){var r=s.get(e);if(r)return r;var n=l(i,t);n.font="".concat(i,"px ").concat(e);var o=n.measureText(""),c=o.fontBoundingBoxAscent,u=Math.abs(o.fontBoundingBoxDescent);if(c){var d=c/(c+u);return s.set(e,d),n.canvas.width=n.canvas.height=0,d}n.strokeStyle="red",n.clearRect(0,0,i,i),n.strokeText("g",0,0);var p=n.getImageData(0,0,i,i).data;u=0;for(var f=p.length-1-3;f>=0;f-=4)if(p[f]>0){u=Math.ceil(f/4/i);break}n.clearRect(0,0,i,i),n.strokeText("A",0,i),c=0;for(var h=0,v=(p=n.getImageData(0,0,i,i).data).length;h0){c=i-Math.floor(h/4/i);break}if(n.canvas.width=n.canvas.height=0,c){var g=c/(c+u);return s.set(e,g),g}return s.set(e,a),a}(p.fontFamily,e._isOffscreenCanvasSupported);0===d?(f=u[4],h=u[5]-g):(f=u[4]+g*Math.sin(d),h=u[5]-g*Math.cos(d));var m="calc(var(--scale-factor)*",b=o.style;e._container===e._rootContainer?(b.left="".concat((100*f/e._pageWidth).toFixed(2),"%"),b.top="".concat((100*h/e._pageHeight).toFixed(2),"%")):(b.left="".concat(m).concat(f.toFixed(2),"px)"),b.top="".concat(m).concat(h.toFixed(2),"px)")),b.fontSize="".concat(m).concat(v.toFixed(2),"px)"),b.fontFamily=p.fontFamily,c.fontSize=v,o.setAttribute("role","presentation"),o.textContent=t.str,o.dir=t.dir,e._fontInspectorEnabled&&(o.dataset.fontName=t.fontName),0!==d&&(c.angle=d*(180/Math.PI));var y=!1;if(t.str.length>1)y=!0;else if(" "!==t.str&&t.transform[0]!==t.transform[3]){var A=Math.abs(t.transform[0]),_=Math.abs(t.transform[3]);A!==_&&Math.max(A,_)/Math.min(A,_)>1.5&&(y=!0)}y&&(c.canvasWidth=p.vertical?t.height:t.width),e._textDivProperties.set(o,c),e._isReadableStream&&e._layoutText(o)}function u(e){var{div:t,scale:r,properties:n,ctx:o,prevFontSize:i,prevFontFamily:a}=e,{style:s}=t,l="";if(0!==n.canvasWidth&&n.hasText){var{fontFamily:c}=s,{canvasWidth:u,fontSize:d}=n;i===d&&a===c||(o.font="".concat(d*r,"px ").concat(c),e.prevFontSize=d,e.prevFontFamily=c);var{width:p}=o.measureText(t.textContent);p>0&&(l="scaleX(".concat(u*r/p,")"))}0!==n.angle&&(l="rotate(".concat(n.angle,"deg) ").concat(l)),l.length>0&&(s.transform=l)}class d{constructor(e){var t,{textContentSource:r,container:i,viewport:a,textDivs:s,textDivProperties:c,textContentItemsStr:u,isOffscreenCanvasSupported:d}=e;this._textContentSource=r,this._isReadableStream=r instanceof ReadableStream,this._container=this._rootContainer=i,this._textDivs=s||[],this._textContentItemsStr=u||[],this._isOffscreenCanvasSupported=d,this._fontInspectorEnabled=!(null===(t=globalThis.FontInspector)||void 0===t||!t.enabled),this._reader=null,this._textDivProperties=c||new WeakMap,this._canceled=!1,this._capability=new n.PromiseCapability,this._layoutTextParams={prevFontSize:null,prevFontFamily:null,div:null,scale:a.scale*(globalThis.devicePixelRatio||1),properties:null,ctx:l(0,d)};var{pageWidth:p,pageHeight:f,pageX:h,pageY:v}=a.rawDims;this._transform=[1,0,0,-1,-h,v+f],this._pageWidth=p,this._pageHeight=f,(0,o.setLayerDimensions)(i,a),this._capability.promise.finally((()=>{this._layoutTextParams=null})).catch((()=>{}))}get promise(){return this._capability.promise}cancel(){this._canceled=!0,this._reader&&(this._reader.cancel(new n.AbortException("TextLayer task cancelled.")).catch((()=>{})),this._reader=null),this._capability.reject(new n.AbortException("TextLayer task cancelled."))}_processItems(e,t){for(var r of e)if(void 0!==r.str)this._textContentItemsStr.push(r.str),c(this,r,t);else if("beginMarkedContentProps"===r.type||"beginMarkedContent"===r.type){var n=this._container;this._container=document.createElement("span"),this._container.classList.add("markedContent"),null!==r.id&&this._container.setAttribute("id","".concat(r.id)),n.append(this._container)}else"endMarkedContent"===r.type&&(this._container=this._container.parentNode)}_layoutText(e){var t=this._layoutTextParams.properties=this._textDivProperties.get(e);if(this._layoutTextParams.div=e,u(this._layoutTextParams),t.hasText&&this._container.append(e),t.hasEOL){var r=document.createElement("br");r.setAttribute("role","presentation"),this._container.append(r)}}_render(){var e=new n.PromiseCapability,t=Object.create(null);if(this._isReadableStream){var r=()=>{this._reader.read().then((n=>{var{value:o,done:i}=n;i?e.resolve():(Object.assign(t,o.styles),this._processItems(o.items,t),r())}),e.reject)};this._reader=this._textContentSource.getReader(),r()}else{if(!this._textContentSource)throw new Error('No "textContentSource" parameter specified.');var{items:o,styles:i}=this._textContentSource;this._processItems(o,i),e.resolve()}e.promise.then((()=>{t=null,function(e){if(!e._canceled){var t=e._textDivs,r=e._capability;if(t.length>1e5)r.resolve();else{if(!e._isReadableStream)for(var n of t)e._layoutText(n);r.resolve()}}}(this)}),this._capability.reject)}}t.TextLayerRenderTask=d},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AnnotationEditorLayer=void 0;var n=r(1),o=r(4),i=r(28),a=r(33),s=r(6),l=r(34),c=new WeakMap,u=new WeakMap,d=new WeakMap,p=new WeakMap,f=new WeakMap,h=new WeakMap,v=new WeakMap,g=new WeakMap,m=new WeakMap,b=new WeakMap,y=new WeakSet,A=new WeakSet,_=new WeakSet,C=new WeakSet;class w{constructor(e){var{uiManager:t,pageIndex:r,div:n,accessibilityManager:o,annotationLayer:s,viewport:x,l10n:k}=e;_classPrivateMethodInitSpec(this,C),_classPrivateMethodInitSpec(this,_),_classPrivateMethodInitSpec(this,A),_classPrivateMethodInitSpec(this,y),_classPrivateFieldInitSpec(this,c,{writable:!0,value:void 0}),_classPrivateFieldInitSpec(this,u,{writable:!0,value:!1}),_classPrivateFieldInitSpec(this,d,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,p,{writable:!0,value:this.pointerup.bind(this)}),_classPrivateFieldInitSpec(this,f,{writable:!0,value:this.pointerdown.bind(this)}),_classPrivateFieldInitSpec(this,h,{writable:!0,value:new Map}),_classPrivateFieldInitSpec(this,v,{writable:!0,value:!1}),_classPrivateFieldInitSpec(this,g,{writable:!0,value:!1}),_classPrivateFieldInitSpec(this,m,{writable:!0,value:!1}),_classPrivateFieldInitSpec(this,b,{writable:!0,value:void 0});var S=[i.FreeTextEditor,a.InkEditor,l.StampEditor];if(!w._initialized)for(var P of(w._initialized=!0,S))P.initialize(k);t.registerEditorTypes(S),_classPrivateFieldSet(this,b,t),this.pageIndex=r,this.div=n,_classPrivateFieldSet(this,c,o),_classPrivateFieldSet(this,d,s),this.viewport=x,_classPrivateFieldGet(this,b).addLayer(this)}get isEmpty(){return 0===_classPrivateFieldGet(this,h).size}updateToolbar(e){_classPrivateFieldGet(this,b).updateToolbar(e)}updateMode(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:_classPrivateFieldGet(this,b).getMode();_classPrivateMethodGet(this,C,P).call(this),e===n.AnnotationEditorType.INK?(this.addInkEditorIfNeeded(!1),this.disableClick()):this.enableClick(),e!==n.AnnotationEditorType.NONE&&(this.div.classList.toggle("freeTextEditing",e===n.AnnotationEditorType.FREETEXT),this.div.classList.toggle("inkEditing",e===n.AnnotationEditorType.INK),this.div.classList.toggle("stampEditing",e===n.AnnotationEditorType.STAMP),this.div.hidden=!1)}addInkEditorIfNeeded(e){if(e||_classPrivateFieldGet(this,b).getMode()===n.AnnotationEditorType.INK){if(!e)for(var t of _classPrivateFieldGet(this,h).values())if(t.isEmpty())return void t.setInBackground();_classPrivateMethodGet(this,A,k).call(this,{offsetX:0,offsetY:0},!1).setInBackground()}}setEditingState(e){_classPrivateFieldGet(this,b).setEditingState(e)}addCommands(e){_classPrivateFieldGet(this,b).addCommands(e)}enable(){this.div.style.pointerEvents="auto";var e=new Set;for(var t of _classPrivateFieldGet(this,h).values())t.enableEditing(),t.annotationElementId&&e.add(t.annotationElementId);if(_classPrivateFieldGet(this,d)){var r=_classPrivateFieldGet(this,d).getEditableAnnotations();for(var n of r)if(n.hide(),!_classPrivateFieldGet(this,b).isDeletedAnnotationElement(n.data.id)&&!e.has(n.data.id)){var o=this.deserialize(n);o&&(this.addOrRebuild(o),o.enableEditing())}}}disable(){_classPrivateFieldSet(this,m,!0),this.div.style.pointerEvents="none";var e=new Set;for(var t of _classPrivateFieldGet(this,h).values()){var r;t.disableEditing(),t.annotationElementId&&null===t.serialize()?(null===(r=this.getEditableAnnotation(t.annotationElementId))||void 0===r||r.show(),t.remove()):e.add(t.annotationElementId)}if(_classPrivateFieldGet(this,d)){var n=_classPrivateFieldGet(this,d).getEditableAnnotations();for(var o of n){var{id:i}=o.data;e.has(i)||_classPrivateFieldGet(this,b).isDeletedAnnotationElement(i)||o.show()}}_classPrivateMethodGet(this,C,P).call(this),this.isEmpty&&(this.div.hidden=!0),_classPrivateFieldSet(this,m,!1)}getEditableAnnotation(e){var t;return(null===(t=_classPrivateFieldGet(this,d))||void 0===t?void 0:t.getEditableAnnotation(e))||null}setActiveEditor(e){_classPrivateFieldGet(this,b).getActive()!==e&&_classPrivateFieldGet(this,b).setActiveEditor(e)}enableClick(){this.div.addEventListener("pointerdown",_classPrivateFieldGet(this,f)),this.div.addEventListener("pointerup",_classPrivateFieldGet(this,p))}disableClick(){this.div.removeEventListener("pointerdown",_classPrivateFieldGet(this,f)),this.div.removeEventListener("pointerup",_classPrivateFieldGet(this,p))}attach(e){_classPrivateFieldGet(this,h).set(e.id,e);var{annotationElementId:t}=e;t&&_classPrivateFieldGet(this,b).isDeletedAnnotationElement(t)&&_classPrivateFieldGet(this,b).removeDeletedAnnotationElement(e)}detach(e){var t;_classPrivateFieldGet(this,h).delete(e.id),null===(t=_classPrivateFieldGet(this,c))||void 0===t||t.removePointerInTextLayer(e.contentDiv),!_classPrivateFieldGet(this,m)&&e.annotationElementId&&_classPrivateFieldGet(this,b).addDeletedAnnotationElement(e)}remove(e){this.detach(e),_classPrivateFieldGet(this,b).removeEditor(e),e.div.contains(document.activeElement)&&setTimeout((()=>{_classPrivateFieldGet(this,b).focusMainContainer()}),0),e.div.remove(),e.isAttachedToDOM=!1,_classPrivateFieldGet(this,g)||this.addInkEditorIfNeeded(!1)}changeParent(e){var t;e.parent!==this&&(e.annotationElementId&&(_classPrivateFieldGet(this,b).addDeletedAnnotationElement(e.annotationElementId),o.AnnotationEditor.deleteAnnotationElement(e),e.annotationElementId=null),this.attach(e),null===(t=e.parent)||void 0===t||t.detach(e),e.setParent(this),e.div&&e.isAttachedToDOM&&(e.div.remove(),this.div.append(e.div)))}add(e){if(this.changeParent(e),_classPrivateFieldGet(this,b).addEditor(e),this.attach(e),!e.isAttachedToDOM){var t=e.render();this.div.append(t),e.isAttachedToDOM=!0}e.fixAndSetPosition(),e.onceAdded(),_classPrivateFieldGet(this,b).addToAnnotationStorage(e)}moveEditorInDOM(e){var t;if(e.isAttachedToDOM){var{activeElement:r}=document;e.div.contains(r)&&(e._focusEventsAllowed=!1,setTimeout((()=>{e.div.contains(document.activeElement)?e._focusEventsAllowed=!0:(e.div.addEventListener("focusin",(()=>{e._focusEventsAllowed=!0}),{once:!0}),r.focus())}),0)),e._structTreeParentId=null===(t=_classPrivateFieldGet(this,c))||void 0===t?void 0:t.moveElementInDOM(this.div,e.div,e.contentDiv,!0)}}addOrRebuild(e){e.needsToBeRebuilt()?e.rebuild():this.add(e)}addUndoableEditor(e){this.addCommands({cmd:()=>e._uiManager.rebuild(e),undo:()=>{e.remove()},mustExec:!1})}getNextId(){return _classPrivateFieldGet(this,b).getId()}pasteEditor(e,t){_classPrivateFieldGet(this,b).updateToolbar(e),_classPrivateFieldGet(this,b).updateMode(e);var{offsetX:r,offsetY:n}=_classPrivateMethodGet(this,_,S).call(this),o=this.getNextId(),i=_classPrivateMethodGet(this,y,x).call(this,_objectSpread({parent:this,id:o,x:r,y:n,uiManager:_classPrivateFieldGet(this,b),isCentered:!0},t));i&&this.add(i)}deserialize(e){var t;switch(null!==(t=e.annotationType)&&void 0!==t?t:e.annotationEditorType){case n.AnnotationEditorType.FREETEXT:return i.FreeTextEditor.deserialize(e,this,_classPrivateFieldGet(this,b));case n.AnnotationEditorType.INK:return a.InkEditor.deserialize(e,this,_classPrivateFieldGet(this,b));case n.AnnotationEditorType.STAMP:return l.StampEditor.deserialize(e,this,_classPrivateFieldGet(this,b))}return null}addNewEditor(){_classPrivateMethodGet(this,A,k).call(this,_classPrivateMethodGet(this,_,S).call(this),!0)}setSelected(e){_classPrivateFieldGet(this,b).setSelected(e)}toggleSelected(e){_classPrivateFieldGet(this,b).toggleSelected(e)}isSelected(e){return _classPrivateFieldGet(this,b).isSelected(e)}unselect(e){_classPrivateFieldGet(this,b).unselect(e)}pointerup(e){var{isMac:t}=n.FeatureTest.platform;0!==e.button||e.ctrlKey&&t||e.target===this.div&&_classPrivateFieldGet(this,v)&&(_classPrivateFieldSet(this,v,!1),_classPrivateFieldGet(this,u)?_classPrivateFieldGet(this,b).getMode()!==n.AnnotationEditorType.STAMP?_classPrivateMethodGet(this,A,k).call(this,e,!1):_classPrivateFieldGet(this,b).unselectAll():_classPrivateFieldSet(this,u,!0))}pointerdown(e){if(_classPrivateFieldGet(this,v))_classPrivateFieldSet(this,v,!1);else{var{isMac:t}=n.FeatureTest.platform;if(!(0!==e.button||e.ctrlKey&&t)&&e.target===this.div){_classPrivateFieldSet(this,v,!0);var r=_classPrivateFieldGet(this,b).getActive();_classPrivateFieldSet(this,u,!r||r.isEmpty())}}}findNewParent(e,t,r){var n=_classPrivateFieldGet(this,b).findParent(t,r);return null!==n&&n!==this&&(n.changeParent(e),!0)}destroy(){var e;for(var t of((null===(e=_classPrivateFieldGet(this,b).getActive())||void 0===e?void 0:e.parent)===this&&(_classPrivateFieldGet(this,b).commitOrRemove(),_classPrivateFieldGet(this,b).setActiveEditor(null)),_classPrivateFieldGet(this,h).values())){var r;null===(r=_classPrivateFieldGet(this,c))||void 0===r||r.removePointerInTextLayer(t.contentDiv),t.setParent(null),t.isAttachedToDOM=!1,t.div.remove()}this.div=null,_classPrivateFieldGet(this,h).clear(),_classPrivateFieldGet(this,b).removeLayer(this)}render(e){var{viewport:t}=e;for(var r of(this.viewport=t,(0,s.setLayerDimensions)(this.div,t),_classPrivateFieldGet(this,b).getEditors(this.pageIndex)))this.add(r);this.updateMode()}update(e){var{viewport:t}=e;_classPrivateFieldGet(this,b).commitOrRemove(),this.viewport=t,(0,s.setLayerDimensions)(this.div,{rotation:t.rotation}),this.updateMode()}get pageDimensions(){var{pageWidth:e,pageHeight:t}=this.viewport.rawDims;return[e,t]}}function x(e){switch(_classPrivateFieldGet(this,b).getMode()){case n.AnnotationEditorType.FREETEXT:return new i.FreeTextEditor(e);case n.AnnotationEditorType.INK:return new a.InkEditor(e);case n.AnnotationEditorType.STAMP:return new l.StampEditor(e)}return null}function k(e,t){var r=this.getNextId(),n=_classPrivateMethodGet(this,y,x).call(this,{parent:this,id:r,x:e.offsetX,y:e.offsetY,uiManager:_classPrivateFieldGet(this,b),isCentered:t});return n&&this.add(n),n}function S(){var{x:e,y:t,width:r,height:n}=this.div.getBoundingClientRect(),o=Math.max(0,e),i=Math.max(0,t),a=(o+Math.min(window.innerWidth,e+r))/2-e,s=(i+Math.min(window.innerHeight,t+n))/2-t,[l,c]=this.viewport.rotation%180===0?[a,s]:[s,a];return{offsetX:l,offsetY:c}}function P(){for(var e of(_classPrivateFieldSet(this,g,!0),_classPrivateFieldGet(this,h).values()))e.isEmpty()&&e.remove();_classPrivateFieldSet(this,g,!1)}_defineProperty(w,"_initialized",!1),t.AnnotationEditorLayer=w},(e,t,r)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.FreeTextEditor=void 0;var o=r(1),i=r(5),a=r(4),s=r(29),l=new WeakMap,c=new WeakMap,u=new WeakMap,d=new WeakMap,p=new WeakMap,f=new WeakMap,h=new WeakMap,v=new WeakMap,g=new WeakMap,m=new WeakSet,b=new WeakSet,y=new WeakSet,A=new WeakSet,_=new WeakSet,C=new WeakSet,w=new WeakSet;class x extends a.AnnotationEditor{static get _keyboardManager(){var e=x.prototype,t=e=>e.isEmpty(),r=i.AnnotationEditorUIManager.TRANSLATE_SMALL,n=i.AnnotationEditorUIManager.TRANSLATE_BIG;return(0,o.shadow)(this,"_keyboardManager",new i.KeyboardManager([[["ctrl+s","mac+meta+s","ctrl+p","mac+meta+p"],e.commitOrRemove,{bubbles:!0}],[["ctrl+Enter","mac+meta+Enter","Escape","mac+Escape"],e.commitOrRemove],[["ArrowLeft","mac+ArrowLeft"],e._translateEmpty,{args:[-r,0],checker:t}],[["ctrl+ArrowLeft","mac+shift+ArrowLeft"],e._translateEmpty,{args:[-n,0],checker:t}],[["ArrowRight","mac+ArrowRight"],e._translateEmpty,{args:[r,0],checker:t}],[["ctrl+ArrowRight","mac+shift+ArrowRight"],e._translateEmpty,{args:[n,0],checker:t}],[["ArrowUp","mac+ArrowUp"],e._translateEmpty,{args:[0,-r],checker:t}],[["ctrl+ArrowUp","mac+shift+ArrowUp"],e._translateEmpty,{args:[0,-n],checker:t}],[["ArrowDown","mac+ArrowDown"],e._translateEmpty,{args:[0,r],checker:t}],[["ctrl+ArrowDown","mac+shift+ArrowDown"],e._translateEmpty,{args:[0,n],checker:t}]]))}constructor(e){super(_objectSpread(_objectSpread({},e),{},{name:"freeTextEditor"})),_classPrivateMethodInitSpec(this,w),_classPrivateMethodInitSpec(this,C),_classPrivateMethodInitSpec(this,_),_classPrivateMethodInitSpec(this,A),_classPrivateMethodInitSpec(this,y),_classPrivateMethodInitSpec(this,b),_classPrivateMethodInitSpec(this,m),_classPrivateFieldInitSpec(this,l,{writable:!0,value:this.editorDivBlur.bind(this)}),_classPrivateFieldInitSpec(this,c,{writable:!0,value:this.editorDivFocus.bind(this)}),_classPrivateFieldInitSpec(this,u,{writable:!0,value:this.editorDivInput.bind(this)}),_classPrivateFieldInitSpec(this,d,{writable:!0,value:this.editorDivKeydown.bind(this)}),_classPrivateFieldInitSpec(this,p,{writable:!0,value:void 0}),_classPrivateFieldInitSpec(this,f,{writable:!0,value:""}),_classPrivateFieldInitSpec(this,h,{writable:!0,value:"".concat(this.id,"-editor")}),_classPrivateFieldInitSpec(this,v,{writable:!0,value:void 0}),_classPrivateFieldInitSpec(this,g,{writable:!0,value:null}),_classPrivateFieldSet(this,p,e.color||x._defaultColor||a.AnnotationEditor._defaultLineColor),_classPrivateFieldSet(this,v,e.fontSize||x._defaultFontSize)}static initialize(e){a.AnnotationEditor.initialize(e,{strings:["free_text2_default_content","editor_free_text2_aria_label"]});var t=getComputedStyle(document.documentElement);this._internalPadding=parseFloat(t.getPropertyValue("--freetext-padding"))}static updateDefaultParams(e,t){switch(e){case o.AnnotationEditorParamsType.FREETEXT_SIZE:x._defaultFontSize=t;break;case o.AnnotationEditorParamsType.FREETEXT_COLOR:x._defaultColor=t}}updateParams(e,t){switch(e){case o.AnnotationEditorParamsType.FREETEXT_SIZE:_classPrivateMethodGet(this,m,k).call(this,t);break;case o.AnnotationEditorParamsType.FREETEXT_COLOR:_classPrivateMethodGet(this,b,S).call(this,t)}}static get defaultPropertiesToUpdate(){return[[o.AnnotationEditorParamsType.FREETEXT_SIZE,x._defaultFontSize],[o.AnnotationEditorParamsType.FREETEXT_COLOR,x._defaultColor||a.AnnotationEditor._defaultLineColor]]}get propertiesToUpdate(){return[[o.AnnotationEditorParamsType.FREETEXT_SIZE,_classPrivateFieldGet(this,v)],[o.AnnotationEditorParamsType.FREETEXT_COLOR,_classPrivateFieldGet(this,p)]]}_translateEmpty(e,t){this._uiManager.translateSelectedEditors(e,t,!0)}getInitialTranslation(){var e=this.parentScale;return[-x._internalPadding*e,-(x._internalPadding+_classPrivateFieldGet(this,v))*e]}rebuild(){this.parent&&(super.rebuild(),null!==this.div&&(this.isAttachedToDOM||this.parent.add(this)))}enableEditMode(){this.isInEditMode()||(this.parent.setEditingState(!1),this.parent.updateToolbar(o.AnnotationEditorType.FREETEXT),super.enableEditMode(),this.overlayDiv.classList.remove("enabled"),this.editorDiv.contentEditable=!0,this._isDraggable=!1,this.div.removeAttribute("aria-activedescendant"),this.editorDiv.addEventListener("keydown",_classPrivateFieldGet(this,d)),this.editorDiv.addEventListener("focus",_classPrivateFieldGet(this,c)),this.editorDiv.addEventListener("blur",_classPrivateFieldGet(this,l)),this.editorDiv.addEventListener("input",_classPrivateFieldGet(this,u)))}disableEditMode(){this.isInEditMode()&&(this.parent.setEditingState(!0),super.disableEditMode(),this.overlayDiv.classList.add("enabled"),this.editorDiv.contentEditable=!1,this.div.setAttribute("aria-activedescendant",_classPrivateFieldGet(this,h)),this._isDraggable=!0,this.editorDiv.removeEventListener("keydown",_classPrivateFieldGet(this,d)),this.editorDiv.removeEventListener("focus",_classPrivateFieldGet(this,c)),this.editorDiv.removeEventListener("blur",_classPrivateFieldGet(this,l)),this.editorDiv.removeEventListener("input",_classPrivateFieldGet(this,u)),this.div.focus({preventScroll:!0}),this.isEditing=!1,this.parent.div.classList.add("freeTextEditing"))}focusin(e){this._focusEventsAllowed&&(super.focusin(e),e.target!==this.editorDiv&&this.editorDiv.focus())}onceAdded(){var e;this.width?_classPrivateMethodGet(this,w,F).call(this):(this.enableEditMode(),this.editorDiv.focus(),null!==(e=this._initialOptions)&&void 0!==e&&e.isCentered&&this.center(),this._initialOptions=null)}isEmpty(){return!this.editorDiv||""===this.editorDiv.innerText.trim()}remove(){this.isEditing=!1,this.parent&&(this.parent.setEditingState(!0),this.parent.div.classList.add("freeTextEditing")),super.remove()}commit(){if(this.isInEditMode()){super.commit(),this.disableEditMode();var e=_classPrivateFieldGet(this,f),t=_classPrivateFieldSet(this,f,_classPrivateMethodGet(this,y,P).call(this).trimEnd());if(e!==t){var r=e=>{_classPrivateFieldSet(this,f,e),e?(_classPrivateMethodGet(this,_,O).call(this),this._uiManager.rebuild(this),_classPrivateMethodGet(this,A,E).call(this)):this.remove()};this.addCommands({cmd:()=>{r(t)},undo:()=>{r(e)},mustExec:!1}),_classPrivateMethodGet(this,A,E).call(this)}}}shouldGetKeyboardEvents(){return this.isInEditMode()}enterInEditMode(){this.enableEditMode(),this.editorDiv.focus()}dblclick(e){this.enterInEditMode()}keydown(e){e.target===this.div&&"Enter"===e.key&&(this.enterInEditMode(),e.preventDefault())}editorDivKeydown(e){x._keyboardManager.exec(this,e)}editorDivFocus(e){this.isEditing=!0}editorDivBlur(e){this.isEditing=!1}editorDivInput(e){this.parent.div.classList.toggle("freeTextEditing",this.isEmpty())}disableEditing(){this.editorDiv.setAttribute("role","comment"),this.editorDiv.removeAttribute("aria-multiline")}enableEditing(){this.editorDiv.setAttribute("role","textbox"),this.editorDiv.setAttribute("aria-multiline",!0)}render(){if(this.div)return this.div;var e,t;this.width&&(e=this.x,t=this.y),super.render(),this.editorDiv=document.createElement("div"),this.editorDiv.className="internal",this.editorDiv.setAttribute("id",_classPrivateFieldGet(this,h)),this.enableEditing(),a.AnnotationEditor._l10nPromise.get("editor_free_text2_aria_label").then((e=>{var t;return null===(t=this.editorDiv)||void 0===t?void 0:t.setAttribute("aria-label",e)})),a.AnnotationEditor._l10nPromise.get("free_text2_default_content").then((e=>{var t;return null===(t=this.editorDiv)||void 0===t?void 0:t.setAttribute("default-content",e)})),this.editorDiv.contentEditable=!0;var{style:r}=this.editorDiv;if(r.fontSize="calc(".concat(_classPrivateFieldGet(this,v),"px * var(--scale-factor))"),r.color=_classPrivateFieldGet(this,p),this.div.append(this.editorDiv),this.overlayDiv=document.createElement("div"),this.overlayDiv.classList.add("overlay","enabled"),this.div.append(this.overlayDiv),(0,i.bindEvents)(this,this.div,["dblclick","keydown"]),this.width){var[n,o]=this.parentDimensions;if(this.annotationElementId){var{position:s}=_classPrivateFieldGet(this,g),[l,c]=this.getInitialTranslation();[l,c]=this.pageTranslationToScreen(l,c);var u,d,[f,m]=this.pageDimensions,[b,y]=this.pageTranslation;switch(this.rotation){case 0:u=e+(s[0]-b)/f,d=t+this.height-(s[1]-y)/m;break;case 90:u=e+(s[0]-b)/f,d=t-(s[1]-y)/m,[l,c]=[c,-l];break;case 180:u=e-this.width+(s[0]-b)/f,d=t-(s[1]-y)/m,[l,c]=[-l,-c];break;case 270:u=e+(s[0]-b-this.height*m)/f,d=t+(s[1]-y-this.width*f)/m,[l,c]=[-c,l]}this.setAt(u*n,d*o,l,c)}else this.setAt(e*n,t*o,this.width*n,this.height*o);_classPrivateMethodGet(this,_,O).call(this),this._isDraggable=!0,this.editorDiv.contentEditable=!1}else this._isDraggable=!1,this.editorDiv.contentEditable=!0;return this.div}get contentDiv(){return this.editorDiv}static deserialize(e,t,r){var n=null;if(e instanceof s.FreeTextAnnotationElement){var{data:{defaultAppearanceData:{fontSize:i,fontColor:a},rect:l,rotation:c,id:u},textContent:d,textPosition:h,parent:{page:{pageNumber:m}}}=e;if(!d||0===d.length)return null;n=e={annotationType:o.AnnotationEditorType.FREETEXT,color:Array.from(a),fontSize:i,value:d.join("\n"),position:h,pageIndex:m-1,rect:l,rotation:c,id:u,deleted:!1}}var b=super.deserialize(e,t,r);return _classPrivateFieldSet(b,v,e.fontSize),_classPrivateFieldSet(b,p,o.Util.makeHexColor(...e.color)),_classPrivateFieldSet(b,f,e.value),b.annotationElementId=e.id||null,_classPrivateFieldSet(b,g,n),b}serialize(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.isEmpty())return null;if(this.deleted)return{pageIndex:this.pageIndex,id:this.annotationElementId,deleted:!0};var t=x._internalPadding*this.parentScale,r=this.getRect(t,t),n=a.AnnotationEditor._colorManager.convert(this.isAttachedToDOM?getComputedStyle(this.editorDiv).color:_classPrivateFieldGet(this,p)),i={annotationType:o.AnnotationEditorType.FREETEXT,color:n,fontSize:_classPrivateFieldGet(this,v),value:_classPrivateFieldGet(this,f),pageIndex:this.pageIndex,rect:r,rotation:this.rotation,structTreeParentId:this._structTreeParentId};return e?i:this.annotationElementId&&!_classPrivateMethodGet(this,C,M).call(this,i)?null:(i.id=this.annotationElementId,i)}}function k(e){var t=e=>{this.editorDiv.style.fontSize="calc(".concat(e,"px * var(--scale-factor))"),this.translate(0,-(e-_classPrivateFieldGet(this,v))*this.parentScale),_classPrivateFieldSet(this,v,e),_classPrivateMethodGet(this,A,E).call(this)},r=_classPrivateFieldGet(this,v);this.addCommands({cmd:()=>{t(e)},undo:()=>{t(r)},mustExec:!0,type:o.AnnotationEditorParamsType.FREETEXT_SIZE,overwriteIfSameType:!0,keepUndo:!0})}function S(e){var t=_classPrivateFieldGet(this,p);this.addCommands({cmd:()=>{_classPrivateFieldSet(this,p,this.editorDiv.style.color=e)},undo:()=>{_classPrivateFieldSet(this,p,this.editorDiv.style.color=t)},mustExec:!0,type:o.AnnotationEditorParamsType.FREETEXT_COLOR,overwriteIfSameType:!0,keepUndo:!0})}function P(){var e=this.editorDiv.getElementsByTagName("div");if(0===e.length)return this.editorDiv.innerText;var t=[];for(var r of e)t.push(r.innerText.replace(/\r\n?|\n/,""));return t.join("\n")}function E(){var e,[t,r]=this.parentDimensions;if(this.isAttachedToDOM)e=this.div.getBoundingClientRect();else{var{currentLayer:n,div:o}=this,i=o.style.display;o.style.display="hidden",n.div.append(this.div),e=o.getBoundingClientRect(),o.remove(),o.style.display=i}this.rotation%180===this.parentRotation%180?(this.width=e.width/t,this.height=e.height/r):(this.width=e.height/t,this.height=e.width/r),this.fixAndSetPosition()}function O(){if(this.editorDiv.replaceChildren(),_classPrivateFieldGet(this,f))for(var e of _classPrivateFieldGet(this,f).split("\n")){var t=document.createElement("div");t.append(e?document.createTextNode(e):document.createElement("br")),this.editorDiv.append(t)}}function M(e){var{value:t,fontSize:r,color:n,rect:o,pageIndex:i}=_classPrivateFieldGet(this,g);return e.value!==t||e.fontSize!==r||e.rect.some(((e,t)=>Math.abs(e-o[t])>=1))||e.color.some(((e,t)=>e!==n[t]))||e.pageIndex!==i}function F(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.annotationElementId)if(_classPrivateMethodGet(this,A,E).call(this),e||0!==this.width&&0!==this.height){var t=n._internalPadding*this.parentScale;_classPrivateFieldGet(this,g).rect=this.getRect(t,t)}else setTimeout((()=>_classPrivateMethodGet(this,w,F).call(this,!0)),0)}n=x,_defineProperty(x,"_freeTextDefaultContent",""),_defineProperty(x,"_internalPadding",0),_defineProperty(x,"_defaultColor",null),_defineProperty(x,"_defaultFontSize",10),_defineProperty(x,"_type","freetext"),t.FreeTextEditor=x},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.StampAnnotationElement=t.InkAnnotationElement=t.FreeTextAnnotationElement=t.AnnotationLayer=void 0;var n=r(1),o=r(6),i=r(3),a=r(30),s=r(31),l=r(32),c=1e3,u=new WeakSet;function d(e){return{width:e[2]-e[0],height:e[3]-e[1]}}class p{static create(e){switch(e.data.annotationType){case n.AnnotationType.LINK:return new m(e);case n.AnnotationType.TEXT:return new A(e);case n.AnnotationType.WIDGET:switch(e.data.fieldType){case"Tx":return new C(e);case"Btn":return e.data.radioButton?new k(e):e.data.checkBox?new x(e):new S(e);case"Ch":return new P(e);case"Sig":return new w(e)}return new _(e);case n.AnnotationType.POPUP:return new E(e);case n.AnnotationType.FREETEXT:return new te(e);case n.AnnotationType.LINE:return new ne(e);case n.AnnotationType.SQUARE:return new ie(e);case n.AnnotationType.CIRCLE:return new se(e);case n.AnnotationType.POLYLINE:return new ce(e);case n.AnnotationType.CARET:return new de(e);case n.AnnotationType.INK:return new fe(e);case n.AnnotationType.POLYGON:return new ue(e);case n.AnnotationType.HIGHLIGHT:return new he(e);case n.AnnotationType.UNDERLINE:return new ve(e);case n.AnnotationType.SQUIGGLY:return new ge(e);case n.AnnotationType.STRIKEOUT:return new me(e);case n.AnnotationType.STAMP:return new be(e);case n.AnnotationType.FILEATTACHMENT:return new _e(e);default:return new h(e)}}}var f=new WeakMap;class h{constructor(e){var{isRenderable:t=!1,ignoreBorder:r=!1,createQuadrilaterals:n=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};_classPrivateFieldInitSpec(this,f,{writable:!0,value:!1}),this.isRenderable=t,this.data=e.data,this.layer=e.layer,this.linkService=e.linkService,this.downloadManager=e.downloadManager,this.imageResourcesPath=e.imageResourcesPath,this.renderForms=e.renderForms,this.svgFactory=e.svgFactory,this.annotationStorage=e.annotationStorage,this.enableScripting=e.enableScripting,this.hasJSActions=e.hasJSActions,this._fieldObjects=e.fieldObjects,this.parent=e.parent,t&&(this.container=this._createContainer(r)),n&&this._createQuadrilaterals()}static _hasPopupData(e){var{titleObj:t,contentsObj:r,richText:n}=e;return!!(null!==t&&void 0!==t&&t.str||null!==r&&void 0!==r&&r.str||null!==n&&void 0!==n&&n.str)}get hasPopupData(){return h._hasPopupData(this.data)}_createContainer(e){var{data:t,parent:{page:r,viewport:o}}=this,i=document.createElement("section");i.setAttribute("data-annotation-id",t.id),this instanceof _||(i.tabIndex=c),i.style.zIndex=this.parent.zIndex++,this.data.popupRef&&i.setAttribute("aria-haspopup","dialog"),t.noRotate&&i.classList.add("norotate");var{pageWidth:a,pageHeight:s,pageX:l,pageY:u}=o.rawDims;if(!t.rect||this instanceof E){var{rotation:p}=t;return t.hasOwnCanvas||0===p||this.setRotation(p,i),i}var{width:h,height:v}=d(t.rect),g=n.Util.normalizeRect([t.rect[0],r.view[3]-t.rect[1]+r.view[1],t.rect[2],r.view[3]-t.rect[3]+r.view[1]]);if(!e&&t.borderStyle.width>0){i.style.borderWidth="".concat(t.borderStyle.width,"px");var m=t.borderStyle.horizontalCornerRadius,b=t.borderStyle.verticalCornerRadius;if(m>0||b>0){var y="calc(".concat(m,"px * var(--scale-factor)) / calc(").concat(b,"px * var(--scale-factor))");i.style.borderRadius=y}else if(this instanceof k){var A="calc(".concat(h,"px * var(--scale-factor)) / calc(").concat(v,"px * var(--scale-factor))");i.style.borderRadius=A}switch(t.borderStyle.style){case n.AnnotationBorderStyleType.SOLID:i.style.borderStyle="solid";break;case n.AnnotationBorderStyleType.DASHED:i.style.borderStyle="dashed";break;case n.AnnotationBorderStyleType.BEVELED:(0,n.warn)("Unimplemented border style: beveled");break;case n.AnnotationBorderStyleType.INSET:(0,n.warn)("Unimplemented border style: inset");break;case n.AnnotationBorderStyleType.UNDERLINE:i.style.borderBottomStyle="solid"}var C=t.borderColor||null;C?(_classPrivateFieldSet(this,f,!0),i.style.borderColor=n.Util.makeHexColor(0|C[0],0|C[1],0|C[2])):i.style.borderWidth=0}i.style.left="".concat(100*(g[0]-l)/a,"%"),i.style.top="".concat(100*(g[1]-u)/s,"%");var{rotation:w}=t;return t.hasOwnCanvas||0===w?(i.style.width="".concat(100*h/a,"%"),i.style.height="".concat(100*v/s,"%")):this.setRotation(w,i),i}setRotation(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.container;if(this.data.rect){var r,n,{pageWidth:o,pageHeight:i}=this.parent.viewport.rawDims,{width:a,height:s}=d(this.data.rect);e%180===0?(r=100*a/o,n=100*s/i):(r=100*s/o,n=100*a/i),t.style.width="".concat(r,"%"),t.style.height="".concat(n,"%"),t.setAttribute("data-main-rotation",(360-e)%360)}}get _commonActions(){var e=(e,t,r)=>{var n=r.detail[e],o=n[0],i=n.slice(1);r.target.style[t]=a.ColorConverters["".concat(o,"_HTML")](i),this.annotationStorage.setValue(this.data.id,{[t]:a.ColorConverters["".concat(o,"_rgb")](i)})};return(0,n.shadow)(this,"_commonActions",{display:e=>{var{display:t}=e.detail,r=t%2===1;this.container.style.visibility=r?"hidden":"visible",this.annotationStorage.setValue(this.data.id,{noView:r,noPrint:1===t||2===t})},print:e=>{this.annotationStorage.setValue(this.data.id,{noPrint:!e.detail.print})},hidden:e=>{var{hidden:t}=e.detail;this.container.style.visibility=t?"hidden":"visible",this.annotationStorage.setValue(this.data.id,{noPrint:t,noView:t})},focus:e=>{setTimeout((()=>e.target.focus({preventScroll:!1})),0)},userName:e=>{e.target.title=e.detail.userName},readonly:e=>{e.target.disabled=e.detail.readonly},required:e=>{this._setRequired(e.target,e.detail.required)},bgColor:t=>{e("bgColor","backgroundColor",t)},fillColor:t=>{e("fillColor","backgroundColor",t)},fgColor:t=>{e("fgColor","color",t)},textColor:t=>{e("textColor","color",t)},borderColor:t=>{e("borderColor","borderColor",t)},strokeColor:t=>{e("strokeColor","borderColor",t)},rotation:e=>{var t=e.detail.rotation;this.setRotation(t),this.annotationStorage.setValue(this.data.id,{rotation:t})}})}_dispatchEventFromSandbox(e,t){var r=this._commonActions;for(var n of Object.keys(t.detail)){var o=e[n]||r[n];null===o||void 0===o||o(t)}}_setDefaultPropertiesFromJS(e){if(this.enableScripting){var t=this.annotationStorage.getRawValue(this.data.id);if(t){var r=this._commonActions;for(var[n,o]of Object.entries(t)){var i=r[n];i&&(i({detail:{[n]:o},target:e}),delete t[n])}}}}_createQuadrilaterals(){if(this.container){var{quadPoints:e}=this.data;if(e){var[t,r,n,o]=this.data.rect;if(1===e.length){var[,{x:i,y:a},{x:s,y:l}]=e[0];if(n===i&&o===a&&t===s&&r===l)return}var c,{style:u}=this.container;if(_classPrivateFieldGet(this,f)){var{borderColor:d,borderWidth:p}=u;u.borderWidth=0,c=["url('data:image/svg+xml;utf8,",'','')],this.container.classList.add("hasBorder")}var h=n-t,v=o-r,{svgFactory:g}=this,m=g.createElement("svg");m.classList.add("quadrilateralsContainer"),m.setAttribute("width",0),m.setAttribute("height",0);var b=g.createElement("defs");m.append(b);var y=g.createElement("clipPath"),A="clippath_".concat(this.data.id);for(var[,{x:_,y:C},{x:w,y:x}]of(y.setAttribute("id",A),y.setAttribute("clipPathUnits","objectBoundingBox"),b.append(y),e)){var k,S=g.createElement("rect"),P=(w-t)/h,E=(o-C)/v,O=(_-w)/h,M=(C-x)/v;S.setAttribute("x",P),S.setAttribute("y",E),S.setAttribute("width",O),S.setAttribute("height",M),y.append(S),null===(k=c)||void 0===k||k.push(''))}_classPrivateFieldGet(this,f)&&(c.push("')"),u.backgroundImage=c.join("")),this.container.append(m),this.container.style.clipPath="url(#".concat(A,")")}}}_createPopup(){var{container:e,data:t}=this;e.setAttribute("aria-haspopup","dialog");var r=new E({data:{color:t.color,titleObj:t.titleObj,modificationDate:t.modificationDate,contentsObj:t.contentsObj,richText:t.richText,parentRect:t.rect,borderStyle:0,id:"popup_".concat(t.id),rotation:t.rotation},parent:this.parent,elements:[this]});this.parent.div.append(r.render())}render(){(0,n.unreachable)("Abstract method `AnnotationElement.render` called")}_getElementsByName(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=[];if(this._fieldObjects){var o=this._fieldObjects[e];if(o)for(var{page:i,id:a,exportValues:s}of o)if(-1!==i&&a!==t){var l="string"===typeof s?s:null,c=document.querySelector('[data-element-id="'.concat(a,'"]'));!c||u.has(c)?r.push({id:a,exportValue:l,domElement:c}):(0,n.warn)("_getElementsByName - element not allowed: ".concat(a))}return r}for(var d of document.getElementsByName(e)){var{exportValue:p}=d,f=d.getAttribute("data-element-id");f!==t&&u.has(d)&&r.push({id:f,exportValue:p,domElement:d})}return r}show(){var e;this.container&&(this.container.hidden=!1),null===(e=this.popup)||void 0===e||e.maybeShow()}hide(){var e;this.container&&(this.container.hidden=!0),null===(e=this.popup)||void 0===e||e.forceHide()}getElementsToTriggerPopup(){return this.container}addHighlightArea(){var e=this.getElementsToTriggerPopup();if(Array.isArray(e))for(var t of e)t.classList.add("highlightArea");else e.classList.add("highlightArea")}_editOnDoubleClick(){var{annotationEditorType:e,data:{id:t}}=this;this.container.addEventListener("dblclick",(()=>{var r;null===(r=this.linkService.eventBus)||void 0===r||r.dispatch("switchannotationeditormode",{source:this,mode:e,editId:t})}))}}var v=new WeakSet,g=new WeakSet;class m extends h{constructor(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;super(e,{isRenderable:!0,ignoreBorder:!(null===t||void 0===t||!t.ignoreBorder),createQuadrilaterals:!0}),_classPrivateMethodInitSpec(this,g),_classPrivateMethodInitSpec(this,v),this.isTooltipOnly=e.data.isTooltipOnly}render(){var{data:e,linkService:t}=this,r=document.createElement("a");r.setAttribute("data-element-id",e.id);var n=!1;return e.url?(t.addLinkAttributes(r,e.url,e.newWindow),n=!0):e.action?(this._bindNamedAction(r,e.action),n=!0):e.attachment?(this._bindAttachment(r,e.attachment),n=!0):e.setOCGState?(_classPrivateMethodGet(this,g,y).call(this,r,e.setOCGState),n=!0):e.dest?(this._bindLink(r,e.dest),n=!0):(e.actions&&(e.actions.Action||e.actions["Mouse Up"]||e.actions["Mouse Down"])&&this.enableScripting&&this.hasJSActions&&(this._bindJSAction(r,e),n=!0),e.resetForm?(this._bindResetFormAction(r,e.resetForm),n=!0):this.isTooltipOnly&&!n&&(this._bindLink(r,""),n=!0)),this.container.classList.add("linkAnnotation"),n&&this.container.append(r),this.container}_bindLink(e,t){e.href=this.linkService.getDestinationHash(t),e.onclick=()=>(t&&this.linkService.goToDestination(t),!1),(t||""===t)&&_classPrivateMethodGet(this,v,b).call(this)}_bindNamedAction(e,t){e.href=this.linkService.getAnchorUrl(""),e.onclick=()=>(this.linkService.executeNamedAction(t),!1),_classPrivateMethodGet(this,v,b).call(this)}_bindAttachment(e,t){e.href=this.linkService.getAnchorUrl(""),e.onclick=()=>{var e;return null===(e=this.downloadManager)||void 0===e||e.openOrDownloadData(this.container,t.content,t.filename),!1},_classPrivateMethodGet(this,v,b).call(this)}_bindJSAction(e,t){var r=this;e.href=this.linkService.getAnchorUrl("");var n=new Map([["Action","onclick"],["Mouse Up","onmouseup"],["Mouse Down","onmousedown"]]),o=function(o){var i=n.get(o);if(!i)return 1;e[i]=()=>{var e;return null===(e=r.linkService.eventBus)||void 0===e||e.dispatch("dispatcheventinsandbox",{source:r,detail:{id:t.id,name:o}}),!1}};for(var i of Object.keys(t.actions))o(i);e.onclick||(e.onclick=()=>!1),_classPrivateMethodGet(this,v,b).call(this)}_bindResetFormAction(e,t){var r=e.onclick;if(r||(e.href=this.linkService.getAnchorUrl("")),_classPrivateMethodGet(this,v,b).call(this),!this._fieldObjects)return(0,n.warn)('_bindResetFormAction - "resetForm" action not supported, ensure that the `fieldObjects` parameter is provided.'),void(r||(e.onclick=()=>!1));e.onclick=()=>{null===r||void 0===r||r();var{fields:e,refs:o,include:i}=t,a=[];if(0!==e.length||0!==o.length){var s=new Set(o);for(var l of e){var c=this._fieldObjects[l]||[];for(var{id:d}of c)s.add(d)}for(var p of Object.values(this._fieldObjects))for(var f of p)s.has(f.id)===i&&a.push(f)}else for(var h of Object.values(this._fieldObjects))a.push(...h);var v,g=this.annotationStorage,m=[];for(var b of a){var{id:y}=b;switch(m.push(y),b.type){case"text":var A=b.defaultValue||"";g.setValue(y,{value:A});break;case"checkbox":case"radiobutton":var _=b.defaultValue===b.exportValues;g.setValue(y,{value:_});break;case"combobox":case"listbox":var C=b.defaultValue||"";g.setValue(y,{value:C});break;default:continue}var w=document.querySelector('[data-element-id="'.concat(y,'"]'));w&&(u.has(w)?w.dispatchEvent(new Event("resetform")):(0,n.warn)("_bindResetFormAction - element not allowed: ".concat(y)))}return this.enableScripting&&(null===(v=this.linkService.eventBus)||void 0===v||v.dispatch("dispatcheventinsandbox",{source:this,detail:{id:"app",ids:m,name:"ResetForm"}})),!1}}}function b(){this.container.setAttribute("data-internal-link","")}function y(e,t){e.href=this.linkService.getAnchorUrl(""),e.onclick=()=>(this.linkService.executeSetOCGState(t),!1),_classPrivateMethodGet(this,v,b).call(this)}class A extends h{constructor(e){super(e,{isRenderable:!0})}render(){this.container.classList.add("textAnnotation");var e=document.createElement("img");return e.src=this.imageResourcesPath+"annotation-"+this.data.name.toLowerCase()+".svg",e.alt="[{{type}} Annotation]",e.dataset.l10nId="text_annotation_type",e.dataset.l10nArgs=JSON.stringify({type:this.data.name}),!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container.append(e),this.container}}class _ extends h{render(){return this.data.alternativeText&&(this.container.title=this.data.alternativeText),this.container}showElementAndHideCanvas(e){var t;this.data.hasOwnCanvas&&("CANVAS"===(null===(t=e.previousSibling)||void 0===t?void 0:t.nodeName)&&(e.previousSibling.hidden=!0),e.hidden=!1)}_getKeyModifier(e){var{isWin:t,isMac:r}=n.FeatureTest.platform;return t&&e.ctrlKey||r&&e.metaKey}_setEventListener(e,t,r,n,o){r.includes("mouse")?e.addEventListener(r,(e=>{var t;null===(t=this.linkService.eventBus)||void 0===t||t.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:n,value:o(e),shift:e.shiftKey,modifier:this._getKeyModifier(e)}})})):e.addEventListener(r,(e=>{var i;if("blur"===r){if(!t.focused||!e.relatedTarget)return;t.focused=!1}else if("focus"===r){if(t.focused)return;t.focused=!0}o&&(null===(i=this.linkService.eventBus)||void 0===i||i.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:n,value:o(e)}}))}))}_setEventListeners(e,t,r,n){for(var[o,i]of r){var a,s,l;("Action"===i||null!==(a=this.data.actions)&&void 0!==a&&a[i])&&("Focus"!==i&&"Blur"!==i||t||(t={focused:!1}),this._setEventListener(e,t,o,i,n),"Focus"!==i||null!==(s=this.data.actions)&&void 0!==s&&s.Blur?"Blur"!==i||null!==(l=this.data.actions)&&void 0!==l&&l.Focus||this._setEventListener(e,t,"focus","Focus",null):this._setEventListener(e,t,"blur","Blur",null))}}_setBackgroundColor(e){var t=this.data.backgroundColor||null;e.style.backgroundColor=null===t?"transparent":n.Util.makeHexColor(t[0],t[1],t[2])}_setTextStyle(e){var t,{fontColor:r}=this.data.defaultAppearanceData,o=this.data.defaultAppearanceData.fontSize||9,i=e.style,a=e=>Math.round(10*e)/10;if(this.data.multiLine){var s=Math.abs(this.data.rect[3]-this.data.rect[1]-2),l=s/(Math.round(s/(n.LINE_FACTOR*o))||1);t=Math.min(o,a(l/n.LINE_FACTOR))}else{var c=Math.abs(this.data.rect[3]-this.data.rect[1]-2);t=Math.min(o,a(c/n.LINE_FACTOR))}i.fontSize="calc(".concat(t,"px * var(--scale-factor))"),i.color=n.Util.makeHexColor(r[0],r[1],r[2]),null!==this.data.textAlignment&&(i.textAlign=["left","center","right"][this.data.textAlignment])}_setRequired(e,t){t?e.setAttribute("required",!0):e.removeAttribute("required"),e.setAttribute("aria-required",t)}}class C extends _{constructor(e){super(e,{isRenderable:e.renderForms||!e.data.hasAppearance&&!!e.data.fieldValue})}setPropertyOnSiblings(e,t,r,n){var o=this.annotationStorage;for(var i of this._getElementsByName(e.name,e.id))i.domElement&&(i.domElement[t]=r),o.setValue(i.id,{[n]:r})}render(){var e=this.annotationStorage,t=this.data.id;this.container.classList.add("textWidgetAnnotation");var r=null;if(this.renderForms){var n,o=e.getValue(t,{value:this.data.fieldValue}),i=o.value||"",a=e.getValue(t,{charLimit:this.data.maxLen}).charLimit;a&&i.length>a&&(i=i.slice(0,a));var s=o.formattedValue||(null===(n=this.data.textContent)||void 0===n?void 0:n.join("\n"))||null;s&&this.data.comb&&(s=s.replaceAll(/\s+/g,""));var l,d,p={userValue:i,formattedValue:s,lastCommittedValue:null,commitKey:1,focused:!1};this.data.multiLine?((r=document.createElement("textarea")).textContent=null!==(l=s)&&void 0!==l?l:i,this.data.doNotScroll&&(r.style.overflowY="hidden")):((r=document.createElement("input")).type="text",r.setAttribute("value",null!==(d=s)&&void 0!==d?d:i),this.data.doNotScroll&&(r.style.overflowX="hidden")),this.data.hasOwnCanvas&&(r.hidden=!0),u.add(r),r.setAttribute("data-element-id",t),r.disabled=this.data.readOnly,r.name=this.data.fieldName,r.tabIndex=c,this._setRequired(r,this.data.required),a&&(r.maxLength=a),r.addEventListener("input",(n=>{e.setValue(t,{value:n.target.value}),this.setPropertyOnSiblings(r,"value",n.target.value,"value"),p.formattedValue=null})),r.addEventListener("resetform",(e=>{var t,n=null!==(t=this.data.defaultFieldValue)&&void 0!==t?t:"";r.value=p.userValue=n,p.formattedValue=null}));var f=e=>{var{formattedValue:t}=p;null!==t&&void 0!==t&&(e.target.value=t),e.target.scrollLeft=0};if(this.enableScripting&&this.hasJSActions){var h;r.addEventListener("focus",(e=>{if(!p.focused){var{target:t}=e;p.userValue&&(t.value=p.userValue),p.lastCommittedValue=t.value,p.commitKey=1,p.focused=!0}})),r.addEventListener("updatefromsandbox",(r=>{this.showElementAndHideCanvas(r.target);var n={value(r){var n;p.userValue=null!==(n=r.detail.value)&&void 0!==n?n:"",e.setValue(t,{value:p.userValue.toString()}),r.target.value=p.userValue},formattedValue(r){var{formattedValue:n}=r.detail;p.formattedValue=n,null!==n&&void 0!==n&&r.target!==document.activeElement&&(r.target.value=n),e.setValue(t,{formattedValue:n})},selRange(e){e.target.setSelectionRange(...e.detail.selRange)},charLimit:r=>{var n,{charLimit:o}=r.detail,{target:i}=r;if(0!==o){i.setAttribute("maxLength",o);var a=p.userValue;!a||a.length<=o||(a=a.slice(0,o),i.value=p.userValue=a,e.setValue(t,{value:a}),null===(n=this.linkService.eventBus)||void 0===n||n.dispatch("dispatcheventinsandbox",{source:this,detail:{id:t,name:"Keystroke",value:a,willCommit:!0,commitKey:1,selStart:i.selectionStart,selEnd:i.selectionEnd}}))}else i.removeAttribute("maxLength")}};this._dispatchEventFromSandbox(n,r)})),r.addEventListener("keydown",(e=>{var r;p.commitKey=1;var n=-1;if("Escape"===e.key?n=0:"Enter"!==e.key||this.data.multiLine?"Tab"===e.key&&(p.commitKey=3):n=2,-1!==n){var{value:o}=e.target;p.lastCommittedValue!==o&&(p.lastCommittedValue=o,p.userValue=o,null===(r=this.linkService.eventBus)||void 0===r||r.dispatch("dispatcheventinsandbox",{source:this,detail:{id:t,name:"Keystroke",value:o,willCommit:!0,commitKey:n,selStart:e.target.selectionStart,selEnd:e.target.selectionEnd}}))}}));var v=f;f=null,r.addEventListener("blur",(e=>{if(p.focused&&e.relatedTarget){p.focused=!1;var r,{value:n}=e.target;p.userValue=n,p.lastCommittedValue!==n&&(null===(r=this.linkService.eventBus)||void 0===r||r.dispatch("dispatcheventinsandbox",{source:this,detail:{id:t,name:"Keystroke",value:n,willCommit:!0,commitKey:p.commitKey,selStart:e.target.selectionStart,selEnd:e.target.selectionEnd}})),v(e)}})),null!==(h=this.data.actions)&&void 0!==h&&h.Keystroke&&r.addEventListener("beforeinput",(e=>{var r;p.lastCommittedValue=null;var{data:n,target:o}=e,{value:i,selectionStart:a,selectionEnd:s}=o,l=a,c=s;switch(e.inputType){case"deleteWordBackward":var u=i.substring(0,a).match(/\w*[^\w]*$/);u&&(l-=u[0].length);break;case"deleteWordForward":var d=i.substring(a).match(/^[^\w]*\w*/);d&&(c+=d[0].length);break;case"deleteContentBackward":a===s&&(l-=1);break;case"deleteContentForward":a===s&&(c+=1)}e.preventDefault(),null===(r=this.linkService.eventBus)||void 0===r||r.dispatch("dispatcheventinsandbox",{source:this,detail:{id:t,name:"Keystroke",value:i,change:n||"",willCommit:!1,selStart:l,selEnd:c}})})),this._setEventListeners(r,p,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],(e=>e.target.value))}if(f&&r.addEventListener("blur",f),this.data.comb){var g=(this.data.rect[2]-this.data.rect[0])/a;r.classList.add("comb"),r.style.letterSpacing="calc(".concat(g,"px * var(--scale-factor) - 1ch)")}}else(r=document.createElement("div")).textContent=this.data.fieldValue,r.style.verticalAlign="middle",r.style.display="table-cell";return this._setTextStyle(r),this._setBackgroundColor(r),this._setDefaultPropertiesFromJS(r),this.container.append(r),this.container}}class w extends _{constructor(e){super(e,{isRenderable:!!e.data.hasOwnCanvas})}}class x extends _{constructor(e){super(e,{isRenderable:e.renderForms})}render(){var e=this.annotationStorage,t=this.data,r=t.id,n=e.getValue(r,{value:t.exportValue===t.fieldValue}).value;"string"===typeof n&&(n="Off"!==n,e.setValue(r,{value:n})),this.container.classList.add("buttonWidgetAnnotation","checkBox");var o=document.createElement("input");return u.add(o),o.setAttribute("data-element-id",r),o.disabled=t.readOnly,this._setRequired(o,this.data.required),o.type="checkbox",o.name=t.fieldName,n&&o.setAttribute("checked",!0),o.setAttribute("exportValue",t.exportValue),o.tabIndex=c,o.addEventListener("change",(n=>{var{name:o,checked:i}=n.target;for(var a of this._getElementsByName(o,r)){var s=i&&a.exportValue===t.exportValue;a.domElement&&(a.domElement.checked=s),e.setValue(a.id,{value:s})}e.setValue(r,{value:i})})),o.addEventListener("resetform",(e=>{var r=t.defaultFieldValue||"Off";e.target.checked=r===t.exportValue})),this.enableScripting&&this.hasJSActions&&(o.addEventListener("updatefromsandbox",(t=>{var n={value(t){t.target.checked="Off"!==t.detail.value,e.setValue(r,{value:t.target.checked})}};this._dispatchEventFromSandbox(n,t)})),this._setEventListeners(o,null,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],(e=>e.target.checked))),this._setBackgroundColor(o),this._setDefaultPropertiesFromJS(o),this.container.append(o),this.container}}class k extends _{constructor(e){super(e,{isRenderable:e.renderForms})}render(){this.container.classList.add("buttonWidgetAnnotation","radioButton");var e=this.annotationStorage,t=this.data,r=t.id,n=e.getValue(r,{value:t.fieldValue===t.buttonValue}).value;"string"===typeof n&&(n=n!==t.buttonValue,e.setValue(r,{value:n}));var o=document.createElement("input");if(u.add(o),o.setAttribute("data-element-id",r),o.disabled=t.readOnly,this._setRequired(o,this.data.required),o.type="radio",o.name=t.fieldName,n&&o.setAttribute("checked",!0),o.tabIndex=c,o.addEventListener("change",(t=>{var{name:n,checked:o}=t.target;for(var i of this._getElementsByName(n,r))e.setValue(i.id,{value:!1});e.setValue(r,{value:o})})),o.addEventListener("resetform",(e=>{var r=t.defaultFieldValue;e.target.checked=null!==r&&void 0!==r&&r===t.buttonValue})),this.enableScripting&&this.hasJSActions){var i=t.buttonValue;o.addEventListener("updatefromsandbox",(t=>{var n={value:t=>{var n=i===t.detail.value;for(var o of this._getElementsByName(t.target.name)){var a=n&&o.id===r;o.domElement&&(o.domElement.checked=a),e.setValue(o.id,{value:a})}}};this._dispatchEventFromSandbox(n,t)})),this._setEventListeners(o,null,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],(e=>e.target.checked))}return this._setBackgroundColor(o),this._setDefaultPropertiesFromJS(o),this.container.append(o),this.container}}class S extends m{constructor(e){super(e,{ignoreBorder:e.data.hasAppearance})}render(){var e=super.render();e.classList.add("buttonWidgetAnnotation","pushButton"),this.data.alternativeText&&(e.title=this.data.alternativeText);var t=e.lastChild;return this.enableScripting&&this.hasJSActions&&t&&(this._setDefaultPropertiesFromJS(t),t.addEventListener("updatefromsandbox",(e=>{this._dispatchEventFromSandbox({},e)}))),e}}class P extends _{constructor(e){super(e,{isRenderable:e.renderForms})}render(){this.container.classList.add("choiceWidgetAnnotation");var e=this.annotationStorage,t=this.data.id,r=e.getValue(t,{value:this.data.fieldValue}),n=document.createElement("select");u.add(n),n.setAttribute("data-element-id",t),n.disabled=this.data.readOnly,this._setRequired(n,this.data.required),n.name=this.data.fieldName,n.tabIndex=c;var o=this.data.combo&&this.data.options.length>0;for(var i of(this.data.combo||(n.size=this.data.options.length,this.data.multiSelect&&(n.multiple=!0)),n.addEventListener("resetform",(e=>{var t=this.data.defaultFieldValue;for(var r of n.options)r.selected=r.value===t})),this.data.options)){var a=document.createElement("option");a.textContent=i.displayValue,a.value=i.exportValue,r.value.includes(i.exportValue)&&(a.setAttribute("selected",!0),o=!1),n.append(a)}var s=null;if(o){var l=document.createElement("option");l.value=" ",l.setAttribute("hidden",!0),l.setAttribute("selected",!0),n.prepend(l),s=()=>{l.remove(),n.removeEventListener("input",s),s=null},n.addEventListener("input",s)}var d=e=>{var t=e?"value":"textContent",{options:r,multiple:o}=n;return o?Array.prototype.filter.call(r,(e=>e.selected)).map((e=>e[t])):-1===r.selectedIndex?null:r[r.selectedIndex][t]},p=d(!1),f=e=>{var t=e.target.options;return Array.prototype.map.call(t,(e=>({displayValue:e.textContent,exportValue:e.value})))};return this.enableScripting&&this.hasJSActions?(n.addEventListener("updatefromsandbox",(r=>{var o={value(r){var o;null===(o=s)||void 0===o||o();var i=r.detail.value,a=new Set(Array.isArray(i)?i:[i]);for(var l of n.options)l.selected=a.has(l.value);e.setValue(t,{value:d(!0)}),p=d(!1)},multipleSelection(e){n.multiple=!0},remove(r){var o=n.options,i=r.detail.remove;if(o[i].selected=!1,n.remove(i),o.length>0){var a=Array.prototype.findIndex.call(o,(e=>e.selected));-1===a&&(o[0].selected=!0)}e.setValue(t,{value:d(!0),items:f(r)}),p=d(!1)},clear(r){for(;0!==n.length;)n.remove(0);e.setValue(t,{value:null,items:[]}),p=d(!1)},insert(r){var{index:o,displayValue:i,exportValue:a}=r.detail.insert,s=n.children[o],l=document.createElement("option");l.textContent=i,l.value=a,s?s.before(l):n.append(l),e.setValue(t,{value:d(!0),items:f(r)}),p=d(!1)},items(r){for(var{items:o}=r.detail;0!==n.length;)n.remove(0);for(var i of o){var{displayValue:a,exportValue:s}=i,l=document.createElement("option");l.textContent=a,l.value=s,n.append(l)}n.options.length>0&&(n.options[0].selected=!0),e.setValue(t,{value:d(!0),items:f(r)}),p=d(!1)},indices(r){var n=new Set(r.detail.indices);for(var o of r.target.options)o.selected=n.has(o.index);e.setValue(t,{value:d(!0)}),p=d(!1)},editable(e){e.target.disabled=!e.detail.editable}};this._dispatchEventFromSandbox(o,r)})),n.addEventListener("input",(r=>{var n,o=d(!0);e.setValue(t,{value:o}),r.preventDefault(),null===(n=this.linkService.eventBus)||void 0===n||n.dispatch("dispatcheventinsandbox",{source:this,detail:{id:t,name:"Keystroke",value:p,changeEx:o,willCommit:!1,commitKey:1,keyDown:!1}})})),this._setEventListeners(n,null,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"],["input","Action"],["input","Validate"]],(e=>e.target.value))):n.addEventListener("input",(function(r){e.setValue(t,{value:d(!0)})})),this.data.combo&&this._setTextStyle(n),this._setBackgroundColor(n),this._setDefaultPropertiesFromJS(n),this.container.append(n),this.container}}class E extends h{constructor(e){var{data:t,elements:r}=e;super(e,{isRenderable:h._hasPopupData(t)}),this.elements=r}render(){this.container.classList.add("popupAnnotation");var e=new $({container:this.container,color:this.data.color,titleObj:this.data.titleObj,modificationDate:this.data.modificationDate,contentsObj:this.data.contentsObj,richText:this.data.richText,rect:this.data.rect,parentRect:this.data.parentRect||null,parent:this.parent,elements:this.elements,open:this.data.open}),t=[];for(var r of this.elements)r.popup=e,t.push(r.data.id),r.addHighlightArea();return this.container.setAttribute("aria-controls",t.map((e=>"".concat(n.AnnotationPrefix).concat(e))).join(",")),this.container}}var O=new WeakMap,M=new WeakMap,F=new WeakMap,R=new WeakMap,T=new WeakMap,I=new WeakMap,D=new WeakMap,j=new WeakMap,B=new WeakMap,L=new WeakMap,Z=new WeakMap,N=new WeakMap,G=new WeakMap,z=new WeakMap,W=new WeakMap,U=new WeakMap,q=new WeakMap,V=new WeakSet,H=new WeakSet,K=new WeakSet,Y=new WeakSet;class ${constructor(e){var{container:t,color:r,elements:n,titleObj:i,modificationDate:a,contentsObj:s,richText:l,parent:c,rect:u,parentRect:d,open:p}=e;_classPrivateMethodInitSpec(this,Y),_classPrivateMethodInitSpec(this,K),_classPrivateMethodInitSpec(this,H),_classPrivateMethodInitSpec(this,V),_classPrivateFieldInitSpec(this,O,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,M,{writable:!0,value:_classPrivateMethodGet(this,V,X).bind(this)}),_classPrivateFieldInitSpec(this,F,{writable:!0,value:_classPrivateMethodGet(this,Y,ee).bind(this)}),_classPrivateFieldInitSpec(this,R,{writable:!0,value:_classPrivateMethodGet(this,K,J).bind(this)}),_classPrivateFieldInitSpec(this,T,{writable:!0,value:_classPrivateMethodGet(this,H,Q).bind(this)}),_classPrivateFieldInitSpec(this,I,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,D,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,j,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,B,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,L,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,Z,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,N,{writable:!0,value:!1}),_classPrivateFieldInitSpec(this,G,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,z,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,W,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,U,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,q,{writable:!0,value:!1}),_classPrivateFieldSet(this,D,t),_classPrivateFieldSet(this,U,i),_classPrivateFieldSet(this,j,s),_classPrivateFieldSet(this,W,l),_classPrivateFieldSet(this,L,c),_classPrivateFieldSet(this,I,r),_classPrivateFieldSet(this,z,u),_classPrivateFieldSet(this,Z,d),_classPrivateFieldSet(this,B,n);var f=o.PDFDateString.toDateObject(a);for(var h of(f&&_classPrivateFieldSet(this,O,c.l10n.get("annotation_date_string",{date:f.toLocaleDateString(),time:f.toLocaleTimeString()})),this.trigger=n.flatMap((e=>e.getElementsToTriggerPopup())),this.trigger))h.addEventListener("click",_classPrivateFieldGet(this,T)),h.addEventListener("mouseenter",_classPrivateFieldGet(this,R)),h.addEventListener("mouseleave",_classPrivateFieldGet(this,F)),h.classList.add("popupTriggerArea");for(var v of n){var g;null===(g=v.container)||void 0===g||g.addEventListener("keydown",_classPrivateFieldGet(this,M))}_classPrivateFieldGet(this,D).hidden=!0,p&&_classPrivateMethodGet(this,H,Q).call(this)}render(){if(!_classPrivateFieldGet(this,G)){var{page:{view:e},viewport:{rawDims:{pageWidth:t,pageHeight:r,pageX:o,pageY:i}}}=_classPrivateFieldGet(this,L),a=_classPrivateFieldSet(this,G,document.createElement("div"));if(a.className="popup",_classPrivateFieldGet(this,I)){var s=a.style.outlineColor=n.Util.makeHexColor(..._classPrivateFieldGet(this,I));CSS.supports("background-color","color-mix(in srgb, red 30%, white)")?a.style.backgroundColor="color-mix(in srgb, ".concat(s," 30%, white)"):a.style.backgroundColor=n.Util.makeHexColor(..._classPrivateFieldGet(this,I).map((e=>Math.floor(.7*(255-e)+e))))}var c=document.createElement("span");c.className="header";var u=document.createElement("h1");if(c.append(u),({dir:u.dir,str:u.textContent}=_classPrivateFieldGet(this,U)),a.append(c),_classPrivateFieldGet(this,O)){var d=document.createElement("span");d.classList.add("popupDate"),_classPrivateFieldGet(this,O).then((e=>{d.textContent=e})),c.append(d)}var p=_classPrivateFieldGet(this,j),f=_classPrivateFieldGet(this,W);if(null===f||void 0===f||!f.str||null!==p&&void 0!==p&&p.str&&p.str!==f.str){var h=this._formatContents(p);a.append(h)}else l.XfaLayer.render({xfaHtml:f.html,intent:"richText",div:a}),a.lastChild.classList.add("richText","popupContent");var v=!!_classPrivateFieldGet(this,Z),g=_classPrivateFieldGet(this,v?Z:z);for(var m of _classPrivateFieldGet(this,B))if(!g||null!==n.Util.intersect(m.data.rect,g)){g=m.data.rect,v=!0;break}var b=n.Util.normalizeRect([g[0],e[3]-g[1]+e[1],g[2],e[3]-g[3]+e[1]]),y=v?g[2]-g[0]+5:0,A=b[0]+y,_=b[1],{style:C}=_classPrivateFieldGet(this,D);C.left="".concat(100*(A-o)/t,"%"),C.top="".concat(100*(_-i)/r,"%"),_classPrivateFieldGet(this,D).append(a)}}_formatContents(e){var{str:t,dir:r}=e,n=document.createElement("p");n.classList.add("popupContent"),n.dir=r;for(var o=t.split(/(?:\r\n?|\n)/),i=0,a=o.length;i{"Enter"===e.key&&(o?e.metaKey:e.ctrlKey)&&_classPrivateMethodGet(this,Ae,Ce).call(this)})),!r.popupRef&&this.hasPopupData?this._createPopup():e.classList.add("popupTriggerArea"),t.append(e),t}getElementsToTriggerPopup(){return _classPrivateFieldGet(this,ye)}addHighlightArea(){this.container.classList.add("highlightArea")}}function Ce(){var e;null===(e=this.downloadManager)||void 0===e||e.openOrDownloadData(this.container,this.content,this.filename)}var we=new WeakMap,xe=new WeakMap,ke=new WeakMap,Se=new WeakSet,Pe=new WeakSet;function Ee(e,t){var r,o=e.firstChild||e;o.id="".concat(n.AnnotationPrefix).concat(t),this.div.append(e),null===(r=_classPrivateFieldGet(this,we))||void 0===r||r.moveElementInDOM(this.div,e,o,!1)}function Oe(){if(_classPrivateFieldGet(this,xe)){var e=this.div;for(var[t,r]of _classPrivateFieldGet(this,xe)){var n=e.querySelector('[data-annotation-id="'.concat(t,'"]'));if(n){var{firstChild:o}=n;o?"CANVAS"===o.nodeName?o.replaceWith(r):o.before(r):n.append(r)}}_classPrivateFieldGet(this,xe).clear()}}t.AnnotationLayer=class{constructor(e){var{div:t,accessibilityManager:r,annotationCanvasMap:n,l10n:o,page:i,viewport:a}=e;_classPrivateMethodInitSpec(this,Pe),_classPrivateMethodInitSpec(this,Se),_classPrivateFieldInitSpec(this,we,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,xe,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,ke,{writable:!0,value:new Map}),this.div=t,_classPrivateFieldSet(this,we,r),_classPrivateFieldSet(this,xe,n),this.l10n=o,this.page=i,this.viewport=a,this.zIndex=0,this.l10n||(this.l10n=s.NullL10n)}render(e){var t=this;return _asyncToGenerator((function*(){var{annotations:r}=e,a=t.div;(0,o.setLayerDimensions)(a,t.viewport);var s=new Map,l={data:null,layer:a,linkService:e.linkService,downloadManager:e.downloadManager,imageResourcesPath:e.imageResourcesPath||"",renderForms:!1!==e.renderForms,svgFactory:new o.DOMSVGFactory,annotationStorage:e.annotationStorage||new i.AnnotationStorage,enableScripting:!0===e.enableScripting,hasJSActions:e.hasJSActions,fieldObjects:e.fieldObjects,parent:t,elements:null};for(var c of r)if(!c.noHTML){var u=c.annotationType===n.AnnotationType.POPUP;if(u){var f=s.get(c.id);if(!f)continue;l.elements=f}else{var{width:h,height:v}=d(c.rect);if(h<=0||v<=0)continue}l.data=c;var g=p.create(l);if(g.isRenderable){if(!u&&c.popupRef){var m=s.get(c.popupRef);m?m.push(g):s.set(c.popupRef,[g])}g.annotationEditorType>0&&_classPrivateFieldGet(t,ke).set(g.data.id,g);var b=g.render();c.hidden&&(b.style.visibility="hidden"),_classPrivateMethodGet(t,Se,Ee).call(t,b,c.id)}}_classPrivateMethodGet(t,Pe,Oe).call(t),yield t.l10n.translate(a)}))()}update(e){var{viewport:t}=e,r=this.div;this.viewport=t,(0,o.setLayerDimensions)(r,{rotation:t.rotation}),_classPrivateMethodGet(this,Pe,Oe).call(this),r.hidden=!1}getEditableAnnotations(){return Array.from(_classPrivateFieldGet(this,ke).values())}getEditableAnnotation(e){return _classPrivateFieldGet(this,ke).get(e)}}},(e,t)=>{function r(e){return Math.floor(255*Math.max(0,Math.min(1,e))).toString(16).padStart(2,"0")}function n(e){return Math.max(0,Math.min(255,255*e))}Object.defineProperty(t,"__esModule",{value:!0}),t.ColorConverters=void 0,t.ColorConverters=class{static CMYK_G(e){var[t,r,n,o]=e;return["G",1-Math.min(1,.3*t+.59*n+.11*r+o)]}static G_CMYK(e){var[t]=e;return["CMYK",0,0,0,1-t]}static G_RGB(e){var[t]=e;return["RGB",t,t,t]}static G_rgb(e){var[t]=e;return[t=n(t),t,t]}static G_HTML(e){var[t]=e,n=r(t);return"#".concat(n).concat(n).concat(n)}static RGB_G(e){var[t,r,n]=e;return["G",.3*t+.59*r+.11*n]}static RGB_rgb(e){return e.map(n)}static RGB_HTML(e){return"#".concat(e.map(r).join(""))}static T_HTML(){return"#00000000"}static T_rgb(){return[null]}static CMYK_RGB(e){var[t,r,n,o]=e;return["RGB",1-Math.min(1,t+o),1-Math.min(1,n+o),1-Math.min(1,r+o)]}static CMYK_rgb(e){var[t,r,o,i]=e;return[n(1-Math.min(1,t+i)),n(1-Math.min(1,o+i)),n(1-Math.min(1,r+i))]}static CMYK_HTML(e){var t=this.CMYK_RGB(e).slice(1);return this.RGB_HTML(t)}static RGB_CMYK(e){var[t,r,n]=e,o=1-t,i=1-r,a=1-n;return["CMYK",o,i,a,Math.min(o,i,a)]}}},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NullL10n=void 0,t.getL10nFallback=n;var r={of_pages:"of {{pagesCount}}",page_of_pages:"({{pageNumber}} of {{pagesCount}})",document_properties_kb:"{{size_kb}} KB ({{size_b}} bytes)",document_properties_mb:"{{size_mb}} MB ({{size_b}} bytes)",document_properties_date_string:"{{date}}, {{time}}",document_properties_page_size_unit_inches:"in",document_properties_page_size_unit_millimeters:"mm",document_properties_page_size_orientation_portrait:"portrait",document_properties_page_size_orientation_landscape:"landscape",document_properties_page_size_name_a3:"A3",document_properties_page_size_name_a4:"A4",document_properties_page_size_name_letter:"Letter",document_properties_page_size_name_legal:"Legal",document_properties_page_size_dimension_string:"{{width}} \xd7 {{height}} {{unit}} ({{orientation}})",document_properties_page_size_dimension_name_string:"{{width}} \xd7 {{height}} {{unit}} ({{name}}, {{orientation}})",document_properties_linearized_yes:"Yes",document_properties_linearized_no:"No",additional_layers:"Additional Layers",page_landmark:"Page {{page}}",thumb_page_title:"Page {{page}}",thumb_page_canvas:"Thumbnail of Page {{page}}",find_reached_top:"Reached top of document, continued from bottom",find_reached_bottom:"Reached end of document, continued from top","find_match_count[one]":"{{current}} of {{total}} match","find_match_count[other]":"{{current}} of {{total}} matches","find_match_count_limit[one]":"More than {{limit}} match","find_match_count_limit[other]":"More than {{limit}} matches",find_not_found:"Phrase not found",page_scale_width:"Page Width",page_scale_fit:"Page Fit",page_scale_auto:"Automatic Zoom",page_scale_actual:"Actual Size",page_scale_percent:"{{scale}}%",loading_error:"An error occurred while loading the PDF.",invalid_file_error:"Invalid or corrupted PDF file.",missing_file_error:"Missing PDF file.",unexpected_response_error:"Unexpected server response.",rendering_error:"An error occurred while rendering the page.",annotation_date_string:"{{date}}, {{time}}",printing_not_supported:"Warning: Printing is not fully supported by this browser.",printing_not_ready:"Warning: The PDF is not fully loaded for printing.",web_fonts_disabled:"Web fonts are disabled: unable to use embedded PDF fonts.",free_text2_default_content:"Start typing\u2026",editor_free_text2_aria_label:"Text Editor",editor_ink2_aria_label:"Draw Editor",editor_ink_canvas_aria_label:"User-created image",editor_alt_text_button_label:"Alt text",editor_alt_text_edit_button_label:"Edit alt text",editor_alt_text_decorative_tooltip:"Marked as decorative"};function n(e,t){switch(e){case"find_match_count":e="find_match_count[".concat(1===t.total?"one":"other","]");break;case"find_match_count_limit":e="find_match_count_limit[".concat(1===t.limit?"one":"other","]")}return r[e]||""}r.print_progress_percent="{{progress}}%";var o={getLanguage(){return _asyncToGenerator((function*(){return"en-us"}))()},getDirection(){return _asyncToGenerator((function*(){return"ltr"}))()},get(e){var t=arguments;return _asyncToGenerator((function*(){var r=t.length>1&&void 0!==t[1]?t[1]:null;return function(e,t){return t?e.replaceAll(/\{\{\s*(\w+)\s*\}\}/g,((e,r)=>r in t?t[r]:"{{"+r+"}}")):e}(t.length>2&&void 0!==t[2]?t[2]:n(e,r),r)}))()},translate(e){return _asyncToGenerator((function*(){}))()}};t.NullL10n=o},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.XfaLayer=void 0;var n=r(25);t.XfaLayer=class{static setupStorage(e,t,r,n,o){var i=n.getValue(t,{value:null});switch(r.name){case"textarea":if(null!==i.value&&(e.textContent=i.value),"print"===o)break;e.addEventListener("input",(e=>{n.setValue(t,{value:e.target.value})}));break;case"input":if("radio"===r.attributes.type||"checkbox"===r.attributes.type){if(i.value===r.attributes.xfaOn?e.setAttribute("checked",!0):i.value===r.attributes.xfaOff&&e.removeAttribute("checked"),"print"===o)break;e.addEventListener("change",(e=>{n.setValue(t,{value:e.target.checked?e.target.getAttribute("xfaOn"):e.target.getAttribute("xfaOff")})}))}else{if(null!==i.value&&e.setAttribute("value",i.value),"print"===o)break;e.addEventListener("input",(e=>{n.setValue(t,{value:e.target.value})}))}break;case"select":if(null!==i.value)for(var a of(e.setAttribute("value",i.value),r.children))a.attributes.value===i.value?a.attributes.selected=!0:a.attributes.hasOwnProperty("selected")&&delete a.attributes.selected;e.addEventListener("input",(e=>{var r=e.target.options,o=-1===r.selectedIndex?"":r[r.selectedIndex].value;n.setValue(t,{value:o})}))}}static setAttributes(e){var{html:t,element:r,storage:n=null,intent:o,linkService:i}=e,{attributes:a}=r,s=t instanceof HTMLAnchorElement;for(var[l,c]of("radio"===a.type&&(a.name="".concat(a.name,"-").concat(o)),Object.entries(a)))if(null!==c&&void 0!==c)switch(l){case"class":c.length&&t.setAttribute(l,c.join(" "));break;case"dataId":break;case"id":t.setAttribute("data-element-id",c);break;case"style":Object.assign(t.style,c);break;case"textContent":t.textContent=c;break;default:(!s||"href"!==l&&"newWindow"!==l)&&t.setAttribute(l,c)}s&&i.addLinkAttributes(t,a.href,a.newWindow),n&&a.dataId&&this.setupStorage(t,a.dataId,r,n)}static render(e){var t=e.annotationStorage,r=e.linkService,o=e.xfaHtml,i=e.intent||"display",a=document.createElement(o.name);o.attributes&&this.setAttributes({html:a,element:o,intent:i,linkService:r});var s=[[o,-1,a]],l=e.div;if(l.append(a),e.viewport){var c="matrix(".concat(e.viewport.transform.join(","),")");l.style.transform=c}"richText"!==i&&l.setAttribute("class","xfaLayer xfaFont");for(var u=[];s.length>0;){var d,[p,f,h]=s.at(-1);if(f+1!==p.children.length){var v=p.children[++s.at(-1)[1]];if(null!==v){var{name:g}=v;if("#text"!==g){var m=null!==v&&void 0!==v&&null!==(d=v.attributes)&&void 0!==d&&d.xmlns?document.createElementNS(v.attributes.xmlns,g):document.createElement(g);if(h.append(m),v.attributes&&this.setAttributes({html:m,element:v,storage:t,intent:i,linkService:r}),v.children&&v.children.length>0)s.push([v,-1,m]);else if(v.value){var b=document.createTextNode(v.value);n.XfaText.shouldBuildText(g)&&u.push(b),m.append(b)}}else{var y=document.createTextNode(v.value);u.push(y),h.append(y)}}}else s.pop()}for(var A of l.querySelectorAll(".xfaNonInteractive input, .xfaNonInteractive textarea"))A.setAttribute("readOnly",!0);return{textDivs:u}}static update(e){var t="matrix(".concat(e.viewport.transform.join(","),")");e.div.style.transform=t,e.div.hidden=!1}}},(e,t,r)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.InkEditor=void 0;var o=r(1),i=r(4),a=r(29),s=r(6),l=r(5),c=new WeakMap,u=new WeakMap,d=new WeakMap,p=new WeakMap,f=new WeakMap,h=new WeakMap,v=new WeakMap,g=new WeakMap,m=new WeakMap,b=new WeakMap,y=new WeakMap,A=new WeakMap,_=new WeakMap,C=new WeakMap,w=new WeakSet,x=new WeakSet,k=new WeakSet,S=new WeakSet,P=new WeakSet,E=new WeakSet,O=new WeakSet,M=new WeakSet,F=new WeakSet,R=new WeakSet,T=new WeakSet,I=new WeakSet,D=new WeakSet,j=new WeakSet,B=new WeakSet,L=new WeakSet,Z=new WeakSet,N=new WeakSet,G=new WeakSet,z=new WeakSet,W=new WeakSet,U=new WeakSet,q=new WeakSet;class V extends i.AnnotationEditor{constructor(e){super(_objectSpread(_objectSpread({},e),{},{name:"inkEditor"})),_classPrivateMethodInitSpec(this,q),_classPrivateMethodInitSpec(this,U),_classPrivateMethodInitSpec(this,W),_classPrivateMethodInitSpec(this,z),_classPrivateMethodInitSpec(this,G),_classPrivateMethodInitSpec(this,N),_classPrivateMethodInitSpec(this,Z),_classPrivateMethodInitSpec(this,L),_classPrivateMethodInitSpec(this,B),_classPrivateMethodInitSpec(this,j),_classPrivateMethodInitSpec(this,D),_classPrivateMethodInitSpec(this,I),_classPrivateMethodInitSpec(this,T),_classPrivateMethodInitSpec(this,R),_classPrivateMethodInitSpec(this,F),_classPrivateMethodInitSpec(this,M),_classPrivateMethodInitSpec(this,O),_classPrivateMethodInitSpec(this,E),_classPrivateMethodInitSpec(this,P),_classPrivateMethodInitSpec(this,S),_classPrivateMethodInitSpec(this,k),_classPrivateMethodInitSpec(this,x),_classPrivateMethodInitSpec(this,w),_classPrivateFieldInitSpec(this,c,{writable:!0,value:0}),_classPrivateFieldInitSpec(this,u,{writable:!0,value:0}),_classPrivateFieldInitSpec(this,d,{writable:!0,value:this.canvasPointermove.bind(this)}),_classPrivateFieldInitSpec(this,p,{writable:!0,value:this.canvasPointerleave.bind(this)}),_classPrivateFieldInitSpec(this,f,{writable:!0,value:this.canvasPointerup.bind(this)}),_classPrivateFieldInitSpec(this,h,{writable:!0,value:this.canvasPointerdown.bind(this)}),_classPrivateFieldInitSpec(this,v,{writable:!0,value:new Path2D}),_classPrivateFieldInitSpec(this,g,{writable:!0,value:!1}),_classPrivateFieldInitSpec(this,m,{writable:!0,value:!1}),_classPrivateFieldInitSpec(this,b,{writable:!0,value:!1}),_classPrivateFieldInitSpec(this,y,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,A,{writable:!0,value:0}),_classPrivateFieldInitSpec(this,_,{writable:!0,value:0}),_classPrivateFieldInitSpec(this,C,{writable:!0,value:null}),this.color=e.color||null,this.thickness=e.thickness||null,this.opacity=e.opacity||null,this.paths=[],this.bezierPath2D=[],this.allRawPaths=[],this.currentPath=[],this.scaleFactor=1,this.translationX=this.translationY=0,this.x=0,this.y=0,this._willKeepAspectRatio=!0}static initialize(e){i.AnnotationEditor.initialize(e,{strings:["editor_ink_canvas_aria_label","editor_ink2_aria_label"]})}static updateDefaultParams(e,t){switch(e){case o.AnnotationEditorParamsType.INK_THICKNESS:V._defaultThickness=t;break;case o.AnnotationEditorParamsType.INK_COLOR:V._defaultColor=t;break;case o.AnnotationEditorParamsType.INK_OPACITY:V._defaultOpacity=t/100}}updateParams(e,t){switch(e){case o.AnnotationEditorParamsType.INK_THICKNESS:_classPrivateMethodGet(this,w,H).call(this,t);break;case o.AnnotationEditorParamsType.INK_COLOR:_classPrivateMethodGet(this,x,K).call(this,t);break;case o.AnnotationEditorParamsType.INK_OPACITY:_classPrivateMethodGet(this,k,Y).call(this,t)}}static get defaultPropertiesToUpdate(){return[[o.AnnotationEditorParamsType.INK_THICKNESS,V._defaultThickness],[o.AnnotationEditorParamsType.INK_COLOR,V._defaultColor||i.AnnotationEditor._defaultLineColor],[o.AnnotationEditorParamsType.INK_OPACITY,Math.round(100*V._defaultOpacity)]]}get propertiesToUpdate(){var e;return[[o.AnnotationEditorParamsType.INK_THICKNESS,this.thickness||V._defaultThickness],[o.AnnotationEditorParamsType.INK_COLOR,this.color||V._defaultColor||i.AnnotationEditor._defaultLineColor],[o.AnnotationEditorParamsType.INK_OPACITY,Math.round(100*(null!==(e=this.opacity)&&void 0!==e?e:V._defaultOpacity))]]}rebuild(){this.parent&&(super.rebuild(),null!==this.div&&(this.canvas||(_classPrivateMethodGet(this,B,se).call(this),_classPrivateMethodGet(this,L,le).call(this)),this.isAttachedToDOM||(this.parent.add(this),_classPrivateMethodGet(this,Z,ce).call(this)),_classPrivateMethodGet(this,q,be).call(this)))}remove(){null!==this.canvas&&(this.isEmpty()||this.commit(),this.canvas.width=this.canvas.height=0,this.canvas.remove(),this.canvas=null,_classPrivateFieldGet(this,y).disconnect(),_classPrivateFieldSet(this,y,null),super.remove())}setParent(e){!this.parent&&e?this._uiManager.removeShouldRescale(this):this.parent&&null===e&&this._uiManager.addShouldRescale(this),super.setParent(e)}onScaleChanging(){var[e,t]=this.parentDimensions,r=this.width*e,n=this.height*t;this.setDimensions(r,n)}enableEditMode(){_classPrivateFieldGet(this,g)||null===this.canvas||(super.enableEditMode(),this._isDraggable=!1,this.canvas.addEventListener("pointerdown",_classPrivateFieldGet(this,h)))}disableEditMode(){this.isInEditMode()&&null!==this.canvas&&(super.disableEditMode(),this._isDraggable=!this.isEmpty(),this.div.classList.remove("editing"),this.canvas.removeEventListener("pointerdown",_classPrivateFieldGet(this,h)))}onceAdded(){this._isDraggable=!this.isEmpty()}isEmpty(){return 0===this.paths.length||1===this.paths.length&&0===this.paths[0].length}commit(){_classPrivateFieldGet(this,g)||(super.commit(),this.isEditing=!1,this.disableEditMode(),this.setInForeground(),_classPrivateFieldSet(this,g,!0),this.div.classList.add("disabled"),_classPrivateMethodGet(this,q,be).call(this,!0),this.makeResizable(),this.parent.addInkEditorIfNeeded(!0),this.moveInDOM(),this.div.focus({preventScroll:!0}))}focusin(e){this._focusEventsAllowed&&(super.focusin(e),this.enableEditMode())}canvasPointerdown(e){0===e.button&&this.isInEditMode()&&!_classPrivateFieldGet(this,g)&&(this.setInForeground(),e.preventDefault(),"mouse"!==e.type&&this.div.focus(),_classPrivateMethodGet(this,E,Q).call(this,e.offsetX,e.offsetY))}canvasPointermove(e){e.preventDefault(),_classPrivateMethodGet(this,O,J).call(this,e.offsetX,e.offsetY)}canvasPointerup(e){e.preventDefault(),_classPrivateMethodGet(this,j,ae).call(this,e)}canvasPointerleave(e){_classPrivateMethodGet(this,j,ae).call(this,e)}get isResizable(){return!this.isEmpty()&&_classPrivateFieldGet(this,g)}render(){if(this.div)return this.div;var e,t;this.width&&(e=this.x,t=this.y),super.render(),i.AnnotationEditor._l10nPromise.get("editor_ink2_aria_label").then((e=>{var t;return null===(t=this.div)||void 0===t?void 0:t.setAttribute("aria-label",e)}));var[r,n,o,a]=_classPrivateMethodGet(this,S,$).call(this);if(this.setAt(r,n,0,0),this.setDims(o,a),_classPrivateMethodGet(this,B,se).call(this),this.width){var[s,l]=this.parentDimensions;this.setAspectRatio(this.width*s,this.height*l),this.setAt(e*s,t*l,this.width*s,this.height*l),_classPrivateFieldSet(this,b,!0),_classPrivateMethodGet(this,Z,ce).call(this),this.setDims(this.width*s,this.height*l),_classPrivateMethodGet(this,D,ie).call(this),this.div.classList.add("disabled")}else this.div.classList.add("editing"),this.enableEditMode();return _classPrivateMethodGet(this,L,le).call(this),this.div}setDimensions(e,t){var r=Math.round(e),n=Math.round(t);if(_classPrivateFieldGet(this,A)!==r||_classPrivateFieldGet(this,_)!==n){_classPrivateFieldSet(this,A,r),_classPrivateFieldSet(this,_,n),this.canvas.style.visibility="hidden";var[o,i]=this.parentDimensions;this.width=e/o,this.height=t/i,this.fixAndSetPosition(),_classPrivateFieldGet(this,g)&&_classPrivateMethodGet(this,N,ue).call(this,e,t),_classPrivateMethodGet(this,Z,ce).call(this),_classPrivateMethodGet(this,D,ie).call(this),this.canvas.style.visibility="visible",this.fixDims()}}static deserialize(e,t,r){if(e instanceof a.InkAnnotationElement)return null;var n=super.deserialize(e,t,r);n.thickness=e.thickness,n.color=o.Util.makeHexColor(...e.color),n.opacity=e.opacity;var[s,l]=n.pageDimensions,d=n.width*s,p=n.height*l,f=n.parentScale,h=e.thickness/2;_classPrivateFieldSet(n,g,!0),_classPrivateFieldSet(n,A,Math.round(d)),_classPrivateFieldSet(n,_,Math.round(p));var{paths:v,rect:m,rotation:b}=e;for(var{bezier:y}of v){y=_classStaticPrivateMethodGet(V,V,he).call(V,y,m,b);var C=[];n.paths.push(C);for(var w=f*(y[0]-h),x=f*(y[1]-h),k=2,S=y.length;k{this.thickness=e,_classPrivateMethodGet(this,q,be).call(this)},undo:()=>{this.thickness=t,_classPrivateMethodGet(this,q,be).call(this)},mustExec:!0,type:o.AnnotationEditorParamsType.INK_THICKNESS,overwriteIfSameType:!0,keepUndo:!0})}function K(e){var t=this.color;this.addCommands({cmd:()=>{this.color=e,_classPrivateMethodGet(this,D,ie).call(this)},undo:()=>{this.color=t,_classPrivateMethodGet(this,D,ie).call(this)},mustExec:!0,type:o.AnnotationEditorParamsType.INK_COLOR,overwriteIfSameType:!0,keepUndo:!0})}function Y(e){e/=100;var t=this.opacity;this.addCommands({cmd:()=>{this.opacity=e,_classPrivateMethodGet(this,D,ie).call(this)},undo:()=>{this.opacity=t,_classPrivateMethodGet(this,D,ie).call(this)},mustExec:!0,type:o.AnnotationEditorParamsType.INK_OPACITY,overwriteIfSameType:!0,keepUndo:!0})}function $(){var{parentRotation:e,parentDimensions:[t,r]}=this;switch(e){case 90:return[0,r,r,t];case 180:return[t,r,t,r];case 270:return[t,0,r,t];default:return[0,0,t,r]}}function X(){var{ctx:e,color:t,opacity:r,thickness:n,parentScale:o,scaleFactor:i}=this;e.lineWidth=n*o/i,e.lineCap="round",e.lineJoin="round",e.miterLimit=10,e.strokeStyle="".concat(t).concat((0,l.opacityToHex)(r))}function Q(e,t){var r;this.canvas.addEventListener("contextmenu",s.noContextMenu),this.canvas.addEventListener("pointerleave",_classPrivateFieldGet(this,p)),this.canvas.addEventListener("pointermove",_classPrivateFieldGet(this,d)),this.canvas.addEventListener("pointerup",_classPrivateFieldGet(this,f)),this.canvas.removeEventListener("pointerdown",_classPrivateFieldGet(this,h)),this.isEditing=!0,_classPrivateFieldGet(this,b)||(_classPrivateFieldSet(this,b,!0),_classPrivateMethodGet(this,Z,ce).call(this),this.thickness||(this.thickness=n._defaultThickness),this.color||(this.color=n._defaultColor||i.AnnotationEditor._defaultLineColor),null!==(r=this.opacity)&&void 0!==r||(this.opacity=n._defaultOpacity)),this.currentPath.push([e,t]),_classPrivateFieldSet(this,m,!1),_classPrivateMethodGet(this,P,X).call(this),_classPrivateFieldSet(this,C,(()=>{_classPrivateMethodGet(this,R,re).call(this),_classPrivateFieldGet(this,C)&&window.requestAnimationFrame(_classPrivateFieldGet(this,C))})),window.requestAnimationFrame(_classPrivateFieldGet(this,C))}function J(e,t){var[r,n]=this.currentPath.at(-1);if(!(this.currentPath.length>1&&e===r&&t===n)){var o=this.currentPath,i=_classPrivateFieldGet(this,v);if(o.push([e,t]),_classPrivateFieldSet(this,m,!0),o.length<=2)return i.moveTo(...o[0]),void i.lineTo(e,t);3===o.length&&(_classPrivateFieldSet(this,v,i=new Path2D),i.moveTo(...o[0])),_classPrivateMethodGet(this,T,ne).call(this,i,...o.at(-3),...o.at(-2),e,t)}}function ee(){if(0!==this.currentPath.length){var e=this.currentPath.at(-1);_classPrivateFieldGet(this,v).lineTo(...e)}}function te(e,t){var r;if(_classPrivateFieldSet(this,C,null),e=Math.min(Math.max(e,0),this.canvas.width),t=Math.min(Math.max(t,0),this.canvas.height),_classPrivateMethodGet(this,O,J).call(this,e,t),_classPrivateMethodGet(this,M,ee).call(this),1!==this.currentPath.length)r=_classPrivateMethodGet(this,I,oe).call(this);else{var n=[e,t];r=[[n,n.slice(),n.slice(),n]]}var o=_classPrivateFieldGet(this,v),i=this.currentPath;this.currentPath=[],_classPrivateFieldSet(this,v,new Path2D),this.addCommands({cmd:()=>{this.allRawPaths.push(i),this.paths.push(r),this.bezierPath2D.push(o),this.rebuild()},undo:()=>{this.allRawPaths.pop(),this.paths.pop(),this.bezierPath2D.pop(),0===this.paths.length?this.remove():(this.canvas||(_classPrivateMethodGet(this,B,se).call(this),_classPrivateMethodGet(this,L,le).call(this)),_classPrivateMethodGet(this,q,be).call(this))},mustExec:!0})}function re(){if(_classPrivateFieldGet(this,m)){_classPrivateFieldSet(this,m,!1);Math.ceil(this.thickness*this.parentScale);var e=this.currentPath.slice(-3),t=e.map((e=>e[0])),r=e.map((e=>e[1])),{ctx:n}=(Math.min(...t),Math.max(...t),Math.min(...r),Math.max(...r),this);for(var o of(n.save(),n.clearRect(0,0,this.canvas.width,this.canvas.height),this.bezierPath2D))n.stroke(o);n.stroke(_classPrivateFieldGet(this,v)),n.restore()}}function ne(e,t,r,n,o,i,a){var s=(t+n)/2,l=(r+o)/2,c=(n+i)/2,u=(o+a)/2;e.bezierCurveTo(s+2*(n-s)/3,l+2*(o-l)/3,c+2*(n-c)/3,u+2*(o-u)/3,c,u)}function oe(){var e=this.currentPath;if(e.length<=2)return[[e[0],e[0],e.at(-1),e.at(-1)]];var t,r=[],[n,o]=e[0];for(t=1;t{this.canvas.removeEventListener("contextmenu",s.noContextMenu)}),10),_classPrivateMethodGet(this,F,te).call(this,e.offsetX,e.offsetY),this.addToAnnotationStorage(),this.setInBackground()}function se(){this.canvas=document.createElement("canvas"),this.canvas.width=this.canvas.height=0,this.canvas.className="inkEditorCanvas",i.AnnotationEditor._l10nPromise.get("editor_ink_canvas_aria_label").then((e=>{var t;return null===(t=this.canvas)||void 0===t?void 0:t.setAttribute("aria-label",e)})),this.div.append(this.canvas),this.ctx=this.canvas.getContext("2d")}function le(){_classPrivateFieldSet(this,y,new ResizeObserver((e=>{var t=e[0].contentRect;t.width&&t.height&&this.setDimensions(t.width,t.height)}))),_classPrivateFieldGet(this,y).observe(this.div)}function ce(){if(_classPrivateFieldGet(this,b)){var[e,t]=this.parentDimensions;this.canvas.width=Math.ceil(this.width*e),this.canvas.height=Math.ceil(this.height*t),_classPrivateMethodGet(this,G,de).call(this)}}function ue(e,t){var r=_classPrivateMethodGet(this,U,me).call(this),n=(e-r)/_classPrivateFieldGet(this,u),o=(t-r)/_classPrivateFieldGet(this,c);this.scaleFactor=Math.min(n,o)}function de(){var e=_classPrivateMethodGet(this,U,me).call(this)/2;this.ctx.setTransform(this.scaleFactor,0,0,this.scaleFactor,this.translationX*this.scaleFactor+e,this.translationY*this.scaleFactor+e)}function pe(e){for(var t=new Path2D,r=0,n=e.length;r0&&void 0!==arguments[0]&&arguments[0];if(!this.isEmpty())if(_classPrivateFieldGet(this,g)){var t=_classPrivateMethodGet(this,W,ge).call(this),r=_classPrivateMethodGet(this,U,me).call(this);_classPrivateFieldSet(this,u,Math.max(i.AnnotationEditor.MIN_SIZE,t[2]-t[0])),_classPrivateFieldSet(this,c,Math.max(i.AnnotationEditor.MIN_SIZE,t[3]-t[1]));var n=Math.ceil(r+_classPrivateFieldGet(this,u)*this.scaleFactor),o=Math.ceil(r+_classPrivateFieldGet(this,c)*this.scaleFactor),[a,s]=this.parentDimensions;this.width=n/a,this.height=o/s,this.setAspectRatio(n,o);var l=this.translationX,d=this.translationY;this.translationX=-t[0],this.translationY=-t[1],_classPrivateMethodGet(this,Z,ce).call(this),_classPrivateMethodGet(this,D,ie).call(this),_classPrivateFieldSet(this,A,n),_classPrivateFieldSet(this,_,o),this.setDims(n,o);var p=e?r/this.scaleFactor/2:0;this.translate(l-this.translationX-p,d-this.translationY-p)}else _classPrivateMethodGet(this,D,ie).call(this)}n=V,_defineProperty(V,"_defaultColor",null),_defineProperty(V,"_defaultOpacity",1),_defineProperty(V,"_defaultThickness",1),_defineProperty(V,"_type","ink"),t.InkEditor=V},(e,t,r)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.StampEditor=void 0;var o=r(1),i=r(4),a=r(6),s=r(29),l=new WeakMap,c=new WeakMap,u=new WeakMap,d=new WeakMap,p=new WeakMap,f=new WeakMap,h=new WeakMap,v=new WeakMap,g=new WeakMap,m=new WeakMap,b=new WeakSet,y=new WeakSet,A=new WeakSet,_=new WeakSet,C=new WeakSet,w=new WeakSet,x=new WeakSet,k=new WeakSet,S=new WeakSet;class P extends i.AnnotationEditor{constructor(e){super(_objectSpread(_objectSpread({},e),{},{name:"stampEditor"})),_classPrivateMethodInitSpec(this,S),_classPrivateMethodInitSpec(this,k),_classPrivateMethodInitSpec(this,x),_classPrivateMethodInitSpec(this,w),_classPrivateMethodInitSpec(this,C),_classPrivateMethodInitSpec(this,_),_classPrivateMethodInitSpec(this,A),_classPrivateMethodInitSpec(this,y),_classPrivateMethodInitSpec(this,b),_classPrivateFieldInitSpec(this,l,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,c,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,u,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,d,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,p,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,f,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,h,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,v,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,g,{writable:!0,value:!1}),_classPrivateFieldInitSpec(this,m,{writable:!0,value:!1}),_classPrivateFieldSet(this,d,e.bitmapUrl),_classPrivateFieldSet(this,p,e.bitmapFile)}static initialize(e){i.AnnotationEditor.initialize(e)}static get supportedTypes(){return(0,o.shadow)(this,"supportedTypes",["apng","avif","bmp","gif","jpeg","png","svg+xml","webp","x-icon"].map((e=>"image/".concat(e))))}static get supportedTypesStr(){return(0,o.shadow)(this,"supportedTypesStr",this.supportedTypes.join(","))}static isHandlingMimeForPasting(e){return this.supportedTypes.includes(e)}static paste(e,t){t.pasteEditor(o.AnnotationEditorType.STAMP,{bitmapFile:e.getAsFile()})}remove(){var e,t;_classPrivateFieldGet(this,c)&&(_classPrivateFieldSet(this,l,null),this._uiManager.imageManager.deleteId(_classPrivateFieldGet(this,c)),null===(e=_classPrivateFieldGet(this,f))||void 0===e||e.remove(),_classPrivateFieldSet(this,f,null),null===(t=_classPrivateFieldGet(this,h))||void 0===t||t.disconnect(),_classPrivateFieldSet(this,h,null)),super.remove()}rebuild(){this.parent?(super.rebuild(),null!==this.div&&(_classPrivateFieldGet(this,c)&&_classPrivateMethodGet(this,A,M).call(this),this.isAttachedToDOM||this.parent.add(this))):_classPrivateFieldGet(this,c)&&_classPrivateMethodGet(this,A,M).call(this)}onceAdded(){this._isDraggable=!0,this.div.focus()}isEmpty(){return!(_classPrivateFieldGet(this,u)||_classPrivateFieldGet(this,l)||_classPrivateFieldGet(this,d)||_classPrivateFieldGet(this,p))}get isResizable(){return!0}render(){if(this.div)return this.div;var e,t;if(this.width&&(e=this.x,t=this.y),super.render(),this.div.hidden=!0,_classPrivateFieldGet(this,l)?_classPrivateMethodGet(this,_,F).call(this):_classPrivateMethodGet(this,A,M).call(this),this.width){var[r,n]=this.parentDimensions;this.setAt(e*r,t*n,this.width*r,this.height*n)}return this.div}static deserialize(e,t,r){if(e instanceof s.StampAnnotationElement)return null;var n=super.deserialize(e,t,r),{rect:o,bitmapUrl:i,bitmapId:a,isSvg:l,accessibilityData:u}=e;a&&r.imageManager.isValidId(a)?_classPrivateFieldSet(n,c,a):_classPrivateFieldSet(n,d,i),_classPrivateFieldSet(n,g,l);var[p,f]=n.pageDimensions;return n.width=(o[2]-o[0])/p,n.height=(o[3]-o[1])/f,u&&(n.altTextData=u),n}serialize(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(this.isEmpty())return null;var r={annotationType:o.AnnotationEditorType.STAMP,bitmapId:_classPrivateFieldGet(this,c),pageIndex:this.pageIndex,rect:this.getRect(0,0),rotation:this.rotation,isSvg:_classPrivateFieldGet(this,g),structTreeParentId:this._structTreeParentId};if(e)return r.bitmapUrl=_classPrivateMethodGet(this,k,D).call(this,!0),r.accessibilityData=this.altTextData,r;var{decorative:n,altText:i}=this.altTextData;if(!n&&i&&(r.accessibilityData={type:"Figure",alt:i}),null===t)return r;t.stamps||(t.stamps=new Map);var a=_classPrivateFieldGet(this,g)?(r.rect[2]-r.rect[0])*(r.rect[3]-r.rect[1]):null;if(t.stamps.has(_classPrivateFieldGet(this,c))){if(_classPrivateFieldGet(this,g)){var s=t.stamps.get(_classPrivateFieldGet(this,c));a>s.area&&(s.area=a,s.serialized.bitmap.close(),s.serialized.bitmap=_classPrivateMethodGet(this,k,D).call(this,!1))}}else t.stamps.set(_classPrivateFieldGet(this,c),{area:a,serialized:r}),r.bitmap=_classPrivateMethodGet(this,k,D).call(this,!1);return r}}function E(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e?(_classPrivateFieldSet(this,l,e.bitmap),t||(_classPrivateFieldSet(this,c,e.id),_classPrivateFieldSet(this,g,e.isSvg)),_classPrivateMethodGet(this,_,F).call(this)):this.remove()}function O(){_classPrivateFieldSet(this,u,null),this._uiManager.enableWaiting(!1),_classPrivateFieldGet(this,f)&&this.div.focus()}function M(){var e=this;if(_classPrivateFieldGet(this,c))return this._uiManager.enableWaiting(!0),void this._uiManager.imageManager.getFromId(_classPrivateFieldGet(this,c)).then((e=>_classPrivateMethodGet(this,b,E).call(this,e,!0))).finally((()=>_classPrivateMethodGet(this,y,O).call(this)));if(_classPrivateFieldGet(this,d)){var t=_classPrivateFieldGet(this,d);return _classPrivateFieldSet(this,d,null),this._uiManager.enableWaiting(!0),void _classPrivateFieldSet(this,u,this._uiManager.imageManager.getFromUrl(t).then((e=>_classPrivateMethodGet(this,b,E).call(this,e))).finally((()=>_classPrivateMethodGet(this,y,O).call(this))))}if(_classPrivateFieldGet(this,p)){var r=_classPrivateFieldGet(this,p);return _classPrivateFieldSet(this,p,null),this._uiManager.enableWaiting(!0),void _classPrivateFieldSet(this,u,this._uiManager.imageManager.getFromFile(r).then((e=>_classPrivateMethodGet(this,b,E).call(this,e))).finally((()=>_classPrivateMethodGet(this,y,O).call(this))))}var o=document.createElement("input");o.type="file",o.accept=n.supportedTypesStr,_classPrivateFieldSet(this,u,new Promise((t=>{o.addEventListener("change",_asyncToGenerator((function*(){if(o.files&&0!==o.files.length){e._uiManager.enableWaiting(!0);var r=yield e._uiManager.imageManager.getFromFile(o.files[0]);_classPrivateMethodGet(e,b,E).call(e,r)}else e.remove();t()}))),o.addEventListener("cancel",(()=>{this.remove(),t()}))})).finally((()=>_classPrivateMethodGet(this,y,O).call(this)))),o.click()}function F(){var{div:e}=this,{width:t,height:r}=_classPrivateFieldGet(this,l),[n,o]=this.pageDimensions,i=.75;if(this.width)t=this.width*n,r=this.height*o;else if(t>i*n||r>i*o){var a=Math.min(i*n/t,i*o/r);t*=a,r*=a}var[s,c]=this.parentDimensions;this.setDims(t*s/n,r*c/o),this._uiManager.enableWaiting(!1);var u=_classPrivateFieldSet(this,f,document.createElement("canvas"));e.append(u),e.hidden=!1,_classPrivateMethodGet(this,x,I).call(this,t,r),_classPrivateMethodGet(this,S,j).call(this),_classPrivateFieldGet(this,m)||(this.parent.addUndoableEditor(this),_classPrivateFieldSet(this,m,!0)),this._uiManager._eventBus.dispatch("reporttelemetry",{source:this,details:{type:"editing",subtype:this.editorType,data:{action:"inserted_image"}}}),this.addAltTextButton()}function R(e,t){var r,[n,o]=this.parentDimensions;this.width=e/n,this.height=t/o,this.setDims(e,t),null!==(r=this._initialOptions)&&void 0!==r&&r.isCentered?this.center():this.fixAndSetPosition(),this._initialOptions=null,null!==_classPrivateFieldGet(this,v)&&clearTimeout(_classPrivateFieldGet(this,v)),_classPrivateFieldSet(this,v,setTimeout((()=>{_classPrivateFieldSet(this,v,null),_classPrivateMethodGet(this,x,I).call(this,e,t)}),200))}function T(e,t){for(var{width:r,height:n}=_classPrivateFieldGet(this,l),o=r,i=n,a=_classPrivateFieldGet(this,l);o>2*e||i>2*t;){var s=o,c=i;o>2*e&&(o=o>=16384?Math.floor(o/2)-1:Math.ceil(o/2)),i>2*t&&(i=i>=16384?Math.floor(i/2)-1:Math.ceil(i/2));var u=new OffscreenCanvas(o,i);u.getContext("2d").drawImage(a,0,0,s,c,0,0,o,i),a=u.transferToImageBitmap()}return a}function I(e,t){e=Math.ceil(e),t=Math.ceil(t);var r=_classPrivateFieldGet(this,f);if(r&&(r.width!==e||r.height!==t)){r.width=e,r.height=t;var n=_classPrivateFieldGet(this,g)?_classPrivateFieldGet(this,l):_classPrivateMethodGet(this,w,T).call(this,e,t),o=r.getContext("2d");o.filter=this._uiManager.hcmFilter,o.drawImage(n,0,0,n.width,n.height,0,0,e,t)}}function D(e){if(e){if(_classPrivateFieldGet(this,g)){var t=this._uiManager.imageManager.getSvgUrl(_classPrivateFieldGet(this,c));if(t)return t}var r=document.createElement("canvas");return({width:r.width,height:r.height}=_classPrivateFieldGet(this,l)),r.getContext("2d").drawImage(_classPrivateFieldGet(this,l),0,0),r.toDataURL()}if(_classPrivateFieldGet(this,g)){var[n,o]=this.pageDimensions,i=Math.round(this.width*n*a.PixelsPerInch.PDF_TO_CSS_UNITS),s=Math.round(this.height*o*a.PixelsPerInch.PDF_TO_CSS_UNITS),u=new OffscreenCanvas(i,s);return u.getContext("2d").drawImage(_classPrivateFieldGet(this,l),0,0,_classPrivateFieldGet(this,l).width,_classPrivateFieldGet(this,l).height,0,0,i,s),u.transferToImageBitmap()}return structuredClone(_classPrivateFieldGet(this,l))}function j(){_classPrivateFieldSet(this,h,new ResizeObserver((e=>{var t=e[0].contentRect;t.width&&t.height&&_classPrivateMethodGet(this,C,R).call(this,t.width,t.height)}))),_classPrivateFieldGet(this,h).observe(this.div)}n=P,_defineProperty(P,"_type","stamp"),t.StampEditor=P}],__webpack_module_cache__={};function __w_pdfjs_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var r=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e](r,r.exports,__w_pdfjs_require__),r.exports}var __webpack_exports__={};return(()=>{var e=__webpack_exports__;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"AbortException",{enumerable:!0,get:function(){return t.AbortException}}),Object.defineProperty(e,"AnnotationEditorLayer",{enumerable:!0,get:function(){return i.AnnotationEditorLayer}}),Object.defineProperty(e,"AnnotationEditorParamsType",{enumerable:!0,get:function(){return t.AnnotationEditorParamsType}}),Object.defineProperty(e,"AnnotationEditorType",{enumerable:!0,get:function(){return t.AnnotationEditorType}}),Object.defineProperty(e,"AnnotationEditorUIManager",{enumerable:!0,get:function(){return a.AnnotationEditorUIManager}}),Object.defineProperty(e,"AnnotationLayer",{enumerable:!0,get:function(){return s.AnnotationLayer}}),Object.defineProperty(e,"AnnotationMode",{enumerable:!0,get:function(){return t.AnnotationMode}}),Object.defineProperty(e,"CMapCompressionType",{enumerable:!0,get:function(){return t.CMapCompressionType}}),Object.defineProperty(e,"DOMSVGFactory",{enumerable:!0,get:function(){return n.DOMSVGFactory}}),Object.defineProperty(e,"FeatureTest",{enumerable:!0,get:function(){return t.FeatureTest}}),Object.defineProperty(e,"GlobalWorkerOptions",{enumerable:!0,get:function(){return l.GlobalWorkerOptions}}),Object.defineProperty(e,"ImageKind",{enumerable:!0,get:function(){return t.ImageKind}}),Object.defineProperty(e,"InvalidPDFException",{enumerable:!0,get:function(){return t.InvalidPDFException}}),Object.defineProperty(e,"MissingPDFException",{enumerable:!0,get:function(){return t.MissingPDFException}}),Object.defineProperty(e,"OPS",{enumerable:!0,get:function(){return t.OPS}}),Object.defineProperty(e,"PDFDataRangeTransport",{enumerable:!0,get:function(){return r.PDFDataRangeTransport}}),Object.defineProperty(e,"PDFDateString",{enumerable:!0,get:function(){return n.PDFDateString}}),Object.defineProperty(e,"PDFWorker",{enumerable:!0,get:function(){return r.PDFWorker}}),Object.defineProperty(e,"PasswordResponses",{enumerable:!0,get:function(){return t.PasswordResponses}}),Object.defineProperty(e,"PermissionFlag",{enumerable:!0,get:function(){return t.PermissionFlag}}),Object.defineProperty(e,"PixelsPerInch",{enumerable:!0,get:function(){return n.PixelsPerInch}}),Object.defineProperty(e,"PromiseCapability",{enumerable:!0,get:function(){return t.PromiseCapability}}),Object.defineProperty(e,"RenderingCancelledException",{enumerable:!0,get:function(){return n.RenderingCancelledException}}),Object.defineProperty(e,"SVGGraphics",{enumerable:!0,get:function(){return r.SVGGraphics}}),Object.defineProperty(e,"UnexpectedResponseException",{enumerable:!0,get:function(){return t.UnexpectedResponseException}}),Object.defineProperty(e,"Util",{enumerable:!0,get:function(){return t.Util}}),Object.defineProperty(e,"VerbosityLevel",{enumerable:!0,get:function(){return t.VerbosityLevel}}),Object.defineProperty(e,"XfaLayer",{enumerable:!0,get:function(){return c.XfaLayer}}),Object.defineProperty(e,"build",{enumerable:!0,get:function(){return r.build}}),Object.defineProperty(e,"createValidAbsoluteUrl",{enumerable:!0,get:function(){return t.createValidAbsoluteUrl}}),Object.defineProperty(e,"getDocument",{enumerable:!0,get:function(){return r.getDocument}}),Object.defineProperty(e,"getFilenameFromUrl",{enumerable:!0,get:function(){return n.getFilenameFromUrl}}),Object.defineProperty(e,"getPdfFilenameFromUrl",{enumerable:!0,get:function(){return n.getPdfFilenameFromUrl}}),Object.defineProperty(e,"getXfaPageViewport",{enumerable:!0,get:function(){return n.getXfaPageViewport}}),Object.defineProperty(e,"isDataScheme",{enumerable:!0,get:function(){return n.isDataScheme}}),Object.defineProperty(e,"isPdfFile",{enumerable:!0,get:function(){return n.isPdfFile}}),Object.defineProperty(e,"loadScript",{enumerable:!0,get:function(){return n.loadScript}}),Object.defineProperty(e,"noContextMenu",{enumerable:!0,get:function(){return n.noContextMenu}}),Object.defineProperty(e,"normalizeUnicode",{enumerable:!0,get:function(){return t.normalizeUnicode}}),Object.defineProperty(e,"renderTextLayer",{enumerable:!0,get:function(){return o.renderTextLayer}}),Object.defineProperty(e,"setLayerDimensions",{enumerable:!0,get:function(){return n.setLayerDimensions}}),Object.defineProperty(e,"shadow",{enumerable:!0,get:function(){return t.shadow}}),Object.defineProperty(e,"updateTextLayer",{enumerable:!0,get:function(){return o.updateTextLayer}}),Object.defineProperty(e,"version",{enumerable:!0,get:function(){return r.version}});var t=__w_pdfjs_require__(1),r=__w_pdfjs_require__(2),n=__w_pdfjs_require__(6),o=__w_pdfjs_require__(26),i=__w_pdfjs_require__(27),a=__w_pdfjs_require__(5),s=__w_pdfjs_require__(29),l=__w_pdfjs_require__(14),c=__w_pdfjs_require__(32)})(),__webpack_exports__})(),module.exports=root.pdfjsLib=factory()},81199:function(e,t,r){"use strict";r.d(t,{yV:function(){return lt},S1:function(){return ct},mc:function(){return ut},Iv:function(){return dt},j:function(){return pt}});var n,o=r(27006);!function(e){e[e.None=0]="None",e[e.Error=1]="Error",e[e.Warn=2]="Warn",e[e.Verbose=3]="Verbose",e[e.Debug=4]="Debug"}(n||(n={}));var i,a=function(e){return function(){var t=(0,o.pi)({},e.config);return{logger:t.loggerProvider,logLevel:t.logLevel}}},s=function(e,t){var r,n;t=(t=t.replace(/\[(\w+)\]/g,".$1")).replace(/^\./,"");try{for(var i=(0,o.XA)(t.split(".")),a=i.next();!a.done;a=i.next()){var s=a.value;if(!(s in e))return;e=e[s]}}catch(l){r={error:l}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return e},l=function(e,t){return function(){var r,n,i={};try{for(var a=(0,o.XA)(t),l=a.next();!l.done;l=a.next()){var c=l.value;i[c]=s(e,c)}}catch(u){r={error:u}}finally{try{l&&!l.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}return i}},c=function(e,t,r,o,i){return void 0===i&&(i=null),function(){for(var a=[],s=0;s>t/4).toString(16):(String(1e7)+String(-1e3)+String(-4e3)+String(-8e3)+String(-1e11)).replace(/[018]/g,e)};function A(e){var t="";try{"body"in e&&(t=JSON.stringify(e.body,null,2))}catch(r){}return t}var _=function(){function e(){this.name="amplitude",this.type="destination",this.retryTimeout=1e3,this.throttleTimeout=3e4,this.storageKey="",this.scheduled=null,this.queue=[]}return e.prototype.setup=function(e){var t;return(0,o.mG)(this,void 0,void 0,(function(){var r,n=this;return(0,o.Jh)(this,(function(o){switch(o.label){case 0:return this.config=e,this.storageKey="".concat(d.f1,"_").concat(this.config.apiKey.substring(0,10)),[4,null===(t=this.config.storageProvider)||void 0===t?void 0:t.get(this.storageKey)];case 1:return(r=o.sent())&&r.length>0&&Promise.all(r.map((function(e){return n.execute(e)}))).catch(),[2,Promise.resolve(void 0)]}}))}))},e.prototype.execute=function(e){var t=this;return e.insert_id||(e.insert_id=y()),new Promise((function(r){var n={event:e,attempts:0,callback:function(e){return r(e)},timeout:0};t.addToQueue(n)}))},e.prototype.getTryableList=function(e){var t=this;return e.filter((function(e){return e.attempts0&&t.schedule(e)}))}),e))},e.prototype.flush=function(e){return void 0===e&&(e=!1),(0,o.mG)(this,void 0,void 0,(function(){var t,r,n,i=this;return(0,o.Jh)(this,(function(o){switch(o.label){case 0:return this.config.offline?(this.config.loggerProvider.debug("Skipping flush while offline."),[2]):(t=[],r=[],this.queue.forEach((function(e){return 0===e.timeout?t.push(e):r.push(e)})),this.scheduled&&(clearTimeout(this.scheduled),this.scheduled=null),n=function(e,t){var r=Math.max(t,1);return e.reduce((function(e,t,n){var o=Math.floor(n/r);return e[o]||(e[o]=[]),e[o].push(t),e}),[])}(t,this.config.flushQueueSize),[4,Promise.all(n.map((function(t){return i.send(t,e)})))]);case 1:return o.sent(),this.scheduleTryable(r),[2]}}))}))},e.prototype.send=function(e,t){return void 0===t&&(t=!0),(0,o.mG)(this,void 0,void 0,(function(){var r,n,a,s,l;return(0,o.Jh)(this,(function(c){switch(c.label){case 0:if(!this.config.apiKey)return[2,this.fulfillRequest(e,400,"Event rejected due to missing API key")];r={api_key:this.config.apiKey,events:e.map((function(e){var t=e.event;t.extra;return(0,o._T)(t,["extra"])})),options:{min_id_length:this.config.minIdLength},client_upload_time:(new Date).toISOString()},c.label=1;case 1:return c.trys.push([1,3,,4]),n=b(this.config.serverUrl,this.config.serverZone,this.config.useBatch).serverUrl,[4,this.config.transportProvider.send(n,r)];case 2:return null===(a=c.sent())?(this.fulfillRequest(e,0,"Unexpected error occurred"),[2]):t?(this.handleResponse(a,e),[3,4]):("body"in a?this.fulfillRequest(e,a.statusCode,"".concat(a.status,": ").concat(A(a))):this.fulfillRequest(e,a.statusCode,a.status),[2]);case 3:return s=c.sent(),l=(u=s)instanceof Error?u.message:String(u),this.config.loggerProvider.error(l),this.handleResponse({status:i.Failed,statusCode:0},e),[3,4];case 4:return[2]}var u}))}))},e.prototype.handleResponse=function(e,t){var r=e.status;switch(r){case i.Success:this.handleSuccessResponse(e,t);break;case i.Invalid:this.handleInvalidResponse(e,t);break;case i.PayloadTooLarge:this.handlePayloadTooLargeResponse(e,t);break;case i.RateLimit:this.handleRateLimitResponse(e,t);break;default:this.config.loggerProvider.warn("{code: 0, error: \"Status '".concat(r,"' provided for ").concat(t.length,' events"}')),this.handleOtherResponse(t)}},e.prototype.handleSuccessResponse=function(e,t){this.fulfillRequest(t,e.statusCode,"Event tracked successfully")},e.prototype.handleInvalidResponse=function(e,t){var r=this;if(e.body.missingField||e.body.error.startsWith("Invalid API key"))this.fulfillRequest(t,e.statusCode,e.body.error);else{var n=(0,o.ev)((0,o.ev)((0,o.ev)((0,o.ev)([],(0,o.CR)(Object.values(e.body.eventsWithInvalidFields)),!1),(0,o.CR)(Object.values(e.body.eventsWithMissingFields)),!1),(0,o.CR)(Object.values(e.body.eventsWithInvalidIdLengths)),!1),(0,o.CR)(e.body.silencedEvents),!1).flat(),i=new Set(n),a=t.filter((function(t,n){if(!i.has(n))return!0;r.fulfillRequest([t],e.statusCode,e.body.error)}));a.length>0&&this.config.loggerProvider.warn(A(e));var s=this.getTryableList(a);this.scheduleTryable(s)}},e.prototype.handlePayloadTooLargeResponse=function(e,t){if(1!==t.length){this.config.loggerProvider.warn(A(e)),this.config.flushQueueSize/=2;var r=this.getTryableList(t);this.scheduleTryable(r)}else this.fulfillRequest(t,e.statusCode,e.body.error)},e.prototype.handleRateLimitResponse=function(e,t){var r=this,n=Object.keys(e.body.exceededDailyQuotaUsers),o=Object.keys(e.body.exceededDailyQuotaDevices),i=e.body.throttledEvents,a=new Set(n),s=new Set(o),l=new Set(i),c=t.filter((function(t,n){if(!(t.event.user_id&&a.has(t.event.user_id)||t.event.device_id&&s.has(t.event.device_id)))return l.has(n)&&(t.timeout=r.throttleTimeout),!0;r.fulfillRequest([t],e.statusCode,e.body.error)}));c.length>0&&this.config.loggerProvider.warn(A(e));var u=this.getTryableList(c);this.scheduleTryable(u)},e.prototype.handleOtherResponse=function(e){var t=this,r=e.map((function(e){return e.timeout=e.attempts*t.retryTimeout,e})),n=this.getTryableList(r);this.scheduleTryable(n)},e.prototype.fulfillRequest=function(e,t,r){this.removeEvents(e),e.forEach((function(e){return e.callback(p(e.event,t,r))}))},e.prototype.saveEvents=function(){if(this.config.storageProvider){var e=this.queue.map((function(e){return e.event}));this.config.storageProvider.set(this.storageKey,e)}},e.prototype.removeEvents=function(e){this.queue=this.queue.filter((function(t){return!e.some((function(e){return e.event.insert_id===t.event.insert_id}))})),this.saveEvents()},e}(),C=r(52523),w=r(12778),x=r(46552),k=function(){function e(){this.productId="",this.quantity=1,this.price=0}return e.prototype.setProductId=function(e){return this.productId=e,this},e.prototype.setQuantity=function(e){return e>0&&(this.quantity=e),this},e.prototype.setPrice=function(e){return this.price=e,this},e.prototype.setRevenueType=function(e){return this.revenueType=e,this},e.prototype.setRevenue=function(e){return this.revenue=e,this},e.prototype.setEventProperties=function(e){return(0,x.L)(e)&&(this.properties=e),this},e.prototype.getEventProperties=function(){var e=this.properties?(0,o.pi)({},this.properties):{};return e[w.al.REVENUE_PRODUCT_ID]=this.productId,e[w.al.REVENUE_QUANTITY]=this.quantity,e[w.al.REVENUE_PRICE]=this.price,e[w.al.REVENUE_TYPE]=this.revenueType,e[w.al.REVENUE]=this.revenue,e},e}(),S=function(){function e(e){this.client=e,this.queue=[],this.applying=!1,this.plugins=[]}return e.prototype.register=function(e,t){var r,n,i;return(0,o.mG)(this,void 0,void 0,(function(){return(0,o.Jh)(this,(function(o){switch(o.label){case 0:return e.name=null!==(r=e.name)&&void 0!==r?r:y(),e.type=null!==(n=e.type)&&void 0!==n?n:"enrichment",[4,null===(i=e.setup)||void 0===i?void 0:i.call(e,t,this.client)];case 1:return o.sent(),this.plugins.push(e),[2]}}))}))},e.prototype.deregister=function(e){var t;return(0,o.mG)(this,void 0,void 0,(function(){var r,n;return(0,o.Jh)(this,(function(o){switch(o.label){case 0:return r=this.plugins.findIndex((function(t){return t.name===e})),n=this.plugins[r],this.plugins.splice(r,1),[4,null===(t=n.teardown)||void 0===t?void 0:t.call(n)];case 1:return o.sent(),[2]}}))}))},e.prototype.reset=function(e){this.applying=!1,this.plugins.map((function(e){var t;return null===(t=e.teardown)||void 0===t?void 0:t.call(e)})),this.plugins=[],this.client=e},e.prototype.push=function(e){var t=this;return new Promise((function(r){t.queue.push([e,r]),t.scheduleApply(0)}))},e.prototype.scheduleApply=function(e){var t=this;this.applying||(this.applying=!0,setTimeout((function(){t.apply(t.queue.shift()).then((function(){t.applying=!1,t.queue.length>0&&t.scheduleApply(0)}))}),e))},e.prototype.apply=function(e){return(0,o.mG)(this,void 0,void 0,(function(){var t,r,n,i,a,s,l,c,u,d,f,h,v,g,m,b,y,A,_,C;return(0,o.Jh)(this,(function(w){switch(w.label){case 0:if(!e)return[2];t=(0,o.CR)(e,1),r=t[0],n=(0,o.CR)(e,2),i=n[1],a=this.plugins.filter((function(e){return"before"===e.type})),w.label=1;case 1:w.trys.push([1,6,7,8]),s=(0,o.XA)(a),l=s.next(),w.label=2;case 2:return l.done?[3,5]:(h=l.value).execute?[4,h.execute((0,o.pi)({},r))]:[3,4];case 3:if(null===(v=w.sent()))return i({event:r,code:0,message:""}),[2];r=v,w.label=4;case 4:return l=s.next(),[3,2];case 5:return[3,8];case 6:return c=w.sent(),y={error:c},[3,8];case 7:try{l&&!l.done&&(A=s.return)&&A.call(s)}finally{if(y)throw y.error}return[7];case 8:u=this.plugins.filter((function(e){return"enrichment"===e.type||void 0===e.type})),w.label=9;case 9:w.trys.push([9,14,15,16]),d=(0,o.XA)(u),f=d.next(),w.label=10;case 10:return f.done?[3,13]:(h=f.value).execute?[4,h.execute((0,o.pi)({},r))]:[3,12];case 11:if(null===(v=w.sent()))return i({event:r,code:0,message:""}),[2];r=v,w.label=12;case 12:return f=d.next(),[3,10];case 13:return[3,16];case 14:return g=w.sent(),_={error:g},[3,16];case 15:try{f&&!f.done&&(C=d.return)&&C.call(d)}finally{if(_)throw _.error}return[7];case 16:return m=this.plugins.filter((function(e){return"destination"===e.type})),b=m.map((function(e){var t=(0,o.pi)({},r);return e.execute(t).catch((function(e){return p(t,0,String(e))}))})),Promise.all(b).then((function(e){var t=(0,o.CR)(e,1)[0]||p(r,100,"Event not tracked, no destination plugins on the instance");i(t)})),[2]}}))}))},e.prototype.flush=function(){return(0,o.mG)(this,void 0,void 0,(function(){var e,t,r,n=this;return(0,o.Jh)(this,(function(o){switch(o.label){case 0:return e=this.queue,this.queue=[],[4,Promise.all(e.map((function(e){return n.apply(e)})))];case 1:return o.sent(),t=this.plugins.filter((function(e){return"destination"===e.type})),r=t.map((function(e){return e.flush&&e.flush()})),[4,Promise.all(r)];case 2:return o.sent(),[2]}}))}))},e}(),P=function(e,t){return(0,o.pi)((0,o.pi)({},t),{event_type:w.JU.IDENTIFY,user_properties:e.getUserProperties()})},E=function(){function e(e){void 0===e&&(e="$default"),this.initializing=!1,this.isReady=!1,this.q=[],this.dispatchQ=[],this.logEvent=this.track.bind(this),this.timeline=new S(this),this.name=e}return e.prototype._init=function(e){return(0,o.mG)(this,void 0,void 0,(function(){return(0,o.Jh)(this,(function(t){switch(t.label){case 0:return this.config=e,this.timeline.reset(this),[4,this.runQueuedFunctions("q")];case 1:return t.sent(),this.isReady=!0,[2]}}))}))},e.prototype.runQueuedFunctions=function(e){return(0,o.mG)(this,void 0,void 0,(function(){var t,r,n,i,a,s,l,c;return(0,o.Jh)(this,(function(u){switch(u.label){case 0:t=this[e],this[e]=[],u.label=1;case 1:u.trys.push([1,8,9,10]),r=(0,o.XA)(t),n=r.next(),u.label=2;case 2:return n.done?[3,7]:(i=n.value,(a=i())&&"promise"in a?[4,a.promise]:[3,4]);case 3:return u.sent(),[3,6];case 4:return[4,a];case 5:u.sent(),u.label=6;case 6:return n=r.next(),[3,2];case 7:return[3,10];case 8:return s=u.sent(),l={error:s},[3,10];case 9:try{n&&!n.done&&(c=r.return)&&c.call(r)}finally{if(l)throw l.error}return[7];case 10:return this[e].length?[4,this.runQueuedFunctions(e)]:[3,12];case 11:u.sent(),u.label=12;case 12:return[2]}}))}))},e.prototype.track=function(e,t,r){var n=function(e,t,r){var n="string"===typeof e?{event_type:e}:e;return(0,o.pi)((0,o.pi)((0,o.pi)({},n),r),t&&{event_properties:t})}(e,t,r);return u(this.dispatch(n))},e.prototype.identify=function(e,t){var r=P(e,t);return u(this.dispatch(r))},e.prototype.groupIdentify=function(e,t,r,n){var i=function(e,t,r,n){var i;return(0,o.pi)((0,o.pi)({},n),{event_type:w.JU.GROUP_IDENTIFY,group_properties:r.getUserProperties(),groups:(i={},i[e]=t,i)})}(e,t,r,n);return u(this.dispatch(i))},e.prototype.setGroup=function(e,t,r){var n=function(e,t,r){var n,i=new C.h;return i.set(e,t),(0,o.pi)((0,o.pi)({},r),{event_type:w.JU.IDENTIFY,user_properties:i.getUserProperties(),groups:(n={},n[e]=t,n)})}(e,t,r);return u(this.dispatch(n))},e.prototype.revenue=function(e,t){var r=function(e,t){return(0,o.pi)((0,o.pi)({},t),{event_type:w.JU.REVENUE,event_properties:e.getEventProperties()})}(e,t);return u(this.dispatch(r))},e.prototype.add=function(e){return this.isReady?this._addPlugin(e):(this.q.push(this._addPlugin.bind(this,e)),u())},e.prototype._addPlugin=function(e){return u(this.timeline.register(e,this.config))},e.prototype.remove=function(e){return this.isReady?this._removePlugin(e):(this.q.push(this._removePlugin.bind(this,e)),u())},e.prototype._removePlugin=function(e){return u(this.timeline.deregister(e))},e.prototype.dispatchWithCallback=function(e,t){if(!this.isReady)return t(p(e,0,"Client not initialized"));this.process(e).then(t)},e.prototype.dispatch=function(e){return(0,o.mG)(this,void 0,void 0,(function(){var t=this;return(0,o.Jh)(this,(function(r){return this.isReady?[2,this.process(e)]:[2,new Promise((function(r){t.dispatchQ.push(t.dispatchWithCallback.bind(t,e,r))}))]}))}))},e.prototype.process=function(e){return(0,o.mG)(this,void 0,void 0,(function(){var t,r,n;return(0,o.Jh)(this,(function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),this.config.optOut?[2,p(e,0,"Event skipped due to optOut config")]:[4,this.timeline.push(e)];case 1:return 200===(n=o.sent()).code?this.config.loggerProvider.log(n.message):100===n.code?this.config.loggerProvider.warn(n.message):this.config.loggerProvider.error(n.message),[2,n];case 2:return t=o.sent(),r=String(t),this.config.loggerProvider.error(r),[2,n=p(e,0,r)];case 3:return[2]}}))}))},e.prototype.setOptOut=function(e){this.isReady?this._setOptOut(e):this.q.push(this._setOptOut.bind(this,Boolean(e)))},e.prototype._setOptOut=function(e){this.config.optOut=Boolean(e)},e.prototype.flush=function(){return u(this.timeline.flush())},e}(),O=function(e,t){return"boolean"===typeof e?e:!1!==(null===e||void 0===e?void 0:e[t])},M=function(e){return O(e,"attribution")},F=function(e){return O(e,"pageViews")},R=function(e){return O(e,"sessions")},T=function(e){var t,r=function(){return!1},n=void 0,o=e.pageCounter;return F(e.defaultTracking)&&(r=void 0,t=void 0,e.defaultTracking&&"object"===typeof e.defaultTracking&&e.defaultTracking.pageViews&&"object"===typeof e.defaultTracking.pageViews&&("trackOn"in e.defaultTracking.pageViews&&(r=e.defaultTracking.pageViews.trackOn),"trackHistoryChanges"in e.defaultTracking.pageViews&&(n=e.defaultTracking.pageViews.trackHistoryChanges),"eventType"in e.defaultTracking.pageViews&&e.defaultTracking.pageViews.eventType&&(t=e.defaultTracking.pageViews.eventType))),{trackOn:r,trackHistoryChanges:n,eventType:t,pageCounter:o}},I="dclid",D="fbclid",j="gbraid",B="gclid",L="ko_click_id",Z="li_fat_id",N="msclkid",G="rtd_cid",z="ttclid",W="twclid",U="wbraid",q={utm_campaign:void 0,utm_content:void 0,utm_id:void 0,utm_medium:void 0,utm_source:void 0,utm_term:void 0,referrer:void 0,referring_domain:void 0,dclid:void 0,gbraid:void 0,gclid:void 0,fbclid:void 0,ko_click_id:void 0,li_fat_id:void 0,msclkid:void 0,rtd_cid:void 0,ttclid:void 0,twclid:void 0,wbraid:void 0},V=function(e){var t=e.split(".");return t.length<=2?e:t.slice(t.length-2,t.length).join(".")},H=function(e,t,r,n){void 0===n&&(n=!0);e.referrer;var i=e.referring_domain,a=(0,o._T)(e,["referrer","referring_domain"]),s=t||{},l=(s.referrer,s.referring_domain),c=(0,o._T)(s,["referrer","referring_domain"]);if(K(r.excludeReferrers,e.referring_domain))return!1;if(!n&&function(e){return Object.values(e).every((function(e){return!e}))}(e)&&t)return!1;var u=JSON.stringify(a)!==JSON.stringify(c),d=V(i||"")!==V(l||"");return!t||u||d},K=function(e,t){return void 0===e&&(e=[]),void 0===t&&(t=""),e.some((function(e){return e instanceof RegExp?e.test(t):e===t}))},Y=function(e){var t=e;return t?(t.startsWith(".")&&(t=t.substring(1)),[new RegExp("".concat(t.replace(".","\\."),"$"))]):[]},$=function(){return"undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof self?self:"undefined"!==typeof r.g?r.g:void 0},X=function(){var e,t=$();return(null===(e=null===t||void 0===t?void 0:t.location)||void 0===e?void 0:e.search)?t.location.search.substring(1).split("&").filter(Boolean).reduce((function(e,t){var r=t.split("=",2),n=Q(r[0]),o=Q(r[1]);return o?(e[n]=o,e):e}),{}):{}},Q=function(e){void 0===e&&(e="");try{return decodeURIComponent(e)}catch(t){return""}},J=function(){function e(){}return e.prototype.parse=function(){return(0,o.mG)(this,void 0,void 0,(function(){return(0,o.Jh)(this,(function(e){return[2,(0,o.pi)((0,o.pi)((0,o.pi)((0,o.pi)({},q),this.getUtmParam()),this.getReferrer()),this.getClickIds())]}))}))},e.prototype.getUtmParam=function(){var e=X();return{utm_campaign:e.utm_campaign,utm_content:e.utm_content,utm_id:e.utm_id,utm_medium:e.utm_medium,utm_source:e.utm_source,utm_term:e.utm_term}},e.prototype.getReferrer=function(){var e,t,r={referrer:void 0,referring_domain:void 0};try{r.referrer=document.referrer||void 0,r.referring_domain=null!==(t=null===(e=r.referrer)||void 0===e?void 0:e.split("/")[2])&&void 0!==t?t:void 0}catch(n){}return r},e.prototype.getClickIds=function(){var e,t=X();return(e={})[I]=t[I],e[D]=t[D],e[j]=t[j],e[B]=t[B],e[L]=t[L],e[Z]=t[Z],e[N]=t[N],e[G]=t[G],e[z]=t[z],e[W]=t[W],e[U]=t[U],e},e}(),ee=function(e,t){return void 0===t&&(t=Date.now()),Date.now()-t>e},te=function(){function e(e,t){var r,n,i,a;this.shouldTrackNewCampaign=!1,this.options=(0,o.pi)({initialEmptyValue:"EMPTY",resetSessionOnNewCampaign:!1,excludeReferrers:Y(null===(r=t.cookieOptions)||void 0===r?void 0:r.domain)},e),this.storage=t.cookieStorage,this.storageKey=(n=t.apiKey,void 0===(i="MKTG")&&(i=""),void 0===a&&(a=10),[d.xp,i,n.substring(0,a)].filter(Boolean).join("_")),this.currentCampaign=q,this.sessionTimeout=t.sessionTimeout,this.lastEventTime=t.lastEventTime,t.loggerProvider.log("Installing web attribution tracking.")}return e.prototype.init=function(){return(0,o.mG)(this,void 0,void 0,(function(){var e,t;return(0,o.Jh)(this,(function(r){switch(r.label){case 0:return[4,this.fetchCampaign()];case 1:return t=o.CR.apply(void 0,[r.sent(),2]),this.currentCampaign=t[0],this.previousCampaign=t[1],e=!this.lastEventTime||ee(this.sessionTimeout,this.lastEventTime),H(this.currentCampaign,this.previousCampaign,this.options,e)?(this.shouldTrackNewCampaign=!0,[4,this.storage.set(this.storageKey,this.currentCampaign)]):[3,3];case 2:r.sent(),r.label=3;case 3:return[2]}}))}))},e.prototype.fetchCampaign=function(){return(0,o.mG)(this,void 0,void 0,(function(){return(0,o.Jh)(this,(function(e){switch(e.label){case 0:return[4,Promise.all([(new J).parse(),this.storage.get(this.storageKey)])];case 1:return[2,e.sent()]}}))}))},e.prototype.generateCampaignEvent=function(e){this.shouldTrackNewCampaign=!1;var t=function(e,t){var r=(0,o.pi)((0,o.pi)({},q),e),n=Object.entries(r).reduce((function(e,r){var n,i=(0,o.CR)(r,2),a=i[0],s=i[1];return e.setOnce("initial_".concat(a),null!==(n=null!==s&&void 0!==s?s:t.initialEmptyValue)&&void 0!==n?n:"EMPTY"),s?e.set(a,s):e.unset(a)}),new C.h);return P(n)}(this.currentCampaign,this.options);return e&&(t.event_id=e),t},e.prototype.shouldSetSessionIdOnNewCampaign=function(){return this.shouldTrackNewCampaign&&!!this.options.resetSessionOnNewCampaign},e}(),re=function(){function e(){}return e.prototype.getApplicationContext=function(){return{versionName:this.versionName,language:ne(),platform:"Web",os:void 0,deviceModel:void 0}},e}(),ne=function(){return"undefined"!==typeof navigator&&(navigator.languages&&navigator.languages[0]||navigator.language)||""},oe=function(){function e(){this.queue=[]}return e.prototype.logEvent=function(e){this.receiver?this.receiver(e):this.queue.length<512&&this.queue.push(e)},e.prototype.setEventReceiver=function(e){this.receiver=e,this.queue.length>0&&(this.queue.forEach((function(t){e(t)})),this.queue=[])},e}(),ie=function(){return ie=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=200&&e<300?i.Success:429===e?i.RateLimit:413===e?i.PayloadTooLarge:408===e?i.Timeout:e>=400&&e<500?i.Invalid:e>=500?i.Failed:i.Unknown},e}(),Ae=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,o.ZT)(t,e),t.prototype.send=function(e,t){return(0,o.mG)(this,void 0,void 0,(function(){var r,n,i;return(0,o.Jh)(this,(function(o){switch(o.label){case 0:if("undefined"===typeof fetch)throw new Error("FetchTransport is not supported");return r={headers:{"Content-Type":"application/json",Accept:"*/*"},body:JSON.stringify(t),method:"POST"},[4,fetch(e,r)];case 1:return[4,(n=o.sent()).text()];case 2:return i=o.sent(),[2,this.buildResponse(i?JSON.parse(i):{code:n.status})]}}))}))},t}(ye),_e=function(){function e(e){this.storage=e}return e.prototype.isEnabled=function(){return(0,o.mG)(this,void 0,void 0,(function(){var t,r,n;return(0,o.Jh)(this,(function(o){switch(o.label){case 0:if(!this.storage)return[2,!1];t=String(Date.now()),r=new e(this.storage),n="AMP_TEST",o.label=1;case 1:return o.trys.push([1,4,5,7]),[4,r.set(n,t)];case 2:return o.sent(),[4,r.get(n)];case 3:return[2,o.sent()===t];case 4:return o.sent(),[2,!1];case 5:return[4,r.remove(n)];case 6:return o.sent(),[7];case 7:return[2]}}))}))},e.prototype.get=function(e){return(0,o.mG)(this,void 0,void 0,(function(){var t;return(0,o.Jh)(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,this.getRaw(e)];case 1:return(t=r.sent())?[2,JSON.parse(t)]:[2,void 0];case 2:return r.sent(),console.error("[Amplitude] Error: Could not get value from storage"),[2,void 0];case 3:return[2]}}))}))},e.prototype.getRaw=function(e){var t;return(0,o.mG)(this,void 0,void 0,(function(){return(0,o.Jh)(this,(function(r){return[2,(null===(t=this.storage)||void 0===t?void 0:t.getItem(e))||void 0]}))}))},e.prototype.set=function(e,t){var r;return(0,o.mG)(this,void 0,void 0,(function(){return(0,o.Jh)(this,(function(n){try{null===(r=this.storage)||void 0===r||r.setItem(e,JSON.stringify(t))}catch(o){}return[2]}))}))},e.prototype.remove=function(e){var t;return(0,o.mG)(this,void 0,void 0,(function(){return(0,o.Jh)(this,(function(r){try{null===(t=this.storage)||void 0===t||t.removeItem(e)}catch(n){}return[2]}))}))},e.prototype.reset=function(){var e;return(0,o.mG)(this,void 0,void 0,(function(){return(0,o.Jh)(this,(function(t){try{null===(e=this.storage)||void 0===e||e.clear()}catch(r){}return[2]}))}))},e}(),Ce=1e3,we=function(e){function t(t){var r,n=this;return(n=e.call(this,null===(r=$())||void 0===r?void 0:r.localStorage)||this).loggerProvider=null===t||void 0===t?void 0:t.loggerProvider,n}return(0,o.ZT)(t,e),t.prototype.set=function(t,r){var n;return(0,o.mG)(this,void 0,void 0,(function(){var i;return(0,o.Jh)(this,(function(o){switch(o.label){case 0:return Array.isArray(r)&&r.length>Ce?(i=r.length-Ce,[4,e.prototype.set.call(this,t,r.slice(0,Ce))]):[3,2];case 1:return o.sent(),null===(n=this.loggerProvider)||void 0===n||n.error("Failed to save ".concat(i," events because the queue length exceeded ").concat(Ce,".")),[3,4];case 2:return[4,e.prototype.set.call(this,t,r)];case 3:o.sent(),o.label=4;case 4:return[2]}}))}))},t}(_e),xe=function(e){function t(){var t;return e.call(this,null===(t=$())||void 0===t?void 0:t.sessionStorage)||this}return(0,o.ZT)(t,e),t}(_e),ke=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={done:4},t}return(0,o.ZT)(t,e),t.prototype.send=function(e,t){return(0,o.mG)(this,void 0,void 0,(function(){var r=this;return(0,o.Jh)(this,(function(n){return[2,new Promise((function(n,o){"undefined"===typeof XMLHttpRequest&&o(new Error("XHRTransport is not supported."));var i=new XMLHttpRequest;i.open("POST",e,!0),i.onreadystatechange=function(){if(i.readyState===r.state.done){var e=i.responseText,t=e?JSON.parse(e):{code:i.status},o=r.buildResponse(t);n(o)}},i.setRequestHeader("Content-Type","application/json"),i.setRequestHeader("Accept","*/*"),i.send(JSON.stringify(t))}))]}))}))},t}(ye),Se=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,o.ZT)(t,e),t.prototype.send=function(e,t){return(0,o.mG)(this,void 0,void 0,(function(){var r=this;return(0,o.Jh)(this,(function(n){return[2,new Promise((function(n,o){var i=$();if(!(null===i||void 0===i?void 0:i.navigator.sendBeacon))throw new Error("SendBeaconTransport is not supported");try{var a=JSON.stringify(t);return n(i.navigator.sendBeacon(e,JSON.stringify(t))?r.buildResponse({code:200,events_ingested:t.events.length,payload_size_bytes:a.length,server_upload_time:Date.now()}):r.buildResponse({code:500}))}catch(s){o(s)}}))]}))}))},t}(ye),Pe=function(e,t,r){return void 0===r&&(r=!0),(0,o.mG)(void 0,void 0,void 0,(function(){var n,i,a,s,l,c,u,p,f;return(0,o.Jh)(this,(function(h){switch(h.label){case 0:return n=function(e){return"".concat(d.xp.toLowerCase(),"_").concat(e.substring(0,6))}(e),[4,t.getRaw(n)];case 1:return(i=h.sent())?r?[4,t.remove(n)]:[3,3]:[2,{optOut:!1}];case 2:h.sent(),h.label=3;case 3:return a=(0,o.CR)(i.split("."),6),s=a[0],l=a[1],c=a[2],u=a[3],p=a[4],f=a[5],[2,{deviceId:s,userId:Oe(l),sessionId:Ee(u),lastEventId:Ee(f),lastEventTime:Ee(p),optOut:Boolean(c)}]}}))}))},Ee=function(e){var t=parseInt(e,32);if(!isNaN(t))return t},Oe=function(e){if(atob&&escape&&e)try{return decodeURIComponent(escape(atob(e)))}catch(t){return}},Me="[Amplitude]",Fe=("".concat(Me," Page Viewed"),"".concat(Me," Form Started")),Re="".concat(Me," Form Submitted"),Te="".concat(Me," File Downloaded"),Ie="session_start",De="session_end",je="".concat(Me," File Extension"),Be="".concat(Me," File Name"),Le="".concat(Me," Link ID"),Ze="".concat(Me," Link Text"),Ne="".concat(Me," Link URL"),Ge="".concat(Me," Form ID"),ze="".concat(Me," Form Name"),We="".concat(Me," Form Destination"),Ue="cookie",qe=function(e){function t(t,r,o,i,a,s,l,c,u,d,p,f,v,g,m,b,y,A,_,C,w,x,k,S,P,E,O,M,F,R,T){void 0===o&&(o=new ge),void 0===i&&(i={domain:"",expiration:365,sameSite:"Lax",secure:!1,upgrade:!0}),void 0===l&&(l=1e3),void 0===c&&(c=5),void 0===u&&(u=30),void 0===d&&(d=Ue),void 0===m&&(m=new h),void 0===b&&(b=n.Warn),void 0===A&&(A=!1),void 0===_&&(_=!1),void 0===x&&(x=""),void 0===k&&(k="US"),void 0===P&&(P=18e5),void 0===E&&(E=new we({loggerProvider:m})),void 0===O&&(O={ipAddress:!0,language:!0,platform:!0}),void 0===M&&(M="fetch"),void 0===F&&(F=!1);var I=e.call(this,{apiKey:t,storageProvider:E,transportProvider:Ke(M)})||this;return I.apiKey=t,I.appVersion=r,I.cookieOptions=i,I.defaultTracking=a,I.flushIntervalMillis=l,I.flushMaxRetries=c,I.flushQueueSize=u,I.identityStorage=d,I.ingestionMetadata=p,I.instanceName=f,I.loggerProvider=m,I.logLevel=b,I.minIdLength=y,I.offline=A,I.partnerId=C,I.plan=w,I.serverUrl=x,I.serverZone=k,I.sessionTimeout=P,I.storageProvider=E,I.trackingOptions=O,I.transport=M,I.useBatch=F,I._optOut=!1,I._cookieStorage=o,I.deviceId=s,I.lastEventId=v,I.lastEventTime=g,I.optOut=_,I.sessionId=S,I.pageCounter=T,I.userId=R,I.loggerProvider.enable(I.logLevel),I}return(0,o.ZT)(t,e),Object.defineProperty(t.prototype,"cookieStorage",{get:function(){return this._cookieStorage},set:function(e){this._cookieStorage!==e&&(this._cookieStorage=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"deviceId",{get:function(){return this._deviceId},set:function(e){this._deviceId!==e&&(this._deviceId=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"userId",{get:function(){return this._userId},set:function(e){this._userId!==e&&(this._userId=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sessionId",{get:function(){return this._sessionId},set:function(e){this._sessionId!==e&&(this._sessionId=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"optOut",{get:function(){return this._optOut},set:function(e){this._optOut!==e&&(this._optOut=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastEventTime",{get:function(){return this._lastEventTime},set:function(e){this._lastEventTime!==e&&(this._lastEventTime=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastEventId",{get:function(){return this._lastEventId},set:function(e){this._lastEventId!==e&&(this._lastEventId=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pageCounter",{get:function(){return this._pageCounter},set:function(e){this._pageCounter!==e&&(this._pageCounter=e,this.updateStorage())},enumerable:!1,configurable:!0}),t.prototype.updateStorage=function(){var e={deviceId:this._deviceId,userId:this._userId,sessionId:this._sessionId,optOut:this._optOut,lastEventTime:this._lastEventTime,lastEventId:this._lastEventId,pageCounter:this._pageCounter};this.cookieStorage.set(me(this.apiKey),e)},t}(g),Ve=function(e,t,r){return void 0===t&&(t={}),(0,o.mG)(void 0,void 0,void 0,(function(){var n,i,a,s,l,c,u,d,p,f,h,v,g,m,b,A,_,C,w,x,k,S,P,E,O,M,F,R,T,I,D,j,B,L,Z,N,G,z,W,U,q;return(0,o.Jh)(this,(function(V){switch(V.label){case 0:return n=t.identityStorage||Ue,_={},n===Ue?[3,1]:(a="",[3,5]);case 1:return null===(w=null===(C=t.cookieOptions)||void 0===C?void 0:C.domain)||void 0===w?[3,2]:(s=w,[3,4]);case 2:return[4,Ye()];case 3:s=V.sent(),V.label=4;case 4:a=s,V.label=5;case 5:return i=o.pi.apply(void 0,[(_.domain=a,_.expiration=365,_.sameSite="Lax",_.secure=!1,_.upgrade=!0,_),t.cookieOptions]),l=He(t.identityStorage,i),[4,Pe(e,l,null===(k=null===(x=t.cookieOptions)||void 0===x?void 0:x.upgrade)||void 0===k||k)];case 6:return c=V.sent(),[4,l.get(me(e))];case 7:return u=V.sent(),d=X(),p=null!==(M=null!==(O=null!==(E=null!==(P=null!==(S=t.deviceId)&&void 0!==S?S:d.ampDeviceId)&&void 0!==P?P:d.deviceId)&&void 0!==E?E:null===u||void 0===u?void 0:u.deviceId)&&void 0!==O?O:c.deviceId)&&void 0!==M?M:y(),f=null!==(F=null===u||void 0===u?void 0:u.lastEventId)&&void 0!==F?F:c.lastEventId,h=null!==(R=null===u||void 0===u?void 0:u.lastEventTime)&&void 0!==R?R:c.lastEventTime,v=null!==(I=null!==(T=t.optOut)&&void 0!==T?T:null===u||void 0===u?void 0:u.optOut)&&void 0!==I?I:c.optOut,g=null!==(D=null===u||void 0===u?void 0:u.sessionId)&&void 0!==D?D:c.sessionId,m=null!==(B=null!==(j=t.userId)&&void 0!==j?j:null===u||void 0===u?void 0:u.userId)&&void 0!==B?B:c.userId,r.previousSessionDeviceId=null!==(L=null===u||void 0===u?void 0:u.deviceId)&&void 0!==L?L:c.deviceId,r.previousSessionUserId=null!==(Z=null===u||void 0===u?void 0:u.userId)&&void 0!==Z?Z:c.userId,b={ipAddress:null===(G=null===(N=t.trackingOptions)||void 0===N?void 0:N.ipAddress)||void 0===G||G,language:null===(W=null===(z=t.trackingOptions)||void 0===z?void 0:z.language)||void 0===W||W,platform:null===(q=null===(U=t.trackingOptions)||void 0===U?void 0:U.platform)||void 0===q||q},A=null===u||void 0===u?void 0:u.pageCounter,[2,new qe(e,t.appVersion,l,i,t.defaultTracking,p,t.flushIntervalMillis,t.flushMaxRetries,t.flushQueueSize,n,t.ingestionMetadata,t.instanceName,f,h,t.loggerProvider,t.logLevel,t.minIdLength,t.offline,v,t.partnerId,t.plan,t.serverUrl,t.serverZone,g,t.sessionTimeout,t.storageProvider,b,t.transport,t.useBatch,m,A)]}}))}))},He=function(e,t){switch(void 0===e&&(e=Ue),void 0===t&&(t={}),e){case"localStorage":return new we;case"sessionStorage":return new xe;case"none":return new ge;default:return new be((0,o.pi)((0,o.pi)({},t),{expirationDays:t.expiration}))}},Ke=function(e){return"xhr"===e?new ke:"beacon"===e?new Se:new Ae},Ye=function(e){return(0,o.mG)(void 0,void 0,void 0,(function(){var t,r,n,i,a,s,l;return(0,o.Jh)(this,(function(o){switch(o.label){case 0:return[4,(new be).isEnabled()];case 1:if(!o.sent()||!e&&("undefined"===typeof location||!location.hostname))return[2,""];for(t=null!==e&&void 0!==e?e:location.hostname,r=t.split("."),n=[],i="AMP_TLDTEST",a=r.length-2;a>=0;--a)n.push(r.slice(a).join("."));a=0,o.label=2;case 2:return a2?(n=t,i=r):"string"===typeof t?(n=t,i=void 0):(n=null===t||void 0===t?void 0:t.userId,i=t),u(this._init((0,o.pi)((0,o.pi)({},i),{userId:n,apiKey:e})))},t.prototype._init=function(t){var r,n,i;return(0,o.mG)(this,void 0,void 0,(function(){var a,s,l,c,u,d=this;return(0,o.Jh)(this,(function(p){switch(p.label){case 0:return this.initializing?[2]:(this.initializing=!0,[4,Ve(t.apiKey,t,this)]);case 1:return a=p.sent(),[4,e.prototype._init.call(this,a)];case 2:return p.sent(),M(this.config.defaultTracking)?(h=this.config,s=M(h.defaultTracking)&&h.defaultTracking&&"object"===typeof h.defaultTracking&&h.defaultTracking.attribution&&"object"===typeof h.defaultTracking.attribution?(0,o.pi)({},h.defaultTracking.attribution):{},this.webAttribution=new te(s,this.config),[4,this.webAttribution.init()]):[3,4];case 3:p.sent(),p.label=4;case 4:return l=X(),c=Number.isNaN(Number(l.ampSessionId))?void 0:Number(l.ampSessionId),this.setSessionId(null!==(i=null!==(n=null!==(r=t.sessionId)&&void 0!==r?r:c)&&void 0!==n?n:this.config.sessionId)&&void 0!==i?i:Date.now()),(u=ue(t.instanceName)).identityStore.setIdentity({userId:this.config.userId,deviceId:this.config.deviceId}),null===this.config.offline?[3,6]:[4,this.add(it()).promise];case 5:p.sent(),p.label=6;case 6:return[4,this.add(new _).promise];case 7:return p.sent(),[4,this.add(new ve).promise];case 8:return p.sent(),[4,this.add(new de).promise];case 9:return p.sent(),function(e){ot||void 0!==e.defaultTracking||(e.loggerProvider.warn("`options.defaultTracking` is set to undefined. This implicitly configures your Amplitude instance to track Page Views, Sessions, File Downloads, and Form Interactions. You can suppress this warning by explicitly setting a value to `options.defaultTracking`. The value must either be a boolean, to enable and disable all default events, or an object, for advanced configuration. For example:\n\namplitude.init(, {\n defaultTracking: true,\n});\n\nVisit https://www.docs.developers.amplitude.com/data/sdks/browser-2/#tracking-default-events for more details."),ot=!0)}(this.config),f=this.config.defaultTracking,O(f,"fileDownloads")?[4,this.add(nt()).promise]:[3,11];case 10:p.sent(),p.label=11;case 11:return function(e){return O(e,"formInteractions")}(this.config.defaultTracking)?[4,this.add(tt()).promise]:[3,13];case 12:p.sent(),p.label=13;case 13:return F(this.config.defaultTracking)?[4,this.add(Xe(T(this.config))).promise]:[3,15];case 14:p.sent(),p.label=15;case 15:return this.initializing=!1,[4,this.runQueuedFunctions("dispatchQ")];case 16:return p.sent(),u.eventBridge.setEventReceiver((function(e){d.track(e.eventType,e.eventProperties)})),[2]}var f,h}))}))},t.prototype.getUserId=function(){var e;return null===(e=this.config)||void 0===e?void 0:e.userId},t.prototype.setUserId=function(e){this.config?e===this.config.userId&&void 0!==e||(this.config.userId=e,function(e,t){ue(t).identityStore.editIdentity().setUserId(e).commit()}(e,this.config.instanceName)):this.q.push(this.setUserId.bind(this,e))},t.prototype.getDeviceId=function(){var e;return null===(e=this.config)||void 0===e?void 0:e.deviceId},t.prototype.setDeviceId=function(e){this.config?(this.config.deviceId=e,function(e,t){ue(t).identityStore.editIdentity().setDeviceId(e).commit()}(e,this.config.instanceName)):this.q.push(this.setDeviceId.bind(this,e))},t.prototype.reset=function(){this.setDeviceId(y()),this.setUserId(void 0)},t.prototype.getSessionId=function(){var e;return null===(e=this.config)||void 0===e?void 0:e.sessionId},t.prototype.setSessionId=function(e){var t,r=[];if(!this.config)return this.q.push(this.setSessionId.bind(this,e)),u(Promise.resolve());if(e===this.config.sessionId)return u(Promise.resolve());var n=this.getSessionId(),o=this.config.lastEventTime,i=null!==(t=this.config.lastEventId)&&void 0!==t?t:-1;this.config.sessionId=e,this.config.lastEventTime=void 0,this.config.pageCounter=0,R(this.config.defaultTracking)&&(n&&o&&r.push(this.track(De,void 0,{device_id:this.previousSessionDeviceId,event_id:++i,session_id:n,time:o+1,user_id:this.previousSessionUserId}).promise),this.config.lastEventTime=this.config.sessionId);var a=this.trackCampaignEventIfNeeded(++i,r);return R(this.config.defaultTracking)&&r.push(this.track(Ie,void 0,{event_id:a?++i:i,session_id:this.config.sessionId,time:this.config.lastEventTime}).promise),this.previousSessionDeviceId=this.config.deviceId,this.previousSessionUserId=this.config.userId,u(Promise.all(r))},t.prototype.extendSession=function(){this.config?this.config.lastEventTime=Date.now():this.q.push(this.extendSession.bind(this))},t.prototype.setTransport=function(e){this.config?this.config.transportProvider=Ke(e):this.q.push(this.setTransport.bind(this,e))},t.prototype.identify=function(t,r){if(fe(t)){var n=t._q;t._q=[],t=pe(new C.h,n)}return(null===r||void 0===r?void 0:r.user_id)&&this.setUserId(r.user_id),(null===r||void 0===r?void 0:r.device_id)&&this.setDeviceId(r.device_id),e.prototype.identify.call(this,t,r)},t.prototype.groupIdentify=function(t,r,n,o){if(fe(n)){var i=n._q;n._q=[],n=pe(new C.h,i)}return e.prototype.groupIdentify.call(this,t,r,n,o)},t.prototype.revenue=function(t,r){if(fe(t)){var n=t._q;t._q=[],t=pe(new k,n)}return e.prototype.revenue.call(this,t,r)},t.prototype.trackCampaignEventIfNeeded=function(e,t){if(!this.webAttribution||!this.webAttribution.shouldTrackNewCampaign)return!1;var r=this.webAttribution.generateCampaignEvent(e);return t?t.push(this.track(r).promise):this.track(r),this.config.loggerProvider.log("Tracking attribution."),!0},t.prototype.process=function(t){return(0,o.mG)(this,void 0,void 0,(function(){var r,n,i;return(0,o.Jh)(this,(function(o){return r=Date.now(),n=ee(this.config.sessionTimeout,this.config.lastEventTime),i=this.webAttribution&&this.webAttribution.shouldSetSessionIdOnNewCampaign(),t.event_type===Ie||t.event_type===De||t.session_id&&t.session_id!==this.getSessionId()||(n||i?(this.setSessionId(r),i&&this.config.loggerProvider.log("Created a new session for new campaign.")):n||this.trackCampaignEventIfNeeded()),[2,e.prototype.process.call(this,t)]}))}))},t}(E),st=function(){var e=new at;return{init:c(e.init.bind(e),"init",a(e),l(e,["config"])),add:c(e.add.bind(e),"add",a(e),l(e,["config.apiKey","timeline.plugins"])),remove:c(e.remove.bind(e),"remove",a(e),l(e,["config.apiKey","timeline.plugins"])),track:c(e.track.bind(e),"track",a(e),l(e,["config.apiKey","timeline.queue.length"])),logEvent:c(e.logEvent.bind(e),"logEvent",a(e),l(e,["config.apiKey","timeline.queue.length"])),identify:c(e.identify.bind(e),"identify",a(e),l(e,["config.apiKey","timeline.queue.length"])),groupIdentify:c(e.groupIdentify.bind(e),"groupIdentify",a(e),l(e,["config.apiKey","timeline.queue.length"])),setGroup:c(e.setGroup.bind(e),"setGroup",a(e),l(e,["config.apiKey","timeline.queue.length"])),revenue:c(e.revenue.bind(e),"revenue",a(e),l(e,["config.apiKey","timeline.queue.length"])),flush:c(e.flush.bind(e),"flush",a(e),l(e,["config.apiKey","timeline.queue.length"])),getUserId:c(e.getUserId.bind(e),"getUserId",a(e),l(e,["config","config.userId"])),setUserId:c(e.setUserId.bind(e),"setUserId",a(e),l(e,["config","config.userId"])),getDeviceId:c(e.getDeviceId.bind(e),"getDeviceId",a(e),l(e,["config","config.deviceId"])),setDeviceId:c(e.setDeviceId.bind(e),"setDeviceId",a(e),l(e,["config","config.deviceId"])),reset:c(e.reset.bind(e),"reset",a(e),l(e,["config","config.userId","config.deviceId"])),getSessionId:c(e.getSessionId.bind(e),"getSessionId",a(e),l(e,["config"])),setSessionId:c(e.setSessionId.bind(e),"setSessionId",a(e),l(e,["config"])),extendSession:c(e.extendSession.bind(e),"extendSession",a(e),l(e,["config"])),setOptOut:c(e.setOptOut.bind(e),"setOptOut",a(e),l(e,["config"])),setTransport:c(e.setTransport.bind(e),"setTransport",a(e),l(e,["config"]))}}(),lt=(st.add,st.extendSession,st.flush,st.getDeviceId,st.getSessionId,st.getUserId,st.groupIdentify,st.identify),ct=st.init,ut=(st.logEvent,st.remove,st.reset),dt=(st.revenue,st.setDeviceId,st.setGroup,st.setOptOut,st.setSessionId,st.setTransport,st.setUserId),pt=st.track},62113:function(e,t,r){"use strict";r.d(t,{EG:function(){return a},RE:function(){return c},f1:function(){return i},h8:function(){return l},q$:function(){return n},xp:function(){return o},y_:function(){return s}});var n="-",o="AMP",i="".concat(o,"_unsent"),a="https://api2.amplitude.com/2/httpapi",s="https://api.eu.amplitude.com/2/httpapi",l="https://api2.amplitude.com/batch",c="https://api.eu.amplitude.com/batch"},52523:function(e,t,r){"use strict";r.d(t,{h:function(){return s}});var n=r(27006),o=r(12778),i=r(62113),a=r(46552),s=function(){function e(){this._propertySet=new Set,this._properties={}}return e.prototype.getUserProperties=function(){return(0,n.pi)({},this._properties)},e.prototype.set=function(e,t){return this._safeSet(o.h9.SET,e,t),this},e.prototype.setOnce=function(e,t){return this._safeSet(o.h9.SET_ONCE,e,t),this},e.prototype.append=function(e,t){return this._safeSet(o.h9.APPEND,e,t),this},e.prototype.prepend=function(e,t){return this._safeSet(o.h9.PREPEND,e,t),this},e.prototype.postInsert=function(e,t){return this._safeSet(o.h9.POSTINSERT,e,t),this},e.prototype.preInsert=function(e,t){return this._safeSet(o.h9.PREINSERT,e,t),this},e.prototype.remove=function(e,t){return this._safeSet(o.h9.REMOVE,e,t),this},e.prototype.add=function(e,t){return this._safeSet(o.h9.ADD,e,t),this},e.prototype.unset=function(e){return this._safeSet(o.h9.UNSET,e,i.q$),this},e.prototype.clearAll=function(){return this._properties={},this._properties[o.h9.CLEAR_ALL]=i.q$,this},e.prototype._safeSet=function(e,t,r){if(this._validate(e,t,r)){var n=this._properties[e];return void 0===n&&(n={},this._properties[e]=n),n[t]=r,this._propertySet.add(t),!0}return!1},e.prototype._validate=function(e,t,r){return void 0===this._properties[o.h9.CLEAR_ALL]&&(!this._propertySet.has(t)&&(e===o.h9.ADD?"number"===typeof r:e===o.h9.UNSET||e===o.h9.REMOVE||(0,a.T)(t,r)))},e}()},46552:function(e,t,r){"use strict";r.d(t,{L:function(){return o},T:function(){return i}});var n=r(27006),o=function(e){if(Object.keys(e).length>1e3)return!1;for(var t in e){var r=e[t];if(!i(t,r))return!1}return!0},i=function(e,t){var r,i;if("string"!==typeof e)return!1;if(Array.isArray(t)){var a=!0;try{for(var s=(0,n.XA)(t),l=s.next();!l.done;l=s.next()){var c=l.value;if(Array.isArray(c))return!1;if("object"===typeof c)a=a&&o(c);else if(!["number","string"].includes(typeof c))return!1;if(!a)return!1}}catch(u){r={error:u}}finally{try{l&&!l.done&&(i=s.return)&&i.call(s)}finally{if(r)throw r.error}}}else{if(null===t||void 0===t)return!1;if("object"===typeof t)return o(t);if(!["number","string","boolean"].includes(typeof t))return!1}return!0}},12778:function(e,t,r){"use strict";var n,o,i;r.d(t,{JU:function(){return i},al:function(){return o},h9:function(){return n}}),function(e){e.SET="$set",e.SET_ONCE="$setOnce",e.ADD="$add",e.APPEND="$append",e.PREPEND="$prepend",e.REMOVE="$remove",e.PREINSERT="$preInsert",e.POSTINSERT="$postInsert",e.UNSET="$unset",e.CLEAR_ALL="$clearAll"}(n||(n={})),function(e){e.REVENUE_PRODUCT_ID="$productId",e.REVENUE_QUANTITY="$quantity",e.REVENUE_PRICE="$price",e.REVENUE_TYPE="$revenueType",e.REVENUE="$revenue"}(o||(o={})),function(e){e.IDENTIFY="$identify",e.GROUP_IDENTIFY="$groupidentify",e.REVENUE="revenue_amount"}(i||(i={}))},69778:function(e,t,r){"use strict";r.d(t,{Z:function(){return m}});var n=function(){function e(e){var t=this;this._insertTag=function(e){var r;r=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,r),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var r=function(e){if(e.sheet)return e.sheet;for(var t=0;t6)switch((0,i.uO)(e,t+1)){case 109:if(45!==(0,i.uO)(e,t+4))break;case 102:return(0,i.gx)(e,/(.+:)(.+)-([^]+)/,"$1"+a.G$+"$2-$3$1"+a.uj+(108==(0,i.uO)(e,t+3)?"$3":"$2-$3"))+e;case 115:return~(0,i.Cw)(e,"stretch")?v((0,i.gx)(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==(0,i.uO)(e,t+1))break;case 6444:switch((0,i.uO)(e,(0,i.to)(e)-3-(~(0,i.Cw)(e,"!important")&&10))){case 107:return(0,i.gx)(e,":",":"+a.G$)+e;case 101:return(0,i.gx)(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+a.G$+(45===(0,i.uO)(e,14)?"inline-":"")+"box$3$1"+a.G$+"$2$3$1"+a.MS+"$2box$3")+e}break;case 5936:switch((0,i.uO)(e,t+11)){case 114:return a.G$+e+a.MS+(0,i.gx)(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return a.G$+e+a.MS+(0,i.gx)(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return a.G$+e+a.MS+(0,i.gx)(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return a.G$+e+a.MS+e+e}return e}var g=[function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case a.h5:e.return=v(e.value,e.length);break;case a.lK:return(0,s.q)([(0,o.JG)(e,{value:(0,i.gx)(e.value,"@","@"+a.G$)})],n);case a.Fr:if(e.length)return(0,i.$e)(e.props,(function(t){switch((0,i.EQ)(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return(0,s.q)([(0,o.JG)(e,{props:[(0,i.gx)(t,/:(read-\w+)/,":"+a.uj+"$1")]})],n);case"::placeholder":return(0,s.q)([(0,o.JG)(e,{props:[(0,i.gx)(t,/:(plac\w+)/,":"+a.G$+"input-$1")]}),(0,o.JG)(e,{props:[(0,i.gx)(t,/:(plac\w+)/,":"+a.uj+"$1")]}),(0,o.JG)(e,{props:[(0,i.gx)(t,/:(plac\w+)/,a.MS+"input-$1")]})],n)}return""}))}}],m=function(e){var t=e.key;if("css"===t){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var o=e.stylisPlugins||g;var i,a,u={},d=[];i=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),r=1;r=4;++n,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))+(59797*(t>>>16)<<16),r=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&r)+(59797*(r>>>16)<<16);switch(o){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(n)))+(59797*(r>>>16)<<16)}return(((r=1540483477*(65535&(r^=r>>>13))+(59797*(r>>>16)<<16))^r>>>15)>>>0).toString(36)}(o)+l;return{name:c,styles:o,next:p}}},40310:function(e,t,r){"use strict";r.d(t,{Z:function(){return m}});var n=r(90957),o=r(21914),i=r(95627),a=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,s=(0,i.Z)((function(e){return a.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),l=r(12009),c=r(35414),u=r(92384),d=r(95308),p=s,f=function(e){return"theme"!==e},h=function(e){return"string"===typeof e&&e.charCodeAt(0)>96?p:f},v=function(e,t,r){var n;if(t){var o=t.shouldForwardProp;n=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!==typeof n&&r&&(n=e.__emotion_forwardProp),n},g=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return(0,c.hC)(t,r,n),(0,d.L)((function(){return(0,c.My)(t,r,n)})),null},m=function e(t,r){var i,a,s=t.__emotion_real===t,d=s&&t.__emotion_base||t;void 0!==r&&(i=r.label,a=r.target);var p=v(t,r,s),f=p||h(d),m=!f("as");return function(){var b=arguments,y=s&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==i&&y.push("label:"+i+";"),null==b[0]||void 0===b[0].raw)y.push.apply(y,b);else{0,y.push(b[0][0]);for(var A=b.length,_=1;_{var{ownerState:r}=e;return[t.root,t[r.variant],t["".concat(r.variant).concat((0,p.Z)(r.color||r.severity))]]}})((e=>{var{theme:t}=e,r="light"===t.palette.mode?l._j:l.$n,n="light"===t.palette.mode?l.$n:l._j;return(0,o.Z)({},t.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(t.palette).filter((e=>{var[,t]=e;return t.main&&t.light})).map((e=>{var[o]=e;return{props:{colorSeverity:o,variant:"standard"},style:{color:t.vars?t.vars.palette.Alert["".concat(o,"Color")]:r(t.palette[o].light,.6),backgroundColor:t.vars?t.vars.palette.Alert["".concat(o,"StandardBg")]:n(t.palette[o].light,.9),["& .".concat(m.icon)]:t.vars?{color:t.vars.palette.Alert["".concat(o,"IconColor")]}:{color:t.palette[o].main}}}})),...Object.entries(t.palette).filter((e=>{var[,t]=e;return t.main&&t.light})).map((e=>{var[n]=e;return{props:{colorSeverity:n,variant:"outlined"},style:{color:t.vars?t.vars.palette.Alert["".concat(n,"Color")]:r(t.palette[n].light,.6),border:"1px solid ".concat((t.vars||t).palette[n].light),["& .".concat(m.icon)]:t.vars?{color:t.vars.palette.Alert["".concat(n,"IconColor")]}:{color:t.palette[n].main}}}})),...Object.entries(t.palette).filter((e=>{var[,t]=e;return t.main&&t.dark})).map((e=>{var[r]=e;return{props:{colorSeverity:r,variant:"filled"},style:(0,o.Z)({fontWeight:t.typography.fontWeightMedium},t.vars?{color:t.vars.palette.Alert["".concat(r,"FilledColor")],backgroundColor:t.vars.palette.Alert["".concat(r,"FilledBg")]}:{backgroundColor:"dark"===t.palette.mode?t.palette[r].dark:t.palette[r].main,color:t.palette.getContrastText(t.palette[r].main)})}}))]})})),E=(0,c.ZP)("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),O=(0,c.ZP)("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),M=(0,c.ZP)("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),F={success:(0,A.jsx)(_,{fontSize:"inherit"}),warning:(0,A.jsx)(C,{fontSize:"inherit"}),error:(0,A.jsx)(w,{fontSize:"inherit"}),info:(0,A.jsx)(x,{fontSize:"inherit"})},R=i.forwardRef((function(e,t){var r=(0,u.i)({props:e,name:"MuiAlert"}),{action:i,children:l,className:c,closeText:f="Close",color:h,components:v={},componentsProps:m={},icon:y,iconMapping:_=F,onClose:C,role:w="alert",severity:x="success",slotProps:R={},slots:T={},variant:I="standard"}=r,D=(0,n.Z)(r,S),j=(0,o.Z)({},r,{color:h,severity:x,variant:I,colorSeverity:h||x}),B=(e=>{var{variant:t,color:r,severity:n,classes:o}=e,i={root:["root","color".concat((0,p.Z)(r||n)),"".concat(t).concat((0,p.Z)(r||n)),"".concat(t)],icon:["icon"],message:["message"],action:["action"]};return(0,s.Z)(i,g,o)})(j),L={slots:(0,o.Z)({closeButton:v.CloseButton,closeIcon:v.CloseIcon},T),slotProps:(0,o.Z)({},m,R)},[Z,N]=(0,d.Z)("closeButton",{elementType:b.Z,externalForwardedProps:L,ownerState:j}),[G,z]=(0,d.Z)("closeIcon",{elementType:k.Z,externalForwardedProps:L,ownerState:j});return(0,A.jsxs)(P,(0,o.Z)({role:w,elevation:0,ownerState:j,className:(0,a.Z)(B.root,c),ref:t},D,{children:[!1!==y?(0,A.jsx)(E,{ownerState:j,className:B.icon,children:y||_[x]||F[x]}):null,(0,A.jsx)(O,{ownerState:j,className:B.message,children:l}),null!=i?(0,A.jsx)(M,{ownerState:j,className:B.action,children:i}):null,null==i&&C?(0,A.jsx)(M,{ownerState:j,className:B.action,children:(0,A.jsx)(Z,(0,o.Z)({size:"small","aria-label":f,title:f,color:"inherit",onClick:C},N,{children:(0,A.jsx)(G,(0,o.Z)({fontSize:"small"},z))}))}):null]}))}))},53530:function(e,t,r){"use strict";r.d(t,{Z:function(){return y}});var n=r(40629),o=r(92002),i=r(21914),a=r(16757),s=r(17521),l=r(24077),c=r(93319),u=r(81772),d=r(37395),p=r(10742),f=r(90627);function h(e){return(0,f.ZP)("MuiAppBar",e)}(0,p.Z)("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);var v=r(56552),g=["className","color","enableColorOnDark","position"],m=(e,t)=>e?"".concat(null==e?void 0:e.replace(")",""),", ").concat(t,")"):t,b=(0,l.ZP)(d.Z,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[t.root,t["position".concat((0,u.Z)(r.position))],t["color".concat((0,u.Z)(r.color))]]}})((e=>{var{theme:t,ownerState:r}=e,n="light"===t.palette.mode?t.palette.grey[100]:t.palette.grey[900];return(0,o.Z)({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},"fixed"===r.position&&{position:"fixed",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},"absolute"===r.position&&{position:"absolute",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0},"sticky"===r.position&&{position:"sticky",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0},"static"===r.position&&{position:"static"},"relative"===r.position&&{position:"relative"},!t.vars&&(0,o.Z)({},"default"===r.color&&{backgroundColor:n,color:t.palette.getContrastText(n)},r.color&&"default"!==r.color&&"inherit"!==r.color&&"transparent"!==r.color&&{backgroundColor:t.palette[r.color].main,color:t.palette[r.color].contrastText},"inherit"===r.color&&{color:"inherit"},"dark"===t.palette.mode&&!r.enableColorOnDark&&{backgroundColor:null,color:null},"transparent"===r.color&&(0,o.Z)({backgroundColor:"transparent",color:"inherit"},"dark"===t.palette.mode&&{backgroundImage:"none"})),t.vars&&(0,o.Z)({},"default"===r.color&&{"--AppBar-background":r.enableColorOnDark?t.vars.palette.AppBar.defaultBg:m(t.vars.palette.AppBar.darkBg,t.vars.palette.AppBar.defaultBg),"--AppBar-color":r.enableColorOnDark?t.vars.palette.text.primary:m(t.vars.palette.AppBar.darkColor,t.vars.palette.text.primary)},r.color&&!r.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":r.enableColorOnDark?t.vars.palette[r.color].main:m(t.vars.palette.AppBar.darkBg,t.vars.palette[r.color].main),"--AppBar-color":r.enableColorOnDark?t.vars.palette[r.color].contrastText:m(t.vars.palette.AppBar.darkColor,t.vars.palette[r.color].contrastText)},!["inherit","transparent"].includes(r.color)&&{backgroundColor:"var(--AppBar-background)"},{color:"inherit"===r.color?"inherit":"var(--AppBar-color)"},"transparent"===r.color&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))})),y=i.forwardRef((function(e,t){var r=(0,c.i)({props:e,name:"MuiAppBar"}),{className:i,color:l="primary",enableColorOnDark:d=!1,position:p="fixed"}=r,f=(0,n.Z)(r,g),m=(0,o.Z)({},r,{color:l,position:p,enableColorOnDark:d}),y=(e=>{var{color:t,position:r,classes:n}=e,o={root:["root","color".concat((0,u.Z)(t)),"position".concat((0,u.Z)(r))]};return(0,s.Z)(o,h,n)})(m);return(0,v.jsx)(b,(0,o.Z)({square:!0,component:"header",ownerState:m,elevation:4,className:(0,a.Z)(y.root,i,"fixed"===p&&"mui-fixed"),ref:t},f))}))},65037:function(e,t,r){"use strict";r.d(t,{Z:function(){return m}});var n=r(40629),o=r(92002),i=r(21914),a=r(16757),s=r(17521),l=r(24077),c=r(93319),u=r(55120),d=r(10742),p=r(90627);function f(e){return(0,p.ZP)("MuiBackdrop",e)}(0,d.Z)("MuiBackdrop",["root","invisible"]);var h=r(56552),v=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],g=(0,l.ZP)("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})((e=>{var{ownerState:t}=e;return(0,o.Z)({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},t.invisible&&{backgroundColor:"transparent"})})),m=i.forwardRef((function(e,t){var r,i,l,d=(0,c.i)({props:e,name:"MuiBackdrop"}),{children:p,className:m,component:b="div",components:y={},componentsProps:A={},invisible:_=!1,open:C,slotProps:w={},slots:x={},TransitionComponent:k=u.Z,transitionDuration:S}=d,P=(0,n.Z)(d,v),E=(0,o.Z)({},d,{component:b,invisible:_}),O=(e=>{var{classes:t,invisible:r}=e,n={root:["root",r&&"invisible"]};return(0,s.Z)(n,f,t)})(E),M=null!=(r=w.root)?r:A.root;return(0,h.jsx)(k,(0,o.Z)({in:C,timeout:S},P,{children:(0,h.jsx)(g,(0,o.Z)({"aria-hidden":!0},M,{as:null!=(i=null!=(l=x.root)?l:y.Root)?i:b,className:(0,a.Z)(O.root,m,null==M?void 0:M.className),ownerState:(0,o.Z)({},E,null==M?void 0:M.ownerState),classes:O,ref:t,children:p}))}))}))},16057:function(e,t,r){"use strict";r.d(t,{Z:function(){return c}});var n=r(61589),o=r(62292),i=r(15038),a=r(88464),s=(0,r(10742).Z)("MuiBox",["root"]),l=(0,i.Z)(),c=(0,n.Z)({themeId:a.Z,defaultTheme:l,defaultClassName:s.root,generateClassName:o.Z.generate})},95711:function(e,t,r){"use strict";r.d(t,{Z:function(){return P}});var n=r(40629),o=r(92002),i=r(21914),a=r(16757);function s(e,t){var r=(0,o.Z)({},t);return Object.keys(e).forEach((n=>{if(n.toString().match(/^(components|slots)$/))r[n]=(0,o.Z)({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){var i=e[n]||{},a=t[n];r[n]={},a&&Object.keys(a)?i&&Object.keys(i)?(r[n]=(0,o.Z)({},a),Object.keys(i).forEach((e=>{r[n][e]=s(i[e],a[e])}))):r[n]=a:r[n]=i}else void 0===r[n]&&(r[n]=e[n])})),r}var l=r(17521),c=r(20760),u=r(24077),d=r(65669),p=r(93319),f=r(94956),h=r(81772),v=r(10742),g=r(90627);function m(e){return(0,g.ZP)("MuiButton",e)}var b=(0,v.Z)("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]);var y=i.createContext({});var A=i.createContext(void 0),_=r(56552),C=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],w=e=>(0,o.Z)({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),x=(0,u.ZP)(f.Z,{shouldForwardProp:e=>(0,d.Z)(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[t.root,t[r.variant],t["".concat(r.variant).concat((0,h.Z)(r.color))],t["size".concat((0,h.Z)(r.size))],t["".concat(r.variant,"Size").concat((0,h.Z)(r.size))],"inherit"===r.color&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth]}})((e=>{var t,r,{theme:n,ownerState:i}=e,a="light"===n.palette.mode?n.palette.grey[300]:n.palette.grey[800],s="light"===n.palette.mode?n.palette.grey.A100:n.palette.grey[700];return(0,o.Z)({},n.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(n.vars||n).shape.borderRadius,transition:n.transitions.create(["background-color","box-shadow","border-color","color"],{duration:n.transitions.duration.short}),"&:hover":(0,o.Z)({textDecoration:"none",backgroundColor:n.vars?"rgba(".concat(n.vars.palette.text.primaryChannel," / ").concat(n.vars.palette.action.hoverOpacity,")"):(0,c.Fq)(n.palette.text.primary,n.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===i.variant&&"inherit"!==i.color&&{backgroundColor:n.vars?"rgba(".concat(n.vars.palette[i.color].mainChannel," / ").concat(n.vars.palette.action.hoverOpacity,")"):(0,c.Fq)(n.palette[i.color].main,n.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===i.variant&&"inherit"!==i.color&&{border:"1px solid ".concat((n.vars||n).palette[i.color].main),backgroundColor:n.vars?"rgba(".concat(n.vars.palette[i.color].mainChannel," / ").concat(n.vars.palette.action.hoverOpacity,")"):(0,c.Fq)(n.palette[i.color].main,n.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===i.variant&&{backgroundColor:n.vars?n.vars.palette.Button.inheritContainedHoverBg:s,boxShadow:(n.vars||n).shadows[4],"@media (hover: none)":{boxShadow:(n.vars||n).shadows[2],backgroundColor:(n.vars||n).palette.grey[300]}},"contained"===i.variant&&"inherit"!==i.color&&{backgroundColor:(n.vars||n).palette[i.color].dark,"@media (hover: none)":{backgroundColor:(n.vars||n).palette[i.color].main}}),"&:active":(0,o.Z)({},"contained"===i.variant&&{boxShadow:(n.vars||n).shadows[8]}),["&.".concat(b.focusVisible)]:(0,o.Z)({},"contained"===i.variant&&{boxShadow:(n.vars||n).shadows[6]}),["&.".concat(b.disabled)]:(0,o.Z)({color:(n.vars||n).palette.action.disabled},"outlined"===i.variant&&{border:"1px solid ".concat((n.vars||n).palette.action.disabledBackground)},"contained"===i.variant&&{color:(n.vars||n).palette.action.disabled,boxShadow:(n.vars||n).shadows[0],backgroundColor:(n.vars||n).palette.action.disabledBackground})},"text"===i.variant&&{padding:"6px 8px"},"text"===i.variant&&"inherit"!==i.color&&{color:(n.vars||n).palette[i.color].main},"outlined"===i.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===i.variant&&"inherit"!==i.color&&{color:(n.vars||n).palette[i.color].main,border:n.vars?"1px solid rgba(".concat(n.vars.palette[i.color].mainChannel," / 0.5)"):"1px solid ".concat((0,c.Fq)(n.palette[i.color].main,.5))},"contained"===i.variant&&{color:n.vars?n.vars.palette.text.primary:null==(t=(r=n.palette).getContrastText)?void 0:t.call(r,n.palette.grey[300]),backgroundColor:n.vars?n.vars.palette.Button.inheritContainedBg:a,boxShadow:(n.vars||n).shadows[2]},"contained"===i.variant&&"inherit"!==i.color&&{color:(n.vars||n).palette[i.color].contrastText,backgroundColor:(n.vars||n).palette[i.color].main},"inherit"===i.color&&{color:"inherit",borderColor:"currentColor"},"small"===i.size&&"text"===i.variant&&{padding:"4px 5px",fontSize:n.typography.pxToRem(13)},"large"===i.size&&"text"===i.variant&&{padding:"8px 11px",fontSize:n.typography.pxToRem(15)},"small"===i.size&&"outlined"===i.variant&&{padding:"3px 9px",fontSize:n.typography.pxToRem(13)},"large"===i.size&&"outlined"===i.variant&&{padding:"7px 21px",fontSize:n.typography.pxToRem(15)},"small"===i.size&&"contained"===i.variant&&{padding:"4px 10px",fontSize:n.typography.pxToRem(13)},"large"===i.size&&"contained"===i.variant&&{padding:"8px 22px",fontSize:n.typography.pxToRem(15)},i.fullWidth&&{width:"100%"})}),(e=>{var{ownerState:t}=e;return t.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},["&.".concat(b.focusVisible)]:{boxShadow:"none"},"&:active":{boxShadow:"none"},["&.".concat(b.disabled)]:{boxShadow:"none"}}})),k=(0,u.ZP)("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[t.startIcon,t["iconSize".concat((0,h.Z)(r.size))]]}})((e=>{var{ownerState:t}=e;return(0,o.Z)({display:"inherit",marginRight:8,marginLeft:-4},"small"===t.size&&{marginLeft:-2},w(t))})),S=(0,u.ZP)("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[t.endIcon,t["iconSize".concat((0,h.Z)(r.size))]]}})((e=>{var{ownerState:t}=e;return(0,o.Z)({display:"inherit",marginRight:-4,marginLeft:8},"small"===t.size&&{marginRight:-2},w(t))})),P=i.forwardRef((function(e,t){var r=i.useContext(y),c=i.useContext(A),u=s(r,e),d=(0,p.i)({props:u,name:"MuiButton"}),{children:f,color:v="primary",component:g="button",className:b,disabled:w=!1,disableElevation:P=!1,disableFocusRipple:E=!1,endIcon:O,focusVisibleClassName:M,fullWidth:F=!1,size:R="medium",startIcon:T,type:I,variant:D="text"}=d,j=(0,n.Z)(d,C),B=(0,o.Z)({},d,{color:v,component:g,disabled:w,disableElevation:P,disableFocusRipple:E,fullWidth:F,size:R,type:I,variant:D}),L=(e=>{var{color:t,disableElevation:r,fullWidth:n,size:i,variant:a,classes:s}=e,c={root:["root",a,"".concat(a).concat((0,h.Z)(t)),"size".concat((0,h.Z)(i)),"".concat(a,"Size").concat((0,h.Z)(i)),"color".concat((0,h.Z)(t)),r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["icon","startIcon","iconSize".concat((0,h.Z)(i))],endIcon:["icon","endIcon","iconSize".concat((0,h.Z)(i))]},u=(0,l.Z)(c,m,s);return(0,o.Z)({},s,u)})(B),Z=T&&(0,_.jsx)(k,{className:L.startIcon,ownerState:B,children:T}),N=O&&(0,_.jsx)(S,{className:L.endIcon,ownerState:B,children:O}),G=c||"";return(0,_.jsxs)(x,(0,o.Z)({ownerState:B,className:(0,a.Z)(r.className,L.root,b,G),component:g,disabled:w,focusRipple:!E,focusVisibleClassName:(0,a.Z)(L.focusVisible,M),ref:t,type:I},j,{classes:L,children:[Z,f,N]}))}))},94956:function(e,t,r){"use strict";r.d(t,{Z:function(){return W}});var n=r(92002),o=r(40629),i=r(21914),a=r(16757),s=r(17521),l=r(24077),c=r(93319),u=r(7023),d=r(85715),p=r(44051),f=r(67256),h=r(62800),v=r(45717),g=r(22735),m=r(56552);var b=function(e){var{className:t,classes:r,pulsate:n=!1,rippleX:o,rippleY:s,rippleSize:l,in:c,onExited:u,timeout:d}=e,[p,f]=i.useState(!1),h=(0,a.Z)(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),v={width:l,height:l,top:-l/2+s,left:-l/2+o},g=(0,a.Z)(r.child,p&&r.childLeaving,n&&r.childPulsate);return c||p||f(!0),i.useEffect((()=>{if(!c&&null!=u){var e=setTimeout(u,d);return()=>{clearTimeout(e)}}}),[u,c,d]),(0,m.jsx)("span",{className:h,style:v,children:(0,m.jsx)("span",{className:g})})},y=r(10742);var A,_,C,w,x,k,S,P,E=(0,y.Z)("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),O=["center","classes","className"],M=(0,v.F4)(x||(x=A||(A=(0,f.Z)(["\n 0% {\n transform: scale(0);\n opacity: 0.1;\n }\n\n 100% {\n transform: scale(1);\n opacity: 0.3;\n }\n"])))),F=(0,v.F4)(k||(k=_||(_=(0,f.Z)(["\n 0% {\n opacity: 1;\n }\n\n 100% {\n opacity: 0;\n }\n"])))),R=(0,v.F4)(S||(S=C||(C=(0,f.Z)(["\n 0% {\n transform: scale(1);\n }\n\n 50% {\n transform: scale(0.92);\n }\n\n 100% {\n transform: scale(1);\n }\n"])))),T=(0,l.ZP)("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),I=(0,l.ZP)(b,{name:"MuiTouchRipple",slot:"Ripple"})(P||(P=w||(w=(0,f.Z)(["\n opacity: 0;\n position: absolute;\n\n &."," {\n opacity: 0.3;\n transform: scale(1);\n animation-name: ",";\n animation-duration: ","ms;\n animation-timing-function: ",";\n }\n\n &."," {\n animation-duration: ","ms;\n }\n\n & ."," {\n opacity: 1;\n display: block;\n width: 100%;\n height: 100%;\n border-radius: 50%;\n background-color: currentColor;\n }\n\n & ."," {\n opacity: 0;\n animation-name: ",";\n animation-duration: ","ms;\n animation-timing-function: ",";\n }\n\n & ."," {\n position: absolute;\n /* @noflip */\n left: 0px;\n top: 0;\n animation-name: ",";\n animation-duration: 2500ms;\n animation-timing-function: ",";\n animation-iteration-count: infinite;\n animation-delay: 200ms;\n }\n"]))),E.rippleVisible,M,550,(e=>{var{theme:t}=e;return t.transitions.easing.easeInOut}),E.ripplePulsate,(e=>{var{theme:t}=e;return t.transitions.duration.shorter}),E.child,E.childLeaving,F,550,(e=>{var{theme:t}=e;return t.transitions.easing.easeInOut}),E.childPulsate,R,(e=>{var{theme:t}=e;return t.transitions.easing.easeInOut})),D=i.forwardRef((function(e,t){var r=(0,c.i)({props:e,name:"MuiTouchRipple"}),{center:s=!1,classes:l={},className:u}=r,d=(0,o.Z)(r,O),[p,f]=i.useState([]),v=i.useRef(0),b=i.useRef(null);i.useEffect((()=>{b.current&&(b.current(),b.current=null)}),[p]);var y=i.useRef(!1),A=(0,g.Z)(),_=i.useRef(null),C=i.useRef(null),w=i.useCallback((e=>{var{pulsate:t,rippleX:r,rippleY:n,rippleSize:o,cb:i}=e;f((e=>[...e,(0,m.jsx)(I,{classes:{ripple:(0,a.Z)(l.ripple,E.ripple),rippleVisible:(0,a.Z)(l.rippleVisible,E.rippleVisible),ripplePulsate:(0,a.Z)(l.ripplePulsate,E.ripplePulsate),child:(0,a.Z)(l.child,E.child),childLeaving:(0,a.Z)(l.childLeaving,E.childLeaving),childPulsate:(0,a.Z)(l.childPulsate,E.childPulsate)},timeout:550,pulsate:t,rippleX:r,rippleY:n,rippleSize:o},v.current)])),v.current+=1,b.current=i}),[l]),x=i.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{},{pulsate:n=!1,center:o=s||t.pulsate,fakeElement:i=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&y.current)y.current=!1;else{"touchstart"===(null==e?void 0:e.type)&&(y.current=!0);var a,l,c,u=i?null:C.current,d=u?u.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(o||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)a=Math.round(d.width/2),l=Math.round(d.height/2);else{var{clientX:p,clientY:f}=e.touches&&e.touches.length>0?e.touches[0]:e;a=Math.round(p-d.left),l=Math.round(f-d.top)}if(o)(c=Math.sqrt((2*d.width**2+d.height**2)/3))%2===0&&(c+=1);else{var h=2*Math.max(Math.abs((u?u.clientWidth:0)-a),a)+2,v=2*Math.max(Math.abs((u?u.clientHeight:0)-l),l)+2;c=Math.sqrt(h**2+v**2)}null!=e&&e.touches?null===_.current&&(_.current=()=>{w({pulsate:n,rippleX:a,rippleY:l,rippleSize:c,cb:r})},A.start(80,(()=>{_.current&&(_.current(),_.current=null)}))):w({pulsate:n,rippleX:a,rippleY:l,rippleSize:c,cb:r})}}),[s,w,A]),k=i.useCallback((()=>{x({},{pulsate:!0})}),[x]),S=i.useCallback(((e,t)=>{if(A.clear(),"touchend"===(null==e?void 0:e.type)&&_.current)return _.current(),_.current=null,void A.start(0,(()=>{S(e,t)}));_.current=null,f((e=>e.length>0?e.slice(1):e)),b.current=t}),[A]);return i.useImperativeHandle(t,(()=>({pulsate:k,start:x,stop:S})),[k,x,S]),(0,m.jsx)(T,(0,n.Z)({className:(0,a.Z)(E.root,l.root,u),ref:C},d,{children:(0,m.jsx)(h.Z,{component:null,exit:!0,children:p})}))})),j=D,B=r(90627);function L(e){return(0,B.ZP)("MuiButtonBase",e)}var Z=(0,y.Z)("MuiButtonBase",["root","disabled","focusVisible"]),N=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],G=(0,l.ZP)("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},["&.".concat(Z.disabled)]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),z=i.forwardRef((function(e,t){var r=(0,c.i)({props:e,name:"MuiButtonBase"}),{action:l,centerRipple:f=!1,children:h,className:v,component:g="button",disabled:b=!1,disableRipple:y=!1,disableTouchRipple:A=!1,focusRipple:_=!1,LinkComponent:C="a",onBlur:w,onClick:x,onContextMenu:k,onDragLeave:S,onFocus:P,onFocusVisible:E,onKeyDown:O,onKeyUp:M,onMouseDown:F,onMouseLeave:R,onMouseUp:T,onTouchEnd:I,onTouchMove:D,onTouchStart:B,tabIndex:Z=0,TouchRippleProps:z,touchRippleRef:W,type:U}=r,q=(0,o.Z)(r,N),V=i.useRef(null),H=i.useRef(null),K=(0,u.Z)(H,W),{isFocusVisibleRef:Y,onFocus:$,onBlur:X,ref:Q}=(0,p.Z)(),[J,ee]=i.useState(!1);b&&J&&ee(!1),i.useImperativeHandle(l,(()=>({focusVisible:()=>{ee(!0),V.current.focus()}})),[]);var[te,re]=i.useState(!1);i.useEffect((()=>{re(!0)}),[]);var ne=te&&!y&&!b;function oe(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:A;return(0,d.Z)((n=>(t&&t(n),!r&&H.current&&H.current[e](n),!0)))}i.useEffect((()=>{J&&_&&!y&&te&&H.current.pulsate()}),[y,_,J,te]);var ie=oe("start",F),ae=oe("stop",k),se=oe("stop",S),le=oe("stop",T),ce=oe("stop",(e=>{J&&e.preventDefault(),R&&R(e)})),ue=oe("start",B),de=oe("stop",I),pe=oe("stop",D),fe=oe("stop",(e=>{X(e),!1===Y.current&&ee(!1),w&&w(e)}),!1),he=(0,d.Z)((e=>{V.current||(V.current=e.currentTarget),$(e),!0===Y.current&&(ee(!0),E&&E(e)),P&&P(e)})),ve=()=>{var e=V.current;return g&&"button"!==g&&!("A"===e.tagName&&e.href)},ge=i.useRef(!1),me=(0,d.Z)((e=>{_&&!ge.current&&J&&H.current&&" "===e.key&&(ge.current=!0,H.current.stop(e,(()=>{H.current.start(e)}))),e.target===e.currentTarget&&ve()&&" "===e.key&&e.preventDefault(),O&&O(e),e.target===e.currentTarget&&ve()&&"Enter"===e.key&&!b&&(e.preventDefault(),x&&x(e))})),be=(0,d.Z)((e=>{_&&" "===e.key&&H.current&&J&&!e.defaultPrevented&&(ge.current=!1,H.current.stop(e,(()=>{H.current.pulsate(e)}))),M&&M(e),x&&e.target===e.currentTarget&&ve()&&" "===e.key&&!e.defaultPrevented&&x(e)})),ye=g;"button"===ye&&(q.href||q.to)&&(ye=C);var Ae={};"button"===ye?(Ae.type=void 0===U?"button":U,Ae.disabled=b):(q.href||q.to||(Ae.role="button"),b&&(Ae["aria-disabled"]=b));var _e=(0,u.Z)(t,Q,V);var Ce=(0,n.Z)({},r,{centerRipple:f,component:g,disabled:b,disableRipple:y,disableTouchRipple:A,focusRipple:_,tabIndex:Z,focusVisible:J}),we=(e=>{var{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,i={root:["root",t&&"disabled",r&&"focusVisible"]},a=(0,s.Z)(i,L,o);return r&&n&&(a.root+=" ".concat(n)),a})(Ce);return(0,m.jsxs)(G,(0,n.Z)({as:ye,className:(0,a.Z)(we.root,v),ownerState:Ce,onBlur:fe,onClick:x,onContextMenu:ae,onFocus:he,onKeyDown:me,onKeyUp:be,onMouseDown:ie,onMouseLeave:ce,onMouseUp:le,onDragLeave:se,onTouchEnd:de,onTouchMove:pe,onTouchStart:ue,ref:_e,tabIndex:b?-1:Z,type:U},Ae,q,{children:[h,ne?(0,m.jsx)(j,(0,n.Z)({ref:K,center:f},z)):null]}))})),W=z},18749:function(e,t,r){"use strict";r.d(t,{Z:function(){return m}});var n=r(92002),o=r(40629),i=r(21914),a=r(16757),s=r(17521),l=r(24077),c=r(93319),u=r(37395),d=r(10742),p=r(90627);function f(e){return(0,p.ZP)("MuiCard",e)}(0,d.Z)("MuiCard",["root"]);var h=r(56552),v=["className","raised"],g=(0,l.ZP)(u.Z,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})((()=>({overflow:"hidden"}))),m=i.forwardRef((function(e,t){var r=(0,c.i)({props:e,name:"MuiCard"}),{className:i,raised:l=!1}=r,u=(0,o.Z)(r,v),d=(0,n.Z)({},r,{raised:l}),p=(e=>{var{classes:t}=e;return(0,s.Z)({root:["root"]},f,t)})(d);return(0,h.jsx)(g,(0,n.Z)({className:(0,a.Z)(p.root,i),elevation:l?8:void 0,ref:t,ownerState:d},u))}))},51230:function(e,t,r){"use strict";r.d(t,{Z:function(){return g}});var n=r(40629),o=r(92002),i=r(21914),a=r(16757),s=r(17521),l=r(24077),c=r(93319),u=r(10742),d=r(90627);function p(e){return(0,d.ZP)("MuiCardActions",e)}(0,u.Z)("MuiCardActions",["root","spacing"]);var f=r(56552),h=["disableSpacing","className"],v=(0,l.ZP)("div",{name:"MuiCardActions",slot:"Root",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[t.root,!r.disableSpacing&&t.spacing]}})((e=>{var{ownerState:t}=e;return(0,o.Z)({display:"flex",alignItems:"center",padding:8},!t.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})})),g=i.forwardRef((function(e,t){var r=(0,c.i)({props:e,name:"MuiCardActions"}),{disableSpacing:i=!1,className:l}=r,u=(0,n.Z)(r,h),d=(0,o.Z)({},r,{disableSpacing:i}),g=(e=>{var{classes:t,disableSpacing:r}=e,n={root:["root",!r&&"spacing"]};return(0,s.Z)(n,p,t)})(d);return(0,f.jsx)(v,(0,o.Z)({className:(0,a.Z)(g.root,l),ownerState:d,ref:t},u))}))},34930:function(e,t,r){"use strict";r.d(t,{Z:function(){return g}});var n=r(92002),o=r(40629),i=r(21914),a=r(16757),s=r(17521),l=r(24077),c=r(93319),u=r(10742),d=r(90627);function p(e){return(0,d.ZP)("MuiCardContent",e)}(0,u.Z)("MuiCardContent",["root"]);var f=r(56552),h=["className","component"],v=(0,l.ZP)("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})((()=>({padding:16,"&:last-child":{paddingBottom:24}}))),g=i.forwardRef((function(e,t){var r=(0,c.i)({props:e,name:"MuiCardContent"}),{className:i,component:l="div"}=r,u=(0,o.Z)(r,h),d=(0,n.Z)({},r,{component:l}),g=(e=>{var{classes:t}=e;return(0,s.Z)({root:["root"]},p,t)})(d);return(0,f.jsx)(v,(0,n.Z)({as:l,className:(0,a.Z)(g.root,i),ownerState:d,ref:t},u))}))},33022:function(e,t,r){"use strict";r.d(t,{Z:function(){return _}});var n=r(40629),o=r(92002),i=r(21914),a=r(16757),s=r(17521),l=r(28501),c=r(93319),u=r(24077),d=r(10742),p=r(90627);function f(e){return(0,p.ZP)("MuiCardHeader",e)}var h=(0,d.Z)("MuiCardHeader",["root","avatar","action","content","title","subheader"]),v=r(56552),g=["action","avatar","className","component","disableTypography","subheader","subheaderTypographyProps","title","titleTypographyProps"],m=(0,u.ZP)("div",{name:"MuiCardHeader",slot:"Root",overridesResolver:(e,t)=>(0,o.Z)({["& .".concat(h.title)]:t.title,["& .".concat(h.subheader)]:t.subheader},t.root)})({display:"flex",alignItems:"center",padding:16}),b=(0,u.ZP)("div",{name:"MuiCardHeader",slot:"Avatar",overridesResolver:(e,t)=>t.avatar})({display:"flex",flex:"0 0 auto",marginRight:16}),y=(0,u.ZP)("div",{name:"MuiCardHeader",slot:"Action",overridesResolver:(e,t)=>t.action})({flex:"0 0 auto",alignSelf:"flex-start",marginTop:-4,marginRight:-8,marginBottom:-4}),A=(0,u.ZP)("div",{name:"MuiCardHeader",slot:"Content",overridesResolver:(e,t)=>t.content})({flex:"1 1 auto"}),_=i.forwardRef((function(e,t){var r=(0,c.i)({props:e,name:"MuiCardHeader"}),{action:i,avatar:u,className:d,component:p="div",disableTypography:h=!1,subheader:_,subheaderTypographyProps:C,title:w,titleTypographyProps:x}=r,k=(0,n.Z)(r,g),S=(0,o.Z)({},r,{component:p,disableTypography:h}),P=(e=>{var{classes:t}=e;return(0,s.Z)({root:["root"],avatar:["avatar"],action:["action"],content:["content"],title:["title"],subheader:["subheader"]},f,t)})(S),E=w;null==E||E.type===l.Z||h||(E=(0,v.jsx)(l.Z,(0,o.Z)({variant:u?"body2":"h5",className:P.title,component:"span",display:"block"},x,{children:E})));var O=_;return null==O||O.type===l.Z||h||(O=(0,v.jsx)(l.Z,(0,o.Z)({variant:u?"body2":"body1",className:P.subheader,color:"text.secondary",component:"span",display:"block"},C,{children:O}))),(0,v.jsxs)(m,(0,o.Z)({className:(0,a.Z)(P.root,d),as:p,ref:t,ownerState:S},k,{children:[u&&(0,v.jsx)(b,{className:P.avatar,ownerState:S,children:u}),(0,v.jsxs)(A,{className:P.content,ownerState:S,children:[E,O]}),i&&(0,v.jsx)(y,{className:P.action,ownerState:S,children:i})]}))}))},90933:function(e,t,r){"use strict";r.d(t,{Z:function(){return k}});var n=r(40629),o=r(92002),i=r(21914),a=r(16757),s=r(17521),l=r(20760),c=r(44326),u=r(56552),d=(0,c.Z)((0,u.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel"),p=r(7023),f=r(81772),h=r(94956),v=r(93319),g=r(24077),m=r(10742),b=r(90627);function y(e){return(0,b.ZP)("MuiChip",e)}var A=(0,m.Z)("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),_=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],C=(0,g.ZP)("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{var{ownerState:r}=e,{color:n,iconColor:o,clickable:i,onDelete:a,size:s,variant:l}=r;return[{["& .".concat(A.avatar)]:t.avatar},{["& .".concat(A.avatar)]:t["avatar".concat((0,f.Z)(s))]},{["& .".concat(A.avatar)]:t["avatarColor".concat((0,f.Z)(n))]},{["& .".concat(A.icon)]:t.icon},{["& .".concat(A.icon)]:t["icon".concat((0,f.Z)(s))]},{["& .".concat(A.icon)]:t["iconColor".concat((0,f.Z)(o))]},{["& .".concat(A.deleteIcon)]:t.deleteIcon},{["& .".concat(A.deleteIcon)]:t["deleteIcon".concat((0,f.Z)(s))]},{["& .".concat(A.deleteIcon)]:t["deleteIconColor".concat((0,f.Z)(n))]},{["& .".concat(A.deleteIcon)]:t["deleteIcon".concat((0,f.Z)(l),"Color").concat((0,f.Z)(n))]},t.root,t["size".concat((0,f.Z)(s))],t["color".concat((0,f.Z)(n))],i&&t.clickable,i&&"default"!==n&&t["clickableColor".concat((0,f.Z)(n),")")],a&&t.deletable,a&&"default"!==n&&t["deletableColor".concat((0,f.Z)(n))],t[l],t["".concat(l).concat((0,f.Z)(n))]]}})((e=>{var{theme:t,ownerState:r}=e,n="light"===t.palette.mode?t.palette.grey[700]:t.palette.grey[300];return(0,o.Z)({maxWidth:"100%",fontFamily:t.typography.fontFamily,fontSize:t.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(t.vars||t).palette.text.primary,backgroundColor:(t.vars||t).palette.action.selected,borderRadius:16,whiteSpace:"nowrap",transition:t.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",["&.".concat(A.disabled)]:{opacity:(t.vars||t).palette.action.disabledOpacity,pointerEvents:"none"},["& .".concat(A.avatar)]:{marginLeft:5,marginRight:-6,width:24,height:24,color:t.vars?t.vars.palette.Chip.defaultAvatarColor:n,fontSize:t.typography.pxToRem(12)},["& .".concat(A.avatarColorPrimary)]:{color:(t.vars||t).palette.primary.contrastText,backgroundColor:(t.vars||t).palette.primary.dark},["& .".concat(A.avatarColorSecondary)]:{color:(t.vars||t).palette.secondary.contrastText,backgroundColor:(t.vars||t).palette.secondary.dark},["& .".concat(A.avatarSmall)]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:t.typography.pxToRem(10)},["& .".concat(A.icon)]:(0,o.Z)({marginLeft:5,marginRight:-6},"small"===r.size&&{fontSize:18,marginLeft:4,marginRight:-4},r.iconColor===r.color&&(0,o.Z)({color:t.vars?t.vars.palette.Chip.defaultIconColor:n},"default"!==r.color&&{color:"inherit"})),["& .".concat(A.deleteIcon)]:(0,o.Z)({WebkitTapHighlightColor:"transparent",color:t.vars?"rgba(".concat(t.vars.palette.text.primaryChannel," / 0.26)"):(0,l.Fq)(t.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:t.vars?"rgba(".concat(t.vars.palette.text.primaryChannel," / 0.4)"):(0,l.Fq)(t.palette.text.primary,.4)}},"small"===r.size&&{fontSize:16,marginRight:4,marginLeft:-4},"default"!==r.color&&{color:t.vars?"rgba(".concat(t.vars.palette[r.color].contrastTextChannel," / 0.7)"):(0,l.Fq)(t.palette[r.color].contrastText,.7),"&:hover, &:active":{color:(t.vars||t).palette[r.color].contrastText}})},"small"===r.size&&{height:24},"default"!==r.color&&{backgroundColor:(t.vars||t).palette[r.color].main,color:(t.vars||t).palette[r.color].contrastText},r.onDelete&&{["&.".concat(A.focusVisible)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.action.selectedChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.focusOpacity,"))"):(0,l.Fq)(t.palette.action.selected,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},r.onDelete&&"default"!==r.color&&{["&.".concat(A.focusVisible)]:{backgroundColor:(t.vars||t).palette[r.color].dark}})}),(e=>{var{theme:t,ownerState:r}=e;return(0,o.Z)({},r.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.action.selectedChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.hoverOpacity,"))"):(0,l.Fq)(t.palette.action.selected,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity)},["&.".concat(A.focusVisible)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.action.selectedChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.focusOpacity,"))"):(0,l.Fq)(t.palette.action.selected,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)},"&:active":{boxShadow:(t.vars||t).shadows[1]}},r.clickable&&"default"!==r.color&&{["&:hover, &.".concat(A.focusVisible)]:{backgroundColor:(t.vars||t).palette[r.color].dark}})}),(e=>{var{theme:t,ownerState:r}=e;return(0,o.Z)({},"outlined"===r.variant&&{backgroundColor:"transparent",border:t.vars?"1px solid ".concat(t.vars.palette.Chip.defaultBorder):"1px solid ".concat("light"===t.palette.mode?t.palette.grey[400]:t.palette.grey[700]),["&.".concat(A.clickable,":hover")]:{backgroundColor:(t.vars||t).palette.action.hover},["&.".concat(A.focusVisible)]:{backgroundColor:(t.vars||t).palette.action.focus},["& .".concat(A.avatar)]:{marginLeft:4},["& .".concat(A.avatarSmall)]:{marginLeft:2},["& .".concat(A.icon)]:{marginLeft:4},["& .".concat(A.iconSmall)]:{marginLeft:2},["& .".concat(A.deleteIcon)]:{marginRight:5},["& .".concat(A.deleteIconSmall)]:{marginRight:3}},"outlined"===r.variant&&"default"!==r.color&&{color:(t.vars||t).palette[r.color].main,border:"1px solid ".concat(t.vars?"rgba(".concat(t.vars.palette[r.color].mainChannel," / 0.7)"):(0,l.Fq)(t.palette[r.color].main,.7)),["&.".concat(A.clickable,":hover")]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette[r.color].mainChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,l.Fq)(t.palette[r.color].main,t.palette.action.hoverOpacity)},["&.".concat(A.focusVisible)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette[r.color].mainChannel," / ").concat(t.vars.palette.action.focusOpacity,")"):(0,l.Fq)(t.palette[r.color].main,t.palette.action.focusOpacity)},["& .".concat(A.deleteIcon)]:{color:t.vars?"rgba(".concat(t.vars.palette[r.color].mainChannel," / 0.7)"):(0,l.Fq)(t.palette[r.color].main,.7),"&:hover, &:active":{color:(t.vars||t).palette[r.color].main}}})})),w=(0,g.ZP)("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{var{ownerState:r}=e,{size:n}=r;return[t.label,t["label".concat((0,f.Z)(n))]]}})((e=>{var{ownerState:t}=e;return(0,o.Z)({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},"outlined"===t.variant&&{paddingLeft:11,paddingRight:11},"small"===t.size&&{paddingLeft:8,paddingRight:8},"small"===t.size&&"outlined"===t.variant&&{paddingLeft:7,paddingRight:7})}));function x(e){return"Backspace"===e.key||"Delete"===e.key}var k=i.forwardRef((function(e,t){var r=(0,v.i)({props:e,name:"MuiChip"}),{avatar:l,className:c,clickable:g,color:m="default",component:b,deleteIcon:A,disabled:k=!1,icon:S,label:P,onClick:E,onDelete:O,onKeyDown:M,onKeyUp:F,size:R="medium",variant:T="filled",tabIndex:I,skipFocusWhenDisabled:D=!1}=r,j=(0,n.Z)(r,_),B=i.useRef(null),L=(0,p.Z)(B,t),Z=e=>{e.stopPropagation(),O&&O(e)},N=!(!1===g||!E)||g,G=N||O?h.Z:b||"div",z=(0,o.Z)({},r,{component:G,disabled:k,size:R,color:m,iconColor:i.isValidElement(S)&&S.props.color||m,onDelete:!!O,clickable:N,variant:T}),W=(e=>{var{classes:t,disabled:r,size:n,color:o,iconColor:i,onDelete:a,clickable:l,variant:c}=e,u={root:["root",c,r&&"disabled","size".concat((0,f.Z)(n)),"color".concat((0,f.Z)(o)),l&&"clickable",l&&"clickableColor".concat((0,f.Z)(o)),a&&"deletable",a&&"deletableColor".concat((0,f.Z)(o)),"".concat(c).concat((0,f.Z)(o))],label:["label","label".concat((0,f.Z)(n))],avatar:["avatar","avatar".concat((0,f.Z)(n)),"avatarColor".concat((0,f.Z)(o))],icon:["icon","icon".concat((0,f.Z)(n)),"iconColor".concat((0,f.Z)(i))],deleteIcon:["deleteIcon","deleteIcon".concat((0,f.Z)(n)),"deleteIconColor".concat((0,f.Z)(o)),"deleteIcon".concat((0,f.Z)(c),"Color").concat((0,f.Z)(o))]};return(0,s.Z)(u,y,t)})(z),U=G===h.Z?(0,o.Z)({component:b||"div",focusVisibleClassName:W.focusVisible},O&&{disableRipple:!0}):{},q=null;O&&(q=A&&i.isValidElement(A)?i.cloneElement(A,{className:(0,a.Z)(A.props.className,W.deleteIcon),onClick:Z}):(0,u.jsx)(d,{className:(0,a.Z)(W.deleteIcon),onClick:Z}));var V=null;l&&i.isValidElement(l)&&(V=i.cloneElement(l,{className:(0,a.Z)(W.avatar,l.props.className)}));var H=null;return S&&i.isValidElement(S)&&(H=i.cloneElement(S,{className:(0,a.Z)(W.icon,S.props.className)})),(0,u.jsxs)(C,(0,o.Z)({as:G,className:(0,a.Z)(W.root,c),disabled:!(!N||!k)||void 0,onClick:E,onKeyDown:e=>{e.currentTarget===e.target&&x(e)&&e.preventDefault(),M&&M(e)},onKeyUp:e=>{e.currentTarget===e.target&&(O&&x(e)?O(e):"Escape"===e.key&&B.current&&B.current.blur()),F&&F(e)},ref:L,tabIndex:D&&k?-1:I,ownerState:z},U,j,{children:[V||H,(0,u.jsx)(w,{className:(0,a.Z)(W.label),ownerState:z,children:P}),q]}))}))},69691:function(e,t,r){"use strict";r.d(t,{Z:function(){return R}});var n=r(67256),o=r(40629),i=r(92002),a=r(21914),s=r(16757),l=r(17521),c=r(45717),u=r(81772),d=r(93319),p=r(24077),f=r(10742),h=r(90627);function v(e){return(0,h.ZP)("MuiCircularProgress",e)}(0,f.Z)("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);var g,m,b,y,A,_,C,w,x=r(56552),k=["className","color","disableShrink","size","style","thickness","value","variant"],S=44,P=(0,c.F4)(A||(A=g||(g=(0,n.Z)(["\n 0% {\n transform: rotate(0deg);\n }\n\n 100% {\n transform: rotate(360deg);\n }\n"])))),E=(0,c.F4)(_||(_=m||(m=(0,n.Z)(["\n 0% {\n stroke-dasharray: 1px, 200px;\n stroke-dashoffset: 0;\n }\n\n 50% {\n stroke-dasharray: 100px, 200px;\n stroke-dashoffset: -15px;\n }\n\n 100% {\n stroke-dasharray: 100px, 200px;\n stroke-dashoffset: -125px;\n }\n"])))),O=(0,p.ZP)("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[t.root,t[r.variant],t["color".concat((0,u.Z)(r.color))]]}})((e=>{var{ownerState:t,theme:r}=e;return(0,i.Z)({display:"inline-block"},"determinate"===t.variant&&{transition:r.transitions.create("transform")},"inherit"!==t.color&&{color:(r.vars||r).palette[t.color].main})}),(e=>{var{ownerState:t}=e;return"indeterminate"===t.variant&&(0,c.iv)(C||(C=b||(b=(0,n.Z)(["\n animation: "," 1.4s linear infinite;\n "]))),P)})),M=(0,p.ZP)("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),F=(0,p.ZP)("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[t.circle,t["circle".concat((0,u.Z)(r.variant))],r.disableShrink&&t.circleDisableShrink]}})((e=>{var{ownerState:t,theme:r}=e;return(0,i.Z)({stroke:"currentColor"},"determinate"===t.variant&&{transition:r.transitions.create("stroke-dashoffset")},"indeterminate"===t.variant&&{strokeDasharray:"80px, 200px",strokeDashoffset:0})}),(e=>{var{ownerState:t}=e;return"indeterminate"===t.variant&&!t.disableShrink&&(0,c.iv)(w||(w=y||(y=(0,n.Z)(["\n animation: "," 1.4s ease-in-out infinite;\n "]))),E)})),R=a.forwardRef((function(e,t){var r=(0,d.i)({props:e,name:"MuiCircularProgress"}),{className:n,color:a="primary",disableShrink:c=!1,size:p=40,style:f,thickness:h=3.6,value:g=0,variant:m="indeterminate"}=r,b=(0,o.Z)(r,k),y=(0,i.Z)({},r,{color:a,disableShrink:c,size:p,thickness:h,value:g,variant:m}),A=(e=>{var{classes:t,variant:r,color:n,disableShrink:o}=e,i={root:["root",r,"color".concat((0,u.Z)(n))],svg:["svg"],circle:["circle","circle".concat((0,u.Z)(r)),o&&"circleDisableShrink"]};return(0,l.Z)(i,v,t)})(y),_={},C={},w={};if("determinate"===m){var P=2*Math.PI*((S-h)/2);_.strokeDasharray=P.toFixed(3),w["aria-valuenow"]=Math.round(g),_.strokeDashoffset="".concat(((100-g)/100*P).toFixed(3),"px"),C.transform="rotate(-90deg)"}return(0,x.jsx)(O,(0,i.Z)({className:(0,s.Z)(A.root,n),style:(0,i.Z)({width:p,height:p},C,f),ownerState:y,ref:t,role:"progressbar"},w,b,{children:(0,x.jsx)(M,{className:A.svg,ownerState:y,viewBox:"".concat(22," ").concat(22," ").concat(S," ").concat(S),children:(0,x.jsx)(F,{className:A.circle,style:_,ownerState:y,cx:S,cy:S,r:(S-h)/2,fill:"none",strokeWidth:h})})}))}))},27719:function(e,t,r){"use strict";r.d(t,{d:function(){return u}});var n=r(21914),o=r(28774),i=r(6670),a=r(32057),s=r(31790),l=r(56552);function c(e){return e.substring(2).toLowerCase()}function u(e){var{children:t,disableReactTree:r=!1,mouseEvent:u="onClick",onClickAway:d,touchEvent:p="onTouchEnd"}=e,f=n.useRef(!1),h=n.useRef(null),v=n.useRef(!1),g=n.useRef(!1);n.useEffect((()=>(setTimeout((()=>{v.current=!0}),0),()=>{v.current=!1})),[]);var m=(0,o.Z)((0,s.Z)(t),h),b=(0,i.Z)((e=>{var t=g.current;g.current=!1;var n=(0,a.Z)(h.current);!v.current||!h.current||"clientX"in e&&function(e,t){return t.documentElement.clientWidth-1:!n.documentElement.contains(e.target)||h.current.contains(e.target))||!r&&t||d(e))})),y=e=>r=>{g.current=!0;var n=t.props[e];n&&n(r)},A={ref:m};return!1!==p&&(A[p]=y(p)),n.useEffect((()=>{if(!1!==p){var e=c(p),t=(0,a.Z)(h.current),r=()=>{f.current=!0};return t.addEventListener(e,b),t.addEventListener("touchmove",r),()=>{t.removeEventListener(e,b),t.removeEventListener("touchmove",r)}}}),[b,p]),!1!==u&&(A[u]=y(u)),n.useEffect((()=>{if(!1!==u){var e=c(u),t=(0,a.Z)(h.current);return t.addEventListener(e,b),()=>{t.removeEventListener(e,b)}}}),[b,u]),(0,l.jsx)(n.Fragment,{children:n.cloneElement(t,A)})}},28025:function(e,t,r){"use strict";r.d(t,{Z:function(){return C}});var n=r(6967),o=r(9709),i=r(21914),a=r(83768),s=r(24985),l=r(87413),c=r(63250),u=r(35494),d=r(71129),p=r(63203),f=r(56552),h=["className","component","disableGutters","fixed","maxWidth","classes"],v=(0,p.Z)(),g=(0,d.Z)("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[t.root,t["maxWidth".concat((0,c.Z)(String(r.maxWidth)))],r.fixed&&t.fixed,r.disableGutters&&t.disableGutters]}}),m=e=>(0,u.Z)({props:e,name:"MuiContainer",defaultTheme:v});var b=r(81772),y=r(24077),A=r(93319),_=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{createStyledComponent:t=g,useThemeProps:r=m,componentName:u="MuiContainer"}=e,d=t((e=>{var{theme:t,ownerState:r}=e;return(0,o.Z)({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",display:"block"},!r.disableGutters&&{paddingLeft:t.spacing(2),paddingRight:t.spacing(2),[t.breakpoints.up("sm")]:{paddingLeft:t.spacing(3),paddingRight:t.spacing(3)}})}),(e=>{var{theme:t,ownerState:r}=e;return r.fixed&&Object.keys(t.breakpoints.values).reduce(((e,r)=>{var n=r,o=t.breakpoints.values[n];return 0!==o&&(e[t.breakpoints.up(n)]={maxWidth:"".concat(o).concat(t.breakpoints.unit)}),e}),{})}),(e=>{var{theme:t,ownerState:r}=e;return(0,o.Z)({},"xs"===r.maxWidth&&{[t.breakpoints.up("xs")]:{maxWidth:Math.max(t.breakpoints.values.xs,444)}},r.maxWidth&&"xs"!==r.maxWidth&&{[t.breakpoints.up(r.maxWidth)]:{maxWidth:"".concat(t.breakpoints.values[r.maxWidth]).concat(t.breakpoints.unit)}})})),p=i.forwardRef((function(e,t){var i=r(e),{className:p,component:v="div",disableGutters:g=!1,fixed:m=!1,maxWidth:b="lg"}=i,y=(0,n.Z)(i,h),A=(0,o.Z)({},i,{component:v,disableGutters:g,fixed:m,maxWidth:b}),_=((e,t)=>{var{classes:r,fixed:n,disableGutters:o,maxWidth:i}=e,a={root:["root",i&&"maxWidth".concat((0,c.Z)(String(i))),n&&"fixed",o&&"disableGutters"]};return(0,l.Z)(a,(e=>(0,s.ZP)(t,e)),r)})(A,u);return(0,f.jsx)(d,(0,o.Z)({as:v,ownerState:A,className:(0,a.Z)(_.root,p),ref:t},y))}));return p}({createStyledComponent:(0,y.ZP)("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[t.root,t["maxWidth".concat((0,b.Z)(String(r.maxWidth)))],r.fixed&&t.fixed,r.disableGutters&&t.disableGutters]}}),useThemeProps:e=>(0,A.i)({props:e,name:"MuiContainer"})}),C=_},49266:function(e,t,r){"use strict";var n=r(92002),o=r(21914),i=r(93319),a=r(30321),s=r(56552),l=(e,t)=>(0,n.Z)({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),c=e=>(0,n.Z)({color:(e.vars||e).palette.text.primary},e.typography.body1,{backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}});t.ZP=function(e){var t=(0,i.i)({props:e,name:"MuiCssBaseline"}),{children:r,enableColorScheme:u=!1}=t;return(0,s.jsxs)(o.Fragment,{children:[(0,s.jsx)(a.Z,{styles:e=>function(e){var t,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o={};r&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach((t=>{var r,[n,i]=t;o[e.getColorSchemeSelector(n).replace(/\s*&/,"")]={colorScheme:null==(r=i.palette)?void 0:r.mode}}));var i=(0,n.Z)({html:l(e,r),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:(0,n.Z)({margin:0},c(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},o),a=null==(t=e.components)||null==(t=t.MuiCssBaseline)?void 0:t.styleOverrides;return a&&(i=[i,a]),i}(e,u)}),r]})}},93319:function(e,t,r){"use strict";r.d(t,{i:function(){return o}});r(21914);var n=r(59187);r(56552);function o(e){return(0,n.i)(e)}},36385:function(e,t,r){"use strict";r.d(t,{Z:function(){return E}});var n=r(40629),o=r(92002),i=r(21914),a=r(16757),s=r(17521),l=r(60207),c=r(81772),u=r(55104),d=r(55120),p=r(37395),f=r(93319),h=r(24077),v=r(10742),g=r(90627);function m(e){return(0,g.ZP)("MuiDialog",e)}var b=(0,v.Z)("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),y=r(40300),A=r(65037),_=r(2846),C=r(56552),w=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],x=(0,h.ZP)(A.Z,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),k=(0,h.ZP)(u.Z,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),S=(0,h.ZP)("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[t.container,t["scroll".concat((0,c.Z)(r.scroll))]]}})((e=>{var{ownerState:t}=e;return(0,o.Z)({height:"100%","@media print":{height:"auto"},outline:0},"paper"===t.scroll&&{display:"flex",justifyContent:"center",alignItems:"center"},"body"===t.scroll&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})})),P=(0,h.ZP)(p.Z,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[t.paper,t["scrollPaper".concat((0,c.Z)(r.scroll))],t["paperWidth".concat((0,c.Z)(String(r.maxWidth)))],r.fullWidth&&t.paperFullWidth,r.fullScreen&&t.paperFullScreen]}})((e=>{var{theme:t,ownerState:r}=e;return(0,o.Z)({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},"paper"===r.scroll&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},"body"===r.scroll&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!r.maxWidth&&{maxWidth:"calc(100% - 64px)"},"xs"===r.maxWidth&&{maxWidth:"px"===t.breakpoints.unit?Math.max(t.breakpoints.values.xs,444):"max(".concat(t.breakpoints.values.xs).concat(t.breakpoints.unit,", 444px)"),["&.".concat(b.paperScrollBody)]:{[t.breakpoints.down(Math.max(t.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}},r.maxWidth&&"xs"!==r.maxWidth&&{maxWidth:"".concat(t.breakpoints.values[r.maxWidth]).concat(t.breakpoints.unit),["&.".concat(b.paperScrollBody)]:{[t.breakpoints.down(t.breakpoints.values[r.maxWidth]+64)]:{maxWidth:"calc(100% - 64px)"}}},r.fullWidth&&{width:"calc(100% - 64px)"},r.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,["&.".concat(b.paperScrollBody)]:{margin:0,maxWidth:"100%"}})})),E=i.forwardRef((function(e,t){var r=(0,f.i)({props:e,name:"MuiDialog"}),u=(0,_.Z)(),h={enter:u.transitions.duration.enteringScreen,exit:u.transitions.duration.leavingScreen},{"aria-describedby":v,"aria-labelledby":g,BackdropComponent:b,BackdropProps:A,children:E,className:O,disableEscapeKeyDown:M=!1,fullScreen:F=!1,fullWidth:R=!1,maxWidth:T="sm",onBackdropClick:I,onClick:D,onClose:j,open:B,PaperComponent:L=p.Z,PaperProps:Z={},scroll:N="paper",TransitionComponent:G=d.Z,transitionDuration:z=h,TransitionProps:W}=r,U=(0,n.Z)(r,w),q=(0,o.Z)({},r,{disableEscapeKeyDown:M,fullScreen:F,fullWidth:R,maxWidth:T,scroll:N}),V=(e=>{var{classes:t,scroll:r,maxWidth:n,fullWidth:o,fullScreen:i}=e,a={root:["root"],container:["container","scroll".concat((0,c.Z)(r))],paper:["paper","paperScroll".concat((0,c.Z)(r)),"paperWidth".concat((0,c.Z)(String(n))),o&&"paperFullWidth",i&&"paperFullScreen"]};return(0,s.Z)(a,m,t)})(q),H=i.useRef(),K=(0,l.Z)(g),Y=i.useMemo((()=>({titleId:K})),[K]);return(0,C.jsx)(k,(0,o.Z)({className:(0,a.Z)(V.root,O),closeAfterTransition:!0,components:{Backdrop:x},componentsProps:{backdrop:(0,o.Z)({transitionDuration:z,as:b},A)},disableEscapeKeyDown:M,onClose:j,open:B,ref:t,onClick:e=>{D&&D(e),H.current&&(H.current=null,I&&I(e),j&&j(e,"backdropClick"))},ownerState:q},U,{children:(0,C.jsx)(G,(0,o.Z)({appear:!0,in:B,timeout:z,role:"presentation"},W,{children:(0,C.jsx)(S,{className:(0,a.Z)(V.container),onMouseDown:e=>{H.current=e.target===e.currentTarget},ownerState:q,children:(0,C.jsx)(P,(0,o.Z)({as:L,elevation:24,role:"dialog","aria-describedby":v,"aria-labelledby":K},Z,{className:(0,a.Z)(V.paper,Z.className),ownerState:q,children:(0,C.jsx)(y.Z.Provider,{value:Y,children:E})}))})}))}))}))},40300:function(e,t,r){"use strict";var n=r(21914).createContext({});t.Z=n},53263:function(e,t,r){"use strict";r.d(t,{Z:function(){return m}});var n=r(40629),o=r(92002),i=r(21914),a=r(16757),s=r(17521),l=r(24077),c=r(93319),u=r(10742),d=r(90627);function p(e){return(0,d.ZP)("MuiDialogContent",e)}(0,u.Z)("MuiDialogContent",["root","dividers"]);var f=r(55973),h=r(56552),v=["className","dividers"],g=(0,l.ZP)("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[t.root,r.dividers&&t.dividers]}})((e=>{var{theme:t,ownerState:r}=e;return(0,o.Z)({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},r.dividers?{padding:"16px 24px",borderTop:"1px solid ".concat((t.vars||t).palette.divider),borderBottom:"1px solid ".concat((t.vars||t).palette.divider)}:{[".".concat(f.Z.root," + &")]:{paddingTop:0}})})),m=i.forwardRef((function(e,t){var r=(0,c.i)({props:e,name:"MuiDialogContent"}),{className:i,dividers:l=!1}=r,u=(0,n.Z)(r,v),d=(0,o.Z)({},r,{dividers:l}),f=(e=>{var{classes:t,dividers:r}=e,n={root:["root",r&&"dividers"]};return(0,s.Z)(n,p,t)})(d);return(0,h.jsx)(g,(0,o.Z)({className:(0,a.Z)(f.root,i),ownerState:d,ref:t},u))}))},55973:function(e,t,r){"use strict";r.d(t,{a:function(){return i}});var n=r(10742),o=r(90627);function i(e){return(0,o.ZP)("MuiDialogTitle",e)}var a=(0,n.Z)("MuiDialogTitle",["root"]);t.Z=a},59836:function(e,t,r){"use strict";var n=r(40629),o=r(92002),i=r(21914),a=r(16757),s=r(17521),l=r(20760),c=r(24077),u=r(93319),d=r(45338),p=r(56552),f=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],h=(0,c.ZP)("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[t.root,r.absolute&&t.absolute,t[r.variant],r.light&&t.light,"vertical"===r.orientation&&t.vertical,r.flexItem&&t.flexItem,r.children&&t.withChildren,r.children&&"vertical"===r.orientation&&t.withChildrenVertical,"right"===r.textAlign&&"vertical"!==r.orientation&&t.textAlignRight,"left"===r.textAlign&&"vertical"!==r.orientation&&t.textAlignLeft]}})((e=>{var{theme:t,ownerState:r}=e;return(0,o.Z)({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(t.vars||t).palette.divider,borderBottomWidth:"thin"},r.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},r.light&&{borderColor:t.vars?"rgba(".concat(t.vars.palette.dividerChannel," / 0.08)"):(0,l.Fq)(t.palette.divider,.08)},"inset"===r.variant&&{marginLeft:72},"middle"===r.variant&&"horizontal"===r.orientation&&{marginLeft:t.spacing(2),marginRight:t.spacing(2)},"middle"===r.variant&&"vertical"===r.orientation&&{marginTop:t.spacing(1),marginBottom:t.spacing(1)},"vertical"===r.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},r.flexItem&&{alignSelf:"stretch",height:"auto"})}),(e=>{var{ownerState:t}=e;return(0,o.Z)({},t.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}})}),(e=>{var{theme:t,ownerState:r}=e;return(0,o.Z)({},r.children&&"vertical"!==r.orientation&&{"&::before, &::after":{width:"100%",borderTop:"thin solid ".concat((t.vars||t).palette.divider),borderTopStyle:"inherit"}})}),(e=>{var{theme:t,ownerState:r}=e;return(0,o.Z)({},r.children&&"vertical"===r.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:"thin solid ".concat((t.vars||t).palette.divider),borderLeftStyle:"inherit"}})}),(e=>{var{ownerState:t}=e;return(0,o.Z)({},"right"===t.textAlign&&"vertical"!==t.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===t.textAlign&&"vertical"!==t.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})})),v=(0,c.ZP)("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[t.wrapper,"vertical"===r.orientation&&t.wrapperVertical]}})((e=>{var{theme:t,ownerState:r}=e;return(0,o.Z)({display:"inline-block",paddingLeft:"calc(".concat(t.spacing(1)," * 1.2)"),paddingRight:"calc(".concat(t.spacing(1)," * 1.2)")},"vertical"===r.orientation&&{paddingTop:"calc(".concat(t.spacing(1)," * 1.2)"),paddingBottom:"calc(".concat(t.spacing(1)," * 1.2)")})})),g=i.forwardRef((function(e,t){var r=(0,u.i)({props:e,name:"MuiDivider"}),{absolute:i=!1,children:l,className:c,component:g=(l?"div":"hr"),flexItem:m=!1,light:b=!1,orientation:y="horizontal",role:A=("hr"!==g?"separator":void 0),textAlign:_="center",variant:C="fullWidth"}=r,w=(0,n.Z)(r,f),x=(0,o.Z)({},r,{absolute:i,component:g,flexItem:m,light:b,orientation:y,role:A,textAlign:_,variant:C}),k=(e=>{var{absolute:t,children:r,classes:n,flexItem:o,light:i,orientation:a,textAlign:l,variant:c}=e,u={root:["root",t&&"absolute",c,i&&"light","vertical"===a&&"vertical",o&&"flexItem",r&&"withChildren",r&&"vertical"===a&&"withChildrenVertical","right"===l&&"vertical"!==a&&"textAlignRight","left"===l&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]};return(0,s.Z)(u,d.V,n)})(x);return(0,p.jsx)(h,(0,o.Z)({as:g,className:(0,a.Z)(k.root,c),role:A,ref:t,ownerState:x},w,{children:l?(0,p.jsx)(v,{className:k.wrapper,ownerState:x,children:l}):null}))}));g.muiSkipListHighlight=!0,t.Z=g},45338:function(e,t,r){"use strict";r.d(t,{V:function(){return i}});var n=r(10742),o=r(90627);function i(e){return(0,o.ZP)("MuiDivider",e)}var a=(0,n.Z)("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);t.Z=a},24994:function(e,t,r){"use strict";r.d(t,{ZP:function(){return E}});var n=r(40629),o=r(92002),i=r(21914),a=r(16757),s=r(17521),l=r(34972),c=r(55104),u=r(76623),d=r(37395),p=r(81772),f=r(2846),h=r(93319),v=r(24077),g=r(65669),m=r(10742),b=r(90627);function y(e){return(0,b.ZP)("MuiDrawer",e)}(0,m.Z)("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);var A=r(56552),_=["BackdropProps"],C=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],w=(e,t)=>{var{ownerState:r}=e;return[t.root,("permanent"===r.variant||"persistent"===r.variant)&&t.docked,t.modal]},x=(0,v.ZP)(c.Z,{name:"MuiDrawer",slot:"Root",overridesResolver:w})((e=>{var{theme:t}=e;return{zIndex:(t.vars||t).zIndex.drawer}})),k=(0,v.ZP)("div",{shouldForwardProp:g.Z,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:w})({flex:"0 0 auto"}),S=(0,v.ZP)(d.Z,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[t.paper,t["paperAnchor".concat((0,p.Z)(r.anchor))],"temporary"!==r.variant&&t["paperAnchorDocked".concat((0,p.Z)(r.anchor))]]}})((e=>{var{theme:t,ownerState:r}=e;return(0,o.Z)({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(t.vars||t).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},"left"===r.anchor&&{left:0},"top"===r.anchor&&{top:0,left:0,right:0,height:"auto",maxHeight:"100%"},"right"===r.anchor&&{right:0},"bottom"===r.anchor&&{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},"left"===r.anchor&&"temporary"!==r.variant&&{borderRight:"1px solid ".concat((t.vars||t).palette.divider)},"top"===r.anchor&&"temporary"!==r.variant&&{borderBottom:"1px solid ".concat((t.vars||t).palette.divider)},"right"===r.anchor&&"temporary"!==r.variant&&{borderLeft:"1px solid ".concat((t.vars||t).palette.divider)},"bottom"===r.anchor&&"temporary"!==r.variant&&{borderTop:"1px solid ".concat((t.vars||t).palette.divider)})})),P={left:"right",right:"left",top:"down",bottom:"up"};var E=i.forwardRef((function(e,t){var r=(0,h.i)({props:e,name:"MuiDrawer"}),c=(0,f.Z)(),d=(0,l.V)(),v={enter:c.transitions.duration.enteringScreen,exit:c.transitions.duration.leavingScreen},{anchor:g="left",BackdropProps:m,children:b,className:w,elevation:E=16,hideBackdrop:O=!1,ModalProps:{BackdropProps:M}={},onClose:F,open:R=!1,PaperProps:T={},SlideProps:I,TransitionComponent:D=u.Z,transitionDuration:j=v,variant:B="temporary"}=r,L=(0,n.Z)(r.ModalProps,_),Z=(0,n.Z)(r,C),N=i.useRef(!1);i.useEffect((()=>{N.current=!0}),[]);var G=function(e,t){var{direction:r}=e;return"rtl"===r&&function(e){return-1!==["left","right"].indexOf(e)}(t)?P[t]:t}({direction:d?"rtl":"ltr"},g),z=g,W=(0,o.Z)({},r,{anchor:z,elevation:E,open:R,variant:B},Z),U=(e=>{var{classes:t,anchor:r,variant:n}=e,o={root:["root"],docked:[("permanent"===n||"persistent"===n)&&"docked"],modal:["modal"],paper:["paper","paperAnchor".concat((0,p.Z)(r)),"temporary"!==n&&"paperAnchorDocked".concat((0,p.Z)(r))]};return(0,s.Z)(o,y,t)})(W),q=(0,A.jsx)(S,(0,o.Z)({elevation:"temporary"===B?E:0,square:!0},T,{className:(0,a.Z)(U.paper,T.className),ownerState:W,children:b}));if("permanent"===B)return(0,A.jsx)(k,(0,o.Z)({className:(0,a.Z)(U.root,U.docked,w),ownerState:W,ref:t},Z,{children:q}));var V=(0,A.jsx)(D,(0,o.Z)({in:R,direction:P[G],timeout:j,appear:N.current},I,{children:q}));return"persistent"===B?(0,A.jsx)(k,(0,o.Z)({className:(0,a.Z)(U.root,U.docked,w),ownerState:W,ref:t},Z,{children:V})):(0,A.jsx)(x,(0,o.Z)({BackdropProps:(0,o.Z)({},m,M,{transitionDuration:j}),className:(0,a.Z)(U.root,U.modal,w),open:R,ownerState:W,onClose:F,hideBackdrop:O,ref:t},Z,L,{children:V}))}))},55120:function(e,t,r){"use strict";var n=r(92002),o=r(40629),i=r(21914),a=r(11617),s=r(31790),l=r(2846),c=r(85478),u=r(7023),d=r(56552),p=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],f={entering:{opacity:1},entered:{opacity:1}},h=i.forwardRef((function(e,t){var r=(0,l.Z)(),h={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:v,appear:g=!0,children:m,easing:b,in:y,onEnter:A,onEntered:_,onEntering:C,onExit:w,onExited:x,onExiting:k,style:S,timeout:P=h,TransitionComponent:E=a.ZP}=e,O=(0,o.Z)(e,p),M=i.useRef(null),F=(0,u.Z)(M,(0,s.Z)(m),t),R=e=>t=>{if(e){var r=M.current;void 0===t?e(r):e(r,t)}},T=R(C),I=R(((e,t)=>{(0,c.n)(e);var n=(0,c.C)({style:S,timeout:P,easing:b},{mode:"enter"});e.style.webkitTransition=r.transitions.create("opacity",n),e.style.transition=r.transitions.create("opacity",n),A&&A(e,t)})),D=R(_),j=R(k),B=R((e=>{var t=(0,c.C)({style:S,timeout:P,easing:b},{mode:"exit"});e.style.webkitTransition=r.transitions.create("opacity",t),e.style.transition=r.transitions.create("opacity",t),w&&w(e)})),L=R(x);return(0,d.jsx)(E,(0,n.Z)({appear:g,in:y,nodeRef:M,onEnter:I,onEntered:D,onEntering:T,onExit:B,onExited:L,onExiting:j,addEndListener:e=>{v&&v(M.current,e)},timeout:P},O,{children:(e,t)=>i.cloneElement(m,(0,n.Z)({style:(0,n.Z)({opacity:0,visibility:"exited"!==e||y?void 0:"hidden"},f[e],S,m.props.style),ref:F},t))}))}));t.Z=h},52294:function(e,t,r){"use strict";var n=r(40629),o=r(92002),i=r(21914),a=r(92712),s=r(17521),l=r(48237),c=r(24077),u=r(65669),d=r(93319),p=r(31961),f=r(56552),h=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],v=(0,c.ZP)(l.Ej,{shouldForwardProp:e=>(0,u.Z)(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[...(0,l.Gx)(e,t),!r.disableUnderline&&t.underline]}})((e=>{var t,{theme:r,ownerState:n}=e,i="light"===r.palette.mode,a=i?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",s=i?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",l=i?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",c=i?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return(0,o.Z)({position:"relative",backgroundColor:r.vars?r.vars.palette.FilledInput.bg:s,borderTopLeftRadius:(r.vars||r).shape.borderRadius,borderTopRightRadius:(r.vars||r).shape.borderRadius,transition:r.transitions.create("background-color",{duration:r.transitions.duration.shorter,easing:r.transitions.easing.easeOut}),"&:hover":{backgroundColor:r.vars?r.vars.palette.FilledInput.hoverBg:l,"@media (hover: none)":{backgroundColor:r.vars?r.vars.palette.FilledInput.bg:s}},["&.".concat(p.Z.focused)]:{backgroundColor:r.vars?r.vars.palette.FilledInput.bg:s},["&.".concat(p.Z.disabled)]:{backgroundColor:r.vars?r.vars.palette.FilledInput.disabledBg:c}},!n.disableUnderline&&{"&::after":{borderBottom:"2px solid ".concat(null==(t=(r.vars||r).palette[n.color||"primary"])?void 0:t.main),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:r.transitions.create("transform",{duration:r.transitions.duration.shorter,easing:r.transitions.easing.easeOut}),pointerEvents:"none"},["&.".concat(p.Z.focused,":after")]:{transform:"scaleX(1) translateX(0)"},["&.".concat(p.Z.error)]:{"&::before, &::after":{borderBottomColor:(r.vars||r).palette.error.main}},"&::before":{borderBottom:"1px solid ".concat(r.vars?"rgba(".concat(r.vars.palette.common.onBackgroundChannel," / ").concat(r.vars.opacity.inputUnderline,")"):a),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:r.transitions.create("border-bottom-color",{duration:r.transitions.duration.shorter}),pointerEvents:"none"},["&:hover:not(.".concat(p.Z.disabled,", .").concat(p.Z.error,"):before")]:{borderBottom:"1px solid ".concat((r.vars||r).palette.text.primary)},["&.".concat(p.Z.disabled,":before")]:{borderBottomStyle:"dotted"}},n.startAdornment&&{paddingLeft:12},n.endAdornment&&{paddingRight:12},n.multiline&&(0,o.Z)({padding:"25px 12px 8px"},"small"===n.size&&{paddingTop:21,paddingBottom:4},n.hiddenLabel&&{paddingTop:16,paddingBottom:17},n.hiddenLabel&&"small"===n.size&&{paddingTop:8,paddingBottom:9}))})),g=(0,c.ZP)(l.rA,{name:"MuiFilledInput",slot:"Input",overridesResolver:l._o})((e=>{var{theme:t,ownerState:r}=e;return(0,o.Z)({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===t.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===t.palette.mode?null:"#fff",caretColor:"light"===t.palette.mode?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},t.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===r.size&&{paddingTop:21,paddingBottom:4},r.hiddenLabel&&{paddingTop:16,paddingBottom:17},r.startAdornment&&{paddingLeft:0},r.endAdornment&&{paddingRight:0},r.hiddenLabel&&"small"===r.size&&{paddingTop:8,paddingBottom:9},r.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})})),m=i.forwardRef((function(e,t){var r,i,c,u,m=(0,d.i)({props:e,name:"MuiFilledInput"}),{components:b={},componentsProps:y,fullWidth:A=!1,inputComponent:_="input",multiline:C=!1,slotProps:w,slots:x={},type:k="text"}=m,S=(0,n.Z)(m,h),P=(0,o.Z)({},m,{fullWidth:A,inputComponent:_,multiline:C,type:k}),E=(e=>{var{classes:t,disableUnderline:r}=e,n={root:["root",!r&&"underline"],input:["input"]},i=(0,s.Z)(n,p._,t);return(0,o.Z)({},t,i)})(m),O={root:{ownerState:P},input:{ownerState:P}},M=(null!=w?w:y)?(0,a.Z)(O,null!=w?w:y):O,F=null!=(r=null!=(i=x.root)?i:b.Root)?r:v,R=null!=(c=null!=(u=x.input)?u:b.Input)?c:g;return(0,f.jsx)(l.ZP,(0,o.Z)({slots:{root:F,input:R},componentsProps:M,fullWidth:A,inputComponent:_,multiline:C,ref:t,type:k},S,{classes:E}))}));m.muiName="Input",t.Z=m},31961:function(e,t,r){"use strict";r.d(t,{_:function(){return s}});var n=r(92002),o=r(10742),i=r(90627),a=r(62010);function s(e){return(0,i.ZP)("MuiFilledInput",e)}var l=(0,n.Z)({},a.Z,(0,o.Z)("MuiFilledInput",["root","underline","input"]));t.Z=l},27460:function(e,t,r){"use strict";r.d(t,{Z:function(){return A}});var n=r(40629),o=r(92002),i=r(21914),a=r(16757),s=r(17521),l=r(93319),c=r(24077),u=r(19804),d=r(81772),p=r(6951),f=r(56069),h=r(10742),v=r(90627);function g(e){return(0,v.ZP)("MuiFormControl",e)}(0,h.Z)("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);var m=r(56552),b=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],y=(0,c.ZP)("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{var{ownerState:r}=e;return(0,o.Z)({},t.root,t["margin".concat((0,d.Z)(r.margin))],r.fullWidth&&t.fullWidth)}})((e=>{var{ownerState:t}=e;return(0,o.Z)({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},"normal"===t.margin&&{marginTop:16,marginBottom:8},"dense"===t.margin&&{marginTop:8,marginBottom:4},t.fullWidth&&{width:"100%"})})),A=i.forwardRef((function(e,t){var r=(0,l.i)({props:e,name:"MuiFormControl"}),{children:c,className:h,color:v="primary",component:A="div",disabled:_=!1,error:C=!1,focused:w,fullWidth:x=!1,hiddenLabel:k=!1,margin:S="none",required:P=!1,size:E="medium",variant:O="outlined"}=r,M=(0,n.Z)(r,b),F=(0,o.Z)({},r,{color:v,component:A,disabled:_,error:C,fullWidth:x,hiddenLabel:k,margin:S,required:P,size:E,variant:O}),R=(e=>{var{classes:t,margin:r,fullWidth:n}=e,o={root:["root","none"!==r&&"margin".concat((0,d.Z)(r)),n&&"fullWidth"]};return(0,s.Z)(o,g,t)})(F),[T,I]=i.useState((()=>{var e=!1;return c&&i.Children.forEach(c,(t=>{if((0,p.Z)(t,["Input","Select"])){var r=(0,p.Z)(t,["Select"])?t.props.input:t;r&&(0,u.B7)(r.props)&&(e=!0)}})),e})),[D,j]=i.useState((()=>{var e=!1;return c&&i.Children.forEach(c,(t=>{(0,p.Z)(t,["Input","Select"])&&((0,u.vd)(t.props,!0)||(0,u.vd)(t.props.inputProps,!0))&&(e=!0)})),e})),[B,L]=i.useState(!1);_&&B&&L(!1);var Z,N=void 0===w||_?B:w,G=i.useMemo((()=>({adornedStart:T,setAdornedStart:I,color:v,disabled:_,error:C,filled:D,focused:N,fullWidth:x,hiddenLabel:k,size:E,onBlur:()=>{L(!1)},onEmpty:()=>{j(!1)},onFilled:()=>{j(!0)},onFocus:()=>{L(!0)},registerEffect:Z,required:P,variant:O})),[T,v,_,C,D,N,x,k,Z,P,E,O]);return(0,m.jsx)(f.Z.Provider,{value:G,children:(0,m.jsx)(y,(0,o.Z)({as:A,ownerState:F,className:(0,a.Z)(R.root,h),ref:t},M,{children:c}))})}))},56069:function(e,t,r){"use strict";var n=r(21914).createContext(void 0);t.Z=n},31877:function(e,t,r){"use strict";function n(e){var{props:t,states:r,muiFormControl:n}=e;return r.reduce(((e,r)=>(e[r]=t[r],n&&"undefined"===typeof t[r]&&(e[r]=n[r]),e)),{})}r.d(t,{Z:function(){return n}})},73028:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(21914),o=r(56069);function i(){return n.useContext(o.Z)}},74890:function(e,t,r){"use strict";r.d(t,{Z:function(){return w}});var n=r(40629),o=r(92002),i=r(21914),a=r(16757),s=r(17521),l=r(73028),c=r(51869),u=r(28501),d=r(81772),p=r(24077),f=r(93319),h=r(10742),v=r(90627);function g(e){return(0,v.ZP)("MuiFormControlLabel",e)}var m=(0,h.Z)("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),b=r(31877),y=r(56552),A=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],_=(0,p.ZP)("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[{["& .".concat(m.label)]:t.label},t.root,t["labelPlacement".concat((0,d.Z)(r.labelPlacement))]]}})((e=>{var{theme:t,ownerState:r}=e;return(0,o.Z)({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,["&.".concat(m.disabled)]:{cursor:"default"}},"start"===r.labelPlacement&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},"top"===r.labelPlacement&&{flexDirection:"column-reverse",marginLeft:16},"bottom"===r.labelPlacement&&{flexDirection:"column",marginLeft:16},{["& .".concat(m.label)]:{["&.".concat(m.disabled)]:{color:(t.vars||t).palette.text.disabled}}})})),C=(0,p.ZP)("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})((e=>{var{theme:t}=e;return{["&.".concat(m.error)]:{color:(t.vars||t).palette.error.main}}})),w=i.forwardRef((function(e,t){var r,p,h=(0,f.i)({props:e,name:"MuiFormControlLabel"}),{className:v,componentsProps:m={},control:w,disabled:x,disableTypography:k,label:S,labelPlacement:P="end",required:E,slotProps:O={}}=h,M=(0,n.Z)(h,A),F=(0,l.Z)(),R=null!=(r=null!=x?x:w.props.disabled)?r:null==F?void 0:F.disabled,T=null!=E?E:w.props.required,I={disabled:R,required:T};["checked","name","onChange","value","inputRef"].forEach((e=>{"undefined"===typeof w.props[e]&&"undefined"!==typeof h[e]&&(I[e]=h[e])}));var D=(0,b.Z)({props:h,muiFormControl:F,states:["error"]}),j=(0,o.Z)({},h,{disabled:R,labelPlacement:P,required:T,error:D.error}),B=(e=>{var{classes:t,disabled:r,labelPlacement:n,error:o,required:i}=e,a={root:["root",r&&"disabled","labelPlacement".concat((0,d.Z)(n)),o&&"error",i&&"required"],label:["label",r&&"disabled"],asterisk:["asterisk",o&&"error"]};return(0,s.Z)(a,g,t)})(j),L=null!=(p=O.typography)?p:m.typography,Z=S;return null==Z||Z.type===u.Z||k||(Z=(0,y.jsx)(u.Z,(0,o.Z)({component:"span"},L,{className:(0,a.Z)(B.label,null==L?void 0:L.className),children:Z}))),(0,y.jsxs)(_,(0,o.Z)({className:(0,a.Z)(B.root,v),ownerState:j,ref:t},M,{children:[i.cloneElement(w,I),T?(0,y.jsxs)(c.Z,{display:"block",children:[Z,(0,y.jsxs)(C,{ownerState:j,"aria-hidden":!0,className:B.asterisk,children:["\u2009","*"]})]}):Z]}))}))},26791:function(e,t,r){"use strict";r.d(t,{Z:function(){return b}});var n=r(40629),o=r(92002),i=r(21914),a=r(16757),s=r(17521),l=r(24077),c=r(93319),u=r(10742),d=r(90627);function p(e){return(0,d.ZP)("MuiFormGroup",e)}(0,u.Z)("MuiFormGroup",["root","row","error"]);var f=r(73028),h=r(31877),v=r(56552),g=["className","row"],m=(0,l.ZP)("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[t.root,r.row&&t.row]}})((e=>{var{ownerState:t}=e;return(0,o.Z)({display:"flex",flexDirection:"column",flexWrap:"wrap"},t.row&&{flexDirection:"row"})})),b=i.forwardRef((function(e,t){var r=(0,c.i)({props:e,name:"MuiFormGroup"}),{className:i,row:l=!1}=r,u=(0,n.Z)(r,g),d=(0,f.Z)(),b=(0,h.Z)({props:r,muiFormControl:d,states:["error"]}),y=(0,o.Z)({},r,{row:l,error:b.error}),A=(e=>{var{classes:t,row:r,error:n}=e,o={root:["root",r&&"row",n&&"error"]};return(0,s.Z)(o,p,t)})(y);return(0,v.jsx)(m,(0,o.Z)({className:(0,a.Z)(A.root,i),ownerState:y,ref:t},u))}))},74149:function(e,t,r){"use strict";r.d(t,{Z:function(){return _}});var n=r(40629),o=r(92002),i=r(21914),a=r(16757),s=r(17521),l=r(31877),c=r(73028),u=r(24077),d=r(81772),p=r(10742),f=r(90627);function h(e){return(0,f.ZP)("MuiFormHelperText",e)}var v,g=(0,p.Z)("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),m=r(93319),b=r(56552),y=["children","className","component","disabled","error","filled","focused","margin","required","variant"],A=(0,u.ZP)("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[t.root,r.size&&t["size".concat((0,d.Z)(r.size))],r.contained&&t.contained,r.filled&&t.filled]}})((e=>{var{theme:t,ownerState:r}=e;return(0,o.Z)({color:(t.vars||t).palette.text.secondary},t.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,["&.".concat(g.disabled)]:{color:(t.vars||t).palette.text.disabled},["&.".concat(g.error)]:{color:(t.vars||t).palette.error.main}},"small"===r.size&&{marginTop:4},r.contained&&{marginLeft:14,marginRight:14})})),_=i.forwardRef((function(e,t){var r=(0,m.i)({props:e,name:"MuiFormHelperText"}),{children:i,className:u,component:p="p"}=r,f=(0,n.Z)(r,y),g=(0,c.Z)(),_=(0,l.Z)({props:r,muiFormControl:g,states:["variant","size","disabled","error","filled","focused","required"]}),C=(0,o.Z)({},r,{component:p,contained:"filled"===_.variant||"outlined"===_.variant,variant:_.variant,size:_.size,disabled:_.disabled,error:_.error,filled:_.filled,focused:_.focused,required:_.required}),w=(e=>{var{classes:t,contained:r,size:n,disabled:o,error:i,filled:a,focused:l,required:c}=e,u={root:["root",o&&"disabled",i&&"error",n&&"size".concat((0,d.Z)(n)),r&&"contained",l&&"focused",a&&"filled",c&&"required"]};return(0,s.Z)(u,h,t)})(C);return(0,b.jsx)(A,(0,o.Z)({as:p,ownerState:C,className:(0,a.Z)(w.root,u),ref:t},f,{children:" "===i?v||(v=(0,b.jsx)("span",{className:"notranslate",children:"\u200b"})):i}))}))},30321:function(e,t,r){"use strict";r.d(t,{Z:function(){return u}});var n=r(92002),o=(r(21914),r(17986)),i=r(90151),a=r(56552);var s=function(e){var{styles:t,themeId:r,defaultTheme:n={}}=e,s=(0,i.Z)(n),l="function"===typeof t?t(r&&s[r]||s):t;return(0,a.jsx)(o.Z,{styles:l})},l=r(64747),c=r(88464);var u=function(e){return(0,a.jsx)(s,(0,n.Z)({},e,{defaultTheme:l.Z,themeId:c.Z}))}},92423:function(e,t,r){"use strict";r.d(t,{ZP:function(){return S}});var n=r(40629),o=r(92002),i=r(21914),a=r(16757),s=r(28240),l=r(3927),c=r(17521),u=r(24077),d=r(93319),p=r(2846);var f=i.createContext(),h=r(10742),v=r(90627);function g(e){return(0,v.ZP)("MuiGrid",e)}var m=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],b=(0,h.Z)("MuiGrid",["root","container","item","zeroMinWidth",...[0,1,2,3,4,5,6,7,8,9,10].map((e=>"spacing-xs-".concat(e))),...["column-reverse","column","row-reverse","row"].map((e=>"direction-xs-".concat(e))),...["nowrap","wrap-reverse","wrap"].map((e=>"wrap-xs-".concat(e))),...m.map((e=>"grid-xs-".concat(e))),...m.map((e=>"grid-sm-".concat(e))),...m.map((e=>"grid-md-".concat(e))),...m.map((e=>"grid-lg-".concat(e))),...m.map((e=>"grid-xl-".concat(e)))]),y=r(56552),A=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function _(e){var t=parseFloat(e);return"".concat(t).concat(String(e).replace(String(t),"")||"px")}function C(e){var{breakpoints:t,values:r}=e,n="";Object.keys(r).forEach((e=>{""===n&&0!==r[e]&&(n=e)}));var o=Object.keys(t).sort(((e,r)=>t[e]-t[r]));return o.slice(0,o.indexOf(n))}var w=(0,u.ZP)("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{var{ownerState:r}=e,{container:n,direction:o,item:i,spacing:a,wrap:s,zeroMinWidth:l,breakpoints:c}=r,u=[];n&&(u=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!e||e<=0)return[];if("string"===typeof e&&!Number.isNaN(Number(e))||"number"===typeof e)return[r["spacing-xs-".concat(String(e))]];var n=[];return t.forEach((t=>{var o=e[t];Number(o)>0&&n.push(r["spacing-".concat(t,"-").concat(String(o))])})),n}(a,c,t));var d=[];return c.forEach((e=>{var n=r[e];n&&d.push(t["grid-".concat(e,"-").concat(String(n))])})),[t.root,n&&t.container,i&&t.item,l&&t.zeroMinWidth,...u,"row"!==o&&t["direction-xs-".concat(String(o))],"wrap"!==s&&t["wrap-xs-".concat(String(s))],...d]}})((e=>{var{ownerState:t}=e;return(0,o.Z)({boxSizing:"border-box"},t.container&&{display:"flex",flexWrap:"wrap",width:"100%"},t.item&&{margin:0},t.zeroMinWidth&&{minWidth:0},"wrap"!==t.wrap&&{flexWrap:t.wrap})}),(function(e){var{theme:t,ownerState:r}=e,n=(0,s.P$)({values:r.direction,breakpoints:t.breakpoints.values});return(0,s.k9)({theme:t},n,(e=>{var t={flexDirection:e};return 0===e.indexOf("column")&&(t["& > .".concat(b.item)]={maxWidth:"none"}),t}))}),(function(e){var{theme:t,ownerState:r}=e,{container:n,rowSpacing:o}=r,i={};if(n&&0!==o){var a,l=(0,s.P$)({values:o,breakpoints:t.breakpoints.values});"object"===typeof l&&(a=C({breakpoints:t.breakpoints.values,values:l})),i=(0,s.k9)({theme:t},l,((e,r)=>{var n,o=t.spacing(e);return"0px"!==o?{marginTop:"-".concat(_(o)),["& > .".concat(b.item)]:{paddingTop:_(o)}}:null!=(n=a)&&n.includes(r)?{}:{marginTop:0,["& > .".concat(b.item)]:{paddingTop:0}}}))}return i}),(function(e){var{theme:t,ownerState:r}=e,{container:n,columnSpacing:o}=r,i={};if(n&&0!==o){var a,l=(0,s.P$)({values:o,breakpoints:t.breakpoints.values});"object"===typeof l&&(a=C({breakpoints:t.breakpoints.values,values:l})),i=(0,s.k9)({theme:t},l,((e,r)=>{var n,o=t.spacing(e);return"0px"!==o?{width:"calc(100% + ".concat(_(o),")"),marginLeft:"-".concat(_(o)),["& > .".concat(b.item)]:{paddingLeft:_(o)}}:null!=(n=a)&&n.includes(r)?{}:{width:"100%",marginLeft:0,["& > .".concat(b.item)]:{paddingLeft:0}}}))}return i}),(function(e){var t,{theme:r,ownerState:n}=e;return r.breakpoints.keys.reduce(((e,i)=>{var a={};if(n[i]&&(t=n[i]),!t)return e;if(!0===t)a={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if("auto"===t)a={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{var l=(0,s.P$)({values:n.columns,breakpoints:r.breakpoints.values}),c="object"===typeof l?l[i]:l;if(void 0===c||null===c)return e;var u="".concat(Math.round(t/c*1e8)/1e6,"%"),d={};if(n.container&&n.item&&0!==n.columnSpacing){var p=r.spacing(n.columnSpacing);if("0px"!==p){var f="calc(".concat(u," + ").concat(_(p),")");d={flexBasis:f,maxWidth:f}}}a=(0,o.Z)({flexBasis:u,flexGrow:0,maxWidth:u},d)}return 0===r.breakpoints.values[i]?Object.assign(e,a):e[r.breakpoints.up(i)]=a,e}),{})}));var x=e=>{var{classes:t,container:r,direction:n,item:o,spacing:i,wrap:a,zeroMinWidth:s,breakpoints:l}=e,u=[];r&&(u=function(e,t){if(!e||e<=0)return[];if("string"===typeof e&&!Number.isNaN(Number(e))||"number"===typeof e)return["spacing-xs-".concat(String(e))];var r=[];return t.forEach((t=>{var n=e[t];if(Number(n)>0){var o="spacing-".concat(t,"-").concat(String(n));r.push(o)}})),r}(i,l));var d=[];l.forEach((t=>{var r=e[t];r&&d.push("grid-".concat(t,"-").concat(String(r)))}));var p={root:["root",r&&"container",o&&"item",s&&"zeroMinWidth",...u,"row"!==n&&"direction-xs-".concat(String(n)),"wrap"!==a&&"wrap-xs-".concat(String(a)),...d]};return(0,c.Z)(p,g,t)},k=i.forwardRef((function(e,t){var r=(0,d.i)({props:e,name:"MuiGrid"}),{breakpoints:s}=(0,p.Z)(),c=(0,l.Z)(r),{className:u,columns:h,columnSpacing:v,component:g="div",container:m=!1,direction:b="row",item:_=!1,rowSpacing:C,spacing:k=0,wrap:S="wrap",zeroMinWidth:P=!1}=c,E=(0,n.Z)(c,A),O=C||k,M=v||k,F=i.useContext(f),R=m?h||12:F,T={},I=(0,o.Z)({},E);s.keys.forEach((e=>{null!=E[e]&&(T[e]=E[e],delete I[e])}));var D=(0,o.Z)({},c,{columns:R,container:m,direction:b,item:_,rowSpacing:O,columnSpacing:M,wrap:S,zeroMinWidth:P,spacing:k},T,{breakpoints:s.keys}),j=x(D);return(0,y.jsx)(f.Provider,{value:R,children:(0,y.jsx)(w,(0,o.Z)({ownerState:D,className:(0,a.Z)(j.root,u),as:g,ref:t},I))})})),S=k},26794:function(e,t,r){"use strict";var n=r(92002),o=r(40629),i=r(21914),a=r(22735),s=r(31790),l=r(11617),c=r(2846),u=r(85478),d=r(7023),p=r(56552),f=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function h(e){return"scale(".concat(e,", ").concat(e**2,")")}var v={entering:{opacity:1,transform:h(1)},entered:{opacity:1,transform:"none"}},g="undefined"!==typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),m=i.forwardRef((function(e,t){var{addEndListener:r,appear:m=!0,children:b,easing:y,in:A,onEnter:_,onEntered:C,onEntering:w,onExit:x,onExited:k,onExiting:S,style:P,timeout:E="auto",TransitionComponent:O=l.ZP}=e,M=(0,o.Z)(e,f),F=(0,a.Z)(),R=i.useRef(),T=(0,c.Z)(),I=i.useRef(null),D=(0,d.Z)(I,(0,s.Z)(b),t),j=e=>t=>{if(e){var r=I.current;void 0===t?e(r):e(r,t)}},B=j(w),L=j(((e,t)=>{(0,u.n)(e);var r,{duration:n,delay:o,easing:i}=(0,u.C)({style:P,timeout:E,easing:y},{mode:"enter"});"auto"===E?(r=T.transitions.getAutoHeightDuration(e.clientHeight),R.current=r):r=n,e.style.transition=[T.transitions.create("opacity",{duration:r,delay:o}),T.transitions.create("transform",{duration:g?r:.666*r,delay:o,easing:i})].join(","),_&&_(e,t)})),Z=j(C),N=j(S),G=j((e=>{var t,{duration:r,delay:n,easing:o}=(0,u.C)({style:P,timeout:E,easing:y},{mode:"exit"});"auto"===E?(t=T.transitions.getAutoHeightDuration(e.clientHeight),R.current=t):t=r,e.style.transition=[T.transitions.create("opacity",{duration:t,delay:n}),T.transitions.create("transform",{duration:g?t:.666*t,delay:g?n:n||.333*t,easing:o})].join(","),e.style.opacity=0,e.style.transform=h(.75),x&&x(e)})),z=j(k);return(0,p.jsx)(O,(0,n.Z)({appear:m,in:A,nodeRef:I,onEnter:L,onEntered:Z,onEntering:B,onExit:G,onExited:z,onExiting:N,addEndListener:e=>{"auto"===E&&F.start(R.current||0,e),r&&r(I.current,e)},timeout:"auto"===E?null:E},M,{children:(e,t)=>i.cloneElement(b,(0,n.Z)({style:(0,n.Z)({opacity:0,transform:h(.75),visibility:"exited"!==e||A?void 0:"hidden"},v[e],P,b.props.style),ref:D},t))}))}));m.muiSupportAuto=!0,t.Z=m},51929:function(e,t,r){"use strict";r.d(t,{Z:function(){return A}});var n=r(40629),o=r(92002),i=r(21914),a=r(16757),s=r(17521),l=r(20760),c=r(24077),u=r(93319),d=r(94956),p=r(81772),f=r(10742),h=r(90627);function v(e){return(0,h.ZP)("MuiIconButton",e)}var g=(0,f.Z)("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),m=r(56552),b=["edge","children","className","color","disabled","disableFocusRipple","size"],y=(0,c.ZP)(d.Z,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[t.root,"default"!==r.color&&t["color".concat((0,p.Z)(r.color))],r.edge&&t["edge".concat((0,p.Z)(r.edge))],t["size".concat((0,p.Z)(r.size))]]}})((e=>{var{theme:t,ownerState:r}=e;return(0,o.Z)({textAlign:"center",flex:"0 0 auto",fontSize:t.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(t.vars||t).palette.action.active,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest})},!r.disableRipple&&{"&:hover":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.action.activeChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,l.Fq)(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"start"===r.edge&&{marginLeft:"small"===r.size?-3:-12},"end"===r.edge&&{marginRight:"small"===r.size?-3:-12})}),(e=>{var t,{theme:r,ownerState:n}=e,i=null==(t=(r.vars||r).palette)?void 0:t[n.color];return(0,o.Z)({},"inherit"===n.color&&{color:"inherit"},"inherit"!==n.color&&"default"!==n.color&&(0,o.Z)({color:null==i?void 0:i.main},!n.disableRipple&&{"&:hover":(0,o.Z)({},i&&{backgroundColor:r.vars?"rgba(".concat(i.mainChannel," / ").concat(r.vars.palette.action.hoverOpacity,")"):(0,l.Fq)(i.main,r.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),"small"===n.size&&{padding:5,fontSize:r.typography.pxToRem(18)},"large"===n.size&&{padding:12,fontSize:r.typography.pxToRem(28)},{["&.".concat(g.disabled)]:{backgroundColor:"transparent",color:(r.vars||r).palette.action.disabled}})})),A=i.forwardRef((function(e,t){var r=(0,u.i)({props:e,name:"MuiIconButton"}),{edge:i=!1,children:l,className:c,color:d="default",disabled:f=!1,disableFocusRipple:h=!1,size:g="medium"}=r,A=(0,n.Z)(r,b),_=(0,o.Z)({},r,{edge:i,color:d,disabled:f,disableFocusRipple:h,size:g}),C=(e=>{var{classes:t,disabled:r,color:n,edge:o,size:i}=e,a={root:["root",r&&"disabled","default"!==n&&"color".concat((0,p.Z)(n)),o&&"edge".concat((0,p.Z)(o)),"size".concat((0,p.Z)(i))]};return(0,s.Z)(a,v,t)})(_);return(0,m.jsx)(y,(0,o.Z)({className:(0,a.Z)(C.root,c),centerRipple:!0,focusRipple:!h,disabled:f,ref:t},A,{ownerState:_,children:l}))}))},17631:function(e,t,r){"use strict";var n=r(40629),o=r(92002),i=r(21914),a=r(17521),s=r(92712),l=r(48237),c=r(24077),u=r(65669),d=r(93319),p=r(74281),f=r(56552),h=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],v=(0,c.ZP)(l.Ej,{shouldForwardProp:e=>(0,u.Z)(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[...(0,l.Gx)(e,t),!r.disableUnderline&&t.underline]}})((e=>{var{theme:t,ownerState:r}=e,n="light"===t.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return t.vars&&(n="rgba(".concat(t.vars.palette.common.onBackgroundChannel," / ").concat(t.vars.opacity.inputUnderline,")")),(0,o.Z)({position:"relative"},r.formControl&&{"label + &":{marginTop:16}},!r.disableUnderline&&{"&::after":{borderBottom:"2px solid ".concat((t.vars||t).palette[r.color].main),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},["&.".concat(p.Z.focused,":after")]:{transform:"scaleX(1) translateX(0)"},["&.".concat(p.Z.error)]:{"&::before, &::after":{borderBottomColor:(t.vars||t).palette.error.main}},"&::before":{borderBottom:"1px solid ".concat(n),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},["&:hover:not(.".concat(p.Z.disabled,", .").concat(p.Z.error,"):before")]:{borderBottom:"2px solid ".concat((t.vars||t).palette.text.primary),"@media (hover: none)":{borderBottom:"1px solid ".concat(n)}},["&.".concat(p.Z.disabled,":before")]:{borderBottomStyle:"dotted"}})})),g=(0,c.ZP)(l.rA,{name:"MuiInput",slot:"Input",overridesResolver:l._o})({}),m=i.forwardRef((function(e,t){var r,i,c,u,m=(0,d.i)({props:e,name:"MuiInput"}),{disableUnderline:b,components:y={},componentsProps:A,fullWidth:_=!1,inputComponent:C="input",multiline:w=!1,slotProps:x,slots:k={},type:S="text"}=m,P=(0,n.Z)(m,h),E=(e=>{var{classes:t,disableUnderline:r}=e,n={root:["root",!r&&"underline"],input:["input"]},i=(0,a.Z)(n,p.l,t);return(0,o.Z)({},t,i)})(m),O={root:{ownerState:{disableUnderline:b}}},M=(null!=x?x:A)?(0,s.Z)(null!=x?x:A,O):O,F=null!=(r=null!=(i=k.root)?i:y.Root)?r:v,R=null!=(c=null!=(u=k.input)?u:y.Input)?c:g;return(0,f.jsx)(l.ZP,(0,o.Z)({slots:{root:F,input:R},slotProps:M,fullWidth:_,inputComponent:C,multiline:w,ref:t,type:S},P,{classes:E}))}));m.muiName="Input",t.Z=m},74281:function(e,t,r){"use strict";r.d(t,{l:function(){return s}});var n=r(92002),o=r(10742),i=r(90627),a=r(62010);function s(e){return(0,i.ZP)("MuiInput",e)}var l=(0,n.Z)({},a.Z,(0,o.Z)("MuiInput",["root","underline","input"]));t.Z=l},54589:function(e,t,r){"use strict";r.d(t,{Z:function(){return C}});var n=r(40629),o=r(92002),i=r(21914),a=r(16757),s=r(17521),l=r(81772),c=r(28501),u=r(56069),d=r(73028),p=r(24077),f=r(10742),h=r(90627);function v(e){return(0,h.ZP)("MuiInputAdornment",e)}var g,m=(0,f.Z)("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]),b=r(93319),y=r(56552),A=["children","className","component","disablePointerEvents","disableTypography","position","variant"],_=(0,p.ZP)("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[t.root,t["position".concat((0,l.Z)(r.position))],!0===r.disablePointerEvents&&t.disablePointerEvents,t[r.variant]]}})((e=>{var{theme:t,ownerState:r}=e;return(0,o.Z)({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(t.vars||t).palette.action.active},"filled"===r.variant&&{["&.".concat(m.positionStart,"&:not(.").concat(m.hiddenLabel,")")]:{marginTop:16}},"start"===r.position&&{marginRight:8},"end"===r.position&&{marginLeft:8},!0===r.disablePointerEvents&&{pointerEvents:"none"})})),C=i.forwardRef((function(e,t){var r=(0,b.i)({props:e,name:"MuiInputAdornment"}),{children:p,className:f,component:h="div",disablePointerEvents:m=!1,disableTypography:C=!1,position:w,variant:x}=r,k=(0,n.Z)(r,A),S=(0,d.Z)()||{},P=x;x&&S.variant,S&&!P&&(P=S.variant);var E=(0,o.Z)({},r,{hiddenLabel:S.hiddenLabel,size:S.size,disablePointerEvents:m,position:w,variant:P}),O=(e=>{var{classes:t,disablePointerEvents:r,hiddenLabel:n,position:o,size:i,variant:a}=e,c={root:["root",r&&"disablePointerEvents",o&&"position".concat((0,l.Z)(o)),a,n&&"hiddenLabel",i&&"size".concat((0,l.Z)(i))]};return(0,s.Z)(c,v,t)})(E);return(0,y.jsx)(u.Z.Provider,{value:null,children:(0,y.jsx)(_,(0,o.Z)({as:h,ownerState:E,className:(0,a.Z)(O.root,f),ref:t},k,{children:"string"!==typeof p||C?(0,y.jsxs)(i.Fragment,{children:["start"===w?g||(g=(0,y.jsx)("span",{className:"notranslate",children:"\u200b"})):null,p]}):(0,y.jsx)(c.Z,{color:"text.secondary",children:p})}))})}))},48237:function(e,t,r){"use strict";r.d(t,{Ej:function(){return S},Gx:function(){return x},_o:function(){return k},rA:function(){return P}});var n=r(40629),o=r(92002),i=r(13518),a=r(21914),s=r(16757),l=r(17521),c=r(59576),u=r(14097),d=r(31877),p=r(56069),f=r(73028),h=r(24077),v=r(93319),g=r(81772),m=r(7023),b=r(30607),y=r(30321),A=r(19804),_=r(62010),C=r(56552),w=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],x=(e,t)=>{var{ownerState:r}=e;return[t.root,r.formControl&&t.formControl,r.startAdornment&&t.adornedStart,r.endAdornment&&t.adornedEnd,r.error&&t.error,"small"===r.size&&t.sizeSmall,r.multiline&&t.multiline,r.color&&t["color".concat((0,g.Z)(r.color))],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},k=(e,t)=>{var{ownerState:r}=e;return[t.input,"small"===r.size&&t.inputSizeSmall,r.multiline&&t.inputMultiline,"search"===r.type&&t.inputTypeSearch,r.startAdornment&&t.inputAdornedStart,r.endAdornment&&t.inputAdornedEnd,r.hiddenLabel&&t.inputHiddenLabel]},S=(0,h.ZP)("div",{name:"MuiInputBase",slot:"Root",overridesResolver:x})((e=>{var{theme:t,ownerState:r}=e;return(0,o.Z)({},t.typography.body1,{color:(t.vars||t).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",["&.".concat(_.Z.disabled)]:{color:(t.vars||t).palette.text.disabled,cursor:"default"}},r.multiline&&(0,o.Z)({padding:"4px 0 5px"},"small"===r.size&&{paddingTop:1}),r.fullWidth&&{width:"100%"})})),P=(0,h.ZP)("input",{name:"MuiInputBase",slot:"Input",overridesResolver:k})((e=>{var{theme:t,ownerState:r}=e,n="light"===t.palette.mode,i=(0,o.Z)({color:"currentColor"},t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:t.transitions.create("opacity",{duration:t.transitions.duration.shorter})}),a={opacity:"0 !important"},s=t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return(0,o.Z)({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":i,"&::-moz-placeholder":i,"&:-ms-input-placeholder":i,"&::-ms-input-placeholder":i,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},["label[data-shrink=false] + .".concat(_.Z.formControl," &")]:{"&::-webkit-input-placeholder":a,"&::-moz-placeholder":a,"&:-ms-input-placeholder":a,"&::-ms-input-placeholder":a,"&:focus::-webkit-input-placeholder":s,"&:focus::-moz-placeholder":s,"&:focus:-ms-input-placeholder":s,"&:focus::-ms-input-placeholder":s},["&.".concat(_.Z.disabled)]:{opacity:1,WebkitTextFillColor:(t.vars||t).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},"small"===r.size&&{paddingTop:1},r.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},"search"===r.type&&{MozAppearance:"textfield"})})),E=(0,C.jsx)(y.Z,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),O=a.forwardRef((function(e,t){var r,h=(0,v.i)({props:e,name:"MuiInputBase"}),{"aria-describedby":y,autoComplete:x,autoFocus:k,className:O,components:M={},componentsProps:F={},defaultValue:R,disabled:T,disableInjectingGlobalStyles:I,endAdornment:D,fullWidth:j=!1,id:B,inputComponent:L="input",inputProps:Z={},inputRef:N,maxRows:G,minRows:z,multiline:W=!1,name:U,onBlur:q,onChange:V,onClick:H,onFocus:K,onKeyDown:Y,onKeyUp:$,placeholder:X,readOnly:Q,renderSuffix:J,rows:ee,slotProps:te={},slots:re={},startAdornment:ne,type:oe="text",value:ie}=h,ae=(0,n.Z)(h,w),se=null!=Z.value?Z.value:ie,{current:le}=a.useRef(null!=se),ce=a.useRef(),ue=a.useCallback((e=>{0}),[]),de=(0,m.Z)(ce,N,Z.ref,ue),[pe,fe]=a.useState(!1),he=(0,f.Z)();var ve=(0,d.Z)({props:h,muiFormControl:he,states:["color","disabled","error","hiddenLabel","size","required","filled"]});ve.focused=he?he.focused:pe,a.useEffect((()=>{!he&&T&&pe&&(fe(!1),q&&q())}),[he,T,pe,q]);var ge=he&&he.onFilled,me=he&&he.onEmpty,be=a.useCallback((e=>{(0,A.vd)(e)?ge&&ge():me&&me()}),[ge,me]);(0,b.Z)((()=>{le&&be({value:se})}),[se,be,le]);a.useEffect((()=>{be(ce.current)}),[]);var ye=L,Ae=Z;W&&"input"===ye&&(Ae=ee?(0,o.Z)({type:void 0,minRows:ee,maxRows:ee},Ae):(0,o.Z)({type:void 0,maxRows:G,minRows:z},Ae),ye=u.Z);a.useEffect((()=>{he&&he.setAdornedStart(Boolean(ne))}),[he,ne]);var _e=(0,o.Z)({},h,{color:ve.color||"primary",disabled:ve.disabled,endAdornment:D,error:ve.error,focused:ve.focused,formControl:he,fullWidth:j,hiddenLabel:ve.hiddenLabel,multiline:W,size:ve.size,startAdornment:ne,type:oe}),Ce=(e=>{var{classes:t,color:r,disabled:n,error:o,endAdornment:i,focused:a,formControl:s,fullWidth:c,hiddenLabel:u,multiline:d,readOnly:p,size:f,startAdornment:h,type:v}=e,m={root:["root","color".concat((0,g.Z)(r)),n&&"disabled",o&&"error",c&&"fullWidth",a&&"focused",s&&"formControl",f&&"medium"!==f&&"size".concat((0,g.Z)(f)),d&&"multiline",h&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",p&&"readOnly"],input:["input",n&&"disabled","search"===v&&"inputTypeSearch",d&&"inputMultiline","small"===f&&"inputSizeSmall",u&&"inputHiddenLabel",h&&"inputAdornedStart",i&&"inputAdornedEnd",p&&"readOnly"]};return(0,l.Z)(m,_.u,t)})(_e),we=re.root||M.Root||S,xe=te.root||F.root||{},ke=re.input||M.Input||P;return Ae=(0,o.Z)({},Ae,null!=(r=te.input)?r:F.input),(0,C.jsxs)(a.Fragment,{children:[!I&&E,(0,C.jsxs)(we,(0,o.Z)({},xe,!(0,c.Z)(we)&&{ownerState:(0,o.Z)({},_e,xe.ownerState)},{ref:t,onClick:e=>{ce.current&&e.currentTarget===e.target&&ce.current.focus(),H&&H(e)}},ae,{className:(0,s.Z)(Ce.root,xe.className,O,Q&&"MuiInputBase-readOnly"),children:[ne,(0,C.jsx)(p.Z.Provider,{value:null,children:(0,C.jsx)(ke,(0,o.Z)({ownerState:_e,"aria-invalid":ve.error,"aria-describedby":y,autoComplete:x,autoFocus:k,defaultValue:R,disabled:ve.disabled,id:B,onAnimationStart:e=>{be("mui-auto-fill-cancel"===e.animationName?ce.current:{value:"x"})},name:U,placeholder:X,readOnly:Q,required:ve.required,rows:ee,value:se,onKeyDown:Y,onKeyUp:$,type:oe},Ae,!(0,c.Z)(ke)&&{as:ye,ownerState:(0,o.Z)({},_e,Ae.ownerState)},{ref:de,className:(0,s.Z)(Ce.input,Ae.className,Q&&"MuiInputBase-readOnly"),onBlur:e=>{q&&q(e),Z.onBlur&&Z.onBlur(e),he&&he.onBlur?he.onBlur(e):fe(!1)},onChange:function(e){if(!le){var t=e.target||ce.current;if(null==t)throw new Error((0,i.Z)(1));be({value:t.value})}for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o{ve.disabled?e.stopPropagation():(K&&K(e),Z.onFocus&&Z.onFocus(e),he&&he.onFocus?he.onFocus(e):fe(!0))}}))}),D,J?J((0,o.Z)({},ve,{startAdornment:ne})):null]}))]})}));t.ZP=O},62010:function(e,t,r){"use strict";r.d(t,{u:function(){return i}});var n=r(10742),o=r(90627);function i(e){return(0,o.ZP)("MuiInputBase",e)}var a=(0,n.Z)("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);t.Z=a},19804:function(e,t,r){"use strict";function n(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function o(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e&&(n(e.value)&&""!==e.value||t&&n(e.defaultValue)&&""!==e.defaultValue)}function i(e){return e.startAdornment}r.d(t,{B7:function(){return i},vd:function(){return o}})},23482:function(e,t,r){"use strict";r.d(t,{Z:function(){return S}});var n=r(40629),o=r(92002),i=r(21914),a=r(17521),s=r(16757),l=r(31877),c=r(73028),u=r(81772),d=r(93319),p=r(24077),f=r(10742),h=r(90627);function v(e){return(0,h.ZP)("MuiFormLabel",e)}var g=(0,f.Z)("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),m=r(56552),b=["children","className","color","component","disabled","error","filled","focused","required"],y=(0,p.ZP)("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{var{ownerState:r}=e;return(0,o.Z)({},t.root,"secondary"===r.color&&t.colorSecondary,r.filled&&t.filled)}})((e=>{var{theme:t,ownerState:r}=e;return(0,o.Z)({color:(t.vars||t).palette.text.secondary},t.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",["&.".concat(g.focused)]:{color:(t.vars||t).palette[r.color].main},["&.".concat(g.disabled)]:{color:(t.vars||t).palette.text.disabled},["&.".concat(g.error)]:{color:(t.vars||t).palette.error.main}})})),A=(0,p.ZP)("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})((e=>{var{theme:t}=e;return{["&.".concat(g.error)]:{color:(t.vars||t).palette.error.main}}})),_=i.forwardRef((function(e,t){var r=(0,d.i)({props:e,name:"MuiFormLabel"}),{children:i,className:p,component:f="label"}=r,h=(0,n.Z)(r,b),g=(0,c.Z)(),_=(0,l.Z)({props:r,muiFormControl:g,states:["color","required","focused","disabled","error","filled"]}),C=(0,o.Z)({},r,{color:_.color||"primary",component:f,disabled:_.disabled,error:_.error,filled:_.filled,focused:_.focused,required:_.required}),w=(e=>{var{classes:t,color:r,focused:n,disabled:o,error:i,filled:s,required:l}=e,c={root:["root","color".concat((0,u.Z)(r)),o&&"disabled",i&&"error",s&&"filled",n&&"focused",l&&"required"],asterisk:["asterisk",i&&"error"]};return(0,a.Z)(c,v,t)})(C);return(0,m.jsxs)(y,(0,o.Z)({as:f,ownerState:C,className:(0,s.Z)(w.root,p),ref:t},h,{children:[i,_.required&&(0,m.jsxs)(A,{ownerState:C,"aria-hidden":!0,className:w.asterisk,children:["\u2009","*"]})]}))})),C=r(65669);function w(e){return(0,h.ZP)("MuiInputLabel",e)}(0,f.Z)("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);var x=["disableAnimation","margin","shrink","variant","className"],k=(0,p.ZP)(_,{shouldForwardProp:e=>(0,C.Z)(e)||"classes"===e,name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[{["& .".concat(g.asterisk)]:t.asterisk},t.root,r.formControl&&t.formControl,"small"===r.size&&t.sizeSmall,r.shrink&&t.shrink,!r.disableAnimation&&t.animated,r.focused&&t.focused,t[r.variant]]}})((e=>{var{theme:t,ownerState:r}=e;return(0,o.Z)({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},r.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},"small"===r.size&&{transform:"translate(0, 17px) scale(1)"},r.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!r.disableAnimation&&{transition:t.transitions.create(["color","transform","max-width"],{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut})},"filled"===r.variant&&(0,o.Z)({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===r.size&&{transform:"translate(12px, 13px) scale(1)"},r.shrink&&(0,o.Z)({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},"small"===r.size&&{transform:"translate(12px, 4px) scale(0.75)"})),"outlined"===r.variant&&(0,o.Z)({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===r.size&&{transform:"translate(14px, 9px) scale(1)"},r.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))})),S=i.forwardRef((function(e,t){var r=(0,d.i)({name:"MuiInputLabel",props:e}),{disableAnimation:i=!1,shrink:p,className:f}=r,h=(0,n.Z)(r,x),v=(0,c.Z)(),g=p;"undefined"===typeof g&&v&&(g=v.filled||v.focused||v.adornedStart);var b=(0,l.Z)({props:r,muiFormControl:v,states:["size","variant","required","focused"]}),y=(0,o.Z)({},r,{disableAnimation:i,formControl:v,shrink:g,size:b.size,variant:b.variant,required:b.required,focused:b.focused}),A=(e=>{var{classes:t,formControl:r,size:n,shrink:i,disableAnimation:s,variant:l,required:c}=e,d={root:["root",r&&"formControl",!s&&"animated",i&&"shrink",n&&"normal"!==n&&"size".concat((0,u.Z)(n)),l],asterisk:[c&&"asterisk"]},p=(0,a.Z)(d,w,t);return(0,o.Z)({},t,p)})(y);return(0,m.jsx)(k,(0,o.Z)({"data-shrink":g,ownerState:y,ref:t,className:(0,s.Z)(A.root,f)},h,{classes:A}))}))},48006:function(e,t,r){"use strict";r.d(t,{Z:function(){return k}});var n=r(40629),o=r(92002),i=r(21914),a=r(16757),s=r(17521),l=r(81772),c=r(24077),u=r(93319),d=r(44051),p=r(7023),f=r(28501),h=r(10742),v=r(90627);function g(e){return(0,v.ZP)("MuiLink",e)}var m=(0,h.Z)("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),b=r(97013),y=r(20760),A={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},_=e=>{var{theme:t,ownerState:r}=e,n=(e=>A[e]||e)(r.color),o=(0,b.DW)(t,"palette.".concat(n),!1)||r.color,i=(0,b.DW)(t,"palette.".concat(n,"Channel"));return"vars"in t&&i?"rgba(".concat(i," / 0.4)"):(0,y.Fq)(o,.4)},C=r(56552),w=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],x=(0,c.ZP)(f.Z,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[t.root,t["underline".concat((0,l.Z)(r.underline))],"button"===r.component&&t.button]}})((e=>{var{theme:t,ownerState:r}=e;return(0,o.Z)({},"none"===r.underline&&{textDecoration:"none"},"hover"===r.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===r.underline&&(0,o.Z)({textDecoration:"underline"},"inherit"!==r.color&&{textDecorationColor:_({theme:t,ownerState:r})},{"&:hover":{textDecorationColor:"inherit"}}),"button"===r.component&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},["&.".concat(m.focusVisible)]:{outline:"auto"}})})),k=i.forwardRef((function(e,t){var r=(0,u.i)({props:e,name:"MuiLink"}),{className:c,color:f="primary",component:h="a",onBlur:v,onFocus:m,TypographyClasses:b,underline:y="always",variant:_="inherit",sx:k}=r,S=(0,n.Z)(r,w),{isFocusVisibleRef:P,onBlur:E,onFocus:O,ref:M}=(0,d.Z)(),[F,R]=i.useState(!1),T=(0,p.Z)(t,M),I=(0,o.Z)({},r,{color:f,component:h,focusVisible:F,underline:y,variant:_}),D=(e=>{var{classes:t,component:r,focusVisible:n,underline:o}=e,i={root:["root","underline".concat((0,l.Z)(o)),"button"===r&&"button",n&&"focusVisible"]};return(0,s.Z)(i,g,t)})(I);return(0,C.jsx)(x,(0,o.Z)({color:f,className:(0,a.Z)(D.root,c),classes:b,component:h,onBlur:e=>{E(e),!1===P.current&&R(!1),v&&v(e)},onFocus:e=>{O(e),!0===P.current&&R(!0),m&&m(e)},ref:T,ownerState:I,variant:_,sx:[...Object.keys(A).includes(f)?[]:[{color:f}],...Array.isArray(k)?k:[k]]},S))}))},6197:function(e,t,r){"use strict";r.d(t,{Z:function(){return m}});var n=r(40629),o=r(92002),i=r(21914),a=r(16757),s=r(17521),l=r(24077),c=r(93319),u=r(60998),d=r(10742),p=r(90627);function f(e){return(0,p.ZP)("MuiList",e)}(0,d.Z)("MuiList",["root","padding","dense","subheader"]);var h=r(56552),v=["children","className","component","dense","disablePadding","subheader"],g=(0,l.ZP)("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.subheader&&t.subheader]}})((e=>{var{ownerState:t}=e;return(0,o.Z)({listStyle:"none",margin:0,padding:0,position:"relative"},!t.disablePadding&&{paddingTop:8,paddingBottom:8},t.subheader&&{paddingTop:0})})),m=i.forwardRef((function(e,t){var r=(0,c.i)({props:e,name:"MuiList"}),{children:l,className:d,component:p="ul",dense:m=!1,disablePadding:b=!1,subheader:y}=r,A=(0,n.Z)(r,v),_=i.useMemo((()=>({dense:m})),[m]),C=(0,o.Z)({},r,{component:p,dense:m,disablePadding:b}),w=(e=>{var{classes:t,disablePadding:r,dense:n,subheader:o}=e,i={root:["root",!r&&"padding",n&&"dense",o&&"subheader"]};return(0,s.Z)(i,f,t)})(C);return(0,h.jsx)(u.Z.Provider,{value:_,children:(0,h.jsxs)(g,(0,o.Z)({as:p,className:(0,a.Z)(w.root,d),ref:t,ownerState:C},A,{children:[y,l]}))})}))},60998:function(e,t,r){"use strict";var n=r(21914).createContext({});t.Z=n},71488:function(e,t,r){"use strict";r.d(t,{ZP:function(){return R}});var n=r(40629),o=r(92002),i=r(21914),a=r(16757),s=r(17521),l=r(20760),c=r(59576),u=r(24077),d=r(93319),p=r(94956),f=r(6951),h=r(30607),v=r(7023),g=r(60998),m=r(10742),b=r(90627);function y(e){return(0,b.ZP)("MuiListItem",e)}var A=(0,m.Z)("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),_=r(51427);function C(e){return(0,b.ZP)("MuiListItemSecondaryAction",e)}(0,m.Z)("MuiListItemSecondaryAction",["root","disableGutters"]);var w=r(56552),x=["className"],k=(0,u.ZP)("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[t.root,r.disableGutters&&t.disableGutters]}})((e=>{var{ownerState:t}=e;return(0,o.Z)({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},t.disableGutters&&{right:0})})),S=i.forwardRef((function(e,t){var r=(0,d.i)({props:e,name:"MuiListItemSecondaryAction"}),{className:l}=r,c=(0,n.Z)(r,x),u=i.useContext(g.Z),p=(0,o.Z)({},r,{disableGutters:u.disableGutters}),f=(e=>{var{disableGutters:t,classes:r}=e,n={root:["root",t&&"disableGutters"]};return(0,s.Z)(n,C,r)})(p);return(0,w.jsx)(k,(0,o.Z)({className:(0,a.Z)(f.root,l),ownerState:p,ref:t},c))}));S.muiName="ListItemSecondaryAction";var P=S,E=["className"],O=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],M=(0,u.ZP)("div",{name:"MuiListItem",slot:"Root",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[t.root,r.dense&&t.dense,"flex-start"===r.alignItems&&t.alignItemsFlexStart,r.divider&&t.divider,!r.disableGutters&&t.gutters,!r.disablePadding&&t.padding,r.button&&t.button,r.hasSecondaryAction&&t.secondaryAction]}})((e=>{var{theme:t,ownerState:r}=e;return(0,o.Z)({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!r.disablePadding&&(0,o.Z)({paddingTop:8,paddingBottom:8},r.dense&&{paddingTop:4,paddingBottom:4},!r.disableGutters&&{paddingLeft:16,paddingRight:16},!!r.secondaryAction&&{paddingRight:48}),!!r.secondaryAction&&{["& > .".concat(_.Z.root)]:{paddingRight:48}},{["&.".concat(A.focusVisible)]:{backgroundColor:(t.vars||t).palette.action.focus},["&.".concat(A.selected)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,l.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity),["&.".concat(A.focusVisible)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.focusOpacity,"))"):(0,l.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},["&.".concat(A.disabled)]:{opacity:(t.vars||t).palette.action.disabledOpacity}},"flex-start"===r.alignItems&&{alignItems:"flex-start"},r.divider&&{borderBottom:"1px solid ".concat((t.vars||t).palette.divider),backgroundClip:"padding-box"},r.button&&{transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},["&.".concat(A.selected,":hover")]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.hoverOpacity,"))"):(0,l.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,l.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity)}}},r.hasSecondaryAction&&{paddingRight:48})})),F=(0,u.ZP)("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),R=i.forwardRef((function(e,t){var r=(0,d.i)({props:e,name:"MuiListItem"}),{alignItems:l="center",autoFocus:u=!1,button:m=!1,children:b,className:_,component:C,components:x={},componentsProps:k={},ContainerComponent:S="li",ContainerProps:{className:R}={},dense:T=!1,disabled:I=!1,disableGutters:D=!1,disablePadding:j=!1,divider:B=!1,focusVisibleClassName:L,secondaryAction:Z,selected:N=!1,slotProps:G={},slots:z={}}=r,W=(0,n.Z)(r.ContainerProps,E),U=(0,n.Z)(r,O),q=i.useContext(g.Z),V=i.useMemo((()=>({dense:T||q.dense||!1,alignItems:l,disableGutters:D})),[l,q.dense,T,D]),H=i.useRef(null);(0,h.Z)((()=>{u&&H.current&&H.current.focus()}),[u]);var K=i.Children.toArray(b),Y=K.length&&(0,f.Z)(K[K.length-1],["ListItemSecondaryAction"]),$=(0,o.Z)({},r,{alignItems:l,autoFocus:u,button:m,dense:V.dense,disabled:I,disableGutters:D,disablePadding:j,divider:B,hasSecondaryAction:Y,selected:N}),X=(e=>{var{alignItems:t,button:r,classes:n,dense:o,disabled:i,disableGutters:a,disablePadding:l,divider:c,hasSecondaryAction:u,selected:d}=e,p={root:["root",o&&"dense",!a&&"gutters",!l&&"padding",c&&"divider",i&&"disabled",r&&"button","flex-start"===t&&"alignItemsFlexStart",u&&"secondaryAction",d&&"selected"],container:["container"]};return(0,s.Z)(p,y,n)})($),Q=(0,v.Z)(H,t),J=z.root||x.Root||M,ee=G.root||k.root||{},te=(0,o.Z)({className:(0,a.Z)(X.root,ee.className,_),disabled:I},U),re=C||"li";return m&&(te.component=C||"div",te.focusVisibleClassName=(0,a.Z)(A.focusVisible,L),re=p.Z),Y?(re=te.component||C?re:"div","li"===S&&("li"===re?re="div":"li"===te.component&&(te.component="div")),(0,w.jsx)(g.Z.Provider,{value:V,children:(0,w.jsxs)(F,(0,o.Z)({as:S,className:(0,a.Z)(X.container,R),ref:Q,ownerState:$},W,{children:[(0,w.jsx)(J,(0,o.Z)({},ee,!(0,c.Z)(J)&&{as:re,ownerState:(0,o.Z)({},$,ee.ownerState)},te,{children:K})),K.pop()]}))})):(0,w.jsx)(g.Z.Provider,{value:V,children:(0,w.jsxs)(J,(0,o.Z)({},ee,{as:re,ref:Q},!(0,c.Z)(J)&&{ownerState:(0,o.Z)({},$,ee.ownerState)},te,{children:[K,Z&&(0,w.jsx)(P,{children:Z})]}))})}))},86111:function(e,t,r){"use strict";var n=r(40629),o=r(92002),i=r(21914),a=r(16757),s=r(17521),l=r(20760),c=r(24077),u=r(65669),d=r(93319),p=r(94956),f=r(30607),h=r(7023),v=r(60998),g=r(51427),m=r(56552),b=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],y=(0,c.ZP)(p.Z,{shouldForwardProp:e=>(0,u.Z)(e)||"classes"===e,name:"MuiListItemButton",slot:"Root",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[t.root,r.dense&&t.dense,"flex-start"===r.alignItems&&t.alignItemsFlexStart,r.divider&&t.divider,!r.disableGutters&&t.gutters]}})((e=>{var{theme:t,ownerState:r}=e;return(0,o.Z)({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},["&.".concat(g.Z.selected)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,l.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity),["&.".concat(g.Z.focusVisible)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.focusOpacity,"))"):(0,l.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},["&.".concat(g.Z.selected,":hover")]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.hoverOpacity,"))"):(0,l.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,l.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity)}},["&.".concat(g.Z.focusVisible)]:{backgroundColor:(t.vars||t).palette.action.focus},["&.".concat(g.Z.disabled)]:{opacity:(t.vars||t).palette.action.disabledOpacity}},r.divider&&{borderBottom:"1px solid ".concat((t.vars||t).palette.divider),backgroundClip:"padding-box"},"flex-start"===r.alignItems&&{alignItems:"flex-start"},!r.disableGutters&&{paddingLeft:16,paddingRight:16},r.dense&&{paddingTop:4,paddingBottom:4})})),A=i.forwardRef((function(e,t){var r=(0,d.i)({props:e,name:"MuiListItemButton"}),{alignItems:l="center",autoFocus:c=!1,component:u="div",children:p,dense:A=!1,disableGutters:_=!1,divider:C=!1,focusVisibleClassName:w,selected:x=!1,className:k}=r,S=(0,n.Z)(r,b),P=i.useContext(v.Z),E=i.useMemo((()=>({dense:A||P.dense||!1,alignItems:l,disableGutters:_})),[l,P.dense,A,_]),O=i.useRef(null);(0,f.Z)((()=>{c&&O.current&&O.current.focus()}),[c]);var M=(0,o.Z)({},r,{alignItems:l,dense:E.dense,disableGutters:_,divider:C,selected:x}),F=(e=>{var{alignItems:t,classes:r,dense:n,disabled:i,disableGutters:a,divider:l,selected:c}=e,u={root:["root",n&&"dense",!a&&"gutters",l&&"divider",i&&"disabled","flex-start"===t&&"alignItemsFlexStart",c&&"selected"]},d=(0,s.Z)(u,g.t,r);return(0,o.Z)({},r,d)})(M),R=(0,h.Z)(O,t);return(0,m.jsx)(v.Z.Provider,{value:E,children:(0,m.jsx)(y,(0,o.Z)({ref:R,href:S.href||S.to,component:(S.href||S.to)&&"div"===u?"button":u,focusVisibleClassName:(0,a.Z)(F.focusVisible,w),ownerState:M,className:(0,a.Z)(F.root,k)},S,{classes:F,children:p}))})}));t.Z=A},51427:function(e,t,r){"use strict";r.d(t,{t:function(){return i}});var n=r(10742),o=r(90627);function i(e){return(0,o.ZP)("MuiListItemButton",e)}var a=(0,n.Z)("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);t.Z=a},13569:function(e,t,r){"use strict";var n=r(40629),o=r(92002),i=r(21914),a=r(16757),s=r(17521),l=r(24077),c=r(93319),u=r(77832),d=r(60998),p=r(56552),f=["className"],h=(0,l.ZP)("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[t.root,"flex-start"===r.alignItems&&t.alignItemsFlexStart]}})((e=>{var{theme:t,ownerState:r}=e;return(0,o.Z)({minWidth:56,color:(t.vars||t).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===r.alignItems&&{marginTop:8})})),v=i.forwardRef((function(e,t){var r=(0,c.i)({props:e,name:"MuiListItemIcon"}),{className:l}=r,v=(0,n.Z)(r,f),g=i.useContext(d.Z),m=(0,o.Z)({},r,{alignItems:g.alignItems}),b=(e=>{var{alignItems:t,classes:r}=e,n={root:["root","flex-start"===t&&"alignItemsFlexStart"]};return(0,s.Z)(n,u.f,r)})(m);return(0,p.jsx)(h,(0,o.Z)({className:(0,a.Z)(b.root,l),ownerState:m,ref:t},v))}));t.Z=v},77832:function(e,t,r){"use strict";r.d(t,{f:function(){return i}});var n=r(10742),o=r(90627);function i(e){return(0,o.ZP)("MuiListItemIcon",e)}var a=(0,n.Z)("MuiListItemIcon",["root","alignItemsFlexStart"]);t.Z=a},82309:function(e,t,r){"use strict";var n=r(40629),o=r(92002),i=r(21914),a=r(16757),s=r(17521),l=r(28501),c=r(60998),u=r(93319),d=r(24077),p=r(21230),f=r(56552),h=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],v=(0,d.ZP)("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[{["& .".concat(p.Z.primary)]:t.primary},{["& .".concat(p.Z.secondary)]:t.secondary},t.root,r.inset&&t.inset,r.primary&&r.secondary&&t.multiline,r.dense&&t.dense]}})((e=>{var{ownerState:t}=e;return(0,o.Z)({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},t.primary&&t.secondary&&{marginTop:6,marginBottom:6},t.inset&&{paddingLeft:56})})),g=i.forwardRef((function(e,t){var r=(0,u.i)({props:e,name:"MuiListItemText"}),{children:d,className:g,disableTypography:m=!1,inset:b=!1,primary:y,primaryTypographyProps:A,secondary:_,secondaryTypographyProps:C}=r,w=(0,n.Z)(r,h),{dense:x}=i.useContext(c.Z),k=null!=y?y:d,S=_,P=(0,o.Z)({},r,{disableTypography:m,inset:b,primary:!!k,secondary:!!S,dense:x}),E=(e=>{var{classes:t,inset:r,primary:n,secondary:o,dense:i}=e,a={root:["root",r&&"inset",i&&"dense",n&&o&&"multiline"],primary:["primary"],secondary:["secondary"]};return(0,s.Z)(a,p.L,t)})(P);return null==k||k.type===l.Z||m||(k=(0,f.jsx)(l.Z,(0,o.Z)({variant:x?"body2":"body1",className:E.primary,component:null!=A&&A.variant?void 0:"span",display:"block"},A,{children:k}))),null==S||S.type===l.Z||m||(S=(0,f.jsx)(l.Z,(0,o.Z)({variant:"body2",className:E.secondary,color:"text.secondary",display:"block"},C,{children:S}))),(0,f.jsxs)(v,(0,o.Z)({className:(0,a.Z)(E.root,g),ownerState:P,ref:t},w,{children:[k,S]}))}));t.Z=g},21230:function(e,t,r){"use strict";r.d(t,{L:function(){return i}});var n=r(10742),o=r(90627);function i(e){return(0,o.ZP)("MuiListItemText",e)}var a=(0,n.Z)("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);t.Z=a},76915:function(e,t,r){"use strict";r.d(t,{Z:function(){return S}});var n=r(92002),o=r(40629),i=r(21914),a=r(16757),s=r(17521),l=r(34972),c=r(83480),u=r(47611),d=r(50970),p=r(24077),f=r(65669),h=r(93319),v=r(10742),g=r(90627);function m(e){return(0,g.ZP)("MuiMenu",e)}(0,v.Z)("MuiMenu",["root","paper","list"]);var b=r(56552),y=["onEntering"],A=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],_={vertical:"top",horizontal:"right"},C={vertical:"top",horizontal:"left"},w=(0,p.ZP)(d.ZP,{shouldForwardProp:e=>(0,f.Z)(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),x=(0,p.ZP)(d.XS,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),k=(0,p.ZP)(u.Z,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),S=i.forwardRef((function(e,t){var r,u,d=(0,h.i)({props:e,name:"MuiMenu"}),{autoFocus:p=!0,children:f,className:v,disableAutoFocusItem:g=!1,MenuListProps:S={},onClose:P,open:E,PaperProps:O={},PopoverClasses:M,transitionDuration:F="auto",TransitionProps:{onEntering:R}={},variant:T="selectedMenu",slots:I={},slotProps:D={}}=d,j=(0,o.Z)(d.TransitionProps,y),B=(0,o.Z)(d,A),L=(0,l.V)(),Z=(0,n.Z)({},d,{autoFocus:p,disableAutoFocusItem:g,MenuListProps:S,onEntering:R,PaperProps:O,transitionDuration:F,TransitionProps:j,variant:T}),N=(e=>{var{classes:t}=e;return(0,s.Z)({root:["root"],paper:["paper"],list:["list"]},m,t)})(Z),G=p&&!g&&E,z=i.useRef(null),W=-1;i.Children.map(f,((e,t)=>{i.isValidElement(e)&&(e.props.disabled||("selectedMenu"===T&&e.props.selected||-1===W)&&(W=t))}));var U=null!=(r=I.paper)?r:x,q=null!=(u=D.paper)?u:O,V=(0,c.Z)({elementType:I.root,externalSlotProps:D.root,ownerState:Z,className:[N.root,v]}),H=(0,c.Z)({elementType:U,externalSlotProps:q,ownerState:Z,className:N.paper});return(0,b.jsx)(w,(0,n.Z)({onClose:P,anchorOrigin:{vertical:"bottom",horizontal:L?"right":"left"},transformOrigin:L?_:C,slots:{paper:U,root:I.root},slotProps:{root:V,paper:H},open:E,ref:t,transitionDuration:F,TransitionProps:(0,n.Z)({onEntering:(e,t)=>{z.current&&z.current.adjustStyleForScrollbar(e,{direction:L?"rtl":"ltr"}),R&&R(e,t)}},j),ownerState:Z},B,{classes:M,children:(0,b.jsx)(k,(0,n.Z)({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),P&&P(e,"tabKeyDown"))},actions:z,autoFocus:p&&(-1===W||g),autoFocusItem:G,variant:T},S,{className:(0,a.Z)(N.list,S.className),children:f}))}))}))},68686:function(e,t,r){"use strict";r.d(t,{Z:function(){return S}});var n=r(40629),o=r(92002),i=r(21914),a=r(16757),s=r(17521),l=r(20760),c=r(24077),u=r(65669),d=r(93319),p=r(60998),f=r(94956),h=r(30607),v=r(7023),g=r(45338),m=r(77832),b=r(21230),y=r(10742),A=r(90627);function _(e){return(0,A.ZP)("MuiMenuItem",e)}var C=(0,y.Z)("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),w=r(56552),x=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],k=(0,c.ZP)(f.Z,{shouldForwardProp:e=>(0,u.Z)(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]}})((e=>{var{theme:t,ownerState:r}=e;return(0,o.Z)({},t.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!r.disableGutters&&{paddingLeft:16,paddingRight:16},r.divider&&{borderBottom:"1px solid ".concat((t.vars||t).palette.divider),backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},["&.".concat(C.selected)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,l.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity),["&.".concat(C.focusVisible)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.focusOpacity,"))"):(0,l.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},["&.".concat(C.selected,":hover")]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.hoverOpacity,"))"):(0,l.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,l.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity)}},["&.".concat(C.focusVisible)]:{backgroundColor:(t.vars||t).palette.action.focus},["&.".concat(C.disabled)]:{opacity:(t.vars||t).palette.action.disabledOpacity},["& + .".concat(g.Z.root)]:{marginTop:t.spacing(1),marginBottom:t.spacing(1)},["& + .".concat(g.Z.inset)]:{marginLeft:52},["& .".concat(b.Z.root)]:{marginTop:0,marginBottom:0},["& .".concat(b.Z.inset)]:{paddingLeft:36},["& .".concat(m.Z.root)]:{minWidth:36}},!r.dense&&{[t.breakpoints.up("sm")]:{minHeight:"auto"}},r.dense&&(0,o.Z)({minHeight:32,paddingTop:4,paddingBottom:4},t.typography.body2,{["& .".concat(m.Z.root," svg")]:{fontSize:"1.25rem"}}))})),S=i.forwardRef((function(e,t){var r=(0,d.i)({props:e,name:"MuiMenuItem"}),{autoFocus:l=!1,component:c="li",dense:u=!1,divider:f=!1,disableGutters:g=!1,focusVisibleClassName:m,role:b="menuitem",tabIndex:y,className:A}=r,C=(0,n.Z)(r,x),S=i.useContext(p.Z),P=i.useMemo((()=>({dense:u||S.dense||!1,disableGutters:g})),[S.dense,u,g]),E=i.useRef(null);(0,h.Z)((()=>{l&&E.current&&E.current.focus()}),[l]);var O,M=(0,o.Z)({},r,{dense:P.dense,divider:f,disableGutters:g}),F=(e=>{var{disabled:t,dense:r,divider:n,disableGutters:i,selected:a,classes:l}=e,c={root:["root",r&&"dense",t&&"disabled",!i&&"gutters",n&&"divider",a&&"selected"]},u=(0,s.Z)(c,_,l);return(0,o.Z)({},l,u)})(r),R=(0,v.Z)(E,t);return r.disabled||(O=void 0!==y?y:-1),(0,w.jsx)(p.Z.Provider,{value:P,children:(0,w.jsx)(k,(0,o.Z)({ref:R,role:b,tabIndex:O,component:c,focusVisibleClassName:(0,a.Z)(F.focusVisible,m),className:(0,a.Z)(F.root,A)},C,{ownerState:M,classes:F}))})}))},47611:function(e,t,r){"use strict";r.d(t,{Z:function(){return m}});var n=r(92002),o=r(40629),i=r(21914),a=r(77036),s=r(6197),l=r(25619).Z,c=r(7023),u=r(30607),d=r(56552),p=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function f(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function h(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function v(e,t){if(void 0===t)return!0;var r=e.innerText;return void 0===r&&(r=e.textContent),0!==(r=r.trim().toLowerCase()).length&&(t.repeating?r[0]===t.keys[0]:0===r.indexOf(t.keys.join("")))}function g(e,t,r,n,o,i){for(var a=!1,s=o(e,t,!!t&&r);s;){if(s===e.firstChild){if(a)return!1;a=!0}var l=!n&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&v(s,i)&&!l)return s.focus(),!0;s=o(e,s,r)}return!1}var m=i.forwardRef((function(e,t){var{actions:r,autoFocus:m=!1,autoFocusItem:b=!1,children:y,className:A,disabledItemsFocusable:_=!1,disableListWrap:C=!1,onKeyDown:w,variant:x="selectedMenu"}=e,k=(0,o.Z)(e,p),S=i.useRef(null),P=i.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});(0,u.Z)((()=>{m&&S.current.focus()}),[m]),i.useImperativeHandle(r,(()=>({adjustStyleForScrollbar:(e,t)=>{var{direction:r}=t,n=!S.current.style.width;if(e.clientHeight{i.isValidElement(e)?(e.props.disabled||("selectedMenu"===x&&e.props.selected||-1===O)&&(O=t),O===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(O+=1)>=y.length&&(O=-1)):O===t&&(O+=1)>=y.length&&(O=-1)}));var M=i.Children.map(y,((e,t)=>{if(t===O){var r={};return b&&(r.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===x&&(r.tabIndex=0),i.cloneElement(e,r)}return e}));return(0,d.jsx)(s.Z,(0,n.Z)({role:"menu",ref:E,className:A,onKeyDown:e=>{var t=S.current,r=e.key,n=(0,a.Z)(t).activeElement;if("ArrowDown"===r)e.preventDefault(),g(t,n,C,_,f);else if("ArrowUp"===r)e.preventDefault(),g(t,n,C,_,h);else if("Home"===r)e.preventDefault(),g(t,null,C,_,f);else if("End"===r)e.preventDefault(),g(t,null,C,_,h);else if(1===r.length){var o=P.current,i=r.toLowerCase(),s=performance.now();o.keys.length>0&&(s-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=s,o.keys.push(i);var l=n&&!o.repeating&&v(n,o);o.previousKeyMatched&&(l||g(t,n,!1,_,f,o))?e.preventDefault():o.previousKeyMatched=!1}w&&w(e)},tabIndex:m?0:-1},k,{children:M}))}))},55104:function(e,t,r){"use strict";r.d(t,{Z:function(){return D}});var n=r(40629),o=r(92002),i=r(21914),a=r(16757),s=r(17521),l=r(83480),c=r(83310),u=r(835),d=r(24077),p=r(93319),f=r(65037),h=r(28774),v=r(32057),g=r(6670),m=r(95047),b=r(34392),y=r(54450),A=r(25619);function _(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function C(e){return parseInt((0,y.Z)(e).getComputedStyle(e).paddingRight,10)||0}function w(e,t,r,n,o){var i=[t,r,...n];[].forEach.call(e.children,(e=>{var t=-1===i.indexOf(e),r=!function(e){var t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),r="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||r}(e);t&&r&&_(e,o)}))}function x(e,t){var r=-1;return e.some(((e,n)=>!!t(e)&&(r=n,!0))),r}function k(e,t){var r=[],n=e.container;if(!t.disableScrollLock){if(function(e){var t=(0,v.Z)(e);return t.body===e?(0,y.Z)(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(n)){var o=(0,A.Z)((0,v.Z)(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight="".concat(C(n)+o,"px");var i=(0,v.Z)(n).querySelectorAll(".mui-fixed");[].forEach.call(i,(e=>{r.push({value:e.style.paddingRight,property:"padding-right",el:e}),e.style.paddingRight="".concat(C(e)+o,"px")}))}var a;if(n.parentNode instanceof DocumentFragment)a=(0,v.Z)(n).body;else{var s=n.parentElement,l=(0,y.Z)(n);a="HTML"===(null==s?void 0:s.nodeName)&&"scroll"===l.getComputedStyle(s).overflowY?s:n}r.push({value:a.style.overflow,property:"overflow",el:a},{value:a.style.overflowX,property:"overflow-x",el:a},{value:a.style.overflowY,property:"overflow-y",el:a}),a.style.overflow="hidden"}return()=>{r.forEach((e=>{var{value:t,el:r,property:n}=e;t?r.style.setProperty(n,t):r.style.removeProperty(n)}))}}var S=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){var r=this.modals.indexOf(e);if(-1!==r)return r;r=this.modals.length,this.modals.push(e),e.modalRef&&_(e.modalRef,!1);var n=function(e){var t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);w(t,e.mount,e.modalRef,n,!0);var o=x(this.containers,(e=>e.container===t));return-1!==o?(this.containers[o].modals.push(e),r):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:n}),r)}mount(e,t){var r=x(this.containers,(t=>-1!==t.modals.indexOf(e))),n=this.containers[r];n.restore||(n.restore=k(n,t))}remove(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=this.modals.indexOf(e);if(-1===r)return r;var n=x(this.containers,(t=>-1!==t.modals.indexOf(e))),o=this.containers[n];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(r,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&_(e.modalRef,t),w(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(n,1);else{var i=o.modals[o.modals.length-1];i.modalRef&&_(i.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};var P=function(e){var{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:a=S,closeAfterTransition:s=!1,onTransitionEnter:l,onTransitionExited:c,children:u,onClose:d,open:p,rootRef:f}=e,y=i.useRef({}),A=i.useRef(null),C=i.useRef(null),w=(0,h.Z)(C,f),[x,k]=i.useState(!p),P=function(e){return!!e&&e.props.hasOwnProperty("in")}(u),E=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(E=!1);var O=()=>(y.current.modalRef=C.current,y.current.mount=A.current,y.current),M=()=>{a.mount(O(),{disableScrollLock:n}),C.current&&(C.current.scrollTop=0)},F=(0,g.Z)((()=>{var e=function(e){return"function"===typeof e?e():e}(t)||(0,v.Z)(A.current).body;a.add(O(),e),C.current&&M()})),R=i.useCallback((()=>a.isTopModal(O())),[a]),T=(0,g.Z)((e=>{A.current=e,e&&(p&&R()?M():C.current&&_(C.current,E))})),I=i.useCallback((()=>{a.remove(O(),E)}),[E,a]);i.useEffect((()=>()=>{I()}),[I]),i.useEffect((()=>{p?F():P&&s||I()}),[p,I,P,s,F]);var D=e=>t=>{var n;null==(n=e.onKeyDown)||n.call(e,t),"Escape"===t.key&&229!==t.which&&R()&&(r||(t.stopPropagation(),d&&d(t,"escapeKeyDown")))},j=e=>t=>{var r;null==(r=e.onClick)||r.call(e,t),t.target===t.currentTarget&&d&&d(t,"backdropClick")};return{getRootProps:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=(0,b.Z)(e);delete r.onTransitionEnter,delete r.onTransitionExited;var n=(0,o.Z)({},r,t);return(0,o.Z)({role:"presentation"},n,{onKeyDown:D(n),ref:w})},getBackdropProps:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,o.Z)({"aria-hidden":!0},e,{onClick:j(e),open:p})},getTransitionProps:()=>({onEnter:(0,m.Z)((()=>{k(!1),l&&l()}),null==u?void 0:u.props.onEnter),onExited:(0,m.Z)((()=>{k(!0),c&&c(),s&&I()}),null==u?void 0:u.props.onExited)}),rootRef:w,portalRef:T,isTopModal:R,exited:x,hasTransition:P}},E=r(10742),O=r(90627);function M(e){return(0,O.ZP)("MuiModal",e)}(0,E.Z)("MuiModal",["root","hidden","backdrop"]);var F=r(56552),R=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],T=(0,d.ZP)("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})((e=>{var{theme:t,ownerState:r}=e;return(0,o.Z)({position:"fixed",zIndex:(t.vars||t).zIndex.modal,right:0,bottom:0,top:0,left:0},!r.open&&r.exited&&{visibility:"hidden"})})),I=(0,d.ZP)(f.Z,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),D=i.forwardRef((function(e,t){var r,d,f,h,v,g,m=(0,p.i)({name:"MuiModal",props:e}),{BackdropComponent:b=I,BackdropProps:y,className:A,closeAfterTransition:_=!1,children:C,container:w,component:x,components:k={},componentsProps:S={},disableAutoFocus:E=!1,disableEnforceFocus:O=!1,disableEscapeKeyDown:D=!1,disablePortal:j=!1,disableRestoreFocus:B=!1,disableScrollLock:L=!1,hideBackdrop:Z=!1,keepMounted:N=!1,onBackdropClick:G,open:z,slotProps:W,slots:U}=m,q=(0,n.Z)(m,R),V=(0,o.Z)({},m,{closeAfterTransition:_,disableAutoFocus:E,disableEnforceFocus:O,disableEscapeKeyDown:D,disablePortal:j,disableRestoreFocus:B,disableScrollLock:L,hideBackdrop:Z,keepMounted:N}),{getRootProps:H,getBackdropProps:K,getTransitionProps:Y,portalRef:$,isTopModal:X,exited:Q,hasTransition:J}=P((0,o.Z)({},V,{rootRef:t})),ee=(0,o.Z)({},V,{exited:Q}),te=(e=>{var{open:t,exited:r,classes:n}=e,o={root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]};return(0,s.Z)(o,M,n)})(ee),re={};if(void 0===C.props.tabIndex&&(re.tabIndex="-1"),J){var{onEnter:ne,onExited:oe}=Y();re.onEnter=ne,re.onExited=oe}var ie=null!=(r=null!=(d=null==U?void 0:U.root)?d:k.Root)?r:T,ae=null!=(f=null!=(h=null==U?void 0:U.backdrop)?h:k.Backdrop)?f:b,se=null!=(v=null==W?void 0:W.root)?v:S.root,le=null!=(g=null==W?void 0:W.backdrop)?g:S.backdrop,ce=(0,l.Z)({elementType:ie,externalSlotProps:se,externalForwardedProps:q,getSlotProps:H,additionalProps:{ref:t,as:x},ownerState:ee,className:(0,a.Z)(A,null==se?void 0:se.className,null==te?void 0:te.root,!ee.open&&ee.exited&&(null==te?void 0:te.hidden))}),ue=(0,l.Z)({elementType:ae,externalSlotProps:le,additionalProps:y,getSlotProps:e=>K((0,o.Z)({},e,{onClick:t=>{G&&G(t),null!=e&&e.onClick&&e.onClick(t)}})),className:(0,a.Z)(null==le?void 0:le.className,null==y?void 0:y.className,null==te?void 0:te.backdrop),ownerState:ee});return N||z||J&&!Q?(0,F.jsx)(u.Z,{ref:$,container:w,disablePortal:j,children:(0,F.jsxs)(ie,(0,o.Z)({},ce,{children:[!Z&&b?(0,F.jsx)(ae,(0,o.Z)({},ue)):null,(0,F.jsx)(c.Z,{disableEnforceFocus:O,disableAutoFocus:E,disableRestoreFocus:B,isEnabled:X,open:z,children:i.cloneElement(C,re)})]}))}):null}))},47628:function(e,t,r){"use strict";r.d(t,{Z:function(){return x}});var n,o=r(40629),i=r(92002),a=r(21914),s=r(17521),l=r(24077),c=r(65669),u=r(56552),d=["children","classes","className","label","notched"],p=(0,l.ZP)("fieldset",{shouldForwardProp:c.Z})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),f=(0,l.ZP)("legend",{shouldForwardProp:c.Z})((e=>{var{ownerState:t,theme:r}=e;return(0,i.Z)({float:"unset",width:"auto",overflow:"hidden"},!t.withLabel&&{padding:0,lineHeight:"11px",transition:r.transitions.create("width",{duration:150,easing:r.transitions.easing.easeOut})},t.withLabel&&(0,i.Z)({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:r.transitions.create("max-width",{duration:50,easing:r.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},t.notched&&{maxWidth:"100%",transition:r.transitions.create("max-width",{duration:100,easing:r.transitions.easing.easeOut,delay:50})}))}));var h=r(73028),v=r(31877),g=r(48974),m=r(48237),b=r(93319),y=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],A=(0,l.ZP)(m.Ej,{shouldForwardProp:e=>(0,c.Z)(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:m.Gx})((e=>{var{theme:t,ownerState:r}=e,n="light"===t.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return(0,i.Z)({position:"relative",borderRadius:(t.vars||t).shape.borderRadius,["&:hover .".concat(g.Z.notchedOutline)]:{borderColor:(t.vars||t).palette.text.primary},"@media (hover: none)":{["&:hover .".concat(g.Z.notchedOutline)]:{borderColor:t.vars?"rgba(".concat(t.vars.palette.common.onBackgroundChannel," / 0.23)"):n}},["&.".concat(g.Z.focused," .").concat(g.Z.notchedOutline)]:{borderColor:(t.vars||t).palette[r.color].main,borderWidth:2},["&.".concat(g.Z.error," .").concat(g.Z.notchedOutline)]:{borderColor:(t.vars||t).palette.error.main},["&.".concat(g.Z.disabled," .").concat(g.Z.notchedOutline)]:{borderColor:(t.vars||t).palette.action.disabled}},r.startAdornment&&{paddingLeft:14},r.endAdornment&&{paddingRight:14},r.multiline&&(0,i.Z)({padding:"16.5px 14px"},"small"===r.size&&{padding:"8.5px 14px"}))})),_=(0,l.ZP)((function(e){var{className:t,label:r,notched:a}=e,s=(0,o.Z)(e,d),l=null!=r&&""!==r,c=(0,i.Z)({},e,{notched:a,withLabel:l});return(0,u.jsx)(p,(0,i.Z)({"aria-hidden":!0,className:t,ownerState:c},s,{children:(0,u.jsx)(f,{ownerState:c,children:l?(0,u.jsx)("span",{children:r}):n||(n=(0,u.jsx)("span",{className:"notranslate",children:"\u200b"}))})}))}),{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})((e=>{var{theme:t}=e,r="light"===t.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:t.vars?"rgba(".concat(t.vars.palette.common.onBackgroundChannel," / 0.23)"):r}})),C=(0,l.ZP)(m.rA,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:m._o})((e=>{var{theme:t,ownerState:r}=e;return(0,i.Z)({padding:"16.5px 14px"},!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===t.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===t.palette.mode?null:"#fff",caretColor:"light"===t.palette.mode?null:"#fff",borderRadius:"inherit"}},t.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===r.size&&{padding:"8.5px 14px"},r.multiline&&{padding:0},r.startAdornment&&{paddingLeft:0},r.endAdornment&&{paddingRight:0})})),w=a.forwardRef((function(e,t){var r,n,l,c,d,p=(0,b.i)({props:e,name:"MuiOutlinedInput"}),{components:f={},fullWidth:w=!1,inputComponent:x="input",label:k,multiline:S=!1,notched:P,slots:E={},type:O="text"}=p,M=(0,o.Z)(p,y),F=(e=>{var{classes:t}=e,r=(0,s.Z)({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},g.e,t);return(0,i.Z)({},t,r)})(p),R=(0,h.Z)(),T=(0,v.Z)({props:p,muiFormControl:R,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),I=(0,i.Z)({},p,{color:T.color||"primary",disabled:T.disabled,error:T.error,focused:T.focused,formControl:R,fullWidth:w,hiddenLabel:T.hiddenLabel,multiline:S,size:T.size,type:O}),D=null!=(r=null!=(n=E.root)?n:f.Root)?r:A,j=null!=(l=null!=(c=E.input)?c:f.Input)?l:C;return(0,u.jsx)(m.ZP,(0,i.Z)({slots:{root:D,input:j},renderSuffix:e=>(0,u.jsx)(_,{ownerState:I,className:F.notchedOutline,label:null!=k&&""!==k&&T.required?d||(d=(0,u.jsxs)(a.Fragment,{children:[k,"\u2009","*"]})):k,notched:"undefined"!==typeof P?P:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:w,inputComponent:x,multiline:S,ref:t,type:O},M,{classes:(0,i.Z)({},F,{notchedOutline:null})}))}));w.muiName="Input";var x=w},48974:function(e,t,r){"use strict";r.d(t,{e:function(){return s}});var n=r(92002),o=r(10742),i=r(90627),a=r(62010);function s(e){return(0,i.ZP)("MuiOutlinedInput",e)}var l=(0,n.Z)({},a.Z,(0,o.Z)("MuiOutlinedInput",["root","notchedOutline","input"]));t.Z=l},74128:function(e,t,r){"use strict";r.d(t,{Z:function(){return C}});var n=r(92002),o=r(40629),i=r(21914),a=r(16757),s=r(17521),l=r(93319),c=r(10742),u=r(90627);function d(e){return(0,u.ZP)("MuiPagination",e)}(0,c.Z)("MuiPagination",["root","ul","outlined","text"]);var p=r(43969),f=["boundaryCount","componentName","count","defaultPage","disabled","hideNextButton","hidePrevButton","onChange","page","showFirstButton","showLastButton","siblingCount"];var h=r(81797),v=r(24077),g=r(56552),m=["boundaryCount","className","color","count","defaultPage","disabled","getItemAriaLabel","hideNextButton","hidePrevButton","onChange","page","renderItem","shape","showFirstButton","showLastButton","siblingCount","size","variant"],b=(0,v.ZP)("nav",{name:"MuiPagination",slot:"Root",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[t.root,t[r.variant]]}})({}),y=(0,v.ZP)("ul",{name:"MuiPagination",slot:"Ul",overridesResolver:(e,t)=>t.ul})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"});function A(e,t,r){return"page"===e?"".concat(r?"":"Go to ","page ").concat(t):"Go to ".concat(e," page")}var _=i.forwardRef((function(e,t){var r=(0,l.i)({props:e,name:"MuiPagination"}),{boundaryCount:i=1,className:c,color:u="standard",count:v=1,defaultPage:_=1,disabled:C=!1,getItemAriaLabel:w=A,hideNextButton:x=!1,hidePrevButton:k=!1,renderItem:S=(e=>(0,g.jsx)(h.Z,(0,n.Z)({},e))),shape:P="circular",showFirstButton:E=!1,showLastButton:O=!1,siblingCount:M=1,size:F="medium",variant:R="text"}=r,T=(0,o.Z)(r,m),{items:I}=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{boundaryCount:t=1,componentName:r="usePagination",count:i=1,defaultPage:a=1,disabled:s=!1,hideNextButton:l=!1,hidePrevButton:c=!1,onChange:u,page:d,showFirstButton:h=!1,showLastButton:v=!1,siblingCount:g=1}=e,m=(0,o.Z)(e,f),[b,y]=(0,p.Z)({controlled:d,default:a,name:r,state:"page"}),A=(e,t)=>{d||y(t),u&&u(e,t)},_=(e,t)=>{var r=t-e+1;return Array.from({length:r},((t,r)=>e+r))},C=_(1,Math.min(t,i)),w=_(Math.max(i-t+1,t+1),i),x=Math.max(Math.min(b-g,i-t-2*g-1),t+2),k=Math.min(Math.max(b+g,t+2*g+2),w.length>0?w[0]-2:i-1),S=[...h?["first"]:[],...c?[]:["previous"],...C,...x>t+2?["start-ellipsis"]:t+1t?[i-t]:[],...w,...l?[]:["next"],...v?["last"]:[]],P=e=>{switch(e){case"first":return 1;case"previous":return b-1;case"next":return b+1;case"last":return i;default:return null}},E=S.map((e=>"number"===typeof e?{onClick:t=>{A(t,e)},type:"page",page:e,selected:e===b,disabled:s,"aria-current":e===b?"true":void 0}:{onClick:t=>{A(t,P(e))},type:e,page:P(e),selected:!1,disabled:s||-1===e.indexOf("ellipsis")&&("next"===e||"last"===e?b>=i:b<=1)}));return(0,n.Z)({items:E},m)}((0,n.Z)({},r,{componentName:"Pagination"})),D=(0,n.Z)({},r,{boundaryCount:i,color:u,count:v,defaultPage:_,disabled:C,getItemAriaLabel:w,hideNextButton:x,hidePrevButton:k,renderItem:S,shape:P,showFirstButton:E,showLastButton:O,siblingCount:M,size:F,variant:R}),j=(e=>{var{classes:t,variant:r}=e,n={root:["root",r],ul:["ul"]};return(0,s.Z)(n,d,t)})(D);return(0,g.jsx)(b,(0,n.Z)({"aria-label":"pagination navigation",className:(0,a.Z)(j.root,c),ownerState:D,ref:t},T,{children:(0,g.jsx)(y,{className:j.ul,ownerState:D,children:I.map(((e,t)=>(0,g.jsx)("li",{children:S((0,n.Z)({},e,{color:u,"aria-label":w(e.type,e.page,e.selected),shape:P,size:F,variant:R}))},t)))})}))})),C=_},81797:function(e,t,r){"use strict";r.d(t,{Z:function(){return O}});var n=r(40629),o=r(92002),i=r(21914),a=r(16757),s=r(17521),l=r(20760),c=r(34972),u=r(93319),d=r(10742),p=r(90627);function f(e){return(0,p.ZP)("MuiPaginationItem",e)}var h=(0,d.Z)("MuiPaginationItem",["root","page","sizeSmall","sizeLarge","text","textPrimary","textSecondary","outlined","outlinedPrimary","outlinedSecondary","rounded","ellipsis","firstLast","previousNext","focusVisible","disabled","selected","icon","colorPrimary","colorSecondary"]),v=r(94956),g=r(81772),m=r(7511),b=r(98958),y=r(44326),A=r(56552),_=(0,y.Z)((0,A.jsx)("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"NavigateBefore"),C=(0,y.Z)((0,A.jsx)("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"NavigateNext"),w=r(24077),x=["className","color","component","components","disabled","page","selected","shape","size","slots","type","variant"],k=(e,t)=>{var{ownerState:r}=e;return[t.root,t[r.variant],t["size".concat((0,g.Z)(r.size))],"text"===r.variant&&t["text".concat((0,g.Z)(r.color))],"outlined"===r.variant&&t["outlined".concat((0,g.Z)(r.color))],"rounded"===r.shape&&t.rounded,"page"===r.type&&t.page,("start-ellipsis"===r.type||"end-ellipsis"===r.type)&&t.ellipsis,("previous"===r.type||"next"===r.type)&&t.previousNext,("first"===r.type||"last"===r.type)&&t.firstLast]},S=(0,w.ZP)("div",{name:"MuiPaginationItem",slot:"Root",overridesResolver:k})((e=>{var{theme:t,ownerState:r}=e;return(0,o.Z)({},t.typography.body2,{borderRadius:16,textAlign:"center",boxSizing:"border-box",minWidth:32,padding:"0 6px",margin:"0 3px",color:(t.vars||t).palette.text.primary,height:"auto",["&.".concat(h.disabled)]:{opacity:(t.vars||t).palette.action.disabledOpacity}},"small"===r.size&&{minWidth:26,borderRadius:13,margin:"0 1px",padding:"0 4px"},"large"===r.size&&{minWidth:40,borderRadius:20,padding:"0 10px",fontSize:t.typography.pxToRem(15)})})),P=(0,w.ZP)(v.Z,{name:"MuiPaginationItem",slot:"Root",overridesResolver:k})((e=>{var{theme:t,ownerState:r}=e;return(0,o.Z)({},t.typography.body2,{borderRadius:16,textAlign:"center",boxSizing:"border-box",minWidth:32,height:32,padding:"0 6px",margin:"0 3px",color:(t.vars||t).palette.text.primary,["&.".concat(h.focusVisible)]:{backgroundColor:(t.vars||t).palette.action.focus},["&.".concat(h.disabled)]:{opacity:(t.vars||t).palette.action.disabledOpacity},transition:t.transitions.create(["color","background-color"],{duration:t.transitions.duration.short}),"&:hover":{backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},["&.".concat(h.selected)]:{backgroundColor:(t.vars||t).palette.action.selected,"&:hover":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.action.selectedChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.hoverOpacity,"))"):(0,l.Fq)(t.palette.action.selected,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(t.vars||t).palette.action.selected}},["&.".concat(h.focusVisible)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.action.selectedChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.focusOpacity,"))"):(0,l.Fq)(t.palette.action.selected,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)},["&.".concat(h.disabled)]:{opacity:1,color:(t.vars||t).palette.action.disabled,backgroundColor:(t.vars||t).palette.action.selected}}},"small"===r.size&&{minWidth:26,height:26,borderRadius:13,margin:"0 1px",padding:"0 4px"},"large"===r.size&&{minWidth:40,height:40,borderRadius:20,padding:"0 10px",fontSize:t.typography.pxToRem(15)},"rounded"===r.shape&&{borderRadius:(t.vars||t).shape.borderRadius})}),(e=>{var{theme:t,ownerState:r}=e;return(0,o.Z)({},"text"===r.variant&&{["&.".concat(h.selected)]:(0,o.Z)({},"standard"!==r.color&&{color:(t.vars||t).palette[r.color].contrastText,backgroundColor:(t.vars||t).palette[r.color].main,"&:hover":{backgroundColor:(t.vars||t).palette[r.color].dark,"@media (hover: none)":{backgroundColor:(t.vars||t).palette[r.color].main}},["&.".concat(h.focusVisible)]:{backgroundColor:(t.vars||t).palette[r.color].dark}},{["&.".concat(h.disabled)]:{color:(t.vars||t).palette.action.disabled}})},"outlined"===r.variant&&{border:t.vars?"1px solid rgba(".concat(t.vars.palette.common.onBackgroundChannel," / 0.23)"):"1px solid ".concat("light"===t.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),["&.".concat(h.selected)]:(0,o.Z)({},"standard"!==r.color&&{color:(t.vars||t).palette[r.color].main,border:"1px solid ".concat(t.vars?"rgba(".concat(t.vars.palette[r.color].mainChannel," / 0.5)"):(0,l.Fq)(t.palette[r.color].main,.5)),backgroundColor:t.vars?"rgba(".concat(t.vars.palette[r.color].mainChannel," / ").concat(t.vars.palette.action.activatedOpacity,")"):(0,l.Fq)(t.palette[r.color].main,t.palette.action.activatedOpacity),"&:hover":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette[r.color].mainChannel," / calc(").concat(t.vars.palette.action.activatedOpacity," + ").concat(t.vars.palette.action.focusOpacity,"))"):(0,l.Fq)(t.palette[r.color].main,t.palette.action.activatedOpacity+t.palette.action.focusOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},["&.".concat(h.focusVisible)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette[r.color].mainChannel," / calc(").concat(t.vars.palette.action.activatedOpacity," + ").concat(t.vars.palette.action.focusOpacity,"))"):(0,l.Fq)(t.palette[r.color].main,t.palette.action.activatedOpacity+t.palette.action.focusOpacity)}},{["&.".concat(h.disabled)]:{borderColor:(t.vars||t).palette.action.disabledBackground,color:(t.vars||t).palette.action.disabled}})})})),E=(0,w.ZP)("div",{name:"MuiPaginationItem",slot:"Icon",overridesResolver:(e,t)=>t.icon})((e=>{var{theme:t,ownerState:r}=e;return(0,o.Z)({fontSize:t.typography.pxToRem(20),margin:"0 -8px"},"small"===r.size&&{fontSize:t.typography.pxToRem(18)},"large"===r.size&&{fontSize:t.typography.pxToRem(22)})})),O=i.forwardRef((function(e,t){var r=(0,u.i)({props:e,name:"MuiPaginationItem"}),{className:i,color:l="standard",component:d,components:p={},disabled:h=!1,page:v,selected:y=!1,shape:w="circular",size:k="medium",slots:O={},type:M="page",variant:F="text"}=r,R=(0,n.Z)(r,x),T=(0,o.Z)({},r,{color:l,disabled:h,selected:y,shape:w,size:k,type:M,variant:F}),I=(0,c.V)(),D=(e=>{var{classes:t,color:r,disabled:n,selected:o,size:i,shape:a,type:l,variant:c}=e,u={root:["root","size".concat((0,g.Z)(i)),c,a,"standard"!==r&&"color".concat((0,g.Z)(r)),"standard"!==r&&"".concat(c).concat((0,g.Z)(r)),n&&"disabled",o&&"selected",{page:"page",first:"firstLast",last:"firstLast","start-ellipsis":"ellipsis","end-ellipsis":"ellipsis",previous:"previousNext",next:"previousNext"}[l]],icon:["icon"]};return(0,s.Z)(u,f,t)})(T),j=(I?{previous:O.next||p.next||C,next:O.previous||p.previous||_,last:O.first||p.first||m.Z,first:O.last||p.last||b.Z}:{previous:O.previous||p.previous||_,next:O.next||p.next||C,first:O.first||p.first||m.Z,last:O.last||p.last||b.Z})[M];return"start-ellipsis"===M||"end-ellipsis"===M?(0,A.jsx)(S,{ref:t,ownerState:T,className:(0,a.Z)(D.root,i),children:"\u2026"}):(0,A.jsxs)(P,(0,o.Z)({ref:t,ownerState:T,component:d,disabled:h,className:(0,a.Z)(D.root,i)},R,{children:["page"===M&&v,j?(0,A.jsx)(E,{as:j,ownerState:T,className:D.icon}):null]}))}))},37395:function(e,t,r){"use strict";r.d(t,{Z:function(){return b}});var n=r(40629),o=r(92002),i=r(21914),a=r(16757),s=r(17521),l=r(20760),c=r(24077),u=e=>((e<1?5.11916*e**2:4.5*Math.log(e+1)+2)/100).toFixed(2),d=r(93319),p=r(10742),f=r(90627);function h(e){return(0,f.ZP)("MuiPaper",e)}(0,p.Z)("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);var v=r(56552),g=["className","component","elevation","square","variant"],m=(0,c.ZP)("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,"elevation"===r.variant&&t["elevation".concat(r.elevation)]]}})((e=>{var t,{theme:r,ownerState:n}=e;return(0,o.Z)({backgroundColor:(r.vars||r).palette.background.paper,color:(r.vars||r).palette.text.primary,transition:r.transitions.create("box-shadow")},!n.square&&{borderRadius:r.shape.borderRadius},"outlined"===n.variant&&{border:"1px solid ".concat((r.vars||r).palette.divider)},"elevation"===n.variant&&(0,o.Z)({boxShadow:(r.vars||r).shadows[n.elevation]},!r.vars&&"dark"===r.palette.mode&&{backgroundImage:"linear-gradient(".concat((0,l.Fq)("#fff",u(n.elevation)),", ").concat((0,l.Fq)("#fff",u(n.elevation)),")")},r.vars&&{backgroundImage:null==(t=r.vars.overlays)?void 0:t[n.elevation]}))})),b=i.forwardRef((function(e,t){var r=(0,d.i)({props:e,name:"MuiPaper"}),{className:i,component:l="div",elevation:c=1,square:u=!1,variant:p="elevation"}=r,f=(0,n.Z)(r,g),b=(0,o.Z)({},r,{component:l,elevation:c,square:u,variant:p}),y=(e=>{var{square:t,elevation:r,variant:n,classes:o}=e,i={root:["root",n,!t&&"rounded","elevation"===n&&"elevation".concat(r)]};return(0,s.Z)(i,h,o)})(b);return(0,v.jsx)(m,(0,o.Z)({as:l,ownerState:b,className:(0,a.Z)(y.root,i),ref:t},f))}))},50970:function(e,t,r){"use strict";r.d(t,{XS:function(){return F},ZP:function(){return R}});var n=r(92002),o=r(40629),i=r(21914),a=r(16757),s=r(17521),l=r(83480),c=r(59576),u=r(24077),d=r(93319),p=r(38822),f=r(77036),h=r(67171),v=r(7023),g=r(26794),m=r(55104),b=r(37395),y=r(10742),A=r(90627);function _(e){return(0,A.ZP)("MuiPopover",e)}(0,y.Z)("MuiPopover",["root","paper"]);var C=r(56552),w=["onEntering"],x=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],k=["slotProps"];function S(e,t){var r=0;return"number"===typeof t?r=t:"center"===t?r=e.height/2:"bottom"===t&&(r=e.height),r}function P(e,t){var r=0;return"number"===typeof t?r=t:"center"===t?r=e.width/2:"right"===t&&(r=e.width),r}function E(e){return[e.horizontal,e.vertical].map((e=>"number"===typeof e?"".concat(e,"px"):e)).join(" ")}function O(e){return"function"===typeof e?e():e}var M=(0,u.ZP)(m.Z,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),F=(0,u.ZP)(b.Z,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),R=i.forwardRef((function(e,t){var r,u,m,b=(0,d.i)({props:e,name:"MuiPopover"}),{action:y,anchorEl:A,anchorOrigin:R={vertical:"top",horizontal:"left"},anchorPosition:T,anchorReference:I="anchorEl",children:D,className:j,container:B,elevation:L=8,marginThreshold:Z=16,open:N,PaperProps:G={},slots:z,slotProps:W,transformOrigin:U={vertical:"top",horizontal:"left"},TransitionComponent:q=g.Z,transitionDuration:V="auto",TransitionProps:{onEntering:H}={},disableScrollLock:K=!1}=b,Y=(0,o.Z)(b.TransitionProps,w),$=(0,o.Z)(b,x),X=null!=(r=null==W?void 0:W.paper)?r:G,Q=i.useRef(),J=(0,v.Z)(Q,X.ref),ee=(0,n.Z)({},b,{anchorOrigin:R,anchorReference:I,elevation:L,marginThreshold:Z,externalPaperSlotProps:X,transformOrigin:U,TransitionComponent:q,transitionDuration:V,TransitionProps:Y}),te=(e=>{var{classes:t}=e;return(0,s.Z)({root:["root"],paper:["paper"]},_,t)})(ee),re=i.useCallback((()=>{if("anchorPosition"===I)return T;var e=O(A),t=(e&&1===e.nodeType?e:(0,f.Z)(Q.current).body).getBoundingClientRect();return{top:t.top+S(t,R.vertical),left:t.left+P(t,R.horizontal)}}),[A,R.horizontal,R.vertical,T,I]),ne=i.useCallback((e=>({vertical:S(e,U.vertical),horizontal:P(e,U.horizontal)})),[U.horizontal,U.vertical]),oe=i.useCallback((e=>{var t={width:e.offsetWidth,height:e.offsetHeight},r=ne(t);if("none"===I)return{top:null,left:null,transformOrigin:E(r)};var n=re(),o=n.top-r.vertical,i=n.left-r.horizontal,a=o+t.height,s=i+t.width,l=(0,h.Z)(O(A)),c=l.innerHeight-Z,u=l.innerWidth-Z;if(null!==Z&&oc){var p=a-c;o-=p,r.vertical+=p}if(null!==Z&&iu){var v=s-u;i-=v,r.horizontal+=v}return{top:"".concat(Math.round(o),"px"),left:"".concat(Math.round(i),"px"),transformOrigin:E(r)}}),[A,I,re,ne,Z]),[ie,ae]=i.useState(N),se=i.useCallback((()=>{var e=Q.current;if(e){var t=oe(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,ae(!0)}}),[oe]);i.useEffect((()=>(K&&window.addEventListener("scroll",se),()=>window.removeEventListener("scroll",se))),[A,K,se]);i.useEffect((()=>{N&&se()})),i.useImperativeHandle(y,(()=>N?{updatePosition:()=>{se()}}:null),[N,se]),i.useEffect((()=>{if(N){var e=(0,p.Z)((()=>{se()})),t=(0,h.Z)(A);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}}),[A,N,se]);var le=V;"auto"!==V||q.muiSupportAuto||(le=void 0);var ce=B||(A?(0,f.Z)(O(A)).body:void 0),ue=null!=(u=null==z?void 0:z.root)?u:M,de=null!=(m=null==z?void 0:z.paper)?m:F,pe=(0,l.Z)({elementType:de,externalSlotProps:(0,n.Z)({},X,{style:ie?X.style:(0,n.Z)({},X.style,{opacity:0})}),additionalProps:{elevation:L,ref:J},ownerState:ee,className:(0,a.Z)(te.paper,null==X?void 0:X.className)}),fe=(0,l.Z)({elementType:ue,externalSlotProps:(null==W?void 0:W.root)||{},externalForwardedProps:$,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:ce,open:N},ownerState:ee,className:(0,a.Z)(te.root,j)}),{slotProps:he}=fe,ve=(0,o.Z)(fe,k);return(0,C.jsx)(ue,(0,n.Z)({},ve,!(0,c.Z)(ue)&&{slotProps:he,disableScrollLock:K},{children:(0,C.jsx)(q,(0,n.Z)({appear:!0,in:N,onEntering:(e,t)=>{H&&H(e,t),se()},onExited:()=>{ae(!1)},timeout:le},Y,{children:(0,C.jsx)(de,(0,n.Z)({},pe,{children:D}))}))}))}))},80594:function(e,t,r){"use strict";r.d(t,{Z:function(){return We}});var n=r(92002),o=r(40629),i=r(97805),a=r(21914),s=r(28774),l=r(54123),c=r(32057);function u(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function d(e){return e instanceof u(e).Element||e instanceof Element}function p(e){return e instanceof u(e).HTMLElement||e instanceof HTMLElement}function f(e){return"undefined"!==typeof ShadowRoot&&(e instanceof u(e).ShadowRoot||e instanceof ShadowRoot)}var h=Math.max,v=Math.min,g=Math.round;function m(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function b(){return!/^((?!chrome|android).)*safari/i.test(m())}function y(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=!1);var n=e.getBoundingClientRect(),o=1,i=1;t&&p(e)&&(o=e.offsetWidth>0&&g(n.width)/e.offsetWidth||1,i=e.offsetHeight>0&&g(n.height)/e.offsetHeight||1);var a=(d(e)?u(e):window).visualViewport,s=!b()&&r,l=(n.left+(s&&a?a.offsetLeft:0))/o,c=(n.top+(s&&a?a.offsetTop:0))/i,f=n.width/o,h=n.height/i;return{width:f,height:h,top:c,right:l+f,bottom:c+h,left:l,x:l,y:c}}function A(e){var t=u(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function _(e){return e?(e.nodeName||"").toLowerCase():null}function C(e){return((d(e)?e.ownerDocument:e.document)||window.document).documentElement}function w(e){return y(C(e)).left+A(e).scrollLeft}function x(e){return u(e).getComputedStyle(e)}function k(e){var t=x(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function S(e,t,r){void 0===r&&(r=!1);var n=p(t),o=p(t)&&function(e){var t=e.getBoundingClientRect(),r=g(t.width)/e.offsetWidth||1,n=g(t.height)/e.offsetHeight||1;return 1!==r||1!==n}(t),i=C(t),a=y(e,o,r),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(n||!n&&!r)&&(("body"!==_(t)||k(i))&&(s=function(e){return e!==u(e)&&p(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:A(e);var t}(t)),p(t)?((l=y(t,!0)).x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=w(i))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function P(e){var t=y(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function E(e){return"html"===_(e)?e:e.assignedSlot||e.parentNode||(f(e)?e.host:null)||C(e)}function O(e){return["html","body","#document"].indexOf(_(e))>=0?e.ownerDocument.body:p(e)&&k(e)?e:O(E(e))}function M(e,t){var r;void 0===t&&(t=[]);var n=O(e),o=n===(null==(r=e.ownerDocument)?void 0:r.body),i=u(n),a=o?[i].concat(i.visualViewport||[],k(n)?n:[]):n,s=t.concat(a);return o?s:s.concat(M(E(a)))}function F(e){return["table","td","th"].indexOf(_(e))>=0}function R(e){return p(e)&&"fixed"!==x(e).position?e.offsetParent:null}function T(e){for(var t=u(e),r=R(e);r&&F(r)&&"static"===x(r).position;)r=R(r);return r&&("html"===_(r)||"body"===_(r)&&"static"===x(r).position)?t:r||function(e){var t=/firefox/i.test(m());if(/Trident/i.test(m())&&p(e)&&"fixed"===x(e).position)return null;var r=E(e);for(f(r)&&(r=r.host);p(r)&&["html","body"].indexOf(_(r))<0;){var n=x(r);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||t&&"filter"===n.willChange||t&&n.filter&&"none"!==n.filter)return r;r=r.parentNode}return null}(e)||t}var I="top",D="bottom",j="right",B="left",L="auto",Z=[I,D,j,B],N="start",G="end",z="clippingParents",W="viewport",U="popper",q="reference",V=Z.reduce((function(e,t){return e.concat([t+"-"+N,t+"-"+G])}),[]),H=[].concat(Z,[L]).reduce((function(e,t){return e.concat([t,t+"-"+N,t+"-"+G])}),[]),K=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Y(e){var t=new Map,r=new Set,n=[];function o(e){r.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!r.has(e)){var n=t.get(e);n&&o(n)}})),n.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){r.has(e.name)||o(e)})),n}function $(e){var t;return function(){return t||(t=new Promise((function(r){Promise.resolve().then((function(){t=void 0,r(e())}))}))),t}}var X={placement:"bottom",modifiers:[],strategy:"absolute"};function Q(){for(var e=arguments.length,t=new Array(e),r=0;r=0?"x":"y"}function oe(e){var t,r=e.reference,n=e.element,o=e.placement,i=o?te(o):null,a=o?re(o):null,s=r.x+r.width/2-n.width/2,l=r.y+r.height/2-n.height/2;switch(i){case I:t={x:s,y:r.y-n.height};break;case D:t={x:s,y:r.y+r.height};break;case j:t={x:r.x+r.width,y:l};break;case B:t={x:r.x-n.width,y:l};break;default:t={x:r.x,y:r.y}}var c=i?ne(i):null;if(null!=c){var u="y"===c?"height":"width";switch(a){case N:t[c]=t[c]-(r[u]/2-n[u]/2);break;case G:t[c]=t[c]+(r[u]/2-n[u]/2)}}return t}var ie={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ae(e){var t,r=e.popper,n=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,d=e.roundOffsets,p=e.isFixed,f=a.x,h=void 0===f?0:f,v=a.y,m=void 0===v?0:v,b="function"===typeof d?d({x:h,y:m}):{x:h,y:m};h=b.x,m=b.y;var y=a.hasOwnProperty("x"),A=a.hasOwnProperty("y"),_=B,w=I,k=window;if(c){var S=T(r),P="clientHeight",E="clientWidth";if(S===u(r)&&"static"!==x(S=C(r)).position&&"absolute"===s&&(P="scrollHeight",E="scrollWidth"),o===I||(o===B||o===j)&&i===G)w=D,m-=(p&&S===k&&k.visualViewport?k.visualViewport.height:S[P])-n.height,m*=l?1:-1;if(o===B||(o===I||o===D)&&i===G)_=j,h-=(p&&S===k&&k.visualViewport?k.visualViewport.width:S[E])-n.width,h*=l?1:-1}var O,M=Object.assign({position:s},c&&ie),F=!0===d?function(e,t){var r=e.x,n=e.y,o=t.devicePixelRatio||1;return{x:g(r*o)/o||0,y:g(n*o)/o||0}}({x:h,y:m},u(r)):{x:h,y:m};return h=F.x,m=F.y,l?Object.assign({},M,((O={})[w]=A?"0":"",O[_]=y?"0":"",O.transform=(k.devicePixelRatio||1)<=1?"translate("+h+"px, "+m+"px)":"translate3d("+h+"px, "+m+"px, 0)",O)):Object.assign({},M,((t={})[w]=A?m+"px":"",t[_]=y?h+"px":"",t.transform="",t))}var se={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,r=e.options,n=e.name,o=r.offset,i=void 0===o?[0,0]:o,a=H.reduce((function(e,r){return e[r]=function(e,t,r){var n=te(e),o=[B,I].indexOf(n)>=0?-1:1,i="function"===typeof r?r(Object.assign({},t,{placement:e})):r,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[B,j].indexOf(n)>=0?{x:s,y:a}:{x:a,y:s}}(r,t.rects,i),e}),{}),s=a[t.placement],l=s.x,c=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[n]=a}},le={left:"right",right:"left",bottom:"top",top:"bottom"};function ce(e){return e.replace(/left|right|bottom|top/g,(function(e){return le[e]}))}var ue={start:"end",end:"start"};function de(e){return e.replace(/start|end/g,(function(e){return ue[e]}))}function pe(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&f(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function fe(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function he(e,t,r){return t===W?fe(function(e,t){var r=u(e),n=C(e),o=r.visualViewport,i=n.clientWidth,a=n.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;var c=b();(c||!c&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s+w(e),y:l}}(e,r)):d(t)?function(e,t){var r=y(e,!1,"fixed"===t);return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}(t,r):fe(function(e){var t,r=C(e),n=A(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=h(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=h(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-n.scrollLeft+w(e),l=-n.scrollTop;return"rtl"===x(o||r).direction&&(s+=h(r.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}(C(e)))}function ve(e,t,r,n){var o="clippingParents"===t?function(e){var t=M(E(e)),r=["absolute","fixed"].indexOf(x(e).position)>=0&&p(e)?T(e):e;return d(r)?t.filter((function(e){return d(e)&&pe(e,r)&&"body"!==_(e)})):[]}(e):[].concat(t),i=[].concat(o,[r]),a=i[0],s=i.reduce((function(t,r){var o=he(e,r,n);return t.top=h(o.top,t.top),t.right=v(o.right,t.right),t.bottom=v(o.bottom,t.bottom),t.left=h(o.left,t.left),t}),he(e,a,n));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function ge(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function me(e,t){return t.reduce((function(t,r){return t[r]=e,t}),{})}function be(e,t){void 0===t&&(t={});var r=t,n=r.placement,o=void 0===n?e.placement:n,i=r.strategy,a=void 0===i?e.strategy:i,s=r.boundary,l=void 0===s?z:s,c=r.rootBoundary,u=void 0===c?W:c,p=r.elementContext,f=void 0===p?U:p,h=r.altBoundary,v=void 0!==h&&h,g=r.padding,m=void 0===g?0:g,b=ge("number"!==typeof m?m:me(m,Z)),A=f===U?q:U,_=e.rects.popper,w=e.elements[v?A:f],x=ve(d(w)?w:w.contextElement||C(e.elements.popper),l,u,a),k=y(e.elements.reference),S=oe({reference:k,element:_,strategy:"absolute",placement:o}),P=fe(Object.assign({},_,S)),E=f===U?P:k,O={top:x.top-E.top+b.top,bottom:E.bottom-x.bottom+b.bottom,left:x.left-E.left+b.left,right:E.right-x.right+b.right},M=e.modifiersData.offset;if(f===U&&M){var F=M[o];Object.keys(O).forEach((function(e){var t=[j,D].indexOf(e)>=0?1:-1,r=[I,D].indexOf(e)>=0?"y":"x";O[e]+=F[r]*t}))}return O}function ye(e,t,r){return h(e,v(t,r))}var Ae={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name,o=r.mainAxis,i=void 0===o||o,a=r.altAxis,s=void 0!==a&&a,l=r.boundary,c=r.rootBoundary,u=r.altBoundary,d=r.padding,p=r.tether,f=void 0===p||p,g=r.tetherOffset,m=void 0===g?0:g,b=be(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),y=te(t.placement),A=re(t.placement),_=!A,C=ne(y),w="x"===C?"y":"x",x=t.modifiersData.popperOffsets,k=t.rects.reference,S=t.rects.popper,E="function"===typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,O="number"===typeof E?{mainAxis:E,altAxis:E}:Object.assign({mainAxis:0,altAxis:0},E),M=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,F={x:0,y:0};if(x){if(i){var R,L="y"===C?I:B,Z="y"===C?D:j,G="y"===C?"height":"width",z=x[C],W=z+b[L],U=z-b[Z],q=f?-S[G]/2:0,V=A===N?k[G]:S[G],H=A===N?-S[G]:-k[G],K=t.elements.arrow,Y=f&&K?P(K):{width:0,height:0},$=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},X=$[L],Q=$[Z],J=ye(0,k[G],Y[G]),ee=_?k[G]/2-q-J-X-O.mainAxis:V-J-X-O.mainAxis,oe=_?-k[G]/2+q+J+Q+O.mainAxis:H+J+Q+O.mainAxis,ie=t.elements.arrow&&T(t.elements.arrow),ae=ie?"y"===C?ie.clientTop||0:ie.clientLeft||0:0,se=null!=(R=null==M?void 0:M[C])?R:0,le=z+oe-se,ce=ye(f?v(W,z+ee-se-ae):W,z,f?h(U,le):U);x[C]=ce,F[C]=ce-z}if(s){var ue,de="x"===C?I:B,pe="x"===C?D:j,fe=x[w],he="y"===w?"height":"width",ve=fe+b[de],ge=fe-b[pe],me=-1!==[I,B].indexOf(y),Ae=null!=(ue=null==M?void 0:M[w])?ue:0,_e=me?ve:fe-k[he]-S[he]-Ae+O.altAxis,Ce=me?fe+k[he]+S[he]-Ae-O.altAxis:ge,we=f&&me?function(e,t,r){var n=ye(e,t,r);return n>r?r:n}(_e,fe,Ce):ye(f?_e:ve,fe,f?Ce:ge);x[w]=we,F[w]=we-fe}t.modifiersData[n]=F}},requiresIfExists:["offset"]};var _e={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,r=e.state,n=e.name,o=e.options,i=r.elements.arrow,a=r.modifiersData.popperOffsets,s=te(r.placement),l=ne(s),c=[B,j].indexOf(s)>=0?"height":"width";if(i&&a){var u=function(e,t){return ge("number"!==typeof(e="function"===typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:me(e,Z))}(o.padding,r),d=P(i),p="y"===l?I:B,f="y"===l?D:j,h=r.rects.reference[c]+r.rects.reference[l]-a[l]-r.rects.popper[c],v=a[l]-r.rects.reference[l],g=T(i),m=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,b=h/2-v/2,y=u[p],A=m-d[c]-u[f],_=m/2-d[c]/2+b,C=ye(y,_,A),w=l;r.modifiersData[n]=((t={})[w]=C,t.centerOffset=C-_,t)}},effect:function(e){var t=e.state,r=e.options.element,n=void 0===r?"[data-popper-arrow]":r;null!=n&&("string"!==typeof n||(n=t.elements.popper.querySelector(n)))&&pe(t.elements.popper,n)&&(t.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ce(e,t,r){return void 0===r&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function we(e){return[I,j,D,B].some((function(t){return e[t]>=0}))}var xe=J({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,r=e.instance,n=e.options,o=n.scroll,i=void 0===o||o,a=n.resize,s=void 0===a||a,l=u(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach((function(e){e.addEventListener("scroll",r.update,ee)})),s&&l.addEventListener("resize",r.update,ee),function(){i&&c.forEach((function(e){e.removeEventListener("scroll",r.update,ee)})),s&&l.removeEventListener("resize",r.update,ee)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,r=e.name;t.modifiersData[r]=oe({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,r=e.options,n=r.gpuAcceleration,o=void 0===n||n,i=r.adaptive,a=void 0===i||i,s=r.roundOffsets,l=void 0===s||s,c={placement:te(t.placement),variation:re(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,ae(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,ae(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var r=t.styles[e]||{},n=t.attributes[e]||{},o=t.elements[e];p(o)&&_(o)&&(Object.assign(o.style,r),Object.keys(n).forEach((function(e){var t=n[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach((function(e){var n=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:r[e]).reduce((function(e,t){return e[t]="",e}),{});p(n)&&_(n)&&(Object.assign(n.style,i),Object.keys(o).forEach((function(e){n.removeAttribute(e)})))}))}},requires:["computeStyles"]},se,{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var o=r.mainAxis,i=void 0===o||o,a=r.altAxis,s=void 0===a||a,l=r.fallbackPlacements,c=r.padding,u=r.boundary,d=r.rootBoundary,p=r.altBoundary,f=r.flipVariations,h=void 0===f||f,v=r.allowedAutoPlacements,g=t.options.placement,m=te(g),b=l||(m===g||!h?[ce(g)]:function(e){if(te(e)===L)return[];var t=ce(e);return[de(e),t,de(t)]}(g)),y=[g].concat(b).reduce((function(e,r){return e.concat(te(r)===L?function(e,t){void 0===t&&(t={});var r=t,n=r.placement,o=r.boundary,i=r.rootBoundary,a=r.padding,s=r.flipVariations,l=r.allowedAutoPlacements,c=void 0===l?H:l,u=re(n),d=u?s?V:V.filter((function(e){return re(e)===u})):Z,p=d.filter((function(e){return c.indexOf(e)>=0}));0===p.length&&(p=d);var f=p.reduce((function(t,r){return t[r]=be(e,{placement:r,boundary:o,rootBoundary:i,padding:a})[te(r)],t}),{});return Object.keys(f).sort((function(e,t){return f[e]-f[t]}))}(t,{placement:r,boundary:u,rootBoundary:d,padding:c,flipVariations:h,allowedAutoPlacements:v}):r)}),[]),A=t.rects.reference,_=t.rects.popper,C=new Map,w=!0,x=y[0],k=0;k=0,M=O?"width":"height",F=be(t,{placement:S,boundary:u,rootBoundary:d,altBoundary:p,padding:c}),R=O?E?j:B:E?D:I;A[M]>_[M]&&(R=ce(R));var T=ce(R),G=[];if(i&&G.push(F[P]<=0),s&&G.push(F[R]<=0,F[T]<=0),G.every((function(e){return e}))){x=S,w=!1;break}C.set(S,G)}if(w)for(var z=function(e){var t=y.find((function(t){var r=C.get(t);if(r)return r.slice(0,e).every((function(e){return e}))}));if(t)return x=t,"break"},W=h?3:1;W>0;W--){if("break"===z(W))break}t.placement!==x&&(t.modifiersData[n]._skip=!0,t.placement=x,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},Ae,_e,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=be(t,{elementContext:"reference"}),s=be(t,{altBoundary:!0}),l=Ce(a,n),c=Ce(s,o,i),u=we(l),d=we(c);t.modifiersData[r]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}}]}),ke=r(17521),Se=r(83480),Pe=r(835),Ee=r(10742),Oe=r(90627);function Me(e){return(0,Oe.ZP)("MuiPopper",e)}(0,Ee.Z)("MuiPopper",["root"]);var Fe=r(56552),Re=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],Te=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function Ie(e){return"function"===typeof e?e():e}function De(e){return void 0!==e.nodeType}var je={},Be=a.forwardRef((function(e,t){var r,{anchorEl:i,children:c,direction:u,disablePortal:d,modifiers:p,open:f,placement:h,popperOptions:v,popperRef:g,slotProps:m={},slots:b={},TransitionProps:y}=e,A=(0,o.Z)(e,Re),_=a.useRef(null),C=(0,s.Z)(_,t),w=a.useRef(null),x=(0,s.Z)(w,g),k=a.useRef(x);(0,l.Z)((()=>{k.current=x}),[x]),a.useImperativeHandle(g,(()=>w.current),[]);var S=function(e,t){if("ltr"===t)return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(h,u),[P,E]=a.useState(S),[O,M]=a.useState(Ie(i));a.useEffect((()=>{w.current&&w.current.forceUpdate()})),a.useEffect((()=>{i&&M(Ie(i))}),[i]),(0,l.Z)((()=>{if(O&&f){var e=[{name:"preventOverflow",options:{altBoundary:d}},{name:"flip",options:{altBoundary:d}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:e=>{var{state:t}=e;E(t.placement)}}];null!=p&&(e=e.concat(p)),v&&null!=v.modifiers&&(e=e.concat(v.modifiers));var t=xe(O,_.current,(0,n.Z)({placement:S},v,{modifiers:e}));return k.current(t),()=>{t.destroy(),k.current(null)}}}),[O,d,p,f,v,S]);var F={placement:P};null!==y&&(F.TransitionProps=y);var R=(e=>{var{classes:t}=e;return(0,ke.Z)({root:["root"]},Me,t)})(e),T=null!=(r=b.root)?r:"div",I=(0,Se.Z)({elementType:T,externalSlotProps:m.root,externalForwardedProps:A,additionalProps:{role:"tooltip",ref:C},ownerState:e,className:R.root});return(0,Fe.jsx)(T,(0,n.Z)({},I,{children:"function"===typeof c?c(F):c}))})),Le=a.forwardRef((function(e,t){var r,{anchorEl:i,children:s,container:l,direction:u="ltr",disablePortal:d=!1,keepMounted:p=!1,modifiers:f,open:h,placement:v="bottom",popperOptions:g=je,popperRef:m,style:b,transition:y=!1,slotProps:A={},slots:_={}}=e,C=(0,o.Z)(e,Te),[w,x]=a.useState(!0);if(!p&&!h&&(!y||w))return null;if(l)r=l;else if(i){var k=Ie(i);r=k&&De(k)?(0,c.Z)(k).body:(0,c.Z)(null).body}var S=h||!p||y&&!w?void 0:"none",P=y?{in:h,onEnter:()=>{x(!1)},onExited:()=>{x(!0)}}:void 0;return(0,Fe.jsx)(Pe.Z,{disablePortal:d,container:r,children:(0,Fe.jsx)(Be,(0,n.Z)({anchorEl:i,direction:u,disablePortal:d,modifiers:f,ref:t,open:y?!w:h,placement:v,popperOptions:g,popperRef:m,slotProps:A,slots:_},C,{style:(0,n.Z)({position:"fixed",top:0,left:0,display:S},b),TransitionProps:P,children:s}))})})),Ze=r(24077),Ne=r(93319),Ge=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],ze=(0,Ze.ZP)(Le,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),We=a.forwardRef((function(e,t){var r,a=(0,i.Z)(),s=(0,Ne.i)({props:e,name:"MuiPopper"}),{anchorEl:l,component:c,components:u,componentsProps:d,container:p,disablePortal:f,keepMounted:h,modifiers:v,open:g,placement:m,popperOptions:b,popperRef:y,transition:A,slots:_,slotProps:C}=s,w=(0,o.Z)(s,Ge),x=null!=(r=null==_?void 0:_.root)?r:null==u?void 0:u.Root,k=(0,n.Z)({anchorEl:l,container:p,disablePortal:f,keepMounted:h,modifiers:v,open:g,placement:m,popperOptions:b,popperRef:y,transition:A},w);return(0,Fe.jsx)(ze,(0,n.Z)({as:c,direction:null==a?void 0:a.direction,slots:{root:x},slotProps:null!=C?C:d},k,{ref:t}))}))},835:function(e,t,r){"use strict";var n=r(21914),o=r(10579),i=r(28774),a=r(31790),s=r(54123),l=r(26357),c=r(56552);var u=n.forwardRef((function(e,t){var{children:r,container:u,disablePortal:d=!1}=e,[p,f]=n.useState(null),h=(0,i.Z)(n.isValidElement(r)?(0,a.Z)(r):null,t);if((0,s.Z)((()=>{d||f(function(e){return"function"===typeof e?e():e}(u)||document.body)}),[u,d]),(0,s.Z)((()=>{if(p&&!d)return(0,l.Z)(t,p),()=>{(0,l.Z)(t,null)}}),[t,p,d]),d){if(n.isValidElement(r)){var v={ref:h};return n.cloneElement(r,v)}return(0,c.jsx)(n.Fragment,{children:r})}return(0,c.jsx)(n.Fragment,{children:p?o.createPortal(r,p):p})}));t.Z=u},6409:function(e,t,r){"use strict";r.d(t,{Z:function(){return R}});var n=r(40629),o=r(92002),i=r(21914),a=r(16757),s=r(17521),l=r(20760),c=r(72795),u=r(93319),d=r(44326),p=r(56552),f=(0,d.Z)((0,p.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),h=(0,d.Z)((0,p.jsx)("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),v=r(24077),g=r(65669),m=(0,v.ZP)("span",{shouldForwardProp:g.Z})({position:"relative",display:"flex"}),b=(0,v.ZP)(f)({transform:"scale(1)"}),y=(0,v.ZP)(h)((e=>{var{theme:t,ownerState:r}=e;return(0,o.Z)({left:0,position:"absolute",transform:"scale(0)",transition:t.transitions.create("transform",{easing:t.transitions.easing.easeIn,duration:t.transitions.duration.shortest})},r.checked&&{transform:"scale(1)",transition:t.transitions.create("transform",{easing:t.transitions.easing.easeOut,duration:t.transitions.duration.shortest})})}));var A=function(e){var{checked:t=!1,classes:r={},fontSize:n}=e,i=(0,o.Z)({},e,{checked:t});return(0,p.jsxs)(m,{className:r.root,ownerState:i,children:[(0,p.jsx)(b,{fontSize:n,className:r.background,ownerState:i}),(0,p.jsx)(y,{fontSize:n,className:r.dot,ownerState:i})]})},_=r(81772),C=r(19504),w=r(2918);var x=r(10742),k=r(90627);function S(e){return(0,k.ZP)("MuiRadio",e)}var P=(0,x.Z)("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),E=["checked","checkedIcon","color","icon","name","onChange","size","className"],O=(0,v.ZP)(c.Z,{shouldForwardProp:e=>(0,g.Z)(e)||"classes"===e,name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[t.root,"medium"!==r.size&&t["size".concat((0,_.Z)(r.size))],t["color".concat((0,_.Z)(r.color))]]}})((e=>{var{theme:t,ownerState:r}=e;return(0,o.Z)({color:(t.vars||t).palette.text.secondary},!r.disableRipple&&{"&:hover":{backgroundColor:t.vars?"rgba(".concat("default"===r.color?t.vars.palette.action.activeChannel:t.vars.palette[r.color].mainChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,l.Fq)("default"===r.color?t.palette.action.active:t.palette[r.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==r.color&&{["&.".concat(P.checked)]:{color:(t.vars||t).palette[r.color].main}},{["&.".concat(P.disabled)]:{color:(t.vars||t).palette.action.disabled}})}));var M=(0,p.jsx)(A,{checked:!0}),F=(0,p.jsx)(A,{}),R=i.forwardRef((function(e,t){var r,l,c,d,f=(0,u.i)({props:e,name:"MuiRadio"}),{checked:h,checkedIcon:v=M,color:g="primary",icon:m=F,name:b,onChange:y,size:A="medium",className:x}=f,k=(0,n.Z)(f,E),P=(0,o.Z)({},f,{color:g,size:A}),R=(e=>{var{classes:t,color:r,size:n}=e,i={root:["root","color".concat((0,_.Z)(r)),"medium"!==n&&"size".concat((0,_.Z)(n))]};return(0,o.Z)({},t,(0,s.Z)(i,S,t))})(P),T=i.useContext(w.Z),I=h,D=(0,C.Z)(y,T&&T.onChange),j=b;return T&&("undefined"===typeof I&&(c=T.value,I="object"===typeof(d=f.value)&&null!==d?c===d:String(c)===String(d)),"undefined"===typeof j&&(j=T.name)),(0,p.jsx)(O,(0,o.Z)({type:"radio",icon:i.cloneElement(m,{fontSize:null!=(r=F.props.fontSize)?r:A}),checkedIcon:i.cloneElement(v,{fontSize:null!=(l=M.props.fontSize)?l:A}),ownerState:P,classes:R,name:j,checked:I,onChange:D,ref:t,className:(0,a.Z)(R.root,x)},k))}))},70188:function(e,t,r){"use strict";r.d(t,{Z:function(){return b}});var n=r(92002),o=r(40629),i=r(21914),a=r(16757),s=r(17521),l=r(26791),c=r(10742),u=r(90627);function d(e){return(0,u.ZP)("MuiRadioGroup",e)}(0,c.Z)("MuiRadioGroup",["root","row","error"]);var p=r(7023),f=r(31509),h=r(2918),v=r(25964),g=r(56552),m=["actions","children","className","defaultValue","name","onChange","value"],b=i.forwardRef((function(e,t){var{actions:r,children:c,className:u,defaultValue:b,name:y,onChange:A,value:_}=e,C=(0,o.Z)(e,m),w=i.useRef(null),x=(e=>{var{classes:t,row:r,error:n}=e,o={root:["root",r&&"row",n&&"error"]};return(0,s.Z)(o,d,t)})(e),[k,S]=(0,f.Z)({controlled:_,default:b,name:"RadioGroup"});i.useImperativeHandle(r,(()=>({focus:()=>{var e=w.current.querySelector("input:not(:disabled):checked");e||(e=w.current.querySelector("input:not(:disabled)")),e&&e.focus()}})),[]);var P=(0,p.Z)(t,w),E=(0,v.Z)(y),O=i.useMemo((()=>({name:E,onChange(e){S(e.target.value),A&&A(e,e.target.value)},value:k})),[E,A,S,k]);return(0,g.jsx)(h.Z.Provider,{value:O,children:(0,g.jsx)(l.Z,(0,n.Z)({role:"radiogroup",ref:P,className:(0,a.Z)(x.root,u)},C,{children:c}))})}))},2918:function(e,t,r){"use strict";var n=r(21914).createContext(void 0);t.Z=n},96806:function(e,t,r){"use strict";r.d(t,{Z:function(){return re}});var n=r(92002),o=r(40629),i=r(21914),a=r(16757),s=r(92712),l=r(31790),c=r(13518),u=r(17521),d=r(60207),p=r(77036),f=r(81772),h=r(76915),v=r(10742),g=r(90627);function m(e){return(0,g.ZP)("MuiNativeSelect",e)}var b=(0,v.Z)("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),y=r(24077),A=r(65669),_=r(56552),C=["className","disabled","error","IconComponent","inputRef","variant"],w=e=>{var{ownerState:t,theme:r}=e;return(0,n.Z)({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":(0,n.Z)({},r.vars?{backgroundColor:"rgba(".concat(r.vars.palette.common.onBackgroundChannel," / 0.05)")}:{backgroundColor:"light"===r.palette.mode?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},["&.".concat(b.disabled)]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(r.vars||r).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},"filled"===t.variant&&{"&&&":{paddingRight:32}},"outlined"===t.variant&&{borderRadius:(r.vars||r).shape.borderRadius,"&:focus":{borderRadius:(r.vars||r).shape.borderRadius},"&&&":{paddingRight:32}})},x=(0,y.ZP)("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:A.Z,overridesResolver:(e,t)=>{var{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{["&.".concat(b.multiple)]:t.multiple}]}})(w),k=e=>{var{ownerState:t,theme:r}=e;return(0,n.Z)({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(r.vars||r).palette.action.active,["&.".concat(b.disabled)]:{color:(r.vars||r).palette.action.disabled}},t.open&&{transform:"rotate(180deg)"},"filled"===t.variant&&{right:7},"outlined"===t.variant&&{right:7})},S=(0,y.ZP)("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[t.icon,r.variant&&t["icon".concat((0,f.Z)(r.variant))],r.open&&t.iconOpen]}})(k),P=i.forwardRef((function(e,t){var{className:r,disabled:s,error:l,IconComponent:c,inputRef:d,variant:p="standard"}=e,h=(0,o.Z)(e,C),v=(0,n.Z)({},e,{disabled:s,variant:p,error:l}),g=(e=>{var{classes:t,variant:r,disabled:n,multiple:o,open:i,error:a}=e,s={select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon","icon".concat((0,f.Z)(r)),i&&"iconOpen",n&&"disabled"]};return(0,u.Z)(s,m,t)})(v);return(0,_.jsxs)(i.Fragment,{children:[(0,_.jsx)(x,(0,n.Z)({ownerState:v,className:(0,a.Z)(g.select,r),disabled:s,ref:d||t},h)),e.multiple?null:(0,_.jsx)(S,{as:c,ownerState:v,className:g.icon})]})})),E=r(19804),O=r(14023),M=r(7023),F=r(31509);function R(e){return(0,g.ZP)("MuiSelect",e)}var T,I=(0,v.Z)("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),D=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],j=(0,y.ZP)("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[{["&.".concat(I.select)]:t.select},{["&.".concat(I.select)]:t[r.variant]},{["&.".concat(I.error)]:t.error},{["&.".concat(I.multiple)]:t.multiple}]}})(w,{["&.".concat(I.select)]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),B=(0,y.ZP)("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[t.icon,r.variant&&t["icon".concat((0,f.Z)(r.variant))],r.open&&t.iconOpen]}})(k),L=(0,y.ZP)("input",{shouldForwardProp:e=>(0,O.Z)(e)&&"classes"!==e,name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function Z(e,t){return"object"===typeof t&&null!==t?e===t:String(e)===String(t)}function N(e){return null==e||"string"===typeof e&&!e.trim()}var G=i.forwardRef((function(e,t){var r,{"aria-describedby":s,"aria-label":l,autoFocus:v,autoWidth:g,children:m,className:b,defaultOpen:y,defaultValue:A,disabled:C,displayEmpty:w,error:x=!1,IconComponent:k,inputRef:S,labelId:P,MenuProps:O={},multiple:I,name:G,onBlur:z,onChange:W,onClose:U,onFocus:q,onOpen:V,open:H,readOnly:K,renderValue:Y,SelectDisplayProps:$={},tabIndex:X,value:Q,variant:J="standard"}=e,ee=(0,o.Z)(e,D),[te,re]=(0,F.Z)({controlled:Q,default:A,name:"Select"}),[ne,oe]=(0,F.Z)({controlled:H,default:y,name:"Select"}),ie=i.useRef(null),ae=i.useRef(null),[se,le]=i.useState(null),{current:ce}=i.useRef(null!=H),[ue,de]=i.useState(),pe=(0,M.Z)(t,S),fe=i.useCallback((e=>{ae.current=e,e&&le(e)}),[]),he=null==se?void 0:se.parentNode;i.useImperativeHandle(pe,(()=>({focus:()=>{ae.current.focus()},node:ie.current,value:te})),[te]),i.useEffect((()=>{y&&ne&&se&&!ce&&(de(g?null:he.clientWidth),ae.current.focus())}),[se,g]),i.useEffect((()=>{v&&ae.current.focus()}),[v]),i.useEffect((()=>{if(P){var e=(0,p.Z)(ae.current).getElementById(P);if(e){var t=()=>{getSelection().isCollapsed&&ae.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}}}),[P]);var ve,ge,me=(e,t)=>{e?V&&V(t):U&&U(t),ce||(de(g?null:he.clientWidth),oe(e))},be=i.Children.toArray(m),ye=e=>t=>{var r;if(t.currentTarget.hasAttribute("tabindex")){if(I){r=Array.isArray(te)?te.slice():[];var n=te.indexOf(e.props.value);-1===n?r.push(e.props.value):r.splice(n,1)}else r=e.props.value;if(e.props.onClick&&e.props.onClick(t),te!==r&&(re(r),W)){var o=t.nativeEvent||t,i=new o.constructor(o.type,o);Object.defineProperty(i,"target",{writable:!0,value:{value:r,name:G}}),W(i,e)}I||me(!1,t)}},Ae=null!==se&≠delete ee["aria-invalid"];var _e=[],Ce=!1;((0,E.vd)({value:te})||w)&&(Y?ve=Y(te):Ce=!0);var we=be.map((e=>{if(!i.isValidElement(e))return null;var t;if(I){if(!Array.isArray(te))throw new Error((0,c.Z)(2));(t=te.some((t=>Z(t,e.props.value))))&&Ce&&_e.push(e.props.children)}else(t=Z(te,e.props.value))&&Ce&&(ge=e.props.children);return t&&!0,i.cloneElement(e,{"aria-selected":t?"true":"false",onClick:ye(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})}));Ce&&(ve=I?0===_e.length?null:_e.reduce(((e,t,r)=>(e.push(t),r<_e.length-1&&e.push(", "),e)),[]):ge);var xe,ke=ue;!g&&ce&&se&&(ke=he.clientWidth),xe="undefined"!==typeof X?X:C?null:0;var Se=$.id||(G?"mui-component-select-".concat(G):void 0),Pe=(0,n.Z)({},e,{variant:J,value:te,open:Ae,error:x}),Ee=(e=>{var{classes:t,variant:r,disabled:n,multiple:o,open:i,error:a}=e,s={select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon","icon".concat((0,f.Z)(r)),i&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]};return(0,u.Z)(s,R,t)})(Pe),Oe=(0,n.Z)({},O.PaperProps,null==(r=O.slotProps)?void 0:r.paper),Me=(0,d.Z)();return(0,_.jsxs)(i.Fragment,{children:[(0,_.jsx)(j,(0,n.Z)({ref:fe,tabIndex:xe,role:"combobox","aria-controls":Me,"aria-disabled":C?"true":void 0,"aria-expanded":Ae?"true":"false","aria-haspopup":"listbox","aria-label":l,"aria-labelledby":[P,Se].filter(Boolean).join(" ")||void 0,"aria-describedby":s,onKeyDown:e=>{if(!K){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),me(!0,e))}},onMouseDown:C||K?null:e=>{0===e.button&&(e.preventDefault(),ae.current.focus(),me(!0,e))},onBlur:e=>{!Ae&&z&&(Object.defineProperty(e,"target",{writable:!0,value:{value:te,name:G}}),z(e))},onFocus:q},$,{ownerState:Pe,className:(0,a.Z)($.className,Ee.select,b),id:Se,children:N(ve)?T||(T=(0,_.jsx)("span",{className:"notranslate",children:"\u200b"})):ve})),(0,_.jsx)(L,(0,n.Z)({"aria-invalid":x,value:Array.isArray(te)?te.join(","):te,name:G,ref:ie,"aria-hidden":!0,onChange:e=>{var t=be.find((t=>t.props.value===e.target.value));void 0!==t&&(re(t.props.value),W&&W(e,t))},tabIndex:-1,disabled:C,className:Ee.nativeInput,autoFocus:v,ownerState:Pe},ee)),(0,_.jsx)(B,{as:k,className:Ee.icon,ownerState:Pe}),(0,_.jsx)(h.Z,(0,n.Z)({id:"menu-".concat(G||""),anchorEl:he,open:Ae,onClose:e=>{me(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},O,{MenuListProps:(0,n.Z)({"aria-labelledby":P,role:"listbox","aria-multiselectable":I?"true":void 0,disableListWrap:!0,id:Me},O.MenuListProps),slotProps:(0,n.Z)({},O.slotProps,{paper:(0,n.Z)({},Oe,{style:(0,n.Z)({minWidth:ke},null!=Oe?Oe.style:null)})}),children:we}))]})})),z=r(31877),W=r(73028),U=r(57266),q=r(17631),V=r(52294),H=r(47628),K=r(93319),Y=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],$=["root"],X={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>(0,A.Z)(e)&&"variant"!==e,slot:"Root"},Q=(0,y.ZP)(q.Z,X)(""),J=(0,y.ZP)(H.Z,X)(""),ee=(0,y.ZP)(V.Z,X)(""),te=i.forwardRef((function(e,t){var r=(0,K.i)({name:"MuiSelect",props:e}),{autoWidth:c=!1,children:u,classes:d={},className:p,defaultOpen:f=!1,displayEmpty:h=!1,IconComponent:v=U.Z,id:g,input:m,inputProps:b,label:y,labelId:A,MenuProps:C,multiple:w=!1,native:x=!1,onClose:k,onOpen:S,open:E,renderValue:O,SelectDisplayProps:F,variant:R="outlined"}=r,T=(0,o.Z)(r,Y),I=x?P:G,D=(0,W.Z)(),j=(0,z.Z)({props:r,muiFormControl:D,states:["variant","error"]}),B=j.variant||R,L=(0,n.Z)({},r,{variant:B,classes:d}),Z=(e=>{var{classes:t}=e;return t})(L),N=(0,o.Z)(Z,$),q=m||{standard:(0,_.jsx)(Q,{ownerState:L}),outlined:(0,_.jsx)(J,{label:y,ownerState:L}),filled:(0,_.jsx)(ee,{ownerState:L})}[B],V=(0,M.Z)(t,(0,l.Z)(q));return(0,_.jsx)(i.Fragment,{children:i.cloneElement(q,(0,n.Z)({inputComponent:I,inputProps:(0,n.Z)({children:u,error:j.error,IconComponent:v,variant:B,type:void 0,multiple:w},x?{id:g}:{autoWidth:c,defaultOpen:f,displayEmpty:h,labelId:A,MenuProps:C,onClose:k,onOpen:S,open:E,renderValue:O,SelectDisplayProps:(0,n.Z)({id:g},F)},b,{classes:b?(0,s.Z)(N,b.classes):N},m?m.props.inputProps:{})},(w&&x||h)&&"outlined"===B?{notched:!0}:{},{ref:V,className:(0,a.Z)(q.props.className,p,Z.root)},!m&&{variant:B},T))})}));te.muiName="Select";var re=te},76623:function(e,t,r){"use strict";var n=r(92002),o=r(40629),i=r(21914),a=r(11617),s=r(31790),l=r(38822),c=r(7023),u=r(2846),d=r(85478),p=r(67171),f=r(56552),h=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function v(e,t,r){var n,o=function(e,t,r){var n,o=t.getBoundingClientRect(),i=r&&r.getBoundingClientRect(),a=(0,p.Z)(t);if(t.fakeTransform)n=t.fakeTransform;else{var s=a.getComputedStyle(t);n=s.getPropertyValue("-webkit-transform")||s.getPropertyValue("transform")}var l=0,c=0;if(n&&"none"!==n&&"string"===typeof n){var u=n.split("(")[1].split(")")[0].split(",");l=parseInt(u[4],10),c=parseInt(u[5],10)}return"left"===e?"translateX(".concat(i?i.right+l-o.left:a.innerWidth+l-o.left,"px)"):"right"===e?"translateX(-".concat(i?o.right-i.left-l:o.left+o.width-l,"px)"):"up"===e?"translateY(".concat(i?i.bottom+c-o.top:a.innerHeight+c-o.top,"px)"):"translateY(-".concat(i?o.top-i.top+o.height-c:o.top+o.height-c,"px)")}(e,t,"function"===typeof(n=r)?n():n);o&&(t.style.webkitTransform=o,t.style.transform=o)}var g=i.forwardRef((function(e,t){var r=(0,u.Z)(),g={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},m={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:b,appear:y=!0,children:A,container:_,direction:C="down",easing:w=g,in:x,onEnter:k,onEntered:S,onEntering:P,onExit:E,onExited:O,onExiting:M,style:F,timeout:R=m,TransitionComponent:T=a.ZP}=e,I=(0,o.Z)(e,h),D=i.useRef(null),j=(0,c.Z)((0,s.Z)(A),D,t),B=e=>t=>{e&&(void 0===t?e(D.current):e(D.current,t))},L=B(((e,t)=>{v(C,e,_),(0,d.n)(e),k&&k(e,t)})),Z=B(((e,t)=>{var o=(0,d.C)({timeout:R,style:F,easing:w},{mode:"enter"});e.style.webkitTransition=r.transitions.create("-webkit-transform",(0,n.Z)({},o)),e.style.transition=r.transitions.create("transform",(0,n.Z)({},o)),e.style.webkitTransform="none",e.style.transform="none",P&&P(e,t)})),N=B(S),G=B(M),z=B((e=>{var t=(0,d.C)({timeout:R,style:F,easing:w},{mode:"exit"});e.style.webkitTransition=r.transitions.create("-webkit-transform",t),e.style.transition=r.transitions.create("transform",t),v(C,e,_),E&&E(e)})),W=B((e=>{e.style.webkitTransition="",e.style.transition="",O&&O(e)})),U=i.useCallback((()=>{D.current&&v(C,D.current,_)}),[C,_]);return i.useEffect((()=>{if(!x&&"down"!==C&&"right"!==C){var e=(0,l.Z)((()=>{D.current&&v(C,D.current,_)})),t=(0,p.Z)(D.current);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}}),[C,x,_]),i.useEffect((()=>{x||U()}),[x,U]),(0,f.jsx)(T,(0,n.Z)({nodeRef:D,onEnter:L,onEntered:N,onEntering:Z,onExit:z,onExited:W,onExiting:G,addEndListener:e=>{b&&b(D.current,e)},appear:y,in:x,timeout:R},I,{children:(e,t)=>i.cloneElement(A,(0,n.Z)({ref:j,style:(0,n.Z)({visibility:"exited"!==e||x?void 0:"hidden"},F,A.props.style)},t))}))}));t.Z=g},20230:function(e,t,r){"use strict";r.d(t,{Z:function(){return I}});var n=r(40629),o=r(92002),i=r(21914),a=r(17521),s=r(83480),l=r(22735),c=r(6670),u=r(34392);var d=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{autoHideDuration:t=null,disableWindowBlurListener:r=!1,onClose:n,open:a,resumeHideDuration:s}=e,d=(0,l.Z)();i.useEffect((()=>{if(a)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){e.defaultPrevented||"Escape"!==e.key&&"Esc"!==e.key||null==n||n(e,"escapeKeyDown")}}),[a,n]);var p=(0,c.Z)(((e,t)=>{null==n||n(e,t)})),f=(0,c.Z)((e=>{n&&null!=e&&d.start(e,(()=>{p(null,"timeout")}))}));i.useEffect((()=>(a&&f(t),d.clear)),[a,t,f,d]);var h=d.clear,v=i.useCallback((()=>{null!=t&&f(null!=s?s:.5*t)}),[t,s,f]),g=e=>t=>{var r=e.onFocus;null==r||r(t),h()},m=e=>t=>{var r=e.onMouseEnter;null==r||r(t),h()},b=e=>t=>{var r=e.onMouseLeave;null==r||r(t),v()};return i.useEffect((()=>{if(!r&&a)return window.addEventListener("focus",v),window.addEventListener("blur",h),()=>{window.removeEventListener("focus",v),window.removeEventListener("blur",h)}}),[r,a,v,h]),{getRootProps:function(){var t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=(0,o.Z)({},(0,u.Z)(e),(0,u.Z)(r));return(0,o.Z)({role:"presentation"},r,n,{onBlur:(t=n,e=>{var r=t.onBlur;null==r||r(e),v()}),onFocus:g(n),onMouseEnter:m(n),onMouseLeave:b(n)})},onClickAway:e=>{null==n||n(e,"clickaway")}}},p=r(27719),f=r(24077),h=r(2846),v=r(93319),g=r(81772),m=r(26794),b=r(16757),y=r(20760),A=r(37395),_=r(10742),C=r(90627);function w(e){return(0,C.ZP)("MuiSnackbarContent",e)}(0,_.Z)("MuiSnackbarContent",["root","message","action"]);var x=r(56552),k=["action","className","message","role"],S=(0,f.ZP)(A.Z,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(e,t)=>t.root})((e=>{var{theme:t}=e,r="light"===t.palette.mode?.8:.98,n=(0,y._4)(t.palette.background.default,r);return(0,o.Z)({},t.typography.body2,{color:t.vars?t.vars.palette.SnackbarContent.color:t.palette.getContrastText(n),backgroundColor:t.vars?t.vars.palette.SnackbarContent.bg:n,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:(t.vars||t).shape.borderRadius,flexGrow:1,[t.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}})})),P=(0,f.ZP)("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0"}),E=(0,f.ZP)("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),O=i.forwardRef((function(e,t){var r=(0,v.i)({props:e,name:"MuiSnackbarContent"}),{action:i,className:s,message:l,role:c="alert"}=r,u=(0,n.Z)(r,k),d=r,p=(e=>{var{classes:t}=e;return(0,a.Z)({root:["root"],action:["action"],message:["message"]},w,t)})(d);return(0,x.jsxs)(S,(0,o.Z)({role:c,square:!0,elevation:6,className:(0,b.Z)(p.root,s),ownerState:d,ref:t},u,{children:[(0,x.jsx)(P,{className:p.message,ownerState:d,children:l}),i?(0,x.jsx)(E,{className:p.action,ownerState:d,children:i}):null]}))}));function M(e){return(0,C.ZP)("MuiSnackbar",e)}(0,_.Z)("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);var F=["onEnter","onExited"],R=["action","anchorOrigin","autoHideDuration","children","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onBlur","onClose","onFocus","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"],T=(0,f.ZP)("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[t.root,t["anchorOrigin".concat((0,g.Z)(r.anchorOrigin.vertical)).concat((0,g.Z)(r.anchorOrigin.horizontal))]]}})((e=>{var{theme:t,ownerState:r}=e;return(0,o.Z)({zIndex:(t.vars||t).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center"},"top"===r.anchorOrigin.vertical?{top:8}:{bottom:8},"left"===r.anchorOrigin.horizontal&&{justifyContent:"flex-start"},"right"===r.anchorOrigin.horizontal&&{justifyContent:"flex-end"},{[t.breakpoints.up("sm")]:(0,o.Z)({},"top"===r.anchorOrigin.vertical?{top:24}:{bottom:24},"center"===r.anchorOrigin.horizontal&&{left:"50%",right:"auto",transform:"translateX(-50%)"},"left"===r.anchorOrigin.horizontal&&{left:24,right:"auto"},"right"===r.anchorOrigin.horizontal&&{right:24,left:"auto"})})})),I=i.forwardRef((function(e,t){var r=(0,v.i)({props:e,name:"MuiSnackbar"}),l=(0,h.Z)(),c={enter:l.transitions.duration.enteringScreen,exit:l.transitions.duration.leavingScreen},{action:u,anchorOrigin:{vertical:f,horizontal:b}={vertical:"bottom",horizontal:"left"},autoHideDuration:y=null,children:A,className:_,ClickAwayListenerProps:C,ContentProps:w,disableWindowBlurListener:k=!1,message:S,open:P,TransitionComponent:E=m.Z,transitionDuration:I=c,TransitionProps:{onEnter:D,onExited:j}={}}=r,B=(0,n.Z)(r.TransitionProps,F),L=(0,n.Z)(r,R),Z=(0,o.Z)({},r,{anchorOrigin:{vertical:f,horizontal:b},autoHideDuration:y,disableWindowBlurListener:k,TransitionComponent:E,transitionDuration:I}),N=(e=>{var{classes:t,anchorOrigin:r}=e,n={root:["root","anchorOrigin".concat((0,g.Z)(r.vertical)).concat((0,g.Z)(r.horizontal))]};return(0,a.Z)(n,M,t)})(Z),{getRootProps:G,onClickAway:z}=d((0,o.Z)({},Z)),[W,U]=i.useState(!0),q=(0,s.Z)({elementType:T,getSlotProps:G,externalForwardedProps:L,ownerState:Z,additionalProps:{ref:t},className:[N.root,_]});return!P&&W?null:(0,x.jsx)(p.d,(0,o.Z)({onClickAway:z},C,{children:(0,x.jsx)(T,(0,o.Z)({},q,{children:(0,x.jsx)(E,(0,o.Z)({appear:!0,in:P,timeout:I,direction:"top"===f?"down":"up",onEnter:(e,t)=>{U(!1),D&&D(e,t)},onExited:e=>{U(!0),j&&j(e)}},B,{children:A||(0,x.jsx)(O,(0,o.Z)({message:S,action:u},w))}))}))}))}))},51869:function(e,t,r){"use strict";r.d(t,{Z:function(){return S}});var n=r(6967),o=r(9709),i=r(21914),a=r(83768),s=r(81749),l=r(24985),c=r(87413),u=r(71129),d=r(35494),p=r(3927),f=r(63203),h=r(28240),v=r(74935),g=r(56552),m=["component","direction","spacing","divider","children","className","useFlexGap"],b=(0,f.Z)(),y=(0,u.Z)("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function A(e){return(0,d.Z)({props:e,name:"MuiStack",defaultTheme:b})}function _(e,t){var r=i.Children.toArray(e).filter(Boolean);return r.reduce(((e,n,o)=>(e.push(n),o{var{ownerState:t,theme:r}=e,n=(0,o.Z)({display:"flex",flexDirection:"column"},(0,h.k9)({theme:r},(0,h.P$)({values:t.direction,breakpoints:r.breakpoints.values}),(e=>({flexDirection:e}))));if(t.spacing){var i=(0,v.hB)(r),a=Object.keys(r.breakpoints.values).reduce(((e,r)=>(("object"===typeof t.spacing&&null!=t.spacing[r]||"object"===typeof t.direction&&null!=t.direction[r])&&(e[r]=!0),e)),{}),l=(0,h.P$)({values:t.direction,base:a}),c=(0,h.P$)({values:t.spacing,base:a});"object"===typeof l&&Object.keys(l).forEach(((e,t,r)=>{if(!l[e]){var n=t>0?l[r[t-1]]:"column";l[e]=n}}));n=(0,s.Z)(n,(0,h.k9)({theme:r},c,((e,r)=>{return t.useFlexGap?{gap:(0,v.NA)(i,e)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{["margin".concat((n=r?l[r]:t.direction,{row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"}[n]))]:(0,v.NA)(i,e)}};var n})))}return n=(0,h.dt)(r.breakpoints,n)};var w=r(24077),x=r(93319),k=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{createStyledComponent:t=y,useThemeProps:r=A,componentName:s="MuiStack"}=e,u=t(C),d=i.forwardRef((function(e,t){var i=r(e),d=(0,p.Z)(i),{component:f="div",direction:h="column",spacing:v=0,divider:b,children:y,className:A,useFlexGap:C=!1}=d,w=(0,n.Z)(d,m),x={direction:h,spacing:v,useFlexGap:C},k=(0,c.Z)({root:["root"]},(e=>(0,l.ZP)(s,e)),{});return(0,g.jsx)(u,(0,o.Z)({as:f,ownerState:x,ref:t,className:(0,a.Z)(k.root,A)},w,{children:b?_(y,b):y}))}));return d}({createStyledComponent:(0,w.ZP)("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>(0,x.i)({props:e,name:"MuiStack"})}),S=k},58789:function(e,t,r){"use strict";r.d(t,{Z:function(){return b}});var n=r(92002),o=r(40629),i=r(21914),a=r(16757),s=r(17521),l=r(81772),c=r(93319),u=r(24077),d=r(10742),p=r(90627);function f(e){return(0,p.ZP)("MuiSvgIcon",e)}(0,d.Z)("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);var h=r(56552),v=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],g=(0,u.ZP)("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[t.root,"inherit"!==r.color&&t["color".concat((0,l.Z)(r.color))],t["fontSize".concat((0,l.Z)(r.fontSize))]]}})((e=>{var t,r,n,o,i,a,s,l,c,u,d,p,f,{theme:h,ownerState:v}=e;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:v.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(t=h.transitions)||null==(r=t.create)?void 0:r.call(t,"fill",{duration:null==(n=h.transitions)||null==(n=n.duration)?void 0:n.shorter}),fontSize:{inherit:"inherit",small:(null==(o=h.typography)||null==(i=o.pxToRem)?void 0:i.call(o,20))||"1.25rem",medium:(null==(a=h.typography)||null==(s=a.pxToRem)?void 0:s.call(a,24))||"1.5rem",large:(null==(l=h.typography)||null==(c=l.pxToRem)?void 0:c.call(l,35))||"2.1875rem"}[v.fontSize],color:null!=(u=null==(d=(h.vars||h).palette)||null==(d=d[v.color])?void 0:d.main)?u:{action:null==(p=(h.vars||h).palette)||null==(p=p.action)?void 0:p.active,disabled:null==(f=(h.vars||h).palette)||null==(f=f.action)?void 0:f.disabled,inherit:void 0}[v.color]}})),m=i.forwardRef((function(e,t){var r=(0,c.i)({props:e,name:"MuiSvgIcon"}),{children:u,className:d,color:p="inherit",component:m="svg",fontSize:b="medium",htmlColor:y,inheritViewBox:A=!1,titleAccess:_,viewBox:C="0 0 24 24"}=r,w=(0,o.Z)(r,v),x=i.isValidElement(u)&&"svg"===u.type,k=(0,n.Z)({},r,{color:p,component:m,fontSize:b,instanceFontSize:e.fontSize,inheritViewBox:A,viewBox:C,hasSvgAsChild:x}),S={};A||(S.viewBox=C);var P=(e=>{var{color:t,fontSize:r,classes:n}=e,o={root:["root","inherit"!==t&&"color".concat((0,l.Z)(t)),"fontSize".concat((0,l.Z)(r))]};return(0,s.Z)(o,f,n)})(k);return(0,h.jsxs)(g,(0,n.Z)({as:m,className:(0,a.Z)(P.root,d),focusable:"false",color:y,"aria-hidden":!_||void 0,role:_?"img":void 0,ref:t},S,w,x&&u.props,{ownerState:k,children:[x?u.props.children:u,_?(0,h.jsx)("title",{children:_}):null]}))}));m.muiName="SvgIcon";var b=m},10205:function(e,t,r){"use strict";r.d(t,{Z:function(){return b}});var n=r(40629),o=r(92002),i=r(21914),a=r(16757),s=r(17521),l=r(87080),c=r(93319),u=r(24077),d=r(10742),p=r(90627);function f(e){return(0,p.ZP)("MuiTable",e)}(0,d.Z)("MuiTable",["root","stickyHeader"]);var h=r(56552),v=["className","component","padding","size","stickyHeader"],g=(0,u.ZP)("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[t.root,r.stickyHeader&&t.stickyHeader]}})((e=>{var{theme:t,ownerState:r}=e;return(0,o.Z)({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":(0,o.Z)({},t.typography.body2,{padding:t.spacing(2),color:(t.vars||t).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},r.stickyHeader&&{borderCollapse:"separate"})})),m="table",b=i.forwardRef((function(e,t){var r=(0,c.i)({props:e,name:"MuiTable"}),{className:u,component:d=m,padding:p="normal",size:b="medium",stickyHeader:y=!1}=r,A=(0,n.Z)(r,v),_=(0,o.Z)({},r,{component:d,padding:p,size:b,stickyHeader:y}),C=(e=>{var{classes:t,stickyHeader:r}=e,n={root:["root",r&&"stickyHeader"]};return(0,s.Z)(n,f,t)})(_),w=i.useMemo((()=>({padding:p,size:b,stickyHeader:y})),[p,b,y]);return(0,h.jsx)(l.Z.Provider,{value:w,children:(0,h.jsx)(g,(0,o.Z)({as:d,role:d===m?null:"table",ref:t,className:(0,a.Z)(C.root,u),ownerState:_},A))})}))},87080:function(e,t,r){"use strict";var n=r(21914).createContext();t.Z=n},99338:function(e,t,r){"use strict";var n=r(21914).createContext();t.Z=n},68036:function(e,t,r){"use strict";r.d(t,{Z:function(){return y}});var n=r(92002),o=r(40629),i=r(21914),a=r(16757),s=r(17521),l=r(99338),c=r(93319),u=r(24077),d=r(10742),p=r(90627);function f(e){return(0,p.ZP)("MuiTableBody",e)}(0,d.Z)("MuiTableBody",["root"]);var h=r(56552),v=["className","component"],g=(0,u.ZP)("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),m={variant:"body"},b="tbody",y=i.forwardRef((function(e,t){var r=(0,c.i)({props:e,name:"MuiTableBody"}),{className:i,component:u=b}=r,d=(0,o.Z)(r,v),p=(0,n.Z)({},r,{component:u}),y=(e=>{var{classes:t}=e;return(0,s.Z)({root:["root"]},f,t)})(p);return(0,h.jsx)(l.Z.Provider,{value:m,children:(0,h.jsx)(g,(0,n.Z)({className:(0,a.Z)(y.root,i),as:u,ref:t,role:u===b?null:"rowgroup",ownerState:p},d))})}))},93564:function(e,t,r){"use strict";var n=r(40629),o=r(92002),i=r(21914),a=r(16757),s=r(17521),l=r(20760),c=r(81772),u=r(87080),d=r(99338),p=r(93319),f=r(24077),h=r(95212),v=r(56552),g=["align","className","component","padding","scope","size","sortDirection","variant"],m=(0,f.ZP)("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[t.root,t[r.variant],t["size".concat((0,c.Z)(r.size))],"normal"!==r.padding&&t["padding".concat((0,c.Z)(r.padding))],"inherit"!==r.align&&t["align".concat((0,c.Z)(r.align))],r.stickyHeader&&t.stickyHeader]}})((e=>{var{theme:t,ownerState:r}=e;return(0,o.Z)({},t.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:t.vars?"1px solid ".concat(t.vars.palette.TableCell.border):"1px solid\n ".concat("light"===t.palette.mode?(0,l.$n)((0,l.Fq)(t.palette.divider,1),.88):(0,l._j)((0,l.Fq)(t.palette.divider,1),.68)),textAlign:"left",padding:16},"head"===r.variant&&{color:(t.vars||t).palette.text.primary,lineHeight:t.typography.pxToRem(24),fontWeight:t.typography.fontWeightMedium},"body"===r.variant&&{color:(t.vars||t).palette.text.primary},"footer"===r.variant&&{color:(t.vars||t).palette.text.secondary,lineHeight:t.typography.pxToRem(21),fontSize:t.typography.pxToRem(12)},"small"===r.size&&{padding:"6px 16px",["&.".concat(h.Z.paddingCheckbox)]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},"checkbox"===r.padding&&{width:48,padding:"0 0 0 4px"},"none"===r.padding&&{padding:0},"left"===r.align&&{textAlign:"left"},"center"===r.align&&{textAlign:"center"},"right"===r.align&&{textAlign:"right",flexDirection:"row-reverse"},"justify"===r.align&&{textAlign:"justify"},r.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(t.vars||t).palette.background.default})})),b=i.forwardRef((function(e,t){var r,l=(0,p.i)({props:e,name:"MuiTableCell"}),{align:f="inherit",className:b,component:y,padding:A,scope:_,size:C,sortDirection:w,variant:x}=l,k=(0,n.Z)(l,g),S=i.useContext(u.Z),P=i.useContext(d.Z),E=P&&"head"===P.variant,O=_;"td"===(r=y||(E?"th":"td"))?O=void 0:!O&&E&&(O="col");var M=x||P&&P.variant,F=(0,o.Z)({},l,{align:f,component:r,padding:A||(S&&S.padding?S.padding:"normal"),size:C||(S&&S.size?S.size:"medium"),sortDirection:w,stickyHeader:"head"===M&&S&&S.stickyHeader,variant:M}),R=(e=>{var{classes:t,variant:r,align:n,padding:o,size:i,stickyHeader:a}=e,l={root:["root",r,a&&"stickyHeader","inherit"!==n&&"align".concat((0,c.Z)(n)),"normal"!==o&&"padding".concat((0,c.Z)(o)),"size".concat((0,c.Z)(i))]};return(0,s.Z)(l,h.U,t)})(F),T=null;return w&&(T="asc"===w?"ascending":"descending"),(0,v.jsx)(m,(0,o.Z)({as:r,ref:t,className:(0,a.Z)(R.root,b),"aria-sort":T,scope:O,ownerState:F},k))}));t.Z=b},95212:function(e,t,r){"use strict";r.d(t,{U:function(){return i}});var n=r(10742),o=r(90627);function i(e){return(0,o.ZP)("MuiTableCell",e)}var a=(0,n.Z)("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]);t.Z=a},85709:function(e,t,r){"use strict";r.d(t,{Z:function(){return g}});var n=r(92002),o=r(40629),i=r(21914),a=r(16757),s=r(17521),l=r(93319),c=r(24077),u=r(10742),d=r(90627);function p(e){return(0,d.ZP)("MuiTableContainer",e)}(0,u.Z)("MuiTableContainer",["root"]);var f=r(56552),h=["className","component"],v=(0,c.ZP)("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),g=i.forwardRef((function(e,t){var r=(0,l.i)({props:e,name:"MuiTableContainer"}),{className:i,component:c="div"}=r,u=(0,o.Z)(r,h),d=(0,n.Z)({},r,{component:c}),g=(e=>{var{classes:t}=e;return(0,s.Z)({root:["root"]},p,t)})(d);return(0,f.jsx)(v,(0,n.Z)({ref:t,as:c,className:(0,a.Z)(g.root,i),ownerState:d},u))}))},66454:function(e,t,r){"use strict";r.d(t,{Z:function(){return y}});var n=r(92002),o=r(40629),i=r(21914),a=r(16757),s=r(17521),l=r(99338),c=r(93319),u=r(24077),d=r(10742),p=r(90627);function f(e){return(0,p.ZP)("MuiTableHead",e)}(0,d.Z)("MuiTableHead",["root"]);var h=r(56552),v=["className","component"],g=(0,u.ZP)("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),m={variant:"head"},b="thead",y=i.forwardRef((function(e,t){var r=(0,c.i)({props:e,name:"MuiTableHead"}),{className:i,component:u=b}=r,d=(0,o.Z)(r,v),p=(0,n.Z)({},r,{component:u}),y=(e=>{var{classes:t}=e;return(0,s.Z)({root:["root"]},f,t)})(p);return(0,h.jsx)(l.Z.Provider,{value:m,children:(0,h.jsx)(g,(0,n.Z)({as:u,className:(0,a.Z)(y.root,i),ref:t,role:u===b?null:"rowgroup",ownerState:p},d))})}))},89655:function(e,t,r){"use strict";r.d(t,{Z:function(){return A}});var n=r(92002),o=r(40629),i=r(21914),a=r(16757),s=r(17521),l=r(20760),c=r(99338),u=r(93319),d=r(24077),p=r(10742),f=r(90627);function h(e){return(0,f.ZP)("MuiTableRow",e)}var v=(0,p.Z)("MuiTableRow",["root","selected","hover","head","footer"]),g=r(56552),m=["className","component","hover","selected"],b=(0,d.ZP)("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[t.root,r.head&&t.head,r.footer&&t.footer]}})((e=>{var{theme:t}=e;return{color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,["&.".concat(v.hover,":hover")]:{backgroundColor:(t.vars||t).palette.action.hover},["&.".concat(v.selected)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,l.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity),"&:hover":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.hoverOpacity,"))"):(0,l.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity)}}}})),y="tr",A=i.forwardRef((function(e,t){var r=(0,u.i)({props:e,name:"MuiTableRow"}),{className:l,component:d=y,hover:p=!1,selected:f=!1}=r,v=(0,o.Z)(r,m),A=i.useContext(c.Z),_=(0,n.Z)({},r,{component:d,hover:p,selected:f,head:A&&"head"===A.variant,footer:A&&"footer"===A.variant}),C=(e=>{var{classes:t,selected:r,hover:n,head:o,footer:i}=e,a={root:["root",r&&"selected",n&&"hover",o&&"head",i&&"footer"]};return(0,s.Z)(a,h,t)})(_);return(0,g.jsx)(b,(0,n.Z)({as:d,ref:t,className:(0,a.Z)(C.root,l),role:d===y?null:"row",ownerState:_},v))}))},28312:function(e,t,r){"use strict";r.d(t,{Z:function(){return k}});var n=r(92002),o=r(40629),i=r(21914),a=r(16757),s=r(17521),l=r(60207),c=r(24077),u=r(93319),d=r(17631),p=r(52294),f=r(47628),h=r(23482),v=r(27460),g=r(74149),m=r(96806),b=r(10742),y=r(90627);function A(e){return(0,y.ZP)("MuiTextField",e)}(0,b.Z)("MuiTextField",["root"]);var _=r(56552),C=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],w={standard:d.Z,filled:p.Z,outlined:f.Z},x=(0,c.ZP)(v.Z,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),k=i.forwardRef((function(e,t){var r=(0,u.i)({props:e,name:"MuiTextField"}),{autoComplete:i,autoFocus:c=!1,children:d,className:p,color:f="primary",defaultValue:v,disabled:b=!1,error:y=!1,FormHelperTextProps:k,fullWidth:S=!1,helperText:P,id:E,InputLabelProps:O,inputProps:M,InputProps:F,inputRef:R,label:T,maxRows:I,minRows:D,multiline:j=!1,name:B,onBlur:L,onChange:Z,onFocus:N,placeholder:G,required:z=!1,rows:W,select:U=!1,SelectProps:q,type:V,value:H,variant:K="outlined"}=r,Y=(0,o.Z)(r,C),$=(0,n.Z)({},r,{autoFocus:c,color:f,disabled:b,error:y,fullWidth:S,multiline:j,required:z,select:U,variant:K}),X=(e=>{var{classes:t}=e;return(0,s.Z)({root:["root"]},A,t)})($);var Q={};"outlined"===K&&(O&&"undefined"!==typeof O.shrink&&(Q.notched=O.shrink),Q.label=T),U&&(q&&q.native||(Q.id=void 0),Q["aria-describedby"]=void 0);var J=(0,l.Z)(E),ee=P&&J?"".concat(J,"-helper-text"):void 0,te=T&&J?"".concat(J,"-label"):void 0,re=w[K],ne=(0,_.jsx)(re,(0,n.Z)({"aria-describedby":ee,autoComplete:i,autoFocus:c,defaultValue:v,fullWidth:S,multiline:j,name:B,rows:W,maxRows:I,minRows:D,type:V,value:H,id:J,inputRef:R,onBlur:L,onChange:Z,onFocus:N,placeholder:G,inputProps:M},Q,F));return(0,_.jsxs)(x,(0,n.Z)({className:(0,a.Z)(X.root,p),disabled:b,error:y,fullWidth:S,ref:t,required:z,color:f,variant:K,ownerState:$},Y,{children:[null!=T&&""!==T&&(0,_.jsx)(h.Z,(0,n.Z)({htmlFor:J,id:te},O,{children:T})),U?(0,_.jsx)(m.Z,(0,n.Z)({"aria-describedby":ee,id:J,labelId:te,value:H,input:ne},q,{children:d})):ne,P&&(0,_.jsx)(g.Z,(0,n.Z)({id:ee},k,{children:P}))]}))}))},14097:function(e,t,r){"use strict";var n=r(92002),o=r(40629),i=r(21914),a=r(28774),s=r(54450),l=r(6670),c=r(54123),u=r(31630),d=r(56552),p=["onChange","maxRows","minRows","style","value"];function f(e){return parseInt(e,10)||0}var h={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function v(e){return function(e){for(var t in e)return!1;return!0}(e)||0===e.outerHeightStyle&&!e.overflowing}var g=i.forwardRef((function(e,t){var{onChange:r,maxRows:g,minRows:m=1,style:b,value:y}=e,A=(0,o.Z)(e,p),{current:_}=i.useRef(null!=y),C=i.useRef(null),w=(0,a.Z)(t,C),x=i.useRef(null),k=i.useRef(null),S=i.useCallback((()=>{var t=C.current,r=k.current;if(t&&r){var n=(0,s.Z)(t).getComputedStyle(t);if("0px"===n.width)return{outerHeightStyle:0,overflowing:!1};r.style.width=n.width,r.value=t.value||e.placeholder||"x","\n"===r.value.slice(-1)&&(r.value+=" ");var o=n.boxSizing,i=f(n.paddingBottom)+f(n.paddingTop),a=f(n.borderBottomWidth)+f(n.borderTopWidth),l=r.scrollHeight;r.value="x";var c=r.scrollHeight,u=l;return m&&(u=Math.max(Number(m)*c,u)),g&&(u=Math.min(Number(g)*c,u)),{outerHeightStyle:(u=Math.max(u,c))+("border-box"===o?i+a:0),overflowing:Math.abs(u-l)<=1}}}),[g,m,e.placeholder]),P=(0,l.Z)((()=>{var e=C.current,t=S();if(!e||!t||v(t))return!1;var r=t.outerHeightStyle;return null!=x.current&&x.current!==r})),E=i.useCallback((()=>{var e=C.current,t=S();if(e&&t&&!v(t)){var r=t.outerHeightStyle;x.current!==r&&(x.current=r,e.style.height="".concat(r,"px")),e.style.overflow=t.overflowing?"hidden":""}}),[S]),O=i.useRef(-1);(0,c.Z)((()=>{var e=(0,u.Z)(E),t=null==C?void 0:C.current;if(t){var r,n=(0,s.Z)(t);return n.addEventListener("resize",e),"undefined"!==typeof ResizeObserver&&(r=new ResizeObserver((()=>{P()&&(r.unobserve(t),cancelAnimationFrame(O.current),E(),O.current=requestAnimationFrame((()=>{r.observe(t)})))}))).observe(t),()=>{e.clear(),cancelAnimationFrame(O.current),n.removeEventListener("resize",e),r&&r.disconnect()}}}),[S,E,P]),(0,c.Z)((()=>{E()}));return(0,d.jsxs)(i.Fragment,{children:[(0,d.jsx)("textarea",(0,n.Z)({value:y,onChange:e=>{_||E(),r&&r(e)},ref:w,rows:m,style:b},A)),(0,d.jsx)("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:k,tabIndex:-1,style:(0,n.Z)({},h,b,{paddingTop:0,paddingBottom:0})})]})}));t.Z=g},18013:function(e,t,r){"use strict";r.d(t,{Z:function(){return g}});var n=r(40629),o=r(92002),i=r(21914),a=r(16757),s=r(17521),l=r(93319),c=r(24077),u=r(10742),d=r(90627);function p(e){return(0,d.ZP)("MuiToolbar",e)}(0,u.Z)("MuiToolbar",["root","gutters","regular","dense"]);var f=r(56552),h=["className","component","disableGutters","variant"],v=(0,c.ZP)("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[t.root,!r.disableGutters&&t.gutters,t[r.variant]]}})((e=>{var{theme:t,ownerState:r}=e;return(0,o.Z)({position:"relative",display:"flex",alignItems:"center"},!r.disableGutters&&{paddingLeft:t.spacing(2),paddingRight:t.spacing(2),[t.breakpoints.up("sm")]:{paddingLeft:t.spacing(3),paddingRight:t.spacing(3)}},"dense"===r.variant&&{minHeight:48})}),(e=>{var{theme:t,ownerState:r}=e;return"regular"===r.variant&&t.mixins.toolbar})),g=i.forwardRef((function(e,t){var r=(0,l.i)({props:e,name:"MuiToolbar"}),{className:i,component:c="div",disableGutters:u=!1,variant:d="regular"}=r,g=(0,n.Z)(r,h),m=(0,o.Z)({},r,{component:c,disableGutters:u,variant:d}),b=(e=>{var{classes:t,disableGutters:r,variant:n}=e,o={root:["root",!r&&"gutters",n]};return(0,s.Z)(o,p,t)})(m);return(0,f.jsx)(v,(0,o.Z)({as:c,className:(0,a.Z)(b.root,i),ref:t,ownerState:m},g))}))},9730:function(e,t,r){"use strict";var n=r(40629),o=r(92002),i=r(21914),a=r(16757),s=r(22735),l=r(17521),c=r(20760),u=r(34972),d=r(66881),p=r(31790),f=r(24077),h=r(2846),v=r(93319),g=r(81772),m=r(26794),b=r(80594),y=r(85715),A=r(7023),_=r(25964),C=r(44051),w=r(31509),x=r(82682),k=r(56552),S=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];var P=(0,f.ZP)(b.Z,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[t.popper,!r.disableInteractive&&t.popperInteractive,r.arrow&&t.popperArrow,!r.open&&t.popperClose]}})((e=>{var{theme:t,ownerState:r,open:n}=e;return(0,o.Z)({zIndex:(t.vars||t).zIndex.tooltip,pointerEvents:"none"},!r.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},r.arrow&&{['&[data-popper-placement*="bottom"] .'.concat(x.Z.arrow)]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},['&[data-popper-placement*="top"] .'.concat(x.Z.arrow)]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},['&[data-popper-placement*="right"] .'.concat(x.Z.arrow)]:(0,o.Z)({},r.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),['&[data-popper-placement*="left"] .'.concat(x.Z.arrow)]:(0,o.Z)({},r.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})})),E=(0,f.ZP)("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[t.tooltip,r.touch&&t.touch,r.arrow&&t.tooltipArrow,t["tooltipPlacement".concat((0,g.Z)(r.placement.split("-")[0]))]]}})((e=>{var t,{theme:r,ownerState:n}=e;return(0,o.Z)({backgroundColor:r.vars?r.vars.palette.Tooltip.bg:(0,c.Fq)(r.palette.grey[700],.92),borderRadius:(r.vars||r).shape.borderRadius,color:(r.vars||r).palette.common.white,fontFamily:r.typography.fontFamily,padding:"4px 8px",fontSize:r.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:r.typography.fontWeightMedium},n.arrow&&{position:"relative",margin:0},n.touch&&{padding:"8px 16px",fontSize:r.typography.pxToRem(14),lineHeight:"".concat((t=16/14,Math.round(1e5*t)/1e5),"em"),fontWeight:r.typography.fontWeightRegular},{[".".concat(x.Z.popper,'[data-popper-placement*="left"] &')]:(0,o.Z)({transformOrigin:"right center"},n.isRtl?(0,o.Z)({marginLeft:"14px"},n.touch&&{marginLeft:"24px"}):(0,o.Z)({marginRight:"14px"},n.touch&&{marginRight:"24px"})),[".".concat(x.Z.popper,'[data-popper-placement*="right"] &')]:(0,o.Z)({transformOrigin:"left center"},n.isRtl?(0,o.Z)({marginRight:"14px"},n.touch&&{marginRight:"24px"}):(0,o.Z)({marginLeft:"14px"},n.touch&&{marginLeft:"24px"})),[".".concat(x.Z.popper,'[data-popper-placement*="top"] &')]:(0,o.Z)({transformOrigin:"center bottom",marginBottom:"14px"},n.touch&&{marginBottom:"24px"}),[".".concat(x.Z.popper,'[data-popper-placement*="bottom"] &')]:(0,o.Z)({transformOrigin:"center top",marginTop:"14px"},n.touch&&{marginTop:"24px"})})})),O=(0,f.ZP)("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})((e=>{var{theme:t}=e;return{overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:t.vars?t.vars.palette.Tooltip.bg:(0,c.Fq)(t.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}})),M=!1,F=new s.V,R={x:0,y:0};function T(e,t){return function(r){for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i{void 0!==ze.current&&(document.body.style.WebkitUserSelect=ze.current,ze.current=void 0),Be.clear()}));i.useEffect((()=>We),[We]);var Ue=e=>{F.clear(),M=!0,Ze(!0),he&&!Ne&&he(e)},qe=(0,y.Z)((e=>{F.start(800+de,(()=>{M=!1})),Ze(!1),fe&&Ne&&fe(e),Ie.start(Se.transitions.duration.shortest,(()=>{Re.current=!1}))})),Ve=e=>{Re.current&&"touchstart"!==e.type||(Ee&&Ee.removeAttribute("title"),De.clear(),je.clear(),ae||M&&se?De.start(M?se:ae,(()=>{Ue(e)})):Ue(e))},He=e=>{De.clear(),je.start(de,(()=>{qe(e)}))},{isFocusVisibleRef:Ke,onBlur:Ye,onFocus:$e,ref:Xe}=(0,C.Z)(),[,Qe]=i.useState(!1),Je=e=>{Ye(e),!1===Ke.current&&(Qe(!1),He(e))},et=e=>{Ee||Oe(e.currentTarget),$e(e),!0===Ke.current&&(Qe(!0),Ve(e))},tt=e=>{Re.current=!0;var t=ke.props;t.onTouchStart&&t.onTouchStart(e)};i.useEffect((()=>{if(Ne)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){"Escape"!==e.key&&"Esc"!==e.key||qe(e)}}),[qe,Ne]);var rt=(0,A.Z)((0,p.Z)(ke),Xe,Oe,t);_e||0===_e||(Ne=!1);var nt=i.useRef(),ot={},it="string"===typeof _e;te?(ot.title=Ne||!it||ne?null:_e,ot["aria-describedby"]=Ne?Ge:null):(ot["aria-label"]=it?_e:null,ot["aria-labelledby"]=Ne&&!it?Ge:null);var at=(0,o.Z)({},ot,xe,ke.props,{className:(0,a.Z)(xe.className,ke.props.className),onTouchStart:tt,ref:rt},ce?{onMouseMove:e=>{var t=ke.props;t.onMouseMove&&t.onMouseMove(e),R={x:e.clientX,y:e.clientY},nt.current&&nt.current.update()}}:{});var st={};ie||(at.onTouchStart=e=>{tt(e),je.clear(),Ie.clear(),We(),ze.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",Be.start(le,(()=>{document.body.style.WebkitUserSelect=ze.current,Ve(e)}))},at.onTouchEnd=e=>{ke.props.onTouchEnd&&ke.props.onTouchEnd(e),We(),je.start(pe,(()=>{qe(e)}))}),ne||(at.onMouseOver=T(Ve,at.onMouseOver),at.onMouseLeave=T(He,at.onMouseLeave),Te||(st.onMouseOver=Ve,st.onMouseLeave=He)),re||(at.onFocus=T(et,at.onFocus),at.onBlur=T(Je,at.onBlur),Te||(st.onFocus=et,st.onBlur=Je));var lt=i.useMemo((()=>{var e,t=[{name:"arrow",enabled:Boolean(Me),options:{element:Me,padding:4}}];return null!=(e=be.popperOptions)&&e.modifiers&&(t=t.concat(be.popperOptions.modifiers)),(0,o.Z)({},be.popperOptions,{modifiers:t})}),[Me,be]),ct=(0,o.Z)({},$,{isRtl:Pe,arrow:X,disableInteractive:Te,placement:ge,PopperComponentProp:me,touch:Re.current}),ut=(e=>{var{classes:t,disableInteractive:r,arrow:n,touch:o,placement:i}=e,a={popper:["popper",!r&&"popperInteractive",n&&"popperArrow"],tooltip:["tooltip",n&&"tooltipArrow",o&&"touch","tooltipPlacement".concat((0,g.Z)(i.split("-")[0]))],arrow:["arrow"]};return(0,l.Z)(a,x.Q,t)})(ct),dt=null!=(r=null!=(c=Ae.popper)?c:J.Popper)?r:P,pt=null!=(f=null!=(I=null!=(D=Ae.transition)?D:J.Transition)?I:Ce)?f:m.Z,ft=null!=(j=null!=(B=Ae.tooltip)?B:J.Tooltip)?j:E,ht=null!=(L=null!=(Z=Ae.arrow)?Z:J.Arrow)?L:O,vt=(0,d.Z)(dt,(0,o.Z)({},be,null!=(N=ye.popper)?N:ee.popper,{className:(0,a.Z)(ut.popper,null==be?void 0:be.className,null==(G=null!=(z=ye.popper)?z:ee.popper)?void 0:G.className)}),ct),gt=(0,d.Z)(pt,(0,o.Z)({},we,null!=(W=ye.transition)?W:ee.transition),ct),mt=(0,d.Z)(ft,(0,o.Z)({},null!=(U=ye.tooltip)?U:ee.tooltip,{className:(0,a.Z)(ut.tooltip,null==(q=null!=(V=ye.tooltip)?V:ee.tooltip)?void 0:q.className)}),ct),bt=(0,d.Z)(ht,(0,o.Z)({},null!=(H=ye.arrow)?H:ee.arrow,{className:(0,a.Z)(ut.arrow,null==(K=null!=(Y=ye.arrow)?Y:ee.arrow)?void 0:K.className)}),ct);return(0,k.jsxs)(i.Fragment,{children:[i.cloneElement(ke,at),(0,k.jsx)(dt,(0,o.Z)({as:null!=me?me:b.Z,placement:ge,anchorEl:ce?{getBoundingClientRect:()=>({top:R.y,left:R.x,right:R.x,bottom:R.y,width:0,height:0})}:Ee,popperRef:nt,open:!!Ee&&Ne,id:Ge,transition:!0},st,vt,{popperOptions:lt,children:e=>{var{TransitionProps:t}=e;return(0,k.jsx)(pt,(0,o.Z)({timeout:Se.transitions.duration.shorter},t,gt,{children:(0,k.jsxs)(ft,(0,o.Z)({},mt,{children:[_e,X?(0,k.jsx)(ht,(0,o.Z)({},bt,{ref:Fe})):null]}))}))}}))]})}));t.Z=I},82682:function(e,t,r){"use strict";r.d(t,{Q:function(){return i}});var n=r(10742),o=r(90627);function i(e){return(0,o.ZP)("MuiTooltip",e)}var a=(0,n.Z)("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);t.Z=a},28501:function(e,t,r){"use strict";r.d(t,{Z:function(){return A}});var n=r(40629),o=r(92002),i=r(21914),a=r(16757),s=r(3927),l=r(17521),c=r(24077),u=r(93319),d=r(81772),p=r(10742),f=r(90627);function h(e){return(0,f.ZP)("MuiTypography",e)}(0,p.Z)("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);var v=r(56552),g=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],m=(0,c.ZP)("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{var{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],"inherit"!==r.align&&t["align".concat((0,d.Z)(r.align))],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})((e=>{var{theme:t,ownerState:r}=e;return(0,o.Z)({margin:0},"inherit"===r.variant&&{font:"inherit"},"inherit"!==r.variant&&t.typography[r.variant],"inherit"!==r.align&&{textAlign:r.align},r.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},r.gutterBottom&&{marginBottom:"0.35em"},r.paragraph&&{marginBottom:16})})),b={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},y={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},A=i.forwardRef((function(e,t){var r=(0,u.i)({props:e,name:"MuiTypography"}),i=(e=>y[e]||e)(r.color),c=(0,s.Z)((0,o.Z)({},r,{color:i})),{align:p="inherit",className:f,component:A,gutterBottom:_=!1,noWrap:C=!1,paragraph:w=!1,variant:x="body1",variantMapping:k=b}=c,S=(0,n.Z)(c,g),P=(0,o.Z)({},c,{align:p,color:i,className:f,component:A,gutterBottom:_,noWrap:C,paragraph:w,variant:x,variantMapping:k}),E=A||(w?"p":k[x]||b[x])||"span",O=(e=>{var{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:i,classes:a}=e,s={root:["root",i,"inherit"!==e.align&&"align".concat((0,d.Z)(t)),r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]};return(0,l.Z)(s,h,a)})(P);return(0,v.jsx)(m,(0,o.Z)({as:E,ref:t,ownerState:P,className:(0,a.Z)(O.root,f)},S))}))},83310:function(e,t,r){"use strict";var n=r(21914),o=r(28774),i=r(31790),a=r(32057),s=r(56552),l=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function c(e){var t=[],r=[];return Array.from(e.querySelectorAll(l)).forEach(((e,n)=>{var o=function(e){var t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;var t=t=>e.ownerDocument.querySelector('input[type="radio"]'.concat(t)),r=t('[name="'.concat(e.name,'"]:checked'));return r||(r=t('[name="'.concat(e.name,'"]'))),r!==e}(e))}(e)&&(0===o?t.push(e):r.push({documentOrder:n,tabIndex:o,node:e}))})),r.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function u(){return!0}t.Z=function(e){var{children:t,disableAutoFocus:r=!1,disableEnforceFocus:l=!1,disableRestoreFocus:d=!1,getTabbable:p=c,isEnabled:f=u,open:h}=e,v=n.useRef(!1),g=n.useRef(null),m=n.useRef(null),b=n.useRef(null),y=n.useRef(null),A=n.useRef(!1),_=n.useRef(null),C=(0,o.Z)((0,i.Z)(t),_),w=n.useRef(null);n.useEffect((()=>{h&&_.current&&(A.current=!r)}),[r,h]),n.useEffect((()=>{if(h&&_.current){var e=(0,a.Z)(_.current);return _.current.contains(e.activeElement)||(_.current.hasAttribute("tabIndex")||_.current.setAttribute("tabIndex","-1"),A.current&&_.current.focus()),()=>{d||(b.current&&b.current.focus&&(v.current=!0,b.current.focus()),b.current=null)}}}),[h]),n.useEffect((()=>{if(h&&_.current){var e=(0,a.Z)(_.current),t=t=>{w.current=t,!l&&f()&&"Tab"===t.key&&e.activeElement===_.current&&t.shiftKey&&(v.current=!0,m.current&&m.current.focus())},r=()=>{var t=_.current;if(null!==t)if(e.hasFocus()&&f()&&!v.current){if(!t.contains(e.activeElement)&&(!l||e.activeElement===g.current||e.activeElement===m.current)){if(e.activeElement!==y.current)y.current=null;else if(null!==y.current)return;if(A.current){var r=[];if(e.activeElement!==g.current&&e.activeElement!==m.current||(r=p(_.current)),r.length>0){var n,o,i=Boolean((null==(n=w.current)?void 0:n.shiftKey)&&"Tab"===(null==(o=w.current)?void 0:o.key)),a=r[0],s=r[r.length-1];"string"!==typeof a&&"string"!==typeof s&&(i?s.focus():a.focus())}else t.focus()}}}else v.current=!1};e.addEventListener("focusin",r),e.addEventListener("keydown",t,!0);var n=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&r()}),50);return()=>{clearInterval(n),e.removeEventListener("focusin",r),e.removeEventListener("keydown",t,!0)}}}),[r,l,d,f,h,p]);var x=e=>{null===b.current&&(b.current=e.relatedTarget),A.current=!0};return(0,s.jsxs)(n.Fragment,{children:[(0,s.jsx)("div",{tabIndex:h?0:-1,onFocus:x,ref:g,"data-testid":"sentinelStart"}),n.cloneElement(t,{ref:C,onFocus:e=>{null===b.current&&(b.current=e.relatedTarget),A.current=!0,y.current=e.target;var r=t.props.onFocus;r&&r(e)}}),(0,s.jsx)("div",{tabIndex:h?0:-1,onFocus:x,ref:m,"data-testid":"sentinelEnd"})]})}},33590:function(e,t){"use strict";t.Z={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"}},72795:function(e,t,r){"use strict";r.d(t,{Z:function(){return _}});var n=r(40629),o=r(92002),i=r(21914),a=r(16757),s=r(17521),l=r(81772),c=r(24077),u=r(65669),d=r(31509),p=r(73028),f=r(94956),h=r(10742),v=r(90627);function g(e){return(0,v.ZP)("PrivateSwitchBase",e)}(0,h.Z)("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);var m=r(56552),b=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],y=(0,c.ZP)(f.Z)((e=>{var{ownerState:t}=e;return(0,o.Z)({padding:9,borderRadius:"50%"},"start"===t.edge&&{marginLeft:"small"===t.size?-3:-12},"end"===t.edge&&{marginRight:"small"===t.size?-3:-12})})),A=(0,c.ZP)("input",{shouldForwardProp:u.Z})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),_=i.forwardRef((function(e,t){var{autoFocus:r,checked:i,checkedIcon:c,className:u,defaultChecked:f,disabled:h,disableFocusRipple:v=!1,edge:_=!1,icon:C,id:w,inputProps:x,inputRef:k,name:S,onBlur:P,onChange:E,onFocus:O,readOnly:M,required:F=!1,tabIndex:R,type:T,value:I}=e,D=(0,n.Z)(e,b),[j,B]=(0,d.Z)({controlled:i,default:Boolean(f),name:"SwitchBase",state:"checked"}),L=(0,p.Z)(),Z=h;L&&"undefined"===typeof Z&&(Z=L.disabled);var N="checkbox"===T||"radio"===T,G=(0,o.Z)({},e,{checked:j,disabled:Z,disableFocusRipple:v,edge:_}),z=(e=>{var{classes:t,checked:r,disabled:n,edge:o}=e,i={root:["root",r&&"checked",n&&"disabled",o&&"edge".concat((0,l.Z)(o))],input:["input"]};return(0,s.Z)(i,g,t)})(G);return(0,m.jsxs)(y,(0,o.Z)({component:"span",className:(0,a.Z)(z.root,u),centerRipple:!0,focusRipple:!v,disabled:Z,tabIndex:null,role:void 0,onFocus:e=>{O&&O(e),L&&L.onFocus&&L.onFocus(e)},onBlur:e=>{P&&P(e),L&&L.onBlur&&L.onBlur(e)},ownerState:G,ref:t},D,{children:[(0,m.jsx)(A,(0,o.Z)({autoFocus:r,checked:i,defaultChecked:f,className:z.input,disabled:Z,id:N?w:void 0,name:S,onChange:e=>{if(!e.nativeEvent.defaultPrevented){var t=e.target.checked;B(t),E&&E(e,t)}},readOnly:M,ref:k,required:F,ownerState:G,tabIndex:R,type:T},"checkbox"===T&&void 0===I?{}:{value:I},x)),j?c:C]}))}))},57266:function(e,t,r){"use strict";r(21914);var n=r(44326),o=r(56552);t.Z=(0,n.Z)((0,o.jsx)("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown")},74512:function(e,t,r){"use strict";r(21914);var n=r(44326),o=r(56552);t.Z=(0,n.Z)((0,o.jsx)("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close")},7511:function(e,t,r){"use strict";r(21914);var n=r(44326),o=r(56552);t.Z=(0,n.Z)((0,o.jsx)("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage")},98958:function(e,t,r){"use strict";r(21914);var n=r(44326),o=r(56552);t.Z=(0,n.Z)((0,o.jsx)("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage")},62292:function(e,t){"use strict";var r=e=>e,n=(()=>{var e=r;return{configure(t){e=t},generate(t){return e(t)},reset(){e=r}}})();t.Z=n},66881:function(e,t,r){"use strict";var n=r(92002),o=r(59576);t.Z=function(e,t,r){return void 0===e||(0,o.Z)(e)?t:(0,n.Z)({},t,{ownerState:(0,n.Z)({},t.ownerState,r)})}},17521:function(e,t,r){"use strict";function n(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,n={};return Object.keys(e).forEach((o=>{n[o]=e[o].reduce(((e,n)=>{if(n){var o=t(n);""!==o&&e.push(o),r&&r[n]&&e.push(r[n])}return e}),[]).join(" ")})),n}r.d(t,{Z:function(){return n}})},95047:function(e,t,r){"use strict";function n(){for(var e=arguments.length,t=new Array(e),r=0;rnull==t?e:function(){for(var r=arguments.length,n=new Array(r),o=0;o{}))}r.d(t,{Z:function(){return n}})},31630:function(e,t,r){"use strict";function n(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function n(){for(var n=arguments.length,o=new Array(n),i=0;i{e.apply(this,o)}),r)}return n.clear=()=>{clearTimeout(t)},n}r.d(t,{Z:function(){return n}})},92712:function(e,t,r){"use strict";r.d(t,{Z:function(){return s}});var n=r(92002),o=r(21914);function i(e){if("object"!==typeof e||null===e)return!1;var t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function a(e){if(o.isValidElement(e)||!i(e))return e;var t={};return Object.keys(e).forEach((r=>{t[r]=a(e[r])})),t}function s(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},l=r.clone?(0,n.Z)({},e):e;return i(e)&&i(t)&&Object.keys(t).forEach((n=>{o.isValidElement(t[n])?l[n]=t[n]:i(t[n])&&Object.prototype.hasOwnProperty.call(e,n)&&i(e[n])?l[n]=s(e[n],t[n],r):r.clone?l[n]=i(t[n])?a(t[n]):t[n]:l[n]=t[n]})),l}},34392:function(e,t){"use strict";t.Z=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(void 0===e)return{};var r={};return Object.keys(e).filter((r=>r.match(/^on[A-Z]/)&&"function"===typeof e[r]&&!t.includes(r))).forEach((t=>{r[t]=e[t]})),r}},13518:function(e,t,r){"use strict";function n(e){for(var t="https://mui.com/production-error/?code="+e,r=1;r2&&void 0!==arguments[2]?arguments[2]:"Mui",i=o[t];return i?"".concat(r,"-").concat(i):"".concat(n.Z.generate(e),"-").concat(t)}},10742:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(90627);function o(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Mui",o={};return t.forEach((t=>{o[t]=(0,n.ZP)(e,t,r)})),o}},31790:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(21914);function o(e){var t;return parseInt(n.version,10)>=19?(null==e||null==(t=e.props)?void 0:t.ref)||null:(null==e?void 0:e.ref)||null}},25619:function(e,t,r){"use strict";function n(e){var t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}r.d(t,{Z:function(){return n}})},59576:function(e,t){"use strict";t.Z=function(e){return"string"===typeof e}},53954:function(e,t,r){"use strict";r.d(t,{Z:function(){return s}});var n=r(92002),o=r(16757),i=r(34392);var a=function(e){if(void 0===e)return{};var t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"===typeof e[t]))).forEach((r=>{t[r]=e[r]})),t};var s=function(e){var{getSlotProps:t,additionalProps:r,externalSlotProps:s,externalForwardedProps:l,className:c}=e;if(!t){var u=(0,o.Z)(null==r?void 0:r.className,c,null==l?void 0:l.className,null==s?void 0:s.className),d=(0,n.Z)({},null==r?void 0:r.style,null==l?void 0:l.style,null==s?void 0:s.style),p=(0,n.Z)({},r,l,s);return u.length>0&&(p.className=u),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:void 0}}var f=(0,i.Z)((0,n.Z)({},l,s)),h=a(s),v=a(l),g=t(f),m=(0,o.Z)(null==g?void 0:g.className,null==r?void 0:r.className,c,null==l?void 0:l.className,null==s?void 0:s.className),b=(0,n.Z)({},null==g?void 0:g.style,null==r?void 0:r.style,null==l?void 0:l.style,null==s?void 0:s.style),y=(0,n.Z)({},g,r,v,h);return m.length>0&&(y.className=m),Object.keys(b).length>0&&(y.style=b),{props:y,internalRef:g.ref}}},32057:function(e,t,r){"use strict";function n(e){return e&&e.ownerDocument||document}r.d(t,{Z:function(){return n}})},54450:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(32057);function o(e){return(0,n.Z)(e).defaultView||window}},22531:function(e,t){"use strict";t.Z=function(e,t,r){return"function"===typeof e?e(t,r):e}},26357:function(e,t,r){"use strict";function n(e,t){"function"===typeof e?e(t):e&&(e.current=t)}r.d(t,{Z:function(){return n}})},43969:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(21914);function o(e){var{controlled:t,default:r,name:o,state:i="value"}=e,{current:a}=n.useRef(void 0!==t),[s,l]=n.useState(r);return[a?t:s,n.useCallback((e=>{a||l(e)}),[])]}},54123:function(e,t,r){"use strict";var n=r(21914),o="undefined"!==typeof window?n.useLayoutEffect:n.useEffect;t.Z=o},6670:function(e,t,r){"use strict";var n=r(21914),o=r(54123);t.Z=function(e){var t=n.useRef(e);return(0,o.Z)((()=>{t.current=e})),n.useRef((function(){return(0,t.current)(...arguments)})).current}},28774:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(21914),o=r(26357);function i(){for(var e=arguments.length,t=new Array(e),r=0;rt.every((e=>null==e))?null:e=>{t.forEach((t=>{(0,o.Z)(t,e)}))}),t)}},60207:function(e,t,r){"use strict";var n;r.d(t,{Z:function(){return s}});var o=r(21914),i=0;var a=(n||(n=r.t(o,2)))["useId".toString()];function s(e){if(void 0!==a){var t=a();return null!=e?e:t}return function(e){var[t,r]=o.useState(e),n=e||t;return o.useEffect((()=>{null==t&&r("mui-".concat(i+=1))}),[t]),n}(e)}},83480:function(e,t,r){"use strict";var n=r(92002),o=r(40629),i=r(28774),a=r(66881),s=r(53954),l=r(22531),c=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];t.Z=function(e){var t,{elementType:r,externalSlotProps:u,ownerState:d,skipResolvingSlotProps:p=!1}=e,f=(0,o.Z)(e,c),h=p?{}:(0,l.Z)(u,d),{props:v,internalRef:g}=(0,s.Z)((0,n.Z)({},f,{externalSlotProps:h})),m=(0,i.Z)(g,null==h?void 0:h.ref,null==(t=e.additionalProps)?void 0:t.ref);return(0,a.Z)(r,(0,n.Z)({},v,{ref:m}),d)}},22735:function(e,t,r){"use strict";r.d(t,{V:function(){return a},Z:function(){return s}});var n=r(21914),o={};var i=[];class a{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new a}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}}function s(){var e,t=function(e,t){var r=n.useRef(o);return r.current===o&&(r.current=e(t)),r}(a.create).current;return e=t.disposeEffect,n.useEffect(e,i),t}},54893:function(e,t,r){"use strict";r.d(t,{Z:function(){return _}});var n=r(92002),o=r(40629),i=r(21914),a=r(9709);var s=i.createContext(null);function l(){return i.useContext(s)}var c="function"===typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",u=r(56552);var d=function(e){var{children:t,theme:r}=e,n=l(),o=i.useMemo((()=>{var e=null===n?r:function(e,t){return"function"===typeof t?t(e):(0,a.Z)({},e,t)}(n,r);return null!=e&&(e[c]=null!==n),e}),[r,n]);return(0,u.jsx)(s.Provider,{value:o,children:t})},p=r(12009),f=r(57880),h=r(34972),v=r(59187),g={};function m(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return i.useMemo((()=>{var o=e&&t[e]||t;if("function"===typeof r){var i=r(o),s=e?(0,a.Z)({},t,{[e]:i}):i;return n?()=>s:s}return e?(0,a.Z)({},t,{[e]:r}):(0,a.Z)({},t,r)}),[e,t,r,n])}var b=function(e){var{children:t,theme:r,themeId:n}=e,o=(0,f.Z)(g),i=l()||g,a=m(n,o,r),s=m(n,i,r,!0),c="rtl"===a.direction;return(0,u.jsx)(d,{theme:s,children:(0,u.jsx)(p.T.Provider,{value:a,children:(0,u.jsx)(h.Z,{value:c,children:(0,u.jsx)(v.Z,{value:null==a?void 0:a.components,children:t})})})})},y=r(88464),A=["theme"];function _(e){var{theme:t}=e,r=(0,o.Z)(e,A),i=t[y.Z],a=i||t;return"function"!==typeof t&&(i&&!i.vars?a=(0,n.Z)({},i,{vars:null}):t&&!t.vars&&(a=(0,n.Z)({},t,{vars:null}))),(0,u.jsx)(b,(0,n.Z)({},r,{themeId:i?y.Z:void 0,theme:a}))}},15038:function(e,t,r){"use strict";r.d(t,{Z:function(){return I}});var n=r(92002),o=r(40629),i=r(13518),a=r(92712),s=r(49890),l=r(87053),c=r(63203);var u=r(20760),d={black:"#000",white:"#fff"},p={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},f={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},h={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},v={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},g={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},m={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},b=r(33590),y=["mode","contrastThreshold","tonalOffset"],A={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:d.white,default:d.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},_={text:{primary:d.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:d.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function C(e,t,r,n){var o=n.light||n,i=n.dark||1.5*n;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:"light"===t?e.light=(0,u.$n)(e.main,o):"dark"===t&&(e.dark=(0,u._j)(e.main,i)))}function w(e){var{mode:t="light",contrastThreshold:r=3,tonalOffset:s=.2}=e,l=(0,o.Z)(e,y),c=e.primary||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:g[200],light:g[50],dark:g[400]}:{main:g[700],light:g[400],dark:g[800]}}(t),w=e.secondary||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:f[200],light:f[50],dark:f[400]}:{main:f[500],light:f[300],dark:f[700]}}(t),x=e.error||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:h[500],light:h[300],dark:h[700]}:{main:h[700],light:h[400],dark:h[800]}}(t),k=e.info||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:m[400],light:m[300],dark:m[700]}:{main:m[700],light:m[500],dark:m[900]}}(t),S=e.success||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:b.Z[400],light:b.Z[300],dark:b.Z[700]}:{main:b.Z[800],light:b.Z[500],dark:b.Z[900]}}(t),P=e.warning||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:v[400],light:v[300],dark:v[700]}:{main:"#ed6c02",light:v[500],dark:v[900]}}(t);function E(e){return(0,u.mi)(e,_.text.primary)>=r?_.text.primary:A.text.primary}var O=e=>{var{color:t,name:r,mainShade:o=500,lightShade:a=300,darkShade:l=700}=e;if(!(t=(0,n.Z)({},t)).main&&t[o]&&(t.main=t[o]),!t.hasOwnProperty("main"))throw new Error((0,i.Z)(11,r?" (".concat(r,")"):"",o));if("string"!==typeof t.main)throw new Error((0,i.Z)(12,r?" (".concat(r,")"):"",JSON.stringify(t.main)));return C(t,"light",a,s),C(t,"dark",l,s),t.contrastText||(t.contrastText=E(t.main)),t},M={dark:_,light:A};return(0,a.Z)((0,n.Z)({common:(0,n.Z)({},d),mode:t,primary:O({color:c,name:"primary"}),secondary:O({color:w,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:O({color:x,name:"error"}),warning:O({color:P,name:"warning"}),info:O({color:k,name:"info"}),success:O({color:S,name:"success"}),grey:p,contrastThreshold:r,getContrastText:E,augmentColor:O,tonalOffset:s},M[t]),l)}var x=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];var k={textTransform:"uppercase"},S='"Roboto", "Helvetica", "Arial", sans-serif';function P(e,t){var r="function"===typeof t?t(e):t,{fontFamily:i=S,fontSize:s=14,fontWeightLight:l=300,fontWeightRegular:c=400,fontWeightMedium:u=500,fontWeightBold:d=700,htmlFontSize:p=16,allVariants:f,pxToRem:h}=r,v=(0,o.Z)(r,x);var g=s/14,m=h||(e=>"".concat(e/p*g,"rem")),b=(e,t,r,o,a)=>{return(0,n.Z)({fontFamily:i,fontWeight:e,fontSize:m(t),lineHeight:r},i===S?{letterSpacing:"".concat((s=o/t,Math.round(1e5*s)/1e5),"em")}:{},a,f);var s},y={h1:b(l,96,1.167,-1.5),h2:b(l,60,1.2,-.5),h3:b(c,48,1.167,0),h4:b(c,34,1.235,.25),h5:b(c,24,1.334,0),h6:b(u,20,1.6,.15),subtitle1:b(c,16,1.75,.15),subtitle2:b(u,14,1.57,.1),body1:b(c,16,1.5,.15),body2:b(c,14,1.43,.15),button:b(u,14,1.75,.4,k),caption:b(c,12,1.66,.4),overline:b(c,12,2.66,1,k),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return(0,a.Z)((0,n.Z)({htmlFontSize:p,pxToRem:m,fontFamily:i,fontSize:s,fontWeightLight:l,fontWeightRegular:c,fontWeightMedium:u,fontWeightBold:d},y),v,{clone:!1})}function E(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}var O=["none",E(0,2,1,-1,0,1,1,0,0,1,3,0),E(0,3,1,-2,0,2,2,0,0,1,5,0),E(0,3,3,-2,0,3,4,0,0,1,8,0),E(0,2,4,-1,0,4,5,0,0,1,10,0),E(0,3,5,-1,0,5,8,0,0,1,14,0),E(0,3,5,-1,0,6,10,0,0,1,18,0),E(0,4,5,-2,0,7,10,1,0,2,16,1),E(0,5,5,-3,0,8,10,1,0,3,14,2),E(0,5,6,-3,0,9,12,1,0,3,16,2),E(0,6,6,-3,0,10,14,1,0,4,18,3),E(0,6,7,-4,0,11,15,1,0,4,20,3),E(0,7,8,-4,0,12,17,2,0,5,22,4),E(0,7,8,-4,0,13,19,2,0,5,24,4),E(0,7,9,-4,0,14,21,2,0,5,26,4),E(0,8,9,-5,0,15,22,2,0,6,28,5),E(0,8,10,-5,0,16,24,2,0,6,30,5),E(0,8,11,-5,0,17,26,2,0,6,32,5),E(0,9,11,-5,0,18,28,2,0,7,34,6),E(0,9,12,-6,0,19,29,2,0,7,36,6),E(0,10,13,-6,0,20,31,3,0,8,38,7),E(0,10,13,-6,0,21,33,3,0,8,40,7),E(0,10,14,-6,0,22,35,3,0,8,42,7),E(0,11,14,-7,0,23,36,3,0,9,44,8),E(0,11,15,-7,0,24,38,3,0,9,46,8)],M=r(90675),F={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},R=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function T(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{mixins:t={},palette:r={},transitions:u={},typography:d={}}=e,p=(0,o.Z)(e,R);if(e.vars&&void 0===e.generateCssVars)throw new Error((0,i.Z)(18));var f,h,v=w(r),g=(0,c.Z)(e),m=(0,a.Z)(g,{mixins:(f=g.breakpoints,h=t,(0,n.Z)({toolbar:{minHeight:56,[f.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[f.up("sm")]:{minHeight:64}}},h)),palette:v,shadows:O.slice(),typography:P(v,d),transitions:(0,M.ZP)(u),zIndex:(0,n.Z)({},F)});m=(0,a.Z)(m,p);for(var b=arguments.length,y=new Array(b>1?b-1:0),A=1;A(0,a.Z)(e,t)),m)).unstable_sxConfig=(0,n.Z)({},s.Z,null==p?void 0:p.unstable_sxConfig),m.unstable_sx=function(e){return(0,l.Z)({sx:e,theme:this})},m}var I=T},90675:function(e,t,r){"use strict";r.d(t,{ZP:function(){return u},x9:function(){return s}});var n=r(40629),o=r(92002),i=["duration","easing","delay"],a={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},s={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function l(e){return"".concat(Math.round(e),"ms")}function c(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function u(e){var t=(0,o.Z)({},a,e.easing),r=(0,o.Z)({},s,e.duration);return(0,o.Z)({getAutoHeightDuration:c,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{duration:a=r.standard,easing:s=t.easeInOut,delay:c=0}=o;(0,n.Z)(o,i);return(Array.isArray(e)?e:[e]).map((e=>"".concat(e," ").concat("string"===typeof a?a:l(a)," ").concat(s," ").concat("string"===typeof c?c:l(c)))).join(",")}},e,{easing:t,duration:r})}},64747:function(e,t,r){"use strict";var n=(0,r(15038).Z)();t.Z=n},88464:function(e,t){"use strict";t.Z="$$material"},65669:function(e,t,r){"use strict";var n=r(14023);t.Z=e=>(0,n.Z)(e)&&"classes"!==e},14023:function(e,t){"use strict";t.Z=function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}},24077:function(e,t,r){"use strict";var n=r(40971),o=r(64747),i=r(88464),a=r(65669),s=(0,n.ZP)({themeId:i.Z,defaultTheme:o.Z,rootShouldForwardProp:a.Z});t.ZP=s},2846:function(e,t,r){"use strict";r.d(t,{Z:function(){return a}});r(21914);var n=r(90151),o=r(64747),i=r(88464);function a(){var e=(0,n.Z)(o.Z);return e[i.Z]||e}},85478:function(e,t,r){"use strict";r.d(t,{C:function(){return o},n:function(){return n}});var n=e=>e.scrollTop;function o(e,t){var r,n,{timeout:o,easing:i,style:a={}}=e;return{duration:null!=(r=a.transitionDuration)?r:"number"===typeof o?o:o[t.mode]||0,easing:null!=(n=a.transitionTimingFunction)?n:"object"===typeof i?i[t.mode]:i,delay:a.transitionDelay}}},81772:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(13518);var o=function(e){if("string"!==typeof e)throw new Error((0,n.Z)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},19504:function(e,t,r){"use strict";var n=r(95047);t.Z=n.Z},44326:function(e,t,r){"use strict";r.d(t,{Z:function(){return s}});var n=r(92002),o=r(21914),i=r(58789),a=r(56552);function s(e,t){function r(r,o){return(0,a.jsx)(i.Z,(0,n.Z)({"data-testid":"".concat(t,"Icon"),ref:o},r,{children:e}))}return r.muiName=i.Z.muiName,o.memo(o.forwardRef(r))}},38822:function(e,t,r){"use strict";var n=r(31630);t.Z=n.Z},48566:function(e,t,r){"use strict";r.r(t),r.d(t,{capitalize:function(){return o.Z},createChainedFunction:function(){return i.Z},createSvgIcon:function(){return a.Z},debounce:function(){return s.Z},deprecatedPropType:function(){return l},isMuiElement:function(){return c.Z},ownerDocument:function(){return u.Z},ownerWindow:function(){return d.Z},requirePropFactory:function(){return p},setRef:function(){return f},unstable_ClassNameGenerator:function(){return _},unstable_useEnhancedEffect:function(){return h.Z},unstable_useId:function(){return v.Z},unsupportedProp:function(){return g},useControlled:function(){return m.Z},useEventCallback:function(){return b.Z},useForkRef:function(){return y.Z},useIsFocusVisible:function(){return A.Z}});var n=r(62292),o=r(81772),i=r(19504),a=r(44326),s=r(38822);var l=function(e,t){return()=>null},c=r(6951),u=r(77036),d=r(67171);r(92002);var p=function(e,t){return()=>null},f=r(26357).Z,h=r(30607),v=r(25964);var g=function(e,t,r,n,o){return null},m=r(31509),b=r(85715),y=r(7023),A=r(44051),_={configure:e=>{n.Z.configure(e)}}},6951:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(21914);var o=function(e,t){var r,o;return n.isValidElement(e)&&-1!==t.indexOf(null!=(r=e.type.muiName)?r:null==(o=e.type)||null==(o=o._payload)||null==(o=o.value)?void 0:o.muiName)}},77036:function(e,t,r){"use strict";var n=r(32057);t.Z=n.Z},67171:function(e,t,r){"use strict";var n=r(54450);t.Z=n.Z},31509:function(e,t,r){"use strict";var n=r(43969);t.Z=n.Z},30607:function(e,t,r){"use strict";var n=r(54123);t.Z=n.Z},85715:function(e,t,r){"use strict";var n=r(6670);t.Z=n.Z},7023:function(e,t,r){"use strict";var n=r(28774);t.Z=n.Z},25964:function(e,t,r){"use strict";var n=r(60207);t.Z=n.Z},44051:function(e,t,r){"use strict";r.d(t,{Z:function(){return f}});var n=r(21914),o=r(22735),i=!0,a=!1,s=new o.V,l={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function c(e){e.metaKey||e.altKey||e.ctrlKey||(i=!0)}function u(){i=!1}function d(){"hidden"===this.visibilityState&&a&&(i=!0)}function p(e){var{target:t}=e;try{return t.matches(":focus-visible")}catch(r){}return i||function(e){var{type:t,tagName:r}=e;return!("INPUT"!==r||!l[t]||e.readOnly)||"TEXTAREA"===r&&!e.readOnly||!!e.isContentEditable}(t)}var f=function(){var e=n.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",c,!0),t.addEventListener("mousedown",u,!0),t.addEventListener("pointerdown",u,!0),t.addEventListener("touchstart",u,!0),t.addEventListener("visibilitychange",d,!0))}),[]),t=n.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!p(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(a=!0,s.start(100,(()=>{a=!1})),t.current=!1,!0)},ref:e}}},41944:function(e,t,r){"use strict";r.d(t,{Z:function(){return p}});var n=r(92002),o=r(40629),i=r(28774),a=r(66881),s=r(22531),l=r(53954),c=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],u=["component","slots","slotProps"],d=["component"];function p(e,t){var{className:r,elementType:p,ownerState:f,externalForwardedProps:h,getSlotOwnerState:v,internalForwardedProps:g}=t,m=(0,o.Z)(t,c),{component:b,slots:y={[e]:void 0},slotProps:A={[e]:void 0}}=h,_=(0,o.Z)(h,u),C=y[e]||p,w=(0,s.Z)(A[e],f),x=(0,l.Z)((0,n.Z)({className:r},m,{externalForwardedProps:"root"===e?_:void 0,externalSlotProps:w})),{props:{component:k},internalRef:S}=x,P=(0,o.Z)(x.props,d),E=(0,i.Z)(S,null==w?void 0:w.ref,t.ref),O=v?v(P):{},M=(0,n.Z)({},f,O),F="root"===e?k||b:k,R=(0,a.Z)(C,(0,n.Z)({},"root"===e&&!b&&!y[e]&&g,"root"!==e&&!y[e]&&g,P,F&&{as:F},{ref:E}),M);return Object.keys(O).forEach((e=>{delete R[e]})),[C,R]}},17986:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});r(21914);var n=r(45717),o=r(56552);function i(e){var{styles:t,defaultTheme:r={}}=e,i="function"===typeof t?e=>{return t(void 0===(n=e)||null===n||0===Object.keys(n).length?r:e);var n}:t;return(0,o.jsx)(n.xB,{styles:i})}},89225:function(e,t,r){"use strict";r.d(t,{Z:function(){return A}});r(21914);var n=r(12009);var o=function(){function e(e){var t=this;this._insertTag=function(e){var r;r=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,r),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var r=function(e){if(e.sheet)return e.sheet;for(var t=0;t6)switch((0,a.uO)(e,t+1)){case 109:if(45!==(0,a.uO)(e,t+4))break;case 102:return(0,a.gx)(e,/(.+:)(.+)-([^]+)/,"$1"+s.G$+"$2-$3$1"+s.uj+(108==(0,a.uO)(e,t+3)?"$3":"$2-$3"))+e;case 115:return~(0,a.Cw)(e,"stretch")?g((0,a.gx)(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==(0,a.uO)(e,t+1))break;case 6444:switch((0,a.uO)(e,(0,a.to)(e)-3-(~(0,a.Cw)(e,"!important")&&10))){case 107:return(0,a.gx)(e,":",":"+s.G$)+e;case 101:return(0,a.gx)(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+s.G$+(45===(0,a.uO)(e,14)?"inline-":"")+"box$3$1"+s.G$+"$2$3$1"+s.MS+"$2box$3")+e}break;case 5936:switch((0,a.uO)(e,t+11)){case 114:return s.G$+e+s.MS+(0,a.gx)(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return s.G$+e+s.MS+(0,a.gx)(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return s.G$+e+s.MS+(0,a.gx)(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return s.G$+e+s.MS+e+e}return e}var m,b=[function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case s.h5:e.return=g(e.value,e.length);break;case s.lK:return(0,l.q)([(0,i.JG)(e,{value:(0,a.gx)(e.value,"@","@"+s.G$)})],n);case s.Fr:if(e.length)return(0,a.$e)(e.props,(function(t){switch((0,a.EQ)(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return(0,l.q)([(0,i.JG)(e,{props:[(0,a.gx)(t,/:(read-\w+)/,":"+s.uj+"$1")]})],n);case"::placeholder":return(0,l.q)([(0,i.JG)(e,{props:[(0,a.gx)(t,/:(plac\w+)/,":"+s.G$+"input-$1")]}),(0,i.JG)(e,{props:[(0,a.gx)(t,/:(plac\w+)/,":"+s.uj+"$1")]}),(0,i.JG)(e,{props:[(0,a.gx)(t,/:(plac\w+)/,s.MS+"input-$1")]})],n)}return""}))}}],y=r(56552);function A(e){var{injectFirst:t,children:r}=e;return t&&m?(0,y.jsx)(n.C,{value:m,children:r}):r}"object"===typeof document&&(m=function(e){var t=e.key;if("css"===t){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var n,i,a=e.stylisPlugins||b,s={},d=[];n=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),r=1;r{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}},19589:function(e,t,r){"use strict";r.d(t,{Z:function(){return mr}});var n=r(39324),o=r(90957),i=r(21914),a="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s="object"===("undefined"===typeof window?"undefined":a(window))&&"object"===("undefined"===typeof document?"undefined":a(document))&&9===document.nodeType,l=r(33424),c=r(15560),u=r(94782),d={}.constructor;function p(e){if(null==e||"object"!==typeof e)return e;if(Array.isArray(e))return e.map(p);if(e.constructor!==d)return e;var t={};for(var r in e)t[r]=p(e[r]);return t}function f(e,t,r){void 0===e&&(e="unnamed");var n=r.jss,o=p(t),i=n.plugins.onCreateRule(e,o,r);return i||(e[0],null)}var h=function(e,t){for(var r="",n=0;n<+~=|^:(),"'`\s])/g,A="undefined"!==typeof CSS&&CSS.escape,_=function(e){return A?A(e):e.replace(y,"\\$1")},C=function(){function e(e,t,r){this.type="style",this.isProcessed=!1;var n=r.sheet,o=r.Renderer;this.key=e,this.options=r,this.style=t,n?this.renderer=n.renderer:o&&(this.renderer=new o)}return e.prototype.prop=function(e,t,r){if(void 0===t)return this.style[e];var n=!!r&&r.force;if(!n&&this.style[e]===t)return this;var o=t;r&&!1===r.process||(o=this.options.jss.plugins.onChangeValue(t,e,this));var i=null==o||!1===o,a=e in this.style;if(i&&!a&&!n)return this;var s=i&&a;if(s?delete this.style[e]:this.style[e]=o,this.renderable&&this.renderer)return s?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,o),this;var l=this.options.sheet;return l&&l.attached,this},e}(),w=function(e){function t(t,r,n){var o;o=e.call(this,t,r,n)||this;var i=n.selector,a=n.scoped,s=n.sheet,l=n.generateId;return i?o.selectorText=i:!1!==a&&(o.id=l((0,u.Z)((0,u.Z)(o)),s),o.selectorText="."+_(o.id)),o}(0,c.Z)(t,e);var r=t.prototype;return r.applyTo=function(e){var t=this.renderer;if(t){var r=this.toJSON();for(var n in r)t.setProperty(e,n,r[n])}return this},r.toJSON=function(){var e={};for(var t in this.style){var r=this.style[t];"object"!==typeof r?e[t]=r:Array.isArray(r)&&(e[t]=v(r))}return e},r.toString=function(e){var t=this.options.sheet,r=!!t&&t.options.link?(0,o.Z)({},e,{allowEmpty:!0}):e;return b(this.selectorText,this.style,r)},(0,l.Z)(t,[{key:"selector",set:function(e){if(e!==this.selectorText){this.selectorText=e;var t=this.renderer,r=this.renderable;if(r&&t)t.setSelector(r,e)||t.replaceRule(r,this)}},get:function(){return this.selectorText}}]),t}(C),x={onCreateRule:function(e,t,r){return"@"===e[0]||r.parent&&"keyframes"===r.parent.type?null:new w(e,t,r)}},k={indent:1,children:!0},S=/@([\w-]+)/,P=function(){function e(e,t,r){this.type="conditional",this.isProcessed=!1,this.key=e;var n=e.match(S);for(var i in this.at=n?n[1]:"unknown",this.query=r.name||"@"+this.at,this.options=r,this.rules=new X((0,o.Z)({},r,{parent:this})),t)this.rules.add(i,t[i]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,t,r){var n=this.rules.add(e,t,r);return n?(this.options.jss.plugins.onProcessRule(n),n):null},t.replaceRule=function(e,t,r){var n=this.rules.replace(e,t,r);return n&&this.options.jss.plugins.onProcessRule(n),n},t.toString=function(e){void 0===e&&(e=k);var t=g(e).linebreak;if(null==e.indent&&(e.indent=k.indent),null==e.children&&(e.children=k.children),!1===e.children)return this.query+" {}";var r=this.rules.toString(e);return r?this.query+" {"+t+r+t+"}":""},e}(),E=/@container|@media|@supports\s+/,O={onCreateRule:function(e,t,r){return E.test(e)?new P(e,t,r):null}},M={indent:1,children:!0},F=/@keyframes\s+([\w-]+)/,R=function(){function e(e,t,r){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var n=e.match(F);n&&n[1]?this.name=n[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=r;var i=r.scoped,a=r.sheet,s=r.generateId;for(var l in this.id=!1===i?this.name:_(s(this,a)),this.rules=new X((0,o.Z)({},r,{parent:this})),t)this.rules.add(l,t[l],(0,o.Z)({},r,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=M);var t=g(e).linebreak;if(null==e.indent&&(e.indent=M.indent),null==e.children&&(e.children=M.children),!1===e.children)return this.at+" "+this.id+" {}";var r=this.rules.toString(e);return r&&(r=""+t+r+t),this.at+" "+this.id+" {"+r+"}"},e}(),T=/@keyframes\s+/,I=/\$([\w-]+)/g,D=function(e,t){return"string"===typeof e?e.replace(I,(function(e,r){return r in t?t[r]:e})):e},j=function(e,t,r){var n=e[t],o=D(n,r);o!==n&&(e[t]=o)},B={onCreateRule:function(e,t,r){return"string"===typeof e&&T.test(e)?new R(e,t,r):null},onProcessStyle:function(e,t,r){return"style"===t.type&&r?("animation-name"in e&&j(e,"animation-name",r.keyframes),"animation"in e&&j(e,"animation",r.keyframes),e):e},onChangeValue:function(e,t,r){var n=r.options.sheet;if(!n)return e;switch(t){case"animation":case"animation-name":return D(e,n.keyframes);default:return e}}},L=function(e){function t(){return e.apply(this,arguments)||this}return(0,c.Z)(t,e),t.prototype.toString=function(e){var t=this.options.sheet,r=!!t&&t.options.link?(0,o.Z)({},e,{allowEmpty:!0}):e;return b(this.key,this.style,r)},t}(C),Z={onCreateRule:function(e,t,r){return r.parent&&"keyframes"===r.parent.type?new L(e,t,r):null}},N=function(){function e(e,t,r){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=e,this.style=t,this.options=r}return e.prototype.toString=function(e){var t=g(e).linebreak;if(Array.isArray(this.style)){for(var r="",n=0;n=this.index)t.push(e);else for(var n=0;nr)return void t.splice(n,0,e)},t.reset=function(){this.registry=[]},t.remove=function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)},t.toString=function(e){for(var t=void 0===e?{}:e,r=t.attached,o=(0,n.Z)(t,["attached"]),i=g(o).linebreak,a="",s=0;s-1?n.substr(0,o-1):n;e.style.setProperty(t,i,o>-1?"important":"")}}catch(a){return!1}return!0},ce=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(r){}},ue=function(e,t){return e.selectorText=t,e.selectorText===t},de=ae((function(){return document.querySelector("head")}));function pe(e){var t=te.registry;if(t.length>0){var r=function(e,t){for(var r=0;rt.index&&n.options.insertionPoint===t.insertionPoint)return n}return null}(t,e);if(r&&r.renderer)return{parent:r.renderer.element.parentNode,node:r.renderer.element};if(r=function(e,t){for(var r=e.length-1;r>=0;r--){var n=e[r];if(n.attached&&n.options.insertionPoint===t.insertionPoint)return n}return null}(t,e),r&&r.renderer)return{parent:r.renderer.element.parentNode,node:r.renderer.element.nextSibling}}var n=e.insertionPoint;if(n&&"string"===typeof n){var o=function(e){for(var t=de(),r=0;rr?r:t},ge=function(){function e(e){this.getPropertyValue=se,this.setProperty=le,this.removeProperty=ce,this.setSelector=ue,this.hasInsertedRules=!1,this.cssRules=[],e&&te.add(e),this.sheet=e;var t=this.sheet?this.sheet.options:{},r=t.media,n=t.meta,o=t.element;this.element=o||function(){var e=document.createElement("style");return e.textContent="\n",e}(),this.element.setAttribute("data-jss",""),r&&this.element.setAttribute("media",r),n&&this.element.setAttribute("data-meta",n);var i=fe();i&&this.element.setAttribute("nonce",i)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var r=t.insertionPoint,n=pe(t);if(!1!==n&&n.parent)n.parent.insertBefore(e,n.node);else if(r&&"number"===typeof r.nodeType){var o=r,i=o.parentNode;i&&i.insertBefore(e,o.nextSibling)}else de().appendChild(e)}(this.element,this.sheet.options);var e=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var e=this.element.parentNode;e&&e.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent="\n")}},t.deploy=function(){var e=this.sheet;e&&(e.options.link?this.insertRules(e.rules):this.element.textContent="\n"+e.toString()+"\n")},t.insertRules=function(e,t){for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:{},{baseClasses:t,newClasses:r,Component:n}=e;if(!r)return t;var i=(0,o.Z)({},t);return Object.keys(r).forEach((e=>{r[e]&&(i[e]="".concat(t[e]," ").concat(r[e]))})),i}var we={set:(e,t,r,n)=>{var o=e.get(t);o||(o=new Map,e.set(t,o)),o.set(r,n)},get:(e,t,r)=>{var n=e.get(t);return n?n.get(r):void 0},delete:(e,t,r)=>{e.get(t).delete(r)}},xe=we,ke=r(81625),Se="function"===typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",Pe=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];var Ee=Date.now(),Oe="fnValues"+Ee,Me="fnStyle"+ ++Ee,Fe=function(){return{onCreateRule:function(e,t,r){if("function"!==typeof t)return null;var n=f(e,{},r);return n[Me]=t,n},onProcessStyle:function(e,t){if(Oe in t||Me in t)return e;var r={};for(var n in e){var o=e[n];"function"===typeof o&&(delete e[n],r[n]=o)}return t[Oe]=r,e},onUpdate:function(e,t,r,n){var o=t,i=o[Me];i&&(o.style=i(e)||{});var a=o[Oe];if(a)for(var s in a)o.prop(s,a[s](e),n)}}},Re="@global",Te="@global ",Ie=function(){function e(e,t,r){for(var n in this.type="global",this.at=Re,this.isProcessed=!1,this.key=e,this.options=r,this.rules=new X((0,o.Z)({},r,{parent:this})),t)this.rules.add(n,t[n]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.addRule=function(e,t,r){var n=this.rules.add(e,t,r);return n&&this.options.jss.plugins.onProcessRule(n),n},t.replaceRule=function(e,t,r){var n=this.rules.replace(e,t,r);return n&&this.options.jss.plugins.onProcessRule(n),n},t.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(e){return this.rules.toString(e)},e}(),De=function(){function e(e,t,r){this.type="global",this.at=Re,this.isProcessed=!1,this.key=e,this.options=r;var n=e.substr(8);this.rule=r.jss.createRule(n,t,(0,o.Z)({},r,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),je=/\s*,\s*/g;function Be(e,t){for(var r=e.split(je),n="",o=0;o-1){var o=Bt[e];if(!Array.isArray(o))return vt.js+_t(o)in t&&vt.css+o;if(!n)return!1;for(var i=0;it?1:-1:e.length-t.length};return{onProcessStyle:function(t,r){if("style"!==r.type)return t;for(var n={},o=Object.keys(t).sort(e),i=0;i0&&void 0!==arguments[0]?arguments[0]:{},{disableGlobal:t=!1,productionPrefix:r="jss",seed:n=""}=e,o=""===n?"":"".concat(n,"-"),i=0,a=()=>i+=1;return(e,i)=>{var s=i.options.name;if(s&&0===s.indexOf("Mui")&&!i.options.link&&!t){if(-1!==Pe.indexOf(e.key))return"Mui-".concat(e.key);var l="".concat(o).concat(s,"-").concat(e.key);return i.options.theme[Se]&&""===n?"".concat(l,"-").concat(a()):l}return"".concat(o).concat(r).concat(a())}}(),or={disableGeneration:!1,generateClassName:nr,jss:rr,sheetsCache:null,sheetsManager:new Map,sheetsRegistry:null},ir=i.createContext(or);var ar=-1e9;function sr(e){return null!==e&&"object"===typeof e&&e.constructor===Object}function lr(e){if(!sr(e))return e;var t={};return Object.keys(e).forEach((r=>{t[r]=lr(e[r])})),t}function cr(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},n=r.clone?(0,o.Z)({},e):e;return sr(e)&&sr(t)&&Object.keys(t).forEach((o=>{"__proto__"!==o&&(sr(t[o])&&o in e&&sr(e[o])?n[o]=cr(e[o],t[o],r):r.clone?n[o]=sr(t[o])?lr(t[o]):t[o]:n[o]=t[o])})),n}function ur(e){if("string"!==typeof e)throw new Error(function(e){for(var t="https://mui.com/production-error/?code="+e,r=1;r{var a;try{a=t?e(r):e}catch(u){throw u}if(!i||!r.components||!r.components[i]||!r.components[i].styleOverrides&&!r.components[i].variants)return a;var s=r.components[i].styleOverrides||{},l=r.components[i].variants||[],c=(0,o.Z)({},a);return Object.keys(s).forEach((e=>{c[e]=cr(c[e]||{},s[e])})),l.forEach((e=>{var t=function(e){var{variant:t}=e,r=(0,n.Z)(e,dr),o=t||"";return Object.keys(r).sort().forEach((t=>{o+="color"===t?pr(o)?e[t]:ur(e[t]):"".concat(pr(o)?t:ur(t)).concat(ur(e[t].toString()))})),o}(e.props);c[t]=cr(c[t]||{},e.style)})),c},options:{}}}var hr={},vr=["name","classNamePrefix","Component","defaultTheme"];function gr(e,t){var{state:r,theme:n,stylesOptions:i,stylesCreator:a,name:s}=e;if(!i.disableGeneration){var l=xe.get(i.sheetsManager,a,n);l||(l={refs:0,staticSheet:null,dynamicStyles:null},xe.set(i.sheetsManager,a,n,l));var c=(0,o.Z)({},a.options,i,{theme:n,flip:"boolean"===typeof i.flip?i.flip:"rtl"===n.direction});c.generateId=c.serverGenerateClassName||c.generateClassName;var u=i.sheetsRegistry;if(0===l.refs){var d;i.sheetsCache&&(d=xe.get(i.sheetsCache,a,n));var p=a.create(n,s);d||((d=i.jss.createStyleSheet(p,(0,o.Z)({link:!1},c))).attach(),i.sheetsCache&&xe.set(i.sheetsCache,a,n,d)),u&&u.add(d),l.staticSheet=d,l.dynamicStyles=_e(p)}if(l.dynamicStyles){var f=i.jss.createStyleSheet(l.dynamicStyles,(0,o.Z)({link:!0},c));f.update(t),f.attach(),r.dynamicSheet=f,r.classes=Ce({baseClasses:l.staticSheet.classes,newClasses:f.classes}),u&&u.add(f)}else r.classes=l.staticSheet.classes;l.refs+=1}}function mr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{name:r,classNamePrefix:a,Component:s,defaultTheme:l=hr}=t,c=(0,n.Z)(t,vr),u=fr(e),d=r||a||"makeStyles";u.options={index:ar+=1,name:r,meta:d,classNamePrefix:d};return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,ke.Z)()||l,n=(0,o.Z)({},i.useContext(ir),c),a=i.useRef(),d=i.useRef();!function(e,t){var r,n=i.useRef([]),o=i.useMemo((()=>({})),t);n.current!==o&&(n.current=o,r=e()),i.useEffect((()=>()=>{r&&r()}),[o])}((()=>{var o={name:r,state:{},stylesCreator:u,stylesOptions:n,theme:t};return gr(o,e),d.current=!1,a.current=o,()=>{!function(e){var{state:t,theme:r,stylesOptions:n,stylesCreator:o}=e;if(!n.disableGeneration){var i=xe.get(n.sheetsManager,o,r);i.refs-=1;var a=n.sheetsRegistry;0===i.refs&&(xe.delete(n.sheetsManager,o,r),n.jss.removeStyleSheet(i.staticSheet),a&&a.remove(i.staticSheet)),t.dynamicSheet&&(n.jss.removeStyleSheet(t.dynamicSheet),a&&a.remove(t.dynamicSheet))}}(o)}}),[t,u]),i.useEffect((()=>{d.current&&function(e,t){var{state:r}=e;r.dynamicSheet&&r.dynamicSheet.update(t)}(a.current,e),d.current=!0}));var p=function(e,t,r){var{state:n,stylesOptions:o}=e;if(o.disableGeneration)return t||{};n.cacheClasses||(n.cacheClasses={value:null,lastProp:null,lastJSS:{}});var i=!1;return n.classes!==n.cacheClasses.lastJSS&&(n.cacheClasses.lastJSS=n.classes,i=!0),t!==n.cacheClasses.lastProp&&(n.cacheClasses.lastProp=t,i=!0),i&&(n.cacheClasses.value=Ce({baseClasses:n.cacheClasses.lastJSS,newClasses:t,Component:r})),n.cacheClasses.value}(a.current,e.classes,s);return p}}},81625:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(21914);var o=n.createContext(null);function i(){var e,t=n.useContext(o);return null!=(e=null==t?void 0:t.$$material)?e:t}},22173:function(e,t,r){"use strict";r.d(t,{Z:function(){return f}});var n=r(90957),o=r(39324),i=r(21914),a=r(77531),s=r.n(a),l=r(19589);var c=r(81625),u=r(56552),d=["defaultTheme","withTheme","name"],p=["classes"],f=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return r=>{var{defaultTheme:a,withTheme:f=!1,name:h}=t,v=(0,o.Z)(t,d);var g=h,m=(0,l.Z)(e,(0,n.Z)({defaultTheme:a,Component:r,name:h||r.displayName,classNamePrefix:g},v)),b=i.forwardRef((function(e,t){var i,s=(0,o.Z)(e,p),l=m((0,n.Z)({},r.defaultProps,e)),d=s;return("string"===typeof h||f)&&(i=(0,c.Z)()||a,h&&(d=function(e){var{theme:t,name:r,props:o}=e;if(!t||!t.components||!t.components[r]||!t.components[r].defaultProps)return o;var i,a=(0,n.Z)({},o),s=t.components[r].defaultProps;for(i in s)void 0===a[i]&&(a[i]=s[i]);return a}({theme:i,name:h,props:s})),f&&!d.theme&&(d.theme=i)),(0,u.jsx)(r,(0,n.Z)({ref:t,classes:l},d))}));return s()(b,r),b}}},20760:function(e,t,r){"use strict";var n=r(98219);t.Fq=f,t._j=h,t._4=g,t.mi=function(e,t){var r=p(e),n=p(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)},t.$n=v;var o=n(r(32993)),i=n(r(29931));function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return(0,i.default)(e,t,r)}function s(e){e=e.slice(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),r=e.match(t);return r&&1===r[0].length&&(r=r.map((e=>e+e))),r?"rgb".concat(4===r.length?"a":"","(").concat(r.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", "),")"):""}function l(e){if(e.type)return e;if("#"===e.charAt(0))return l(s(e));var t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error((0,o.default)(9,e));var n,i=e.substring(t+1,e.length-1);if("color"===r){if(n=(i=i.split(" ")).shift(),4===i.length&&"/"===i[3].charAt(0)&&(i[3]=i[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(n))throw new Error((0,o.default)(10,n))}else i=i.split(",");return{type:r,values:i=i.map((e=>parseFloat(e))),colorSpace:n}}var c=e=>{var t=l(e);return t.values.slice(0,3).map(((e,r)=>-1!==t.type.indexOf("hsl")&&0!==r?"".concat(e,"%"):e)).join(" ")};function u(e){var{type:t,colorSpace:r}=e,{values:n}=e;return-1!==t.indexOf("rgb")?n=n.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),n=-1!==t.indexOf("color")?"".concat(r," ").concat(n.join(" ")):"".concat(n.join(", ")),"".concat(t,"(").concat(n,")")}function d(e){e=l(e);var{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,i=n*Math.min(o,1-o),a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+r/30)%12;return o-i*Math.max(Math.min(t-3,9-t,1),-1)},s="rgb",c=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",c.push(t[3])),u({type:s,values:c})}function p(e){var t="hsl"===(e=l(e)).type||"hsla"===e.type?l(d(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function f(e,t){return e=l(e),t=a(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]="/".concat(t):e.values[3]=t,u(e)}function h(e,t){if(e=l(e),t=a(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(var r=0;r<3;r+=1)e.values[r]*=1-t;return u(e)}function v(e,t){if(e=l(e),t=a(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(-1!==e.type.indexOf("color"))for(var n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return u(e)}function g(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return p(e)>.5?h(e,t):v(e,t)}},40971:function(e,t,r){"use strict";var n=r(98219);t.ZP=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{themeId:t,defaultTheme:r=v,rootShouldForwardProp:n=h,slotShouldForwardProp:l=h}=e,u=e=>(0,c.default)((0,o.default)({},e,{theme:m((0,o.default)({},e,{defaultTheme:r,themeId:t}))}));return u.__mui_systemSx=!0,function(e){var c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,a.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));var{name:d,slot:f,skipVariantsResolver:v,skipSx:A,overridesResolver:_=b(g(f))}=c,C=(0,i.default)(c,p),w=void 0!==v?v:f&&"Root"!==f&&"root"!==f||!1,x=A||!1;var k=h;"Root"===f||"root"===f?k=n:f?k=l:function(e){return"string"===typeof e&&e.charCodeAt(0)>96}(e)&&(k=void 0);var S=(0,a.default)(e,(0,o.default)({shouldForwardProp:k,label:undefined},C)),P=e=>"function"===typeof e&&e.__emotion_real!==e||(0,s.isPlainObject)(e)?n=>y(e,(0,o.default)({},n,{theme:m({theme:n.theme,defaultTheme:r,themeId:t})})):e,E=function(n){for(var i=P(n),a=arguments.length,s=new Array(a>1?a-1:0),l=1;l{var n=m((0,o.default)({},e,{defaultTheme:r,themeId:t}));if(!n.components||!n.components[d]||!n.components[d].styleOverrides)return null;var i=n.components[d].styleOverrides,a={};return Object.entries(i).forEach((t=>{var[r,i]=t;a[r]=y(i,(0,o.default)({},e,{theme:n}))})),_(e,a)})),d&&!w&&c.push((e=>{var n,i=m((0,o.default)({},e,{defaultTheme:r,themeId:t}));return y({variants:null==i||null==(n=i.components)||null==(n=n[d])?void 0:n.variants},(0,o.default)({},e,{theme:i}))})),x||c.push(u);var p=c.length-s.length;if(Array.isArray(n)&&p>0){var f=new Array(p).fill("");(i=[...n,...f]).raw=[...n.raw,...f]}var h=S(i,...c);return e.muiName&&(h.muiName=e.muiName),h};return S.withConfig&&(E.withConfig=S.withConfig),E}};var o=n(r(20601)),i=n(r(82587)),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=f(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}(r(88553)),s=r(46558),l=(n(r(68483)),n(r(28999)),n(r(89329))),c=n(r(66599)),u=["ownerState"],d=["variants"],p=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function f(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(f=function(e){return e?r:t})(e)}function h(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}var v=(0,l.default)(),g=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function m(e){var t,{defaultTheme:r,theme:n,themeId:o}=e;return t=n,0===Object.keys(t).length?r:n[o]||n}function b(e){return e?(t,r)=>r[e]:null}function y(e,t){var{ownerState:r}=t,n=(0,i.default)(t,u),a="function"===typeof e?e((0,o.default)({ownerState:r},n)):e;if(Array.isArray(a))return a.flatMap((e=>y(e,(0,o.default)({ownerState:r},n))));if(a&&"object"===typeof a&&Array.isArray(a.variants)){var{variants:s=[]}=a,l=(0,i.default)(a,d);return s.forEach((e=>{var t=!0;"function"===typeof e.props?t=e.props((0,o.default)({ownerState:r},n,r)):Object.keys(e.props).forEach((o=>{(null==r?void 0:r[o])!==e.props[o]&&n[o]!==e.props[o]&&(t=!1)})),t&&(Array.isArray(l)||(l=[l]),l.push("function"===typeof e.style?e.style((0,o.default)({ownerState:r},n,r)):e.style))})),l}return a}},59187:function(e,t,r){"use strict";r.d(t,{i:function(){return s}});var n=r(21914),o=r(434),i=r(56552),a=n.createContext(void 0);function s(e){var{props:t,name:r}=e;return function(e){var{theme:t,name:r,props:n}=e;if(!t||!t.components||!t.components[r])return n;var i=t.components[r];return i.defaultProps?(0,o.Z)(i.defaultProps,n):i.styleOverrides||i.variants?n:(0,o.Z)(i,n)}({props:t,name:r,theme:{components:n.useContext(a)}})}t.Z=function(e){var{value:t,children:r}=e;return(0,i.jsx)(a.Provider,{value:t,children:r})}},34972:function(e,t,r){"use strict";r.d(t,{V:function(){return c}});var n=r(9709),o=r(6967),i=r(21914),a=r(56552),s=["value"],l=i.createContext();var c=()=>{var e=i.useContext(l);return null!=e&&e};t.Z=function(e){var{value:t}=e,r=(0,o.Z)(e,s);return(0,a.jsx)(l.Provider,(0,n.Z)({value:null==t||t},r))}},28240:function(e,t,r){"use strict";r.d(t,{L7:function(){return l},P$:function(){return u},VO:function(){return o},W8:function(){return s},dt:function(){return c},k9:function(){return a}});var n=r(81749),o={xs:0,sm:600,md:900,lg:1200,xl:1536},i={keys:["xs","sm","md","lg","xl"],up:e=>"@media (min-width:".concat(o[e],"px)")};function a(e,t,r){var n=e.theme||{};if(Array.isArray(t)){var a=n.breakpoints||i;return t.reduce(((e,n,o)=>(e[a.up(a.keys[o])]=r(t[o]),e)),{})}if("object"===typeof t){var s=n.breakpoints||i;return Object.keys(t).reduce(((e,n)=>{if(-1!==Object.keys(s.values||o).indexOf(n)){e[s.up(n)]=r(t[n],n)}else{var i=n;e[i]=t[i]}return e}),{})}return r(t)}function s(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(null==(e=t.keys)?void 0:e.reduce(((e,r)=>(e[t.up(r)]={},e)),{}))||{}}function l(e,t){return e.reduce(((e,t)=>{var r=e[t];return(!r||0===Object.keys(r).length)&&delete e[t],e}),t)}function c(e){for(var t=s(e),r=arguments.length,o=new Array(r>1?r-1:0),i=1;i(0,n.Z)(e,t)),{});return l(Object.keys(t),a)}function u(e){var t,{values:r,breakpoints:n,base:o}=e,i=o||function(e,t){if("object"!==typeof e)return{};var r={},n=Object.keys(t);return Array.isArray(e)?n.forEach(((t,n)=>{n{null!=e[t]&&(r[t]=!0)})),r}(r,n),a=Object.keys(i);return 0===a.length?r:a.reduce(((e,n,o)=>(Array.isArray(r)?(e[n]=null!=r[o]?r[o]:r[t],t=o):"object"===typeof r?(e[n]=null!=r[n]?r[n]:r[t],t=n):e[n]=r,e)),{})}},61589:function(e,t,r){"use strict";r.d(t,{Z:function(){return f}});var n=r(9709),o=r(6967),i=r(21914),a=r(83768),s=r(88553),l=r(87053),c=r(3927),u=r(90151),d=r(56552),p=["className","component"];function f(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{themeId:t,defaultTheme:r,defaultClassName:f="MuiBox-root",generateClassName:h}=e,v=(0,s.default)("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(l.Z);return i.forwardRef((function(e,i){var s=(0,u.Z)(r),l=(0,c.Z)(e),{className:g,component:m="div"}=l,b=(0,o.Z)(l,p);return(0,d.jsx)(v,(0,n.Z)({as:m,ref:i,className:(0,a.Z)(g,h?h(f):f),theme:t&&s[t]||s},b))}))}},97447:function(e,t,r){"use strict";function n(e,t){var r=this;return r.vars&&"function"===typeof r.getColorSchemeSelector?{[r.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:r.palette.mode===e?t:{}}r.d(t,{Z:function(){return n}})},47508:function(e,t,r){"use strict";r.d(t,{Z:function(){return s}});var n=r(6967),o=r(9709),i=["values","unit","step"],a=e=>{var t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>(0,o.Z)({},e,{[t.key]:t.val})),{})};function s(e){var{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:s=5}=e,l=(0,n.Z)(e,i),c=a(t),u=Object.keys(c);function d(e){var n="number"===typeof t[e]?t[e]:e;return"@media (min-width:".concat(n).concat(r,")")}function p(e){var n="number"===typeof t[e]?t[e]:e;return"@media (max-width:".concat(n-s/100).concat(r,")")}function f(e,n){var o=u.indexOf(n);return"@media (min-width:".concat("number"===typeof t[e]?t[e]:e).concat(r,") and ")+"(max-width:".concat((-1!==o&&"number"===typeof t[u[o]]?t[u[o]]:n)-s/100).concat(r,")")}return(0,o.Z)({keys:u,values:c,up:d,down:p,between:f,only:function(e){return u.indexOf(e)+10&&void 0!==arguments[0]?arguments[0]:{},{breakpoints:t={},palette:r={},spacing:f,shape:h={}}=e,v=(0,o.Z)(e,p),g=(0,a.Z)(t),m=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;var t=(0,l.hB)({spacing:e}),r=function(){for(var e=arguments.length,r=new Array(e),n=0;n{var r=t(e);return"number"===typeof r?"".concat(r,"px"):r})).join(" ")};return r.mui=!0,r}(f),b=(0,i.Z)({breakpoints:g,direction:"ltr",components:{},palette:(0,n.Z)({mode:"light"},r),spacing:m,shape:(0,n.Z)({},s,h)},v);b.applyStyles=d.Z;for(var y=arguments.length,A=new Array(y>1?y-1:0),_=1;_(0,i.Z)(e,t)),b)).unstable_sxConfig=(0,n.Z)({},u.Z,null==v?void 0:v.unstable_sxConfig),b.unstable_sx=function(e){return(0,c.Z)({sx:e,theme:this})},b}},89329:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return n.Z},private_createBreakpoints:function(){return o.Z},unstable_applyStyles:function(){return i.Z}});var n=r(63203),o=r(47508),i=r(97447)},54583:function(e,t,r){"use strict";var n=r(81749);t.Z=function(e,t){return t?(0,n.Z)(e,t,{clone:!1}):e}},74935:function(e,t,r){"use strict";r.d(t,{hB:function(){return h},eI:function(){return f},NA:function(){return v},e6:function(){return b},o3:function(){return y}});var n=r(28240),o=r(97013),i=r(54583);var a={m:"margin",p:"padding"},s={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},l={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},c=function(e){var t={};return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}((e=>{if(e.length>2){if(!l[e])return[e];e=l[e]}var[t,r]=e.split(""),n=a[t],o=s[r]||"";return Array.isArray(o)?o.map((e=>n+e)):[n+o]})),u=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],d=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],p=[...u,...d];function f(e,t,r,n){var i,a=null!=(i=(0,o.DW)(e,t,!1))?i:r;return"number"===typeof a?e=>"string"===typeof e?e:a*e:Array.isArray(a)?e=>"string"===typeof e?e:a[e]:"function"===typeof a?a:()=>{}}function h(e){return f(e,"spacing",8)}function v(e,t){if("string"===typeof t||null==t)return t;var r=e(Math.abs(t));return t>=0?r:"number"===typeof r?-r:"-".concat(r)}function g(e,t,r,o){if(-1===t.indexOf(r))return null;var i=function(e,t){return r=>e.reduce(((e,n)=>(e[n]=v(t,r),e)),{})}(c(r),o),a=e[r];return(0,n.k9)(e,a,i)}function m(e,t){var r=h(e.theme);return Object.keys(e).map((n=>g(e,t,n,r))).reduce(i.Z,{})}function b(e){return m(e,u)}function y(e){return m(e,d)}function A(e){return m(e,p)}b.propTypes={},b.filterProps=u,y.propTypes={},y.filterProps=d,A.propTypes={},A.filterProps=p},97013:function(e,t,r){"use strict";r.d(t,{DW:function(){return i},Jq:function(){return a}});var n=r(63250),o=r(28240);function i(e,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!t||"string"!==typeof t)return null;if(e&&e.vars&&r){var n="vars.".concat(t).split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=n)return n}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function a(e,t,r){var n,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:r;return n="function"===typeof e?e(r):Array.isArray(e)?e[r]||o:i(e,r)||o,t&&(n=t(n,o,e)),n}t.ZP=function(e){var{prop:t,cssProperty:r=e.prop,themeKey:s,transform:l}=e,c=e=>{if(null==e[t])return null;var c=e[t],u=i(e.theme,s)||{};return(0,o.k9)(e,c,(e=>{var o=a(u,l,e);return e===o&&"string"===typeof e&&(o=a(u,l,"".concat(t).concat("default"===e?"":(0,n.Z)(e)),e)),!1===r?o:{[r]:o}}))};return c.propTypes={},c.filterProps=[t],c}},49890:function(e,t,r){"use strict";r.d(t,{Z:function(){return I}});var n=r(74935),o=r(97013),i=r(54583);var a=function(){for(var e=arguments.length,t=new Array(e),r=0;r(t.filterProps.forEach((r=>{e[r]=t})),e)),{}),o=e=>Object.keys(e).reduce(((t,r)=>n[r]?(0,i.Z)(t,n[r](e)):t),{});return o.propTypes={},o.filterProps=t.reduce(((e,t)=>e.concat(t.filterProps)),[]),o},s=r(28240);function l(e){return"number"!==typeof e?e:"".concat(e,"px solid")}function c(e,t){return(0,o.ZP)({prop:e,themeKey:"borders",transform:t})}var u=c("border",l),d=c("borderTop",l),p=c("borderRight",l),f=c("borderBottom",l),h=c("borderLeft",l),v=c("borderColor"),g=c("borderTopColor"),m=c("borderRightColor"),b=c("borderBottomColor"),y=c("borderLeftColor"),A=c("outline",l),_=c("outlineColor"),C=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){var t=(0,n.eI)(e.theme,"shape.borderRadius",4,"borderRadius");return(0,s.k9)(e,e.borderRadius,(e=>({borderRadius:(0,n.NA)(t,e)})))}return null};C.propTypes={},C.filterProps=["borderRadius"];a(u,d,p,f,h,v,g,m,b,y,C,A,_);var w=e=>{if(void 0!==e.gap&&null!==e.gap){var t=(0,n.eI)(e.theme,"spacing",8,"gap");return(0,s.k9)(e,e.gap,(e=>({gap:(0,n.NA)(t,e)})))}return null};w.propTypes={},w.filterProps=["gap"];var x=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){var t=(0,n.eI)(e.theme,"spacing",8,"columnGap");return(0,s.k9)(e,e.columnGap,(e=>({columnGap:(0,n.NA)(t,e)})))}return null};x.propTypes={},x.filterProps=["columnGap"];var k=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){var t=(0,n.eI)(e.theme,"spacing",8,"rowGap");return(0,s.k9)(e,e.rowGap,(e=>({rowGap:(0,n.NA)(t,e)})))}return null};k.propTypes={},k.filterProps=["rowGap"];a(w,x,k,(0,o.ZP)({prop:"gridColumn"}),(0,o.ZP)({prop:"gridRow"}),(0,o.ZP)({prop:"gridAutoFlow"}),(0,o.ZP)({prop:"gridAutoColumns"}),(0,o.ZP)({prop:"gridAutoRows"}),(0,o.ZP)({prop:"gridTemplateColumns"}),(0,o.ZP)({prop:"gridTemplateRows"}),(0,o.ZP)({prop:"gridTemplateAreas"}),(0,o.ZP)({prop:"gridArea"}));function S(e,t){return"grey"===t?t:e}a((0,o.ZP)({prop:"color",themeKey:"palette",transform:S}),(0,o.ZP)({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:S}),(0,o.ZP)({prop:"backgroundColor",themeKey:"palette",transform:S}));function P(e){return e<=1&&0!==e?"".concat(100*e,"%"):e}var E=(0,o.ZP)({prop:"width",transform:P}),O=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){return(0,s.k9)(e,e.maxWidth,(t=>{var r,n,o=(null==(r=e.theme)||null==(r=r.breakpoints)||null==(r=r.values)?void 0:r[t])||s.VO[t];return o?"px"!==(null==(n=e.theme)||null==(n=n.breakpoints)?void 0:n.unit)?{maxWidth:"".concat(o).concat(e.theme.breakpoints.unit)}:{maxWidth:o}:{maxWidth:P(t)}}))}return null};O.filterProps=["maxWidth"];var M=(0,o.ZP)({prop:"minWidth",transform:P}),F=(0,o.ZP)({prop:"height",transform:P}),R=(0,o.ZP)({prop:"maxHeight",transform:P}),T=(0,o.ZP)({prop:"minHeight",transform:P}),I=((0,o.ZP)({prop:"size",cssProperty:"width",transform:P}),(0,o.ZP)({prop:"size",cssProperty:"height",transform:P}),a(E,O,M,F,R,T,(0,o.ZP)({prop:"boxSizing"})),{border:{themeKey:"borders",transform:l},borderTop:{themeKey:"borders",transform:l},borderRight:{themeKey:"borders",transform:l},borderBottom:{themeKey:"borders",transform:l},borderLeft:{themeKey:"borders",transform:l},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:l},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:C},color:{themeKey:"palette",transform:S},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:S},backgroundColor:{themeKey:"palette",transform:S},p:{style:n.o3},pt:{style:n.o3},pr:{style:n.o3},pb:{style:n.o3},pl:{style:n.o3},px:{style:n.o3},py:{style:n.o3},padding:{style:n.o3},paddingTop:{style:n.o3},paddingRight:{style:n.o3},paddingBottom:{style:n.o3},paddingLeft:{style:n.o3},paddingX:{style:n.o3},paddingY:{style:n.o3},paddingInline:{style:n.o3},paddingInlineStart:{style:n.o3},paddingInlineEnd:{style:n.o3},paddingBlock:{style:n.o3},paddingBlockStart:{style:n.o3},paddingBlockEnd:{style:n.o3},m:{style:n.e6},mt:{style:n.e6},mr:{style:n.e6},mb:{style:n.e6},ml:{style:n.e6},mx:{style:n.e6},my:{style:n.e6},margin:{style:n.e6},marginTop:{style:n.e6},marginRight:{style:n.e6},marginBottom:{style:n.e6},marginLeft:{style:n.e6},marginX:{style:n.e6},marginY:{style:n.e6},marginInline:{style:n.e6},marginInlineStart:{style:n.e6},marginInlineEnd:{style:n.e6},marginBlock:{style:n.e6},marginBlockStart:{style:n.e6},marginBlockEnd:{style:n.e6},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:w},rowGap:{style:k},columnGap:{style:x},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:P},maxWidth:{style:O},minWidth:{transform:P},height:{transform:P},maxHeight:{transform:P},minHeight:{transform:P},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}})},3927:function(e,t,r){"use strict";r.d(t,{Z:function(){return c}});var n=r(9709),o=r(6967),i=r(81749),a=r(49890),s=["sx"],l=e=>{var t,r,n={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(r=e.theme)?void 0:r.unstable_sxConfig)?t:a.Z;return Object.keys(e).forEach((t=>{o[t]?n.systemProps[t]=e[t]:n.otherProps[t]=e[t]})),n};function c(e){var t,{sx:r}=e,a=(0,o.Z)(e,s),{systemProps:c,otherProps:u}=l(a);return t=Array.isArray(r)?[c,...r]:"function"===typeof r?function(){var e=r(...arguments);return(0,i.P)(e)?(0,n.Z)({},c,e):c}:(0,n.Z)({},c,r),(0,n.Z)({},u,{sx:t})}},66599:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return n.Z},extendSxProp:function(){return o.Z},unstable_createStyleFunctionSx:function(){return n.n},unstable_defaultSxConfig:function(){return i.Z}});var n=r(87053),o=r(3927),i=r(49890)},87053:function(e,t,r){"use strict";r.d(t,{n:function(){return l}});var n=r(63250),o=r(54583),i=r(97013),a=r(28240),s=r(49890);function l(){function e(e,t,r,o){var s={[e]:t,theme:r},l=o[e];if(!l)return{[e]:t};var{cssProperty:c=e,themeKey:u,transform:d,style:p}=l;if(null==t)return null;if("typography"===u&&"inherit"===t)return{[e]:t};var f=(0,i.DW)(r,u)||{};if(p)return p(s);return(0,a.k9)(s,t,(t=>{var r=(0,i.Jq)(f,d,t);return t===r&&"string"===typeof t&&(r=(0,i.Jq)(f,d,"".concat(e).concat("default"===t?"":(0,n.Z)(t)),t)),!1===c?r:{[c]:r}}))}return function t(r){var n,{sx:i,theme:l={}}=r||{};if(!i)return null;var c=null!=(n=l.unstable_sxConfig)?n:s.Z;function u(r){var n=r;if("function"===typeof r)n=r(l);else if("object"!==typeof r)return r;if(!n)return null;var i=(0,a.W8)(l.breakpoints),s=Object.keys(i),u=i;return Object.keys(n).forEach((r=>{var i,s,d=(i=n[r],s=l,"function"===typeof i?i(s):i);if(null!==d&&void 0!==d)if("object"===typeof d)if(c[r])u=(0,o.Z)(u,e(r,d,l,c));else{var p=(0,a.k9)({theme:l},d,(e=>({[r]:e})));!function(){for(var e=arguments.length,t=new Array(e),r=0;re.concat(Object.keys(t))),[]),o=new Set(n);return t.every((e=>o.size===Object.keys(e).length))}(p,d)?u=(0,o.Z)(u,p):u[r]=t({sx:d,theme:l})}else u=(0,o.Z)(u,e(r,d,l,c))})),(0,a.L7)(s,u)}return Array.isArray(i)?i.map(u):u(i)}}var c=l();c.filterProps=["sx"],t.Z=c},71129:function(e,t,r){"use strict";r.d(t,{Z:function(){return y}});var n=r(9709),o=r(6967),i=r(88553),a=r(81749),s=r(63203),l=r(87053),c=["ownerState"],u=["variants"],d=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function p(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}var f=(0,s.Z)(),h=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function v(e){var t,{defaultTheme:r,theme:n,themeId:o}=e;return t=n,0===Object.keys(t).length?r:n[o]||n}function g(e){return e?(t,r)=>r[e]:null}function m(e,t){var{ownerState:r}=t,i=(0,o.Z)(t,c),a="function"===typeof e?e((0,n.Z)({ownerState:r},i)):e;if(Array.isArray(a))return a.flatMap((e=>m(e,(0,n.Z)({ownerState:r},i))));if(a&&"object"===typeof a&&Array.isArray(a.variants)){var{variants:s=[]}=a,l=(0,o.Z)(a,u);return s.forEach((e=>{var t=!0;"function"===typeof e.props?t=e.props((0,n.Z)({ownerState:r},i,r)):Object.keys(e.props).forEach((n=>{(null==r?void 0:r[n])!==e.props[n]&&i[n]!==e.props[n]&&(t=!1)})),t&&(Array.isArray(l)||(l=[l]),l.push("function"===typeof e.style?e.style((0,n.Z)({ownerState:r},i,r)):e.style))})),l}return a}var b=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{themeId:t,defaultTheme:r=f,rootShouldForwardProp:s=p,slotShouldForwardProp:c=p}=e,u=e=>(0,l.Z)((0,n.Z)({},e,{theme:v((0,n.Z)({},e,{defaultTheme:r,themeId:t}))}));return u.__mui_systemSx=!0,function(e){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,i.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));var{name:f,slot:b,skipVariantsResolver:y,skipSx:A,overridesResolver:_=g(h(b))}=l,C=(0,o.Z)(l,d),w=void 0!==y?y:b&&"Root"!==b&&"root"!==b||!1,x=A||!1;var k=p;"Root"===b||"root"===b?k=s:b?k=c:function(e){return"string"===typeof e&&e.charCodeAt(0)>96}(e)&&(k=void 0);var S=(0,i.default)(e,(0,n.Z)({shouldForwardProp:k,label:undefined},C)),P=e=>"function"===typeof e&&e.__emotion_real!==e||(0,a.P)(e)?o=>m(e,(0,n.Z)({},o,{theme:v({theme:o.theme,defaultTheme:r,themeId:t})})):e,E=function(o){for(var i=P(o),a=arguments.length,s=new Array(a>1?a-1:0),l=1;l{var o=v((0,n.Z)({},e,{defaultTheme:r,themeId:t}));if(!o.components||!o.components[f]||!o.components[f].styleOverrides)return null;var i=o.components[f].styleOverrides,a={};return Object.entries(i).forEach((t=>{var[r,i]=t;a[r]=m(i,(0,n.Z)({},e,{theme:o}))})),_(e,a)})),f&&!w&&c.push((e=>{var o,i=v((0,n.Z)({},e,{defaultTheme:r,themeId:t}));return m({variants:null==i||null==(o=i.components)||null==(o=o[f])?void 0:o.variants},(0,n.Z)({},e,{theme:i}))})),x||c.push(u);var d=c.length-s.length;if(Array.isArray(o)&&d>0){var p=new Array(d).fill("");(i=[...o,...p]).raw=[...o.raw,...p]}var h=S(i,...c);return e.muiName&&(h.muiName=e.muiName),h};return S.withConfig&&(E.withConfig=S.withConfig),E}}(),y=b},90151:function(e,t,r){"use strict";var n=r(63203),o=r(57880),i=(0,n.Z)();t.Z=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i;return(0,o.Z)(e)}},11211:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(434);function o(e){var{theme:t,name:r,props:o}=e;return t&&t.components&&t.components[r]&&t.components[r].defaultProps?(0,n.Z)(t.components[r].defaultProps,o):o}},35494:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(11211),o=r(90151);function i(e){var{props:t,name:r,defaultTheme:i,themeId:a}=e,s=(0,o.Z)(i);return a&&(s=s[a]||s),(0,n.Z)({theme:s,name:r,props:t})}},57880:function(e,t,r){"use strict";var n=r(21914),o=r(12009);t.Z=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=n.useContext(o.T);return r&&(e=r,0!==Object.keys(e).length)?r:t}},63895:function(e,t){"use strict";var r=e=>e,n=(()=>{var e=r;return{configure(t){e=t},generate(t){return e(t)},reset(){e=r}}})();t.Z=n},63250:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(8686);function o(e){if("string"!==typeof e)throw new Error((0,n.Z)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},68483:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return n.Z}});var n=r(63250)},49394:function(e,t){"use strict";t.Z=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MIN_SAFE_INTEGER,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.MAX_SAFE_INTEGER;return Math.max(t,Math.min(e,r))}},29931:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return n.Z}});var n=r(49394)},87413:function(e,t,r){"use strict";function n(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,n={};return Object.keys(e).forEach((o=>{n[o]=e[o].reduce(((e,n)=>{if(n){var o=t(n);""!==o&&e.push(o),r&&r[n]&&e.push(r[n])}return e}),[]).join(" ")})),n}r.d(t,{Z:function(){return n}})},81749:function(e,t,r){"use strict";r.d(t,{P:function(){return i},Z:function(){return s}});var n=r(9709),o=r(21914);function i(e){if("object"!==typeof e||null===e)return!1;var t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function a(e){if(o.isValidElement(e)||!i(e))return e;var t={};return Object.keys(e).forEach((r=>{t[r]=a(e[r])})),t}function s(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},l=r.clone?(0,n.Z)({},e):e;return i(e)&&i(t)&&Object.keys(t).forEach((n=>{o.isValidElement(t[n])?l[n]=t[n]:i(t[n])&&Object.prototype.hasOwnProperty.call(e,n)&&i(e[n])?l[n]=s(e[n],t[n],r):r.clone?l[n]=i(t[n])?a(t[n]):t[n]:l[n]=t[n]})),l}},46558:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return n.Z},isPlainObject:function(){return n.P}});var n=r(81749)},8686:function(e,t,r){"use strict";function n(e){for(var t="https://mui.com/production-error/?code="+e,r=1;r2&&void 0!==arguments[2]?arguments[2]:"Mui",i=o[t];return i?"".concat(r,"-").concat(i):"".concat(n.Z.generate(e),"-").concat(t)}},28999:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return l},getFunctionName:function(){return i}});var n=r(60079),o=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function i(e){var t="".concat(e).match(o);return t&&t[1]||""}function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.displayName||e.name||i(e)||t}function s(e,t,r){var n=a(t);return e.displayName||(""!==n?"".concat(r,"(").concat(n,")"):r)}function l(e){if(null!=e){if("string"===typeof e)return e;if("function"===typeof e)return a(e,"Component");if("object"===typeof e)switch(e.$$typeof){case n.A4:return s(e,e.render,"ForwardRef");case n._Y:return s(e,e.type,"memo");default:return}}}},434:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(9709);function o(e,t){var r=(0,n.Z)({},t);return Object.keys(e).forEach((i=>{if(i.toString().match(/^(components|slots)$/))r[i]=(0,n.Z)({},e[i],r[i]);else if(i.toString().match(/^(componentsProps|slotProps)$/)){var a=e[i]||{},s=t[i];r[i]={},s&&Object.keys(s)?a&&Object.keys(a)?(r[i]=(0,n.Z)({},s),Object.keys(a).forEach((e=>{r[i][e]=o(a[e],s[e])}))):r[i]=s:r[i]=a}else void 0===r[i]&&(r[i]=e[i])})),r}},60079:function(e,t){"use strict";var r=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler");Symbol.for("react.provider");var s=Symbol.for("react.consumer"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),h=Symbol.for("react.view_transition"),v=Symbol.for("react.client.reference");function g(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case o:case a:case i:case u:case d:case h:return e;default:switch(e=e&&e.$$typeof){case l:case c:case f:case p:case s:return e;default:return t}}case n:return t}}}t.A4=c,t._Y=p},97805:function(e,t,r){"use strict";t.Z=void 0;var n=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=i(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=o?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(n,a,s):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}(r(21914)),o=r(88553);function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(i=function(e){return e?r:t})(e)}t.Z=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=n.useContext(o.ThemeContext);return r&&(e=r,0!==Object.keys(e).length)?r:t}},85042:function(e,t,r){"use strict";var n=r(21914),o=r(9109);function i(e){var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}var a,s=i(n),l=i(o);t.AnnotationType=void 0,(a=t.AnnotationType||(t.AnnotationType={}))[a.Text=1]="Text",a[a.Link=2]="Link",a[a.FreeText=3]="FreeText",a[a.Line=4]="Line",a[a.Square=5]="Square",a[a.Circle=6]="Circle",a[a.Polygon=7]="Polygon",a[a.Polyline=8]="Polyline",a[a.Highlight=9]="Highlight",a[a.Underline=10]="Underline",a[a.Squiggly=11]="Squiggly",a[a.StrikeOut=12]="StrikeOut",a[a.Stamp=13]="Stamp",a[a.Caret=14]="Caret",a[a.Ink=15]="Ink",a[a.Popup=16]="Popup",a[a.FileAttachment=17]="FileAttachment";var c=function(e,t){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},c(e,t)};function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}c(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var d,p=function(){return p=Object.assign||function(e){for(var t,r=1,n=arguments.length;rj}));if(!e.length)return-1;for(var t=e[0].pageIndex,n=e[e.length-1].pageIndex,o=e.length,a=0;a=0&&i.current.visibilities[t-1].renderStatus!==w.Rendered?t-1:-1},isInRange:function(e){return e>=i.current.startRange&&e<=i.current.endRange},markNotRendered:function(){for(var e=0;et)&&(i.current.visibilities[n].visibility=j,i.current.visibilities[n].renderStatus=w.NotRenderedYet)},setVisibility:a}},L={core:{askingPassword:{requirePasswordToOpen:"This document requires a password to open",submit:"Submit"},wrongPassword:{tryAgain:"The password is wrong. Please try again"},pageLabel:"Page {{pageIndex}}"}},Z=s.createContext({l10n:L,setL10n:function(){}}),N=0,G=function(){return N++},z=function(e,t,r){var n=function(e){var n=t.current;if(n){var o=e.target;if(o instanceof Element&&o.shadowRoot){var i=e.composedPath();i.length>0&&!n.contains(i[0])&&r()}else n.contains(o)||r()}};s.useEffect((function(){if(e){var t={capture:!0};return document.addEventListener("click",n,t),function(){document.removeEventListener("click",n,t)}}}),[])},W=function(e){var t=function(t){"Escape"===t.key&&e()};s.useEffect((function(){return document.addEventListener("keyup",t),function(){document.removeEventListener("keyup",t)}}),[])},U=function(e){var r=e.ariaControlsSuffix,n=e.children,o=e.closeOnClickOutside,i=e.closeOnEscape,a=e.onToggle,l=s.useRef(),c=s.useContext(h).direction===t.TextDirection.RightToLeft;return s.useEffect((function(){var e=window.getComputedStyle(document.body).overflow;return document.body.style.overflow="hidden",function(){document.body.style.overflow=e}}),[]),W((function(){l.current&&i&&a()})),z(o,l,a),g((function(){var e=l.current;if(e){var t=.75*document.body.clientHeight;e.getBoundingClientRect().height>=t&&(e.style.overflow="auto",e.style.maxHeight="".concat(t,"px"))}}),[]),s.createElement("div",{"aria-modal":"true",className:v({"rpv-core__modal-body":!0,"rpv-core__modal-body--rtl":c}),id:"rpv-core__modal-body-".concat(r),ref:l,role:"dialog",tabIndex:-1},n)},q=function(e){var t=e.children;return s.createElement("div",{className:"rpv-core__modal-overlay"},t)};t.ToggleStatus=void 0,(D=t.ToggleStatus||(t.ToggleStatus={})).Close="Close",D.Open="Open",D.Toggle="Toggle";var V,H=function(e){var r=s.useState(e),n=r[0],o=r[1];return{opened:n,toggle:function(e){switch(e){case t.ToggleStatus.Close:o(!1);break;case t.ToggleStatus.Open:o(!0);break;case t.ToggleStatus.Toggle:default:o((function(e){return!e}))}}}},K=function(e){var t=e.content,r=e.isOpened,n=void 0!==r&&r,o=e.target,i=H(n),a=i.opened,l=i.toggle;return s.createElement(s.Fragment,null,o&&o(l,a),a&&t(l))};t.Position=void 0,(V=t.Position||(t.Position={})).TopLeft="TOP_LEFT",V.TopCenter="TOP_CENTER",V.TopRight="TOP_RIGHT",V.RightTop="RIGHT_TOP",V.RightCenter="RIGHT_CENTER",V.RightBottom="RIGHT_BOTTOM",V.BottomLeft="BOTTOM_LEFT",V.BottomCenter="BOTTOM_CENTER",V.BottomRight="BOTTOM_RIGHT",V.LeftTop="LEFT_TOP",V.LeftCenter="LEFT_CENTER",V.LeftBottom="LEFT_BOTTOM";var Y,$,X,Q,J,ee,te,re,ne=function(e,r,n,o,i){g((function(){var a=r.current,s=e.current,l=n.current;if(s&&a&&l){var c=l.getBoundingClientRect(),u=function(e,r,n,o){var i=r.getBoundingClientRect(),a=e.getBoundingClientRect(),s=a.height,l=a.width,c=0,u=0;switch(n){case t.Position.TopLeft:c=i.top-s,u=i.left;break;case t.Position.TopCenter:c=i.top-s,u=i.left+i.width/2-l/2;break;case t.Position.TopRight:c=i.top-s,u=i.left+i.width-l;break;case t.Position.RightTop:c=i.top,u=i.left+i.width;break;case t.Position.RightCenter:c=i.top+i.height/2-s/2,u=i.left+i.width;break;case t.Position.RightBottom:c=i.top+i.height-s,u=i.left+i.width;break;case t.Position.BottomLeft:c=i.top+i.height,u=i.left;break;case t.Position.BottomCenter:c=i.top+i.height,u=i.left+i.width/2-l/2;break;case t.Position.BottomRight:c=i.top+i.height,u=i.left+i.width-l;break;case t.Position.LeftTop:c=i.top,u=i.left-l;break;case t.Position.LeftCenter:c=i.top+i.height/2-s/2,u=i.left-l;break;case t.Position.LeftBottom:c=i.top+i.height-s,u=i.left-l}return{left:u+(o.left||0),top:c+(o.top||0)}}(s,a,o,i),d=u.top,p=u.left;s.style.top="".concat(d-c.top,"px"),s.style.left="".concat(p-c.left,"px")}}),[])},oe=function(e){var r,n=e.customClassName,o=e.position;return s.createElement("div",{className:v((r={"rpv-core__arrow":!0,"rpv-core__arrow--tl":o===t.Position.TopLeft,"rpv-core__arrow--tc":o===t.Position.TopCenter,"rpv-core__arrow--tr":o===t.Position.TopRight,"rpv-core__arrow--rt":o===t.Position.RightTop,"rpv-core__arrow--rc":o===t.Position.RightCenter,"rpv-core__arrow--rb":o===t.Position.RightBottom,"rpv-core__arrow--bl":o===t.Position.BottomLeft,"rpv-core__arrow--bc":o===t.Position.BottomCenter,"rpv-core__arrow--br":o===t.Position.BottomRight,"rpv-core__arrow--lt":o===t.Position.LeftTop,"rpv-core__arrow--lc":o===t.Position.LeftCenter,"rpv-core__arrow--lb":o===t.Position.LeftBottom},r["".concat(n)]=""!==n,r))})},ie=function(e){var r=e.ariaControlsSuffix,n=e.children,o=e.closeOnClickOutside,i=e.offset,a=e.position,l=e.targetRef,c=e.onClose,u=s.useRef(),d=s.useRef(),p=s.useRef(),f=s.useContext(h).direction===t.TextDirection.RightToLeft;z(o,u,c),ne(u,l,p,a,i),g((function(){var e=d.current;if(e){var t=.75*document.body.clientHeight;e.getBoundingClientRect().height>=t&&(e.style.overflow="auto",e.style.maxHeight="".concat(t,"px"))}}),[]);var m="rpv-core__popover-body-inner-".concat(r);return s.createElement(s.Fragment,null,s.createElement("div",{ref:p,style:{left:0,position:"absolute",top:0}}),s.createElement("div",{"aria-describedby":m,className:v({"rpv-core__popover-body":!0,"rpv-core__popover-body--rtl":f}),id:"rpv-core__popover-body-".concat(r),ref:u,role:"dialog",tabIndex:-1},s.createElement(oe,{customClassName:"rpv-core__popover-body-arrow",position:a}),s.createElement("div",{id:m,ref:d},n)))},ae=function(e){var t=e.closeOnEscape,r=e.onClose,n=s.useRef();return W((function(){n.current&&t&&r()})),s.createElement("div",{className:"rpv-core__popover-overlay",ref:n})},se=function(e){var r=e.ariaControlsSuffix,n=e.children,o=e.contentRef,i=e.offset,a=e.position,l=e.targetRef,c=s.useRef(),u=s.useContext(h).direction===t.TextDirection.RightToLeft;return ne(o,l,c,a,i),s.createElement(s.Fragment,null,s.createElement("div",{ref:c,style:{left:0,position:"absolute",top:0}}),s.createElement("div",{className:v({"rpv-core__tooltip-body":!0,"rpv-core__tooltip-body--rtl":u}),id:"rpv-core__tooltip-body-".concat(r),ref:o,role:"tooltip"},s.createElement(oe,{customClassName:"rpv-core__tooltip-body-arrow",position:a}),s.createElement("div",{className:"rpv-core__tooltip-body-content"},n)))};t.FullScreenMode=void 0,(Y=t.FullScreenMode||(t.FullScreenMode={})).Normal="Normal",Y.Entering="Entering",Y.Entered="Entered",Y.EnteredCompletely="EnteredCompletely",Y.Exitting="Exitting",Y.Exited="Exited",t.LayerRenderStatus=void 0,($=t.LayerRenderStatus||(t.LayerRenderStatus={}))[$.PreRender=0]="PreRender",$[$.DidRender=1]="DidRender",t.PageMode=void 0,(X=t.PageMode||(t.PageMode={})).Attachments="UseAttachments",X.Bookmarks="UseOutlines",X.ContentGroup="UseOC",X.Default="UserNone",X.FullScreen="FullScreen",X.Thumbnails="UseThumbs",t.PasswordStatus=void 0,(Q=t.PasswordStatus||(t.PasswordStatus={})).RequiredPassword="RequiredPassword",Q.WrongPassword="WrongPassword",t.RotateDirection=void 0,(J=t.RotateDirection||(t.RotateDirection={})).Backward="Backward",J.Forward="Forward",t.ScrollMode=void 0,(ee=t.ScrollMode||(t.ScrollMode={})).Page="Page",ee.Horizontal="Horizontal",ee.Vertical="Vertical",ee.Wrapped="Wrapped",t.SpecialZoomLevel=void 0,(te=t.SpecialZoomLevel||(t.SpecialZoomLevel={})).ActualSize="ActualSize",te.PageFit="PageFit",te.PageWidth="PageWidth",t.ViewMode=void 0,(re=t.ViewMode||(t.ViewMode={})).DualPage="DualPage",re.DualPageWithCover="DualPageWithCover",re.SinglePage="SinglePage";var le,ce=function(e,t){return e.reduce((function(e,r,n){return n%t?e[e.length-1].push(r):e.push([r]),e}),[])},ue=function(e,r){switch(r[1].name){case"XYZ":return{bottomOffset:function(e,t){return null===r[3]?t:r[3]},leftOffset:function(e,t){return null===r[2]?0:r[2]},pageIndex:e,scaleTo:r[4]};case"Fit":case"FitB":return{bottomOffset:0,leftOffset:0,pageIndex:e,scaleTo:t.SpecialZoomLevel.PageFit};case"FitH":case"FitBH":return{bottomOffset:r[2],leftOffset:0,pageIndex:e,scaleTo:t.SpecialZoomLevel.PageWidth};default:return{bottomOffset:0,leftOffset:0,pageIndex:e,scaleTo:1}}},de=new Map,pe=new Map,fe=function(e,t){return"".concat(e.loadingTask.docId,"___").concat(t.num,"R").concat(0===t.gen?"":t.gen)},he=function(e,t,r){de.set(fe(e,t),r)},ve=function(e,t){if(!e)return Promise.reject("The document is not loaded yet");var r="".concat(e.loadingTask.docId,"___").concat(t),n=pe.get(r);return n?Promise.resolve(n):new Promise((function(n,o){e.getPage(t+1).then((function(o){pe.set(r,o),o.ref&&he(e,o.ref,t),n(o)}))}))},ge=function e(t,r){return new Promise((function(n){new Promise((function(e){"string"==typeof r?t.getDestination(r).then((function(t){e(t)})):e(r)})).then((function(o){if("object"==typeof o[0]&&null!==o[0]){var i=o[0],a=function(e,t){var r=fe(e,t);return de.has(r)?de.get(r):null}(t,i);null===a?t.getPageIndex(i).then((function(o){he(t,i,o),e(t,r).then((function(e){return n(e)}))})):n(ue(a,o))}else{var s=ue(o[0],o);n(s)}}))}))};!function(e){e[e.Solid=1]="Solid",e[e.Dashed=2]="Dashed",e[e.Beveled=3]="Beveled",e[e.Inset=4]="Inset",e[e.Underline=5]="Underline"}(le||(le={}));var me,be=new RegExp("^D:(\\d{4})(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?([Z|+|-])?(\\d{2})?'?(\\d{2})?'?"),ye=function(e,t,r,n){var o=parseInt(e,10);return o>=t&&o<=r?o:n},Ae=function(e){return e.contentsObj?e.contentsObj.str:e.contents||""},_e=function(e){return e.titleObj?e.titleObj.str:e.title||""},Ce=function(e){var r=e.annotation,n=s.useContext(h).direction,o=_e(r),i=Ae(r),a=n===t.TextDirection.RightToLeft,l=s.useRef(),c="";if(r.modificationDate){var u=function(e){var t=be.exec(e);if(!t)return null;var r=parseInt(t[1],10),n=ye(t[2],1,12,1)-1,o=ye(t[3],1,31,1),i=ye(t[4],0,23,0),a=ye(t[5],0,59,0),s=ye(t[6],0,59,0),l=t[7]||"Z",c=ye(t[8],0,23,0),u=ye(t[9],0,59,0);switch(l){case"-":i+=c,a+=u;break;case"+":i-=c,a-=u}return new Date(Date.UTC(r,n,o,i,a,s))}(r.modificationDate);c=u?"".concat(u.toLocaleDateString(),", ").concat(u.toLocaleTimeString()):""}return s.useLayoutEffect((function(){if(l.current){var e=document.querySelector('[data-annotation-id="'.concat(r.id,'"]'));if(e){var t=e;return t.style.zIndex+=1,function(){t.style.zIndex="".concat(parseInt(t.style.zIndex,10)-1)}}}}),[]),s.createElement("div",{ref:l,className:v({"rpv-core__annotation-popup-wrapper":!0,"rpv-core__annotation-popup-wrapper--rtl":a}),style:{top:r.annotationType===t.AnnotationType.Popup?"":"100%"}},o&&s.createElement(s.Fragment,null,s.createElement("div",{className:v({"rpv-core__annotation-popup-title":!0,"rpv-core__annotation-popup-title--ltr":!a,"rpv-core__annotation-popup-title--rtl":a})},o),s.createElement("div",{className:"rpv-core__annotation-popup-date"},c)),i&&s.createElement("div",{className:"rpv-core__annotation-popup-content"},i.split("\n").map((function(e,t){return s.createElement(s.Fragment,{key:t},e,s.createElement("br",null))}))))};!function(e){e.Click="Click",e.Hover="Hover"}(me||(me={}));var we,xe=function(e){var r,n=e.annotation,o=e.children,i=e.ignoreBorder,a=e.hasPopup,l=e.isRenderable,c=e.page,u=e.viewport,d=n.rect,p=function(){var e=H(!1),r=e.opened,n=e.toggle,o=s.useState(me.Hover),i=o[0],a=o[1];return{opened:r,closeOnHover:function(){i===me.Hover&&n(t.ToggleStatus.Close)},openOnHover:function(){i===me.Hover&&n(t.ToggleStatus.Open)},toggleOnClick:function(){switch(i){case me.Click:r&&a(me.Hover),n(t.ToggleStatus.Toggle);break;case me.Hover:a(me.Click),n(t.ToggleStatus.Open)}}}}(),f=p.closeOnHover,h=p.opened,v=p.openOnHover,g=p.toggleOnClick,m=(r=[d[0],c.view[3]+c.view[1]-d[1],d[2],c.view[3]+c.view[1]-d[3]],[Math.min(r[0],r[2]),Math.min(r[1],r[3]),Math.max(r[0],r[2]),Math.max(r[1],r[3])]),b=d[2]-d[0],y=d[3]-d[1],A={borderColor:"",borderRadius:"",borderStyle:"",borderWidth:""};if(!i&&n.borderStyle.width>0){switch(n.borderStyle.style){case le.Dashed:A.borderStyle="dashed";break;case le.Solid:A.borderStyle="solid";break;case le.Underline:A=Object.assign({borderBottomStyle:"solid"},A);case le.Beveled:case le.Inset:}var _=n.borderStyle.width;A.borderWidth="".concat(_,"px"),n.borderStyle.style!==le.Underline&&(b-=2*_,y-=2*_);var C=n.borderStyle,w=C.horizontalCornerRadius,x=C.verticalCornerRadius;(w>0||x>0)&&(A.borderRadius="".concat(w,"px / ").concat(x,"px")),n.color?A.borderColor="rgb(".concat(0|n.color[0],", ").concat(0|n.color[1],", ").concat(0|n.color[2],")"):A.borderWidth="0"}return s.createElement(s.Fragment,null,l&&o({popup:{opened:h,closeOnHover:f,openOnHover:v,toggleOnClick:g},slot:{attrs:{style:Object.assign({height:"".concat(y,"px"),left:"".concat(m[0],"px"),top:"".concat(m[1],"px"),transform:"matrix(".concat(u.transform.join(","),")"),transformOrigin:"-".concat(m[0],"px -").concat(m[1],"px"),width:"".concat(b,"px")},A)},children:s.createElement(s.Fragment,null,a&&h&&s.createElement(Ce,{annotation:n}))}}))},ke=function(e){var t=e.annotation,r=e.page,n=e.viewport,o=!1===t.hasPopup,i=_e(t),a=Ae(t),l=!!(t.hasPopup||i||a);return s.createElement(xe,{annotation:t,hasPopup:o,ignoreBorder:!0,isRenderable:l,page:r,viewport:n},(function(e){return s.createElement("div",p({},e.slot.attrs,{className:"rpv-core__annotation rpv-core__annotation--caret","data-annotation-id":t.id,onClick:e.popup.toggleOnClick,onMouseEnter:e.popup.openOnHover,onMouseLeave:e.popup.closeOnHover}),e.slot.children)}))},Se=function(e){var t=e.annotation,r=e.page,n=e.viewport,o=!1===t.hasPopup,i=_e(t),a=Ae(t),l=!!(t.hasPopup||i||a),c=t.rect,u=c[2]-c[0],d=c[3]-c[1],f=t.borderStyle.width;return s.createElement(xe,{annotation:t,hasPopup:o,ignoreBorder:!0,isRenderable:l,page:r,viewport:n},(function(e){return s.createElement("div",p({},e.slot.attrs,{className:"rpv-core__annotation rpv-core__annotation--circle","data-annotation-id":t.id,onClick:e.popup.toggleOnClick,onMouseEnter:e.popup.openOnHover,onMouseLeave:e.popup.closeOnHover}),s.createElement("svg",{height:"".concat(d,"px"),preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 ".concat(u," ").concat(d),width:"".concat(u,"px")},s.createElement("circle",{cy:d/2,fill:"none",rx:u/2-f/2,ry:d/2-f/2,stroke:"transparent",strokeWidth:f||1})),e.slot.children)}))},Pe=function(e){var t=e.annotation,r=e.page,n=e.viewport,o=_e(t),i=Ae(t),a=!(!1!==t.hasPopup||!o&&!i),l=function(){var e,r,n,o,i=t.file;i&&(e=i.filename,n="string"==typeof(r=i.content)?"":URL.createObjectURL(new Blob([r],{type:""})),(o=document.createElement("a")).style.display="none",o.href=n||e,o.setAttribute("download",function(e){var t=e.split("/").pop();return t?t.split("#")[0].split("?")[0]:e}(e)),document.body.appendChild(o),o.click(),document.body.removeChild(o),n&&URL.revokeObjectURL(n))};return s.createElement(xe,{annotation:t,hasPopup:a,ignoreBorder:!0,isRenderable:!0,page:r,viewport:n},(function(e){return s.createElement("div",p({},e.slot.attrs,{className:"rpv-core__annotation rpv-core__annotation--file-attachment","data-annotation-id":t.id,onClick:e.popup.toggleOnClick,onDoubleClick:l,onMouseEnter:e.popup.openOnHover,onMouseLeave:e.popup.closeOnHover}),e.slot.children)}))},Ee=function(e){var t=e.annotation,r=e.page,n=e.viewport,o=!1===t.hasPopup,i=_e(t),a=Ae(t),l=!!(t.hasPopup||i||a);return s.createElement(xe,{annotation:t,hasPopup:o,ignoreBorder:!0,isRenderable:l,page:r,viewport:n},(function(e){return s.createElement("div",p({},e.slot.attrs,{className:"rpv-core__annotation rpv-core__annotation--free-text","data-annotation-id":t.id,onClick:e.popup.toggleOnClick,onMouseEnter:e.popup.openOnHover,onMouseLeave:e.popup.closeOnHover}),e.slot.children)}))},Oe=function(e){var t=e.annotation,r=e.page,n=e.viewport,o=_e(t),i=Ae(t),a=!(!o&&!i),l=!t.parentType||-1!==["Circle","Ink","Line","Polygon","PolyLine","Square"].indexOf(t.parentType);return g((function(){if(t.parentId){var e=document.querySelector('[data-annotation-id="'.concat(t.parentId,'"]')),r=document.querySelector('[data-annotation-id="'.concat(t.id,'"]'));if(e&&r){var n=parseFloat(e.style.left),o=parseFloat(e.style.top)+parseFloat(e.style.height);r.style.left="".concat(n,"px"),r.style.top="".concat(o,"px"),r.style.transformOrigin="-".concat(n,"px -").concat(o,"px")}}}),[]),s.createElement(xe,{annotation:t,hasPopup:l,ignoreBorder:!1,isRenderable:a,page:r,viewport:n},(function(e){return s.createElement("div",p({},e.slot.attrs,{className:"rpv-core__annotation rpv-core__annotation--popup","data-annotation-id":t.id}),s.createElement(Ce,{annotation:t}))}))},Me=function e(r){var n=r.annotation,o=r.childAnnotation,i=r.page,a=r.viewport,l=!1===n.hasPopup,c=_e(n),u=Ae(n),d=!!(n.hasPopup||c||u);if(n.quadPoints&&n.quadPoints.length>0){var f=n.quadPoints.map((function(e){return Object.assign({},n,{rect:[e[2].x,e[2].y,e[1].x,e[1].y],quadPoints:[]})}));return s.createElement(s.Fragment,null,f.map((function(t,r){return s.createElement(e,{key:r,annotation:t,childAnnotation:o,page:i,viewport:a})})))}return s.createElement(xe,{annotation:n,hasPopup:l,ignoreBorder:!0,isRenderable:d,page:i,viewport:a},(function(e){return s.createElement(s.Fragment,null,s.createElement("div",p({},e.slot.attrs,{className:"rpv-core__annotation rpv-core__annotation--highlight","data-annotation-id":n.id,onClick:e.popup.toggleOnClick,onMouseEnter:e.popup.openOnHover,onMouseLeave:e.popup.closeOnHover}),e.slot.children),o&&o.annotationType===t.AnnotationType.Popup&&e.popup.opened&&s.createElement(Oe,{annotation:o,page:i,viewport:a}))}))},Fe=function(e){var t=e.annotation,r=e.page,n=e.viewport,o=!1===t.hasPopup,i=_e(t),a=Ae(t),l=!!(t.hasPopup||i||a),c=t.rect,u=c[2]-c[0],d=c[3]-c[1],f=t.borderStyle.width;return s.createElement(xe,{annotation:t,hasPopup:o,ignoreBorder:!0,isRenderable:l,page:r,viewport:n},(function(e){return s.createElement("div",p({},e.slot.attrs,{className:"rpv-core__annotation rpv-core__annotation--ink","data-annotation-id":t.id,onClick:e.popup.toggleOnClick,onMouseEnter:e.popup.openOnHover,onMouseLeave:e.popup.closeOnHover}),t.inkLists&&t.inkLists.length&&s.createElement("svg",{height:"".concat(d,"px"),preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 ".concat(u," ").concat(d),width:"".concat(u,"px")},t.inkLists.map((function(e,t){return s.createElement("polyline",{key:t,fill:"none",stroke:"transparent",strokeWidth:f||1,points:e.map((function(e){return"".concat(e.x-c[0],",").concat(c[3]-e.y)})).join(" ")})}))),e.slot.children)}))},Re=function(e){var t=e.annotation,r=e.page,n=e.viewport,o=!1===t.hasPopup,i=_e(t),a=Ae(t),l=!!(t.hasPopup||i||a),c=t.rect,u=c[2]-c[0],d=c[3]-c[1],f=t.borderStyle.width;return s.createElement(xe,{annotation:t,hasPopup:o,ignoreBorder:!0,isRenderable:l,page:r,viewport:n},(function(e){return s.createElement("div",p({},e.slot.attrs,{className:"rpv-core__annotation rpv-core__annotation--line","data-annotation-id":t.id,onClick:e.popup.toggleOnClick,onMouseEnter:e.popup.openOnHover,onMouseLeave:e.popup.closeOnHover}),s.createElement("svg",{height:"".concat(d,"px"),preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 ".concat(u," ").concat(d),width:"".concat(u,"px")},s.createElement("line",{stroke:"transparent",strokeWidth:f||1,x1:c[2]-t.lineCoordinates[0],x2:c[2]-t.lineCoordinates[2],y1:c[3]-t.lineCoordinates[1],y2:c[3]-t.lineCoordinates[3]})),e.slot.children)}))},Te=/^([^\w]*)(javascript|data|vbscript)/im,Ie=/&#(\w+)(^\w|;)?/g,De=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,je=/^([^:]+):/gm,Be=function(e){var t,r=e.annotation,n=e.annotationContainerRef,o=e.doc,i=e.outlines,a=e.page,l=e.pageIndex,c=e.scale,u=e.viewport,d=e.onExecuteNamedAction,f=e.onJumpFromLinkAnnotation,h=e.onJumpToDest,v=s.useRef(),g=i&&i.length&&r.dest&&"string"==typeof r.dest?null===(t=i.find((function(e){return e.dest===r.dest})))||void 0===t?void 0:t.title:"",m=!!(r.url||r.dest||r.action||r.unsafeUrl),b={};if(r.url||r.unsafeUrl){var y=function(e,t){void 0===t&&(t="about:blank");var r,n=(r=e||"",r.replace(Ie,(function(e,t){return String.fromCharCode(t)}))).replace(De,"").trim();if(!n)return t;var o=n[0];if("."===o||"/"===o)return n;var i=n.match(je);if(!i)return n;var a=i[0];return Te.test(a)?t:n}(r.url||r.unsafeUrl,"");y?b={"data-target":"external",href:y,rel:"noopener noreferrer nofollow",target:r.newWindow?"_blank":"",title:y}:m=!1}else b={href:"","data-annotation-link":r.id,onClick:function(e){e.preventDefault(),r.action?d(r.action):ge(o,r.dest).then((function(e){var t=v.current,r=n.current;if(t&&r){var o=t.getBoundingClientRect();r.style.setProperty("height","100%"),r.style.setProperty("width","100%");var i=r.getBoundingClientRect();r.style.removeProperty("height"),r.style.removeProperty("width");var a=(o.left-i.left)/c,s=(i.bottom-o.bottom+o.height)/c;f({bottomOffset:s,label:g,leftOffset:a,pageIndex:l})}h(e)}))}};return g&&(b=Object.assign({},b,{title:g,"aria-label":g})),s.createElement(xe,{annotation:r,hasPopup:!1,ignoreBorder:!1,isRenderable:m,page:a,viewport:u},(function(e){return s.createElement("div",p({},e.slot.attrs,{className:"rpv-core__annotation rpv-core__annotation--link","data-annotation-id":r.id,"data-testid":"core__annotation--link-".concat(r.id)}),s.createElement("a",p({ref:v},b)))}))},Le=function(e){var t=e.annotation,r=e.page,n=e.viewport,o=!1===t.hasPopup,i=_e(t),a=Ae(t),l=!!(t.hasPopup||i||a),c=t.rect,u=c[2]-c[0],d=c[3]-c[1],f=t.borderStyle.width;return s.createElement(xe,{annotation:t,hasPopup:o,ignoreBorder:!0,isRenderable:l,page:r,viewport:n},(function(e){return s.createElement("div",p({},e.slot.attrs,{className:"rpv-core__annotation rpv-core__annotation--polygon","data-annotation-id":t.id,onClick:e.popup.toggleOnClick,onMouseEnter:e.popup.openOnHover,onMouseLeave:e.popup.closeOnHover}),t.vertices&&t.vertices.length&&s.createElement("svg",{height:"".concat(d,"px"),preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 ".concat(u," ").concat(d),width:"".concat(u,"px")},s.createElement("polygon",{fill:"none",stroke:"transparent",strokeWidth:f||1,points:t.vertices.map((function(e){return"".concat(e.x-c[0],",").concat(c[3]-e.y)})).join(" ")})),e.slot.children)}))},Ze=function(e){var t=e.annotation,r=e.page,n=e.viewport,o=!1===t.hasPopup,i=_e(t),a=Ae(t),l=!!(t.hasPopup||i||a),c=t.rect,u=c[2]-c[0],d=c[3]-c[1],f=t.borderStyle.width;return s.createElement(xe,{annotation:t,hasPopup:o,ignoreBorder:!0,isRenderable:l,page:r,viewport:n},(function(e){return s.createElement("div",p({},e.slot.attrs,{className:"rpv-core__annotation rpv-core__annotation--polyline","data-annotation-id":t.id,onClick:e.popup.toggleOnClick,onMouseEnter:e.popup.openOnHover,onMouseLeave:e.popup.closeOnHover}),t.vertices&&t.vertices.length&&s.createElement("svg",{height:"".concat(d,"px"),preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 ".concat(u," ").concat(d),width:"".concat(u,"px")},s.createElement("polyline",{fill:"none",stroke:"transparent",strokeWidth:f||1,points:t.vertices.map((function(e){return"".concat(e.x-c[0],",").concat(c[3]-e.y)})).join(" ")})),e.slot.children)}))},Ne=function(e){var t=e.annotation,r=e.page,n=e.viewport,o=!1===t.hasPopup,i=_e(t),a=Ae(t),l=!!(t.hasPopup||i||a),c=t.rect,u=c[2]-c[0],d=c[3]-c[1],f=t.borderStyle.width;return s.createElement(xe,{annotation:t,hasPopup:o,ignoreBorder:!0,isRenderable:l,page:r,viewport:n},(function(e){return s.createElement("div",p({},e.slot.attrs,{className:"rpv-core__annotation rpv-core__annotation--square","data-annotation-id":t.id,onClick:e.popup.toggleOnClick,onMouseEnter:e.popup.openOnHover,onMouseLeave:e.popup.closeOnHover}),s.createElement("svg",{height:"".concat(d,"px"),preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 ".concat(u," ").concat(d),width:"".concat(u,"px")},s.createElement("rect",{height:d-f,fill:"none",stroke:"transparent",strokeWidth:f||1,x:f/2,y:f/2,width:u-f})),e.slot.children)}))},Ge=function(e){var t=e.annotation,r=e.page,n=e.viewport,o=!1===t.hasPopup,i=_e(t),a=Ae(t),l=!!(t.hasPopup||i||a);return s.createElement(xe,{annotation:t,hasPopup:o,ignoreBorder:!0,isRenderable:l,page:r,viewport:n},(function(e){return s.createElement("div",p({},e.slot.attrs,{className:"rpv-core__annotation rpv-core__annotation--squiggly","data-annotation-id":t.id,onClick:e.popup.toggleOnClick,onMouseEnter:e.popup.openOnHover,onMouseLeave:e.popup.closeOnHover}),e.slot.children)}))},ze=function(e){var t=e.annotation,r=e.page,n=e.viewport,o=!1===t.hasPopup,i=_e(t),a=Ae(t),l=!!(t.hasPopup||i||a);return s.createElement(xe,{annotation:t,hasPopup:o,ignoreBorder:!0,isRenderable:l,page:r,viewport:n},(function(e){return s.createElement("div",p({},e.slot.attrs,{className:"rpv-core__annotation rpv-core__annotation--stamp","data-annotation-id":t.id,onClick:e.popup.toggleOnClick,onMouseEnter:e.popup.openOnHover,onMouseLeave:e.popup.closeOnHover}),e.slot.children)}))},We=function(e){var t=e.annotation,r=e.page,n=e.viewport,o=!1===t.hasPopup,i=_e(t),a=Ae(t),l=!!(t.hasPopup||i||a);return s.createElement(xe,{annotation:t,hasPopup:o,ignoreBorder:!0,isRenderable:l,page:r,viewport:n},(function(e){return s.createElement("div",p({},e.slot.attrs,{className:"rpv-core__annotation rpv-core__annotation--strike-out","data-annotation-id":t.id,onClick:e.popup.toggleOnClick,onMouseEnter:e.popup.openOnHover,onMouseLeave:e.popup.closeOnHover}),e.slot.children)}))},Ue=function(){return s.createElement(b,{size:16},s.createElement("path",{d:"M.5,16.5a1,1,0,0,0,1,1h2v4l4-4h15a1,1,0,0,0,1-1V3.5a1,1,0,0,0-1-1H1.5a1,1,0,0,0-1,1Z"}),s.createElement("path",{d:"M7.25,9.75A.25.25,0,1,1,7,10a.25.25,0,0,1,.25-.25"}),s.createElement("path",{d:"M12,9.75a.25.25,0,1,1-.25.25A.25.25,0,0,1,12,9.75"}),s.createElement("path",{d:"M16.75,9.75a.25.25,0,1,1-.25.25.25.25,0,0,1,.25-.25"}))},qe=function(){return s.createElement(b,{size:16},s.createElement("path",{d:"M0.500 12.001 A11.500 11.500 0 1 0 23.500 12.001 A11.500 11.500 0 1 0 0.500 12.001 Z"}),s.createElement("path",{d:"M6.000 12.001 A6.000 6.000 0 1 0 18.000 12.001 A6.000 6.000 0 1 0 6.000 12.001 Z"}),s.createElement("path",{d:"M21.423 5.406L17.415 9.414"}),s.createElement("path",{d:"M14.587 6.585L18.607 2.565"}),s.createElement("path",{d:"M5.405 21.424L9.413 17.416"}),s.createElement("path",{d:"M6.585 14.588L2.577 18.596"}),s.createElement("path",{d:"M18.602 21.419L14.595 17.412"}),s.createElement("path",{d:"M17.419 14.58L21.428 18.589"}),s.createElement("path",{d:"M2.582 5.399L6.588 9.406"}),s.createElement("path",{d:"M9.421 6.581L5.412 2.572"}))},Ve=function(){return s.createElement(b,{size:16},s.createElement("path",{d:"M4.000 18.500 A1.500 1.500 0 1 0 7.000 18.500 A1.500 1.500 0 1 0 4.000 18.500 Z"}),s.createElement("path",{d:"M20.5.5l-9.782,9.783a7,7,0,1,0,3,3L17,10h1.5V8.5L19,8h1.5V6.5L21,6h1.5V4.5l1-1V.5Z"}))},He=function(){return s.createElement(b,{size:16},s.createElement("path",{d:"M2.000 2.500 L22.000 2.500 L22.000 23.500 L2.000 23.500 Z"}),s.createElement("path",{d:"M6 4.5L6 0.5"}),s.createElement("path",{d:"M18 4.5L18 0.5"}),s.createElement("path",{d:"M10 4.5L10 0.5"}),s.createElement("path",{d:"M14 4.5L14 0.5"}))},Ke=function(){return s.createElement(b,{size:16},s.createElement("path",{d:"M17.5 0.498L17.5 23.498"}),s.createElement("path",{d:"M10.5 0.498L10.5 23.498"}),s.createElement("path",{d:"M23.5.5H6.5a6,6,0,0,0,0,12h4"}))},Ye=function(){return s.createElement(b,{size:16},s.createElement("path",{d:"M2.5 22.995L12 6.005 21.5 22.995 2.5 22.995z"}))},$e=function(e){var r=e.annotation,n=e.childAnnotation,o=e.page,i=e.viewport,a=!1===r.hasPopup,l=_e(r),c=Ae(r),u=!!(r.hasPopup||l||c),d=r.name?r.name.toLowerCase():"";return s.createElement(xe,{annotation:r,hasPopup:a,ignoreBorder:!1,isRenderable:u,page:o,viewport:i},(function(e){return s.createElement(s.Fragment,null,s.createElement("div",p({},e.slot.attrs,{className:"rpv-core__annotation rpv-core__annotation--text","data-annotation-id":r.id,onClick:e.popup.toggleOnClick,onMouseEnter:e.popup.openOnHover,onMouseLeave:e.popup.closeOnHover}),d&&s.createElement("div",{className:"rpv-core__annotation-text-icon"},"check"===d&&s.createElement(y,null),"comment"===d&&s.createElement(Ue,null),"help"===d&&s.createElement(qe,null),"insert"===d&&s.createElement(Ye,null),"key"===d&&s.createElement(Ve,null),"note"===d&&s.createElement(He,null),("newparagraph"===d||"paragraph"===d)&&s.createElement(Ke,null)),e.slot.children),n&&n.annotationType===t.AnnotationType.Popup&&e.popup.opened&&s.createElement(Oe,{annotation:n,page:o,viewport:i}))}))},Xe=function(e){var t=e.annotation,r=e.page,n=e.viewport,o=!1===t.hasPopup,i=_e(t),a=Ae(t),l=!!(t.hasPopup||i||a);return s.createElement(xe,{annotation:t,hasPopup:o,ignoreBorder:!0,isRenderable:l,page:r,viewport:n},(function(e){return s.createElement("div",p({},e.slot.attrs,{className:"rpv-core__annotation rpv-core__annotation--underline","data-annotation-id":t.id,onClick:e.popup.toggleOnClick,onMouseEnter:e.popup.openOnHover,onMouseLeave:e.popup.closeOnHover}),e.slot.children)}))},Qe=function(e){var r=e.annotations,n=e.doc,o=e.outlines,i=e.page,a=e.pageIndex,l=e.plugins,c=e.rotation,u=e.scale,d=e.onExecuteNamedAction,p=e.onJumpFromLinkAnnotation,f=e.onJumpToDest,h=s.useRef(),v=i.getViewport({rotation:c,scale:u}).clone({dontFlip:!0}),m=r.filter((function(e){return!e.parentId}));return g((function(){var e=h.current;e&&l.forEach((function(t){t.onAnnotationLayerRender&&t.onAnnotationLayerRender({annotations:m,container:e,pageIndex:a,rotation:c,scale:u})}))}),[]),s.createElement("div",{ref:h,className:"rpv-core__annotation-layer","data-testid":"core__annotation-layer-".concat(a)},m.map((function(e){var l=r.find((function(t){return t.parentId===e.id}));switch(e.annotationType){case t.AnnotationType.Caret:return s.createElement(ke,{key:e.id,annotation:e,page:i,viewport:v});case t.AnnotationType.Circle:return s.createElement(Se,{key:e.id,annotation:e,page:i,viewport:v});case t.AnnotationType.FileAttachment:return s.createElement(Pe,{key:e.id,annotation:e,page:i,viewport:v});case t.AnnotationType.FreeText:return s.createElement(Ee,{key:e.id,annotation:e,page:i,viewport:v});case t.AnnotationType.Highlight:return s.createElement(Me,{key:e.id,annotation:e,childAnnotation:l,page:i,viewport:v});case t.AnnotationType.Ink:return s.createElement(Fe,{key:e.id,annotation:e,page:i,viewport:v});case t.AnnotationType.Line:return s.createElement(Re,{key:e.id,annotation:e,page:i,viewport:v});case t.AnnotationType.Link:return s.createElement(Be,{key:e.id,annotation:e,annotationContainerRef:h,doc:n,outlines:o,page:i,pageIndex:a,scale:u,viewport:v,onExecuteNamedAction:d,onJumpFromLinkAnnotation:p,onJumpToDest:f});case t.AnnotationType.Polygon:return s.createElement(Le,{key:e.id,annotation:e,page:i,viewport:v});case t.AnnotationType.Polyline:return s.createElement(Ze,{key:e.id,annotation:e,page:i,viewport:v});case t.AnnotationType.Popup:return s.createElement(Oe,{key:e.id,annotation:e,page:i,viewport:v});case t.AnnotationType.Square:return s.createElement(Ne,{key:e.id,annotation:e,page:i,viewport:v});case t.AnnotationType.Squiggly:return s.createElement(Ge,{key:e.id,annotation:e,page:i,viewport:v});case t.AnnotationType.Stamp:return s.createElement(ze,{key:e.id,annotation:e,page:i,viewport:v});case t.AnnotationType.StrikeOut:return s.createElement(We,{key:e.id,annotation:e,page:i,viewport:v});case t.AnnotationType.Text:return s.createElement($e,{key:e.id,annotation:e,childAnnotation:l,page:i,viewport:v});case t.AnnotationType.Underline:return s.createElement(Xe,{key:e.id,annotation:e,page:i,viewport:v});default:return s.createElement(s.Fragment,{key:e.id})}})))},Je=function(e){var t=e.page,r=e.renderAnnotations,n=T(),o=s.useState({loading:!0,annotations:[]}),i=o[0],a=o[1];return s.useEffect((function(){t.getAnnotations({intent:"display"}).then((function(e){n.current&&a({loading:!1,annotations:e})}))}),[]),i.loading?s.createElement(s.Fragment,null):r(i.annotations)},et=function(e){var t=e.doc,r=e.outlines,n=e.page,o=e.pageIndex,i=e.plugins,a=e.rotation,l=e.scale,c=e.onExecuteNamedAction,u=e.onJumpFromLinkAnnotation,d=e.onJumpToDest;return s.createElement(Je,{page:n,renderAnnotations:function(e){return s.createElement(Qe,{annotations:e,doc:t,outlines:r,page:n,pageIndex:o,plugins:i,rotation:a,scale:l,onExecuteNamedAction:c,onJumpFromLinkAnnotation:u,onJumpToDest:d})}})},tt=function(e,t){var r=e%t;return 0===r?e:Math.floor(e-r)},rt=function(e){var r=e.canvasLayerRef,n=e.height,o=e.page,i=e.pageIndex,a=e.plugins,l=e.rotation,c=e.scale,u=e.width,d=e.onRenderCanvasCompleted,p=s.useRef();return g((function(){var e=p.current;e&&e.cancel();var n=r.current;n.removeAttribute("data-testid"),a.forEach((function(e){e.onCanvasLayerRender&&e.onCanvasLayerRender({ele:n,pageIndex:i,rotation:l,scale:c,status:t.LayerRenderStatus.PreRender})}));var s=o.getViewport({rotation:l,scale:c}),u=window.devicePixelRatio||1,f=Math.sqrt(16777216/(s.width*s.height)),h=u>f;h?n.style.transform="scale(1, 1)":n.style.removeProperty("transform");var v=Math.min(f,u),g=function(e,t){var r,n;if(Math.floor(e)===e)return[e,1];var o=1/e;if(o>8)return[1,8];if(Math.floor(o)===o)return[1,o];for(var i=e>1?o:e,a=0,s=1,l=1,c=1;;){var u=a+l,d=s+c;if(d>8)break;i<=u/d?(l=(r=[u,d])[0],c=r[1]):(a=(n=[u,d])[0],s=n[1])}return i<(a/s+l/c)/2?i===e?[a,s]:[s,a]:i===e?[l,c]:[c,l]}(v),m=g[0],b=g[1];n.width=tt(s.width*v,m),n.height=tt(s.height*v,m),n.style.width="".concat(tt(s.width,b),"px"),n.style.height="".concat(tt(s.height,b),"px"),n.hidden=!0;var y=n.getContext("2d",{alpha:!1}),A=h||1!==u?[v,0,0,v,0,0]:null;return p.current=o.render({canvasContext:y,transform:A,viewport:s}),p.current.promise.then((function(){n.hidden=!1,n.setAttribute("data-testid","core__canvas-layer-".concat(i)),a.forEach((function(e){e.onCanvasLayerRender&&e.onCanvasLayerRender({ele:n,pageIndex:i,rotation:l,scale:c,status:t.LayerRenderStatus.DidRender})})),d()}),(function(){d()})),function(){n&&(n.width=0,n.height=0)}}),[]),s.createElement("div",{className:"rpv-core__canvas-layer",style:{height:"".concat(n,"px"),width:"".concat(u,"px")}},s.createElement("canvas",{ref:r}))},nt=function(e){var t=e.height,r=e.page,n=e.rotation,o=e.scale,i=e.width,a=s.useRef();return g((function(){var e=a.current,s=r.getViewport({rotation:n,scale:o});r.getOperatorList().then((function(n){!function(){var e=a.current;e&&(e.innerHTML="")}(),new l.SVGGraphics(r.commonObjs,r.objs).getSVG(n,s).then((function(r){r.style.height="".concat(t,"px"),r.style.width="".concat(i,"px"),e.appendChild(r)}))}))}),[]),s.createElement("div",{className:"rpv-core__svg-layer",ref:a})},ot=function(e){var r=e.containerRef,n=e.page,o=e.pageIndex,i=e.plugins,a=e.rotation,c=e.scale,u=e.onRenderTextCompleted,d=s.useRef(),p=function(){var e=r.current;e&&([].slice.call(e.querySelectorAll(".rpv-core__text-layer-text")).forEach((function(t){return e.removeChild(t)})),[].slice.call(e.querySelectorAll('br[role="presentation"]')).forEach((function(t){return e.removeChild(t)})))};return g((function(){var e=d.current;e&&e.cancel();var s=r.current;if(s){s.removeAttribute("data-testid");var f=n.getViewport({rotation:a,scale:c});return i.forEach((function(e){e.onTextLayerRender&&e.onTextLayerRender({ele:s,pageIndex:o,scale:c,status:t.LayerRenderStatus.PreRender})})),n.getTextContent().then((function(e){p(),d.current=l.renderTextLayer({container:s,textContent:e,textContentSource:e,viewport:f}),d.current.promise.then((function(){s.setAttribute("data-testid","core__text-layer-".concat(o)),[].slice.call(s.children).forEach((function(e){e.classList.contains("rpv-core__text-layer-text--not")||e.classList.add("rpv-core__text-layer-text")})),i.forEach((function(e){e.onTextLayerRender&&e.onTextLayerRender({ele:s,pageIndex:o,scale:c,status:t.LayerRenderStatus.DidRender})})),u()}),(function(){s.removeAttribute("data-testid"),u()}))})),function(){var e;p(),null===(e=d.current)||void 0===e||e.cancel()}}}),[]),s.createElement("div",{className:"rpv-core__text-layer",ref:r})},it=function(e){var r=e.doc,n=e.measureRef,o=e.outlines,i=e.pageIndex,a=e.pageRotation,l=e.pageSize,c=e.plugins,u=e.renderPage,d=e.renderQueueKey,p=e.rotation,f=e.scale,h=e.shouldRender,g=e.viewMode,m=e.onExecuteNamedAction,b=e.onJumpFromLinkAnnotation,y=e.onJumpToDest,A=e.onRenderCompleted,C=e.onRotatePage,w=T(),x=s.useState(null),k=x[0],S=x[1],P=s.useState(!1),E=P[0],O=P[1],M=s.useState(!1),F=M[0],R=M[1],I=s.useRef(),D=s.useRef(),j=Math.abs(p+a)%180==0,B=l.pageWidth*f,L=l.pageHeight*f,Z=j?B:L,N=j?L:B,G=(l.rotation+p+a)%360,z=s.useRef(0),W=u||function(e){return s.createElement(s.Fragment,null,e.canvasLayer.children,e.textLayer.children,e.annotationLayer.children)};return s.useEffect((function(){S(null),O(!1),R(!1)}),[a,p,f]),s.useEffect((function(){h&&w.current&&!k&&ve(r,i).then((function(e){w.current&&(z.current=d,S(e))}))}),[h,k]),s.useEffect((function(){E&&F&&(d!==z.current?(S(null),O(!1),R(!1)):A(i))}),[E,F]),s.createElement("div",{className:v({"rpv-core__page-layer":!0,"rpv-core__page-layer--dual":g===t.ViewMode.DualPage,"rpv-core__page-layer--dual-cover":g===t.ViewMode.DualPageWithCover,"rpv-core__page-layer--single":g===t.ViewMode.SinglePage}),"data-testid":"core__page-layer-".concat(i),ref:n,style:{height:"".concat(N,"px"),width:"".concat(Z,"px")}},k?s.createElement(s.Fragment,null,W({annotationLayer:{attrs:{},children:s.createElement(et,{doc:r,outlines:o,page:k,pageIndex:i,plugins:c,rotation:G,scale:f,onExecuteNamedAction:m,onJumpFromLinkAnnotation:b,onJumpToDest:y})},canvasLayer:{attrs:{},children:s.createElement(rt,{canvasLayerRef:I,height:N,page:k,pageIndex:i,plugins:c,rotation:G,scale:f,width:Z,onRenderCanvasCompleted:function(){w.current&&O(!0)}})},canvasLayerRendered:E,doc:r,height:N,pageIndex:i,rotation:G,scale:f,svgLayer:{attrs:{},children:s.createElement(nt,{height:N,page:k,rotation:G,scale:f,width:Z})},textLayer:{attrs:{},children:s.createElement(ot,{containerRef:D,page:k,pageIndex:i,plugins:c,rotation:G,scale:f,onRenderTextCompleted:function(){w.current&&R(!0)}})},textLayerRendered:F,width:Z,markRendered:A,onRotatePage:function(e){return C(i,e)}}),c.map((function(e,t){return e.renderPageLayer?s.createElement(s.Fragment,{key:t},e.renderPageLayer({canvasLayerRef:I,canvasLayerRendered:E,doc:r,height:N,pageIndex:i,rotation:G,scale:f,textLayerRef:D,textLayerRendered:F,width:Z})):s.createElement(s.Fragment,{key:t})}))):s.createElement(_,{testId:"core__page-layer-loading-".concat(i)}))},at=function(e,t){var r=t.rect;return e.height!==r.height||e.width!==r.width?r:e};!function(e){e.Horizontal="Horizontal",e.Vertical="Vertical",e.Both="Both"}(we||(we={}));var st=function(e){return 1-Math.pow(1-e,4)},lt=1e-4,ct={left:0,top:0},ut={capture:!1,passive:!0},dt=function(e,t,r){return Math.max(e,Math.min(r,t))},pt=function(e,r){if(r!==t.ViewMode.DualPageWithCover)return 0;if(!function(e){var t=e.length;if(1===t)return!1;for(var r=1;rr))return o;t=o-1}}return e>0?e-1:0}(0,i,o,(function(r){switch(e){case we.Horizontal:return t[r].start.left;case we.Both:case we.Vertical:default:return t[r].start.top}}));if(e===we.Both)for(var s=t[a].start.top;a-1>=0&&t[a-1].start.top===s&&t[a-1].start.left>=n.left;)a--;for(var l=a;l<=i;){var c={top:t[l].start.top-n.top,left:t[l].start.left-n.left},u={height:r.height-c.top,width:r.width-c.left};if(e===we.Horizontal&&u.width<0)break;if(e===we.Vertical&&u.height<0)break;if(e===we.Both&&(u.width<0||u.height<0))break;l++}return{start:a,end:l}}(y,M,w,_),r=e.start,n=e.end,i=r+P.slice(dt(0,o,r),dt(0,o,n)).reduce((function(e,t,r,n){return t>n[e]?r:e}),0),s=i=dt(0,o-1,i),l=a({endPage:n,numPages:o,startPage:r}),c=l.startPage,d=l.endPage;switch(c=Math.max(c,0),d=Math.min(d,o-1),u){case t.ViewMode.DualPageWithCover:i>0&&(s=i%2==1?i:i-1),c=0===c?0:c%2==1?c:c-1,o-(d=d%2==1?d-1:d)<=2&&(d=o-1);break;case t.ViewMode.DualPage:s=i%2==0?i:i-1,c=c%2==0?c:c-1,d=d%2==1?d:d-1;break;case t.ViewMode.SinglePage:default:s=i}return{startPage:c,endPage:d,maxVisbilityIndex:s}}),[M,w,_,u,P]),T=R.startPage,I=R.endPage,D=R.maxVisbilityIndex,j=s.useMemo((function(){for(var e=[],t=function(t){var r=M[t],n=p(p({},r),{visibility:void 0!==P[t]?P[t]:-1,measureRef:function(e){e&&(e.setAttribute(yt,"".concat(t)),O.observe(e))}});e.push(n)},r=T;r<=I;r++)t(r);return e}),[T,I,P,M]),B=s.useCallback((function(e,n){var i=x.current.measurements[dt(0,o-1,e)],a=m.current===t.ScrollMode.Page?bt:n;return i?C({left:a.left+i.start.left,top:a.top+i.start.top},r):Promise.resolve()}),[C,r]),L=s.useCallback((function(e,r){var n=x.current.measurements,o=n[e].start,i=n.find((function(e){return e.start.top-o.top>1e-12}));if(!i)return Promise.resolve();var a=i.index;switch(b.current){case t.ViewMode.DualPage:a=a%2==0?a:a+1;break;case t.ViewMode.DualPageWithCover:a=a%2==1?a:a+1}return B(a,r)}),[]),Z=s.useCallback((function(e,r){for(var n=x.current.measurements,i=n[e].start,a=e,s=!1,l=o-1;l>=0;l--)if(i.top-n[l].start.top>1e-12){s=!0,a=n[l].index;break}if(!s)return Promise.resolve();switch(b.current){case t.ViewMode.DualPage:a=a%2==0?a:a-1;break;case t.ViewMode.DualPageWithCover:a=a%2==0?a-1:a}return a===e&&(a=e-1),B(a,r)}),[]),N=s.useCallback((function(e,r){if(b.current===t.ViewMode.DualPageWithCover||b.current===t.ViewMode.DualPage)return L(e,r);switch(m.current){case t.ScrollMode.Wrapped:return L(e,r);case t.ScrollMode.Horizontal:case t.ScrollMode.Vertical:default:return B(e+1,r)}}),[]),G=s.useCallback((function(e,r){if(b.current===t.ViewMode.DualPageWithCover||b.current===t.ViewMode.DualPage)return Z(e,r);switch(m.current){case t.ScrollMode.Wrapped:return Z(e,r);case t.ScrollMode.Horizontal:case t.ScrollMode.Vertical:default:return B(e-1,r)}}),[]),z=s.useCallback((function(){return function(e,r){switch(r){case t.ScrollMode.Horizontal:return{position:"relative",height:"100%",width:"".concat(e.width,"px")};case t.ScrollMode.Vertical:default:return{position:"relative",height:"".concat(e.height,"px"),width:"100%"}}}(F,m.current)}),[F]),W=s.useCallback((function(e){return function(e,r,n){return n!==t.ScrollMode.Page?{}:{height:"".concat(r.height,"px"),width:"100%",position:"absolute",top:0,transform:"translateY(".concat(e.start.top,"px)")}}(e,w,m.current)}),[w]),U=s.useCallback((function(e){return function(e,r,n,o,i){var a,s,l,c,u,d,p,f=r?"right":"left",h=r?-1:1,v=n.length,g=e.start.left*h,m=e.size,b=m.height,y=m.width;if(o===t.ViewMode.DualPageWithCover){var A=i===t.ScrollMode.Page?0:e.start.top;return 0===e.index||v%2==0&&e.index===v-1?((a={height:"".concat(b,"px"),minWidth:"".concat(pt(n,o),"px"),width:"100%"})[f]=0,a.position="absolute",a.top=0,a.transform="translate(".concat(g,"px, ").concat(A,"px)"),a):((s={height:"".concat(b,"px"),width:"".concat(y,"px")})[f]=0,s.position="absolute",s.top=0,s.transform="translate(".concat(g,"px, ").concat(A,"px)"),s)}if(o===t.ViewMode.DualPage)return(l={height:"".concat(b,"px"),width:"".concat(y,"px")})[f]=0,l.position="absolute",l.top=0,l.transform="translate(".concat(g,"px, ").concat(i===t.ScrollMode.Page?0:e.start.top,"px)"),l;switch(i){case t.ScrollMode.Horizontal:return(c={height:"100%",width:"".concat(y,"px")})[f]=0,c.position="absolute",c.top=0,c.transform="translateX(".concat(g,"px)"),c;case t.ScrollMode.Page:return(u={height:"".concat(b,"px"),width:"".concat(y,"px")})[f]=0,u.position="absolute",u.top=0,u;case t.ScrollMode.Wrapped:return(d={height:"".concat(b,"px"),width:"".concat(y,"px")})[f]=0,d.position="absolute",d.top=0,d.transform="translate(".concat(g,"px, ").concat(e.start.top,"px)"),d;case t.ScrollMode.Vertical:default:return(p={height:"".concat(b,"px"),width:"100%"})[f]=0,p.position="absolute",p.top=0,p.transform="translateY(".concat(e.start.top,"px)"),p}}(e,n,l,b.current,m.current)}),[n,l]),q=s.useCallback((function(e,r){var n=x.current,i=n.measurements,a=n.scrollOffset,s=i[dt(0,o-1,r)];if(s){var l=m.current===t.ScrollMode.Page?{left:s.start.left,top:s.start.top}:{left:a.left*e,top:a.top*e};return C(l,!1)}return Promise.resolve()}),[]);return s.useEffect((function(){return function(){O.disconnect()}}),[]),{boundingClientRect:w,isSmoothScrolling:f,startPage:T,endPage:I,maxVisbilityIndex:D,virtualItems:j,getContainerStyles:z,getItemContainerStyles:W,getItemStyles:U,scrollToItem:B,scrollToNextItem:N,scrollToPreviousItem:G,zoom:q}},Ct=function(e,r,n,o,i,a){var s=n;switch(!0){case i===t.ViewMode.DualPageWithCover&&a>=3:case i===t.ViewMode.DualPage&&a>=3:s=2*n;break;default:s=n}switch(o){case t.SpecialZoomLevel.ActualSize:return 1;case t.SpecialZoomLevel.PageFit:return Math.min((e.clientWidth-17)/s,(e.clientHeight-16)/r);case t.SpecialZoomLevel.PageWidth:return(e.clientWidth-17)/s}},wt=function e(t){var r=[];return t.map((function(t){r=r.concat(t).concat(function(t){var r=[];return t.items&&t.items.length>0&&(r=r.concat(e(t.items))),r}(t))})),r},xt={capture:!1,passive:!0},kt={height:0,width:0},St={height:0,width:0},Pt=function(e){var r=e.getCurrentPage,n=e.getCurrentScrollMode,o=e.jumpToPage,i=e.targetRef,a=s.useState(t.FullScreenMode.Normal),l=a[0],c=a[1],u=function(){var e=s.useState(kt),t=e[0],r=e[1],n=R((function(){r({height:window.innerHeight,width:window.innerWidth})}),100);return g((function(){return window.addEventListener("resize",n,xt),function(){window.removeEventListener("resize",n,xt)}}),[]),t}(),d=s.useState(St),p=d[0],f=d[1],h=s.useRef(St),v=s.useRef(r()),m=s.useRef(St),b=s.useState(i.current),y=b[0],A=b[1],_=s.useRef();g((function(){i.current!==y&&A(i.current)}),[]),g((function(){if(y){var e=new ResizeObserver((function(e){e.forEach((function(e){var t=e.target.getBoundingClientRect(),r=t.height,n=t.width;f({height:r,width:n})}))}));return e.observe(y),function(){e.unobserve(y),e.disconnect()}}}),[y]);var C=s.useCallback((function(e){var r=F();return r&&r!==e?(c(t.FullScreenMode.Normal),M(r)):Promise.resolve()}),[]),w=s.useCallback((function(e){e&&O()&&(A(e),C(e).then((function(){_.current=e,c(t.FullScreenMode.Entering),function(e){P&&e[E.RequestFullScreen]()}(e)})))}),[]),x=s.useCallback((function(){F()&&(c(t.FullScreenMode.Exitting),M(document))}),[]),k=s.useCallback((function(){y&&F()!==y&&c(t.FullScreenMode.Exitting)}),[y]);return s.useEffect((function(){switch(l){case t.FullScreenMode.Entering:_.current&&(_.current.style.backgroundColor="var(--rpv-core__full-screen-target-background-color)"),v.current=r(),h.current={height:window.innerHeight,width:window.innerWidth};break;case t.FullScreenMode.Entered:n()===t.ScrollMode.Page?o(v.current).then((function(){c(t.FullScreenMode.EnteredCompletely)})):c(t.FullScreenMode.EnteredCompletely);break;case t.FullScreenMode.Exitting:_.current&&(_.current.style.backgroundColor="",_.current=null),v.current=r();break;case t.FullScreenMode.Exited:c(t.FullScreenMode.Normal),n()===t.ScrollMode.Page&&o(v.current)}}),[l]),s.useEffect((function(){if(l!==t.FullScreenMode.Normal)return l===t.FullScreenMode.Entering&&u.height===p.height&&u.width===p.width&&u.height>0&&u.width>0&&(0===m.current.height||u.height==m.current.height)?(m.current={height:window.innerHeight,width:window.innerWidth},void c(t.FullScreenMode.Entered)):void(l===t.FullScreenMode.Exitting&&h.current.height===u.height&&h.current.width===u.width&&u.height>0&&u.width>0&&c(t.FullScreenMode.Exited))}),[l,u,p]),s.useEffect((function(){var e;return e=k,P&&document.addEventListener(E.FullScreenChange,e),function(){!function(e){P&&document.removeEventListener(E.FullScreenChange,e)}(k)}}),[y]),{enterFullScreenMode:w,exitFullScreenMode:x,fullScreenMode:l}},Et={buildPageStyles:function(){return{}},transformSize:function(e){return e.size}},Ot={left:0,top:0},Mt=function(e){var r=e.currentFile,n=e.defaultScale,o=e.doc,i=e.enableSmoothScroll,a=e.initialPage,l=e.initialRotation,c=e.initialScale,u=e.pageLayout,d=e.pageSizes,f=e.plugins,m=e.renderPage,b=e.scrollMode,y=e.setRenderRange,A=e.viewMode,_=e.viewerState,C=e.onDocumentLoad,w=e.onOpenFile,x=e.onPageChange,k=e.onRotate,S=e.onRotatePage,P=e.onZoom,E=o.numPages,O=o.loadingTask.docId,M=s.useContext(Z).l10n,F=s.useContext(h),D=F.direction===t.TextDirection.RightToLeft,j=s.useRef(),L=s.useRef(),N=s.useState(a),G=N[0],z=N[1],W=s.useRef(null),U=function(e){var t,r=e.getCurrentPage,n=(t=s.useRef([]),s.useEffect((function(){return function(){t.current=[]}}),[]),{push:function(e){var r=t.current;r.length+1>50&&r.shift(),r.push(e),t.current=r},map:function(e){return t.current.map((function(t){return e(t)}))},pop:function(){var e=t.current;if(0===e.length)return null;var r=e.pop();return t.current=e,r}}),o=function(e){var t=s.useRef([]);return s.useEffect((function(){return function(){t.current=[]}}),[]),{dequeue:function(){var e=t.current;if(0===e.length)return null;var r=e.shift();return t.current=e,r||null},enqueue:function(e){var r=t.current;r.length+1>50&&r.pop(),t.current=[e].concat(r)},map:function(e){return t.current.map((function(t){return e(t)}))}}}(),i=s.useCallback((function(e){n.push(e)}),[]);return{getNextDestination:function e(){var t=o.dequeue();return t&&n.push(t),t&&t.pageIndex===r()?e():t},getPreviousDestination:function e(){var t=n.pop();return t&&o.enqueue(t),t&&t.pageIndex===r()?e():t},markVisitedDestination:i}}({getCurrentPage:function(){return be.current.pageIndex}}),q=s.useState(l),V=q[0],H=q[1],K=I(V),Y=s.useState(!1),$=Y[0],X=Y[1],Q=s.useState(new Map),J=Q[0],ee=Q[1],te=s.useState(b),re=te[0],ne=te[1],oe=I(re),ie=s.useState(A),ae=ie[0],se=ie[1],le=I(ae),ue=function(e){var t=T(),r=s.useState([]),n=r[0],o=r[1];return s.useEffect((function(){e.getOutline().then((function(e){if(t.current&&null!==e){var r=wt(e);o(r)}}))}),[]),n}(o),fe=s.useState(c),he=fe[0],ge=fe[1],me=I(he),be=s.useRef(_),ye=s.useRef("string"==typeof n?n:null),Ae=s.useRef(-1),_e=s.useRef(-1),Ce=s.useRef(a),we=Pt({getCurrentPage:function(){return be.current.pageIndex},getCurrentScrollMode:function(){return be.current.scrollMode},jumpToPage:function(e){return Ue(e)},targetRef:L}),xe=s.useState(-1),ke=xe[0],Se=xe[1],Pe=s.useState(0),Ee=Pe[0],Oe=Pe[1],Me=B({doc:o});s.useEffect((function(){return function(){de.clear(),pe.clear()}}),[O]);var Fe=s.useMemo((function(){return Object.assign({},Et,u)}),[]),Re=s.useMemo((function(){return Array(E).fill(0).map((function(e,t){var r=[d[t].pageHeight,d[t].pageWidth],n=Math.abs(V)%180==0?{height:r[0],width:r[1]}:{height:r[1],width:r[0]},o={height:n.height*he,width:n.width*he};return Fe.transformSize({numPages:E,pageIndex:t,size:o})}))}),[V,he]),Te=_t({enableSmoothScroll:i,isRtl:D,numberOfItems:E,parentRef:L,scrollMode:re,setRenderRange:y,sizes:Re,viewMode:ae}),Ie=R((function(){!ye.current||be.current.fullScreenMode!==t.FullScreenMode.Normal||a>0&&Ce.current===a||Xe(ye.current)}),200);!function(e){var t=e.targetRef,r=e.onResize;g((function(){var e=new ResizeObserver((function(e){e.forEach((function(e){r(e.target)}))})),n=t.current;if(n)return e.observe(n),function(){e.unobserve(n)}}),[])}({targetRef:L,onResize:Ie});var De=function(e){var t=e;f.forEach((function(e){e.onViewerStateChange&&(t=e.onViewerStateChange(t))})),be.current=t},je=function(){return L.current},Be=function(){return be.current},Le=s.useCallback((function(e){U.markVisitedDestination(e)}),[]),Ze=s.useCallback((function(e){var r=e.pageIndex,n=e.bottomOffset,i=e.leftOffset,a=e.scaleTo,s=L.current,l=be.current;return s&&l?new Promise((function(e,c){ve(o,r).then((function(o){var c=o.getViewport({scale:1}),u=0,p=("function"==typeof n?n(c.width,c.height):n)||0,f=("function"==typeof i?i(c.width,c.height):i)||0,h=l.scale;switch(a){case t.SpecialZoomLevel.PageFit:u=0,f=0,Xe(t.SpecialZoomLevel.PageFit);break;case t.SpecialZoomLevel.PageWidth:h=Ct(s,d[r].pageHeight,d[r].pageWidth,t.SpecialZoomLevel.PageWidth,A,E),u=(c.height-p)*h,f*=h,Xe(h);break;default:u=(c.height-p)*h,f*=h}switch(l.scrollMode){case t.ScrollMode.Horizontal:Te.scrollToItem(r,{left:f,top:0}).then((function(){e()}));break;case t.ScrollMode.Vertical:default:Te.scrollToItem(r,{left:0,top:u}).then((function(){e()}))}}))})):Promise.resolve()}),[]),Ne=s.useCallback((function(e){return U.markVisitedDestination(e),Ze(e)}),[]),Ge=s.useCallback((function(){var e=U.getNextDestination();return e?Ze(e):Promise.resolve()}),[]),ze=s.useCallback((function(){var e=U.getPreviousDestination();return e?Ze(e):Promise.resolve()}),[]),We=s.useCallback((function(){return Te.scrollToNextItem(be.current.pageIndex,Ot)}),[]),Ue=s.useCallback((function(e){return 0<=e&&e=E)){var n=d[r].pageHeight,i=d[r].pageWidth,a=t?"string"==typeof e?Ct(t,n,i,e,be.current.viewMode,E):e:1;ye.current="string"==typeof e?e:null,a!==be.current.scale&&(Oe((function(e){return e+1})),Me.markNotRendered(),ge(a),P({doc:o,scale:a}),De(p(p({},be.current),{scale:a})))}}),[]),Qe=s.useCallback((function(e){we.enterFullScreenMode(e)}),[]),Je=s.useCallback((function(){we.exitFullScreenMode()}),[]);s.useEffect((function(){De(p(p({},be.current),{fullScreenMode:we.fullScreenMode}))}),[we.fullScreenMode]),s.useEffect((function(){var e={enterFullScreenMode:Qe,exitFullScreenMode:Je,getPagesContainer:je,getViewerState:Be,jumpToDestination:Ne,jumpToNextDestination:Ge,jumpToPreviousDestination:ze,jumpToNextPage:We,jumpToPreviousPage:qe,jumpToPage:Ue,openFile:Ve,rotate:He,rotatePage:Ke,setViewerState:De,switchScrollMode:Ye,switchViewMode:$e,zoom:Xe};return f.forEach((function(t){t.install&&t.install(e)})),function(){f.forEach((function(t){t.uninstall&&t.uninstall(e)}))}}),[O]),s.useEffect((function(){C({doc:o,file:r}),f.forEach((function(e){e.onDocumentLoad&&e.onDocumentLoad({doc:o,file:r})}))}),[O]);var et,tt,rt,nt=Te.boundingClientRect;et=function(){a&&Ue(a)},tt=nt.height>0&&nt.width>0,rt=s.useRef(!1),g((function(){tt&&!rt.current&&(rt.current=!0,et())}),[et,tt]),g((function(){var e=be.current.pageIndex;e>-1&&oe!==re&&Te.scrollToItem(e,Ot).then((function(){we.fullScreenMode===t.FullScreenMode.EnteredCompletely&&(i||Me.markNotRendered(),Ae.current=-1)}))}),[re]),g((function(){var e=be.current.pageIndex;e>-1&&K!==V&&Te.scrollToItem(e,Ot)}),[V]),g((function(){0!=me&&me!=be.current.scale&&Te.zoom(be.current.scale/me,be.current.pageIndex).then((function(){we.fullScreenMode===t.FullScreenMode.EnteredCompletely&&(_e.current=-1)}))}),[he]),g((function(){if(le!==be.current.viewMode){var e=Te.startPage,t=Te.endPage,r=Te.virtualItems;Me.markNotRendered(),Me.setRange(e,t);for(var n=function(e){var t=r.find((function(t){return t.index===e}));t&&Me.setVisibility(e,t.visibility)},o=e;o<=t;o++)n(o);at()}}),[ae]),g((function(){var e=be.current.pageIndex;e>-1&&le!==ae&&Te.scrollToItem(e,Ot)}),[ae]),g((function(){var e=be.current.pageIndex;e>0&&e===a&&Ce.current===a&&ye.current&&(Ce.current=-1,Xe(ye.current))}),[G]),s.useEffect((function(){Te.isSmoothScrolling||null!==W.current&&W.current===G||(W.current=G,x({currentPage:G,doc:o}))}),[G,Te.isSmoothScrolling]),s.useEffect((function(){we.fullScreenMode===t.FullScreenMode.Entering&&be.current.scrollMode===t.ScrollMode.Page&&(Ae.current=be.current.pageIndex),we.fullScreenMode===t.FullScreenMode.EnteredCompletely&&be.current.scrollMode===t.ScrollMode.Page&&i&&(Ae.current=-1),we.fullScreenMode===t.FullScreenMode.EnteredCompletely&&ye.current&&(_e.current=be.current.pageIndex,Xe(ye.current))}),[we.fullScreenMode]),s.useEffect((function(){if(we.fullScreenMode!==t.FullScreenMode.Entering&&we.fullScreenMode!==t.FullScreenMode.Exitting&&!Te.isSmoothScrolling){var e=Te.startPage,r=Te.endPage,n=Te.maxVisbilityIndex,o=Te.virtualItems,i=n,a=we.fullScreenMode===t.FullScreenMode.Entered||we.fullScreenMode===t.FullScreenMode.EnteredCompletely;if(!(a&&i!==Ae.current&&Ae.current>-1||a&&i!==_e.current&&_e.current>-1)){z(i),De(p(p({},be.current),{pageIndex:i})),Me.setRange(e,r);for(var s=function(e){var t=o.find((function(t){return t.index===e}));t&&Me.setVisibility(e,t.visibility)},l=e;l<=r;l++)s(l);at()}}}),[Te.startPage,Te.endPage,Te.isSmoothScrolling,Te.maxVisbilityIndex,we.fullScreenMode,$,V,he]);var ot=s.useCallback((function(e){Me.markRendered(e),at()}),[Ee]),at=function(){var e=Me.getHighestPriorityPage();e>-1&&Me.isInRange(e)&&(Me.markRendering(e),Se(e))},st=function(e){var t=G-1,r=G+1;switch(e){case"FirstPage":Ue(0);break;case"LastPage":Ue(E-1);break;case"NextPage":r=0&&Ue(t)}},lt=s.useCallback((function(){var e=Te.virtualItems,r=[];switch(ae){case t.ViewMode.DualPage:r=ce(e,2);break;case t.ViewMode.DualPageWithCover:e.length&&(r=0===e[0].index?[[e[0]]].concat(ce(e.slice(1),2)):ce(e,2));break;case t.ViewMode.SinglePage:default:r=ce(e,1)}var n=M&&M.core?M.core.pageLabel:"Page {{pageIndex}}",i={attrs:{className:"rpv-core__inner-container","data-testid":"core__inner-container",ref:j,style:{height:"100%"}},children:s.createElement(s.Fragment,null),subSlot:{attrs:{"data-testid":"core__inner-pages",className:v({"rpv-core__inner-pages":!0,"rpv-core__inner-pages--horizontal":re===t.ScrollMode.Horizontal,"rpv-core__inner-pages--rtl":D,"rpv-core__inner-pages--single":re===t.ScrollMode.Page,"rpv-core__inner-pages--vertical":re===t.ScrollMode.Vertical,"rpv-core__inner-pages--wrapped":re===t.ScrollMode.Wrapped}),ref:L,style:{height:"100%",position:"relative"}},children:s.createElement("div",{"data-testid":"core__inner-current-page-".concat(G),style:Object.assign({"--scale-factor":he},Te.getContainerStyles())},r.map((function(e){return s.createElement("div",{className:v({"rpv-core__inner-page-container":!0,"rpv-core__inner-page-container--single":re===t.ScrollMode.Page}),style:Te.getItemContainerStyles(e[0]),key:"".concat(e[0].index,"-").concat(ae)},e.map((function(e){var r=ae===t.ViewMode.DualPageWithCover&&(0===e.index||E%2==0&&e.index===E-1);return s.createElement("div",{"aria-label":n.replace("{{pageIndex}}","".concat(e.index+1)),className:v({"rpv-core__inner-page":!0,"rpv-core__inner-page--dual-even":ae===t.ViewMode.DualPage&&e.index%2==0,"rpv-core__inner-page--dual-odd":ae===t.ViewMode.DualPage&&e.index%2==1,"rpv-core__inner-page--dual-cover":r,"rpv-core__inner-page--dual-cover-even":ae===t.ViewMode.DualPageWithCover&&!r&&e.index%2==0,"rpv-core__inner-page--dual-cover-odd":ae===t.ViewMode.DualPageWithCover&&!r&&e.index%2==1,"rpv-core__inner-page--single":ae===t.ViewMode.SinglePage&&re===t.ScrollMode.Page}),role:"region",key:"".concat(e.index,"-").concat(ae),style:Object.assign({},Te.getItemStyles(e),Fe.buildPageStyles({numPages:E,pageIndex:e.index,scrollMode:re,viewMode:ae}))},s.createElement(it,{doc:o,measureRef:e.measureRef,outlines:ue,pageIndex:e.index,pageRotation:J.has(e.index)?J.get(e.index):0,pageSize:d[e.index],plugins:f,renderPage:m,renderQueueKey:Ee,rotation:V,scale:he,shouldRender:ke===e.index,viewMode:ae,onExecuteNamedAction:st,onJumpFromLinkAnnotation:Le,onJumpToDest:Ne,onRenderCompleted:ot,onRotatePage:Ke}))})))})))}};return f.forEach((function(e){e.renderViewer&&(i=e.renderViewer({containerRef:j,doc:o,pagesContainerRef:L,pagesRotation:J,pageSizes:d,rotation:V,slot:i,themeContext:F,jumpToPage:Ue,openFile:Ve,rotate:He,rotatePage:Ke,switchScrollMode:Ye,switchViewMode:$e,zoom:Xe}))})),i}),[f,Te]),ct=s.useCallback((function(e){return s.createElement("div",p({},e.attrs,{style:e.attrs&&e.attrs.style?e.attrs.style:{}}),e.children,e.subSlot&&ct(e.subSlot))}),[]);return ct(lt())},Ft=[.1,.2,.3,.4,.5,.6,.7,.8,.9,1,1.1,1.3,1.5,1.7,1.9,2.1,2.4,2.7,3,3.3,3.7,4.1,4.6,5.1,5.7,6.3,7,7.7,8.5,9.4,10],Rt=function(e){var r=e.defaultScale,n=e.doc,o=e.render,i=e.scrollMode,a=e.viewMode,l=s.useRef(),c=s.useState({pageSizes:[],scale:0}),u=c[0],d=c[1];return s.useLayoutEffect((function(){var e=Array(n.numPages).fill(0).map((function(e,t){return new Promise((function(e,r){ve(n,t).then((function(t){var r=t.getViewport({scale:1});e({pageHeight:r.height,pageWidth:r.width,rotation:r.rotation})}))}))}));Promise.all(e).then((function(e){var o=l.current;if(o&&0!==e.length){var s=e[0].pageWidth,c=e[0].pageHeight,u=o.parentElement,p=(u.clientWidth-45)/s,f=(u.clientHeight-45)/c,h=p;switch(i){case t.ScrollMode.Horizontal:h=Math.min(p,f);break;case t.ScrollMode.Vertical:default:h=p}var v,g,m=r?"string"==typeof r?Ct(u,c,s,r,a,n.numPages):r:(v=h,-1===(g=Ft.findIndex((function(e){return e>=v})))||0===g?v:Ft[g-1]);d({pageSizes:e,scale:m})}}))}),[n.loadingTask.docId]),0===u.pageSizes.length||0===u.scale?s.createElement("div",{className:"rpv-core__page-size-calculator","data-testid":"core__page-size-calculating",ref:l},s.createElement(_,null)):o(u.pageSizes,u.scale)},Tt=function(){},It=function(e){function t(t,r){var n=e.call(this)||this;return n.verifyPassword=t,n.passwordStatus=r,n}return u(t,e),t}(Tt),Dt=function(e){var r=e.passwordStatus,n=e.renderProtectedView,o=e.verifyPassword,i=e.onDocumentAskPassword,a=s.useContext(Z).l10n,l=s.useState(""),c=l[0],u=l[1],d=s.useContext(h).direction===t.TextDirection.RightToLeft,p=function(){return o(c)};return s.useEffect((function(){i&&i({verifyPassword:o})}),[]),n?n({passwordStatus:r,verifyPassword:o}):s.createElement("div",{className:"rpv-core__asking-password-wrapper"},s.createElement("div",{className:v({"rpv-core__asking-password":!0,"rpv-core__asking-password--rtl":d})},s.createElement("div",{className:"rpv-core__asking-password-message"},r===t.PasswordStatus.RequiredPassword&&a.core.askingPassword.requirePasswordToOpen,r===t.PasswordStatus.WrongPassword&&a.core.wrongPassword.tryAgain),s.createElement("div",{className:"rpv-core__asking-password-body"},s.createElement("div",{className:v({"rpv-core__asking-password-input":!0,"rpv-core__asking-password-input--ltr":!d,"rpv-core__asking-password-input--rtl":d})},s.createElement(C,{testId:"core__asking-password-input",type:"password",value:c,onChange:u,onKeyDown:function(e){"Enter"===e.key&&p()}})),s.createElement(A,{onClick:p},a.core.askingPassword.submit))))},jt=function(e){function t(t){var r=e.call(this)||this;return r.doc=t,r}return u(t,e),t}(Tt),Bt=function(e){function t(t){var r=e.call(this)||this;return r.error=t,r}return u(t,e),t}(Tt),Lt=function(e){function t(t){var r=e.call(this)||this;return r.percentages=t,r}return u(t,e),t}(Tt),Zt=function(e){var r=e.characterMap,n=e.file,o=e.httpHeaders,i=e.render,a=e.renderError,c=e.renderLoader,u=e.renderProtectedView,d=e.transformGetDocumentParams,p=e.withCredentials,f=e.onDocumentAskPassword,g=s.useContext(h).direction===t.TextDirection.RightToLeft,m=s.useState(new Lt(0)),b=m[0],y=m[1],A=s.useRef(""),C=T();return s.useEffect((function(){A.current="",y(new Lt(0));var e=new l.PDFWorker({name:"PDFWorker_".concat(Date.now())}),i=Object.assign({httpHeaders:o,withCredentials:p,worker:e},"string"==typeof n?{url:n}:{data:n},r?{cMapUrl:r.url,cMapPacked:r.isCompressed}:{}),a=d?d(i):i,s=l.getDocument(a);return s.onPassword=function(e,r){switch(r){case l.PasswordResponses.NEED_PASSWORD:C.current&&y(new It(e,t.PasswordStatus.RequiredPassword));break;case l.PasswordResponses.INCORRECT_PASSWORD:C.current&&y(new It(e,t.PasswordStatus.WrongPassword))}},s.onProgress=function(e){var t=e.total>0?Math.min(100,100*e.loaded/e.total):100;C.current&&""===A.current&&y(new Lt(t))},s.promise.then((function(e){A.current=e.loadingTask.docId,C.current&&y(new jt(e))}),(function(t){return C.current&&!e.destroyed&&y(new Bt({message:t.message||"Cannot load document",name:t.name}))})),function(){s.destroy(),e.destroy()}}),[n]),b instanceof It?s.createElement(Dt,{passwordStatus:b.passwordStatus,renderProtectedView:u,verifyPassword:b.verifyPassword,onDocumentAskPassword:f}):b instanceof jt?i(b.doc):b instanceof Bt?a?a(b.error):s.createElement("div",{className:v({"rpv-core__doc-error":!0,"rpv-core__doc-error--rtl":g})},s.createElement("div",{className:"rpv-core__doc-error-text"},b.error.message)):s.createElement("div",{"data-testid":"core__doc-loading",className:v({"rpv-core__doc-loading":!0,"rpv-core__doc-loading--rtl":g})},c?c(b.percentages):s.createElement(_,null))},Nt=function(e){return{startPage:e.startPage-3,endPage:e.endPage+3}};t.Button=function(e){var r=e.children,n=e.testId,o=e.onClick,i=s.useContext(h).direction===t.TextDirection.RightToLeft,a=n?{"data-testid":n}:{};return s.createElement("button",p({className:v({"rpv-core__button":!0,"rpv-core__button--rtl":i}),type:"button",onClick:o},a),r)},t.Icon=b,t.LazyRender=function(e){var t=e.attrs,r=e.children,n=e.testId,o=s.useState(!1),i=o[0],a=o[1],l=n?p(p({},t),{"data-testid":n}):t,c=m({once:!0,onVisibilityChanged:function(e){e.isVisible&&a(!0)}});return s.createElement("div",p({ref:c},l),i&&r)},t.LocalizationContext=Z,t.Menu=function(e){var r=e.children,n=s.useRef(),o=s.useRef([]),i=s.useContext(h).direction===t.TextDirection.RightToLeft,a=function(e){if(n.current)switch(e.key){case"Tab":e.preventDefault();break;case"ArrowDown":e.preventDefault(),l((function(e,t){return t+1}));break;case"ArrowUp":e.preventDefault(),l((function(e,t){return t-1}));break;case"End":e.preventDefault(),l((function(e,t){return e.length-1}));break;case"Home":e.preventDefault(),l((function(e,t){return 0}))}},l=function(e){if(n.current){var t=o.current,r=t.findIndex((function(e){return"0"===e.getAttribute("tabindex")})),i=Math.min(t.length-1,Math.max(0,e(t,r)));r>=0&&r<=t.length-1&&t[r].setAttribute("tabindex","-1"),t[i].setAttribute("tabindex","0"),t[i].focus()}};return g((function(){var e=n.current;if(e){var t=function(e){var t=[];return e.querySelectorAll('.rpv-core__menu-item[role="menuitem"]').forEach((function(r){if(r instanceof HTMLElement){var n=r.parentElement;(n===e||"none"!==window.getComputedStyle(n).display)&&t.push(r)}})),t}(e);o.current=t}}),[]),g((function(){return document.addEventListener("keydown",a),function(){document.removeEventListener("keydown",a)}}),[]),s.createElement("div",{ref:n,"aria-orientation":"vertical",className:v({"rpv-core__menu":!0,"rpv-core__menu--rtl":i}),role:"menu",tabIndex:0},r)},t.MenuDivider=function(){return s.createElement("div",{"aria-orientation":"horizontal",className:"rpv-core__menu-divider",role:"separator"})},t.MenuItem=function(e){var r=e.checked,n=void 0!==r&&r,o=e.children,i=e.icon,a=void 0===i?null:i,l=e.isDisabled,c=void 0!==l&&l,u=e.testId,d=e.onClick,f=s.useContext(h).direction===t.TextDirection.RightToLeft,g=u?{"data-testid":u}:{};return s.createElement("button",p({className:v({"rpv-core__menu-item":!0,"rpv-core__menu-item--disabled":c,"rpv-core__menu-item--ltr":!f,"rpv-core__menu-item--rtl":f}),role:"menuitem",tabIndex:-1,type:"button",onClick:d},g),s.createElement("div",{className:v({"rpv-core__menu-item-icon":!0,"rpv-core__menu-item-icon--ltr":!f,"rpv-core__menu-item-icon--rtl":f})},a),s.createElement("div",{className:v({"rpv-core__menu-item-label":!0,"rpv-core__menu-item-label--ltr":!f,"rpv-core__menu-item-label--rtl":f})},o),s.createElement("div",{className:v({"rpv-core__menu-item-check":!0,"rpv-core__menu-item-check--ltr":!f,"rpv-core__menu-item-check--rtl":f})},n&&s.createElement(y,null)))},t.MinimalButton=function(e){var r=e.ariaLabel,n=void 0===r?"":r,o=e.ariaKeyShortcuts,i=void 0===o?"":o,a=e.children,l=e.isDisabled,c=void 0!==l&&l,u=e.isSelected,d=void 0!==u&&u,f=e.testId,g=e.onClick,m=s.useContext(h).direction===t.TextDirection.RightToLeft,b=f?{"data-testid":f}:{};return s.createElement("button",p({"aria-label":n},i&&{"aria-keyshortcuts":i},c&&{"aria-disabled":!0},{className:v({"rpv-core__minimal-button":!0,"rpv-core__minimal-button--disabled":c,"rpv-core__minimal-button--rtl":m,"rpv-core__minimal-button--selected":d}),type:"button",onClick:g},b),a)},t.Modal=function(e){var t=e.ariaControlsSuffix,r=e.closeOnClickOutside,n=e.closeOnEscape,o=e.content,i=e.isOpened,a=void 0!==i&&i,l=e.target,c=t||"".concat(G());return s.createElement(K,{target:l?function(e,t){return s.createElement("div",{"aria-expanded":t?"true":"false","aria-haspopup":"dialog","aria-controls":"rpv-core__modal-body-".concat(c)},l(e,t))}:null,content:function(e){return s.createElement(q,null,s.createElement(U,{ariaControlsSuffix:c,closeOnClickOutside:r,closeOnEscape:n,onToggle:e},o(e)))},isOpened:a})},t.Popover=function(e){var t=e.ariaHasPopup,r=void 0===t?"dialog":t,n=e.ariaControlsSuffix,o=e.closeOnClickOutside,i=e.closeOnEscape,a=e.content,l=e.lockScroll,c=void 0===l||l,u=e.offset,d=e.position,p=e.target,f=H(!1),h=f.opened,v=f.toggle,g=s.useRef(),m=s.useMemo((function(){return n||"".concat(G())}),[]);return s.createElement("div",{ref:g,"aria-expanded":h?"true":"false","aria-haspopup":r,"aria-controls":"rpv-core__popver-body-".concat(m)},p(v,h),h&&s.createElement(s.Fragment,null,c&&s.createElement(ae,{closeOnEscape:i,onClose:v}),s.createElement(ie,{ariaControlsSuffix:m,closeOnClickOutside:o,offset:u,position:d,targetRef:g,onClose:v},a(v))))},t.PrimaryButton=A,t.ProgressBar=function(e){var r=e.progress,n=s.useContext(h).direction===t.TextDirection.RightToLeft;return s.createElement("div",{className:v({"rpv-core__progress-bar":!0,"rpv-core__progress-bar--rtl":n})},s.createElement("div",{className:"rpv-core__progress-bar-progress",style:{width:"".concat(r,"%")}},r,"%"))},t.Separator=function(){return s.createElement("div",{className:"rpv-core__separator"})},t.Spinner=_,t.Splitter=function(e){var r=e.constrain,n=s.useContext(h).direction===t.TextDirection.RightToLeft,o=s.useRef(),i=s.useRef(),a=s.useRef(),l=s.useRef(0),c=s.useRef(0),u=s.useRef(0),d=s.useRef(0),p={capture:!0},f=function(e){var t=o.current,s=i.current,c=a.current;if(t&&s&&c){var p=d.current,f=e.clientX-l.current,h=u.current+(n?-f:f),v=t.parentElement.getBoundingClientRect().width,g=100*h/v;if(t.classList.add("rpv-core__splitter--resizing"),r){var m=v-h-p;if(!r({firstHalfPercentage:g,firstHalfSize:h,secondHalfPercentage:100*m/v,secondHalfSize:m}))return}s.style.width="".concat(g,"%"),document.body.classList.add("rpv-core__splitter-body--resizing"),s.classList.add("rpv-core__splitter-sibling--resizing"),c.classList.add("rpv-core__splitter-sibling--resizing")}},v=function e(t){var r=o.current,n=i.current,s=a.current;r&&n&&s&&(document.body.classList.remove("rpv-core__splitter-body--resizing"),r.classList.remove("rpv-core__splitter--resizing"),n.classList.remove("rpv-core__splitter-sibling--resizing"),s.classList.remove("rpv-core__splitter-sibling--resizing"),document.removeEventListener("mousemove",f,p),document.removeEventListener("mouseup",e,p))};return s.useEffect((function(){var e=o.current;e&&(d.current=e.getBoundingClientRect().width,i.current=e.previousElementSibling,a.current=e.nextElementSibling)}),[]),s.createElement("div",{ref:o,className:"rpv-core__splitter",onMouseDown:function(e){var t=i.current;t&&(l.current=e.clientX,c.current=e.clientY,u.current=t.getBoundingClientRect().width,document.addEventListener("mousemove",f,p),document.addEventListener("mouseup",v,p))}})},t.TextBox=C,t.ThemeContext=h,t.Tooltip=function(e){var r=e.ariaControlsSuffix,n=e.content,o=e.offset,i=e.position,a=e.target,l=H(!1),c=l.opened,u=l.toggle,d=s.useRef(),p=s.useRef(),f=s.useMemo((function(){return r||"".concat(G())}),[]);W((function(){d.current&&document.activeElement&&d.current.contains(document.activeElement)&&v()}));var h=function(){u(t.ToggleStatus.Open)},v=function(){u(t.ToggleStatus.Close)};return s.createElement(s.Fragment,null,s.createElement("div",{ref:d,"aria-describedby":"rpv-core__tooltip-body-".concat(f),onBlur:function(e){e.relatedTarget instanceof HTMLElement&&e.currentTarget.parentElement&&e.currentTarget.parentElement.contains(e.relatedTarget)?p.current&&(p.current.style.display="none"):v()},onFocus:h,onMouseEnter:h,onMouseLeave:v},a),c&&s.createElement(se,{ariaControlsSuffix:f,contentRef:p,offset:o,position:i,targetRef:d},n()))},t.Viewer=function(e){var r=e.characterMap,n=e.defaultScale,o=e.enableSmoothScroll,i=void 0===o||o,a=e.fileUrl,l=e.httpHeaders,c=void 0===l?{}:l,u=e.initialPage,d=void 0===u?0:u,p=e.pageLayout,f=e.initialRotation,v=void 0===f?0:f,g=e.localization,b=e.plugins,y=void 0===b?[]:b,A=e.renderError,_=e.renderLoader,C=e.renderPage,w=e.renderProtectedView,x=e.scrollMode,k=void 0===x?t.ScrollMode.Vertical:x,S=e.setRenderRange,P=void 0===S?Nt:S,E=e.transformGetDocumentParams,O=e.theme,M=void 0===O?{direction:t.TextDirection.LeftToRight,theme:"light"}:O,F=e.viewMode,R=void 0===F?t.ViewMode.SinglePage:F,T=e.withCredentials,D=void 0!==T&&T,j=e.onDocumentAskPassword,B=e.onDocumentLoad,N=void 0===B?function(){}:B,G=e.onPageChange,z=void 0===G?function(){}:G,W=e.onRotate,U=void 0===W?function(){}:W,q=e.onRotatePage,V=void 0===q?function(){}:q,H=e.onSwitchTheme,K=void 0===H?function(){}:H,Y=e.onZoom,$=void 0===Y?function(){}:Y,X=s.useState({data:a,name:"string"==typeof a?a:"",shouldLoad:!1}),Q=X[0],J=X[1],ee=function(e,t){J({data:t,name:e,shouldLoad:!0})},te=s.useState(!1),re=te[0],ne=te[1],oe=I(Q);s.useEffect((function(){var e,t,r,n;e=oe.data,n=typeof(t=a),"string"===(r=typeof e)&&"string"===n&&e===t||"object"===r&&"object"===n&&e.length===t.length&&e.every((function(e,r){return e===t[r]}))||J({data:a,name:"string"==typeof a?a:"",shouldLoad:re})}),[a,re]);var ie=m({onVisibilityChanged:function(e){ne(e.isVisible),e.isVisible&&J((function(e){return Object.assign({},e,{shouldLoad:!0})}))}}),ae="string"==typeof M?{direction:t.TextDirection.LeftToRight,theme:M}:M,se=s.useState(g||L),le=se[0],ce=se[1],ue={l10n:le,setL10n:ce},de=Object.assign({},{direction:ae.direction},function(e,t){var r=s.useMemo((function(){return"auto"===e?"undefined"!=typeof window&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":e}),[]),n=s.useState(r),o=n[0],i=n[1],a=I(o);return s.useEffect((function(){if("auto"===e){var t=window.matchMedia("(prefers-color-scheme: dark)"),r=function(e){i(e.matches?"dark":"light")};return t.addEventListener("change",r),function(){return t.removeEventListener("change",r)}}}),[]),s.useEffect((function(){o!==a&&t&&t(o)}),[o]),s.useEffect((function(){e!==o&&i(e)}),[e]),{currentTheme:o,setCurrentTheme:i}}(ae.theme||"light",K));return s.useEffect((function(){g&&ce(g)}),[g]),s.createElement(Z.Provider,{value:ue},s.createElement(h.Provider,{value:de},s.createElement("div",{ref:ie,className:"rpv-core__viewer rpv-core__viewer--".concat(de.currentTheme),"data-testid":"core__viewer",style:{height:"100%",width:"100%"}},Q.shouldLoad&&s.createElement(Zt,{characterMap:r,file:Q.data,httpHeaders:c,render:function(e){return s.createElement(Rt,{defaultScale:n,doc:e,render:function(r,o){return s.createElement(Mt,{currentFile:{data:Q.data,name:Q.name},defaultScale:n,doc:e,enableSmoothScroll:i,initialPage:d,initialRotation:v,initialScale:o,pageLayout:p,pageSizes:r,plugins:y,renderPage:C,scrollMode:k,setRenderRange:P,viewMode:R,viewerState:{file:Q,fullScreenMode:t.FullScreenMode.Normal,pageIndex:-1,pageHeight:r[0].pageHeight,pageWidth:r[0].pageWidth,pagesRotation:new Map,rotation:v,scale:o,scrollMode:k,viewMode:R},onDocumentLoad:N,onOpenFile:ee,onPageChange:z,onRotate:U,onRotatePage:V,onZoom:$})},scrollMode:k,viewMode:R})},renderError:A,renderLoader:_,renderProtectedView:w,transformGetDocumentParams:E,withCredentials:D,onDocumentAskPassword:j}))))},t.Worker=function(e){var t=e.children,r=e.workerUrl;return l.GlobalWorkerOptions.workerSrc=r,s.createElement(s.Fragment,null,t)},t.chunk=ce,t.classNames=v,t.createStore=function(e){var t=e||{},r={},n=function(e,n){var o;t=p(p({},t),((o={})[e]=n,o)),(r[e]||[]).forEach((function(r){return r(t[e])}))},o=function(e){return t[e]};return{subscribe:function(e,t){r[e]=(r[e]||[]).concat(t)},unsubscribe:function(e,t){r[e]=(r[e]||[]).filter((function(e){return e!==t}))},update:function(e,t){n(e,t)},updateCurrentValue:function(e,t){var r=o(e);void 0!==r&&n(e,t(r))},get:function(e){return o(e)}}},t.getDestination=ge,t.getPage=ve,t.isFullScreenEnabled=O,t.isMac=function(){return"undefined"!=typeof window&&/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform)},t.useDebounceCallback=R,t.useIntersectionObserver=m,t.useIsMounted=T,t.useIsomorphicLayoutEffect=g,t.usePrevious=I,t.useRenderQueue=B},20422:function(e,t,r){"use strict";e.exports=r(85042)},83597:function(e,t,r){"use strict";var n=r(20422);var o=function(e){var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}(r(21914)),i=function(){return o.createElement(n.Icon,{size:16},o.createElement("path",{d:"M5.5,11.5c-.275,0-.341.159-.146.354l6.292,6.293a.5.5,0,0,0,.709,0l6.311-6.275c.2-.193.13-.353-.145-.355L15.5,11.5V1.5a1,1,0,0,0-1-1h-5a1,1,0,0,0-1,1V11a.5.5,0,0,1-.5.5Z"}),o.createElement("path",{d:"M23.5,18.5v4a1,1,0,0,1-1,1H1.5a1,1,0,0,1-1-1v-4"}))},a=function(){return a=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]=200&&e.status<=299},F=function(e){return/ion\/(vnd\.api\+)?json/.test(e.get("content-type")||"")};function R(e){if(!(0,i.PO)(e))return e;for(var t=y({},e),r=0,n=Object.entries(t);r=u)}var h=(0,i.hg)(r+"/executeQuery",p,{getPendingMeta:function(){var e;return(e={startedTimeStamp:Date.now()})[i.s4]=!0,e},condition:function(e,t){var n,o,i,a=(0,t.getState)(),l=null==(o=null==(n=a[r])?void 0:n.queries)?void 0:o[e.queryCacheKey],c=null==l?void 0:l.fulfilledTimeStamp,u=e.originalArgs,d=null==l?void 0:l.originalArgs,p=s[e.endpointName];return!!V(e)||"pending"!==(null==l?void 0:l.status)&&(!!f(e,a)||!(!G(p)||!(null==(i=null==p?void 0:p.forceRefetch)?void 0:i.call(p,{currentArg:u,previousArg:d,endpointState:l,state:a})))||!c)},dispatchConditionRejection:!0}),v=(0,i.hg)(r+"/executeMutation",p,{getPendingMeta:function(){var e;return(e={startedTimeStamp:Date.now()})[i.s4]=!0,e}});function g(e){return function(t){var r,n;return(null==(n=null==(r=null==t?void 0:t.meta)?void 0:r.arg)?void 0:n.endpointName)===e}}return{queryThunk:h,mutationThunk:v,prefetch:function(e,t,r){return function(n,o){var i=function(e){return"force"in e}(r)&&r.force,a=function(e){return"ifOlderThan"in e}(r)&&r.ifOlderThan,s=function(r){return void 0===r&&(r=!0),c.endpoints[e].initiate(t,{forceRefetch:r})},l=c.endpoints[e].select(t)(o());if(i)n(s());else if(a){var u=null==l?void 0:l.fulfilledTimeStamp;if(!u)return void n(s());(Number(new Date)-Number(new Date(u)))/1e3>=a&&n(s())}else n(s(!1))}},updateQueryData:function(e,t,r,o){return void 0===o&&(o=!0),function(i,s){var l,u,d,p=c.endpoints[e].select(t)(s()),f={patches:[],inversePatches:[],undo:function(){return i(c.util.patchQueryData(e,t,f.inversePatches,o))}};if(p.status===n.uninitialized)return f;if("data"in p)if((0,a.o$)(p.data)){var h=(0,a.aS)(p.data,r),v=h[0],g=h[1],m=h[2];(l=f.patches).push.apply(l,g),(u=f.inversePatches).push.apply(u,m),d=v}else d=r(p.data),f.patches.push({op:"replace",path:[],value:d}),f.inversePatches.push({op:"replace",path:[],value:p.data});return i(c.util.patchQueryData(e,t,f.patches,o)),f}},upsertQueryData:function(e,t,r){return function(n){var o;return n(c.endpoints[e].initiate(t,((o={subscribe:!1,forceRefetch:!0})[q]=function(){return{data:r}},o)))}},patchQueryData:function(e,t,r,n){return function(o,i){var a=s[e],u=l({queryArgs:t,endpointDefinition:a,endpointName:e});if(o(c.internalActions.queryResultPatched({queryCacheKey:u,patches:r})),n){var p=c.endpoints[e].select(t)(i()),f=z(a.providesTags,p.data,void 0,t,{},d);o(c.internalActions.updateProvidedBy({queryCacheKey:u,providedTags:f}))}}},buildMatchThunkActions:function(e,t){return{matchPending:(0,i.A6)((0,i.zR)(e),g(t)),matchFulfilled:(0,i.A6)((0,i.KD)(e),g(t)),matchRejected:(0,i.A6)((0,i.Iv)(e),g(t))}}}}({baseQuery:o,reducerPath:s,context:r,api:e,serializeQueryArgs:l,assertTagType:v}),m=g.queryThunk,b=g.mutationThunk,y=g.patchQueryData,A=g.updateQueryData,_=g.upsertQueryData,w=g.prefetch,x=g.buildMatchThunkActions,k=J({context:r,queryThunk:m,mutationThunk:b,reducerPath:s,assertTagType:v,config:{refetchOnFocus:f,refetchOnReconnect:h,refetchOnMountOrArgChange:p,keepUnusedDataFor:c,reducerPath:s}}),S=k.reducer,P=k.actions;ye(e.util,{patchQueryData:y,updateQueryData:A,upsertQueryData:_,prefetch:w,resetApiState:P.resetApiState}),ye(e.internalActions,P);var E=be({reducerPath:s,context:r,queryThunk:m,mutationThunk:b,api:e,assertTagType:v}),O=E.middleware,M=E.actions;ye(e.util,M),ye(e,{reducer:S,middleware:O});var F=oe({serializeQueryArgs:l,reducerPath:s}),R=F.buildQuerySelector,T=F.buildMutationSelector,j=F.selectInvalidatedBy;ye(e.util,{selectInvalidatedBy:j});var W=function(e){var t=e.serializeQueryArgs,r=e.queryThunk,n=e.mutationThunk,o=e.api,i=e.context,a=new Map,s=new Map,l=o.internalActions,c=l.unsubscribeQueryResult,p=l.removeMutationResult,f=l.updateSubscriptionOptions;return{buildInitiateQuery:function(e,n){return function i(s,l){var d=void 0===l?{}:l,p=d.subscribe,v=void 0===p||p,g=d.forceRefetch,m=d.subscriptionOptions,b=d[q];return function(l,d){var p,y,A=t({queryArgs:s,endpointDefinition:n,endpointName:e}),_=r(((p={type:"query",subscribe:v,forceRefetch:g,subscriptionOptions:m,endpointName:e,originalArgs:s,queryCacheKey:A})[q]=b,p)),w=o.endpoints[e].select(s),x=l(_),k=w(d());h(l);var S=x.requestId,P=x.abort,E=k.requestId!==S,O=null==(y=a.get(l))?void 0:y[A],M=function(){return w(d())},F=Object.assign(b?x.then(M):E&&!O?Promise.resolve(k):Promise.all([O,x]).then(M),{arg:s,requestId:S,subscriptionOptions:m,queryCacheKey:A,abort:P,unwrap:function(){return C(this,null,(function(){var e;return u(this,(function(t){switch(t.label){case 0:return[4,F];case 1:if((e=t.sent()).isError)throw e.error;return[2,e.data]}}))}))},refetch:function(){return l(i(s,{subscribe:!1,forceRefetch:!0}))},unsubscribe:function(){v&&l(c({queryCacheKey:A,requestId:S}))},updateSubscriptionOptions:function(t){F.subscriptionOptions=t,l(f({endpointName:e,requestId:S,queryCacheKey:A,options:t}))}});if(!O&&!E&&!b){var R=a.get(l)||{};R[A]=F,a.set(l,R),F.then((function(){delete R[A],Object.keys(R).length||a.delete(l)}))}return F}}},buildInitiateMutation:function(e){return function(t,r){var o=void 0===r?{}:r,i=o.track,a=void 0===i||i,l=o.fixedCacheKey;return function(r,o){var i=n({type:"mutation",endpointName:e,originalArgs:t,track:a,fixedCacheKey:l}),c=r(i);h(r);var u=c.requestId,d=c.abort,f=c.unwrap,v=c.unwrap().then((function(e){return{data:e}})).catch((function(e){return{error:e}})),g=function(){r(p({requestId:u,fixedCacheKey:l}))},m=Object.assign(v,{arg:c.arg,requestId:u,abort:d,unwrap:f,unsubscribe:g,reset:g}),b=s.get(r)||{};return s.set(r,b),b[u]=m,m.then((function(){delete b[u],Object.keys(b).length||s.delete(r)})),l&&(b[l]=m,m.then((function(){b[l]===m&&(delete b[l],Object.keys(b).length||s.delete(r))}))),m}}},getRunningQueryThunk:function(e,r){return function(n){var o,s=i.endpointDefinitions[e],l=t({queryArgs:r,endpointDefinition:s,endpointName:e});return null==(o=a.get(n))?void 0:o[l]}},getRunningMutationThunk:function(e,t){return function(e){var r;return null==(r=s.get(e))?void 0:r[t]}},getRunningQueriesThunk:function(){return function(e){return Object.values(a.get(e)||{}).filter(U)}},getRunningMutationsThunk:function(){return function(e){return Object.values(s.get(e)||{}).filter(U)}},getRunningOperationPromises:function(){var e=function(e){return Array.from(e.values()).flatMap((function(e){return e?Object.values(e):[]}))};return d(d([],e(a)),e(s)).filter(U)},removalWarning:function(){throw new Error("This method had to be removed due to a conceptual bug in RTK.\n Please see https://github.com/reduxjs/redux-toolkit/pull/2481 for details.\n See https://redux-toolkit.js.org/rtk-query/usage/server-side-rendering for new guidance on SSR.")}};function h(e){}}({queryThunk:m,mutationThunk:b,api:e,serializeQueryArgs:l,context:r}),K=W.buildInitiateQuery,Y=W.buildInitiateMutation,$=W.getRunningMutationThunk,X=W.getRunningMutationsThunk,Q=W.getRunningQueriesThunk,ee=W.getRunningQueryThunk,te=W.getRunningOperationPromises,re=W.removalWarning;return ye(e.util,{getRunningOperationPromises:te,getRunningOperationPromise:re,getRunningMutationThunk:$,getRunningMutationsThunk:X,getRunningQueryThunk:ee,getRunningQueriesThunk:Q}),{name:Ae,injectEndpoint:function(t,r){var n,o=e;null!=(n=o.endpoints)[t]||(n[t]={}),G(r)?ye(o.endpoints[t],{name:t,select:R(t,r),initiate:K(t,r)},x(m,t)):function(e){return e.type===D.mutation}(r)&&ye(o.endpoints[t],{name:t,select:T(),initiate:Y(t)},x(b,t))}}}}};_e()},37260:function(e,t,r){"use strict";r.d(t,{s4:function(){return Q},xC:function(){return M},PH:function(){return x},hg:function(){return L},oM:function(){return R},A6:function(){return z},Q:function(){return G},Gx:function(){return Y},KD:function(){return K},zR:function(){return q},PO:function(){return C},Iv:function(){return V},h_:function(){return H},x0:function(){return T},cw:function(){return J}});var n=r(59463),o=r(10348);function i(e){return function(t){var r=t.dispatch,n=t.getState;return function(t){return function(o){return"function"===typeof o?o(r,n,e):t(o)}}}}var a=i();a.withExtraArgument=i;var s=a,l=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),c=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]-1;return r&&n}function U(e){return"function"===typeof e[0]&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function q(){for(var e=[],t=0;t-1};function c(e){if("string"!==typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function u(e){return"string"!==typeof e&&(e=String(e)),e}function d(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return n&&(t[Symbol.iterator]=function(){return t}),t}function p(e){this.map={},e instanceof p?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function f(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function h(e){return new Promise((function(t,r){e.onload=function(){t(e.result)},e.onerror=function(){r(e.error)}}))}function v(e){var t=new FileReader,r=h(t);return t.readAsArrayBuffer(e),r}function g(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function m(){return this.bodyUsed=!1,this._initBody=function(e){var t;this._bodyInit=e,e?"string"===typeof e?this._bodyText=e:o&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:i&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:r&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():a&&o&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=g(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a&&(ArrayBuffer.prototype.isPrototypeOf(e)||l(e))?this._bodyArrayBuffer=g(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"===typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):r&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o&&(this.blob=function(){var e=f(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?f(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(v)}),this.text=function(){var e=f(this);if(e)return e;if(this._bodyBlob)return function(e){var t=new FileReader,r=h(t);return t.readAsText(e),r}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),n=0;n-1?t:e}(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(r)}function A(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var r=e.split("="),n=r.shift().replace(/\+/g," "),o=r.join("=").replace(/\+/g," ");t.append(decodeURIComponent(n),decodeURIComponent(o))}})),t}function _(e){var t=new p;return e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(e){var r=e.split(":"),n=r.shift().trim();if(n){var o=r.join(":").trim();t.append(n,o)}})),t}function C(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new p(t.headers),this.url=t.url||"",this._initBody(e)}y.prototype.clone=function(){return new y(this,{body:this._bodyInit})},m.call(y.prototype),m.call(C.prototype),C.prototype.clone=function(){return new C(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new p(this.headers),url:this.url})},C.error=function(){var e=new C(null,{status:0,statusText:""});return e.type="error",e};var w=[301,302,303,307,308];C.redirect=function(e,t){if(-1===w.indexOf(t))throw new RangeError("Invalid status code");return new C(null,{status:t,headers:{location:e}})},t.DOMException=e.DOMException;try{new t.DOMException}catch(k){t.DOMException=function(e,t){this.message=e,this.name=t;var r=Error(e);this.stack=r.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function x(e,r){return new Promise((function(n,i){var a=new y(e,r);if(a.signal&&a.signal.aborted)return i(new t.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;function l(){s.abort()}s.onload=function(){var e={status:s.status,statusText:s.statusText,headers:_(s.getAllResponseHeaders()||"")};e.url="responseURL"in s?s.responseURL:e.headers.get("X-Request-URL");var t="response"in s?s.response:s.responseText;n(new C(t,e))},s.onerror=function(){i(new TypeError("Network request failed"))},s.ontimeout=function(){i(new TypeError("Network request failed"))},s.onabort=function(){i(new t.DOMException("Aborted","AbortError"))},s.open(a.method,a.url,!0),"include"===a.credentials?s.withCredentials=!0:"omit"===a.credentials&&(s.withCredentials=!1),"responseType"in s&&o&&(s.responseType="blob"),a.headers.forEach((function(e,t){s.setRequestHeader(t,e)})),a.signal&&(a.signal.addEventListener("abort",l),s.onreadystatechange=function(){4===s.readyState&&a.signal.removeEventListener("abort",l)}),s.send("undefined"===typeof a._bodyInit?null:a._bodyInit)}))}x.polyfill=!0,e.fetch||(e.fetch=x,e.Headers=p,e.Request=y,e.Response=C),t.Headers=p,t.Request=y,t.Response=C,t.fetch=x,Object.defineProperty(t,"__esModule",{value:!0})}({})}(n),n.fetch.ponyfill=!0,delete n.fetch.polyfill;var o=n;(t=o.fetch).default=o.fetch,t.fetch=o.fetch,t.Headers=o.Headers,t.Request=o.Request,t.Response=o.Response,e.exports=t},82856:function(e){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var r="",n="undefined"!==typeof t[5];return t[4]&&(r+="@supports (".concat(t[4],") {")),t[2]&&(r+="@media ".concat(t[2]," {")),n&&(r+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),r+=e(t),n&&(r+="}"),t[2]&&(r+="}"),t[4]&&(r+="}"),r})).join("")},t.i=function(e,r,n,o,i){"string"===typeof e&&(e=[[null,e,void 0]]);var a={};if(n)for(var s=0;s0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=i),r&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=r):u[2]=r),o&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=o):u[4]="".concat(o)),t.push(u))}},t}},56105:function(e){"use strict";e.exports=function(e){var t=e[1],r=e[3];if(!r)return t;if("function"===typeof btoa){var n=btoa(unescape(encodeURIComponent(JSON.stringify(r)))),o="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(n),i="/*# ".concat(o," */");return[t].concat([i]).join("\n")}return[t].join("\n")}},56259:function(e,t,r){"use strict";function n(e,t){if(t.length1?"s":"")+" required, but only "+t.length+" present")}r.d(t,{Z:function(){return n}})},87140:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}r.d(t,{Z:function(){return i}});var o=r(56259);function i(e){return(0,o.Z)(1,arguments),function(e){(0,o.Z)(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===n(e)&&"[object Date]"===t?new Date(e.getTime()):"number"===typeof e||"[object Number]"===t?new Date(e):("string"!==typeof e&&"[object String]"!==t||"undefined"===typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}(e).getTime()2)return r;/:/.test(n[0])?t=n[0]:(r.date=n[0],t=n[1],s.timeZoneDelimiter.test(r.date)&&(r.date=e.split(s.timeZoneDelimiter)[0],t=e.substr(r.date.length,e.length)));if(t){var o=s.timezone.exec(t);o?(r.time=t.replace(o[1],""),r.timezone=o[1]):r.time=t}return r}(e);if(g.date){var m=function(e,t){var r=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),n=e.match(r);if(!n)return{year:NaN,restDateString:""};var o=n[1]?parseInt(n[1]):null,i=n[2]?parseInt(n[2]):null;return{year:null===i?o:100*i,restDateString:e.slice((n[1]||n[2]).length)}}(g.date,a);v=function(e,t){if(null===t)return new Date(NaN);var r=e.match(l);if(!r)return new Date(NaN);var n=!!r[4],o=d(r[1]),i=d(r[2])-1,a=d(r[3]),s=d(r[4]),c=d(r[5])-1;if(n)return function(e,t,r){return t>=1&&t<=53&&r>=0&&r<=6}(0,s,c)?function(e,t,r){var n=new Date(0);n.setUTCFullYear(e,0,4);var o=n.getUTCDay()||7,i=7*(t-1)+r+1-o;return n.setUTCDate(n.getUTCDate()+i),n}(t,s,c):new Date(NaN);var u=new Date(0);return function(e,t,r){return t>=0&&t<=11&&r>=1&&r<=(f[t]||(h(e)?29:28))}(t,i,a)&&function(e,t){return t>=1&&t<=(h(e)?366:365)}(t,o)?(u.setUTCFullYear(t,i,Math.max(o,a)),u):new Date(NaN)}(m.restDateString,m.year)}if(!v||isNaN(v.getTime()))return new Date(NaN);var b,y=v.getTime(),A=0;if(g.time&&(A=function(e){var t=e.match(c);if(!t)return NaN;var r=p(t[1]),i=p(t[2]),a=p(t[3]);if(!function(e,t,r){if(24===e)return 0===t&&0===r;return r>=0&&r<60&&t>=0&&t<60&&e>=0&&e<25}(r,i,a))return NaN;return r*o+i*n+1e3*a}(g.time),isNaN(A)))return new Date(NaN);if(!g.timezone){var _=new Date(y+A),C=new Date(0);return C.setFullYear(_.getUTCFullYear(),_.getUTCMonth(),_.getUTCDate()),C.setHours(_.getUTCHours(),_.getUTCMinutes(),_.getUTCSeconds(),_.getUTCMilliseconds()),C}return b=function(e){if("Z"===e)return 0;var t=e.match(u);if(!t)return 0;var r="+"===t[1]?-1:1,i=parseInt(t[2]),a=t[3]&&parseInt(t[3])||0;if(!function(e,t){return t>=0&&t<=59}(0,a))return NaN;return r*(i*o+a*n)}(g.timezone),isNaN(b)?new Date(NaN):new Date(y+A+b)}var s={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},l=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,c=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,u=/^([+-])(\d{2})(?::?(\d{2}))?$/;function d(e){return e?parseInt(e):1}function p(e){return e&&parseFloat(e.replace(",","."))||0}var f=[31,null,31,30,31,30,31,31,30,31,30,31];function h(e){return e%400===0||e%4===0&&e%100!==0}},51148:function(e,t,r){"use strict";r.d(t,{Bc:function(){return Mn},gN:function(){return Cn},l0:function(){return wn},J9:function(){return mn},u6:function(){return rn}});var n=function(e){return function(e){return!!e&&"object"===typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===o}(e)}(e)};var o="function"===typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function i(e,t){return!1!==t.clone&&t.isMergeableObject(e)?s((r=e,Array.isArray(r)?[]:{}),e,t):e;var r}function a(e,t,r){return e.concat(t).map((function(e){return i(e,r)}))}function s(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||a,r.isMergeableObject=r.isMergeableObject||n;var o=Array.isArray(t);return o===Array.isArray(e)?o?r.arrayMerge(e,t,r):function(e,t,r){var n={};return r.isMergeableObject(e)&&Object.keys(e).forEach((function(t){n[t]=i(e[t],r)})),Object.keys(t).forEach((function(o){r.isMergeableObject(t[o])&&e[o]?n[o]=s(e[o],t[o],r):n[o]=i(t[o],r)})),n}(e,t,r):i(t,r)}s.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,r){return s(e,r,t)}),{})};var l=s,c="object"==typeof global&&global&&global.Object===Object&&global,u="object"==typeof self&&self&&self.Object===Object&&self,d=c||u||Function("return this")(),p=d.Symbol,f=Object.prototype,h=f.hasOwnProperty,v=f.toString,g=p?p.toStringTag:void 0;var m=function(e){var t=h.call(e,g),r=e[g];try{e[g]=void 0;var n=!0}catch(i){}var o=v.call(e);return n&&(t?e[g]=r:delete e[g]),o},b=Object.prototype.toString;var y=function(e){return b.call(e)},A=p?p.toStringTag:void 0;var _=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":A&&A in Object(e)?m(e):y(e)};var C=function(e,t){return function(r){return e(t(r))}},w=C(Object.getPrototypeOf,Object);var x=function(e){return null!=e&&"object"==typeof e},k=Function.prototype,S=Object.prototype,P=k.toString,E=S.hasOwnProperty,O=P.call(Object);var M=function(e){if(!x(e)||"[object Object]"!=_(e))return!1;var t=w(e);if(null===t)return!0;var r=E.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&P.call(r)==O},F=r(21914),R=r(42669),T=r.n(R);var I=function(e,t){};var D=function(){this.__data__=[],this.size=0};var j=function(e,t){return e===t||e!==e&&t!==t};var B=function(e,t){for(var r=e.length;r--;)if(j(e[r][0],t))return r;return-1},L=Array.prototype.splice;var Z=function(e){var t=this.__data__,r=B(t,e);return!(r<0)&&(r==t.length-1?t.pop():L.call(t,r,1),--this.size,!0)};var N=function(e){var t=this.__data__,r=B(t,e);return r<0?void 0:t[r][1]};var G=function(e){return B(this.__data__,e)>-1};var z=function(e,t){var r=this.__data__,n=B(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this};function W(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t-1&&e%1==0&&e-1&&e%1==0&&e<=9007199254740991},rt={};rt["[object Float32Array]"]=rt["[object Float64Array]"]=rt["[object Int8Array]"]=rt["[object Int16Array]"]=rt["[object Int32Array]"]=rt["[object Uint8Array]"]=rt["[object Uint8ClampedArray]"]=rt["[object Uint16Array]"]=rt["[object Uint32Array]"]=!0,rt["[object Arguments]"]=rt["[object Array]"]=rt["[object ArrayBuffer]"]=rt["[object Boolean]"]=rt["[object DataView]"]=rt["[object Date]"]=rt["[object Error]"]=rt["[object Function]"]=rt["[object Map]"]=rt["[object Number]"]=rt["[object Object]"]=rt["[object RegExp]"]=rt["[object Set]"]=rt["[object String]"]=rt["[object WeakMap]"]=!1;var nt=function(e){return x(e)&&tt(e.length)&&!!rt[_(e)]};var ot=function(e){return function(t){return e(t)}},it="object"==typeof exports&&exports&&!exports.nodeType&&exports,at=it&&"object"==typeof module&&module&&!module.nodeType&&module,st=at&&at.exports===it&&c.process,lt=function(){try{var e=at&&at.require&&at.require("util").types;return e||st&&st.binding&&st.binding("util")}catch(t){}}(),ct=lt&<.isTypedArray,ut=ct?ot(ct):nt,dt=Object.prototype.hasOwnProperty;var pt=function(e,t){var r=He(e),n=!r&&Ve(e),o=!r&&!n&&Qe(e),i=!r&&!n&&!o&&ut(e),a=r||n||o||i,s=a?Ne(e.length,String):[],l=s.length;for(var c in e)!t&&!dt.call(e,c)||a&&("length"==c||o&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||et(c,l))||s.push(c);return s},ft=Object.prototype;var ht=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||ft)},vt=C(Object.keys,Object),gt=Object.prototype.hasOwnProperty;var mt=function(e){if(!ht(e))return vt(e);var t=[];for(var r in Object(e))gt.call(e,r)&&"constructor"!=r&&t.push(r);return t};var bt=function(e){return null!=e&&tt(e.length)&&!$(e)};var yt=function(e){return bt(e)?pt(e):mt(e)};var At=function(e,t){return e&&Ze(t,yt(t),e)};var _t=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t},Ct=Object.prototype.hasOwnProperty;var wt=function(e){if(!Y(e))return _t(e);var t=ht(e),r=[];for(var n in e)("constructor"!=n||!t&&Ct.call(e,n))&&r.push(n);return r};var xt=function(e){return bt(e)?pt(e,!0):wt(e)};var kt=function(e,t){return e&&Ze(t,xt(t),e)},St="object"==typeof exports&&exports&&!exports.nodeType&&exports,Pt=St&&"object"==typeof module&&module&&!module.nodeType&&module,Et=Pt&&Pt.exports===St?d.Buffer:void 0,Ot=Et?Et.allocUnsafe:void 0;var Mt=function(e,t){if(t)return e.slice();var r=e.length,n=Ot?Ot(r):new e.constructor(r);return e.copy(n),n};var Ft=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r=0||(o[r]=e[r]);return o}function Qr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var Jr=(0,F.createContext)(void 0);Jr.displayName="FormikContext";var en=Jr.Provider,tn=Jr.Consumer;function rn(){var e=(0,F.useContext)(Jr);return e||I(!1),e}var nn=function(e){return Array.isArray(e)&&0===e.length},on=function(e){return"function"===typeof e},an=function(e){return null!==e&&"object"===typeof e},sn=function(e){return String(Math.floor(Number(e)))===e},ln=function(e){return"[object String]"===Object.prototype.toString.call(e)},cn=function(e){return 0===F.Children.count(e)},un=function(e){return an(e)&&on(e.then)};function dn(e,t,r,n){void 0===n&&(n=0);for(var o=qr(t);e&&n=0?[]:{}}}return(0===i?e:o)[a[i]]===r?e:(void 0===r?delete o[a[i]]:o[a[i]]=r,0===i&&void 0===r&&delete n[a[i]],n)}function fn(e,t,r,n){void 0===r&&(r=new WeakMap),void 0===n&&(n={});for(var o=0,i=Object.keys(e);o=r.length)break;i=r[o++]}else{if((o=r.next()).done)break;i=o.value}var a=i;dn(t,a.path)||(t=pn(t,a.path,a.message))}}return t}(r)):t(r)}))}))}),[f.validationSchema]),S=(0,F.useCallback)((function(e,t){return new Promise((function(r){return r(y.current[e].validate(t))}))}),[]),P=(0,F.useCallback)((function(e){var t=Object.keys(y.current).filter((function(e){return on(y.current[e].validate)})),r=t.length>0?t.map((function(t){return S(t,dn(e,t))})):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(r).then((function(e){return e.reduce((function(e,r,n){return"DO_NOT_DELETE_YOU_WILL_BE_FIRED"===r||r&&(e=pn(e,t[n],r)),e}),{})}))}),[S]),E=(0,F.useCallback)((function(e){return Promise.all([P(e),f.validationSchema?k(e):{},f.validate?x(e):{}]).then((function(e){var t=e[0],r=e[1],n=e[2];return l.all([t,r,n],{arrayMerge:yn})}))}),[f.validate,f.validationSchema,P,x,k]),O=_n((function(e){return void 0===e&&(e=C.values),w({type:"SET_ISVALIDATING",payload:!0}),E(e).then((function(e){return b.current&&(w({type:"SET_ISVALIDATING",payload:!1}),w({type:"SET_ERRORS",payload:e})),e}))}));(0,F.useEffect)((function(){a&&!0===b.current&&T()(h.current,f.initialValues)&&O(h.current)}),[a,O]);var M=(0,F.useCallback)((function(e){var t=e&&e.values?e.values:h.current,r=e&&e.errors?e.errors:v.current?v.current:f.initialErrors||{},n=e&&e.touched?e.touched:g.current?g.current:f.initialTouched||{},o=e&&e.status?e.status:m.current?m.current:f.initialStatus;h.current=t,v.current=r,g.current=n,m.current=o;var i=function(){w({type:"RESET_FORM",payload:{isSubmitting:!!e&&!!e.isSubmitting,errors:r,touched:n,status:o,values:t,isValidating:!!e&&!!e.isValidating,submitCount:e&&e.submitCount&&"number"===typeof e.submitCount?e.submitCount:0}})};if(f.onReset){var a=f.onReset(C.values,X);un(a)?a.then(i):i()}else i()}),[f.initialErrors,f.initialStatus,f.initialTouched,f.onReset]);(0,F.useEffect)((function(){!0!==b.current||T()(h.current,f.initialValues)||u&&(h.current=f.initialValues,M(),a&&O(h.current))}),[u,f.initialValues,M,a,O]),(0,F.useEffect)((function(){u&&!0===b.current&&!T()(v.current,f.initialErrors)&&(v.current=f.initialErrors||hn,w({type:"SET_ERRORS",payload:f.initialErrors||hn}))}),[u,f.initialErrors]),(0,F.useEffect)((function(){u&&!0===b.current&&!T()(g.current,f.initialTouched)&&(g.current=f.initialTouched||vn,w({type:"SET_TOUCHED",payload:f.initialTouched||vn}))}),[u,f.initialTouched]),(0,F.useEffect)((function(){u&&!0===b.current&&!T()(m.current,f.initialStatus)&&(m.current=f.initialStatus,w({type:"SET_STATUS",payload:f.initialStatus}))}),[u,f.initialStatus,f.initialTouched]);var R=_n((function(e){if(y.current[e]&&on(y.current[e].validate)){var t=dn(C.values,e),r=y.current[e].validate(t);return un(r)?(w({type:"SET_ISVALIDATING",payload:!0}),r.then((function(e){return e})).then((function(t){w({type:"SET_FIELD_ERROR",payload:{field:e,value:t}}),w({type:"SET_ISVALIDATING",payload:!1})}))):(w({type:"SET_FIELD_ERROR",payload:{field:e,value:r}}),Promise.resolve(r))}return f.validationSchema?(w({type:"SET_ISVALIDATING",payload:!0}),k(C.values,e).then((function(e){return e})).then((function(t){w({type:"SET_FIELD_ERROR",payload:{field:e,value:dn(t,e)}}),w({type:"SET_ISVALIDATING",payload:!1})}))):Promise.resolve()})),I=(0,F.useCallback)((function(e,t){var r=t.validate;y.current[e]={validate:r}}),[]),D=(0,F.useCallback)((function(e){delete y.current[e]}),[]),j=_n((function(e,t){return w({type:"SET_TOUCHED",payload:e}),(void 0===t?o:t)?O(C.values):Promise.resolve()})),B=(0,F.useCallback)((function(e){w({type:"SET_ERRORS",payload:e})}),[]),L=_n((function(e,t){var n=on(e)?e(C.values):e;return w({type:"SET_VALUES",payload:n}),(void 0===t?r:t)?O(n):Promise.resolve()})),Z=(0,F.useCallback)((function(e,t){w({type:"SET_FIELD_ERROR",payload:{field:e,value:t}})}),[]),N=_n((function(e,t,n){return w({type:"SET_FIELD_VALUE",payload:{field:e,value:t}}),(void 0===n?r:n)?O(pn(C.values,e,t)):Promise.resolve()})),G=(0,F.useCallback)((function(e,t){var r,n=t,o=e;if(!ln(e)){e.persist&&e.persist();var i=e.target?e.target:e.currentTarget,a=i.type,s=i.name,l=i.id,c=i.value,u=i.checked,d=(i.outerHTML,i.options),p=i.multiple;n=t||(s||l),o=/number|range/.test(a)?(r=parseFloat(c),isNaN(r)?"":r):/checkbox/.test(a)?function(e,t,r){if("boolean"===typeof e)return Boolean(t);var n=[],o=!1,i=-1;if(Array.isArray(e))n=e,o=(i=e.indexOf(r))>=0;else if(!r||"true"==r||"false"==r)return Boolean(t);if(t&&r&&!o)return n.concat(r);if(!o)return n;return n.slice(0,i).concat(n.slice(i+1))}(dn(C.values,n),u,c):d&&p?function(e){return Array.from(e).filter((function(e){return e.selected})).map((function(e){return e.value}))}(d):c}n&&N(n,o)}),[N,C.values]),z=_n((function(e){if(ln(e))return function(t){return G(t,e)};G(e)})),W=_n((function(e,t,r){return void 0===t&&(t=!0),w({type:"SET_FIELD_TOUCHED",payload:{field:e,value:t}}),(void 0===r?o:r)?O(C.values):Promise.resolve()})),U=(0,F.useCallback)((function(e,t){e.persist&&e.persist();var r=e.target,n=r.name,o=r.id,i=(r.outerHTML,t||(n||o));W(i,!0)}),[W]),q=_n((function(e){if(ln(e))return function(t){return U(t,e)};U(e)})),V=(0,F.useCallback)((function(e){on(e)?w({type:"SET_FORMIK_STATE",payload:e}):w({type:"SET_FORMIK_STATE",payload:function(){return e}})}),[]),H=(0,F.useCallback)((function(e){w({type:"SET_STATUS",payload:e})}),[]),K=(0,F.useCallback)((function(e){w({type:"SET_ISSUBMITTING",payload:e})}),[]),Y=_n((function(){return w({type:"SUBMIT_ATTEMPT"}),O().then((function(e){var t=e instanceof Error;if(!t&&0===Object.keys(e).length){var r;try{if(void 0===(r=Q()))return}catch(n){throw n}return Promise.resolve(r).then((function(e){return b.current&&w({type:"SUBMIT_SUCCESS"}),e})).catch((function(e){if(b.current)throw w({type:"SUBMIT_FAILURE"}),e}))}if(b.current&&(w({type:"SUBMIT_FAILURE"}),t))throw e}))})),$=_n((function(e){e&&e.preventDefault&&on(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&on(e.stopPropagation)&&e.stopPropagation(),Y().catch((function(e){console.warn("Warning: An unhandled error was caught from submitForm()",e)}))})),X={resetForm:M,validateForm:O,validateField:R,setErrors:B,setFieldError:Z,setFieldTouched:W,setFieldValue:N,setStatus:H,setSubmitting:K,setTouched:j,setValues:L,setFormikState:V,submitForm:Y},Q=_n((function(){return d(C.values,X)})),J=_n((function(e){e&&e.preventDefault&&on(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&on(e.stopPropagation)&&e.stopPropagation(),M()})),ee=(0,F.useCallback)((function(e){return{value:dn(C.values,e),error:dn(C.errors,e),touched:!!dn(C.touched,e),initialValue:dn(h.current,e),initialTouched:!!dn(g.current,e),initialError:dn(v.current,e)}}),[C.errors,C.touched,C.values]),te=(0,F.useCallback)((function(e){return{setValue:function(t,r){return N(e,t,r)},setTouched:function(t,r){return W(e,t,r)},setError:function(t){return Z(e,t)}}}),[N,W,Z]),re=(0,F.useCallback)((function(e){var t=an(e),r=t?e.name:e,n=dn(C.values,r),o={name:r,value:n,onChange:z,onBlur:q};if(t){var i=e.type,a=e.value,s=e.as,l=e.multiple;"checkbox"===i?void 0===a?o.checked=!!n:(o.checked=!(!Array.isArray(n)||!~n.indexOf(a)),o.value=a):"radio"===i?(o.checked=n===a,o.value=a):"select"===s&&l&&(o.value=o.value||[],o.multiple=!0)}return o}),[q,z,C.values]),ne=(0,F.useMemo)((function(){return!T()(h.current,C.values)}),[h.current,C.values]),oe=(0,F.useMemo)((function(){return"undefined"!==typeof s?ne?C.errors&&0===Object.keys(C.errors).length:!1!==s&&on(s)?s(f):s:C.errors&&0===Object.keys(C.errors).length}),[s,ne,C.errors,f]);return Yr({},C,{initialValues:h.current,initialErrors:v.current,initialTouched:g.current,initialStatus:m.current,handleBlur:q,handleChange:z,handleReset:J,handleSubmit:$,resetForm:M,setErrors:B,setFormikState:V,setFieldTouched:W,setFieldValue:N,setFieldError:Z,setStatus:H,setSubmitting:K,setTouched:j,setValues:L,submitForm:Y,validateForm:O,validateField:R,isValid:oe,dirty:ne,unregisterField:D,registerField:I,getFieldProps:re,getFieldMeta:ee,getFieldHelpers:te,validateOnBlur:o,validateOnChange:r,validateOnMount:a})}function mn(e){var t=gn(e),r=e.component,n=e.children,o=e.render,i=e.innerRef;return(0,F.useImperativeHandle)(i,(function(){return t})),(0,F.createElement)(en,{value:t},r?(0,F.createElement)(r,t):o?o(t):n?on(n)?n(t):cn(n)?null:F.Children.only(n):null)}function bn(e){var t=Array.isArray(e)?[]:{};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var n=String(r);!0===Array.isArray(e[n])?t[n]=e[n].map((function(e){return!0===Array.isArray(e)||M(e)?bn(e):""!==e?e:void 0})):M(e[n])?t[n]=bn(e[n]):t[n]=""!==e[n]?e[n]:void 0}return t}function yn(e,t,r){var n=e.slice();return t.forEach((function(t,o){if("undefined"===typeof n[o]){var i=!1!==r.clone&&r.isMergeableObject(t);n[o]=i?l(Array.isArray(t)?[]:{},t,r):t}else r.isMergeableObject(t)?n[o]=l(e[o],t,r):-1===e.indexOf(t)&&n.push(t)})),n}var An="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement?F.useLayoutEffect:F.useEffect;function _n(e){var t=(0,F.useRef)(e);return An((function(){t.current=e})),(0,F.useCallback)((function(){for(var e=arguments.length,r=new Array(e),n=0;ne?t:e}),0);return Array.from(Yr({},e,{length:t+1}))}return[]},Pn=function(e,t){var r="function"===typeof e?e:t;return function(e){if(Array.isArray(e)||an(e)){var t=Sn(e);return r(t)}return e}},En=function(e){function t(t){var r;return(r=e.call(this,t)||this).updateArrayField=function(e,t,n){var o=r.props,i=o.name;(0,o.formik.setFormikState)((function(r){var o=Pn(n,e),a=Pn(t,e),s=pn(r.values,i,e(dn(r.values,i))),l=n?o(dn(r.errors,i)):void 0,c=t?a(dn(r.touched,i)):void 0;return nn(l)&&(l=void 0),nn(c)&&(c=void 0),Yr({},r,{values:s,errors:n?pn(r.errors,i,l):r.errors,touched:t?pn(r.touched,i,c):r.touched})}))},r.push=function(e){return r.updateArrayField((function(t){return[].concat(Sn(t),[Kr(e)])}),!1,!1)},r.handlePush=function(e){return function(){return r.push(e)}},r.swap=function(e,t){return r.updateArrayField((function(r){return function(e,t,r){var n=Sn(e),o=n[t];return n[t]=n[r],n[r]=o,n}(r,e,t)}),!0,!0)},r.handleSwap=function(e,t){return function(){return r.swap(e,t)}},r.move=function(e,t){return r.updateArrayField((function(r){return function(e,t,r){var n=Sn(e),o=n[t];return n.splice(t,1),n.splice(r,0,o),n}(r,e,t)}),!0,!0)},r.handleMove=function(e,t){return function(){return r.move(e,t)}},r.insert=function(e,t){return r.updateArrayField((function(r){return kn(r,e,t)}),(function(t){return kn(t,e,null)}),(function(t){return kn(t,e,null)}))},r.handleInsert=function(e,t){return function(){return r.insert(e,t)}},r.replace=function(e,t){return r.updateArrayField((function(r){return function(e,t,r){var n=Sn(e);return n[t]=r,n}(r,e,t)}),!1,!1)},r.handleReplace=function(e,t){return function(){return r.replace(e,t)}},r.unshift=function(e){var t=-1;return r.updateArrayField((function(r){var n=r?[e].concat(r):[e];return t=n.length,n}),(function(e){return e?[null].concat(e):[null]}),(function(e){return e?[null].concat(e):[null]})),t},r.handleUnshift=function(e){return function(){return r.unshift(e)}},r.handleRemove=function(e){return function(){return r.remove(e)}},r.handlePop=function(){return function(){return r.pop()}},r.remove=r.remove.bind(Qr(r)),r.pop=r.pop.bind(Qr(r)),r}$r(t,e);var r=t.prototype;return r.componentDidUpdate=function(e){this.props.validateOnChange&&this.props.formik.validateOnChange&&!T()(dn(e.formik.values,e.name),dn(this.props.formik.values,this.props.name))&&this.props.formik.validateForm(this.props.formik.values)},r.remove=function(e){var t;return this.updateArrayField((function(r){var n=r?Sn(r):[];return t||(t=n[e]),on(n.splice)&&n.splice(e,1),on(n.every)&&n.every((function(e){return void 0===e}))?[]:n}),!0,!0),t},r.pop=function(){var e;return this.updateArrayField((function(t){var r=t.slice();return e||(e=r&&r.pop&&r.pop()),r}),!0,!0),e},r.render=function(){var e={push:this.push,pop:this.pop,swap:this.swap,move:this.move,insert:this.insert,replace:this.replace,unshift:this.unshift,remove:this.remove,handlePush:this.handlePush,handlePop:this.handlePop,handleSwap:this.handleSwap,handleMove:this.handleMove,handleInsert:this.handleInsert,handleReplace:this.handleReplace,handleUnshift:this.handleUnshift,handleRemove:this.handleRemove},t=this.props,r=t.component,n=t.render,o=t.children,i=t.name,a=Yr({},e,{form:Xr(t.formik,["validate","validationSchema"]),name:i});return r?(0,F.createElement)(r,a):n?n(a):o?"function"===typeof o?o(a):cn(o)?null:F.Children.only(o):null},t}(F.Component);En.defaultProps={validateOnChange:!0};var On=function(e){function t(){return e.apply(this,arguments)||this}$r(t,e);var r=t.prototype;return r.shouldComponentUpdate=function(e){return dn(this.props.formik.errors,this.props.name)!==dn(e.formik.errors,this.props.name)||dn(this.props.formik.touched,this.props.name)!==dn(e.formik.touched,this.props.name)||Object.keys(this.props).length!==Object.keys(e).length},r.render=function(){var e=this.props,t=e.component,r=e.formik,n=e.render,o=e.children,i=e.name,a=Xr(e,["component","formik","render","children","name"]),s=dn(r.touched,i),l=dn(r.errors,i);return s&&l?n?on(n)?n(l):null:o?on(o)?o(l):null:t?(0,F.createElement)(t,a,l):l:null},t}(F.Component),Mn=xn(On);F.Component},9778:function(e,t,r){"use strict";function n(){return n=Object.assign||function(e){for(var t=1;t=0&&(t.hash=e.substr(r),e=e.substr(0,r));var n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}(e):e,{state:t,key:Math.random().toString(36).substr(2,8)}))}function A(e,t){return[{usr:e.state,key:e.key,idx:t},b(e)]}function _(e,t,r){return!m.length||(m.call({action:e,location:t,retry:r}),!1)}function C(e){p=e;var t=u();h=t[0],v=t[1],g.call({action:p,location:v})}function w(e){c.go(e)}return null==h&&(h=0,c.replaceState(n({},c.state,{idx:h}),"")),{get action(){return p},get location(){return v},createHref:b,push:function e(t,n){var i=o.Push,a=y(t,n);if(_(i,a,(function(){e(t,n)}))){var s=A(a,h+1),l=s[0],u=s[1];try{c.pushState(l,"",u)}catch(d){r.location.assign(u)}C(i)}},replace:function e(t,r){var n=o.Replace,i=y(t,r);if(_(n,i,(function(){e(t,r)}))){var a=A(i,h),s=a[0],l=a[1];c.replaceState(s,"",l),C(n)}},go:w,back:function(){w(-1)},forward:function(){w(1)},listen:function(e){return g.push(e)},block:function(e){var t=m.push(e);return 1===m.length&&r.addEventListener(a,s),function(){t(),m.length||r.removeEventListener(a,s)}}}}()},69061:function(e,t,r){"use strict";var n;r.d(t,{aU:function(){return n}}),function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(n||(n={}))},77531:function(e,t,r){"use strict";var n=r(18625),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return n.isMemo(e)?a:s[e.$$typeof]||o}s[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[n.Memo]=a;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,r,n){if("string"!==typeof r){if(h){var o=f(r);o&&o!==h&&e(t,o,n)}var a=u(r);d&&(a=a.concat(d(r)));for(var s=l(t),v=l(r),g=0;g=400&&e<500)||400===e||408===e||429===e}},v=[],g=[],m=("undefined"!=typeof Uint8Array&&Uint8Array,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"),b=0;b<64;++b)v[b]=m[b],g[m.charCodeAt(b)]=b;function y(e,t,r){for(var n,o,i=[],a=t;a>18&63]+v[o>>12&63]+v[o>>6&63]+v[63&o]);return i.join("")}g["-".charCodeAt(0)]=62,g["_".charCodeAt(0)]=63;var A=function(e){for(var t,r=e.length,n=r%3,o=[],i=16383,a=0,s=r-n;as?s:a+i));return 1===n?(t=e[r-1],o.push(v[t>>2]+v[t<<4&63]+"==")):2===n&&(t=(e[r-2]<<8)+e[r-1],o.push(v[t>>10]+v[t>>4&63]+v[t<<2&63]+"=")),o.join("")},_=Array.isArray,C=Object.keys,w=Object.prototype.hasOwnProperty,x=function e(t,r){if(t===r)return!0;if(t&&r&&"object"==typeof t&&"object"==typeof r){var n,o,i,a=_(t),s=_(r);if(a&&s){if((o=t.length)!=r.length)return!1;for(n=o;0!=n--;)if(!e(t[n],r[n]))return!1;return!0}if(a!=s)return!1;var l=t instanceof Date,c=r instanceof Date;if(l!=c)return!1;if(l&&c)return t.getTime()==r.getTime();var u=t instanceof RegExp,d=r instanceof RegExp;if(u!=d)return!1;if(u&&d)return t.toString()==r.toString();var p=C(t);if((o=p.length)!==C(r).length)return!1;for(n=o;0!=n--;)if(!w.call(r,p[n]))return!1;for(n=o;0!=n--;)if(!e(t[i=p[n]],r[i]))return!1;return!0}return t!=t&&r!=r},k=["key","ip","country","email","firstName","lastName","avatar","name"];function S(e){var t=unescape(encodeURIComponent(e));return A(function(e){for(var t=[],r=0;ra(a({},e),t)),{})},getLDUserAgentString:function(e){var t=e.version||"?";return e.userAgent+"/"+t},objectHasOwnProperty:P,onNextTick:function(e){setTimeout(e,0)},sanitizeContext:function(e){return e?(null!==e.kind&&void 0!==e.kind||k.forEach((r=>{var n=e[r];void 0!==n&&"string"!=typeof n&&((t=t||a({},e))[r]=String(n))})),t||e):e;var t},transformValuesToVersionedValues:function(e){var t={};for(var r in e)P(e,r)&&(t[r]={value:e[r],version:0});return t},transformVersionedValuesToValues:function(e){var t={};for(var r in e)P(e,r)&&(t[r]=e[r].value);return t},wrapPromiseCallback:function(e,t){var r=e.then((e=>(t&&setTimeout((()=>{t(null,e)}),0),e)),(e=>{if(!t)return Promise.reject(e);setTimeout((()=>{t(e,null)}),0)}));return t?void 0:r}},M=new Uint8Array(16);function F(){if(!E&&!(E="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return E(M)}var R=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function T(e){return"string"==typeof e&&R.test(e)}for(var I,D,j=[],B=0;B<256;++B)j.push((B+256).toString(16).substr(1));function L(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=(j[e[t+0]]+j[e[t+1]]+j[e[t+2]]+j[e[t+3]]+"-"+j[e[t+4]]+j[e[t+5]]+"-"+j[e[t+6]]+j[e[t+7]]+"-"+j[e[t+8]]+j[e[t+9]]+"-"+j[e[t+10]]+j[e[t+11]]+j[e[t+12]]+j[e[t+13]]+j[e[t+14]]+j[e[t+15]]).toLowerCase();if(!T(r))throw TypeError("Stringified UUID is invalid");return r}var Z=0,N=0;function G(e){if(!T(e))throw TypeError("Invalid UUID");var t,r=new Uint8Array(16);return r[0]=(t=parseInt(e.slice(0,8),16))>>>24,r[1]=t>>>16&255,r[2]=t>>>8&255,r[3]=255&t,r[4]=(t=parseInt(e.slice(9,13),16))>>>8,r[5]=255&t,r[6]=(t=parseInt(e.slice(14,18),16))>>>8,r[7]=255&t,r[8]=(t=parseInt(e.slice(19,23),16))>>>8,r[9]=255&t,r[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,r[11]=t/4294967296&255,r[12]=t>>>24&255,r[13]=t>>>16&255,r[14]=t>>>8&255,r[15]=255&t,r}function z(e,t,r){function n(e,n,o,i){if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));for(var t=[],r=0;r>>9<<4)+1}function U(e,t){var r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function q(e,t,r,n,o,i){return U((a=U(U(t,e),U(n,i)))<<(s=o)|a>>>32-s,r);var a,s}function V(e,t,r,n,o,i,a){return q(t&r|~t&n,e,t,o,i,a)}function H(e,t,r,n,o,i,a){return q(t&n|r&~n,e,t,o,i,a)}function K(e,t,r,n,o,i,a){return q(t^r^n,e,t,o,i,a)}function Y(e,t,r,n,o,i,a){return q(r^(t|~n),e,t,o,i,a)}var $=z("v3",48,(function(e){if("string"==typeof e){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var r=0;r>5]>>>o%32&255,a=parseInt(n.charAt(i>>>4&15)+n.charAt(15&i),16);t.push(a)}return t}(function(e,t){e[t>>5]|=128<>5]|=(255&e[n/8])<>>32-t}var ee=z("v5",80,(function(e){var t=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){var n=unescape(encodeURIComponent(e));e=[];for(var o=0;o>>0;y=b,b=m,m=J(g,30)>>>0,g=v,v=C}r[0]=r[0]+v>>>0,r[1]=r[1]+g>>>0,r[2]=r[2]+m>>>0,r[3]=r[3]+b>>>0,r[4]=r[4]+y>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,255&r[0],r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,255&r[1],r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,255&r[2],r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,255&r[3],r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,255&r[4]]})),te=ee,re=Object.freeze({__proto__:null,v1:function(e,t,r){var n=t&&r||0,o=t||new Array(16),i=(e=e||{}).node||I,a=void 0!==e.clockseq?e.clockseq:D;if(null==i||null==a){var s=e.random||(e.rng||F)();null==i&&(i=I=[1|s[0],s[1],s[2],s[3],s[4],s[5]]),null==a&&(a=D=16383&(s[6]<<8|s[7]))}var l=void 0!==e.msecs?e.msecs:Date.now(),c=void 0!==e.nsecs?e.nsecs:N+1,u=l-Z+(c-N)/1e4;if(u<0&&void 0===e.clockseq&&(a=a+1&16383),(u<0||l>Z)&&void 0===e.nsecs&&(c=0),c>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");Z=l,N=c,D=a;var d=(1e4*(268435455&(l+=122192928e5))+c)%4294967296;o[n++]=d>>>24&255,o[n++]=d>>>16&255,o[n++]=d>>>8&255,o[n++]=255&d;var p=l/4294967296*1e4&268435455;o[n++]=p>>>8&255,o[n++]=255&p,o[n++]=p>>>24&15|16,o[n++]=p>>>16&255,o[n++]=a>>>8|128,o[n++]=255&a;for(var f=0;f<6;++f)o[n+f]=i[f];return t||L(o)},v3:X,v4:function(e,t,r){var n=(e=e||{}).random||(e.rng||F)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){r=r||0;for(var o=0;o<16;++o)t[r+o]=n[o];return t}return L(n)},v5:te,NIL:"00000000-0000-0000-0000-000000000000",version:function(e){if(!T(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)},validate:T,stringify:L,parse:G}),ne=["debug","info","warn","error","none"],oe={commonBasicLogger:function(e,t){if(e&&e.destination&&"function"!=typeof e.destination)throw new Error("destination for basicLogger was set to a non-function");function r(e){return function(t){console&&console[e]&&console[e].call(console,t)}}var n=e&&e.destination?[e.destination,e.destination,e.destination,e.destination]:[r("log"),r("info"),r("warn"),r("error")],o=!(!e||!e.destination),i=e&&void 0!==e.prefix&&null!==e.prefix?e.prefix:"[LaunchDarkly] ",a=1;if(e&&e.level)for(var s=0;s{};else{var t=d;c[e]=function(){l(t,e,arguments)}}},d=0;d{if("none"!==t&&(!e[t]||"function"!=typeof e[t]))throw new Error("Provided logger instance must support logger."+t+"(...) method")}))}};function ie(e){return e&&e.message?e.message:"string"==typeof e||e instanceof String?e:JSON.stringify(e)}var ae=" Please see https://docs.launchdarkly.com/sdk/client-side/javascript#initialize-the-client for instructions on SDK initialization.",se={bootstrapInvalid:function(){return"LaunchDarkly bootstrap data is not available because the back end could not read the flags."},bootstrapOldFormat:function(){return"LaunchDarkly client was initialized with bootstrap data that did not include flag metadata. Events may not be sent correctly."+ae},clientInitialized:function(){return"LaunchDarkly client initialized"},clientNotReady:function(){return"LaunchDarkly client is not ready"},debugEnqueueingEvent:function(e){return'enqueueing "'+e+'" event'},debugPostingDiagnosticEvent:function(e){return"sending diagnostic event ("+e.kind+")"},debugPostingEvents:function(e){return"sending "+e+" events"},debugStreamDelete:function(e){return'received streaming deletion for flag "'+e+'"'},debugStreamDeleteIgnored:function(e){return'received streaming deletion for flag "'+e+'" but ignored due to version check'},debugStreamPatch:function(e){return'received streaming update for flag "'+e+'"'},debugStreamPatchIgnored:function(e){return'received streaming update for flag "'+e+'" but ignored due to version check'},debugStreamPing:function(){return"received ping message from stream"},debugPolling:function(e){return"polling for feature flags at "+e},debugStreamPut:function(){return"received streaming update for all flags"},deprecated:function(e,t){return t?'"'+e+'" is deprecated, please use "'+t+'"':'"'+e+'" is deprecated'},environmentNotFound:function(){return"Environment not found. Double check that you specified a valid environment/client-side ID."+ae},environmentNotSpecified:function(){return"No environment/client-side ID was specified."+ae},errorFetchingFlags:function(e){return"Error fetching flag settings: "+ie(e)},eventCapacityExceeded:function(){return"Exceeded event queue capacity. Increase capacity to avoid dropping events."},eventWithoutContext:function(){return"Be sure to call `identify` in the LaunchDarkly client: https://docs.launchdarkly.com/sdk/features/identify#javascript"},httpErrorMessage:function(e,t,r){return"Received error "+e+(401===e?" (invalid SDK key)":"")+" for "+t+" - "+(h.isHttpErrorRecoverable(e)?r:"giving up permanently")},httpUnavailable:function(){return"Cannot make HTTP requests in this environment."+ae},identifyDisabled:function(){return"identify() has no effect here; it must be called on the main client instance"},inspectorMethodError:(e,t)=>'an inspector: "'.concat(t,'" of type: "').concat(e,'" generated an exception'),invalidContentType:function(e){return'Expected application/json content type but got "'+e+'"'},invalidData:function(){return"Invalid data received from LaunchDarkly; connection may have been interrupted"},invalidInspector:(e,t)=>'an inspector: "'.concat(t,'" of an invalid type (').concat(e,") was configured"),invalidKey:function(){return"Event key must be a string"},invalidMetricValue:e=>'The track function was called with a non-numeric "metricValue" ('.concat(e,"), only numeric metric values are supported."),invalidContext:function(){return"Invalid context specified."+ae},invalidTagValue:e=>'Config option "'.concat(e,'" must only contain letters, numbers, ., _ or -.'),localStorageUnavailable:function(e){return"local storage is unavailable: "+ie(e)},networkError:e=>"network error"+(e?" ("+e+")":""),optionBelowMinimum:(e,t,r)=>'Config option "'+e+'" was set to '+t+", changing to minimum value of "+r,streamClosing:function(){return"Closing stream connection"},streamConnecting:function(e){return"Opening stream connection to "+e},streamError:function(e,t){return"Error on stream connection: "+ie(e)+", will continue retrying after "+t+" milliseconds."},tagValueTooLong:e=>'Value of "'.concat(e,'" was longer than 64 characters and was discarded.'),unknownCustomEventKey:function(e){return'Custom event "'+e+'" does not exist'},unknownOption:e=>'Ignoring unknown config option "'+e+'"',contextNotSpecified:function(){return"No context specified."+ae},unrecoverableStreamError:e=>"Error on stream connection ".concat(ie(e),", giving up permanently"),wrongOptionType:(e,t,r)=>'Config option "'+e+'" should be of type '+t+", got "+r+", using default value",wrongOptionTypeBoolean:(e,t)=>'Config option "'+e+'" should be a boolean, got '+t+", converting to boolean"},{validateLogger:le}=oe,ce={baseUrl:{default:"https://app.launchdarkly.com"},streamUrl:{default:"https://clientstream.launchdarkly.com"},eventsUrl:{default:"https://events.launchdarkly.com"},sendEvents:{default:!0},streaming:{type:"boolean"},sendLDHeaders:{default:!0},requestHeaderTransform:{type:"function"},sendEventsOnlyForVariation:{default:!1},useReport:{default:!1},evaluationReasons:{default:!1},eventCapacity:{default:100,minimum:1},flushInterval:{default:2e3,minimum:2e3},samplingInterval:{default:0,minimum:0},streamReconnectDelay:{default:1e3,minimum:0},allAttributesPrivate:{default:!1},privateAttributes:{default:[]},bootstrap:{type:"string|object"},diagnosticRecordingInterval:{default:9e5,minimum:2e3},diagnosticOptOut:{default:!1},wrapperName:{type:"string"},wrapperVersion:{type:"string"},stateProvider:{type:"object"},application:{validator:function(e,t,r){var n={};return t.id&&(n.id=pe("".concat(e,".id"),t.id,r)),t.version&&(n.version=pe("".concat(e,".version"),t.version,r)),n}},inspectors:{default:[]}},ue=/^(\w|\.|-)+$/;function de(e){return e&&e.replace(/\/+$/,"")}function pe(e,t,r){if("string"==typeof t&&t.match(ue)){if(!(t.length>64))return t;r.warn(se.tagValueTooLong(e))}else r.warn(se.invalidTagValue(e))}var fe={baseOptionDefs:ce,validate:function(e,t,r,n){var o=O.extend({logger:{default:n}},ce,r),i={};function a(e){O.onNextTick((()=>{t&&t.maybeReportError(new h.LDInvalidArgumentError(e))}))}var s=O.extend({},e||{});return function(e){var t=e;Object.keys(i).forEach((e=>{if(void 0!==t[e]){var r=i[e];n&&n.warn(se.deprecated(e,r)),r&&(void 0===t[r]&&(t[r]=t[e]),delete t[e])}}))}(s),s=function(e){var t=O.extend({},e);return Object.keys(o).forEach((e=>{void 0!==t[e]&&null!==t[e]||(t[e]=o[e]&&o[e].default)})),t}(s),s=function(e){var t=O.extend({},e),r=e=>{if(null===e)return"any";if(void 0!==e){if(Array.isArray(e))return"array";var t=typeof e;return"boolean"===t||"string"===t||"number"===t||"function"===t?t:"object"}};return Object.keys(e).forEach((i=>{var s=e[i];if(null!=s){var l=o[i];if(void 0===l)a(se.unknownOption(i));else{var c=l.type||r(l.default),u=l.validator;if(u){var d=u(i,e[i],n);void 0!==d?t[i]=d:delete t[i]}else if("any"!==c){var p=c.split("|"),f=r(s);p.indexOf(f)<0?"boolean"===c?(t[i]=!!s,a(se.wrongOptionTypeBoolean(i,f))):(a(se.wrongOptionType(i,c,f)),t[i]=l.default):"number"===f&&void 0!==l.minimum&&sArray.isArray(n[e])?n[e].sort().map((t=>"".concat(e,"/").concat(t))):["".concat(e,"/").concat(n[e])])).reduce(((e,t)=>e.concat(t)),[]).join(" ")),r},transformHeaders:function(e,t){return t&&t.requestHeaderTransform?t.requestHeaderTransform(a({},e)):e}},{v1:ge}=re,{getLDHeaders:me,transformHeaders:be}=ve,ye=function(e,t,r){var n=O.extend({"Content-Type":"application/json"},me(e,r)),o={sendEvents:(t,o,i)=>{if(!e.httpRequest)return Promise.resolve();var a=JSON.stringify(t),s=i?null:ge();return function t(l){var c=i?n:O.extend({},n,{"X-LaunchDarkly-Event-Schema":"4","X-LaunchDarkly-Payload-ID":s});return e.httpRequest("POST",o,be(c,r),a).promise.then((e=>{if(e)return e.status>=400&&h.isHttpErrorRecoverable(e.status)&&l?t(!1):function(e){var t={status:e.status},r=e.header("date");if(r){var n=Date.parse(r);n&&(t.serverTime=n)}return t}(e)})).catch((()=>l?t(!1):Promise.reject()))}(!0).catch((()=>{}))}};return o},{commonBasicLogger:Ae}=oe;function _e(e){return"string"==typeof e&&"kind"!==e&&e.match(/^(\w|\.|-)+$/)}function Ce(e){return e.includes("%")||e.includes(":")?e.replace(/%/g,"%25").replace(/:/g,"%3A"):e}var we={checkContext:function(e,t){if(e){if(t&&(void 0===e.kind||null===e.kind))return void 0!==e.key&&null!==e.key;var r=e.key,n=void 0===e.kind?"user":e.kind,o=_e(n),i="multi"===n||null!=r&&""!==r;if("multi"===n){var a=Object.keys(e).filter((e=>"kind"!==e));return i&&a.every((e=>_e(e)))&&a.every((t=>{var r=e[t].key;return null!=r&&""!==r}))}return i&&o}return!1},getContextKeys:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ae();if(e){var r={},{kind:n,key:o}=e;switch(n){case void 0:r.user="".concat(o);break;case"multi":Object.entries(e).filter((e=>{var[t]=e;return"kind"!==t})).forEach((e=>{var[t,n]=e;n&&n.key&&(r[t]=n.key)}));break;case null:t.warn("null is not a valid context kind: ".concat(e));break;case"":t.warn("'' is not a valid context kind: ".concat(e));break;default:r[n]="".concat(o)}return r}},getContextKinds:function(e){return e?null===e.kind||void 0===e.kind?["user"]:"multi"!==e.kind?[e.kind]:Object.keys(e).filter((e=>"kind"!==e)):[]},getCanonicalKey:function(e){if(e){if((void 0===e.kind||null===e.kind||"user"===e.kind)&&e.key)return e.key;if("multi"!==e.kind&&e.key)return"".concat(e.kind,":").concat(Ce(e.key));if("multi"===e.kind)return Object.keys(e).sort().filter((e=>"kind"!==e)).map((t=>"".concat(t,":").concat(Ce(e[t].key)))).join(":")}}},{getContextKinds:xe}=we;function ke(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}function Se(e){return(e.startsWith("/")?e.substring(1):e).split("/").map((e=>e.indexOf("~")>=0?e.replace(/~1/g,"/").replace(/~0/g,"~"):e))}function Pe(e){return!e.startsWith("/")}function Ee(e,t){var r=Pe(e),n=Pe(t);if(r&&n)return e===t;if(r){var o=Se(t);return 1===o.length&&e===o[0]}if(n){var i=Se(e);return 1===i.length&&t===i[0]}return e===t}function Oe(e){return"/".concat(ke(e))}var Me={cloneExcluding:function(e,t){var r=[],n={},o=[],i=function(){var e=r.pop();if(t.some((t=>Ee(t,e.ptr))))o.push(e.ptr);else{var n=e.source[e.key];if(null===n)e.parent[e.key]=n;else if(Array.isArray(n))e.parent[e.key]=[...n];else if("object"==typeof n){if(e.visited.includes(n))return 1;e.parent[e.key]={},r.push(...Object.keys(n).map((t=>{return{key:t,ptr:(r=e.ptr,o=ke(t),"".concat(r,"/").concat(o)),source:n,parent:e.parent[e.key],visited:[...e.visited,n]};var r,o})))}else e.parent[e.key]=n}};for(r.push(...Object.keys(e).map((t=>({key:t,ptr:Oe(t),source:e,parent:n,visited:[e]}))));r.length;)i();return{cloned:n,excluded:o.sort()}},compare:Ee,literalToReference:Oe},{getContextKeys:Fe}=we,Re=function(e,t,r){var n,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,s={},l=(arguments.length>5&&void 0!==arguments[5]?arguments[5]:null)||ye(e,0,t),c=O.appendUrlPath(t.eventsUrl,"/events/bulk/"+r),u=function(){var e={},t=0,r=0,n={},o={};return e.summarizeEvent=e=>{if("feature"===e.kind){var i=e.key+":"+(null!==e.variation&&void 0!==e.variation?e.variation:"")+":"+(null!==e.version&&void 0!==e.version?e.version:""),a=n[i],s=o[e.key];s||(s=new Set,o[e.key]=s),function(e){return e.context?xe(e.context):e.contextKeys?Object.keys(e.contextKeys):[]}(e).forEach((e=>s.add(e))),a?a.count=a.count+1:n[i]={count:1,key:e.key,version:e.version,variation:e.variation,value:e.value,default:e.default},(0===t||e.creationDater&&(r=e.creationDate)}},e.getSummary=()=>{var e={},i=!0;for(var a of Object.values(n)){var s=e[a.key];s||(s={default:a.default,counters:[],contextKinds:[...o[a.key]]},e[a.key]=s);var l={value:a.value,count:a.count};void 0!==a.variation&&null!==a.variation&&(l.variation=a.variation),void 0!==a.version&&null!==a.version?l.version=a.version:l.unknown=!0,s.counters.push(l),i=!1}return i?null:{startDate:t,endDate:r,features:e}},e.clearSummary=()=>{t=0,r=0,n={},o={}},e}(),d=function(e){var t={},r=e.allAttributesPrivate,n=e.privateAttributes||[],o=["key","kind","_meta","anonymous"],i=["name","ip","firstName","lastName","email","avatar","country"],s=(e,t)=>{if("object"==typeof e&&null!==e&&!Array.isArray(e)){var{cloned:i,excluded:a}=Me.cloneExcluding(e,((e,t)=>(r||t&&e.anonymous?Object.keys(e):[...n,...e._meta&&e._meta.privateAttributes||[]]).filter((e=>!o.some((t=>Me.compare(e,t))))))(e,t));return i.key=String(i.key),a.length&&(i._meta||(i._meta={}),i._meta.redactedAttributes=a),i._meta&&(delete i._meta.privateAttributes,0===Object.keys(i._meta).length&&delete i._meta),void 0!==i.anonymous&&(i.anonymous=!!i.anonymous),i}};return t.filter=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return void 0===e.kind||null===e.kind?s((e=>{var t=a(a({},e.custom||{}),{},{kind:"user",key:e.key});for(var r of(void 0!==e.anonymous&&(t.anonymous=!!e.anonymous),i))delete t[r],void 0!==e[r]&&null!==e[r]&&(t[r]=String(e[r]));return void 0!==e.privateAttributeNames&&null!==e.privateAttributeNames&&(t._meta=t._meta||{},t._meta.privateAttributes=e.privateAttributeNames.map((e=>e.startsWith("/")?Me.literalToReference(e):e))),t})(e),t):"multi"===e.kind?((e,t)=>{var r={kind:e.kind},n=Object.keys(e);for(var o of n)if("kind"!==o){var i=s(e[o],t);i&&(r[o]=i)}return r})(e,t):s(e,t)},t}(t),p=t.samplingInterval,f=t.eventCapacity,v=t.flushInterval,g=t.logger,m=[],b=0,y=!1,A=!1;function _(){return 0===p||0===Math.floor(Math.random()*p)}function C(e){m.lengthb&&t.debugEventsUntilDate>(new Date).getTime()):r=_(),r&&C(function(e){var t=O.extend({},e);return"identify"===e.kind?t.context=d.filter(e.context):"feature"===e.kind?t.context=d.filter(e.context,!0):(t.contextKeys=Fe(e.context,g),delete t.context),"feature"===e.kind&&(delete t.trackEvents,delete t.debugEventsUntilDate),t}(e)),n){var o=O.extend({},e,{kind:"debug"});o.context=d.filter(o.context),delete o.trackEvents,delete o.debugEventsUntilDate,C(o)}}},s.flush=function(){if(y)return Promise.resolve();var e=m,t=u.getSummary();return u.clearSummary(),t&&(t.kind="summary",e.push(t)),o&&o.setEventsInLastBatch(e.length),0===e.length?Promise.resolve():(m=[],g.debug(se.debugPostingEvents(e.length)),l.sendEvents(e,c).then((e=>{e&&(e.serverTime&&(b=e.serverTime),h.isHttpErrorRecoverable(e.status)||(y=!0),e.status>=400&&O.onNextTick((()=>{i.maybeReportError(new h.LDUnexpectedResponseError(se.httpErrorMessage(e.status,"event posting","some events were dropped")))})))})))},s.start=function(){var e=()=>{s.flush(),n=setTimeout(e,v)};n=setTimeout(e,v)},s.stop=function(){clearTimeout(n)},s},Te="ready",Ie="initialized",De="failed",{appendUrlPath:je,base64URLEncode:Be,objectHasOwnProperty:Le}=O,{getLDHeaders:Ze,transformHeaders:Ne}=ve,{isHttpErrorRecoverable:Ge}=h,ze=function(e,t,r,n){var o,i=t.streamUrl,a=t.logger,s={},l=je(i,"/eval/"+r),c=t.useReport,u=t.evaluationReasons,d=t.streamReconnectDelay,p=Ze(e,t),f=!1,h=null,v=null,g=null,m=null,b=null,y=0;function A(e){if(e.status&&"number"==typeof e.status&&!Ge(e.status))return w(),a.error(se.unrecoverableStreamError(e)),void(v&&(clearTimeout(v),v=null));var t=function(){var e,t=(e=function(){var e=d*Math.pow(2,y);return e>3e4?3e4:e}(),e-Math.trunc(.5*Math.random()*e));return y+=1,t}();f||(a.warn(se.streamError(e,t)),f=!0),x(!1),w(),_(t)}function _(e){v||(e?v=setTimeout(C,e):C())}function C(){var n;v=null;var s="",d={headers:p,readTimeoutMillis:3e5};if(e.eventSourceFactory){for(var f in null!=m&&(s="h="+m),c?e.eventSourceAllowsReport?(n=l,d.method="REPORT",d.headers["Content-Type"]="application/json",d.body=JSON.stringify(g)):(n=je(i,"/ping/"+r),s=""):n=l+"/"+Be(JSON.stringify(g)),d.headers=Ne(d.headers,t),u&&(s=s+(s?"&":"")+"withReasons=true"),n=n+(s?"?":"")+s,w(),a.info(se.streamConnecting(n)),o=(new Date).getTime(),h=e.eventSourceFactory(n,d),b)Le(b,f)&&h.addEventListener(f,b[f]);h.onerror=A,h.onopen=()=>{y=0}}}function w(){h&&(a.info(se.streamClosing()),h.close(),h=null)}function x(e){o&&n&&n.recordStreamInit(o,!e,(new Date).getTime()-o),o=null}return s.connect=function(e,t,r){g=e,m=t,b={};var n=function(e){b[e]=function(t){f=!1,x(!0),r[e]&&r[e](t)}};for(var o in r||{})n(o);_()},s.disconnect=function(){clearTimeout(v),v=null,w()},s.isConnected=function(){return!!(h&&e.eventSourceIsActive&&e.eventSourceIsActive(h))},s},{transformHeaders:We,getLDHeaders:Ue}=ve,qe="application/json",Ve=function(e,t,r){var n=t.baseUrl,o=t.useReport,i=t.evaluationReasons,a=t.logger,s={},l={};function c(r,n){if(!e.httpRequest)return new Promise(((e,t)=>{t(new h.LDFlagFetchError(se.httpUnavailable()))}));var o=n?"REPORT":"GET",i=Ue(e,t);n&&(i["Content-Type"]=qe);var a=l[r];a||(a=function(e){var t,r,n,o,i={addPromise:(i,a)=>{t=i,r&&r(),r=a,i.then((r=>{t===i&&(n(r),e&&e())}),(r=>{t===i&&(o(r),e&&e())}))}};return i.resultPromise=new Promise(((e,t)=>{n=e,o=t})),i}((()=>{delete l[r]})),l[r]=a);var s=e.httpRequest(o,r,We(i,t),n),c=s.promise.then((e=>{if(200===e.status){if(e.header("content-type")&&e.header("content-type").substring(0,16)===qe)return JSON.parse(e.body);var t=se.invalidContentType(e.header("content-type")||"");return Promise.reject(new h.LDFlagFetchError(t))}return Promise.reject(function(e){return 404===e.status?new h.LDInvalidEnvironmentIdError(se.environmentNotFound()):new h.LDFlagFetchError(se.errorFetchingFlags(e.statusText||String(e.status)))}(e))}),(e=>Promise.reject(new h.LDFlagFetchError(se.networkError(e)))));return a.addPromise(c,(()=>{s.cancel&&s.cancel()})),a.resultPromise}return s.fetchJSON=function(e){return c(O.appendUrlPath(n,e),null)},s.fetchFlagSettings=function(e,t){var s,l,u,d="";return o?(l=[n,"/sdk/evalx/",r,"/context"].join(""),u=JSON.stringify(e)):(s=O.base64URLEncode(JSON.stringify(e)),l=[n,"/sdk/evalx/",r,"/contexts/",s].join("")),t&&(d="h="+t),i&&(d=d+(d?"&":"")+"withReasons=true"),l=l+(d?"?":"")+d,a.debug(se.debugPolling(l)),c(l,u)},s},{v1:He}=re,{getContextKinds:Ke}=we,Ye=function(e){function t(e){return null==e||"user"===e?"ld:$anonUserId":"ld:$contextKey:".concat(e)}function r(r,n){return null!==n.key&&void 0!==n.key?(n.key=n.key.toString(),Promise.resolve(n)):n.anonymous?function(r){return e.get(t(r))}(r).then((o=>{if(o)return n.key=o,n;var i=He();return n.key=i,function(r,n){return e.set(t(n),r)}(i,r).then((()=>n))})):Promise.reject(new h.LDInvalidUserError(se.invalidContext()))}this.processContext=e=>{if(!e)return Promise.reject(new h.LDInvalidUserError(se.contextNotSpecified()));var t=O.clone(e);if("multi"===e.kind){var n=Ke(t);return Promise.all(n.map((e=>r(e,t[e])))).then((()=>t))}return r(e.kind,t)}},{v1:$e}=re,{baseOptionDefs:Xe}=fe,{appendUrlPath:Qe}=O,Je=function(e){var t={diagnosticId:$e()};return e&&(t.sdkKeySuffix=e.length>6?e.substring(e.length-6):e),t},et=function(e){var t,r,n,o;function i(e){t=e,r=0,n=0,o=[]}return i(e),{getProps:()=>({dataSinceDate:t,droppedEvents:r,eventsInLastBatch:n,streamInits:o}),setProps:e=>{t=e.dataSinceDate,r=e.droppedEvents||0,n=e.eventsInLastBatch||0,o=e.streamInits||[]},incrementDroppedEvents:()=>{r++},setEventsInLastBatch:e=>{n=e},recordStreamInit:(e,t,r)=>{var n={timestamp:e,failed:t,durationMillis:r};o.push(n)},reset:i}},tt=function(e,t,r,n,o,i,s){var l,c,u=!!e.diagnosticUseCombinedEvent,d="ld:"+o+":$diagnostics",p=Qe(i.eventsUrl,"/events/diagnostic/"+o),f=i.diagnosticRecordingInterval,h=r,v=!!i.streaming,g={};function m(){return{sdk:A(),configuration:{customBaseURI:i.baseUrl!==Xe.baseUrl.default,customStreamURI:i.streamUrl!==Xe.streamUrl.default,customEventsURI:i.eventsUrl!==Xe.eventsUrl.default,eventsCapacity:i.eventCapacity,eventsFlushIntervalMillis:i.flushInterval,reconnectTimeMillis:i.streamReconnectDelay,streamingDisabled:!v,allAttributesPrivate:!!i.allAttributesPrivate,diagnosticRecordingIntervalMillis:i.diagnosticRecordingInterval,usingSecureMode:!!i.hash,bootstrapMode:!!i.bootstrap,fetchGoalsDisabled:!i.fetchGoals,sendEventsOnlyForVariation:!!i.sendEventsOnlyForVariation},platform:e.diagnosticPlatformData}}function b(e){i.logger&&i.logger.debug(se.debugPostingDiagnosticEvent(e)),n.sendEvents(e,p,!0).then((()=>{})).catch((()=>{}))}function y(){b(function(){var e=(new Date).getTime(),t=a({kind:u?"diagnostic-combined":"diagnostic",id:s,creationDate:e},h.getProps());return u&&(t=a(a({},t),m())),h.reset(e),t}()),c=setTimeout(y,f),l=(new Date).getTime(),u&&function(){if(t.isEnabled()){var e=a({},h.getProps());t.set(d,JSON.stringify(e))}}()}function A(){var t=a({},e.diagnosticSdkData);return i.wrapperName&&(t.wrapperName=i.wrapperName),i.wrapperVersion&&(t.wrapperVersion=i.wrapperVersion),t}return g.start=()=>{u?function(e){if(!t.isEnabled())return e(!1);t.get(d).then((t=>{if(t)try{var r=JSON.parse(t);h.setProps(r),l=r.dataSinceDate}catch(e){}e(!0)})).catch((()=>{e(!1)}))}((e=>{if(e){var t=(l||0)+f,r=(new Date).getTime();r>=t?y():c=setTimeout(y,t-r)}else 0===Math.floor(4*Math.random())?y():c=setTimeout(y,f)})):(b(a({kind:"diagnostic-init",id:s,creationDate:h.getProps().dataSinceDate},m())),c=setTimeout(y,f))},g.stop=()=>{c&&clearTimeout(c)},g.setStreaming=e=>{v=e},g},{onNextTick:rt}=O,nt={flagUsed:"flag-used",flagDetailsChanged:"flag-details-changed",flagDetailChanged:"flag-detail-changed",clientIdentityChanged:"client-identity-changed"};Object.freeze(nt);var ot={InspectorTypes:nt,InspectorManager:function(e,t){var r={},n={[nt.flagUsed]:[],[nt.flagDetailsChanged]:[],[nt.flagDetailChanged]:[],[nt.clientIdentityChanged]:[]},o={[nt.flagUsed]:[],[nt.flagDetailsChanged]:[],[nt.flagDetailChanged]:[],[nt.clientIdentityChanged]:[]},i=e&&e.map((e=>function(e,t){var r=!1,n={type:e.type,name:e.name,synchronous:e.synchronous,method:function(){try{e.method(...arguments)}catch(o){r||(r=!0,t.warn(se.inspectorMethodError(n.type,n.name)))}}};return n}(e,t)));return i&&i.forEach((e=>{Object.prototype.hasOwnProperty.call(n,e.type)&&!e.synchronous?n[e.type].push(e):Object.prototype.hasOwnProperty.call(o,e.type)&&e.synchronous?o[e.type].push(e):t.warn(se.invalidInspector(e.type,e.name))})),r.hasListeners=e=>n[e]&&n[e].length||o[e]&&o[e].length,r.onFlagUsed=(e,t,r)=>{var i=nt.flagUsed;o[i].length&&o[i].forEach((n=>n.method(e,t,r))),n[i].length&&rt((()=>{n[i].forEach((n=>n.method(e,t,r)))}))},r.onFlags=e=>{var t=nt.flagDetailsChanged;o[t].length&&o[t].forEach((t=>t.method(e))),n[t].length&&rt((()=>{n[t].forEach((t=>t.method(e)))}))},r.onFlagChanged=(e,t)=>{var r=nt.flagDetailChanged;o[r].length&&o[r].forEach((r=>r.method(e,t))),n[r].length&&rt((()=>{n[r].forEach((r=>r.method(e,t)))}))},r.onIdentityChanged=e=>{var t=nt.clientIdentityChanged;o[t].length&&o[t].forEach((t=>t.method(e))),n[t].length&&rt((()=>{n[t].forEach((t=>t.method(e)))}))},r}},{LDTimeoutError:it}=h,{commonBasicLogger:at}=oe,{checkContext:st,getContextKeys:lt}=we,{InspectorTypes:ct,InspectorManager:ut}=ot,dt="change",pt="internal-change",ft={initialize:function(e,t,r,n,o){var i,s,l,c=r&&r.logger?r.logger:o&&o.logger&&o.logger.default||at("warn"),u=function(e){var t={},r={};return t.on=function(e,t,n){r[e]=r[e]||[],r[e]=r[e].concat({handler:t,context:n})},t.off=function(e,t,n){if(r[e])for(var o=0;o{var r=()=>{e.off(Te,r),t()};e.on(Te,r)})).catch((()=>{}));return{getInitializationPromise:()=>o||(t?Promise.resolve():r?Promise.reject(n):(o=new Promise(((t,r)=>{var n=()=>{e.off(Ie,n),t()},o=t=>{e.off(De,o),r(t)};e.on(Ie,n),e.on(De,o)})),o)),getReadyPromise:()=>i,signalSuccess:()=>{t||r||(t=!0,e.emit(Ie),e.emit(Te))},signalFailure:o=>{t||r||(r=!0,n=o,e.emit(De,o),e.emit(Te)),e.maybeReportError(o)}}}(u),p=fe.validate(r,u,o,c),f=ut(p.inspectors,c),v=p.sendEvents,g=e,m=p.hash,b=function(e,t){var r={},n=!1,o=e=>{n||(n=!0,t.warn(se.localStorageUnavailable(e)))};return r.isEnabled=()=>!!e,r.get=t=>new Promise((r=>{e?e.get(t).then(r).catch((e=>{o(e),r(void 0)})):r(void 0)})),r.set=(t,r)=>new Promise((n=>{e?e.set(t,r).then((()=>n(!0))).catch((e=>{o(e),n(!1)})):n(!1)})),r.clear=t=>new Promise((r=>{e?e.clear(t).then((()=>r(!0))).catch((e=>{o(e),r(!1)})):r(!1)})),r}(n.localStorage,c),y=ye(n,0,p),A=p.sendEvents&&!p.diagnosticOptOut,_=A?Je(g):null,C=A?et((new Date).getTime()):null,w=A?tt(n,b,C,y,g,p,_):null,x=ze(n,p,g,C),k=p.eventProcessor||Re(n,p,g,C,u,y),S=Ve(n,p,g),P={},E=p.streaming,M=!1,F=!1,R=!0,T=p.stateProvider,I=function(e,t){var r,n={};return n.setContext=function(e){(r=O.sanitizeContext(e))&&t&&t(O.clone(r))},n.getContext=function(){return r?O.clone(r):null},e&&n.setContext(e),n}(null,(function(e){(function(e){T||e&&B({kind:"identify",context:e,creationDate:(new Date).getTime()})})(e),f.hasListeners(ct.clientIdentityChanged)&&f.onIdentityChanged(I.getContext())})),D=new Ye(b),j=b.isEnabled()?function(e,t,r,n){var o={};function i(){var e="",o=n.getContext();return o&&(e=r||O.btoa(JSON.stringify(o))),"ld:"+t+":"+e}return o.loadFlags=()=>e.get(i()).then((e=>{if(null==e)return null;try{var t=JSON.parse(e);if(t){var r=t.$schema;void 0===r||r<1?t=O.transformValuesToVersionedValues(t):delete t.$schema}return t}catch(e){return o.clearFlags().then((()=>null))}})),o.saveFlags=t=>{var r=O.extend({},t,{$schema:1});return e.set(i(),JSON.stringify(r))},o.clearFlags=()=>e.clear(i()),o}(b,g,m,I):null;function B(e){g&&(T&&T.enqueueEvent&&T.enqueueEvent(e)||(e.context?(R=!1,!v||F||n.isDoNotTrack()||(c.debug(se.debugEnqueueingEvent(e.kind)),k.enqueue(e))):R&&(c.warn(se.eventWithoutContext()),R=!1)))}function L(e,t){f.hasListeners(ct.flagDetailChanged)&&f.onFlagChanged(e.key,W(t))}function Z(){f.hasListeners(ct.flagDetailsChanged)&&f.onFlags(Object.entries(P).map((e=>{var[t,r]=e;return{key:t,detail:W(r)}})).reduce(((e,t)=>(e[t.key]=t.detail,e)),{}))}function N(e,t,r,n){var o=I.getContext(),i=new Date,a={kind:"feature",key:e,context:o,value:t?t.value:null,variation:t?t.variationIndex:null,default:r,creationDate:i.getTime()},s=P[e];s&&(a.version=s.flagVersion?s.flagVersion:s.version,a.trackEvents=s.trackEvents,a.debugEventsUntilDate=s.debugEventsUntilDate),(n||s&&s.trackReason)&&t&&(a.reason=t.reason),B(a)}function G(e){return st(e,!1)?Promise.resolve(e):Promise.reject(new h.LDInvalidUserError(se.invalidContext()))}function z(e,t,r,n,o,i){var a,s,l;return P&&O.objectHasOwnProperty(P,e)&&P[e]&&!P[e].deleted?(s=W(l=P[e]),null!==l.value&&void 0!==l.value||(s.value=t)):s={value:t,variationIndex:null,reason:{kind:"ERROR",errorKind:"FLAG_NOT_FOUND"}},r&&(o||null!==(a=l)&&void 0!==a&&null!==(a=a.prerequisites)&&void 0!==a&&a.forEach((e=>{z(e,void 0,r,!1,!1,!1)})),N(e,s,t,n)),!o&&i&&function(e,t){f.hasListeners(ct.flagUsed)&&f.onFlagUsed(e,t,I.getContext())}(e,s),s}function W(e){return{value:e.value,variationIndex:void 0===e.variation?null:e.variation,reason:e.reason||null}}function U(){if(s=!0,I.getContext()){var e=e=>{try{return JSON.parse(e)}catch(e){return void u.maybeReportError(new h.LDInvalidDataError(se.invalidData()))}};x.connect(I.getContext(),m,{ping:function(){c.debug(se.debugStreamPing());var e=I.getContext();S.fetchFlagSettings(e,m).then((t=>{O.deepEquals(e,I.getContext())&&V(t||{})})).catch((e=>{u.maybeReportError(new h.LDFlagFetchError(se.errorFetchingFlags(e)))}))},put:function(t){var r=e(t.data);r&&(c.debug(se.debugStreamPut()),V(r))},patch:function(t){var r=e(t.data);if(r){var n=P[r.key];if(!n||!n.version||!r.version||n.version{}))}function H(e){var t=Object.keys(e);if(t.length>0){var r={};t.forEach((t=>{var n=e[t].current,o=n?n.value:void 0,i=e[t].previous;u.emit(dt+":"+t,o,i),r[t]=n?{current:o,previous:i}:{previous:i}})),u.emit(dt,r),u.emit(pt,P),p.sendEventsOnlyForVariation||T||t.forEach((t=>{N(t,e[t].current)}))}return i&&j?j.saveFlags(P):Promise.resolve()}function K(){var e=E||l&&void 0===E;e&&!s?U():!e&&s&&q(),w&&w.setStreaming(e)}function Y(e){return e===dt||e.substr(0,7)===dt+":"}if("string"==typeof p.bootstrap&&"LOCALSTORAGE"===p.bootstrap.toUpperCase()&&(j?i=!0:c.warn(se.localStorageUnavailable())),"object"==typeof p.bootstrap&&(P=function(e){var t=Object.keys(e),r="$flagsState",n="$valid",o=e[r];!o&&t.length&&c.warn(se.bootstrapOldFormat()),!1===e[n]&&c.warn(se.bootstrapInvalid());var i={};return t.forEach((t=>{if(t!==r&&t!==n){var a={value:e[t]};o&&o[t]?a=O.extend(a,o[t]):a.version=0,i[t]=a}})),i}(p.bootstrap)),T){var $=T.getInitialState();$?X($):T.on("init",X),T.on("update",(function(e){e.context&&I.setContext(e.context),e.flags&&V(e.flags)}))}else(e?D.processContext(t).then(G).then((e=>(I.setContext(e),"object"==typeof p.bootstrap?Q():i?j.loadFlags().then((e=>null==e?(P={},S.fetchFlagSettings(I.getContext(),m).then((e=>V(e||{}))).then(Q).catch((e=>{J(new h.LDFlagFetchError(se.errorFetchingFlags(e)))}))):(P=e,O.onNextTick(Q),S.fetchFlagSettings(I.getContext(),m).then((e=>V(e))).catch((e=>u.maybeReportError(e)))))):S.fetchFlagSettings(I.getContext(),m).then((e=>{P=e||{},Z(),Q()})).catch((e=>{P={},J(e)}))))):Promise.reject(new h.LDInvalidEnvironmentIdError(se.environmentNotSpecified()))).catch(J);function X(e){g=e.environment,I.setContext(e.context),P=a({},e.flags),O.onNextTick(Q)}function Q(){c.info(se.clientInitialized()),M=!0,K(),d.signalSuccess()}function J(e){d.signalFailure(e)}var ee={waitForInitialization:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;if(null!=e){if("number"==typeof e)return function(e){e>5&&c.warn("The waitForInitialization function was called with a timeout greater than 5 seconds. We recommend a timeout of 5 seconds or less.");var t=d.getInitializationPromise(),r=function(e,t){return new Promise(((r,n)=>{setTimeout((()=>{n(new it("".concat(t," timed out after ").concat(e," seconds.")))}),1e3*e)}))}(e,"waitForInitialization");return Promise.race([r,t]).catch((e=>{throw e instanceof h.LDTimeoutError&&c.error("waitForInitialization error: ".concat(e)),e}))}(e);c.warn("The waitForInitialization method was provided with a non-numeric timeout.")}return c.warn("The waitForInitialization function was called without a timeout specified. In a future version a default timeout will be applied."),d.getInitializationPromise()},waitUntilReady:()=>d.getReadyPromise(),identify:function(e,t,r){if(F)return O.wrapPromiseCallback(Promise.resolve({}),r);if(T)return c.warn(se.identifyDisabled()),O.wrapPromiseCallback(Promise.resolve(O.transformVersionedValuesToValues(P)),r);var n=i&&j?j.clearFlags():Promise.resolve();return O.wrapPromiseCallback(n.then((()=>D.processContext(e))).then(G).then((e=>S.fetchFlagSettings(e,t).then((r=>{var n=O.transformVersionedValuesToValues(r);return I.setContext(e),m=t,r?V(r).then((()=>n)):n})))).then((e=>(s&&U(),e))).catch((e=>(u.maybeReportError(e),Promise.reject(e)))),r)},getContext:function(){return I.getContext()},variation:function(e,t){return z(e,t,!0,!1,!1,!0).value},variationDetail:function(e,t){return z(e,t,!0,!0,!1,!0)},track:function(e,t,r){if("string"==typeof e){void 0!==r&&"number"!=typeof r&&c.warn(se.invalidMetricValue(typeof r)),n.customEventFilter&&!n.customEventFilter(e)&&c.warn(se.unknownCustomEventKey(e));var o=I.getContext(),i={kind:"custom",key:e,context:o,url:n.getCurrentUrl(),creationDate:(new Date).getTime()};o&&o.anonymous&&(i.contextKind=o.anonymous?"anonymousUser":"user"),null!=t&&(i.data=t),null!=r&&(i.metricValue=r),B(i)}else u.maybeReportError(new h.LDInvalidEventKeyError(se.unknownCustomEventKey(e)))},on:function(e,t,r){Y(e)?(l=!0,M&&K(),u.on(e,t,r)):u.on(...arguments)},off:function(e){if(u.off(...arguments),Y(e)){var t=!1;u.getEvents().forEach((e=>{Y(e)&&u.getEventListenerCount(e)>0&&(t=!0)})),t||(l=!1,s&&void 0===E&&q())}},setStreaming:function(e){var t=null===e?void 0:e;t!==E&&(E=t,K())},flush:function(e){return O.wrapPromiseCallback(v?k.flush():Promise.resolve(),e)},allFlags:function(){var e={};if(!P)return e;for(var t in P)O.objectHasOwnProperty(P,t)&&!P[t].deleted&&(e[t]=z(t,null,!p.sendEventsOnlyForVariation,!1,!0,!1).value);return e},close:function(e){if(F)return O.wrapPromiseCallback(Promise.resolve(),e);var t=()=>{F=!0,P={}},r=Promise.resolve().then((()=>{if(q(),w&&w.stop(),v)return k.stop(),k.flush()})).then(t).catch(t);return O.wrapPromiseCallback(r,e)}};return{client:ee,options:p,emitter:u,ident:I,logger:c,requestor:S,start:function(){v&&(w&&w.start(),k.start())},enqueueEvent:B,getFlagsInternal:function(){return P},getEnvironmentId:()=>g,internalChangeEventName:pt}},commonBasicLogger:at,errors:h,messages:se,utils:O,getContextKeys:lt},ht=ft.initialize,vt=ft.errors;function gt(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function mt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function bt(e){for(var t=1;t{if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")};function _t(e,t,r,n){var o,i,a=("substring"!==e.kind&&"regex"!==e.kind||!n.includes("/")?t.replace(n,""):t).replace(r,"");switch(e.kind){case"exact":i=t,o=new RegExp("^"+At(e.url)+"/?$");break;case"canonical":i=a,o=new RegExp("^"+At(e.url)+"/?$");break;case"substring":i=a,o=new RegExp(".*"+At(e.substring)+".*$");break;case"regex":i=a,o=new RegExp(e.pattern);break;default:return!1}return o.test(i)}function Ct(e,t){for(var r={},n=null,o=[],i=0;i0&&(n=function(e){for(var r=function(e,t){for(var r=[],n=0;n0;){for(var l=0;l2&&void 0!==arguments[2]?arguments[2]:{},n=function(e){var t,r={userAgentHeaderName:"X-LaunchDarkly-User-Agent",synchronousFlush:!1};if(window.XMLHttpRequest){var n=e&&e.disableSyncEventPost;r.httpRequest=function(e,t,o,i){var a=r.synchronousFlush&!n;return r.synchronousFlush=!1,function(e,t,r,n,o){if(o&&!function(){var e=window.navigator&&window.navigator.userAgent;if(e){var t=e.match(/Chrom(e|ium)\/([0-9]+)\./);if(t)return parseInt(t[2],10)<73}return!0}())return yt;var i=new window.XMLHttpRequest;for(var a in i.open(e,t,!o),r||{})Object.prototype.hasOwnProperty.call(r,a)&&i.setRequestHeader(a,r[a]);if(o){try{i.send(n)}catch(e){}return yt}var s,l=new Promise((function(e,t){i.addEventListener("load",(function(){s||e({status:i.status,header:function(e){return i.getResponseHeader(e)},body:i.responseText})})),i.addEventListener("error",(function(){s||t(new Error)})),i.send(n)}));return{promise:l,cancel:function(){s=!0,i.abort()}}}(e,t,o,i,a)}}r.httpAllowsPost=function(){return void 0===t&&(t=!!window.XMLHttpRequest&&"withCredentials"in new window.XMLHttpRequest),t},r.httpFallbackPing=function(e){(new window.Image).src=e};var o,i=e&&e.eventUrlTransformer;r.getCurrentUrl=function(){return i?i(window.location.href):window.location.href},r.isDoNotTrack=function(){var e;return 1===(e=window.navigator&&void 0!==window.navigator.doNotTrack?window.navigator.doNotTrack:window.navigator&&void 0!==window.navigator.msDoNotTrack?window.navigator.msDoNotTrack:window.doNotTrack)||!0===e||"1"===e||"yes"===e};try{window.localStorage&&(r.localStorage={get:function(e){return new Promise((function(t){t(window.localStorage.getItem(e))}))},set:function(e,t){return new Promise((function(r){window.localStorage.setItem(e,t),r()}))},clear:function(e){return new Promise((function(t){window.localStorage.removeItem(e),t()}))}})}catch(e){r.localStorage=null}if(e&&e.useReport&&"function"==typeof window.EventSourcePolyfill&&window.EventSourcePolyfill.supportedOptions&&window.EventSourcePolyfill.supportedOptions.method?(r.eventSourceAllowsReport=!0,o=window.EventSourcePolyfill):(r.eventSourceAllowsReport=!1,o=window.EventSource),window.EventSource){var a=3e5;r.eventSourceFactory=function(e,t){var r=bt(bt({},{heartbeatTimeout:a,silentTimeout:a,skipDefaultHeaders:!0}),t);return new o(e,r)},r.eventSourceIsActive=function(e){return e.readyState===window.EventSource.OPEN||e.readyState===window.EventSource.CONNECTING}}return r.userAgent="JSClient",r.version="3.5.0",r.diagnosticSdkData={name:"js-client-sdk",version:"3.5.0"},r.diagnosticPlatformData={name:"JS"},r.diagnosticUseCombinedEvent=!0,r}(r),o=ht(e,t,r,n,xt),i=o.client,a=o.options,s=o.emitter,l=new Promise((function(e){var t=s.on(wt,(function(){s.off(wt,t),e()}))}));i.waitUntilGoalsReady=function(){return l},a.fetchGoals?function(e,t){var r,n;function o(){n&&n.dispose(),r&&r.length&&(n=Ct(r,i))}function i(t,r){var n=e.ident.getContext(),o={kind:t,key:r.key,data:null,url:window.location.href,creationDate:(new Date).getTime(),context:n};return"click"===t&&(o.selector=r.selector),e.enqueueEvent(o)}e.requestor.fetchJSON("/sdk/goals/"+e.getEnvironmentId()).then((function(e){e&&e.length>0&&(n=Ct(r=e,i),function(e,t){var r,n=window.location.href;function o(){(r=window.location.href)!==n&&(n=r,t())}!function e(t,r){t(),setTimeout((function(){e(t,r)}),r)}(o,300),window.history&&window.history.pushState?window.addEventListener("popstate",o):window.addEventListener("hashchange",o)}(0,o)),t()})).catch((function(r){e.emitter.maybeReportError(new vt.LDUnexpectedResponseError((r&&r.message,r.message))),t()}))}(o,(function(){return s.emit(wt)})):s.emit(wt),"complete"!==document.readyState?window.addEventListener("load",o.start):o.start();var c=function(){n.synchronousFlush=!0,i.flush().catch((function(){})),n.synchronousFlush=!1};return document.addEventListener("visibilitychange",(function(){"hidden"===document.visibilityState&&c()})),window.addEventListener("pagehide",c),i}var St=r(75067),Pt=r.n(St),Et=(r(77531),{useCamelCaseFlagKeys:!0,sendEventsOnFlagRead:!0,reactContext:(0,n.createContext)({flags:{},flagKeyMap:{},ldClient:void 0})}),Ot=e=>{var t;return null!=(t=e.context)?t:e.user},Mt=e=>{var t={};for(var r in e)0!==r.indexOf("$")&&(t[Pt()(r)]=e[r]);return t},Ft=(e,t)=>{var r={};for(var n in e)t&&void 0===t[n]||(r[n]=e[n].current);return r},Rt=(e,t)=>{var r=e.allFlags();return t?Object.keys(t).reduce(((e,n)=>(e[n]=Object.prototype.hasOwnProperty.call(r,n)?r[n]:t[n],e)),{}):r};function Tt(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Et,n=function(e,t){return void 0===t?e:Object.keys(t).reduce(((t,r)=>(It(e,r)&&(t[r]=e[r]),t)),{})}(t,arguments.length>3?arguments[3]:void 0),{useCamelCaseFlagKeys:o=!0}=r,[i,a={}]=o?function(e){var t={},r={};for(var n in e)if(0!==n.indexOf("$")){var o=Pt()(n);t[o]=e[n],r[o]=n}return[t,r]}(n):[n];return{flags:r.sendEventsOnFlagRead?Dt(e,i,a,o):i,flagKeyMap:a}}function It(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Dt(e,t,r,n){return new Proxy(t,{get(t,o,i){var a=Reflect.get(t,o,i),s=n&&It(r,o)||It(t,o);if("symbol"==typeof o||!s)return a;if(void 0!==a){var l=n?r[o]:o;return e.variation(l,a)}}})}Mt.camelCaseKeys=Mt;var jt={wrapperName:"react-client-sdk",wrapperVersion:"3.6.0",sendEventsOnlyForVariation:!0};Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;var Bt=Object.defineProperty,Lt=Object.defineProperties,Zt=Object.getOwnPropertyDescriptors,Nt=Object.getOwnPropertySymbols,Gt=Object.prototype.hasOwnProperty,zt=Object.prototype.propertyIsEnumerable,Wt=(e,t,r)=>t in e?Bt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ut=(e,t)=>{for(var r in t||(t={}))Gt.call(t,r)&&Wt(e,r,t[r]);if(Nt)for(var r of Nt(t))zt.call(t,r)&&Wt(e,r,t[r]);return e},qt=(e,t)=>Lt(e,Zt(t));function Vt(e){return t=this,null,r=function*(){var t,r,o,{clientSideID:i,flags:a,options:s,reactOptions:l}=e,c=Ut(Ut({},Et),l),u=null!=(t=Ot(e))?t:{anonymous:!0,kind:"user"},d={},p=null!=(r=yield e.ldClient)?r:kt(i,u,Ut(Ut({},jt),s));try{yield p.waitForInitialization(e.timeout),d=Rt(p,a)}catch(e){o=e}var f=(null==s?void 0:s.bootstrap)&&"localStorage"!==s.bootstrap?s.bootstrap:d;return e=>{var{children:t}=e,[r,i]=(0,n.useState)((()=>qt(Ut({unproxiedFlags:f},Tt(p,f,c,a)),{ldClient:p,error:o})));(0,n.useEffect)((()=>{function e(e){var t=Ft(e,a);Object.keys(t).length>0&&i((e=>{var r=Ut(Ut({},e.unproxiedFlags),t);return Ut(qt(Ut({},e),{unproxiedFlags:r}),Tt(p,r,c,a))}))}function t(){var e=Rt(p,a);i((t=>Ut(qt(Ut({},t),{unproxiedFlags:e}),Tt(p,e,c,a))))}function r(e){i((t=>qt(Ut({},t),{error:e})))}return p.on("change",e),(null==o?void 0:o.name.toLowerCase().includes("timeout"))&&(p.on("failed",r),p.on("ready",t)),function(){p.off("change",e),p.off("failed",r),p.off("ready",t)}}),[]);var s=((e,t)=>{var r={};for(var n in e)Gt.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&Nt)for(var n of Nt(e))t.indexOf(n)<0&&zt.call(e,n)&&(r[n]=e[n]);return r})(r,["unproxiedFlags"]),{reactContext:l}=c;return n.createElement(l.Provider,{value:s},t)}},new Promise(((e,n)=>{var o=e=>{try{a(r.next(e))}catch(e){n(e)}},i=e=>{try{a(r.throw(e))}catch(e){n(e)}},a=t=>t.done?e(t.value):Promise.resolve(t.value).then(o,i);a((r=r.apply(t,null)).next())}));var t,r}Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;var Ht=e=>{var{ldClient:t}=(0,n.useContext)(null!=e?e:Et.reactContext);return t}},93492:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e){var t={top:0,left:0,right:0,bottom:0},r=e&&e.ownerDocument,o=r&&r.documentElement;if(!o)return t;"undefined"!==n(e.getBoundingClientRect)&&(t=e.getBoundingClientRect());var i=function(e){return null!=(t=e)&&t===t.window?e:9===e.nodeType&&e.defaultView;var t}(r),a=t.top+i.pageYOffset-o.clientTop,s=t.left+i.pageXOffset-o.clientLeft;return{top:a,left:s,right:s+(t.right-t.left),bottom:a+(t.bottom-t.top)}}function i(e,t){return e&&e.getAttribute&&e.getAttribute(t)}function a(e){var t=i(e,"data-i18n");return t||(e.nodeType===window.Node.TEXT_NODE&&e.parentElement?a(e.parentElement):void 0)}function s(e){var t;return function e(r){var n=i(r,"i18next-options");if(n||(n=i(r,"data-i18next-options")),n||(n=i(r,"i18n-options")),n||(n=i(r,"data-i18n-options")),n){var o={};try{o=JSON.parse(n)}catch(a){}o.ns&&(t=o.ns)}t||(t=i(r,"i18next-ns")),t||(t=i(r,"data-i18next-ns")),t||(t=i(r,"i18n-ns")),t||(t=i(r,"data-i18n-ns")),!t&&r.parentElement&&e(r.parentElement)}(e),t}function l(e,t){return function(r){var n=function(e){if(e.srcElement&&1===e.srcElement.nodeType&&("BUTTON"===e.srcElement.nodeName||"INPUT"===e.srcElement.nodeName))return e.srcElement.getAttribute&&""===e.srcElement.getAttribute("ignorelocizeeditor")?null:e.srcElement;var t;if(e.originalEvent&&e.originalEvent.explicitOriginalTarget)t=e.originalEvent.explicitOriginalTarget;else{var r=e.srcElement;if(r.getAttribute&&""===r.getAttribute("ignorelocizeeditor"))return null;for(var n,i=e.pageX,a=e.pageY,s=0,l=0;la&&(n=l)}s+1>r.childNodes.length&&(s=r.childNodes.length-1),n||(n=r.childNodes.length);for(var d=s;di)break;p&&8!==p.nodeType&&(t=p)}}return t}(r);if(!n)return{};r.preventDefault(),r.stopPropagation();var i=function(e){var t=e.textContent||e.text&&e.text.innerText||e.placeholder;if("string"===typeof t)return t.replace(/\n +/g,"").trim()}(n),l=a(n),c=n.getBoundingClientRect?n:n.parentElement,u=c.getBoundingClientRect(),d=u.top,p=u.left,f=u.width,h=u.height,v=window.getComputedStyle(c,null),g=parseFloat(v.getPropertyValue("padding-top")),m=parseFloat(v.getPropertyValue("padding-bottom")),b=parseFloat(v.getPropertyValue("padding-right")),y=parseFloat(v.getPropertyValue("padding-left")),A=v.getPropertyValue("box-sizing");e({tagName:c.tagName,text:i,key:l,ns:s(n)||function(){var e=t.getI18next();if(e&&e.options&&e.options.isLocizify)return e.options.defaultNS}(),box:{top:d,left:p,width:"border-box"===A?f:f-b-y,height:"border-box"===A?h:h-g-m},style:v.cssText})}}r.d(t,{yq:function(){return y}});var c,u,d,p,f,h,v=!0;try{v=self!==top}catch(C){}var g,m=[];function b(e){var t={message:"hrefChanged",href:e};c?c.postMessage(t,u):m.push(t)}var y={type:"3rdParty",init:function(e){g=e,f=function(t){t.updated.forEach((function(t){var r=t.lng,n=t.ns,o=t.key,i=t.data;e.addResource(r,n,o,i.value,{silent:!0}),e.emit("editorSaved")}))},v&&(e.options.missingKeyHandler=function(e,t,r,n,o,i){o||function(e,t,r,n){var o={message:"added",lng:e,ns:t,key:r,value:n};c?c.postMessage(o,u):m.push(o)}(e,t,r,n)}),g.on("languageChanged",(function(e){!function(e){var t={message:"setLng",lng:e};c?c.postMessage(t,u):m.push(t)}(e)}))}};function A(){return g}if("undefined"!==typeof window&&window.addEventListener("message",(function(e){if(e.data&&e.data.message)if("isLocizeEnabled"===e.data.message)c||(c=e.source,u=e.origin,d=l((function(e){c.postMessage({message:"clickedElement",payload:e},u)}),{getI18next:A})),c.postMessage({message:"locizeIsEnabled",enabled:!0},e.origin),m.forEach((function(t){c.postMessage(t,e.origin)})),m=[];else if("turnOn"===e.data.message){if(h)return c.postMessage({message:"forcedOff"},u);p||window.document.body.addEventListener("click",d,!0),p=!0,c.postMessage({message:"turnedOn"},u)}else if("turnOff"===e.data.message){if(h)return c.postMessage({message:"forcedOff"},u);p&&window.document.body.removeEventListener("click",d,!0),p=!1,c.postMessage({message:"turnedOff"},u)}else if("committed"===e.data.message){var t=e.data.payload;window.locizeSavedHandler&&window.locizeSavedHandler(t),f&&f(t)}})),"undefined"!==typeof window){var _=window.document.location.href;window.addEventListener("load",(function(){b(window.document.location.href);var e=window.document.querySelector("body");new window.MutationObserver((function(e){e.forEach((function(e){_!==window.document.location.href&&b(_=window.document.location.href)}))})).observe(e,{childList:!0,subtree:!0})}))}},75067:function(e,t,r){var n=1/0,o="[object Symbol]",i=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,a=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,s="\\ud800-\\udfff",l="\\u0300-\\u036f\\ufe20-\\ufe23",c="\\u20d0-\\u20f0",u="\\u2700-\\u27bf",d="a-z\\xdf-\\xf6\\xf8-\\xff",p="A-Z\\xc0-\\xd6\\xd8-\\xde",f="\\ufe0e\\ufe0f",h="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",v="['\u2019]",g="["+s+"]",m="["+h+"]",b="["+l+c+"]",y="\\d+",A="["+u+"]",_="["+d+"]",C="[^"+s+h+y+u+d+p+"]",w="\\ud83c[\\udffb-\\udfff]",x="[^"+s+"]",k="(?:\\ud83c[\\udde6-\\uddff]){2}",S="[\\ud800-\\udbff][\\udc00-\\udfff]",P="["+p+"]",E="\\u200d",O="(?:"+_+"|"+C+")",M="(?:"+P+"|"+C+")",F="(?:['\u2019](?:d|ll|m|re|s|t|ve))?",R="(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",T="(?:"+b+"|"+w+")"+"?",I="["+f+"]?",D=I+T+("(?:"+E+"(?:"+[x,k,S].join("|")+")"+I+T+")*"),j="(?:"+[A,k,S].join("|")+")"+D,B="(?:"+[x+b+"?",b,k,S,g].join("|")+")",L=RegExp(v,"g"),Z=RegExp(b,"g"),N=RegExp(w+"(?="+w+")|"+B+D,"g"),G=RegExp([P+"?"+_+"+"+F+"(?="+[m,P,"$"].join("|")+")",M+"+"+R+"(?="+[m,P+O,"$"].join("|")+")",P+"?"+O+"+"+F,P+"+"+R,y,j].join("|"),"g"),z=RegExp("["+E+s+l+c+f+"]"),W=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,U="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,q="object"==typeof self&&self&&self.Object===Object&&self,V=U||q||Function("return this")();var H,K=(H={"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss","\u0100":"A","\u0102":"A","\u0104":"A","\u0101":"a","\u0103":"a","\u0105":"a","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\u010e":"D","\u0110":"D","\u010f":"d","\u0111":"d","\u0112":"E","\u0114":"E","\u0116":"E","\u0118":"E","\u011a":"E","\u0113":"e","\u0115":"e","\u0117":"e","\u0119":"e","\u011b":"e","\u011c":"G","\u011e":"G","\u0120":"G","\u0122":"G","\u011d":"g","\u011f":"g","\u0121":"g","\u0123":"g","\u0124":"H","\u0126":"H","\u0125":"h","\u0127":"h","\u0128":"I","\u012a":"I","\u012c":"I","\u012e":"I","\u0130":"I","\u0129":"i","\u012b":"i","\u012d":"i","\u012f":"i","\u0131":"i","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u0138":"k","\u0139":"L","\u013b":"L","\u013d":"L","\u013f":"L","\u0141":"L","\u013a":"l","\u013c":"l","\u013e":"l","\u0140":"l","\u0142":"l","\u0143":"N","\u0145":"N","\u0147":"N","\u014a":"N","\u0144":"n","\u0146":"n","\u0148":"n","\u014b":"n","\u014c":"O","\u014e":"O","\u0150":"O","\u014d":"o","\u014f":"o","\u0151":"o","\u0154":"R","\u0156":"R","\u0158":"R","\u0155":"r","\u0157":"r","\u0159":"r","\u015a":"S","\u015c":"S","\u015e":"S","\u0160":"S","\u015b":"s","\u015d":"s","\u015f":"s","\u0161":"s","\u0162":"T","\u0164":"T","\u0166":"T","\u0163":"t","\u0165":"t","\u0167":"t","\u0168":"U","\u016a":"U","\u016c":"U","\u016e":"U","\u0170":"U","\u0172":"U","\u0169":"u","\u016b":"u","\u016d":"u","\u016f":"u","\u0171":"u","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017b":"Z","\u017d":"Z","\u017a":"z","\u017c":"z","\u017e":"z","\u0132":"IJ","\u0133":"ij","\u0152":"Oe","\u0153":"oe","\u0149":"'n","\u017f":"ss"},function(e){return null==H?void 0:H[e]});function Y(e){return z.test(e)}function $(e){return Y(e)?function(e){return e.match(N)||[]}(e):function(e){return e.split("")}(e)}var X=Object.prototype.toString,Q=V.Symbol,J=Q?Q.prototype:void 0,ee=J?J.toString:void 0;function te(e){if("string"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&X.call(e)==o}(e))return ee?ee.call(e):"";var t=e+"";return"0"==t&&1/e==-n?"-0":t}function re(e,t,r){var n=e.length;return r=void 0===r?n:r,!t&&r>=n?e:function(e,t,r){var n=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(r=r>o?o:r)<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var i=Array(o);++n=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||95===l))break;a+=e[s++]}if(!a)throw new TypeError("Missing parameter name at ".concat(r));t.push({type:"NAME",index:r,value:a}),r=s}else t.push({type:"CLOSE",index:r,value:e[r++]});else t.push({type:"OPEN",index:r,value:e[r++]});else t.push({type:"ESCAPED_CHAR",index:r++,value:e[r++]});else t.push({type:"MODIFIER",index:r,value:e[r++]})}return t.push({type:"END",index:r,value:""}),t}(e),n=t.prefixes,o=void 0===n?"./":n,a="[^".concat(i(t.delimiter||"/#?"),"]+?"),s=[],l=0,c=0,u="",d=function(e){if(c-1:void 0===k;o||(b+="(?:".concat(m,"(?=").concat(g,"))?")),S||(b+="(?=".concat(m,"|").concat(g,")"))}return new RegExp(b,a(r))}(n(e,r),t,r)}function l(e,t,r){return e instanceof RegExp?function(e,t){if(!t)return e;for(var r=/\((?:\?<(.*?)>)?(?!\?)/g,n=0,o=r.exec(e.source);o;)t.push({name:o[1]||n++,prefix:"",suffix:"",modifier:"",pattern:""}),o=r.exec(e.source);return e}(e,t):Array.isArray(e)?function(e,t,r){var n=e.map((function(e){return l(e,t,r).source}));return new RegExp("(?:".concat(n.join("|"),")"),a(r))}(e,t,r):s(e,t,r)}r.d(t,{EQ:function(){return o}})},50302:function(e,t,r){"use strict";var n=r(21914),o=r(58395);function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r