@formio/esignature 1.0.2 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/esignature.js CHANGED
@@ -1 +1 @@
1
- !function(_0x97abd9,_0x278a37){'object'==typeof exports&&'object'==typeof module?module['exports']=_0x278a37():'function'==typeof define&&define['amd']?define([],_0x278a37):'object'==typeof exports?exports['esignature']=_0x278a37():_0x97abd9['esignature']=_0x278a37();}(self,function(){return(function(){var _0x2ab043={0x0:function(_0x233b77,_0x21c58f){Object['defineProperty'](_0x21c58f,'__esModule',{'value':!0x0}),_0x21c58f['default']=function(_0xf79ae2){var _0x237a10;return''+((null==(_0x237a10=_0xf79ae2['children'])?'':_0x237a10)+'\x0a<div\x20ref=\x22esignContainer\x22>')+(null==(_0x237a10=_0xf79ae2['eSignStamp'])?'':_0x237a10)+'</div>\x0a';};},0x14e:function(_0x1959f1,_0x3c381d,_0x1ab989){'use strict';Object['defineProperty'](_0x3c381d,'__esModule',{'value':!0x0});const _0x1a15f1=_0x1ab989(0x170),_0x54c9e4=_0x1a15f1['Displays']['getDisplay']('webform'),_0x599107=_0x1a15f1['Utils']['_'];Object['defineProperty'](_0x54c9e4['prototype'],'disableSignedData',{'enumerable':!0x0,'configurable':!0x0,'get'(){var _0x326c50,_0xbe0e2e;return!_0x599107['get'](this,'form.esign.notDisableSignedData',!0x1)&&_0x599107['some'](null===(_0x326c50=this['_submission'])||void 0x0===_0x326c50?void 0x0:_0x326c50['eSignatures'],_0x41936c=>!0x0===_0x41936c['valid'])&&!!(null===(_0xbe0e2e=this['esign']['signatures'])||void 0x0===_0xbe0e2e?void 0x0:_0xbe0e2e['length']);}}),Object['defineProperty'](_0x54c9e4['prototype'],'esign',{'enumerable':!0x0,'configurable':!0x0,'get'(){var _0x3a19ce;return(null===(_0x3a19ce=this['form'])||void 0x0===_0x3a19ce?void 0x0:_0x3a19ce['esign'])||{};}}),Object['defineProperty'](_0x54c9e4['prototype'],'signedComponentsInfo',{'enumerable':!0x0,'configurable':!0x0,'get'(){const _0x3a173e=_0x599107['filter'](_0x599107['get'](this['submission'],'eSignatures',[]),_0x2cf43c=>!0x0===_0x2cf43c['valid']),_0x57b9e9=this['esign']['signatures']||[],_0x5a4f45={'all':!0x1,'components':[]};return _0x599107['isEmpty'](_0x3a173e||_0x599107['isEmpty'](_0x57b9e9))||(_0x599107['each'](_0x3a173e,_0x2f09a3=>{if(_0x5a4f45['all'])return;const {compPath:_0x10932d}=_0x2f09a3['signature']||{},_0x21ba6f=_0x599107['find'](_0x57b9e9,_0x1a4ef5=>_0x1a4ef5['component']===_0x10932d);_0x21ba6f['signAll']&&(_0x5a4f45['all']=!0x0,_0x5a4f45['components']=[]),_0x5a4f45['components']=_0x599107['concat'](_0x5a4f45['components'],_0x21ba6f['signedData']||[]);}),_0x5a4f45['components']['length']&&(_0x5a4f45['components']=_0x599107['uniq'](_0x5a4f45['components']))),_0x5a4f45;}});const _0x5eebc3=_0x54c9e4['prototype']['setSubmission'];_0x54c9e4['prototype']['setSubmission']=function(_0x4982fe,_0x3896c7){return this['setSignedSubmission'](_0x4982fe),_0x5eebc3['call'](this,_0x4982fe,_0x3896c7);},_0x54c9e4['prototype']['setSignedSubmission']=function(_0x1281e7){var _0x33d064;if((null===(_0x33d064=this['esign']['signatures'])||void 0x0===_0x33d064?void 0x0:_0x33d064['length'])&&_0x599107['some'](_0x599107['get'](_0x1281e7,'eSignatures',[]),_0x5b7dfd=>!0x0===_0x5b7dfd['valid'])){const _0x3086ed=_0x599107['omit'](_0x1281e7,['eSignatures']);this['signedSubmission']=_0x1a15f1['Utils']['fastCloneDeep'](_0x3086ed);}else this['signedSubmission']=null;};const _0x57e75b=_0x54c9e4['prototype']['onSetSubmission'];_0x54c9e4['prototype']['onSetSubmission']=function(_0x4284fe,_0x433ecb={}){_0x57e75b['call'](this,_0x4284fe,_0x433ecb),this['setESignatures'](_0x4284fe,_0x433ecb);},_0x54c9e4['prototype']['setESignatures']=function(_0x53b65a={},_0x2c969c={}){const _0x56472c=this['esign']['signatures']||[];if(!_0x56472c['length'])return;const _0x5189e2=_0x599107['groupBy'](_0x599107['get'](_0x53b65a,'eSignatures',[]),'signature.valuePath');_0x599107['each'](_0x56472c,_0x2539b0=>{if(_0x2539b0['component']){let _0x559d76=this['getComponent'](_0x2539b0['component'])||[];_0x559d76=_0x599107['isArray'](_0x559d76)?_0x559d76:[_0x559d76],_0x599107['each'](_0x559d76,_0x2214a5=>{_0x2214a5['setESignature'](_0x599107['get'](_0x5189e2[_0x2214a5['jsonPathInLocalRoot']],'[0]',null),_0x2c969c);});}}),_0x2c969c['fromSubmission']&&this['options']['cleanESignOnSetSubmission']&&_0x599107['set'](this['_submission'],'eSignatures',[]),this['disableSignedData']&&this['redraw']();};const _0x50cb44=_0x54c9e4['prototype']['checkData'];_0x54c9e4['prototype']['checkData']=function(_0x1f81af,_0x41aeb5){const _0x661ce0=_0x50cb44['call'](this,_0x1f81af,_0x41aeb5);return(null==_0x41aeb5?void 0x0:_0x41aeb5['fromSubmission'])||this['validateESignatureCustomProps'](),_0x661ce0;},_0x54c9e4['prototype']['validateESignatureCustomProps']=function(){const {submissionProps:_0x1c9c9f=''}=this['esign'];if(!_0x1c9c9f||!this['shouldValidateESignatures']())return;const _0x5c1533={},_0x86d487={},_0x341ad0=_0x599107['chain'](_0x1c9c9f)['split'](',')['map'](_0xba64b2=>_0x599107['trim'](_0xba64b2))['value']();_0x599107['each'](_0x341ad0||[],_0x367336=>{_0x599107['set'](_0x5c1533,_0x367336,_0x599107['get'](this['signedSubmission'],_0x367336)),_0x599107['set'](_0x86d487,_0x367336,_0x599107['get'](this['submission'],_0x367336));}),_0x599107['isEqual'](_0x5c1533,_0x86d487)||this['emitSignedValueChange'](!0x0);},_0x54c9e4['prototype']['shouldValidateESignatures']=function(){var _0x590b38,_0x1b8803,_0x2a31c1;return!(_0x599107['isEmpty'](_0x599107['filter']((null===(_0x590b38=this['submission'])||void 0x0===_0x590b38?void 0x0:_0x590b38['eSignatures'])||[],_0x56beeb=>!0x0===(null==_0x56beeb?void 0x0:_0x56beeb['valid'])))||_0x599107['isEmpty'](this['esign']['signatures'])||!this['signedSubmission']||(null===(_0x1b8803=this['submission'])||void 0x0===_0x1b8803?void 0x0:_0x1b8803['_id'])!==(null===(_0x2a31c1=this['signedSubmission'])||void 0x0===_0x2a31c1?void 0x0:_0x2a31c1['_id']));},_0x3c381d['default']=_0x54c9e4;},0x15e:function(_0x4902b1,_0x51c0e7,_0x3249d2){'use strict';Object['defineProperty'](_0x51c0e7,'__esModule',{'value':!0x0});const _0x311446=_0x3249d2(0x295),_0x5d5105=_0x3249d2(0x2bd),_0x720b92=_0x3249d2(0x2c1),_0x4a17a9=_0x3249d2(0x2bf),_0x293b8a=_0x3249d2(0x2bb);_0x51c0e7['default']={'component':_0x311446['default'],'nested':_0x5d5105['default'],'nestedarray':_0x720b92['default'],'form':_0x4a17a9['default'],'componentmodal':_0x293b8a['default']};},0x170:function(_0x16fa09){'use strict';_0x16fa09['exports']=window['Formio'];},0x193:function(_0xb8a86a,_0x16f709,_0xd7df37){'use strict';Object['defineProperty'](_0x16f709,'__esModule',{'value':!0x0});const _0x10ffc5=_0xd7df37(0x1ab);_0x16f709['default']={'form':_0x10ffc5['default']};},0x197:function(_0x39d0d8,_0x2c9b89,_0x41f537){'use strict';Object['defineProperty'](_0x2c9b89,'__esModule',{'value':!0x0});const _0x2eb275=_0x41f537(0x27f);_0x2c9b89['default']={'form':_0x2eb275['default']};},0x1ab:function(_0x669f8f,_0x492c6d){Object['defineProperty'](_0x492c6d,'__esModule',{'value':!0x0}),_0x492c6d['default']=function(_0x1df9be){var _0x2254d1,_0x5bb266='';return Array['prototype']['join'],_0x5bb266+='<div\x20class=\x22formio-esign-tooltip\x22>\x0a\x20\x20\x20\x20<span\x20class=\x22'+(null==(_0x2254d1=!0x0!==_0x1df9be['esign']['valid']?'formio-esign-tooltip-header-invalid':'')?'':_0x2254d1)+'\x20formio-esign-tooltip-header\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span\x20>'+(null==(_0x2254d1=_0x1df9be['t']('eSignature'))?'':_0x2254d1)+'</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span\x20class=\x22formio-esign-tooltip-status\x22\x20>'+(null==(_0x2254d1=_0x1df9be['t'](!0x0!==_0x1df9be['esign']['valid']?'invalid':'verified'))?'':_0x2254d1)+'</span>\x0a\x20\x20\x20\x20</span>\x0a\x20\x20\x20\x20',_0x1df9be['pdfForm']&&!0x0!==_0x1df9be['esign']['valid']&&(_0x5bb266+='\x0a\x20\x20\x20\x20<div\x20class=\x22formio-esign-tooltip-invalid-msg\x22>'+(null==(_0x2254d1=_0x1df9be['esignInvalidMessage'])?'':_0x2254d1)+'</div>\x0a\x20\x20\x20\x20'),_0x5bb266+='\x0a\x20\x20\x20\x20<ul\x20class=\x22formio-esign-tooltip-info\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20',_0x1df9be['pdfForm']&&(_0x5bb266+='\x0a\x20\x20\x20\x20\x20\x20\x20\x20<li\x20class=\x22formio-esign-tooltip-info-item\x22><span\x20class=\x22formio-esign-tooltip-info-item-title\x22>'+(null==(_0x2254d1=_0x1df9be['t']('Signed\x20by'))?'':_0x2254d1)+':</span><span>'+(null==(_0x2254d1=_0x1df9be['esign']?.['signature']?.['user']?.['data']||_0x1df9be['esign']?.['signature']?.['user']?.['_id'])?'':_0x2254d1)+'</span></li>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<li\x20class=\x22formio-esign-tooltip-info-item\x22><span\x20class=\x22formio-esign-tooltip-info-item-title\x22>'+(null==(_0x2254d1=_0x1df9be['t']('Signed\x20on'))?'':_0x2254d1)+':</span><span>'+(null==(_0x2254d1=new Date(_0x1df9be['esign']?.['created'])['toLocaleString']())?'':_0x2254d1)+'</span></li>\x0a\x20\x20\x20\x20\x20\x20\x20\x20'),_0x5bb266+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20<li\x20class=\x22formio-esign-tooltip-info-item\x22><span\x20class=\x22formio-esign-tooltip-info-item-title\x22>'+(null==(_0x2254d1=_0x1df9be['t']('ID'))?'':_0x2254d1)+':</span><span>'+(null==(_0x2254d1=_0x1df9be['esign']?.['_id']||'-')?'':_0x2254d1)+'</span></li>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<li\x20class=\x22formio-esign-tooltip-info-item\x22><span\x20class=\x22formio-esign-tooltip-info-item-title\x22>'+(null==(_0x2254d1=_0x1df9be['t']('Path'))?'':_0x2254d1)+':</span><span>'+(null==(_0x2254d1=_0x1df9be['esign']?.['signature']?.['valuePath']||'-')?'':_0x2254d1)+'</span></li>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<li\x20class=\x22formio-esign-tooltip-info-item\x22><span\x20class=\x22formio-esign-tooltip-info-item-title\x22>'+(null==(_0x2254d1=_0x1df9be['t']('Submission\x20Rev.'))?'':_0x2254d1)+':</span><span>'+(null==(_0x2254d1=_0x1df9be['esign']?.['signature']?.['submission']?.['_id']||'-')?'':_0x2254d1)+'</span></li>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<li\x20class=\x22formio-esign-tooltip-info-item\x22><span\x20class=\x22formio-esign-tooltip-info-item-title\x22>'+(null==(_0x2254d1=_0x1df9be['t']('Form\x20Rev.'))?'':_0x2254d1)+':</span><span>'+(null==(_0x2254d1=_0x1df9be['esign']?.['signature']?.['submission']?.['_fvid'])?'':_0x2254d1)+'</span></li>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<li\x20class=\x22formio-esign-tooltip-info-item\x22><span\x20class=\x22formio-esign-tooltip-info-item-title\x22>'+(null==(_0x2254d1=_0x1df9be['t']('User\x20ID'))?'':_0x2254d1)+':</span><span>'+(null==(_0x2254d1=_0x1df9be['esign']?.['signature']?.['user']?.['_id']||'-')?'':_0x2254d1)+'</span></li>\x0a\x20\x20\x20\x20</ul>\x0a<div>\x0a';};},0x203:function(_0x442331,_0x3acd4c){'use strict';Object['defineProperty'](_0x3acd4c,'__esModule',{'value':!0x0}),_0x3acd4c['default']='esignature';},0x268:function(_0x372aac,_0x5c6582,_0x1c5e98){'use strict';Object['defineProperty'](_0x5c6582,'__esModule',{'value':!0x0});const _0x19031a=_0x1c5e98(0x356),_0x3701ba=_0x1c5e98(0x3e0),_0x30561c=_0x1c5e98(0x36c);_0x5c6582['default']={'esignature':_0x19031a['default'],'esignStamp':_0x3701ba['default'],'esignTooltip':_0x30561c['default']};},0x26e:function(_0x578c19,_0x31fd78){Object['defineProperty'](_0x31fd78,'__esModule',{'value':!0x0}),_0x31fd78['default']=function(_0x3a2bdc){var _0x18f67e,_0x36cc71='';return Array['prototype']['join'],_0x36cc71+='<div\x20class=\x22formio-esign-tooltip\x22>\x0a\x20\x20\x20\x20<span\x20class=\x22'+(null==(_0x18f67e=!0x0!==_0x3a2bdc['esign']['valid']?'formio-esign-tooltip-header-invalid':'')?'':_0x18f67e)+'\x20formio-esign-tooltip-header\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span\x20>'+(null==(_0x18f67e=_0x3a2bdc['t']('eSignature'))?'':_0x18f67e)+'</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span\x20class=\x22formio-esign-tooltip-status\x22\x20>'+(null==(_0x18f67e=_0x3a2bdc['t'](!0x0!==_0x3a2bdc['esign']['valid']?'invalid':'verified'))?'':_0x18f67e)+'</span>\x0a\x20\x20\x20\x20</span>\x0a\x20\x20\x20\x20',_0x3a2bdc['pdfForm']&&!0x0!==_0x3a2bdc['esign']['valid']&&(_0x36cc71+='\x0a\x20\x20\x20\x20<div\x20class=\x22formio-esign-tooltip-invalid-msg\x22>'+(null==(_0x18f67e=_0x3a2bdc['esignInvalidMessage'])?'':_0x18f67e)+'</div>\x0a\x20\x20\x20\x20'),_0x36cc71+='\x0a\x20\x20\x20\x20<ul\x20class=\x22formio-esign-tooltip-info\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20',_0x3a2bdc['pdfForm']&&(_0x36cc71+='\x0a\x20\x20\x20\x20\x20\x20\x20\x20<li\x20class=\x22formio-esign-tooltip-info-item\x22><span\x20class=\x22formio-esign-tooltip-info-item-title\x22>'+(null==(_0x18f67e=_0x3a2bdc['t']('Signed\x20by'))?'':_0x18f67e)+':</span><span>'+(null==(_0x18f67e=_0x3a2bdc['esign']?.['signature']?.['user']?.['data']||_0x3a2bdc['esign']?.['signature']?.['user']?.['_id'])?'':_0x18f67e)+'</span></li>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<li\x20class=\x22formio-esign-tooltip-info-item\x22><span\x20class=\x22formio-esign-tooltip-info-item-title\x22>'+(null==(_0x18f67e=_0x3a2bdc['t']('Signed\x20on'))?'':_0x18f67e)+':</span><span>'+(null==(_0x18f67e=new Date(_0x3a2bdc['esign']?.['created'])['toLocaleString']())?'':_0x18f67e)+'</span></li>\x0a\x20\x20\x20\x20\x20\x20\x20\x20'),_0x36cc71+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20<li\x20class=\x22formio-esign-tooltip-info-item\x22><span\x20class=\x22formio-esign-tooltip-info-item-title\x22>'+(null==(_0x18f67e=_0x3a2bdc['t']('ID'))?'':_0x18f67e)+':</span><span>'+(null==(_0x18f67e=_0x3a2bdc['esign']?.['_id']||'-')?'':_0x18f67e)+'</span></li>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<li\x20class=\x22formio-esign-tooltip-info-item\x22><span\x20class=\x22formio-esign-tooltip-info-item-title\x22>'+(null==(_0x18f67e=_0x3a2bdc['t']('Path'))?'':_0x18f67e)+':</span><span>'+(null==(_0x18f67e=_0x3a2bdc['esign']?.['signature']?.['valuePath']||'-')?'':_0x18f67e)+'</span></li>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<li\x20class=\x22formio-esign-tooltip-info-item\x22><span\x20class=\x22formio-esign-tooltip-info-item-title\x22>'+(null==(_0x18f67e=_0x3a2bdc['t']('Submission\x20Rev.'))?'':_0x18f67e)+':</span><span>'+(null==(_0x18f67e=_0x3a2bdc['esign']?.['signature']?.['submission']?.['_id']||'-')?'':_0x18f67e)+'</span></li>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<li\x20class=\x22formio-esign-tooltip-info-item\x22><span\x20class=\x22formio-esign-tooltip-info-item-title\x22>'+(null==(_0x18f67e=_0x3a2bdc['t']('Form\x20Rev.'))?'':_0x18f67e)+':</span><span>'+(null==(_0x18f67e=_0x3a2bdc['esign']?.['signature']?.['submission']?.['_fvid'])?'':_0x18f67e)+'</span></li>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<li\x20class=\x22formio-esign-tooltip-info-item\x22><span\x20class=\x22formio-esign-tooltip-info-item-title\x22>'+(null==(_0x18f67e=_0x3a2bdc['t']('User\x20ID'))?'':_0x18f67e)+':</span><span>'+(null==(_0x18f67e=_0x3a2bdc['esign']?.['signature']?.['user']?.['_id']||'-')?'':_0x18f67e)+'</span></li>\x0a\x20\x20\x20\x20</ul>\x0a<div>\x0a';};},0x27f:function(_0x1b5bb5,_0x53bc55){Object['defineProperty'](_0x53bc55,'__esModule',{'value':!0x0}),_0x53bc55['default']=function(_0x142def){var _0x23f386,_0xf67c1d='';return Array['prototype']['join'],_0x142def['esign']&&(_0xf67c1d+='\x0a<span\x20class=\x22formio-esign-stamp\x20\x20'+(null==(_0x23f386=!0x0===_0x142def['esign']['valid']?'':'formio-esign-stamp-invalid')?'':_0x23f386)+'\x22>\x0a\x20\x20\x20\x20<i\x20ref=\x22esignTooltip\x22\x20style=\x22cursor:pointer\x22\x20data-tooltip=\x22'+(null==(_0x23f386=_0x142def['esignTooltip'])?'':_0x23f386)+'\x22\x20class=\x27'+(null==(_0x23f386=_0x142def['iconClass'](!0x0!==_0x142def['esign']['valid']?'remove-sign':'ok-sign',!0x1))?'':_0x23f386)+'\x27\x20aria-hidden=\x27true\x27></i>\x20\x0a\x20\x20\x20\x20<span\x20class=\x22formio-esign-stamp-description\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20',!0x0!==_0x142def['esign']['valid']||_0x142def['pdfForm']||(_0xf67c1d+='\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Signed\x20by\x20'+(null==(_0x23f386=_0x142def['esign']?.['signature']?.['user']?.['data']||_0x142def['esign']?.['signature']?.['user']?.['_id'])?'':_0x23f386)+'\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20',_0x142def['esign']?.['created']&&(_0xf67c1d+='\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20on\x20'+(null==(_0x23f386=new Date(_0x142def['esign']['created'])['toLocaleString']())?'':_0x23f386)+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'),_0xf67c1d+='\x0a\x20\x20\x20\x20\x20\x20\x20\x20</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20'),_0xf67c1d+='\x0a\x20\x20\x20\x20\x20\x20\x20\x20',!0x0===_0x142def['esign']['valid']&&_0x142def['pdfForm']&&(_0xf67c1d+='\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(null==(_0x23f386=_0x142def['t']('Signed'))?'':_0x23f386)+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20'),_0xf67c1d+='\x0a\x20\x20\x20\x20\x20\x20\x20\x20',!0x0!==_0x142def['esign']['valid']&&(_0xf67c1d+='\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(null==(_0x23f386=_0x142def['esignInvalidMessage'])?'':_0x23f386)+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20'),_0xf67c1d+='\x0a\x20\x20\x20\x20</span>\x0a</span>\x0a'),_0xf67c1d+'\x0a';};},0x295:function(_0x42de0a,_0x473ec0,_0x4cebb1){'use strict';Object['defineProperty'](_0x473ec0,'__esModule',{'value':!0x0});const _0x55a4b6=_0x4cebb1(0x170),_0xcdc64d=_0x55a4b6['Components']['components']['component'],_0x7195d8=_0x55a4b6['Utils']['_'],_0x458a3f=_0xcdc64d['prototype']['init'];_0xcdc64d['prototype']['init']=function(){var _0xe7bf11,_0x46935f,_0x6e8234;this['builderMode']||(null===(_0xe7bf11=this['options'])||void 0x0===_0xe7bf11?void 0x0:_0xe7bf11['building'])||(null===(_0x46935f=this['options'])||void 0x0===_0x46935f?void 0x0:_0x46935f['inFormBuilder'])||!this['options']['root']||(this['_parentPath']=(null===(_0x6e8234=this['options'])||void 0x0===_0x6e8234?void 0x0:_0x6e8234['parentPath'])||'',this['esignConfig']=this['getEsignConfig']()),_0x458a3f['call'](this);},_0xcdc64d['prototype']['getEsignConfig']=function(){const _0x44ff6f=this['esign']['signatures']||[];return _0x7195d8['find'](_0x44ff6f,_0x5afffb=>_0x5afffb['component']===this['jsonPathInLocalRoot']);},Object['defineProperty'](_0xcdc64d['prototype'],'esign',{'enumerable':!0x0,'configurable':!0x0,'get'(){var _0xc88524;return(null===(_0xc88524=this['root'])||void 0x0===_0xc88524?void 0x0:_0xc88524['esign'])||{};}}),Object['defineProperty'](_0xcdc64d['prototype'],'jsonPathInLocalRoot',{'enumerable':!0x0,'configurable':!0x0,'get'(){return _0x7195d8['replace'](this['pathInLocalRoot']||'',new RegExp('\x5c[[0-9]*\x5c]','g'),'');}}),Object['defineProperty'](_0xcdc64d['prototype'],'pathInLocalRoot',{'enumerable':!0x0,'configurable':!0x0,'get'(){return _0x7195d8['replace'](this['path'],this['_parentPath'],'');}}),_0xcdc64d['prototype']['attachESignTooltip']=function(_0x4cb15c){(_0x4cb15c=_0x4cb15c||this['element'])&&(this['destroyESignTooltip'](),this['loadRefs'](_0x4cb15c,{'esignTooltip':'multiple'}),this['refs']['esignTooltip']&&(this['esignTooltip']=_0x7195d8['map'](this['refs']['esignTooltip']||[],_0x54e35f=>this['createTooltip'](_0x54e35f,{'theme':'formioEsign'}))));};const _0x139be4=_0xcdc64d['prototype']['attach'];_0xcdc64d['prototype']['attach']=function(_0xb53529){const _0x57bfc9=_0x139be4['call'](this,_0xb53529);return this['attachESignTooltip'](_0xb53529),this['attachESignatureValidation'](),_0x57bfc9;},_0xcdc64d['prototype']['setESignature']=function(_0x3b9acb,_0x3b6a8a){var _0x203d39;if(!this['esignConfig'])return void(this['eSignature']&&(this['eSignature']=null));if(_0x3b9acb&&_0x3b6a8a['fromSubmission']&&this['options']['cleanESignOnSetSubmission'])return this['eSignature']=null,this['resetValue'](),void this['redraw']();const _0x1a2f39=!_0x7195d8['isEqual'](this['eSignature'],_0x3b9acb);this['eSignature']=_0x3b9acb,this['attachESignatureValidation'](),_0x1a2f39&&(this['eSignature']&&!0x0!==(null===(_0x203d39=this['eSignature'])||void 0x0===_0x203d39?void 0x0:_0x203d39['valid'])&&this['resetValue'](),this['redraw']());},_0xcdc64d['prototype']['attachESignatureValidation']=function(){var _0x32f934;!_0x7195d8['isEmpty'](this['esignConfig'])&&(null===(_0x32f934=this['eSignature'])||void 0x0===_0x32f934?void 0x0:_0x32f934['valid'])&&this['on']('signedValueChanged',_0x296127=>{var _0x607c48;if(!(null===(_0x607c48=this['eSignature'])||void 0x0===_0x607c48?void 0x0:_0x607c48['valid'])||!_0x296127)return;const {valuePath:_0x17786e,compPath:_0x2beb8a,parent:_0x24c200,customProps:_0xf60b12}=_0x296127;_0xf60b12&&this['invalidateESignature'](),_0x17786e===this['pathInLocalRoot']&&this['invalidateESignature'](!0x0),this['isESignatureDataPath'](_0x2beb8a,_0x24c200)&&this['invalidateESignature']();});},_0xcdc64d['prototype']['invalidateESignature']=function(_0x275861){this['eSignature']['valid']='The\x20data\x20has\x20changed',_0x275861||this['resetValue'](),this['redraw']();},_0xcdc64d['prototype']['isESignatureDataPath']=function(_0x549bfc,_0x1476cd){if(!_0x549bfc)return!0x1;const {signAll:_0x355e38,signedData:_0x2e6588=[]}=this['esignConfig']||{};return _0x355e38||_0x7195d8['some'](_0x2e6588,_0x4d524c=>_0x1476cd&&_0x7195d8['startsWith'](_0x4d524c,_0x549bfc+'.')||_0x4d524c===_0x549bfc||_0x7195d8['startsWith'](_0x549bfc,_0x4d524c+'.'));},_0xcdc64d['prototype']['formatEsignTooltip']=function(_0x2ed783=''){const _0xd81cb6=_0x2ed783['replace'](/(?:\r\n|\r|\n)/g,'');return this['getFormattedAttribute'](_0xd81cb6);},_0xcdc64d['prototype']['renderESignature']=function(_0x5e1346){return this['eSignature']&&this['getEsignConfig']?this['renderTemplate']('esignature',{'children':_0x5e1346,'eSignStamp':this['renderEsignStamp']()}):_0x5e1346;};const _0x412203=_0xcdc64d['prototype']['render'];_0xcdc64d['prototype']['render']=function(_0x15479f='Unknown\x20component:\x20'+this['component']['type'],_0x3e901c=!0x1){return _0x15479f=this['renderESignature'](_0x15479f),_0x412203['call'](this,_0x15479f,_0x3e901c);},_0xcdc64d['prototype']['renderEsignTooltip']=function(){const {tooltipTemplate:_0x26a3db}=this['esign'],_0x1c96f2={'pdfForm':'pdf'===this['options']['display'],'esign':this['eSignature'],'esignInvalidMessage':this['getInvalidESigntureMessage'](!0x0)},_0x29afed=_0x26a3db?this['renderString'](_0x26a3db,_0x1c96f2):this['renderTemplate']('esignTooltip',_0x1c96f2);return this['formatEsignTooltip'](_0x29afed);};const _0x574507=_0xcdc64d['prototype']['renderModalPreview'];_0xcdc64d['prototype']['renderModalPreview']=function(_0x2e3f32){return this['renderESignature'](_0x574507['call'](this,_0x2e3f32));},_0xcdc64d['prototype']['getInvalidESigntureMessage']=function(_0x55bf4b){if(!0x0===this['eSignature']['valid'])return'';if(_0x55bf4b)return'pdf'===this['options']['display']?this['t']('{{reason}}.\x20Please\x20sign\x20again.',{'reason':this['eSignature']['valid']}):'';const _0xd86f1e=this['t']('Invalid\x20eSignature.');return'pdf'===this['options']['display']?_0xd86f1e:_0xd86f1e+'\x20'+this['t']('{{reason}}.\x20Please\x20sign\x20again.',{'reason':this['eSignature']['valid']});},_0xcdc64d['prototype']['renderEsignStamp']=function(){const _0x2f87d1=this['renderEsignTooltip'](),_0x3d70cb={'pdfForm':'pdf'===this['options']['display'],'esign':this['eSignature'],'esignTooltip':_0x2f87d1,'esignIconClass':this['iconClass'](!0x0!==this['eSignature']['valid']?'times-circle':'check-circle',!0x1),'esignInvalidMessage':this['getInvalidESigntureMessage']()},{stampTemplate:_0x5ca34d}=this['esign'];return _0x5ca34d?this['renderString'](_0x5ca34d,_0x3d70cb):this['renderTemplate']('esignStamp',_0x3d70cb);},_0xcdc64d['prototype']['destroyESignTooltip']=function(){_0x7195d8['each'](this['esignTooltip']||[],_0x16df2e=>{var _0x1c7d53;_0x16df2e&&!(null===(_0x1c7d53=_0x16df2e['state'])||void 0x0===_0x1c7d53?void 0x0:_0x1c7d53['isDestroyed'])&&_0x16df2e['destroy']&&_0x16df2e['destroy']();});};const _0x47cae8=_0xcdc64d['prototype']['removeEventListeners'];_0xcdc64d['prototype']['removeEventListeners']=function(){_0x47cae8['call'](this),this['destroyESignTooltip']();};const _0xd37d78=Object['getOwnPropertyDescriptor'](_0xcdc64d['prototype'],'disabled');Object['defineProperty'](_0xcdc64d['prototype'],'disabled',{'enumerable':!0x0,'configurable':!0x0,'get'(){var _0x1120bb;return _0xd37d78['get']['call'](this)||(null===(_0x1120bb=this['parent'])||void 0x0===_0x1120bb?void 0x0:_0x1120bb['disabled'])||this['shouldDisableSignedData']();}}),_0xcdc64d['prototype']['shouldDisableSignedData']=function(){return _0x7195d8['get'](this,'root.disableSignedData',!0x1)&&this['isValueSigned']();},_0xcdc64d['prototype']['isValueSigned']=function(){var _0x2beffd,_0x26117b;if(!0x0===(null===(_0x2beffd=this['eSignature'])||void 0x0===_0x2beffd?void 0x0:_0x2beffd['valid']))return!0x0;const _0x40a8e8=(null===(_0x26117b=this['root'])||void 0x0===_0x26117b?void 0x0:_0x26117b['signedComponentsInfo'])||{};if(null==_0x40a8e8?void 0x0:_0x40a8e8['all'])return!0x0;const _0x347931=this['jsonPathInLocalRoot'];return _0x7195d8['some']((null==_0x40a8e8?void 0x0:_0x40a8e8['components'])||[],_0x1f11d7=>_0x347931===_0x1f11d7||_0x7195d8['startsWith'](_0x347931,_0x1f11d7+'.'));};const _0x13141e=_0xcdc64d['prototype']['checkData'];_0xcdc64d['prototype']['checkData']=function(_0x57668b,_0x449870,_0x42ff6e){const _0x1edc4c=_0x13141e['call'](this,_0x57668b,_0x449870,_0x42ff6e);return(null==_0x449870?void 0x0:_0x449870['fromSubmission'])||this['validateSignedValue'](),_0x1edc4c;},_0xcdc64d['prototype']['checkSignedDataChange']=function(_0x34e556={}){return this['hasSignedValueChanged'](_0x34e556);},_0xcdc64d['prototype']['validateSignedValue']=function(){var _0x4bb586;!this['options']['inFormBuilder']&&!this['builderMode']&&!this['options']['building']&&this['options']['root']&&(null===(_0x4bb586=this['root'])||void 0x0===_0x4bb586?void 0x0:_0x4bb586['shouldValidateESignatures']())&&this['hasSignedValueChanged']()&&this['emitSignedValueChange']();},_0xcdc64d['prototype']['emitSignedValueChange']=function(_0x33a377){this['emit']('signedValueChanged',{'valuePath':this['pathInLocalRoot'],'compPath':this['jsonPathInLocalRoot'],'parent':this['hasSignedChildren'](),'customProps':_0x33a377});},_0xcdc64d['prototype']['getValuePathInSignedData']=function(){if(this['row']){let _0x4b1a0e,_0x10b56b=this;for(;_0x10b56b&&_0x10b56b['row']&&!_0x4b1a0e;)_0x10b56b=_0x10b56b['parent'],'tagpad'===_0x10b56b['type']&&(_0x4b1a0e=_0x10b56b);if(_0x4b1a0e){const _0x3ffa2f=_0x7195d8['split'](this['pathInLocalRoot'],new RegExp('^'+_0x4b1a0e['pathInLocalRoot']+'\x5c[[0-9]*\x5c]','g'))[0x1];return _0x7195d8['split'](this['pathInLocalRoot'],_0x3ffa2f)[0x0]+'.data'+_0x3ffa2f;}}return this['pathInLocalRoot'];},_0xcdc64d['prototype']['compareSignedValue']=function(_0x2b0d96){return!this['isEqual'](_0x7195d8['isNil'](_0x2b0d96)?this['emptyValue']:_0x2b0d96,_0x7195d8['isNil'](this['dataValue'])?this['emptyValue']:this['dataValue']);},_0xcdc64d['prototype']['hasSignedValueChanged']=function(_0x932af5={}){var _0x25b796,_0x382c4f;const {checkAll:_0x308b2b,signedData:_0x1fb385}=_0x932af5,_0x4c28d3=_0x308b2b||this['isValueSigned']();if(!this['component']['input']||!0x0!==this['component']['persistent']||!_0x4c28d3)return!0x1;const _0x1e1630=_0x1fb385||(null===(_0x382c4f=null===(_0x25b796=this['root'])||void 0x0===_0x25b796?void 0x0:_0x25b796['signedSubmission'])||void 0x0===_0x382c4f?void 0x0:_0x382c4f['data']);if(!_0x1e1630)return!0x1;const _0x5ab915=_0x7195d8['get'](_0x1e1630,this['getValuePathInSignedData']());return this['compareSignedValue'](_0x5ab915);},_0xcdc64d['prototype']['hasSignedChildren']=_0x4c551c=>!0x1,_0x473ec0['default']=_0xcdc64d;},0x2bb:function(_0xa44b86,_0x53a838,_0x3b8fb6){'use strict';Object['defineProperty'](_0x53a838,'__esModule',{'value':!0x0});const _0x148a9e=_0x3b8fb6(0x170)['Components']['components']['componentmodal'],_0x474989=_0x148a9e['prototype']['setOpenEventListener'];_0x148a9e['prototype']['setOpenEventListener']=function(){_0x474989['call'](this),this['component']['attachESignTooltip']();},_0x53a838['default']=_0x148a9e;},0x2bd:function(_0x157914,_0x3aca8d,_0x1e68b8){'use strict';Object['defineProperty'](_0x3aca8d,'__esModule',{'value':!0x0});const _0x16f27a=_0x1e68b8(0x170),_0x49e131=_0x16f27a['Components']['components']['nested'],_0x25a9cf=_0x16f27a['Utils']['_'];_0x49e131['prototype']['hasSignedValueChanged']=()=>!0x1,_0x49e131['prototype']['checkSignedDataChange']=function(_0x1ba224={}){const {checkAll:_0x5349b6}=_0x1ba224;return!(!_0x5349b6&&!this['hasSignedChildren']())&&_0x25a9cf['some'](this['getComponents']()||[],_0x4bb0f3=>_0x4bb0f3['checkSignedDataChange'](_0x1ba224));},_0x49e131['prototype']['hasSignedChildren']=function(){var _0xff206;const _0x5de983=(null===(_0xff206=this['root'])||void 0x0===_0xff206?void 0x0:_0xff206['signedComponentsInfo'])||{};if(null==_0x5de983?void 0x0:_0x5de983['all'])return!0x0;const _0x591a37=this['jsonPathInLocalRoot'];return _0x25a9cf['some']((null==_0x5de983?void 0x0:_0x5de983['components'])||[],_0x2ea069=>_0x591a37===_0x2ea069||_0x25a9cf['startsWith'](_0x591a37,_0x2ea069+'.'||_0x25a9cf['startsWith'](_0x2ea069,_0x591a37+'.')));},_0x3aca8d['default']=_0x49e131;},0x2bf:function(_0x5503c1,_0x330da4,_0xc0acb9){'use strict';Object['defineProperty'](_0x330da4,'__esModule',{'value':!0x0});const _0xfd2e28=_0xc0acb9(0x170),_0x4e21bb=_0xfd2e28['Components']['components']['form'],_0x1bba3a=(_0xfd2e28['Utils']['_'],_0x4e21bb['prototype']['onSetSubFormValue']);_0x4e21bb['prototype']['onSetSubFormValue']=function(_0x58393f,_0x1fa460){const _0x791a97=(null==_0x1fa460?void 0x0:_0x1fa460['fromSubmission'])&&this['subForm'];_0x791a97&&this['subForm']['setSignedSubmission'](_0x58393f),_0x1bba3a['call'](this,_0x58393f,_0x1fa460),_0x791a97&&this['subForm']['setESignatures'](_0x58393f);};const _0x20efaa=_0x4e21bb['prototype']['getSubOptions'];_0x4e21bb['prototype']['getSubOptions']=function(_0x52eb42={}){return _0x52eb42['parentPath']=this['path']+'.data.',_0x20efaa['call'](this,_0x52eb42);},_0x4e21bb['prototype']['getValuePathInSignedData']=function(){return this['pathInLocalRoot']+'.data';},_0x4e21bb['prototype']['compareSignedValue']=function(_0x25cce8){return!!this['subForm']&&this['subForm']['checkSignedDataChange']({'checkAll':!0x0,'signedData':_0x25cce8});};const _0x27eb8c=_0x4e21bb['prototype']['isInternalEvent'];_0x4e21bb['prototype']['isInternalEvent']=function(_0x5cf1f4){return _0x27eb8c['call'](this,_0x5cf1f4)||'signedValueChanged'===_0x5cf1f4;},_0x330da4['default']=_0x4e21bb;},0x2c1:function(_0x5073c7,_0x2d0067,_0x34e343){'use strict';Object['defineProperty'](_0x2d0067,'__esModule',{'value':!0x0});const _0x598c85=_0x34e343(0x170),_0x15691c=_0x598c85['Components']['components']['nestedarray'],_0x2ed968=_0x598c85['Utils']['_'];_0x15691c['prototype']['hasSignedValueChanged']=function(_0x4ccf9d={}){var _0x3f4187,_0x3476c6;const {checkAll:_0xd630bd,signedData:_0x1c3664}=_0x4ccf9d;if(_0xd630bd||this['hasSignedChildren']()){const _0x4ce5ab=_0x2ed968['get'](_0x1c3664||(null===(_0x3476c6=null===(_0x3f4187=this['root'])||void 0x0===_0x3f4187?void 0x0:_0x3f4187['signedSubmission'])||void 0x0===_0x3476c6?void 0x0:_0x3476c6['data']),this['getValuePathInSignedData']());if(_0x2ed968['keys'](this['dataValue'])['length']!==_0x2ed968['keys'](_0x4ce5ab)['length'])return!0x0;}return!0x1;},_0x2d0067['default']=_0x15691c;},0x2ed:function(_0x5bdb23,_0x28d50b){Object['defineProperty'](_0x28d50b,'__esModule',{'value':!0x0}),_0x28d50b['default']=function(_0x3a43bb){var _0x6e0d05;return''+((null==(_0x6e0d05=_0x3a43bb['children'])?'':_0x6e0d05)+'\x0a<div\x20ref=\x22esignContainer\x22>')+(null==(_0x6e0d05=_0x3a43bb['eSignStamp'])?'':_0x6e0d05)+'</div>\x0a';};},0x2f5:function(_0x45d5be,_0x1d8d2a,_0x3d3983){'use strict';Object['defineProperty'](_0x1d8d2a,'__esModule',{'value':!0x0});const _0x587ed8=_0x3d3983(0x14e);_0x1d8d2a['default']={'webform':_0x587ed8['default']};},0x339:function(_0x9e3b3b,_0x2cf4bb,_0x396ec2){'use strict';Object['defineProperty'](_0x2cf4bb,'__esModule',{'value':!0x0});const _0x52a5af=_0x396ec2(0x39d),_0x31860e=_0x396ec2(0x197),_0x5a93cb=_0x396ec2(0x193);_0x2cf4bb['default']={'esignature':_0x52a5af['default'],'esignStamp':_0x31860e['default'],'esignTooltip':_0x5a93cb['default']};},0x34a:function(_0x43adb9,_0x193150){Object['defineProperty'](_0x193150,'__esModule',{'value':!0x0}),_0x193150['default']=function(_0x306048){var _0x2576f1,_0x35f310='';return Array['prototype']['join'],_0x306048['esign']&&(_0x35f310+='\x0a<span\x20class=\x22formio-esign-stamp\x20\x20'+(null==(_0x2576f1=!0x0===_0x306048['esign']['valid']?'':'formio-esign-stamp-invalid')?'':_0x2576f1)+'\x22>\x0a\x20\x20\x20\x20<i\x20ref=\x22esignTooltip\x22\x20style=\x22cursor:pointer\x22\x20data-tooltip=\x22'+(null==(_0x2576f1=_0x306048['esignTooltip'])?'':_0x2576f1)+'\x22\x20class=\x27'+(null==(_0x2576f1=_0x306048['esignIconClass'])?'':_0x2576f1)+'\x27\x20aria-hidden=\x27true\x27></i>\x20\x0a\x20\x20\x20\x20<span\x20class=\x22formio-esign-stamp-description\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20',!0x0!==_0x306048['esign']['valid']||_0x306048['pdfForm']||(_0x35f310+='\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Signed\x20by\x20'+(null==(_0x2576f1=_0x306048['esign']?.['signature']?.['user']?.['data']||_0x306048['esign']?.['signature']?.['user']?.['_id'])?'':_0x2576f1)+'\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20',_0x306048['esign']?.['created']&&(_0x35f310+='\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20on\x20'+(null==(_0x2576f1=new Date(_0x306048['esign']['created'])['toLocaleString']())?'':_0x2576f1)+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'),_0x35f310+='\x0a\x20\x20\x20\x20\x20\x20\x20\x20</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20'),_0x35f310+='\x0a\x20\x20\x20\x20\x20\x20\x20\x20',!0x0===_0x306048['esign']['valid']&&_0x306048['pdfForm']&&(_0x35f310+='\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(null==(_0x2576f1=_0x306048['t']('Signed'))?'':_0x2576f1)+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20'),_0x35f310+='\x0a\x20\x20\x20\x20\x20\x20\x20\x20',!0x0!==_0x306048['esign']['valid']&&(_0x35f310+='\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(null==(_0x2576f1=_0x306048['esignInvalidMessage'])?'':_0x2576f1)+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20'),_0x35f310+='\x0a\x20\x20\x20\x20</span>\x0a</span>\x0a'),_0x35f310+'\x0a';};},0x356:function(_0x5bc45b,_0x3aaf78,_0x21952b){'use strict';Object['defineProperty'](_0x3aaf78,'__esModule',{'value':!0x0});const _0x1068d5=_0x21952b(0x0);_0x3aaf78['default']={'form':_0x1068d5['default']};},0x36c:function(_0x3cc522,_0x42e332,_0x1c6b05){'use strict';Object['defineProperty'](_0x42e332,'__esModule',{'value':!0x0});const _0x34ee65=_0x1c6b05(0x26e);_0x42e332['default']={'form':_0x34ee65['default']};},0x39d:function(_0x4606c,_0x5cc71c,_0x101844){'use strict';Object['defineProperty'](_0x5cc71c,'__esModule',{'value':!0x0});const _0x1494a0=_0x101844(0x2ed);_0x5cc71c['default']={'form':_0x1494a0['default']};},0x3c9:function(_0x9f264,_0x5b1d8b,_0x3348ea){'use strict';Object['defineProperty'](_0x5b1d8b,'__esModule',{'value':!0x0});const _0x3d829b=_0x3348ea(0x268),_0x33b842=_0x3348ea(0x339);_0x5b1d8b['default']={'bootstrap':_0x3d829b['default'],'bootstrap3':_0x33b842['default'],'bootstrap4':_0x3d829b['default'],'bootstrap5':_0x3d829b['default']};},0x3e0:function(_0x3d62d4,_0x4dc260,_0x4417de){'use strict';Object['defineProperty'](_0x4dc260,'__esModule',{'value':!0x0});const _0x1a3978=_0x4417de(0x34a);_0x4dc260['default']={'form':_0x1a3978['default']};}},_0x5e38eb={};function _0x320b76(_0x1fa282){var _0x108236=_0x5e38eb[_0x1fa282];if(void 0x0!==_0x108236)return _0x108236['exports'];var _0xee7f29=_0x5e38eb[_0x1fa282]={'exports':{}};return _0x2ab043[_0x1fa282](_0xee7f29,_0xee7f29['exports'],_0x320b76),_0xee7f29['exports'];}var _0x3e30f3={};return(function(){'use strict';var _0x450011=_0x3e30f3;const _0x1e05f0=_0x320b76(0x15e),_0x217bf6=_0x320b76(0x3c9),_0x4faea4=_0x320b76(0x203),_0x1c6de2=_0x320b76(0x2f5);_0x450011['default']={'components':_0x1e05f0['default'],'templates':_0x217bf6['default'],'library':_0x4faea4['default'],'displays':_0x1c6de2['default']};}()),_0x3e30f3['default'];}());});
1
+ !function(_0x26ee44,_0x401145){'object'==typeof exports&&'object'==typeof module?module['exports']=_0x401145():'function'==typeof define&&define['amd']?define([],_0x401145):'object'==typeof exports?exports['esignature']=_0x401145():_0x26ee44['esignature']=_0x401145();}(self,function(){return(function(){var _0x438f24={0x0:function(_0x5e3006,_0x4cf884){Object['defineProperty'](_0x4cf884,'__esModule',{'value':!0x0}),_0x4cf884['default']=function(_0x2f1e1d){var _0x5f33bf;return''+((null==(_0x5f33bf=_0x2f1e1d['children'])?'':_0x5f33bf)+'\x0a<div\x20ref=\x22esignContainer\x22>')+(null==(_0x5f33bf=_0x2f1e1d['eSignStamp'])?'':_0x5f33bf)+'</div>\x0a';};},0xfd:function(_0x224025,_0x2dc9d0){'use strict';function _0x2926d4(_0x320628){return!Number['isNaN'](Date['parse'](_0x320628));}function _0xd2ed6d(_0x5d99b9){return(_0x5d99b9=_0x5d99b9['replace'](/\*\./,'(\x5cS+\x5c.)?')['replace'](/([A-Za-z0-9])\.([A-Za-z0-9])/g,'$1\x5c.$2'))['match'](/^\(+?http|capacitor/)||(_0x5d99b9='((http[s]?|capacitor)://)?'+_0x5d99b9),_0x5d99b9;}Object['defineProperty'](_0x2dc9d0,'__esModule',{'value':!0x0}),_0x2dc9d0['isValidDate']=_0x2926d4,_0x2dc9d0['dateStringToMilliseconds']=function(_0x51a386){if(!_0x2926d4(_0x51a386))throw new Error('Provided\x20invalid\x20date\x20string.');return new Date(_0x51a386)['getTime']();},_0x2dc9d0['normalizeUrl']=_0xd2ed6d,_0x2dc9d0['capitalize']=function(_0x3d969c){return'string'!=typeof _0x3d969c?'':''+_0x3d969c['charAt'](0x0)['toUpperCase']()+_0x3d969c['slice'](0x1)['toLowerCase']();},_0x2dc9d0['isAllowedUrl']=function(_0x1a31df=[],_0x1b33cc){return['file://(.*)','((http[s]?|capacitor)://)?(\x5cS+\x5c.)?localhost(:[0-9]+)?','((http[s]?|capacitor)://)?(\x5cS+\x5c.)?lvh.me(:[0-9]+)?','((http[s]?|capacitor)://)?(\x5cS+\x5c.)?\x5cS+\x5c.local(:[0-9]+)?']['concat'](_0x1a31df=_0x1a31df||[])['some'](_0x1f90bf=>new RegExp('^'+_0xd2ed6d(_0x1f90bf),'i')['test'](_0x1b33cc));};},0x10d:function(_0x1f36cf,_0x248d80,_0x343eab){'use strict';Object['defineProperty'](_0x248d80,'__esModule',{'value':!0x0});const _0x14384f=_0x343eab(0x170),_0x2e1667=_0x14384f['Components']['components']['address'],_0x58f4d3=_0x14384f['Utils']['_'];_0x2e1667['prototype']['hasSignedValueChanged']=function(_0x1612c6={}){var _0x483101,_0x504d87;const {checkAll:_0x11e5c7,signedData:_0x377d0c}=_0x1612c6;if(_0x11e5c7||this['isValueSigned']()){const _0x803566=_0x58f4d3['get'](_0x377d0c||(null===(_0x504d87=null===(_0x483101=this['root'])||void 0x0===_0x483101?void 0x0:_0x483101['signedSubmission'])||void 0x0===_0x504d87?void 0x0:_0x504d87['data']),this['getValuePathInSignedData']());return!_0x58f4d3['isEqual'](_0x803566,this['dataValue']);}return!0x1;},_0x248d80['default']=_0x2e1667;},0x14e:function(_0x3bfce2,_0x3c2a26,_0x65ac18){'use strict';Object['defineProperty'](_0x3c2a26,'__esModule',{'value':!0x0});const _0x4c639a=_0x65ac18(0x170),_0x58f666=_0x4c639a['Displays']['getDisplay']('webform'),_0x253331=_0x4c639a['Utils']['_'];Object['defineProperty'](_0x58f666['prototype'],'disableSignedData',{'enumerable':!0x0,'configurable':!0x0,'get'(){var _0x5126e7,_0x27231a;return!_0x253331['get'](this,'form.esign.notDisableSignedData',!0x1)&&_0x253331['some'](null===(_0x5126e7=this['_submission'])||void 0x0===_0x5126e7?void 0x0:_0x5126e7['eSignatures'],_0x196fbf=>!0x0===_0x196fbf['valid'])&&!!(null===(_0x27231a=this['esign']['signatures'])||void 0x0===_0x27231a?void 0x0:_0x27231a['length']);}}),Object['defineProperty'](_0x58f666['prototype'],'esign',{'enumerable':!0x0,'configurable':!0x0,'get'(){var _0x4b0dce;return(null===(_0x4b0dce=this['form'])||void 0x0===_0x4b0dce?void 0x0:_0x4b0dce['esign'])||{};}}),Object['defineProperty'](_0x58f666['prototype'],'signedComponentsInfo',{'enumerable':!0x0,'configurable':!0x0,'get'(){const _0x1fed5b=_0x253331['filter'](_0x253331['get'](this['submission'],'eSignatures',[]),_0x6b9752=>!0x0===_0x6b9752['valid']),_0x81a860=this['esign']['signatures']||[],_0x5e925e={'all':!0x1,'components':[]};return _0x253331['isEmpty'](_0x1fed5b||_0x253331['isEmpty'](_0x81a860))||(_0x253331['each'](_0x1fed5b,_0x15cfe3=>{if(_0x5e925e['all'])return;const {compPath:_0x3c3dd0}=_0x15cfe3['signature']||{},_0x5cb755=_0x253331['find'](_0x81a860,_0x5b2a89=>_0x5b2a89['component']===_0x3c3dd0);_0x5cb755['signAll']&&(_0x5e925e['all']=!0x0,_0x5e925e['components']=[]),_0x5e925e['components']=_0x253331['concat'](_0x5e925e['components'],_0x5cb755['signedData']||[]);}),_0x5e925e['components']['length']&&(_0x5e925e['components']=_0x253331['uniq'](_0x5e925e['components']))),_0x5e925e;}});const _0x11e1bf=_0x58f666['prototype']['setSubmission'];_0x58f666['prototype']['setSubmission']=function(_0x36468c,_0x1ea3ec){return this['setSignedSubmission'](_0x36468c),_0x11e1bf['call'](this,_0x36468c,_0x1ea3ec);},_0x58f666['prototype']['setSignedSubmission']=function(_0x38b852){var _0x14f3af;if((null===(_0x14f3af=this['esign']['signatures'])||void 0x0===_0x14f3af?void 0x0:_0x14f3af['length'])&&_0x253331['some'](_0x253331['get'](_0x38b852,'eSignatures',[]),_0x1fce2e=>!0x0===_0x1fce2e['valid'])){const _0x2c5d79=_0x253331['omit'](_0x38b852,['eSignatures']);this['signedSubmission']=_0x4c639a['Utils']['fastCloneDeep'](_0x2c5d79);}else this['signedSubmission']=null;};const _0x58b8fe=_0x58f666['prototype']['onSetSubmission'];_0x58f666['prototype']['onSetSubmission']=function(_0x2af99f,_0x1c73f={}){_0x58b8fe['call'](this,_0x2af99f,_0x1c73f),this['setESignatures'](_0x2af99f,_0x1c73f);},_0x58f666['prototype']['setESignatures']=function(_0x41f8ef={},_0x1a2be8={}){const _0x2401c7=this['esign']['signatures']||[];if(!_0x2401c7['length'])return;const _0x4e8d34=_0x253331['groupBy'](_0x253331['get'](_0x41f8ef,'eSignatures',[]),'signature.valuePath');_0x253331['each'](_0x2401c7,_0x5d7786=>{if(_0x5d7786['component']){let _0x48d1e2=this['getComponent'](_0x5d7786['component'])||[];_0x48d1e2=_0x253331['isArray'](_0x48d1e2)?_0x48d1e2:[_0x48d1e2],_0x253331['each'](_0x48d1e2,_0x1f46ce=>{_0x1f46ce['setESignature'](_0x253331['get'](_0x4e8d34[_0x1f46ce['jsonPathInLocalRoot']],'[0]',null),_0x1a2be8);});}}),_0x1a2be8['fromSubmission']&&this['options']['cleanESignOnSetSubmission']&&_0x253331['set'](this['_submission'],'eSignatures',[]),this['disableSignedData']&&this['redraw']();};const _0x443f01=_0x58f666['prototype']['checkData'];_0x58f666['prototype']['checkData']=function(_0x1a838a,_0x49a5b5){const _0x10c329=_0x443f01['call'](this,_0x1a838a,_0x49a5b5);return(null==_0x49a5b5?void 0x0:_0x49a5b5['fromSubmission'])||this['validateESignatureCustomProps'](),_0x10c329;},_0x58f666['prototype']['validateESignatureCustomProps']=function(){const {submissionProps:_0x5c9428=''}=this['esign'];if(!_0x5c9428||!this['shouldValidateESignatures']())return;const _0x1bb800={},_0xd0f14a={},_0x44c835=_0x253331['chain'](_0x5c9428)['split'](',')['map'](_0x3c25af=>_0x253331['trim'](_0x3c25af))['value']();_0x253331['each'](_0x44c835||[],_0x40dffd=>{_0x253331['set'](_0x1bb800,_0x40dffd,_0x253331['get'](this['signedSubmission'],_0x40dffd)),_0x253331['set'](_0xd0f14a,_0x40dffd,_0x253331['get'](this['submission'],_0x40dffd));}),_0x253331['isEqual'](_0x1bb800,_0xd0f14a)||this['emitSignedValueChange'](!0x0);},_0x58f666['prototype']['shouldValidateESignatures']=function(){var _0x5268cc,_0x1afc52,_0x576d39;return!(_0x253331['isEmpty'](_0x253331['filter']((null===(_0x5268cc=this['submission'])||void 0x0===_0x5268cc?void 0x0:_0x5268cc['eSignatures'])||[],_0x1ca1bd=>!0x0===(null==_0x1ca1bd?void 0x0:_0x1ca1bd['valid'])))||_0x253331['isEmpty'](this['esign']['signatures'])||!this['signedSubmission']||(null===(_0x1afc52=this['submission'])||void 0x0===_0x1afc52?void 0x0:_0x1afc52['_id'])!==(null===(_0x576d39=this['signedSubmission'])||void 0x0===_0x576d39?void 0x0:_0x576d39['_id']));},_0x3c2a26['default']=_0x58f666;},0x15e:function(_0x4b6bae,_0x2f4f65,_0x570d13){'use strict';Object['defineProperty'](_0x2f4f65,'__esModule',{'value':!0x0});const _0xffe8fa=_0x570d13(0x295),_0x2d28f9=_0x570d13(0x2bd),_0x1b6dfe=_0x570d13(0x2c1),_0x1a8581=_0x570d13(0x2bf),_0x3ad94d=_0x570d13(0x2bb),_0x4e34f6=_0x570d13(0x10d);_0x2f4f65['default']={'component':_0xffe8fa['default'],'nested':_0x2d28f9['default'],'nestedarray':_0x1b6dfe['default'],'form':_0x1a8581['default'],'componentmodal':_0x3ad94d['default'],'address':_0x4e34f6['default']};},0x170:function(_0x6ab7a8){'use strict';_0x6ab7a8['exports']=window['Formio'];},0x174:function(_0x8454a3,_0x16b747,_0x58b9f0){'use strict';var _0xb517a1=this&&this['__awaiter']||function(_0xb2a48c,_0x4a780d,_0x3860de,_0x392a7c){return new(_0x3860de||(_0x3860de=Promise))(function(_0x396658,_0xa1f475){function _0x47860d(_0x1b6684){try{_0x8b9862(_0x392a7c['next'](_0x1b6684));}catch(_0x46bab6){_0xa1f475(_0x46bab6);}}function _0x30934b(_0x1f2b02){try{_0x8b9862(_0x392a7c['throw'](_0x1f2b02));}catch(_0x349898){_0xa1f475(_0x349898);}}function _0x8b9862(_0x2bc654){var _0xaa2bbe;_0x2bc654['done']?_0x396658(_0x2bc654['value']):(_0xaa2bbe=_0x2bc654['value'],_0xaa2bbe instanceof _0x3860de?_0xaa2bbe:new _0x3860de(function(_0x22e4e9){_0x22e4e9(_0xaa2bbe);}))['then'](_0x47860d,_0x30934b);}_0x8b9862((_0x392a7c=_0x392a7c['apply'](_0xb2a48c,_0x4a780d||[]))['next']());});};Object['defineProperty'](_0x16b747,'__esModule',{'value':!0x0}),_0x16b747['OfflineLibraryLicense']=void 0x0;const _0x1bc2e9=_0x58b9f0(0x23c),_0x13047a=_0x58b9f0(0xfd);class _0x32abb4 extends Error{constructor(_0x19895f,_0x4968c3){super(_0x19895f?_0x32abb4['errorMessagePrefix']+'\x0a'+_0x19895f:_0x32abb4['errorMessagePrefix']+'\x0aUnexpected\x20error\x20occurred.'),this['softFailLicenseExpiration']=!0x1,this['softFailLicenseExpiration']=_0x4968c3;}}_0x32abb4['errorMessagePrefix']='Library\x20License\x20check\x20error:',_0x16b747['OfflineLibraryLicense']=class{constructor(_0x3367d7,_0x53b321){this['libraryName']=_0x3367d7,this['injectedPublicKey']=_0x53b321,this['publicKey']='-----BEGIN\x20PUBLIC\x20KEY-----\x0aMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA18xeGY0UiaVCjhkJeb68\x0aIHs/MkytZSeZwL75gySrVnVF6VI36CrEZe1hSZwXgufGVSLm2+Ec3KXeLLNtGFYP\x0aHzx66kPl6jRc1/7RnZdEQYeANDNg/BhlG+54Eu4dczp17agImfehsAyEIctvlL63\x0ayRAGqnoBWt1Khxfa5ocqtbZaep+3PI9yTgbyiYw/9rBYI5U8NiTPti9xt/jw/phe\x0aborJ64CeCQB/ipCFYgRj+WlnskDkL1/0TMi+4Hsu4eZSTZP7Mx6+qmjAGF9ahQmL\x0aIR7SEwFmVZK8aBe4knBKkL9IjOFl60Pjx4LoLvbpjIKCoM91pz2lMOoMHJIxhhwp\x0akQIDAQAB\x0a-----END\x20PUBLIC\x20KEY-----\x0a';}['checkTerms'](){var _0x450a26,_0x43aec5;if(this['libraryName']&&!(null===(_0x43aec5=null===(_0x450a26=this['parsedLicenseKey'])||void 0x0===_0x450a26?void 0x0:_0x450a26['terms'])||void 0x0===_0x43aec5?void 0x0:_0x43aec5[this['libraryName']]))throw new _0x32abb4((0x0,_0x13047a['capitalize'])(this['libraryName'])+'\x20is\x20disabled\x20in\x20your\x20license.');}['checkExpiration'](){let {exp:_0x18a23d,failDate:_0x29bd12}=this['parsedLicenseKey'];if(!_0x18a23d)return;let _0x1120bc=!0x1;const _0x29de13=Math['floor'](Date['now']()/0x3e8);switch(typeof _0x18a23d){case'string':_0x1120bc=(0x0,_0x13047a['dateStringToMilliseconds'])(_0x18a23d)<_0x29de13;break;case'number':case'object':_0x1120bc=_0x18a23d<_0x29de13;break;default:throw new _0x32abb4('Invalid\x20expiration\x20date\x20provided.');}if(_0x29bd12=function(_0x53490d){return _0x53490d>0xe8d4a51000?Math['floor'](_0x53490d/0x3e8):_0x53490d;}(_0x29bd12),_0x1120bc)throw _0x29de13<_0x29bd12?new _0x32abb4('Your\x20Library\x20License\x20has\x20expired.\x20Please\x20contact\x20sales@form.io\x20to\x20renew\x20it',!0x0):new _0x32abb4('License\x20is\x20expired');}['checkAllowedHostnames'](){var _0x4512ae;let {hostnames:_0x444568}=null===(_0x4512ae=this['parsedLicenseKey'])||void 0x0===_0x4512ae?void 0x0:_0x4512ae['terms'];const _0x561f5e=window['location']['protocol']+'//'+window['location']['hostname'];if(!(0x0,_0x13047a['isAllowedUrl'])(_0x444568,_0x561f5e))throw new _0x32abb4('Current\x20hostname\x20('+_0x561f5e+')\x20is\x20not\x20allowed.');}['checkAllowedEndpoints'](_0x54d287,_0x3a2d71){return _0xb517a1(this,void 0x0,void 0x0,function*(){var _0x5b3dd7;if(!this['parsedLicenseKey']){if(!_0x3a2d71)throw new _0x32abb4('License\x20Key\x20should\x20be\x20provided\x20to\x20verify\x20allowed\x20endpoints.');this['parsedLicenseKey']=yield this['parseKey'](_0x3a2d71);}let {endpoints:_0x2b83e8}=null===(_0x5b3dd7=this['parsedLicenseKey'])||void 0x0===_0x5b3dd7?void 0x0:_0x5b3dd7['terms'];if(window['Formio']){const _0x26788b=window['Formio']['getProjectUrl'](),_0x297e50=window['Formio']['getBaseUrl']();if(!(0x0,_0x13047a['isAllowedUrl'])(_0x2b83e8,_0x26788b)&&!(0x0,_0x13047a['isAllowedUrl'])(_0x2b83e8,_0x297e50))throw new _0x32abb4('Formio.projectUrl\x20and\x20Formio.baseUrl\x20are\x20not\x20allowed\x20for\x20this\x20license.');}});}['parseKey'](_0x5ada08){return _0xb517a1(this,void 0x0,void 0x0,function*(){try{const {payload:_0x9581a4}=yield(0x0,_0x1bc2e9['compactVerify'])(_0x5ada08,yield(0x0,_0x1bc2e9['importSPKI'])(this['injectedPublicKey']||this['publicKey'],'PS256'));return JSON['parse'](new TextDecoder('utf-8')['decode'](_0x9581a4));}catch(_0x48258e){throw console['error']('Error\x20parsing\x20Library\x20License\x20key:\x20'+_0x48258e['message']),new _0x32abb4('Invalid\x20key\x20provided.');}});}['verify'](_0x2df2c3){return _0xb517a1(this,arguments,void 0x0,function*(_0x71c7c6,_0x1c713c=!0x0){if(!_0x71c7c6)throw new _0x32abb4('License\x20key\x20not\x20provided.');try{this['parsedLicenseKey']=yield this['parseKey'](_0x71c7c6),this['checkTerms'](),this['checkExpiration'](),_0x1c713c&&this['checkAllowedHostnames']();}catch(_0x465963){throw _0x465963 instanceof _0x32abb4?_0x465963:(console['error']('Unexpected\x20Library\x20License\x20verify\x20error:\x20'+_0x465963['message']),new _0x32abb4());}});}['generate'](_0xc7ec5,_0x3f9d49){return _0xb517a1(this,void 0x0,void 0x0,function*(){const _0x8715c4=yield(0x0,_0x1bc2e9['importPKCS8'])(_0x3f9d49,'PS256');return yield new _0x1bc2e9['CompactSign'](new TextEncoder()['encode'](JSON['stringify'](_0xc7ec5)))['setProtectedHeader']({'alg':'PS256'})['sign'](_0x8715c4);});}};},0x190:function(_0x226136,_0x5d1df3,_0x3cd990){'use strict';var _0x557e7a=this&&this['__awaiter']||function(_0x208139,_0x380d78,_0x3141d2,_0x5ac770){return new(_0x3141d2||(_0x3141d2=Promise))(function(_0x3a62ca,_0x2f7ea2){function _0x3064ba(_0x228b0d){try{_0x509297(_0x5ac770['next'](_0x228b0d));}catch(_0xf9e793){_0x2f7ea2(_0xf9e793);}}function _0x2651b2(_0x21664d){try{_0x509297(_0x5ac770['throw'](_0x21664d));}catch(_0x1311b8){_0x2f7ea2(_0x1311b8);}}function _0x509297(_0x51c979){var _0x5130ff;_0x51c979['done']?_0x3a62ca(_0x51c979['value']):(_0x5130ff=_0x51c979['value'],_0x5130ff instanceof _0x3141d2?_0x5130ff:new _0x3141d2(function(_0x57f9a3){_0x57f9a3(_0x5130ff);}))['then'](_0x3064ba,_0x2651b2);}_0x509297((_0x5ac770=_0x5ac770['apply'](_0x208139,_0x380d78||[]))['next']());});};Object['defineProperty'](_0x5d1df3,'__esModule',{'value':!0x0}),_0x5d1df3['checkLicense']=_0x5d1df3['checkEndpointAllowed']=_0x5d1df3['verifyLicense']=void 0x0;const _0x3437f6=new(_0x3cd990(0x174))['OfflineLibraryLicense']('esign'),_0x49c67b=_0x19adac=>_0x557e7a(void 0x0,void 0x0,void 0x0,function*(){var _0x48a73f;if(!(null===(_0x48a73f=null===window||void 0x0===window?void 0x0:window['Formio'])||void 0x0===_0x48a73f?void 0x0:_0x48a73f['license']))throw new Error('You\x20need\x20to\x20set\x20the\x20license\x20key\x20in\x20order\x20to\x20use\x20the\x20\x27@formio/esignature\x27\x20library.\x20\x0a\x20You\x20can\x20do\x20it\x20this\x20way:\x20Formio.license\x20=\x20\x22YourLicenseKey\x22;');yield _0x19adac();});function _0x353047(){return _0x557e7a(this,void 0x0,void 0x0,function*(){yield _0x49c67b(()=>_0x3437f6['verify'](window['Formio']['license']));});}function _0xb0cca6(_0x46fc93){return _0x557e7a(this,void 0x0,void 0x0,function*(){yield _0x49c67b(()=>_0x3437f6['checkAllowedEndpoints'](_0x46fc93,window['Formio']['license']));});}_0x5d1df3['verifyLicense']=_0x353047,_0x5d1df3['checkEndpointAllowed']=_0xb0cca6;let _0x1195ac,_0x62cb2=!0x1,_0x515373=!0x1;_0x5d1df3['checkLicense']=function(_0x390f23){return _0x557e7a(this,void 0x0,void 0x0,function*(){if(!_0x515373){if(_0x62cb2){if(!_0x515373)throw new Error(_0x1195ac);}else try{yield _0x353047(),yield _0xb0cca6(_0x390f23),_0x62cb2=!0x0,_0x515373=!0x0;}catch(_0x23c42c){if(_0x62cb2)throw new Error(_0x23c42c);throw alert(_0x23c42c),_0x1195ac=_0x23c42c,_0x62cb2=!0x0,new Error(_0x23c42c);}}});};},0x193:function(_0x410ced,_0x79132b,_0x467a7e){'use strict';Object['defineProperty'](_0x79132b,'__esModule',{'value':!0x0});const _0x3287b4=_0x467a7e(0x1ab);_0x79132b['default']={'form':_0x3287b4['default']};},0x197:function(_0x2d5c40,_0x330d9c,_0x5a4c38){'use strict';Object['defineProperty'](_0x330d9c,'__esModule',{'value':!0x0});const _0x3b2ec7=_0x5a4c38(0x27f);_0x330d9c['default']={'form':_0x3b2ec7['default']};},0x1ab:function(_0x21dbe3,_0x5d1a8e){Object['defineProperty'](_0x5d1a8e,'__esModule',{'value':!0x0}),_0x5d1a8e['default']=function(_0x4e3cd8){var _0xdda8ed,_0x1e2547='';return Array['prototype']['join'],_0x1e2547+='<div\x20class=\x22formio-esign-tooltip\x22>\x0a\x20\x20\x20\x20<span\x20class=\x22'+(null==(_0xdda8ed=!0x0!==_0x4e3cd8['esign']['valid']?'formio-esign-tooltip-header-invalid':'')?'':_0xdda8ed)+'\x20formio-esign-tooltip-header\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span\x20>'+(null==(_0xdda8ed=_0x4e3cd8['t']('Digital\x20Signature'))?'':_0xdda8ed)+'</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span\x20class=\x22formio-esign-tooltip-status\x22\x20>'+(null==(_0xdda8ed=_0x4e3cd8['t'](!0x0!==_0x4e3cd8['esign']['valid']?'invalid':'verified'))?'':_0xdda8ed)+'</span>\x0a\x20\x20\x20\x20</span>\x0a\x20\x20\x20\x20',_0x4e3cd8['pdfForm']&&!0x0!==_0x4e3cd8['esign']['valid']&&(_0x1e2547+='\x0a\x20\x20\x20\x20<div\x20class=\x22formio-esign-tooltip-invalid-msg\x22>'+(null==(_0xdda8ed=_0x4e3cd8['esignInvalidMessage'])?'':_0xdda8ed)+'</div>\x0a\x20\x20\x20\x20'),_0x1e2547+='\x0a\x20\x20\x20\x20<ul\x20class=\x22formio-esign-tooltip-info\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20',_0x4e3cd8['pdfForm']&&(_0x1e2547+='\x0a\x20\x20\x20\x20\x20\x20\x20\x20<li\x20class=\x22formio-esign-tooltip-info-item\x22><span\x20class=\x22formio-esign-tooltip-info-item-title\x22>'+(null==(_0xdda8ed=_0x4e3cd8['t']('Signed\x20by'))?'':_0xdda8ed)+':</span><span>'+(null==(_0xdda8ed=_0x4e3cd8['esign']?.['signature']?.['user']?.['data']||_0x4e3cd8['esign']?.['signature']?.['user']?.['_id'])?'':_0xdda8ed)+'</span></li>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<li\x20class=\x22formio-esign-tooltip-info-item\x22><span\x20class=\x22formio-esign-tooltip-info-item-title\x22>'+(null==(_0xdda8ed=_0x4e3cd8['t']('Signed\x20on'))?'':_0xdda8ed)+':</span><span>'+(null==(_0xdda8ed=new Date(_0x4e3cd8['esign']?.['created'])['toLocaleString']())?'':_0xdda8ed)+'</span></li>\x0a\x20\x20\x20\x20\x20\x20\x20\x20'),_0x1e2547+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20<li\x20class=\x22formio-esign-tooltip-info-item\x22><span\x20class=\x22formio-esign-tooltip-info-item-title\x22>'+(null==(_0xdda8ed=_0x4e3cd8['t']('ID'))?'':_0xdda8ed)+':</span><span>'+(null==(_0xdda8ed=_0x4e3cd8['esign']?.['_id']||'-')?'':_0xdda8ed)+'</span></li>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<li\x20class=\x22formio-esign-tooltip-info-item\x22><span\x20class=\x22formio-esign-tooltip-info-item-title\x22>'+(null==(_0xdda8ed=_0x4e3cd8['t']('Path'))?'':_0xdda8ed)+':</span><span>'+(null==(_0xdda8ed=_0x4e3cd8['esign']?.['signature']?.['valuePath']||'-')?'':_0xdda8ed)+'</span></li>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<li\x20class=\x22formio-esign-tooltip-info-item\x22><span\x20class=\x22formio-esign-tooltip-info-item-title\x22>'+(null==(_0xdda8ed=_0x4e3cd8['t']('Submission\x20Rev.'))?'':_0xdda8ed)+':</span><span>'+(null==(_0xdda8ed=_0x4e3cd8['esign']?.['signature']?.['submission']?.['_id']||'-')?'':_0xdda8ed)+'</span></li>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<li\x20class=\x22formio-esign-tooltip-info-item\x22><span\x20class=\x22formio-esign-tooltip-info-item-title\x22>'+(null==(_0xdda8ed=_0x4e3cd8['t']('Form\x20Rev.'))?'':_0xdda8ed)+':</span><span>'+(null==(_0xdda8ed=_0x4e3cd8['esign']?.['signature']?.['submission']?.['_fvid'])?'':_0xdda8ed)+'</span></li>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<li\x20class=\x22formio-esign-tooltip-info-item\x22><span\x20class=\x22formio-esign-tooltip-info-item-title\x22>'+(null==(_0xdda8ed=_0x4e3cd8['t']('User\x20ID'))?'':_0xdda8ed)+':</span><span>'+(null==(_0xdda8ed=_0x4e3cd8['esign']?.['signature']?.['user']?.['_id']||'-')?'':_0xdda8ed)+'</span></li>\x0a\x20\x20\x20\x20</ul>\x0a<div>\x0a';};},0x203:function(_0x2a41de,_0x143e4a){'use strict';Object['defineProperty'](_0x143e4a,'__esModule',{'value':!0x0}),_0x143e4a['default']='esignature';},0x23c:function(_0x56d7ef,_0x3283ad,_0x282768){'use strict';_0x282768['r'](_0x3283ad),_0x282768['d'](_0x3283ad,{'CompactEncrypt':function(){return _0x46ee52;},'CompactSign':function(){return _0x2dfa40;},'EmbeddedJWK':function(){return _0x5a8273;},'EncryptJWT':function(){return _0x4a55fd;},'FlattenedEncrypt':function(){return _0x55c400;},'FlattenedSign':function(){return _0x134642;},'GeneralEncrypt':function(){return _0x1d097a;},'GeneralSign':function(){return _0x43293d;},'SignJWT':function(){return _0x1a403d;},'UnsecuredJWT':function(){return _0x341328;},'base64url':function(){return _0x1892f1;},'calculateJwkThumbprint':function(){return _0x1f6a34;},'calculateJwkThumbprintUri':function(){return _0x3ee9c0;},'compactDecrypt':function(){return _0x3548f3;},'compactVerify':function(){return _0x55a01c;},'createLocalJWKSet':function(){return _0x5d7a01;},'createRemoteJWKSet':function(){return _0x22064c;},'cryptoRuntime':function(){return _0x11cfe7;},'decodeJwt':function(){return _0x570a4a;},'decodeProtectedHeader':function(){return _0x135aae;},'errors':function(){return _0x4d55c2;},'experimental_jwksCache':function(){return _0x4e9def;},'exportJWK':function(){return _0x4e6755;},'exportPKCS8':function(){return _0x2d506c;},'exportSPKI':function(){return _0x3fa3ef;},'flattenedDecrypt':function(){return _0x20f961;},'flattenedVerify':function(){return _0x417138;},'generalDecrypt':function(){return _0x54fb37;},'generalVerify':function(){return _0x5e5d3a;},'generateKeyPair':function(){return _0x418923;},'generateSecret':function(){return _0x294e43;},'importJWK':function(){return _0x48a7c1;},'importPKCS8':function(){return _0x1e42e6;},'importSPKI':function(){return _0xfa7fba;},'importX509':function(){return _0x379fa9;},'jwksCache':function(){return _0x2da4c5;},'jwtDecrypt':function(){return _0x53ca62;},'jwtVerify':function(){return _0x87ed07;}});var _0x4d55c2={};_0x282768['r'](_0x4d55c2),_0x282768['d'](_0x4d55c2,{'JOSEAlgNotAllowed':function(){return _0x490687;},'JOSEError':function(){return _0x4ee8a;},'JOSENotSupported':function(){return _0xb6a76d;},'JWEDecryptionFailed':function(){return _0x2cf2d2;},'JWEInvalid':function(){return _0x555480;},'JWKInvalid':function(){return _0x420017;},'JWKSInvalid':function(){return _0x44a3c8;},'JWKSMultipleMatchingKeys':function(){return _0x34cfe8;},'JWKSNoMatchingKey':function(){return _0x3e0c71;},'JWKSTimeout':function(){return _0xca6d60;},'JWSInvalid':function(){return _0x5303ea;},'JWSSignatureVerificationFailed':function(){return _0x297cbd;},'JWTClaimValidationFailed':function(){return _0x736247;},'JWTExpired':function(){return _0x79299e;},'JWTInvalid':function(){return _0x51e9d3;}});var _0x1892f1={};_0x282768['r'](_0x1892f1),_0x282768['d'](_0x1892f1,{'decode':function(){return _0x5d764f;},'encode':function(){return _0x4b48e1;}});var _0x41e110=crypto;const _0x1efdb7=_0xc11f77=>_0xc11f77 instanceof CryptoKey;var _0x365a99=async(_0x4a5d19,_0x174dac)=>{const _0x448e02='SHA-'+_0x4a5d19['slice'](-0x3);return new Uint8Array(await _0x41e110['subtle']['digest'](_0x448e02,_0x174dac));};const _0x5dd7ac=new TextEncoder(),_0x41a439=new TextDecoder(),_0x119346=0x2**0x20;function _0x26f95c(..._0x1c2df1){const _0x36878e=_0x1c2df1['reduce']((_0x17d329,{length:_0xebabc1})=>_0x17d329+_0xebabc1,0x0),_0x51494f=new Uint8Array(_0x36878e);let _0x32b298=0x0;for(const _0x3107a4 of _0x1c2df1)_0x51494f['set'](_0x3107a4,_0x32b298),_0x32b298+=_0x3107a4['length'];return _0x51494f;}function _0x3ff1c3(_0x1d1912,_0x3a26f7,_0x1e88a6){if(_0x3a26f7<0x0||_0x3a26f7>=_0x119346)throw new RangeError('value\x20must\x20be\x20>=\x200\x20and\x20<=\x204294967295.\x20Received\x20'+_0x3a26f7);_0x1d1912['set']([_0x3a26f7>>>0x18,_0x3a26f7>>>0x10,_0x3a26f7>>>0x8,0xff&_0x3a26f7],_0x1e88a6);}function _0x108ddc(_0x5cacbe){const _0x28b517=Math['floor'](_0x5cacbe/_0x119346),_0x3f5acc=_0x5cacbe%_0x119346,_0x3f5936=new Uint8Array(0x8);return _0x3ff1c3(_0x3f5936,_0x28b517,0x0),_0x3ff1c3(_0x3f5936,_0x3f5acc,0x4),_0x3f5936;}function _0x30f3f0(_0x3acad2){const _0x353fdf=new Uint8Array(0x4);return _0x3ff1c3(_0x353fdf,_0x3acad2),_0x353fdf;}function _0x349e2a(_0x4b5f86){return _0x26f95c(_0x30f3f0(_0x4b5f86['length']),_0x4b5f86);}const _0xf3c821=_0x275619=>{let _0x362c3d=_0x275619;'string'==typeof _0x362c3d&&(_0x362c3d=_0x5dd7ac['encode'](_0x362c3d));const _0x2e1cce=[];for(let _0x403fe5=0x0;_0x403fe5<_0x362c3d['length'];_0x403fe5+=0x8000)_0x2e1cce['push'](String['fromCharCode']['apply'](null,_0x362c3d['subarray'](_0x403fe5,_0x403fe5+0x8000)));return btoa(_0x2e1cce['join'](''));},_0x195223=_0x5abc34=>_0xf3c821(_0x5abc34)['replace'](/=/g,'')['replace'](/\+/g,'-')['replace'](/\//g,'_'),_0x4d0f5e=_0x587fa9=>{const _0x18117e=atob(_0x587fa9),_0x5407dc=new Uint8Array(_0x18117e['length']);for(let _0x4b2779=0x0;_0x4b2779<_0x18117e['length'];_0x4b2779++)_0x5407dc[_0x4b2779]=_0x18117e['charCodeAt'](_0x4b2779);return _0x5407dc;},_0x472e05=_0x279777=>{let _0x430af8=_0x279777;_0x430af8 instanceof Uint8Array&&(_0x430af8=_0x41a439['decode'](_0x430af8)),_0x430af8=_0x430af8['replace'](/-/g,'+')['replace'](/_/g,'/')['replace'](/\s/g,'');try{return _0x4d0f5e(_0x430af8);}catch{throw new TypeError('The\x20input\x20to\x20be\x20decoded\x20is\x20not\x20correctly\x20encoded.');}};class _0x4ee8a extends Error{constructor(_0x5ee38a,_0x500e5a){super(_0x5ee38a,_0x500e5a),this['code']='ERR_JOSE_GENERIC',this['name']=this['constructor']['name'],Error['captureStackTrace']?.(this,this['constructor']);}}_0x4ee8a['code']='ERR_JOSE_GENERIC';class _0x736247 extends _0x4ee8a{constructor(_0x20950d,_0x3705a5,_0x27dc53='unspecified',_0x6224cb='unspecified'){super(_0x20950d,{'cause':{'claim':_0x27dc53,'reason':_0x6224cb,'payload':_0x3705a5}}),this['code']='ERR_JWT_CLAIM_VALIDATION_FAILED',this['claim']=_0x27dc53,this['reason']=_0x6224cb,this['payload']=_0x3705a5;}}_0x736247['code']='ERR_JWT_CLAIM_VALIDATION_FAILED';class _0x79299e extends _0x4ee8a{constructor(_0x357206,_0x3398d1,_0x595b79='unspecified',_0x5a3712='unspecified'){super(_0x357206,{'cause':{'claim':_0x595b79,'reason':_0x5a3712,'payload':_0x3398d1}}),this['code']='ERR_JWT_EXPIRED',this['claim']=_0x595b79,this['reason']=_0x5a3712,this['payload']=_0x3398d1;}}_0x79299e['code']='ERR_JWT_EXPIRED';class _0x490687 extends _0x4ee8a{constructor(){super(...arguments),this['code']='ERR_JOSE_ALG_NOT_ALLOWED';}}_0x490687['code']='ERR_JOSE_ALG_NOT_ALLOWED';class _0xb6a76d extends _0x4ee8a{constructor(){super(...arguments),this['code']='ERR_JOSE_NOT_SUPPORTED';}}_0xb6a76d['code']='ERR_JOSE_NOT_SUPPORTED';class _0x2cf2d2 extends _0x4ee8a{constructor(_0x4e9c04='decryption\x20operation\x20failed',_0x1eb3d3){super(_0x4e9c04,_0x1eb3d3),this['code']='ERR_JWE_DECRYPTION_FAILED';}}_0x2cf2d2['code']='ERR_JWE_DECRYPTION_FAILED';class _0x555480 extends _0x4ee8a{constructor(){super(...arguments),this['code']='ERR_JWE_INVALID';}}_0x555480['code']='ERR_JWE_INVALID';class _0x5303ea extends _0x4ee8a{constructor(){super(...arguments),this['code']='ERR_JWS_INVALID';}}_0x5303ea['code']='ERR_JWS_INVALID';class _0x51e9d3 extends _0x4ee8a{constructor(){super(...arguments),this['code']='ERR_JWT_INVALID';}}_0x51e9d3['code']='ERR_JWT_INVALID';class _0x420017 extends _0x4ee8a{constructor(){super(...arguments),this['code']='ERR_JWK_INVALID';}}_0x420017['code']='ERR_JWK_INVALID';class _0x44a3c8 extends _0x4ee8a{constructor(){super(...arguments),this['code']='ERR_JWKS_INVALID';}}_0x44a3c8['code']='ERR_JWKS_INVALID';class _0x3e0c71 extends _0x4ee8a{constructor(_0x484caa='no\x20applicable\x20key\x20found\x20in\x20the\x20JSON\x20Web\x20Key\x20Set',_0x58da39){super(_0x484caa,_0x58da39),this['code']='ERR_JWKS_NO_MATCHING_KEY';}}_0x3e0c71['code']='ERR_JWKS_NO_MATCHING_KEY';class _0x34cfe8 extends _0x4ee8a{constructor(_0x38eab6='multiple\x20matching\x20keys\x20found\x20in\x20the\x20JSON\x20Web\x20Key\x20Set',_0x3a28cc){super(_0x38eab6,_0x3a28cc),this['code']='ERR_JWKS_MULTIPLE_MATCHING_KEYS';}}Symbol['asyncIterator'],_0x34cfe8['code']='ERR_JWKS_MULTIPLE_MATCHING_KEYS';class _0xca6d60 extends _0x4ee8a{constructor(_0x1e9e15='request\x20timed\x20out',_0x393869){super(_0x1e9e15,_0x393869),this['code']='ERR_JWKS_TIMEOUT';}}_0xca6d60['code']='ERR_JWKS_TIMEOUT';class _0x297cbd extends _0x4ee8a{constructor(_0x56f798='signature\x20verification\x20failed',_0x34bde5){super(_0x56f798,_0x34bde5),this['code']='ERR_JWS_SIGNATURE_VERIFICATION_FAILED';}}_0x297cbd['code']='ERR_JWS_SIGNATURE_VERIFICATION_FAILED';var _0x1e831f=_0x41e110['getRandomValues']['bind'](_0x41e110);function _0x519b8e(_0x3a192b){switch(_0x3a192b){case'A128GCM':case'A128GCMKW':case'A192GCM':case'A192GCMKW':case'A256GCM':case'A256GCMKW':return 0x60;case'A128CBC-HS256':case'A192CBC-HS384':case'A256CBC-HS512':return 0x80;default:throw new _0xb6a76d('Unsupported\x20JWE\x20Algorithm:\x20'+_0x3a192b);}}var _0x13a517=(_0x59a125,_0x1a5b3c)=>{if(_0x1a5b3c['length']<<0x3!==_0x519b8e(_0x59a125))throw new _0x555480('Invalid\x20Initialization\x20Vector\x20length');},_0x30519e=(_0x6a3e8a,_0x5ec4f2)=>{const _0x3b49ff=_0x6a3e8a['byteLength']<<0x3;if(_0x3b49ff!==_0x5ec4f2)throw new _0x555480('Invalid\x20Content\x20Encryption\x20Key\x20length.\x20Expected\x20'+_0x5ec4f2+'\x20bits,\x20got\x20'+_0x3b49ff+'\x20bits');};function _0x360a0c(_0x130cdc,_0x174de5='algorithm.name'){return new TypeError('CryptoKey\x20does\x20not\x20support\x20this\x20operation,\x20its\x20'+_0x174de5+'\x20must\x20be\x20'+_0x130cdc);}function _0xf8e1d2(_0x195d9a,_0x21127f){return _0x195d9a['name']===_0x21127f;}function _0x51c315(_0x31c63e){return parseInt(_0x31c63e['name']['slice'](0x4),0xa);}function _0x53e911(_0x84a2f7,_0x48d254){if(_0x48d254['length']&&!_0x48d254['some'](_0x3fe3e2=>_0x84a2f7['usages']['includes'](_0x3fe3e2))){let _0x166cae='CryptoKey\x20does\x20not\x20support\x20this\x20operation,\x20its\x20usages\x20must\x20include\x20';if(_0x48d254['length']>0x2){const _0x25601a=_0x48d254['pop']();_0x166cae+='one\x20of\x20'+_0x48d254['join'](',\x20')+',\x20or\x20'+_0x25601a+'.';}else 0x2===_0x48d254['length']?_0x166cae+='one\x20of\x20'+_0x48d254[0x0]+'\x20or\x20'+_0x48d254[0x1]+'.':_0x166cae+=_0x48d254[0x0]+'.';throw new TypeError(_0x166cae);}}function _0x1d37cb(_0x425390,_0x4e2755,..._0xf724b6){switch(_0x4e2755){case'A128GCM':case'A192GCM':case'A256GCM':{if(!_0xf8e1d2(_0x425390['algorithm'],'AES-GCM'))throw _0x360a0c('AES-GCM');const _0x286638=parseInt(_0x4e2755['slice'](0x1,0x4),0xa);if(_0x425390['algorithm']['length']!==_0x286638)throw _0x360a0c(_0x286638,'algorithm.length');break;}case'A128KW':case'A192KW':case'A256KW':{if(!_0xf8e1d2(_0x425390['algorithm'],'AES-KW'))throw _0x360a0c('AES-KW');const _0x18b51a=parseInt(_0x4e2755['slice'](0x1,0x4),0xa);if(_0x425390['algorithm']['length']!==_0x18b51a)throw _0x360a0c(_0x18b51a,'algorithm.length');break;}case'ECDH':switch(_0x425390['algorithm']['name']){case'ECDH':case'X25519':case'X448':break;default:throw _0x360a0c('ECDH,\x20X25519,\x20or\x20X448');}break;case'PBES2-HS256+A128KW':case'PBES2-HS384+A192KW':case'PBES2-HS512+A256KW':if(!_0xf8e1d2(_0x425390['algorithm'],'PBKDF2'))throw _0x360a0c('PBKDF2');break;case'RSA-OAEP':case'RSA-OAEP-256':case'RSA-OAEP-384':case'RSA-OAEP-512':{if(!_0xf8e1d2(_0x425390['algorithm'],'RSA-OAEP'))throw _0x360a0c('RSA-OAEP');const _0x1982da=parseInt(_0x4e2755['slice'](0x9),0xa)||0x1;if(_0x51c315(_0x425390['algorithm']['hash'])!==_0x1982da)throw _0x360a0c('SHA-'+_0x1982da,'algorithm.hash');break;}default:throw new TypeError('CryptoKey\x20does\x20not\x20support\x20this\x20operation');}_0x53e911(_0x425390,_0xf724b6);}function _0x3cecb9(_0x1db1dc,_0x59add7,..._0x1066c8){if((_0x1066c8=_0x1066c8['filter'](Boolean))['length']>0x2){const _0x31056a=_0x1066c8['pop']();_0x1db1dc+='one\x20of\x20type\x20'+_0x1066c8['join'](',\x20')+',\x20or\x20'+_0x31056a+'.';}else 0x2===_0x1066c8['length']?_0x1db1dc+='one\x20of\x20type\x20'+_0x1066c8[0x0]+'\x20or\x20'+_0x1066c8[0x1]+'.':_0x1db1dc+='of\x20type\x20'+_0x1066c8[0x0]+'.';return null==_0x59add7?_0x1db1dc+='\x20Received\x20'+_0x59add7:'function'==typeof _0x59add7&&_0x59add7['name']?_0x1db1dc+='\x20Received\x20function\x20'+_0x59add7['name']:'object'==typeof _0x59add7&&null!=_0x59add7&&_0x59add7['constructor']?.['name']&&(_0x1db1dc+='\x20Received\x20an\x20instance\x20of\x20'+_0x59add7['constructor']['name']),_0x1db1dc;}var _0x6785aa=(_0x2b311f,..._0x44e97b)=>_0x3cecb9('Key\x20must\x20be\x20',_0x2b311f,..._0x44e97b);function _0x149e59(_0x42f411,_0x1611e5,..._0x35ab88){return _0x3cecb9('Key\x20for\x20the\x20'+_0x42f411+'\x20algorithm\x20must\x20be\x20',_0x1611e5,..._0x35ab88);}var _0x21fb47=_0x32e092=>!!_0x1efdb7(_0x32e092)||'KeyObject'===_0x32e092?.[Symbol['toStringTag']];const _0x3fd054=['CryptoKey'];var _0x449213=async(_0x3e3991,_0x49794e,_0x311d71,_0x5e8fac,_0x1dd05d,_0x21774b)=>{if(!(_0x1efdb7(_0x49794e)||_0x49794e instanceof Uint8Array))throw new TypeError(_0x6785aa(_0x49794e,..._0x3fd054,'Uint8Array'));if(!_0x5e8fac)throw new _0x555480('JWE\x20Initialization\x20Vector\x20missing');if(!_0x1dd05d)throw new _0x555480('JWE\x20Authentication\x20Tag\x20missing');switch(_0x13a517(_0x3e3991,_0x5e8fac),_0x3e3991){case'A128CBC-HS256':case'A192CBC-HS384':case'A256CBC-HS512':return _0x49794e instanceof Uint8Array&&_0x30519e(_0x49794e,parseInt(_0x3e3991['slice'](-0x3),0xa)),async function(_0x1aa0ba,_0x47fe8c,_0x44adcf,_0x2eb5aa,_0x3d7a36,_0x41f940){if(!(_0x47fe8c instanceof Uint8Array))throw new TypeError(_0x6785aa(_0x47fe8c,'Uint8Array'));const _0x5a578f=parseInt(_0x1aa0ba['slice'](0x1,0x4),0xa),_0x58a249=await _0x41e110['subtle']['importKey']('raw',_0x47fe8c['subarray'](_0x5a578f>>0x3),'AES-CBC',!0x1,['decrypt']),_0x33d363=await _0x41e110['subtle']['importKey']('raw',_0x47fe8c['subarray'](0x0,_0x5a578f>>0x3),{'hash':'SHA-'+(_0x5a578f<<0x1),'name':'HMAC'},!0x1,['sign']),_0x1730ef=_0x26f95c(_0x41f940,_0x2eb5aa,_0x44adcf,_0x108ddc(_0x41f940['length']<<0x3)),_0x44e57c=new Uint8Array((await _0x41e110['subtle']['sign']('HMAC',_0x33d363,_0x1730ef))['slice'](0x0,_0x5a578f>>0x3));let _0x496476,_0x468aee;try{_0x496476=((_0x1b4d05,_0x15e7b6)=>{if(!(_0x1b4d05 instanceof Uint8Array))throw new TypeError('First\x20argument\x20must\x20be\x20a\x20buffer');if(!(_0x15e7b6 instanceof Uint8Array))throw new TypeError('Second\x20argument\x20must\x20be\x20a\x20buffer');if(_0x1b4d05['length']!==_0x15e7b6['length'])throw new TypeError('Input\x20buffers\x20must\x20have\x20the\x20same\x20length');const _0x20deb0=_0x1b4d05['length'];let _0x11143d=0x0,_0x54e32c=-0x1;for(;++_0x54e32c<_0x20deb0;)_0x11143d|=_0x1b4d05[_0x54e32c]^_0x15e7b6[_0x54e32c];return 0x0===_0x11143d;})(_0x3d7a36,_0x44e57c);}catch{}if(!_0x496476)throw new _0x2cf2d2();try{_0x468aee=new Uint8Array(await _0x41e110['subtle']['decrypt']({'iv':_0x2eb5aa,'name':'AES-CBC'},_0x58a249,_0x44adcf));}catch{}if(!_0x468aee)throw new _0x2cf2d2();return _0x468aee;}(_0x3e3991,_0x49794e,_0x311d71,_0x5e8fac,_0x1dd05d,_0x21774b);case'A128GCM':case'A192GCM':case'A256GCM':return _0x49794e instanceof Uint8Array&&_0x30519e(_0x49794e,parseInt(_0x3e3991['slice'](0x1,0x4),0xa)),async function(_0x428fa5,_0x1a7ddd,_0x19403c,_0x4bf1d1,_0x106c51,_0x5a00d8){let _0x1256a7;_0x1a7ddd instanceof Uint8Array?_0x1256a7=await _0x41e110['subtle']['importKey']('raw',_0x1a7ddd,'AES-GCM',!0x1,['decrypt']):(_0x1d37cb(_0x1a7ddd,_0x428fa5,'decrypt'),_0x1256a7=_0x1a7ddd);try{return new Uint8Array(await _0x41e110['subtle']['decrypt']({'additionalData':_0x5a00d8,'iv':_0x4bf1d1,'name':'AES-GCM','tagLength':0x80},_0x1256a7,_0x26f95c(_0x19403c,_0x106c51)));}catch{throw new _0x2cf2d2();}}(_0x3e3991,_0x49794e,_0x311d71,_0x5e8fac,_0x1dd05d,_0x21774b);default:throw new _0xb6a76d('Unsupported\x20JWE\x20Content\x20Encryption\x20Algorithm');}},_0x2c21d7=(..._0x1f8114)=>{const _0x15f41d=_0x1f8114['filter'](Boolean);if(0x0===_0x15f41d['length']||0x1===_0x15f41d['length'])return!0x0;let _0x53a15e;for(const _0x182097 of _0x15f41d){const _0x52c57e=Object['keys'](_0x182097);if(_0x53a15e&&0x0!==_0x53a15e['size'])for(const _0x2bc566 of _0x52c57e){if(_0x53a15e['has'](_0x2bc566))return!0x1;_0x53a15e['add'](_0x2bc566);}else _0x53a15e=new Set(_0x52c57e);}return!0x0;};function _0x14a94b(_0x16f209){if('object'!=typeof(_0x364c42=_0x16f209)||null===_0x364c42||'[object\x20Object]'!==Object['prototype']['toString']['call'](_0x16f209))return!0x1;var _0x364c42;if(null===Object['getPrototypeOf'](_0x16f209))return!0x0;let _0x501602=_0x16f209;for(;null!==Object['getPrototypeOf'](_0x501602);)_0x501602=Object['getPrototypeOf'](_0x501602);return Object['getPrototypeOf'](_0x16f209)===_0x501602;}var _0x54fc6e=[{'hash':'SHA-256','name':'HMAC'},!0x0,['sign']];function _0x290314(_0x58099d,_0x255d30){if(_0x58099d['algorithm']['length']!==parseInt(_0x255d30['slice'](0x1,0x4),0xa))throw new TypeError('Invalid\x20key\x20size\x20for\x20alg:\x20'+_0x255d30);}function _0x192aaf(_0x3a7afb,_0x41dea3,_0x235b46){if(_0x1efdb7(_0x3a7afb))return _0x1d37cb(_0x3a7afb,_0x41dea3,_0x235b46),_0x3a7afb;if(_0x3a7afb instanceof Uint8Array)return _0x41e110['subtle']['importKey']('raw',_0x3a7afb,'AES-KW',!0x0,[_0x235b46]);throw new TypeError(_0x6785aa(_0x3a7afb,..._0x3fd054,'Uint8Array'));}const _0x561022=async(_0x47810a,_0x17d9bc,_0x4fe29e)=>{const _0x3679a8=await _0x192aaf(_0x17d9bc,_0x47810a,'wrapKey');_0x290314(_0x3679a8,_0x47810a);const _0x5231df=await _0x41e110['subtle']['importKey']('raw',_0x4fe29e,..._0x54fc6e);return new Uint8Array(await _0x41e110['subtle']['wrapKey']('raw',_0x5231df,_0x3679a8,'AES-KW'));},_0x56a00d=async(_0x506b3d,_0x3becfb,_0x4351d5)=>{const _0x22f7ba=await _0x192aaf(_0x3becfb,_0x506b3d,'unwrapKey');_0x290314(_0x22f7ba,_0x506b3d);const _0xdef8e1=await _0x41e110['subtle']['unwrapKey']('raw',_0x4351d5,_0x22f7ba,'AES-KW',..._0x54fc6e);return new Uint8Array(await _0x41e110['subtle']['exportKey']('raw',_0xdef8e1));};async function _0x567b56(_0x54cc28,_0x37d8ef,_0x472de8,_0x44905a,_0x55dea8=new Uint8Array(0x0),_0x8f2693=new Uint8Array(0x0)){if(!_0x1efdb7(_0x54cc28))throw new TypeError(_0x6785aa(_0x54cc28,..._0x3fd054));if(_0x1d37cb(_0x54cc28,'ECDH'),!_0x1efdb7(_0x37d8ef))throw new TypeError(_0x6785aa(_0x37d8ef,..._0x3fd054));_0x1d37cb(_0x37d8ef,'ECDH','deriveBits');const _0x2e4eba=_0x26f95c(_0x349e2a(_0x5dd7ac['encode'](_0x472de8)),_0x349e2a(_0x55dea8),_0x349e2a(_0x8f2693),_0x30f3f0(_0x44905a));let _0x422a4d;return _0x422a4d='X25519'===_0x54cc28['algorithm']['name']?0x100:'X448'===_0x54cc28['algorithm']['name']?0x1c0:Math['ceil'](parseInt(_0x54cc28['algorithm']['namedCurve']['substr'](-0x3),0xa)/0x8)<<0x3,async function(_0xe4ab28,_0x465103,_0x48c03f){const _0x243278=Math['ceil']((_0x465103>>0x3)/0x20),_0x7c3cd9=new Uint8Array(0x20*_0x243278);for(let _0x2bdd37=0x0;_0x2bdd37<_0x243278;_0x2bdd37++){const _0xd2039a=new Uint8Array(0x4+_0xe4ab28['length']+_0x48c03f['length']);_0xd2039a['set'](_0x30f3f0(_0x2bdd37+0x1)),_0xd2039a['set'](_0xe4ab28,0x4),_0xd2039a['set'](_0x48c03f,0x4+_0xe4ab28['length']),_0x7c3cd9['set'](await _0x365a99('sha256',_0xd2039a),0x20*_0x2bdd37);}return _0x7c3cd9['slice'](0x0,_0x465103>>0x3);}(new Uint8Array(await _0x41e110['subtle']['deriveBits']({'name':_0x54cc28['algorithm']['name'],'public':_0x54cc28},_0x37d8ef,_0x422a4d)),_0x44905a,_0x2e4eba);}function _0x9dc9bf(_0x53e1b3){if(!_0x1efdb7(_0x53e1b3))throw new TypeError(_0x6785aa(_0x53e1b3,..._0x3fd054));return['P-256','P-384','P-521']['includes'](_0x53e1b3['algorithm']['namedCurve'])||'X25519'===_0x53e1b3['algorithm']['name']||'X448'===_0x53e1b3['algorithm']['name'];}async function _0x35286b(_0x13d172,_0x5a4347,_0xee722e,_0x36e612){!function(_0x1c9f71){if(!(_0x1c9f71 instanceof Uint8Array)||_0x1c9f71['length']<0x8)throw new _0x555480('PBES2\x20Salt\x20Input\x20must\x20be\x208\x20or\x20more\x20octets');}(_0x13d172);const _0x13abf6=function(_0x5c9585,_0x5d23db){return _0x26f95c(_0x5dd7ac['encode'](_0x5c9585),new Uint8Array([0x0]),_0x5d23db);}(_0x5a4347,_0x13d172),_0xb7a9c5=parseInt(_0x5a4347['slice'](0xd,0x10),0xa),_0x46df60={'hash':'SHA-'+_0x5a4347['slice'](0x8,0xb),'iterations':_0xee722e,'name':'PBKDF2','salt':_0x13abf6},_0x13869a={'length':_0xb7a9c5,'name':'AES-KW'},_0x12632b=await function(_0x457580,_0x3d5a37){if(_0x457580 instanceof Uint8Array)return _0x41e110['subtle']['importKey']('raw',_0x457580,'PBKDF2',!0x1,['deriveBits']);if(_0x1efdb7(_0x457580))return _0x1d37cb(_0x457580,_0x3d5a37,'deriveBits','deriveKey'),_0x457580;throw new TypeError(_0x6785aa(_0x457580,..._0x3fd054,'Uint8Array'));}(_0x36e612,_0x5a4347);if(_0x12632b['usages']['includes']('deriveBits'))return new Uint8Array(await _0x41e110['subtle']['deriveBits'](_0x46df60,_0x12632b,_0xb7a9c5));if(_0x12632b['usages']['includes']('deriveKey'))return _0x41e110['subtle']['deriveKey'](_0x46df60,_0x12632b,_0x13869a,!0x1,['wrapKey','unwrapKey']);throw new TypeError('PBKDF2\x20key\x20\x22usages\x22\x20must\x20include\x20\x22deriveBits\x22\x20or\x20\x22deriveKey\x22');}function _0x185d31(_0x2c3707){switch(_0x2c3707){case'RSA-OAEP':case'RSA-OAEP-256':case'RSA-OAEP-384':case'RSA-OAEP-512':return'RSA-OAEP';default:throw new _0xb6a76d('alg\x20'+_0x2c3707+'\x20is\x20not\x20supported\x20either\x20by\x20JOSE\x20or\x20your\x20javascript\x20runtime');}}var _0x30b2db=(_0x4d8092,_0x36664c)=>{if(_0x4d8092['startsWith']('RS')||_0x4d8092['startsWith']('PS')){const {modulusLength:_0xa0e9bb}=_0x36664c['algorithm'];if('number'!=typeof _0xa0e9bb||_0xa0e9bb<0x800)throw new TypeError(_0x4d8092+'\x20requires\x20key\x20modulusLength\x20to\x20be\x202048\x20bits\x20or\x20larger');}};function _0x45cdf1(_0x3d2fc3){return _0x14a94b(_0x3d2fc3)&&'string'==typeof _0x3d2fc3['kty'];}var _0x2d7606=async _0x4eb67e=>{if(!_0x4eb67e['alg'])throw new TypeError('\x22alg\x22\x20argument\x20is\x20required\x20when\x20\x22jwk.alg\x22\x20is\x20not\x20present');const {algorithm:_0x16f5f8,keyUsages:_0x46565d}=function(_0x58b700){let _0x3354ea,_0x34a168;switch(_0x58b700['kty']){case'RSA':switch(_0x58b700['alg']){case'PS256':case'PS384':case'PS512':_0x3354ea={'name':'RSA-PSS','hash':'SHA-'+_0x58b700['alg']['slice'](-0x3)},_0x34a168=_0x58b700['d']?['sign']:['verify'];break;case'RS256':case'RS384':case'RS512':_0x3354ea={'name':'RSASSA-PKCS1-v1_5','hash':'SHA-'+_0x58b700['alg']['slice'](-0x3)},_0x34a168=_0x58b700['d']?['sign']:['verify'];break;case'RSA-OAEP':case'RSA-OAEP-256':case'RSA-OAEP-384':case'RSA-OAEP-512':_0x3354ea={'name':'RSA-OAEP','hash':'SHA-'+(parseInt(_0x58b700['alg']['slice'](-0x3),0xa)||0x1)},_0x34a168=_0x58b700['d']?['decrypt','unwrapKey']:['encrypt','wrapKey'];break;default:throw new _0xb6a76d('Invalid\x20or\x20unsupported\x20JWK\x20\x22alg\x22\x20(Algorithm)\x20Parameter\x20value');}break;case'EC':switch(_0x58b700['alg']){case'ES256':_0x3354ea={'name':'ECDSA','namedCurve':'P-256'},_0x34a168=_0x58b700['d']?['sign']:['verify'];break;case'ES384':_0x3354ea={'name':'ECDSA','namedCurve':'P-384'},_0x34a168=_0x58b700['d']?['sign']:['verify'];break;case'ES512':_0x3354ea={'name':'ECDSA','namedCurve':'P-521'},_0x34a168=_0x58b700['d']?['sign']:['verify'];break;case'ECDH-ES':case'ECDH-ES+A128KW':case'ECDH-ES+A192KW':case'ECDH-ES+A256KW':_0x3354ea={'name':'ECDH','namedCurve':_0x58b700['crv']},_0x34a168=_0x58b700['d']?['deriveBits']:[];break;default:throw new _0xb6a76d('Invalid\x20or\x20unsupported\x20JWK\x20\x22alg\x22\x20(Algorithm)\x20Parameter\x20value');}break;case'OKP':switch(_0x58b700['alg']){case'Ed25519':_0x3354ea={'name':'Ed25519'},_0x34a168=_0x58b700['d']?['sign']:['verify'];break;case'EdDSA':_0x3354ea={'name':_0x58b700['crv']},_0x34a168=_0x58b700['d']?['sign']:['verify'];break;case'ECDH-ES':case'ECDH-ES+A128KW':case'ECDH-ES+A192KW':case'ECDH-ES+A256KW':_0x3354ea={'name':_0x58b700['crv']},_0x34a168=_0x58b700['d']?['deriveBits']:[];break;default:throw new _0xb6a76d('Invalid\x20or\x20unsupported\x20JWK\x20\x22alg\x22\x20(Algorithm)\x20Parameter\x20value');}break;default:throw new _0xb6a76d('Invalid\x20or\x20unsupported\x20JWK\x20\x22kty\x22\x20(Key\x20Type)\x20Parameter\x20value');}return{'algorithm':_0x3354ea,'keyUsages':_0x34a168};}(_0x4eb67e),_0x5cf8f9=[_0x16f5f8,_0x4eb67e['ext']??!0x1,_0x4eb67e['key_ops']??_0x46565d],_0x45cf64={..._0x4eb67e};return delete _0x45cf64['alg'],delete _0x45cf64['use'],_0x41e110['subtle']['importKey']('jwk',_0x45cf64,..._0x5cf8f9);};const _0x5d31f3=_0x32c451=>_0x472e05(_0x32c451);let _0x142b10,_0x49a92b;const _0x62573c=_0x503bdd=>'KeyObject'===_0x503bdd?.[Symbol['toStringTag']],_0x491702=async(_0x2810d2,_0x4de7e6,_0xd51669,_0xa974a2,_0x3cf6ef=!0x1)=>{let _0x42c3b2=_0x2810d2['get'](_0x4de7e6);if(_0x42c3b2?.[_0xa974a2])return _0x42c3b2[_0xa974a2];const _0x16cb3c=await _0x2d7606({..._0xd51669,'alg':_0xa974a2});return _0x3cf6ef&&Object['freeze'](_0x4de7e6),_0x42c3b2?_0x42c3b2[_0xa974a2]=_0x16cb3c:_0x2810d2['set'](_0x4de7e6,{[_0xa974a2]:_0x16cb3c}),_0x16cb3c;};var _0x5ef51e=(_0xb461f9,_0x511531)=>{if(_0x62573c(_0xb461f9)){let _0x1a079c=_0xb461f9['export']({'format':'jwk'});return delete _0x1a079c['d'],delete _0x1a079c['dp'],delete _0x1a079c['dq'],delete _0x1a079c['p'],delete _0x1a079c['q'],delete _0x1a079c['qi'],_0x1a079c['k']?_0x5d31f3(_0x1a079c['k']):(_0x49a92b||(_0x49a92b=new WeakMap()),_0x491702(_0x49a92b,_0xb461f9,_0x1a079c,_0x511531));}return _0x45cdf1(_0xb461f9)?_0xb461f9['k']?_0x472e05(_0xb461f9['k']):(_0x49a92b||(_0x49a92b=new WeakMap()),_0x491702(_0x49a92b,_0xb461f9,_0xb461f9,_0x511531,!0x0)):_0xb461f9;},_0x15e34c=(_0x520523,_0x1f6051)=>{if(_0x62573c(_0x520523)){let _0x197f3d=_0x520523['export']({'format':'jwk'});return _0x197f3d['k']?_0x5d31f3(_0x197f3d['k']):(_0x142b10||(_0x142b10=new WeakMap()),_0x491702(_0x142b10,_0x520523,_0x197f3d,_0x1f6051));}return _0x45cdf1(_0x520523)?_0x520523['k']?_0x472e05(_0x520523['k']):(_0x142b10||(_0x142b10=new WeakMap()),_0x491702(_0x142b10,_0x520523,_0x520523,_0x1f6051,!0x0)):_0x520523;};function _0x566f18(_0x131cb5){switch(_0x131cb5){case'A128GCM':return 0x80;case'A192GCM':return 0xc0;case'A256GCM':case'A128CBC-HS256':return 0x100;case'A192CBC-HS384':return 0x180;case'A256CBC-HS512':return 0x200;default:throw new _0xb6a76d('Unsupported\x20JWE\x20Algorithm:\x20'+_0x131cb5);}}var _0x57b916=_0x41129d=>_0x1e831f(new Uint8Array(_0x566f18(_0x41129d)>>0x3)),_0x29d460=(_0x3fbb25,_0x514c43)=>'-----BEGIN\x20'+_0x514c43+'-----\x0a'+(_0x3fbb25['match'](/.{1,64}/g)||[])['join']('\x0a')+'\x0a-----END\x20'+_0x514c43+'-----';const _0x2b26b7=async(_0x4a88ce,_0x3bf0d9,_0x28ccc6)=>{if(!_0x1efdb7(_0x28ccc6))throw new TypeError(_0x6785aa(_0x28ccc6,..._0x3fd054));if(!_0x28ccc6['extractable'])throw new TypeError('CryptoKey\x20is\x20not\x20extractable');if(_0x28ccc6['type']!==_0x4a88ce)throw new TypeError('key\x20is\x20not\x20a\x20'+_0x4a88ce+'\x20key');return _0x29d460(_0xf3c821(new Uint8Array(await _0x41e110['subtle']['exportKey'](_0x3bf0d9,_0x28ccc6))),_0x4a88ce['toUpperCase']()+'\x20KEY');},_0x3f4310=_0x27555d=>_0x2b26b7('public','spki',_0x27555d),_0x4d2721=_0x11a0e8=>_0x2b26b7('private','pkcs8',_0x11a0e8),_0x115d4b=(_0x243807,_0x4f5e66,_0x2bb061=0x0)=>{0x0===_0x2bb061&&(_0x4f5e66['unshift'](_0x4f5e66['length']),_0x4f5e66['unshift'](0x6));const _0x29b09b=_0x243807['indexOf'](_0x4f5e66[0x0],_0x2bb061);if(-0x1===_0x29b09b)return!0x1;const _0x575ab0=_0x243807['subarray'](_0x29b09b,_0x29b09b+_0x4f5e66['length']);return _0x575ab0['length']===_0x4f5e66['length']&&(_0x575ab0['every']((_0x221886,_0x253f31)=>_0x221886===_0x4f5e66[_0x253f31])||_0x115d4b(_0x243807,_0x4f5e66,_0x29b09b+0x1));},_0x2edd55=_0x442bfd=>{switch(!0x0){case _0x115d4b(_0x442bfd,[0x2a,0x86,0x48,0xce,0x3d,0x3,0x1,0x7]):return'P-256';case _0x115d4b(_0x442bfd,[0x2b,0x81,0x4,0x0,0x22]):return'P-384';case _0x115d4b(_0x442bfd,[0x2b,0x81,0x4,0x0,0x23]):return'P-521';case _0x115d4b(_0x442bfd,[0x2b,0x65,0x6e]):return'X25519';case _0x115d4b(_0x442bfd,[0x2b,0x65,0x6f]):return'X448';case _0x115d4b(_0x442bfd,[0x2b,0x65,0x70]):return'Ed25519';case _0x115d4b(_0x442bfd,[0x2b,0x65,0x71]):return'Ed448';default:throw new _0xb6a76d('Invalid\x20or\x20unsupported\x20EC\x20Key\x20Curve\x20or\x20OKP\x20Key\x20Sub\x20Type');}},_0x16bd5e=async(_0x22daf6,_0x3866af,_0x562b79,_0x2fd6ba,_0x5e0cb0)=>{let _0x4aba3b,_0x4a07ff;const _0x42f2e6=new Uint8Array(atob(_0x562b79['replace'](_0x22daf6,''))['split']('')['map'](_0x2e1c3a=>_0x2e1c3a['charCodeAt'](0x0))),_0x5f1023='spki'===_0x3866af;switch(_0x2fd6ba){case'PS256':case'PS384':case'PS512':_0x4aba3b={'name':'RSA-PSS','hash':'SHA-'+_0x2fd6ba['slice'](-0x3)},_0x4a07ff=_0x5f1023?['verify']:['sign'];break;case'RS256':case'RS384':case'RS512':_0x4aba3b={'name':'RSASSA-PKCS1-v1_5','hash':'SHA-'+_0x2fd6ba['slice'](-0x3)},_0x4a07ff=_0x5f1023?['verify']:['sign'];break;case'RSA-OAEP':case'RSA-OAEP-256':case'RSA-OAEP-384':case'RSA-OAEP-512':_0x4aba3b={'name':'RSA-OAEP','hash':'SHA-'+(parseInt(_0x2fd6ba['slice'](-0x3),0xa)||0x1)},_0x4a07ff=_0x5f1023?['encrypt','wrapKey']:['decrypt','unwrapKey'];break;case'ES256':_0x4aba3b={'name':'ECDSA','namedCurve':'P-256'},_0x4a07ff=_0x5f1023?['verify']:['sign'];break;case'ES384':_0x4aba3b={'name':'ECDSA','namedCurve':'P-384'},_0x4a07ff=_0x5f1023?['verify']:['sign'];break;case'ES512':_0x4aba3b={'name':'ECDSA','namedCurve':'P-521'},_0x4a07ff=_0x5f1023?['verify']:['sign'];break;case'ECDH-ES':case'ECDH-ES+A128KW':case'ECDH-ES+A192KW':case'ECDH-ES+A256KW':{const _0x40c040=_0x2edd55(_0x42f2e6);_0x4aba3b=_0x40c040['startsWith']('P-')?{'name':'ECDH','namedCurve':_0x40c040}:{'name':_0x40c040},_0x4a07ff=_0x5f1023?[]:['deriveBits'];break;}case'Ed25519':_0x4aba3b={'name':'Ed25519'},_0x4a07ff=_0x5f1023?['verify']:['sign'];break;case'EdDSA':_0x4aba3b={'name':_0x2edd55(_0x42f2e6)},_0x4a07ff=_0x5f1023?['verify']:['sign'];break;default:throw new _0xb6a76d('Invalid\x20or\x20unsupported\x20\x22alg\x22\x20(Algorithm)\x20value');}return _0x41e110['subtle']['importKey'](_0x3866af,_0x42f2e6,_0x4aba3b,_0x5e0cb0?.['extractable']??!0x1,_0x4a07ff);},_0x224de2=(_0x3a9f39,_0x130d9a,_0x5c2a57)=>_0x16bd5e(/(?:-----(?:BEGIN|END) PRIVATE KEY-----|\s)/g,'pkcs8',_0x3a9f39,_0x130d9a,_0x5c2a57),_0x47f671=(_0x1ca0cd,_0x4a77f7,_0x42f855)=>_0x16bd5e(/(?:-----(?:BEGIN|END) PUBLIC KEY-----|\s)/g,'spki',_0x1ca0cd,_0x4a77f7,_0x42f855);function _0x3da3c3(_0x548f52){const _0x555e0c=[];let _0x569dc5=0x0;for(;_0x569dc5<_0x548f52['length'];){const _0x24bc07=_0x9f0ecb(_0x548f52['subarray'](_0x569dc5));_0x555e0c['push'](_0x24bc07),_0x569dc5+=_0x24bc07['byteLength'];}return _0x555e0c;}function _0x9f0ecb(_0x26d966){let _0x569f85=0x0,_0x29e449=0x1f&_0x26d966[0x0];if(_0x569f85++,0x1f===_0x29e449){for(_0x29e449=0x0;_0x26d966[_0x569f85]>=0x80;)_0x29e449=0x80*_0x29e449+_0x26d966[_0x569f85]-0x80,_0x569f85++;_0x29e449=0x80*_0x29e449+_0x26d966[_0x569f85]-0x80,_0x569f85++;}let _0x2e14c0=0x0;if(_0x26d966[_0x569f85]<0x80)_0x2e14c0=_0x26d966[_0x569f85],_0x569f85++;else{if(0x80===_0x2e14c0){for(_0x2e14c0=0x0;0x0!==_0x26d966[_0x569f85+_0x2e14c0]||0x0!==_0x26d966[_0x569f85+_0x2e14c0+0x1];){if(_0x2e14c0>_0x26d966['byteLength'])throw new TypeError('invalid\x20indefinite\x20form\x20length');_0x2e14c0++;}const _0x46cb14=_0x569f85+_0x2e14c0+0x2;return{'byteLength':_0x46cb14,'contents':_0x26d966['subarray'](_0x569f85,_0x569f85+_0x2e14c0),'raw':_0x26d966['subarray'](0x0,_0x46cb14)};}{const _0x2f98d6=0x7f&_0x26d966[_0x569f85];_0x569f85++,_0x2e14c0=0x0;for(let _0x5a6f56=0x0;_0x5a6f56<_0x2f98d6;_0x5a6f56++)_0x2e14c0=0x100*_0x2e14c0+_0x26d966[_0x569f85],_0x569f85++;}}const _0x158507=_0x569f85+_0x2e14c0;return{'byteLength':_0x158507,'contents':_0x26d966['subarray'](_0x569f85,_0x158507),'raw':_0x26d966['subarray'](0x0,_0x158507)};}const _0x17834f=(_0x2baf69,_0x4538cd,_0x507fe4)=>{let _0x21afc8;try{_0x21afc8=function(_0x34456d){const _0x1a8129=_0x34456d['replace'](/(?:-----(?:BEGIN|END) CERTIFICATE-----|\s)/g,''),_0x3ef019=_0x4d0f5e(_0x1a8129);return _0x29d460(function(_0x97d7d7){const _0x12d5a7=_0x3da3c3(_0x3da3c3(_0x9f0ecb(_0x97d7d7)['contents'])[0x0]['contents']);return _0xf3c821(_0x12d5a7[0xa0===_0x12d5a7[0x0]['raw'][0x0]?0x6:0x5]['raw']);}(_0x3ef019),'PUBLIC\x20KEY');}(_0x2baf69);}catch(_0x30358b){throw new TypeError('Failed\x20to\x20parse\x20the\x20X.509\x20certificate',{'cause':_0x30358b});}return _0x47f671(_0x21afc8,_0x4538cd,_0x507fe4);};async function _0xfa7fba(_0x321c3c,_0xa14641,_0x483b4b){if('string'!=typeof _0x321c3c||0x0!==_0x321c3c['indexOf']('-----BEGIN\x20PUBLIC\x20KEY-----'))throw new TypeError('\x22spki\x22\x20must\x20be\x20SPKI\x20formatted\x20string');return _0x47f671(_0x321c3c,_0xa14641,_0x483b4b);}async function _0x379fa9(_0x4d2a8e,_0x349f35,_0x2b3ecb){if('string'!=typeof _0x4d2a8e||0x0!==_0x4d2a8e['indexOf']('-----BEGIN\x20CERTIFICATE-----'))throw new TypeError('\x22x509\x22\x20must\x20be\x20X.509\x20formatted\x20string');return _0x17834f(_0x4d2a8e,_0x349f35,_0x2b3ecb);}async function _0x1e42e6(_0x306eff,_0x3726a2,_0x2b8a6a){if('string'!=typeof _0x306eff||0x0!==_0x306eff['indexOf']('-----BEGIN\x20PRIVATE\x20KEY-----'))throw new TypeError('\x22pkcs8\x22\x20must\x20be\x20PKCS#8\x20formatted\x20string');return _0x224de2(_0x306eff,_0x3726a2,_0x2b8a6a);}async function _0x48a7c1(_0x887546,_0x1196d1){if(!_0x14a94b(_0x887546))throw new TypeError('JWK\x20must\x20be\x20an\x20object');switch(_0x1196d1||(_0x1196d1=_0x887546['alg']),_0x887546['kty']){case'oct':if('string'!=typeof _0x887546['k']||!_0x887546['k'])throw new TypeError('missing\x20\x22k\x22\x20(Key\x20Value)\x20Parameter\x20value');return _0x472e05(_0x887546['k']);case'RSA':if('oth'in _0x887546&&void 0x0!==_0x887546['oth'])throw new _0xb6a76d('RSA\x20JWK\x20\x22oth\x22\x20(Other\x20Primes\x20Info)\x20Parameter\x20value\x20is\x20not\x20supported');case'EC':case'OKP':return _0x2d7606({..._0x887546,'alg':_0x1196d1});default:throw new _0xb6a76d('Unsupported\x20\x22kty\x22\x20(Key\x20Type)\x20Parameter\x20value');}}const _0x2d5f73=_0x56f0f5=>_0x56f0f5?.[Symbol['toStringTag']],_0x317e75=(_0x24fc1d,_0x531e90,_0x352527)=>{if(void 0x0!==_0x531e90['use']&&'sig'!==_0x531e90['use'])throw new TypeError('Invalid\x20key\x20for\x20this\x20operation,\x20when\x20present\x20its\x20use\x20must\x20be\x20sig');if(void 0x0!==_0x531e90['key_ops']&&!0x0!==_0x531e90['key_ops']['includes']?.(_0x352527))throw new TypeError('Invalid\x20key\x20for\x20this\x20operation,\x20when\x20present\x20its\x20key_ops\x20must\x20include\x20'+_0x352527);if(void 0x0!==_0x531e90['alg']&&_0x531e90['alg']!==_0x24fc1d)throw new TypeError('Invalid\x20key\x20for\x20this\x20operation,\x20when\x20present\x20its\x20alg\x20must\x20be\x20'+_0x24fc1d);return!0x0;};function _0x271b3a(_0x22c638,_0x3226ee,_0x58eb61,_0x48d4c8){_0x3226ee['startsWith']('HS')||'dir'===_0x3226ee||_0x3226ee['startsWith']('PBES2')||/^A\d{3}(?:GCM)?KW$/['test'](_0x3226ee)?((_0x7d2deb,_0x7ee1c0,_0x1cd5ec,_0x51a3a2)=>{if(!(_0x7ee1c0 instanceof Uint8Array)){if(_0x51a3a2&&_0x45cdf1(_0x7ee1c0)){if(function(_0xff9939){return _0x45cdf1(_0xff9939)&&'oct'===_0xff9939['kty']&&'string'==typeof _0xff9939['k'];}(_0x7ee1c0)&&_0x317e75(_0x7d2deb,_0x7ee1c0,_0x1cd5ec))return;throw new TypeError('JSON\x20Web\x20Key\x20for\x20symmetric\x20algorithms\x20must\x20have\x20JWK\x20\x22kty\x22\x20(Key\x20Type)\x20equal\x20to\x20\x22oct\x22\x20and\x20the\x20JWK\x20\x22k\x22\x20(Key\x20Value)\x20present');}if(!_0x21fb47(_0x7ee1c0))throw new TypeError(_0x149e59(_0x7d2deb,_0x7ee1c0,..._0x3fd054,'Uint8Array',_0x51a3a2?'JSON\x20Web\x20Key':null));if('secret'!==_0x7ee1c0['type'])throw new TypeError(_0x2d5f73(_0x7ee1c0)+'\x20instances\x20for\x20symmetric\x20algorithms\x20must\x20be\x20of\x20type\x20\x22secret\x22');}})(_0x3226ee,_0x58eb61,_0x48d4c8,_0x22c638):((_0x348606,_0x58cfc2,_0xeb3358,_0x462883)=>{if(_0x462883&&_0x45cdf1(_0x58cfc2))switch(_0xeb3358){case'sign':if(function(_0x5c07bb){return'oct'!==_0x5c07bb['kty']&&'string'==typeof _0x5c07bb['d'];}(_0x58cfc2)&&_0x317e75(_0x348606,_0x58cfc2,_0xeb3358))return;throw new TypeError('JSON\x20Web\x20Key\x20for\x20this\x20operation\x20be\x20a\x20private\x20JWK');case'verify':if(function(_0x18855a){return'oct'!==_0x18855a['kty']&&void 0x0===_0x18855a['d'];}(_0x58cfc2)&&_0x317e75(_0x348606,_0x58cfc2,_0xeb3358))return;throw new TypeError('JSON\x20Web\x20Key\x20for\x20this\x20operation\x20be\x20a\x20public\x20JWK');}if(!_0x21fb47(_0x58cfc2))throw new TypeError(_0x149e59(_0x348606,_0x58cfc2,..._0x3fd054,_0x462883?'JSON\x20Web\x20Key':null));if('secret'===_0x58cfc2['type'])throw new TypeError(_0x2d5f73(_0x58cfc2)+'\x20instances\x20for\x20asymmetric\x20algorithms\x20must\x20not\x20be\x20of\x20type\x20\x22secret\x22');if('sign'===_0xeb3358&&'public'===_0x58cfc2['type'])throw new TypeError(_0x2d5f73(_0x58cfc2)+'\x20instances\x20for\x20asymmetric\x20algorithm\x20signing\x20must\x20be\x20of\x20type\x20\x22private\x22');if('decrypt'===_0xeb3358&&'public'===_0x58cfc2['type'])throw new TypeError(_0x2d5f73(_0x58cfc2)+'\x20instances\x20for\x20asymmetric\x20algorithm\x20decryption\x20must\x20be\x20of\x20type\x20\x22private\x22');if(_0x58cfc2['algorithm']&&'verify'===_0xeb3358&&'private'===_0x58cfc2['type'])throw new TypeError(_0x2d5f73(_0x58cfc2)+'\x20instances\x20for\x20asymmetric\x20algorithm\x20verifying\x20must\x20be\x20of\x20type\x20\x22public\x22');if(_0x58cfc2['algorithm']&&'encrypt'===_0xeb3358&&'private'===_0x58cfc2['type'])throw new TypeError(_0x2d5f73(_0x58cfc2)+'\x20instances\x20for\x20asymmetric\x20algorithm\x20encryption\x20must\x20be\x20of\x20type\x20\x22public\x22');})(_0x3226ee,_0x58eb61,_0x48d4c8,_0x22c638);}var _0x38cfac=_0x271b3a['bind'](void 0x0,!0x1);const _0x46c645=_0x271b3a['bind'](void 0x0,!0x0);var _0x3fd510=async(_0x4c3225,_0x933ec7,_0x22a613,_0x2b2b56,_0x2ca822)=>{if(!(_0x1efdb7(_0x22a613)||_0x22a613 instanceof Uint8Array))throw new TypeError(_0x6785aa(_0x22a613,..._0x3fd054,'Uint8Array'));switch(_0x2b2b56?_0x13a517(_0x4c3225,_0x2b2b56):_0x2b2b56=_0x1e831f(new Uint8Array(_0x519b8e(_0x4c3225)>>0x3)),_0x4c3225){case'A128CBC-HS256':case'A192CBC-HS384':case'A256CBC-HS512':return _0x22a613 instanceof Uint8Array&&_0x30519e(_0x22a613,parseInt(_0x4c3225['slice'](-0x3),0xa)),async function(_0x2f6f8a,_0x523d5f,_0x38ad30,_0x1c5805,_0x62bb){if(!(_0x38ad30 instanceof Uint8Array))throw new TypeError(_0x6785aa(_0x38ad30,'Uint8Array'));const _0x12d6fc=parseInt(_0x2f6f8a['slice'](0x1,0x4),0xa),_0x5ec6f9=await _0x41e110['subtle']['importKey']('raw',_0x38ad30['subarray'](_0x12d6fc>>0x3),'AES-CBC',!0x1,['encrypt']),_0x3ee7cc=await _0x41e110['subtle']['importKey']('raw',_0x38ad30['subarray'](0x0,_0x12d6fc>>0x3),{'hash':'SHA-'+(_0x12d6fc<<0x1),'name':'HMAC'},!0x1,['sign']),_0x2dcdb7=new Uint8Array(await _0x41e110['subtle']['encrypt']({'iv':_0x1c5805,'name':'AES-CBC'},_0x5ec6f9,_0x523d5f)),_0x387b29=_0x26f95c(_0x62bb,_0x1c5805,_0x2dcdb7,_0x108ddc(_0x62bb['length']<<0x3));return{'ciphertext':_0x2dcdb7,'tag':new Uint8Array((await _0x41e110['subtle']['sign']('HMAC',_0x3ee7cc,_0x387b29))['slice'](0x0,_0x12d6fc>>0x3)),'iv':_0x1c5805};}(_0x4c3225,_0x933ec7,_0x22a613,_0x2b2b56,_0x2ca822);case'A128GCM':case'A192GCM':case'A256GCM':return _0x22a613 instanceof Uint8Array&&_0x30519e(_0x22a613,parseInt(_0x4c3225['slice'](0x1,0x4),0xa)),async function(_0x13625d,_0x1c30f6,_0x620aa4,_0x4c685e,_0x1a696e){let _0x22381b;_0x620aa4 instanceof Uint8Array?_0x22381b=await _0x41e110['subtle']['importKey']('raw',_0x620aa4,'AES-GCM',!0x1,['encrypt']):(_0x1d37cb(_0x620aa4,_0x13625d,'encrypt'),_0x22381b=_0x620aa4);const _0x4951d1=new Uint8Array(await _0x41e110['subtle']['encrypt']({'additionalData':_0x1a696e,'iv':_0x4c685e,'name':'AES-GCM','tagLength':0x80},_0x22381b,_0x1c30f6)),_0x46bb4b=_0x4951d1['slice'](-0x10);return{'ciphertext':_0x4951d1['slice'](0x0,-0x10),'tag':_0x46bb4b,'iv':_0x4c685e};}(_0x4c3225,_0x933ec7,_0x22a613,_0x2b2b56,_0x2ca822);default:throw new _0xb6a76d('Unsupported\x20JWE\x20Content\x20Encryption\x20Algorithm');}},_0xbc7817=async function(_0x1a1b1d,_0x5a7630,_0x5e79be,_0xf7d509,_0x4fc4a3){switch(_0x38cfac(_0x1a1b1d,_0x5a7630,'decrypt'),_0x5a7630=await _0x15e34c?.(_0x5a7630,_0x1a1b1d)||_0x5a7630,_0x1a1b1d){case'dir':if(void 0x0!==_0x5e79be)throw new _0x555480('Encountered\x20unexpected\x20JWE\x20Encrypted\x20Key');return _0x5a7630;case'ECDH-ES':if(void 0x0!==_0x5e79be)throw new _0x555480('Encountered\x20unexpected\x20JWE\x20Encrypted\x20Key');case'ECDH-ES+A128KW':case'ECDH-ES+A192KW':case'ECDH-ES+A256KW':{if(!_0x14a94b(_0xf7d509['epk']))throw new _0x555480('JOSE\x20Header\x20\x22epk\x22\x20(Ephemeral\x20Public\x20Key)\x20missing\x20or\x20invalid');if(!_0x9dc9bf(_0x5a7630))throw new _0xb6a76d('ECDH\x20with\x20the\x20provided\x20key\x20is\x20not\x20allowed\x20or\x20not\x20supported\x20by\x20your\x20javascript\x20runtime');const _0x685b00=await _0x48a7c1(_0xf7d509['epk'],_0x1a1b1d);let _0x8e4aa1,_0x425b17;if(void 0x0!==_0xf7d509['apu']){if('string'!=typeof _0xf7d509['apu'])throw new _0x555480('JOSE\x20Header\x20\x22apu\x22\x20(Agreement\x20PartyUInfo)\x20invalid');try{_0x8e4aa1=_0x472e05(_0xf7d509['apu']);}catch{throw new _0x555480('Failed\x20to\x20base64url\x20decode\x20the\x20apu');}}if(void 0x0!==_0xf7d509['apv']){if('string'!=typeof _0xf7d509['apv'])throw new _0x555480('JOSE\x20Header\x20\x22apv\x22\x20(Agreement\x20PartyVInfo)\x20invalid');try{_0x425b17=_0x472e05(_0xf7d509['apv']);}catch{throw new _0x555480('Failed\x20to\x20base64url\x20decode\x20the\x20apv');}}const _0x304a6f=await _0x567b56(_0x685b00,_0x5a7630,'ECDH-ES'===_0x1a1b1d?_0xf7d509['enc']:_0x1a1b1d,'ECDH-ES'===_0x1a1b1d?_0x566f18(_0xf7d509['enc']):parseInt(_0x1a1b1d['slice'](-0x5,-0x2),0xa),_0x8e4aa1,_0x425b17);if('ECDH-ES'===_0x1a1b1d)return _0x304a6f;if(void 0x0===_0x5e79be)throw new _0x555480('JWE\x20Encrypted\x20Key\x20missing');return _0x56a00d(_0x1a1b1d['slice'](-0x6),_0x304a6f,_0x5e79be);}case'RSA1_5':case'RSA-OAEP':case'RSA-OAEP-256':case'RSA-OAEP-384':case'RSA-OAEP-512':if(void 0x0===_0x5e79be)throw new _0x555480('JWE\x20Encrypted\x20Key\x20missing');return(async(_0x126f17,_0x35e8e4,_0x32cbf8)=>{if(!_0x1efdb7(_0x35e8e4))throw new TypeError(_0x6785aa(_0x35e8e4,..._0x3fd054));if(_0x1d37cb(_0x35e8e4,_0x126f17,'decrypt','unwrapKey'),_0x30b2db(_0x126f17,_0x35e8e4),_0x35e8e4['usages']['includes']('decrypt'))return new Uint8Array(await _0x41e110['subtle']['decrypt'](_0x185d31(_0x126f17),_0x35e8e4,_0x32cbf8));if(_0x35e8e4['usages']['includes']('unwrapKey')){const _0x4ad839=await _0x41e110['subtle']['unwrapKey']('raw',_0x32cbf8,_0x35e8e4,_0x185d31(_0x126f17),..._0x54fc6e);return new Uint8Array(await _0x41e110['subtle']['exportKey']('raw',_0x4ad839));}throw new TypeError('RSA-OAEP\x20key\x20\x22usages\x22\x20must\x20include\x20\x22decrypt\x22\x20or\x20\x22unwrapKey\x22\x20for\x20this\x20operation');})(_0x1a1b1d,_0x5a7630,_0x5e79be);case'PBES2-HS256+A128KW':case'PBES2-HS384+A192KW':case'PBES2-HS512+A256KW':{if(void 0x0===_0x5e79be)throw new _0x555480('JWE\x20Encrypted\x20Key\x20missing');if('number'!=typeof _0xf7d509['p2c'])throw new _0x555480('JOSE\x20Header\x20\x22p2c\x22\x20(PBES2\x20Count)\x20missing\x20or\x20invalid');const _0x5baef5=_0x4fc4a3?.['maxPBES2Count']||0x2710;if(_0xf7d509['p2c']>_0x5baef5)throw new _0x555480('JOSE\x20Header\x20\x22p2c\x22\x20(PBES2\x20Count)\x20out\x20is\x20of\x20acceptable\x20bounds');if('string'!=typeof _0xf7d509['p2s'])throw new _0x555480('JOSE\x20Header\x20\x22p2s\x22\x20(PBES2\x20Salt)\x20missing\x20or\x20invalid');let _0x49bdb5;try{_0x49bdb5=_0x472e05(_0xf7d509['p2s']);}catch{throw new _0x555480('Failed\x20to\x20base64url\x20decode\x20the\x20p2s');}return(async(_0x4a950f,_0x21f91a,_0x1b139a,_0x204104,_0x50236c)=>{const _0x351c8d=await _0x35286b(_0x50236c,_0x4a950f,_0x204104,_0x21f91a);return _0x56a00d(_0x4a950f['slice'](-0x6),_0x351c8d,_0x1b139a);})(_0x1a1b1d,_0x5a7630,_0x5e79be,_0xf7d509['p2c'],_0x49bdb5);}case'A128KW':case'A192KW':case'A256KW':if(void 0x0===_0x5e79be)throw new _0x555480('JWE\x20Encrypted\x20Key\x20missing');return _0x56a00d(_0x1a1b1d,_0x5a7630,_0x5e79be);case'A128GCMKW':case'A192GCMKW':case'A256GCMKW':{if(void 0x0===_0x5e79be)throw new _0x555480('JWE\x20Encrypted\x20Key\x20missing');if('string'!=typeof _0xf7d509['iv'])throw new _0x555480('JOSE\x20Header\x20\x22iv\x22\x20(Initialization\x20Vector)\x20missing\x20or\x20invalid');if('string'!=typeof _0xf7d509['tag'])throw new _0x555480('JOSE\x20Header\x20\x22tag\x22\x20(Authentication\x20Tag)\x20missing\x20or\x20invalid');let _0x183c76,_0x1ab61a;try{_0x183c76=_0x472e05(_0xf7d509['iv']);}catch{throw new _0x555480('Failed\x20to\x20base64url\x20decode\x20the\x20iv');}try{_0x1ab61a=_0x472e05(_0xf7d509['tag']);}catch{throw new _0x555480('Failed\x20to\x20base64url\x20decode\x20the\x20tag');}return async function(_0x419576,_0x3ebb5c,_0x566cd9,_0x5c23d0,_0x4c0a97){const _0x368dcb=_0x419576['slice'](0x0,0x7);return _0x449213(_0x368dcb,_0x3ebb5c,_0x566cd9,_0x5c23d0,_0x4c0a97,new Uint8Array(0x0));}(_0x1a1b1d,_0x5a7630,_0x5e79be,_0x183c76,_0x1ab61a);}default:throw new _0xb6a76d('Invalid\x20or\x20unsupported\x20\x22alg\x22\x20(JWE\x20Algorithm)\x20header\x20value');}},_0x4db779=function(_0x40bacf,_0x7d32f3,_0xdd7749,_0x440f46,_0x929c46){if(void 0x0!==_0x929c46['crit']&&void 0x0===_0x440f46?.['crit'])throw new _0x40bacf('\x22crit\x22\x20(Critical)\x20Header\x20Parameter\x20MUST\x20be\x20integrity\x20protected');if(!_0x440f46||void 0x0===_0x440f46['crit'])return new Set();if(!Array['isArray'](_0x440f46['crit'])||0x0===_0x440f46['crit']['length']||_0x440f46['crit']['some'](_0x30f686=>'string'!=typeof _0x30f686||0x0===_0x30f686['length']))throw new _0x40bacf('\x22crit\x22\x20(Critical)\x20Header\x20Parameter\x20MUST\x20be\x20an\x20array\x20of\x20non-empty\x20strings\x20when\x20present');let _0x1b4b4e;_0x1b4b4e=void 0x0!==_0xdd7749?new Map([...Object['entries'](_0xdd7749),..._0x7d32f3['entries']()]):_0x7d32f3;for(const _0x865cf of _0x440f46['crit']){if(!_0x1b4b4e['has'](_0x865cf))throw new _0xb6a76d('Extension\x20Header\x20Parameter\x20\x22'+_0x865cf+'\x22\x20is\x20not\x20recognized');if(void 0x0===_0x929c46[_0x865cf])throw new _0x40bacf('Extension\x20Header\x20Parameter\x20\x22'+_0x865cf+'\x22\x20is\x20missing');if(_0x1b4b4e['get'](_0x865cf)&&void 0x0===_0x440f46[_0x865cf])throw new _0x40bacf('Extension\x20Header\x20Parameter\x20\x22'+_0x865cf+'\x22\x20MUST\x20be\x20integrity\x20protected');}return new Set(_0x440f46['crit']);},_0x15572e=(_0x773ba4,_0x180faa)=>{if(void 0x0!==_0x180faa&&(!Array['isArray'](_0x180faa)||_0x180faa['some'](_0x3af4d9=>'string'!=typeof _0x3af4d9)))throw new TypeError('\x22'+_0x773ba4+'\x22\x20option\x20must\x20be\x20an\x20array\x20of\x20strings');if(_0x180faa)return new Set(_0x180faa);};async function _0x20f961(_0x19d3c5,_0x164ac7,_0xaed821){if(!_0x14a94b(_0x19d3c5))throw new _0x555480('Flattened\x20JWE\x20must\x20be\x20an\x20object');if(void 0x0===_0x19d3c5['protected']&&void 0x0===_0x19d3c5['header']&&void 0x0===_0x19d3c5['unprotected'])throw new _0x555480('JOSE\x20Header\x20missing');if(void 0x0!==_0x19d3c5['iv']&&'string'!=typeof _0x19d3c5['iv'])throw new _0x555480('JWE\x20Initialization\x20Vector\x20incorrect\x20type');if('string'!=typeof _0x19d3c5['ciphertext'])throw new _0x555480('JWE\x20Ciphertext\x20missing\x20or\x20incorrect\x20type');if(void 0x0!==_0x19d3c5['tag']&&'string'!=typeof _0x19d3c5['tag'])throw new _0x555480('JWE\x20Authentication\x20Tag\x20incorrect\x20type');if(void 0x0!==_0x19d3c5['protected']&&'string'!=typeof _0x19d3c5['protected'])throw new _0x555480('JWE\x20Protected\x20Header\x20incorrect\x20type');if(void 0x0!==_0x19d3c5['encrypted_key']&&'string'!=typeof _0x19d3c5['encrypted_key'])throw new _0x555480('JWE\x20Encrypted\x20Key\x20incorrect\x20type');if(void 0x0!==_0x19d3c5['aad']&&'string'!=typeof _0x19d3c5['aad'])throw new _0x555480('JWE\x20AAD\x20incorrect\x20type');if(void 0x0!==_0x19d3c5['header']&&!_0x14a94b(_0x19d3c5['header']))throw new _0x555480('JWE\x20Shared\x20Unprotected\x20Header\x20incorrect\x20type');if(void 0x0!==_0x19d3c5['unprotected']&&!_0x14a94b(_0x19d3c5['unprotected']))throw new _0x555480('JWE\x20Per-Recipient\x20Unprotected\x20Header\x20incorrect\x20type');let _0x12866a;if(_0x19d3c5['protected'])try{const _0x51667f=_0x472e05(_0x19d3c5['protected']);_0x12866a=JSON['parse'](_0x41a439['decode'](_0x51667f));}catch{throw new _0x555480('JWE\x20Protected\x20Header\x20is\x20invalid');}if(!_0x2c21d7(_0x12866a,_0x19d3c5['header'],_0x19d3c5['unprotected']))throw new _0x555480('JWE\x20Protected,\x20JWE\x20Unprotected\x20Header,\x20and\x20JWE\x20Per-Recipient\x20Unprotected\x20Header\x20Parameter\x20names\x20must\x20be\x20disjoint');const _0x3bb857={..._0x12866a,..._0x19d3c5['header'],..._0x19d3c5['unprotected']};if(_0x4db779(_0x555480,new Map(),_0xaed821?.['crit'],_0x12866a,_0x3bb857),void 0x0!==_0x3bb857['zip'])throw new _0xb6a76d('JWE\x20\x22zip\x22\x20(Compression\x20Algorithm)\x20Header\x20Parameter\x20is\x20not\x20supported.');const {alg:_0x5132b1,enc:_0x41cca6}=_0x3bb857;if('string'!=typeof _0x5132b1||!_0x5132b1)throw new _0x555480('missing\x20JWE\x20Algorithm\x20(alg)\x20in\x20JWE\x20Header');if('string'!=typeof _0x41cca6||!_0x41cca6)throw new _0x555480('missing\x20JWE\x20Encryption\x20Algorithm\x20(enc)\x20in\x20JWE\x20Header');const _0x3f0196=_0xaed821&&_0x15572e('keyManagementAlgorithms',_0xaed821['keyManagementAlgorithms']),_0x274ebb=_0xaed821&&_0x15572e('contentEncryptionAlgorithms',_0xaed821['contentEncryptionAlgorithms']);if(_0x3f0196&&!_0x3f0196['has'](_0x5132b1)||!_0x3f0196&&_0x5132b1['startsWith']('PBES2'))throw new _0x490687('\x22alg\x22\x20(Algorithm)\x20Header\x20Parameter\x20value\x20not\x20allowed');if(_0x274ebb&&!_0x274ebb['has'](_0x41cca6))throw new _0x490687('\x22enc\x22\x20(Encryption\x20Algorithm)\x20Header\x20Parameter\x20value\x20not\x20allowed');let _0x12e90f;if(void 0x0!==_0x19d3c5['encrypted_key'])try{_0x12e90f=_0x472e05(_0x19d3c5['encrypted_key']);}catch{throw new _0x555480('Failed\x20to\x20base64url\x20decode\x20the\x20encrypted_key');}let _0x52dde6,_0x546c88,_0x3f3189,_0x3ec4e=!0x1;'function'==typeof _0x164ac7&&(_0x164ac7=await _0x164ac7(_0x12866a,_0x19d3c5),_0x3ec4e=!0x0);try{_0x52dde6=await _0xbc7817(_0x5132b1,_0x164ac7,_0x12e90f,_0x3bb857,_0xaed821);}catch(_0x3d0d57){if(_0x3d0d57 instanceof TypeError||_0x3d0d57 instanceof _0x555480||_0x3d0d57 instanceof _0xb6a76d)throw _0x3d0d57;_0x52dde6=_0x57b916(_0x41cca6);}if(void 0x0!==_0x19d3c5['iv'])try{_0x546c88=_0x472e05(_0x19d3c5['iv']);}catch{throw new _0x555480('Failed\x20to\x20base64url\x20decode\x20the\x20iv');}if(void 0x0!==_0x19d3c5['tag'])try{_0x3f3189=_0x472e05(_0x19d3c5['tag']);}catch{throw new _0x555480('Failed\x20to\x20base64url\x20decode\x20the\x20tag');}const _0x57ee34=_0x5dd7ac['encode'](_0x19d3c5['protected']??'');let _0x173301,_0x2cd792;_0x173301=void 0x0!==_0x19d3c5['aad']?_0x26f95c(_0x57ee34,_0x5dd7ac['encode']('.'),_0x5dd7ac['encode'](_0x19d3c5['aad'])):_0x57ee34;try{_0x2cd792=_0x472e05(_0x19d3c5['ciphertext']);}catch{throw new _0x555480('Failed\x20to\x20base64url\x20decode\x20the\x20ciphertext');}const _0x4d3fa0={'plaintext':await _0x449213(_0x41cca6,_0x52dde6,_0x2cd792,_0x546c88,_0x3f3189,_0x173301)};if(void 0x0!==_0x19d3c5['protected']&&(_0x4d3fa0['protectedHeader']=_0x12866a),void 0x0!==_0x19d3c5['aad'])try{_0x4d3fa0['additionalAuthenticatedData']=_0x472e05(_0x19d3c5['aad']);}catch{throw new _0x555480('Failed\x20to\x20base64url\x20decode\x20the\x20aad');}return void 0x0!==_0x19d3c5['unprotected']&&(_0x4d3fa0['sharedUnprotectedHeader']=_0x19d3c5['unprotected']),void 0x0!==_0x19d3c5['header']&&(_0x4d3fa0['unprotectedHeader']=_0x19d3c5['header']),_0x3ec4e?{..._0x4d3fa0,'key':_0x164ac7}:_0x4d3fa0;}async function _0x3548f3(_0x8d7545,_0x3b3b0a,_0x59c23c){if(_0x8d7545 instanceof Uint8Array&&(_0x8d7545=_0x41a439['decode'](_0x8d7545)),'string'!=typeof _0x8d7545)throw new _0x555480('Compact\x20JWE\x20must\x20be\x20a\x20string\x20or\x20Uint8Array');const {0x0:_0x1305ef,0x1:_0x20053d,0x2:_0x1a3da8,0x3:_0x159b2e,0x4:_0x227c26,length:_0x387348}=_0x8d7545['split']('.');if(0x5!==_0x387348)throw new _0x555480('Invalid\x20Compact\x20JWE');const _0x29c170=await _0x20f961({'ciphertext':_0x159b2e,'iv':_0x1a3da8||void 0x0,'protected':_0x1305ef,'tag':_0x227c26||void 0x0,'encrypted_key':_0x20053d||void 0x0},_0x3b3b0a,_0x59c23c),_0x3e0f01={'plaintext':_0x29c170['plaintext'],'protectedHeader':_0x29c170['protectedHeader']};return'function'==typeof _0x3b3b0a?{..._0x3e0f01,'key':_0x29c170['key']}:_0x3e0f01;}async function _0x54fb37(_0x4409a6,_0xc5826b,_0x2859f7){if(!_0x14a94b(_0x4409a6))throw new _0x555480('General\x20JWE\x20must\x20be\x20an\x20object');if(!Array['isArray'](_0x4409a6['recipients'])||!_0x4409a6['recipients']['every'](_0x14a94b))throw new _0x555480('JWE\x20Recipients\x20missing\x20or\x20incorrect\x20type');if(!_0x4409a6['recipients']['length'])throw new _0x555480('JWE\x20Recipients\x20has\x20no\x20members');for(const _0x521843 of _0x4409a6['recipients'])try{return await _0x20f961({'aad':_0x4409a6['aad'],'ciphertext':_0x4409a6['ciphertext'],'encrypted_key':_0x521843['encrypted_key'],'header':_0x521843['header'],'iv':_0x4409a6['iv'],'protected':_0x4409a6['protected'],'tag':_0x4409a6['tag'],'unprotected':_0x4409a6['unprotected']},_0xc5826b,_0x2859f7);}catch{}throw new _0x2cf2d2();}const _0x1bae18=Symbol();var _0x4773ba=async _0x17eaf5=>{if(_0x17eaf5 instanceof Uint8Array)return{'kty':'oct','k':_0x195223(_0x17eaf5)};if(!_0x1efdb7(_0x17eaf5))throw new TypeError(_0x6785aa(_0x17eaf5,..._0x3fd054,'Uint8Array'));if(!_0x17eaf5['extractable'])throw new TypeError('non-extractable\x20CryptoKey\x20cannot\x20be\x20exported\x20as\x20a\x20JWK');const {ext:_0x4d94c9,key_ops:_0xe047b0,alg:_0x5f5d61,use:_0x2aeabd,..._0x3d5d72}=await _0x41e110['subtle']['exportKey']('jwk',_0x17eaf5);return _0x3d5d72;};async function _0x3fa3ef(_0x94fed2){return _0x3f4310(_0x94fed2);}async function _0x2d506c(_0x20c8df){return _0x4d2721(_0x20c8df);}async function _0x4e6755(_0x1538df){return _0x4773ba(_0x1538df);}var _0x538464=async function(_0x290e2f,_0x45727e,_0x49fc5c,_0x59b7fa,_0x2adf9c={}){let _0x54b374,_0x158909,_0x4bb359;switch(_0x38cfac(_0x290e2f,_0x49fc5c,'encrypt'),_0x49fc5c=await _0x5ef51e?.(_0x49fc5c,_0x290e2f)||_0x49fc5c,_0x290e2f){case'dir':_0x4bb359=_0x49fc5c;break;case'ECDH-ES':case'ECDH-ES+A128KW':case'ECDH-ES+A192KW':case'ECDH-ES+A256KW':{if(!_0x9dc9bf(_0x49fc5c))throw new _0xb6a76d('ECDH\x20with\x20the\x20provided\x20key\x20is\x20not\x20allowed\x20or\x20not\x20supported\x20by\x20your\x20javascript\x20runtime');const {apu:_0x4f5ed7,apv:_0x1f93d8}=_0x2adf9c;let {epk:_0x46b11a}=_0x2adf9c;_0x46b11a||(_0x46b11a=(await async function(_0x5d7970){if(!_0x1efdb7(_0x5d7970))throw new TypeError(_0x6785aa(_0x5d7970,..._0x3fd054));return _0x41e110['subtle']['generateKey'](_0x5d7970['algorithm'],!0x0,['deriveBits']);}(_0x49fc5c))['privateKey']);const {x:_0x47296a,y:_0x3508fe,crv:_0x3a2c28,kty:_0x4e646f}=await _0x4e6755(_0x46b11a),_0x2f274b=await _0x567b56(_0x49fc5c,_0x46b11a,'ECDH-ES'===_0x290e2f?_0x45727e:_0x290e2f,'ECDH-ES'===_0x290e2f?_0x566f18(_0x45727e):parseInt(_0x290e2f['slice'](-0x5,-0x2),0xa),_0x4f5ed7,_0x1f93d8);if(_0x158909={'epk':{'x':_0x47296a,'crv':_0x3a2c28,'kty':_0x4e646f}},'EC'===_0x4e646f&&(_0x158909['epk']['y']=_0x3508fe),_0x4f5ed7&&(_0x158909['apu']=_0x195223(_0x4f5ed7)),_0x1f93d8&&(_0x158909['apv']=_0x195223(_0x1f93d8)),'ECDH-ES'===_0x290e2f){_0x4bb359=_0x2f274b;break;}_0x4bb359=_0x59b7fa||_0x57b916(_0x45727e);const _0x46d60e=_0x290e2f['slice'](-0x6);_0x54b374=await _0x561022(_0x46d60e,_0x2f274b,_0x4bb359);break;}case'RSA1_5':case'RSA-OAEP':case'RSA-OAEP-256':case'RSA-OAEP-384':case'RSA-OAEP-512':_0x4bb359=_0x59b7fa||_0x57b916(_0x45727e),_0x54b374=await(async(_0x17315c,_0x5f0bc6,_0x145dc5)=>{if(!_0x1efdb7(_0x5f0bc6))throw new TypeError(_0x6785aa(_0x5f0bc6,..._0x3fd054));if(_0x1d37cb(_0x5f0bc6,_0x17315c,'encrypt','wrapKey'),_0x30b2db(_0x17315c,_0x5f0bc6),_0x5f0bc6['usages']['includes']('encrypt'))return new Uint8Array(await _0x41e110['subtle']['encrypt'](_0x185d31(_0x17315c),_0x5f0bc6,_0x145dc5));if(_0x5f0bc6['usages']['includes']('wrapKey')){const _0x4c5eb4=await _0x41e110['subtle']['importKey']('raw',_0x145dc5,..._0x54fc6e);return new Uint8Array(await _0x41e110['subtle']['wrapKey']('raw',_0x4c5eb4,_0x5f0bc6,_0x185d31(_0x17315c)));}throw new TypeError('RSA-OAEP\x20key\x20\x22usages\x22\x20must\x20include\x20\x22encrypt\x22\x20or\x20\x22wrapKey\x22\x20for\x20this\x20operation');})(_0x290e2f,_0x49fc5c,_0x4bb359);break;case'PBES2-HS256+A128KW':case'PBES2-HS384+A192KW':case'PBES2-HS512+A256KW':{_0x4bb359=_0x59b7fa||_0x57b916(_0x45727e);const {p2c:_0x538b17,p2s:_0x19234e}=_0x2adf9c;({encryptedKey:_0x54b374,..._0x158909}=await(async(_0x7ff5e,_0x109eb8,_0x1011a5,_0x515354=0x800,_0x2eaedb=_0x1e831f(new Uint8Array(0x10)))=>{const _0x5cca0a=await _0x35286b(_0x2eaedb,_0x7ff5e,_0x515354,_0x109eb8);return{'encryptedKey':await _0x561022(_0x7ff5e['slice'](-0x6),_0x5cca0a,_0x1011a5),'p2c':_0x515354,'p2s':_0x195223(_0x2eaedb)};})(_0x290e2f,_0x49fc5c,_0x4bb359,_0x538b17,_0x19234e));break;}case'A128KW':case'A192KW':case'A256KW':_0x4bb359=_0x59b7fa||_0x57b916(_0x45727e),_0x54b374=await _0x561022(_0x290e2f,_0x49fc5c,_0x4bb359);break;case'A128GCMKW':case'A192GCMKW':case'A256GCMKW':{_0x4bb359=_0x59b7fa||_0x57b916(_0x45727e);const {iv:_0xd738cc}=_0x2adf9c;({encryptedKey:_0x54b374,..._0x158909}=await async function(_0x4d6965,_0x5e6436,_0x7accb4,_0x8d4dfb){const _0x258a82=_0x4d6965['slice'](0x0,0x7),_0x1cddb6=await _0x3fd510(_0x258a82,_0x7accb4,_0x5e6436,_0x8d4dfb,new Uint8Array(0x0));return{'encryptedKey':_0x1cddb6['ciphertext'],'iv':_0x195223(_0x1cddb6['iv']),'tag':_0x195223(_0x1cddb6['tag'])};}(_0x290e2f,_0x49fc5c,_0x4bb359,_0xd738cc));break;}default:throw new _0xb6a76d('Invalid\x20or\x20unsupported\x20\x22alg\x22\x20(JWE\x20Algorithm)\x20header\x20value');}return{'cek':_0x4bb359,'encryptedKey':_0x54b374,'parameters':_0x158909};};class _0x55c400{constructor(_0x52406d){if(!(_0x52406d instanceof Uint8Array))throw new TypeError('plaintext\x20must\x20be\x20an\x20instance\x20of\x20Uint8Array');this['_plaintext']=_0x52406d;}['setKeyManagementParameters'](_0x4b17e8){if(this['_keyManagementParameters'])throw new TypeError('setKeyManagementParameters\x20can\x20only\x20be\x20called\x20once');return this['_keyManagementParameters']=_0x4b17e8,this;}['setProtectedHeader'](_0x38536f){if(this['_protectedHeader'])throw new TypeError('setProtectedHeader\x20can\x20only\x20be\x20called\x20once');return this['_protectedHeader']=_0x38536f,this;}['setSharedUnprotectedHeader'](_0x4a6537){if(this['_sharedUnprotectedHeader'])throw new TypeError('setSharedUnprotectedHeader\x20can\x20only\x20be\x20called\x20once');return this['_sharedUnprotectedHeader']=_0x4a6537,this;}['setUnprotectedHeader'](_0x44a262){if(this['_unprotectedHeader'])throw new TypeError('setUnprotectedHeader\x20can\x20only\x20be\x20called\x20once');return this['_unprotectedHeader']=_0x44a262,this;}['setAdditionalAuthenticatedData'](_0x45553c){return this['_aad']=_0x45553c,this;}['setContentEncryptionKey'](_0x285b12){if(this['_cek'])throw new TypeError('setContentEncryptionKey\x20can\x20only\x20be\x20called\x20once');return this['_cek']=_0x285b12,this;}['setInitializationVector'](_0x53ce99){if(this['_iv'])throw new TypeError('setInitializationVector\x20can\x20only\x20be\x20called\x20once');return this['_iv']=_0x53ce99,this;}async['encrypt'](_0x2b794,_0x1fb16e){if(!this['_protectedHeader']&&!this['_unprotectedHeader']&&!this['_sharedUnprotectedHeader'])throw new _0x555480('either\x20setProtectedHeader,\x20setUnprotectedHeader,\x20or\x20sharedUnprotectedHeader\x20must\x20be\x20called\x20before\x20#encrypt()');if(!_0x2c21d7(this['_protectedHeader'],this['_unprotectedHeader'],this['_sharedUnprotectedHeader']))throw new _0x555480('JWE\x20Protected,\x20JWE\x20Shared\x20Unprotected\x20and\x20JWE\x20Per-Recipient\x20Header\x20Parameter\x20names\x20must\x20be\x20disjoint');const _0x4b9856={...this['_protectedHeader'],...this['_unprotectedHeader'],...this['_sharedUnprotectedHeader']};if(_0x4db779(_0x555480,new Map(),_0x1fb16e?.['crit'],this['_protectedHeader'],_0x4b9856),void 0x0!==_0x4b9856['zip'])throw new _0xb6a76d('JWE\x20\x22zip\x22\x20(Compression\x20Algorithm)\x20Header\x20Parameter\x20is\x20not\x20supported.');const {alg:_0x44bec5,enc:_0x17d76f}=_0x4b9856;if('string'!=typeof _0x44bec5||!_0x44bec5)throw new _0x555480('JWE\x20\x22alg\x22\x20(Algorithm)\x20Header\x20Parameter\x20missing\x20or\x20invalid');if('string'!=typeof _0x17d76f||!_0x17d76f)throw new _0x555480('JWE\x20\x22enc\x22\x20(Encryption\x20Algorithm)\x20Header\x20Parameter\x20missing\x20or\x20invalid');let _0x4d4d4c,_0x661f74,_0x361dfd,_0x317518,_0x7bd21;if(this['_cek']&&('dir'===_0x44bec5||'ECDH-ES'===_0x44bec5))throw new TypeError('setContentEncryptionKey\x20cannot\x20be\x20called\x20with\x20JWE\x20\x22alg\x22\x20(Algorithm)\x20Header\x20'+_0x44bec5);{let _0x183902;({cek:_0x661f74,encryptedKey:_0x4d4d4c,parameters:_0x183902}=await _0x538464(_0x44bec5,_0x17d76f,_0x2b794,this['_cek'],this['_keyManagementParameters']),_0x183902&&(_0x1fb16e&&_0x1bae18 in _0x1fb16e?this['_unprotectedHeader']?this['_unprotectedHeader']={...this['_unprotectedHeader'],..._0x183902}:this['setUnprotectedHeader'](_0x183902):this['_protectedHeader']?this['_protectedHeader']={...this['_protectedHeader'],..._0x183902}:this['setProtectedHeader'](_0x183902)));}_0x317518=this['_protectedHeader']?_0x5dd7ac['encode'](_0x195223(JSON['stringify'](this['_protectedHeader']))):_0x5dd7ac['encode'](''),this['_aad']?(_0x7bd21=_0x195223(this['_aad']),_0x361dfd=_0x26f95c(_0x317518,_0x5dd7ac['encode']('.'),_0x5dd7ac['encode'](_0x7bd21))):_0x361dfd=_0x317518;const {ciphertext:_0xe4dec6,tag:_0xe41cc3,iv:_0x3556f7}=await _0x3fd510(_0x17d76f,this['_plaintext'],_0x661f74,this['_iv'],_0x361dfd),_0x5a72f={'ciphertext':_0x195223(_0xe4dec6)};return _0x3556f7&&(_0x5a72f['iv']=_0x195223(_0x3556f7)),_0xe41cc3&&(_0x5a72f['tag']=_0x195223(_0xe41cc3)),_0x4d4d4c&&(_0x5a72f['encrypted_key']=_0x195223(_0x4d4d4c)),_0x7bd21&&(_0x5a72f['aad']=_0x7bd21),this['_protectedHeader']&&(_0x5a72f['protected']=_0x41a439['decode'](_0x317518)),this['_sharedUnprotectedHeader']&&(_0x5a72f['unprotected']=this['_sharedUnprotectedHeader']),this['_unprotectedHeader']&&(_0x5a72f['header']=this['_unprotectedHeader']),_0x5a72f;}}class _0x164b9c{constructor(_0x28fc00,_0x2b5f3d,_0x2058af){this['parent']=_0x28fc00,this['key']=_0x2b5f3d,this['options']=_0x2058af;}['setUnprotectedHeader'](_0x19e5af){if(this['unprotectedHeader'])throw new TypeError('setUnprotectedHeader\x20can\x20only\x20be\x20called\x20once');return this['unprotectedHeader']=_0x19e5af,this;}['addRecipient'](..._0x46c3c0){return this['parent']['addRecipient'](..._0x46c3c0);}['encrypt'](..._0x5d9b04){return this['parent']['encrypt'](..._0x5d9b04);}['done'](){return this['parent'];}}class _0x1d097a{constructor(_0x4d0f59){this['_recipients']=[],this['_plaintext']=_0x4d0f59;}['addRecipient'](_0x55284b,_0x4df720){const _0x46a800=new _0x164b9c(this,_0x55284b,{'crit':_0x4df720?.['crit']});return this['_recipients']['push'](_0x46a800),_0x46a800;}['setProtectedHeader'](_0x7f74eb){if(this['_protectedHeader'])throw new TypeError('setProtectedHeader\x20can\x20only\x20be\x20called\x20once');return this['_protectedHeader']=_0x7f74eb,this;}['setSharedUnprotectedHeader'](_0x34d83e){if(this['_unprotectedHeader'])throw new TypeError('setSharedUnprotectedHeader\x20can\x20only\x20be\x20called\x20once');return this['_unprotectedHeader']=_0x34d83e,this;}['setAdditionalAuthenticatedData'](_0x12d641){return this['_aad']=_0x12d641,this;}async['encrypt'](){if(!this['_recipients']['length'])throw new _0x555480('at\x20least\x20one\x20recipient\x20must\x20be\x20added');if(0x1===this['_recipients']['length']){const [_0x5822af]=this['_recipients'],_0x158c39=await new _0x55c400(this['_plaintext'])['setAdditionalAuthenticatedData'](this['_aad'])['setProtectedHeader'](this['_protectedHeader'])['setSharedUnprotectedHeader'](this['_unprotectedHeader'])['setUnprotectedHeader'](_0x5822af['unprotectedHeader'])['encrypt'](_0x5822af['key'],{..._0x5822af['options']}),_0x5e71f3={'ciphertext':_0x158c39['ciphertext'],'iv':_0x158c39['iv'],'recipients':[{}],'tag':_0x158c39['tag']};return _0x158c39['aad']&&(_0x5e71f3['aad']=_0x158c39['aad']),_0x158c39['protected']&&(_0x5e71f3['protected']=_0x158c39['protected']),_0x158c39['unprotected']&&(_0x5e71f3['unprotected']=_0x158c39['unprotected']),_0x158c39['encrypted_key']&&(_0x5e71f3['recipients'][0x0]['encrypted_key']=_0x158c39['encrypted_key']),_0x158c39['header']&&(_0x5e71f3['recipients'][0x0]['header']=_0x158c39['header']),_0x5e71f3;}let _0x54c132;for(let _0x4f424f=0x0;_0x4f424f<this['_recipients']['length'];_0x4f424f++){const _0x44f76c=this['_recipients'][_0x4f424f];if(!_0x2c21d7(this['_protectedHeader'],this['_unprotectedHeader'],_0x44f76c['unprotectedHeader']))throw new _0x555480('JWE\x20Protected,\x20JWE\x20Shared\x20Unprotected\x20and\x20JWE\x20Per-Recipient\x20Header\x20Parameter\x20names\x20must\x20be\x20disjoint');const _0x1f7271={...this['_protectedHeader'],...this['_unprotectedHeader'],..._0x44f76c['unprotectedHeader']},{alg:_0x3c5441}=_0x1f7271;if('string'!=typeof _0x3c5441||!_0x3c5441)throw new _0x555480('JWE\x20\x22alg\x22\x20(Algorithm)\x20Header\x20Parameter\x20missing\x20or\x20invalid');if('dir'===_0x3c5441||'ECDH-ES'===_0x3c5441)throw new _0x555480('\x22dir\x22\x20and\x20\x22ECDH-ES\x22\x20alg\x20may\x20only\x20be\x20used\x20with\x20a\x20single\x20recipient');if('string'!=typeof _0x1f7271['enc']||!_0x1f7271['enc'])throw new _0x555480('JWE\x20\x22enc\x22\x20(Encryption\x20Algorithm)\x20Header\x20Parameter\x20missing\x20or\x20invalid');if(_0x54c132){if(_0x54c132!==_0x1f7271['enc'])throw new _0x555480('JWE\x20\x22enc\x22\x20(Encryption\x20Algorithm)\x20Header\x20Parameter\x20must\x20be\x20the\x20same\x20for\x20all\x20recipients');}else _0x54c132=_0x1f7271['enc'];if(_0x4db779(_0x555480,new Map(),_0x44f76c['options']['crit'],this['_protectedHeader'],_0x1f7271),void 0x0!==_0x1f7271['zip'])throw new _0xb6a76d('JWE\x20\x22zip\x22\x20(Compression\x20Algorithm)\x20Header\x20Parameter\x20is\x20not\x20supported.');}const _0x354b2c=_0x57b916(_0x54c132),_0x5e35a4={'ciphertext':'','iv':'','recipients':[],'tag':''};for(let _0x2f2eb5=0x0;_0x2f2eb5<this['_recipients']['length'];_0x2f2eb5++){const _0x500ba9=this['_recipients'][_0x2f2eb5],_0x27dbe2={};_0x5e35a4['recipients']['push'](_0x27dbe2);const _0x481578={...this['_protectedHeader'],...this['_unprotectedHeader'],..._0x500ba9['unprotectedHeader']}['alg']['startsWith']('PBES2')?0x800+_0x2f2eb5:void 0x0;if(0x0===_0x2f2eb5){const _0x4b139b=await new _0x55c400(this['_plaintext'])['setAdditionalAuthenticatedData'](this['_aad'])['setContentEncryptionKey'](_0x354b2c)['setProtectedHeader'](this['_protectedHeader'])['setSharedUnprotectedHeader'](this['_unprotectedHeader'])['setUnprotectedHeader'](_0x500ba9['unprotectedHeader'])['setKeyManagementParameters']({'p2c':_0x481578})['encrypt'](_0x500ba9['key'],{..._0x500ba9['options'],[_0x1bae18]:!0x0});_0x5e35a4['ciphertext']=_0x4b139b['ciphertext'],_0x5e35a4['iv']=_0x4b139b['iv'],_0x5e35a4['tag']=_0x4b139b['tag'],_0x4b139b['aad']&&(_0x5e35a4['aad']=_0x4b139b['aad']),_0x4b139b['protected']&&(_0x5e35a4['protected']=_0x4b139b['protected']),_0x4b139b['unprotected']&&(_0x5e35a4['unprotected']=_0x4b139b['unprotected']),_0x27dbe2['encrypted_key']=_0x4b139b['encrypted_key'],_0x4b139b['header']&&(_0x27dbe2['header']=_0x4b139b['header']);continue;}const {encryptedKey:_0x5032e4,parameters:_0x9f2f96}=await _0x538464(_0x500ba9['unprotectedHeader']?.['alg']||this['_protectedHeader']?.['alg']||this['_unprotectedHeader']?.['alg'],_0x54c132,_0x500ba9['key'],_0x354b2c,{'p2c':_0x481578});_0x27dbe2['encrypted_key']=_0x195223(_0x5032e4),(_0x500ba9['unprotectedHeader']||_0x9f2f96)&&(_0x27dbe2['header']={..._0x500ba9['unprotectedHeader'],..._0x9f2f96});}return _0x5e35a4;}}function _0x5601c4(_0xc96172,_0x51a816){const _0x293061='SHA-'+_0xc96172['slice'](-0x3);switch(_0xc96172){case'HS256':case'HS384':case'HS512':return{'hash':_0x293061,'name':'HMAC'};case'PS256':case'PS384':case'PS512':return{'hash':_0x293061,'name':'RSA-PSS','saltLength':_0xc96172['slice'](-0x3)>>0x3};case'RS256':case'RS384':case'RS512':return{'hash':_0x293061,'name':'RSASSA-PKCS1-v1_5'};case'ES256':case'ES384':case'ES512':return{'hash':_0x293061,'name':'ECDSA','namedCurve':_0x51a816['namedCurve']};case'Ed25519':return{'name':'Ed25519'};case'EdDSA':return{'name':_0x51a816['name']};default:throw new _0xb6a76d('alg\x20'+_0xc96172+'\x20is\x20not\x20supported\x20either\x20by\x20JOSE\x20or\x20your\x20javascript\x20runtime');}}async function _0x5dc649(_0x379e5e,_0x176d65,_0x5c2aee){if('sign'===_0x5c2aee&&(_0x176d65=await _0x15e34c(_0x176d65,_0x379e5e)),'verify'===_0x5c2aee&&(_0x176d65=await _0x5ef51e(_0x176d65,_0x379e5e)),_0x1efdb7(_0x176d65))return function(_0x187daa,_0x22209b,..._0x22408b){switch(_0x22209b){case'HS256':case'HS384':case'HS512':{if(!_0xf8e1d2(_0x187daa['algorithm'],'HMAC'))throw _0x360a0c('HMAC');const _0x3730d3=parseInt(_0x22209b['slice'](0x2),0xa);if(_0x51c315(_0x187daa['algorithm']['hash'])!==_0x3730d3)throw _0x360a0c('SHA-'+_0x3730d3,'algorithm.hash');break;}case'RS256':case'RS384':case'RS512':{if(!_0xf8e1d2(_0x187daa['algorithm'],'RSASSA-PKCS1-v1_5'))throw _0x360a0c('RSASSA-PKCS1-v1_5');const _0x2cb9f1=parseInt(_0x22209b['slice'](0x2),0xa);if(_0x51c315(_0x187daa['algorithm']['hash'])!==_0x2cb9f1)throw _0x360a0c('SHA-'+_0x2cb9f1,'algorithm.hash');break;}case'PS256':case'PS384':case'PS512':{if(!_0xf8e1d2(_0x187daa['algorithm'],'RSA-PSS'))throw _0x360a0c('RSA-PSS');const _0x33571e=parseInt(_0x22209b['slice'](0x2),0xa);if(_0x51c315(_0x187daa['algorithm']['hash'])!==_0x33571e)throw _0x360a0c('SHA-'+_0x33571e,'algorithm.hash');break;}case'EdDSA':if('Ed25519'!==_0x187daa['algorithm']['name']&&'Ed448'!==_0x187daa['algorithm']['name'])throw _0x360a0c('Ed25519\x20or\x20Ed448');break;case'Ed25519':if(!_0xf8e1d2(_0x187daa['algorithm'],'Ed25519'))throw _0x360a0c('Ed25519');break;case'ES256':case'ES384':case'ES512':{if(!_0xf8e1d2(_0x187daa['algorithm'],'ECDSA'))throw _0x360a0c('ECDSA');const _0x43b519=function(_0x1d6b35){switch(_0x1d6b35){case'ES256':return'P-256';case'ES384':return'P-384';case'ES512':return'P-521';default:throw new Error('unreachable');}}(_0x22209b);if(_0x187daa['algorithm']['namedCurve']!==_0x43b519)throw _0x360a0c(_0x43b519,'algorithm.namedCurve');break;}default:throw new TypeError('CryptoKey\x20does\x20not\x20support\x20this\x20operation');}_0x53e911(_0x187daa,_0x22408b);}(_0x176d65,_0x379e5e,_0x5c2aee),_0x176d65;if(_0x176d65 instanceof Uint8Array){if(!_0x379e5e['startsWith']('HS'))throw new TypeError(_0x6785aa(_0x176d65,..._0x3fd054));return _0x41e110['subtle']['importKey']('raw',_0x176d65,{'hash':'SHA-'+_0x379e5e['slice'](-0x3),'name':'HMAC'},!0x1,[_0x5c2aee]);}throw new TypeError(_0x6785aa(_0x176d65,..._0x3fd054,'Uint8Array','JSON\x20Web\x20Key'));}var _0x3eab79=async(_0x17993b,_0x35e119,_0xf3beac,_0x5c1afb)=>{const _0x3de829=await _0x5dc649(_0x17993b,_0x35e119,'verify');_0x30b2db(_0x17993b,_0x3de829);const _0x50ef51=_0x5601c4(_0x17993b,_0x3de829['algorithm']);try{return await _0x41e110['subtle']['verify'](_0x50ef51,_0x3de829,_0xf3beac,_0x5c1afb);}catch{return!0x1;}};async function _0x417138(_0x487572,_0x3d5ee5,_0x43c4e6){if(!_0x14a94b(_0x487572))throw new _0x5303ea('Flattened\x20JWS\x20must\x20be\x20an\x20object');if(void 0x0===_0x487572['protected']&&void 0x0===_0x487572['header'])throw new _0x5303ea('Flattened\x20JWS\x20must\x20have\x20either\x20of\x20the\x20\x22protected\x22\x20or\x20\x22header\x22\x20members');if(void 0x0!==_0x487572['protected']&&'string'!=typeof _0x487572['protected'])throw new _0x5303ea('JWS\x20Protected\x20Header\x20incorrect\x20type');if(void 0x0===_0x487572['payload'])throw new _0x5303ea('JWS\x20Payload\x20missing');if('string'!=typeof _0x487572['signature'])throw new _0x5303ea('JWS\x20Signature\x20missing\x20or\x20incorrect\x20type');if(void 0x0!==_0x487572['header']&&!_0x14a94b(_0x487572['header']))throw new _0x5303ea('JWS\x20Unprotected\x20Header\x20incorrect\x20type');let _0x227437={};if(_0x487572['protected'])try{const _0x3681dd=_0x472e05(_0x487572['protected']);_0x227437=JSON['parse'](_0x41a439['decode'](_0x3681dd));}catch{throw new _0x5303ea('JWS\x20Protected\x20Header\x20is\x20invalid');}if(!_0x2c21d7(_0x227437,_0x487572['header']))throw new _0x5303ea('JWS\x20Protected\x20and\x20JWS\x20Unprotected\x20Header\x20Parameter\x20names\x20must\x20be\x20disjoint');const _0x5d82be={..._0x227437,..._0x487572['header']};let _0x4e805e=!0x0;if(_0x4db779(_0x5303ea,new Map([['b64',!0x0]]),_0x43c4e6?.['crit'],_0x227437,_0x5d82be)['has']('b64')&&(_0x4e805e=_0x227437['b64'],'boolean'!=typeof _0x4e805e))throw new _0x5303ea('The\x20\x22b64\x22\x20(base64url-encode\x20payload)\x20Header\x20Parameter\x20must\x20be\x20a\x20boolean');const {alg:_0xaba2e2}=_0x5d82be;if('string'!=typeof _0xaba2e2||!_0xaba2e2)throw new _0x5303ea('JWS\x20\x22alg\x22\x20(Algorithm)\x20Header\x20Parameter\x20missing\x20or\x20invalid');const _0x48b31b=_0x43c4e6&&_0x15572e('algorithms',_0x43c4e6['algorithms']);if(_0x48b31b&&!_0x48b31b['has'](_0xaba2e2))throw new _0x490687('\x22alg\x22\x20(Algorithm)\x20Header\x20Parameter\x20value\x20not\x20allowed');if(_0x4e805e){if('string'!=typeof _0x487572['payload'])throw new _0x5303ea('JWS\x20Payload\x20must\x20be\x20a\x20string');}else{if('string'!=typeof _0x487572['payload']&&!(_0x487572['payload']instanceof Uint8Array))throw new _0x5303ea('JWS\x20Payload\x20must\x20be\x20a\x20string\x20or\x20an\x20Uint8Array\x20instance');}let _0x5db101=!0x1;'function'==typeof _0x3d5ee5?(_0x3d5ee5=await _0x3d5ee5(_0x227437,_0x487572),_0x5db101=!0x0,_0x46c645(_0xaba2e2,_0x3d5ee5,'verify'),_0x45cdf1(_0x3d5ee5)&&(_0x3d5ee5=await _0x48a7c1(_0x3d5ee5,_0xaba2e2))):_0x46c645(_0xaba2e2,_0x3d5ee5,'verify');const _0x1d20e6=_0x26f95c(_0x5dd7ac['encode'](_0x487572['protected']??''),_0x5dd7ac['encode']('.'),'string'==typeof _0x487572['payload']?_0x5dd7ac['encode'](_0x487572['payload']):_0x487572['payload']);let _0x3f1659,_0x1ea675;try{_0x3f1659=_0x472e05(_0x487572['signature']);}catch{throw new _0x5303ea('Failed\x20to\x20base64url\x20decode\x20the\x20signature');}if(!await _0x3eab79(_0xaba2e2,_0x3d5ee5,_0x3f1659,_0x1d20e6))throw new _0x297cbd();if(_0x4e805e)try{_0x1ea675=_0x472e05(_0x487572['payload']);}catch{throw new _0x5303ea('Failed\x20to\x20base64url\x20decode\x20the\x20payload');}else _0x1ea675='string'==typeof _0x487572['payload']?_0x5dd7ac['encode'](_0x487572['payload']):_0x487572['payload'];const _0x1a2be2={'payload':_0x1ea675};return void 0x0!==_0x487572['protected']&&(_0x1a2be2['protectedHeader']=_0x227437),void 0x0!==_0x487572['header']&&(_0x1a2be2['unprotectedHeader']=_0x487572['header']),_0x5db101?{..._0x1a2be2,'key':_0x3d5ee5}:_0x1a2be2;}async function _0x55a01c(_0x3316e7,_0x1fc277,_0xea8c53){if(_0x3316e7 instanceof Uint8Array&&(_0x3316e7=_0x41a439['decode'](_0x3316e7)),'string'!=typeof _0x3316e7)throw new _0x5303ea('Compact\x20JWS\x20must\x20be\x20a\x20string\x20or\x20Uint8Array');const {0x0:_0x38e78f,0x1:_0x3b0b3f,0x2:_0x113097,length:_0x5d4535}=_0x3316e7['split']('.');if(0x3!==_0x5d4535)throw new _0x5303ea('Invalid\x20Compact\x20JWS');const _0xa57c67=await _0x417138({'payload':_0x3b0b3f,'protected':_0x38e78f,'signature':_0x113097},_0x1fc277,_0xea8c53),_0x444d89={'payload':_0xa57c67['payload'],'protectedHeader':_0xa57c67['protectedHeader']};return'function'==typeof _0x1fc277?{..._0x444d89,'key':_0xa57c67['key']}:_0x444d89;}async function _0x5e5d3a(_0x533ac3,_0x21ae66,_0x5a4d8b){if(!_0x14a94b(_0x533ac3))throw new _0x5303ea('General\x20JWS\x20must\x20be\x20an\x20object');if(!Array['isArray'](_0x533ac3['signatures'])||!_0x533ac3['signatures']['every'](_0x14a94b))throw new _0x5303ea('JWS\x20Signatures\x20missing\x20or\x20incorrect\x20type');for(const _0x44ef31 of _0x533ac3['signatures'])try{return await _0x417138({'header':_0x44ef31['header'],'payload':_0x533ac3['payload'],'protected':_0x44ef31['protected'],'signature':_0x44ef31['signature']},_0x21ae66,_0x5a4d8b);}catch{}throw new _0x297cbd();}var _0x27893c=_0x2931b7=>Math['floor'](_0x2931b7['getTime']()/0x3e8);const _0x42485a=/^(\+|\-)? ?(\d+|\d+\.\d+) ?(seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)(?: (ago|from now))?$/i;var _0x1c8a78=_0x501dd3=>{const _0x3aeea1=_0x42485a['exec'](_0x501dd3);if(!_0x3aeea1||_0x3aeea1[0x4]&&_0x3aeea1[0x1])throw new TypeError('Invalid\x20time\x20period\x20format');const _0x1d18a7=parseFloat(_0x3aeea1[0x2]);let _0x3063a5;switch(_0x3aeea1[0x3]['toLowerCase']()){case'sec':case'secs':case'second':case'seconds':case's':_0x3063a5=Math['round'](_0x1d18a7);break;case'minute':case'minutes':case'min':case'mins':case'm':_0x3063a5=Math['round'](0x3c*_0x1d18a7);break;case'hour':case'hours':case'hr':case'hrs':case'h':_0x3063a5=Math['round'](0xe10*_0x1d18a7);break;case'day':case'days':case'd':_0x3063a5=Math['round'](0x15180*_0x1d18a7);break;case'week':case'weeks':case'w':_0x3063a5=Math['round'](0x93a80*_0x1d18a7);break;default:_0x3063a5=Math['round'](0x1e187e0*_0x1d18a7);}return'-'===_0x3aeea1[0x1]||'ago'===_0x3aeea1[0x4]?-_0x3063a5:_0x3063a5;};const _0x31a9a1=_0x24e652=>_0x24e652['toLowerCase']()['replace'](/^application\//,'');var _0x125923=(_0x19068e,_0x2b35d9,_0x8540eb={})=>{let _0x3d704f;try{_0x3d704f=JSON['parse'](_0x41a439['decode'](_0x2b35d9));}catch{}if(!_0x14a94b(_0x3d704f))throw new _0x51e9d3('JWT\x20Claims\x20Set\x20must\x20be\x20a\x20top-level\x20JSON\x20object');const {typ:_0x46f3ed}=_0x8540eb;if(_0x46f3ed&&('string'!=typeof _0x19068e['typ']||_0x31a9a1(_0x19068e['typ'])!==_0x31a9a1(_0x46f3ed)))throw new _0x736247('unexpected\x20\x22typ\x22\x20JWT\x20header\x20value',_0x3d704f,'typ','check_failed');const {requiredClaims:_0x3c29dd=[],issuer:_0x5063b9,subject:_0x3b5c82,audience:_0x4bdc00,maxTokenAge:_0x44aafc}=_0x8540eb,_0x371d16=[..._0x3c29dd];void 0x0!==_0x44aafc&&_0x371d16['push']('iat'),void 0x0!==_0x4bdc00&&_0x371d16['push']('aud'),void 0x0!==_0x3b5c82&&_0x371d16['push']('sub'),void 0x0!==_0x5063b9&&_0x371d16['push']('iss');for(const _0x2f9e11 of new Set(_0x371d16['reverse']()))if(!(_0x2f9e11 in _0x3d704f))throw new _0x736247('missing\x20required\x20\x22'+_0x2f9e11+'\x22\x20claim',_0x3d704f,_0x2f9e11,'missing');if(_0x5063b9&&!(Array['isArray'](_0x5063b9)?_0x5063b9:[_0x5063b9])['includes'](_0x3d704f['iss']))throw new _0x736247('unexpected\x20\x22iss\x22\x20claim\x20value',_0x3d704f,'iss','check_failed');if(_0x3b5c82&&_0x3d704f['sub']!==_0x3b5c82)throw new _0x736247('unexpected\x20\x22sub\x22\x20claim\x20value',_0x3d704f,'sub','check_failed');if(_0x4bdc00&&(_0x814101='string'==typeof _0x4bdc00?[_0x4bdc00]:_0x4bdc00,!('string'==typeof(_0x4dbfd5=_0x3d704f['aud'])?_0x814101['includes'](_0x4dbfd5):Array['isArray'](_0x4dbfd5)&&_0x814101['some'](Set['prototype']['has']['bind'](new Set(_0x4dbfd5))))))throw new _0x736247('unexpected\x20\x22aud\x22\x20claim\x20value',_0x3d704f,'aud','check_failed');var _0x4dbfd5,_0x814101;let _0xe2e769;switch(typeof _0x8540eb['clockTolerance']){case'string':_0xe2e769=_0x1c8a78(_0x8540eb['clockTolerance']);break;case'number':_0xe2e769=_0x8540eb['clockTolerance'];break;case'undefined':_0xe2e769=0x0;break;default:throw new TypeError('Invalid\x20clockTolerance\x20option\x20type');}const {currentDate:_0x488358}=_0x8540eb,_0x49ceb1=_0x27893c(_0x488358||new Date());if((void 0x0!==_0x3d704f['iat']||_0x44aafc)&&'number'!=typeof _0x3d704f['iat'])throw new _0x736247('\x22iat\x22\x20claim\x20must\x20be\x20a\x20number',_0x3d704f,'iat','invalid');if(void 0x0!==_0x3d704f['nbf']){if('number'!=typeof _0x3d704f['nbf'])throw new _0x736247('\x22nbf\x22\x20claim\x20must\x20be\x20a\x20number',_0x3d704f,'nbf','invalid');if(_0x3d704f['nbf']>_0x49ceb1+_0xe2e769)throw new _0x736247('\x22nbf\x22\x20claim\x20timestamp\x20check\x20failed',_0x3d704f,'nbf','check_failed');}if(void 0x0!==_0x3d704f['exp']){if('number'!=typeof _0x3d704f['exp'])throw new _0x736247('\x22exp\x22\x20claim\x20must\x20be\x20a\x20number',_0x3d704f,'exp','invalid');if(_0x3d704f['exp']<=_0x49ceb1-_0xe2e769)throw new _0x79299e('\x22exp\x22\x20claim\x20timestamp\x20check\x20failed',_0x3d704f,'exp','check_failed');}if(_0x44aafc){const _0x8c8d67=_0x49ceb1-_0x3d704f['iat'];if(_0x8c8d67-_0xe2e769>('number'==typeof _0x44aafc?_0x44aafc:_0x1c8a78(_0x44aafc)))throw new _0x79299e('\x22iat\x22\x20claim\x20timestamp\x20check\x20failed\x20(too\x20far\x20in\x20the\x20past)',_0x3d704f,'iat','check_failed');if(_0x8c8d67<0x0-_0xe2e769)throw new _0x736247('\x22iat\x22\x20claim\x20timestamp\x20check\x20failed\x20(it\x20should\x20be\x20in\x20the\x20past)',_0x3d704f,'iat','check_failed');}return _0x3d704f;};async function _0x87ed07(_0x34fb08,_0x325c5c,_0x3fcb7e){const _0x33c67e=await _0x55a01c(_0x34fb08,_0x325c5c,_0x3fcb7e);if(_0x33c67e['protectedHeader']['crit']?.['includes']('b64')&&!0x1===_0x33c67e['protectedHeader']['b64'])throw new _0x51e9d3('JWTs\x20MUST\x20NOT\x20use\x20unencoded\x20payload');const _0x21958d={'payload':_0x125923(_0x33c67e['protectedHeader'],_0x33c67e['payload'],_0x3fcb7e),'protectedHeader':_0x33c67e['protectedHeader']};return'function'==typeof _0x325c5c?{..._0x21958d,'key':_0x33c67e['key']}:_0x21958d;}async function _0x53ca62(_0x3ae62a,_0x4f33f5,_0x18763f){const _0x438519=await _0x3548f3(_0x3ae62a,_0x4f33f5,_0x18763f),_0x3d9ded=_0x125923(_0x438519['protectedHeader'],_0x438519['plaintext'],_0x18763f),{protectedHeader:_0xcd2fcb}=_0x438519;if(void 0x0!==_0xcd2fcb['iss']&&_0xcd2fcb['iss']!==_0x3d9ded['iss'])throw new _0x736247('replicated\x20\x22iss\x22\x20claim\x20header\x20parameter\x20mismatch',_0x3d9ded,'iss','mismatch');if(void 0x0!==_0xcd2fcb['sub']&&_0xcd2fcb['sub']!==_0x3d9ded['sub'])throw new _0x736247('replicated\x20\x22sub\x22\x20claim\x20header\x20parameter\x20mismatch',_0x3d9ded,'sub','mismatch');if(void 0x0!==_0xcd2fcb['aud']&&JSON['stringify'](_0xcd2fcb['aud'])!==JSON['stringify'](_0x3d9ded['aud']))throw new _0x736247('replicated\x20\x22aud\x22\x20claim\x20header\x20parameter\x20mismatch',_0x3d9ded,'aud','mismatch');const _0x19a1ae={'payload':_0x3d9ded,'protectedHeader':_0xcd2fcb};return'function'==typeof _0x4f33f5?{..._0x19a1ae,'key':_0x438519['key']}:_0x19a1ae;}class _0x46ee52{constructor(_0x2418e3){this['_flattened']=new _0x55c400(_0x2418e3);}['setContentEncryptionKey'](_0xe47b35){return this['_flattened']['setContentEncryptionKey'](_0xe47b35),this;}['setInitializationVector'](_0x5cdbd2){return this['_flattened']['setInitializationVector'](_0x5cdbd2),this;}['setProtectedHeader'](_0x39ad9b){return this['_flattened']['setProtectedHeader'](_0x39ad9b),this;}['setKeyManagementParameters'](_0x16df51){return this['_flattened']['setKeyManagementParameters'](_0x16df51),this;}async['encrypt'](_0x4ff145,_0x147eb6){const _0xb63be9=await this['_flattened']['encrypt'](_0x4ff145,_0x147eb6);return[_0xb63be9['protected'],_0xb63be9['encrypted_key'],_0xb63be9['iv'],_0xb63be9['ciphertext'],_0xb63be9['tag']]['join']('.');}}class _0x134642{constructor(_0x12665f){if(!(_0x12665f instanceof Uint8Array))throw new TypeError('payload\x20must\x20be\x20an\x20instance\x20of\x20Uint8Array');this['_payload']=_0x12665f;}['setProtectedHeader'](_0x32e030){if(this['_protectedHeader'])throw new TypeError('setProtectedHeader\x20can\x20only\x20be\x20called\x20once');return this['_protectedHeader']=_0x32e030,this;}['setUnprotectedHeader'](_0x4c30f6){if(this['_unprotectedHeader'])throw new TypeError('setUnprotectedHeader\x20can\x20only\x20be\x20called\x20once');return this['_unprotectedHeader']=_0x4c30f6,this;}async['sign'](_0x51aec7,_0x279cfa){if(!this['_protectedHeader']&&!this['_unprotectedHeader'])throw new _0x5303ea('either\x20setProtectedHeader\x20or\x20setUnprotectedHeader\x20must\x20be\x20called\x20before\x20#sign()');if(!_0x2c21d7(this['_protectedHeader'],this['_unprotectedHeader']))throw new _0x5303ea('JWS\x20Protected\x20and\x20JWS\x20Unprotected\x20Header\x20Parameter\x20names\x20must\x20be\x20disjoint');const _0x4a91cd={...this['_protectedHeader'],...this['_unprotectedHeader']};let _0x5c52fa=!0x0;if(_0x4db779(_0x5303ea,new Map([['b64',!0x0]]),_0x279cfa?.['crit'],this['_protectedHeader'],_0x4a91cd)['has']('b64')&&(_0x5c52fa=this['_protectedHeader']['b64'],'boolean'!=typeof _0x5c52fa))throw new _0x5303ea('The\x20\x22b64\x22\x20(base64url-encode\x20payload)\x20Header\x20Parameter\x20must\x20be\x20a\x20boolean');const {alg:_0x495231}=_0x4a91cd;if('string'!=typeof _0x495231||!_0x495231)throw new _0x5303ea('JWS\x20\x22alg\x22\x20(Algorithm)\x20Header\x20Parameter\x20missing\x20or\x20invalid');_0x46c645(_0x495231,_0x51aec7,'sign');let _0x28cd1c,_0x142a50=this['_payload'];_0x5c52fa&&(_0x142a50=_0x5dd7ac['encode'](_0x195223(_0x142a50))),_0x28cd1c=this['_protectedHeader']?_0x5dd7ac['encode'](_0x195223(JSON['stringify'](this['_protectedHeader']))):_0x5dd7ac['encode']('');const _0x184235=_0x26f95c(_0x28cd1c,_0x5dd7ac['encode']('.'),_0x142a50),_0x24fe08=await(async(_0xd0f86a,_0x346ec8,_0x53bbd2)=>{const _0x35c0f9=await _0x5dc649(_0xd0f86a,_0x346ec8,'sign');_0x30b2db(_0xd0f86a,_0x35c0f9);const _0x552391=await _0x41e110['subtle']['sign'](_0x5601c4(_0xd0f86a,_0x35c0f9['algorithm']),_0x35c0f9,_0x53bbd2);return new Uint8Array(_0x552391);})(_0x495231,_0x51aec7,_0x184235),_0x2f08f9={'signature':_0x195223(_0x24fe08),'payload':''};return _0x5c52fa&&(_0x2f08f9['payload']=_0x41a439['decode'](_0x142a50)),this['_unprotectedHeader']&&(_0x2f08f9['header']=this['_unprotectedHeader']),this['_protectedHeader']&&(_0x2f08f9['protected']=_0x41a439['decode'](_0x28cd1c)),_0x2f08f9;}}class _0x2dfa40{constructor(_0x48b393){this['_flattened']=new _0x134642(_0x48b393);}['setProtectedHeader'](_0x1c23df){return this['_flattened']['setProtectedHeader'](_0x1c23df),this;}async['sign'](_0x1b9a3f,_0x2464f2){const _0x315579=await this['_flattened']['sign'](_0x1b9a3f,_0x2464f2);if(void 0x0===_0x315579['payload'])throw new TypeError('use\x20the\x20flattened\x20module\x20for\x20creating\x20JWS\x20with\x20b64:\x20false');return _0x315579['protected']+'.'+_0x315579['payload']+'.'+_0x315579['signature'];}}class _0x114eed{constructor(_0x484c7a,_0x50da44,_0x4022a2){this['parent']=_0x484c7a,this['key']=_0x50da44,this['options']=_0x4022a2;}['setProtectedHeader'](_0x142e17){if(this['protectedHeader'])throw new TypeError('setProtectedHeader\x20can\x20only\x20be\x20called\x20once');return this['protectedHeader']=_0x142e17,this;}['setUnprotectedHeader'](_0x2e6c63){if(this['unprotectedHeader'])throw new TypeError('setUnprotectedHeader\x20can\x20only\x20be\x20called\x20once');return this['unprotectedHeader']=_0x2e6c63,this;}['addSignature'](..._0x4addf4){return this['parent']['addSignature'](..._0x4addf4);}['sign'](..._0x1630ae){return this['parent']['sign'](..._0x1630ae);}['done'](){return this['parent'];}}class _0x43293d{constructor(_0x4487c4){this['_signatures']=[],this['_payload']=_0x4487c4;}['addSignature'](_0x1c0ee3,_0x40e924){const _0x5ec5d1=new _0x114eed(this,_0x1c0ee3,_0x40e924);return this['_signatures']['push'](_0x5ec5d1),_0x5ec5d1;}async['sign'](){if(!this['_signatures']['length'])throw new _0x5303ea('at\x20least\x20one\x20signature\x20must\x20be\x20added');const _0x3da852={'signatures':[],'payload':''};for(let _0x2c2b81=0x0;_0x2c2b81<this['_signatures']['length'];_0x2c2b81++){const _0x2a91f3=this['_signatures'][_0x2c2b81],_0x3c8920=new _0x134642(this['_payload']);_0x3c8920['setProtectedHeader'](_0x2a91f3['protectedHeader']),_0x3c8920['setUnprotectedHeader'](_0x2a91f3['unprotectedHeader']);const {payload:_0x2e07e6,..._0x19f5ca}=await _0x3c8920['sign'](_0x2a91f3['key'],_0x2a91f3['options']);if(0x0===_0x2c2b81)_0x3da852['payload']=_0x2e07e6;else{if(_0x3da852['payload']!==_0x2e07e6)throw new _0x5303ea('inconsistent\x20use\x20of\x20JWS\x20Unencoded\x20Payload\x20(RFC7797)');}_0x3da852['signatures']['push'](_0x19f5ca);}return _0x3da852;}}function _0x2c058b(_0x8befbd,_0x179ffe){if(!Number['isFinite'](_0x179ffe))throw new TypeError('Invalid\x20'+_0x8befbd+'\x20input');return _0x179ffe;}class _0x5adf1a{constructor(_0x5d3864={}){if(!_0x14a94b(_0x5d3864))throw new TypeError('JWT\x20Claims\x20Set\x20MUST\x20be\x20an\x20object');this['_payload']=_0x5d3864;}['setIssuer'](_0x10a5fe){return this['_payload']={...this['_payload'],'iss':_0x10a5fe},this;}['setSubject'](_0x13c918){return this['_payload']={...this['_payload'],'sub':_0x13c918},this;}['setAudience'](_0x4dc8ab){return this['_payload']={...this['_payload'],'aud':_0x4dc8ab},this;}['setJti'](_0x5dab5d){return this['_payload']={...this['_payload'],'jti':_0x5dab5d},this;}['setNotBefore'](_0x211315){return'number'==typeof _0x211315?this['_payload']={...this['_payload'],'nbf':_0x2c058b('setNotBefore',_0x211315)}:_0x211315 instanceof Date?this['_payload']={...this['_payload'],'nbf':_0x2c058b('setNotBefore',_0x27893c(_0x211315))}:this['_payload']={...this['_payload'],'nbf':_0x27893c(new Date())+_0x1c8a78(_0x211315)},this;}['setExpirationTime'](_0x4b5a6e){return'number'==typeof _0x4b5a6e?this['_payload']={...this['_payload'],'exp':_0x2c058b('setExpirationTime',_0x4b5a6e)}:_0x4b5a6e instanceof Date?this['_payload']={...this['_payload'],'exp':_0x2c058b('setExpirationTime',_0x27893c(_0x4b5a6e))}:this['_payload']={...this['_payload'],'exp':_0x27893c(new Date())+_0x1c8a78(_0x4b5a6e)},this;}['setIssuedAt'](_0x42af5a){return void 0x0===_0x42af5a?this['_payload']={...this['_payload'],'iat':_0x27893c(new Date())}:_0x42af5a instanceof Date?this['_payload']={...this['_payload'],'iat':_0x2c058b('setIssuedAt',_0x27893c(_0x42af5a))}:this['_payload']='string'==typeof _0x42af5a?{...this['_payload'],'iat':_0x2c058b('setIssuedAt',_0x27893c(new Date())+_0x1c8a78(_0x42af5a))}:{...this['_payload'],'iat':_0x2c058b('setIssuedAt',_0x42af5a)},this;}}class _0x1a403d extends _0x5adf1a{['setProtectedHeader'](_0x18e6a2){return this['_protectedHeader']=_0x18e6a2,this;}async['sign'](_0x48720c,_0x1cb739){const _0xd6c947=new _0x2dfa40(_0x5dd7ac['encode'](JSON['stringify'](this['_payload'])));if(_0xd6c947['setProtectedHeader'](this['_protectedHeader']),Array['isArray'](this['_protectedHeader']?.['crit'])&&this['_protectedHeader']['crit']['includes']('b64')&&!0x1===this['_protectedHeader']['b64'])throw new _0x51e9d3('JWTs\x20MUST\x20NOT\x20use\x20unencoded\x20payload');return _0xd6c947['sign'](_0x48720c,_0x1cb739);}}class _0x4a55fd extends _0x5adf1a{['setProtectedHeader'](_0x3698d3){if(this['_protectedHeader'])throw new TypeError('setProtectedHeader\x20can\x20only\x20be\x20called\x20once');return this['_protectedHeader']=_0x3698d3,this;}['setKeyManagementParameters'](_0x250d6c){if(this['_keyManagementParameters'])throw new TypeError('setKeyManagementParameters\x20can\x20only\x20be\x20called\x20once');return this['_keyManagementParameters']=_0x250d6c,this;}['setContentEncryptionKey'](_0x1802cf){if(this['_cek'])throw new TypeError('setContentEncryptionKey\x20can\x20only\x20be\x20called\x20once');return this['_cek']=_0x1802cf,this;}['setInitializationVector'](_0x3cc41b){if(this['_iv'])throw new TypeError('setInitializationVector\x20can\x20only\x20be\x20called\x20once');return this['_iv']=_0x3cc41b,this;}['replicateIssuerAsHeader'](){return this['_replicateIssuerAsHeader']=!0x0,this;}['replicateSubjectAsHeader'](){return this['_replicateSubjectAsHeader']=!0x0,this;}['replicateAudienceAsHeader'](){return this['_replicateAudienceAsHeader']=!0x0,this;}async['encrypt'](_0x1fdb40,_0xadffe9){const _0x2311ce=new _0x46ee52(_0x5dd7ac['encode'](JSON['stringify'](this['_payload'])));return this['_replicateIssuerAsHeader']&&(this['_protectedHeader']={...this['_protectedHeader'],'iss':this['_payload']['iss']}),this['_replicateSubjectAsHeader']&&(this['_protectedHeader']={...this['_protectedHeader'],'sub':this['_payload']['sub']}),this['_replicateAudienceAsHeader']&&(this['_protectedHeader']={...this['_protectedHeader'],'aud':this['_payload']['aud']}),_0x2311ce['setProtectedHeader'](this['_protectedHeader']),this['_iv']&&_0x2311ce['setInitializationVector'](this['_iv']),this['_cek']&&_0x2311ce['setContentEncryptionKey'](this['_cek']),this['_keyManagementParameters']&&_0x2311ce['setKeyManagementParameters'](this['_keyManagementParameters']),_0x2311ce['encrypt'](_0x1fdb40,_0xadffe9);}}const _0x1b28f4=(_0x165a65,_0x661795)=>{if('string'!=typeof _0x165a65||!_0x165a65)throw new _0x420017(_0x661795+'\x20missing\x20or\x20invalid');};async function _0x1f6a34(_0x59aae2,_0x12eb35){if(!_0x14a94b(_0x59aae2))throw new TypeError('JWK\x20must\x20be\x20an\x20object');if(_0x12eb35??(_0x12eb35='sha256'),'sha256'!==_0x12eb35&&'sha384'!==_0x12eb35&&'sha512'!==_0x12eb35)throw new TypeError('digestAlgorithm\x20must\x20one\x20of\x20\x22sha256\x22,\x20\x22sha384\x22,\x20or\x20\x22sha512\x22');let _0x179639;switch(_0x59aae2['kty']){case'EC':_0x1b28f4(_0x59aae2['crv'],'\x22crv\x22\x20(Curve)\x20Parameter'),_0x1b28f4(_0x59aae2['x'],'\x22x\x22\x20(X\x20Coordinate)\x20Parameter'),_0x1b28f4(_0x59aae2['y'],'\x22y\x22\x20(Y\x20Coordinate)\x20Parameter'),_0x179639={'crv':_0x59aae2['crv'],'kty':_0x59aae2['kty'],'x':_0x59aae2['x'],'y':_0x59aae2['y']};break;case'OKP':_0x1b28f4(_0x59aae2['crv'],'\x22crv\x22\x20(Subtype\x20of\x20Key\x20Pair)\x20Parameter'),_0x1b28f4(_0x59aae2['x'],'\x22x\x22\x20(Public\x20Key)\x20Parameter'),_0x179639={'crv':_0x59aae2['crv'],'kty':_0x59aae2['kty'],'x':_0x59aae2['x']};break;case'RSA':_0x1b28f4(_0x59aae2['e'],'\x22e\x22\x20(Exponent)\x20Parameter'),_0x1b28f4(_0x59aae2['n'],'\x22n\x22\x20(Modulus)\x20Parameter'),_0x179639={'e':_0x59aae2['e'],'kty':_0x59aae2['kty'],'n':_0x59aae2['n']};break;case'oct':_0x1b28f4(_0x59aae2['k'],'\x22k\x22\x20(Key\x20Value)\x20Parameter'),_0x179639={'k':_0x59aae2['k'],'kty':_0x59aae2['kty']};break;default:throw new _0xb6a76d('\x22kty\x22\x20(Key\x20Type)\x20Parameter\x20missing\x20or\x20unsupported');}const _0x3e0e7c=_0x5dd7ac['encode'](JSON['stringify'](_0x179639));return _0x195223(await _0x365a99(_0x12eb35,_0x3e0e7c));}async function _0x3ee9c0(_0x2ba16d,_0x10d018){_0x10d018??(_0x10d018='sha256');const _0x559911=await _0x1f6a34(_0x2ba16d,_0x10d018);return'urn:ietf:params:oauth:jwk-thumbprint:sha-'+_0x10d018['slice'](-0x3)+':'+_0x559911;}async function _0x5a8273(_0xb4497c,_0x2f4979){const _0x2e1cef={..._0xb4497c,..._0x2f4979?.['header']};if(!_0x14a94b(_0x2e1cef['jwk']))throw new _0x5303ea('\x22jwk\x22\x20(JSON\x20Web\x20Key)\x20Header\x20Parameter\x20must\x20be\x20a\x20JSON\x20object');const _0x57f114=await _0x48a7c1({..._0x2e1cef['jwk'],'ext':!0x0},_0x2e1cef['alg']);if(_0x57f114 instanceof Uint8Array||'public'!==_0x57f114['type'])throw new _0x5303ea('\x22jwk\x22\x20(JSON\x20Web\x20Key)\x20Header\x20Parameter\x20must\x20be\x20a\x20public\x20key');return _0x57f114;}function _0xe2b31(_0x24524c){return _0x14a94b(_0x24524c);}function _0x3e7d69(_0x4bcc73){return'function'==typeof structuredClone?structuredClone(_0x4bcc73):JSON['parse'](JSON['stringify'](_0x4bcc73));}class _0x409474{constructor(_0x51d8f5){if(this['_cached']=new WeakMap(),!function(_0x49a901){return _0x49a901&&'object'==typeof _0x49a901&&Array['isArray'](_0x49a901['keys'])&&_0x49a901['keys']['every'](_0xe2b31);}(_0x51d8f5))throw new _0x44a3c8('JSON\x20Web\x20Key\x20Set\x20malformed');this['_jwks']=_0x3e7d69(_0x51d8f5);}async['getKey'](_0x17326e,_0x3a43fa){const {alg:_0x18778d,kid:_0x5eef5f}={..._0x17326e,..._0x3a43fa?.['header']},_0x29a26d=function(_0x4f493a){switch('string'==typeof _0x4f493a&&_0x4f493a['slice'](0x0,0x2)){case'RS':case'PS':return'RSA';case'ES':return'EC';case'Ed':return'OKP';default:throw new _0xb6a76d('Unsupported\x20\x22alg\x22\x20value\x20for\x20a\x20JSON\x20Web\x20Key\x20Set');}}(_0x18778d),_0x3a0032=this['_jwks']['keys']['filter'](_0x5306cb=>{let _0x52da67=_0x29a26d===_0x5306cb['kty'];if(_0x52da67&&'string'==typeof _0x5eef5f&&(_0x52da67=_0x5eef5f===_0x5306cb['kid']),_0x52da67&&'string'==typeof _0x5306cb['alg']&&(_0x52da67=_0x18778d===_0x5306cb['alg']),_0x52da67&&'string'==typeof _0x5306cb['use']&&(_0x52da67='sig'===_0x5306cb['use']),_0x52da67&&Array['isArray'](_0x5306cb['key_ops'])&&(_0x52da67=_0x5306cb['key_ops']['includes']('verify')),_0x52da67)switch(_0x18778d){case'ES256':_0x52da67='P-256'===_0x5306cb['crv'];break;case'ES256K':_0x52da67='secp256k1'===_0x5306cb['crv'];break;case'ES384':_0x52da67='P-384'===_0x5306cb['crv'];break;case'ES512':_0x52da67='P-521'===_0x5306cb['crv'];break;case'Ed25519':_0x52da67='Ed25519'===_0x5306cb['crv'];break;case'EdDSA':_0x52da67='Ed25519'===_0x5306cb['crv']||'Ed448'===_0x5306cb['crv'];}return _0x52da67;}),{0x0:_0x3282f9,length:_0x276271}=_0x3a0032;if(0x0===_0x276271)throw new _0x3e0c71();if(0x1!==_0x276271){const _0x348d57=new _0x34cfe8(),{_cached:_0xa497aa}=this;throw _0x348d57[Symbol['asyncIterator']]=async function*(){for(const _0x10a366 of _0x3a0032)try{yield await _0x13b133(_0xa497aa,_0x10a366,_0x18778d);}catch{}},_0x348d57;}return _0x13b133(this['_cached'],_0x3282f9,_0x18778d);}}async function _0x13b133(_0x4a8b85,_0x34225b,_0x2d8542){const _0x3cbf40=_0x4a8b85['get'](_0x34225b)||_0x4a8b85['set'](_0x34225b,{})['get'](_0x34225b);if(void 0x0===_0x3cbf40[_0x2d8542]){const _0x1dfcec=await _0x48a7c1({..._0x34225b,'ext':!0x0},_0x2d8542);if(_0x1dfcec instanceof Uint8Array||'public'!==_0x1dfcec['type'])throw new _0x44a3c8('JSON\x20Web\x20Key\x20Set\x20members\x20must\x20be\x20public\x20keys');_0x3cbf40[_0x2d8542]=_0x1dfcec;}return _0x3cbf40[_0x2d8542];}function _0x5d7a01(_0x3d5699){const _0x2e865d=new _0x409474(_0x3d5699),_0x2e94e3=async(_0x336eb1,_0x399c39)=>_0x2e865d['getKey'](_0x336eb1,_0x399c39);return Object['defineProperties'](_0x2e94e3,{'jwks':{'value':()=>_0x3e7d69(_0x2e865d['_jwks']),'enumerable':!0x0,'configurable':!0x1,'writable':!0x1}}),_0x2e94e3;}let _0x5d00bb;'undefined'!=typeof navigator&&navigator['userAgent']?.['startsWith']?.('Mozilla/5.0\x20')||(_0x5d00bb='jose/v5.10.0');const _0x2da4c5=Symbol();class _0x24452d{constructor(_0x19f1d1,_0x54909c){if(!(_0x19f1d1 instanceof URL))throw new TypeError('url\x20must\x20be\x20an\x20instance\x20of\x20URL');var _0x38e046,_0x434792;this['_url']=new URL(_0x19f1d1['href']),this['_options']={'agent':_0x54909c?.['agent'],'headers':_0x54909c?.['headers']},this['_timeoutDuration']='number'==typeof _0x54909c?.['timeoutDuration']?_0x54909c?.['timeoutDuration']:0x1388,this['_cooldownDuration']='number'==typeof _0x54909c?.['cooldownDuration']?_0x54909c?.['cooldownDuration']:0x7530,this['_cacheMaxAge']='number'==typeof _0x54909c?.['cacheMaxAge']?_0x54909c?.['cacheMaxAge']:0x927c0,void 0x0!==_0x54909c?.[_0x2da4c5]&&(this['_cache']=_0x54909c?.[_0x2da4c5],_0x38e046=_0x54909c?.[_0x2da4c5],_0x434792=this['_cacheMaxAge'],'object'==typeof _0x38e046&&null!==_0x38e046&&'uat'in _0x38e046&&'number'==typeof _0x38e046['uat']&&!(Date['now']()-_0x38e046['uat']>=_0x434792)&&'jwks'in _0x38e046&&_0x14a94b(_0x38e046['jwks'])&&Array['isArray'](_0x38e046['jwks']['keys'])&&Array['prototype']['every']['call'](_0x38e046['jwks']['keys'],_0x14a94b)&&(this['_jwksTimestamp']=this['_cache']['uat'],this['_local']=_0x5d7a01(this['_cache']['jwks'])));}['coolingDown'](){return'number'==typeof this['_jwksTimestamp']&&Date['now']()<this['_jwksTimestamp']+this['_cooldownDuration'];}['fresh'](){return'number'==typeof this['_jwksTimestamp']&&Date['now']()<this['_jwksTimestamp']+this['_cacheMaxAge'];}async['getKey'](_0x4fb25b,_0x2a96c3){this['_local']&&this['fresh']()||await this['reload']();try{return await this['_local'](_0x4fb25b,_0x2a96c3);}catch(_0x40f978){if(_0x40f978 instanceof _0x3e0c71&&!0x1===this['coolingDown']())return await this['reload'](),this['_local'](_0x4fb25b,_0x2a96c3);throw _0x40f978;}}async['reload'](){this['_pendingFetch']&&('undefined'!=typeof WebSocketPair||'undefined'!=typeof navigator&&'Cloudflare-Workers'===navigator['userAgent']||'undefined'!=typeof EdgeRuntime&&'vercel'===EdgeRuntime)&&(this['_pendingFetch']=void 0x0);const _0x22e2a8=new Headers(this['_options']['headers']);_0x5d00bb&&!_0x22e2a8['has']('User-Agent')&&(_0x22e2a8['set']('User-Agent',_0x5d00bb),this['_options']['headers']=Object['fromEntries'](_0x22e2a8['entries']())),this['_pendingFetch']||(this['_pendingFetch']=(async(_0xb935ff,_0x10d87b,_0x40250d)=>{let _0x170845,_0x41aa0d,_0x392331=!0x1;'function'==typeof AbortController&&(_0x170845=new AbortController(),_0x41aa0d=setTimeout(()=>{_0x392331=!0x0,_0x170845['abort']();},_0x10d87b));const _0x42dcfe=await fetch(_0xb935ff['href'],{'signal':_0x170845?_0x170845['signal']:void 0x0,'redirect':'manual','headers':_0x40250d['headers']})['catch'](_0x13998e=>{if(_0x392331)throw new _0xca6d60();throw _0x13998e;});if(void 0x0!==_0x41aa0d&&clearTimeout(_0x41aa0d),0xc8!==_0x42dcfe['status'])throw new _0x4ee8a('Expected\x20200\x20OK\x20from\x20the\x20JSON\x20Web\x20Key\x20Set\x20HTTP\x20response');try{return await _0x42dcfe['json']();}catch{throw new _0x4ee8a('Failed\x20to\x20parse\x20the\x20JSON\x20Web\x20Key\x20Set\x20HTTP\x20response\x20as\x20JSON');}})(this['_url'],this['_timeoutDuration'],this['_options'])['then'](_0x1b09b0=>{this['_local']=_0x5d7a01(_0x1b09b0),this['_cache']&&(this['_cache']['uat']=Date['now'](),this['_cache']['jwks']=_0x1b09b0),this['_jwksTimestamp']=Date['now'](),this['_pendingFetch']=void 0x0;})['catch'](_0x22f19b=>{throw this['_pendingFetch']=void 0x0,_0x22f19b;})),await this['_pendingFetch'];}}function _0x22064c(_0x198c19,_0x2c59fc){const _0x394439=new _0x24452d(_0x198c19,_0x2c59fc),_0x2e69a7=async(_0x31ae8f,_0x398ee0)=>_0x394439['getKey'](_0x31ae8f,_0x398ee0);return Object['defineProperties'](_0x2e69a7,{'coolingDown':{'get':()=>_0x394439['coolingDown'](),'enumerable':!0x0,'configurable':!0x1},'fresh':{'get':()=>_0x394439['fresh'](),'enumerable':!0x0,'configurable':!0x1},'reload':{'value':()=>_0x394439['reload'](),'enumerable':!0x0,'configurable':!0x1,'writable':!0x1},'reloading':{'get':()=>!!_0x394439['_pendingFetch'],'enumerable':!0x0,'configurable':!0x1},'jwks':{'value':()=>_0x394439['_local']?.['jwks'](),'enumerable':!0x0,'configurable':!0x1,'writable':!0x1}}),_0x2e69a7;}const _0x4e9def=_0x2da4c5;class _0x341328 extends _0x5adf1a{['encode'](){return _0x195223(JSON['stringify']({'alg':'none'}))+'.'+_0x195223(JSON['stringify'](this['_payload']))+'.';}static['decode'](_0x163d75,_0x499d45){if('string'!=typeof _0x163d75)throw new _0x51e9d3('Unsecured\x20JWT\x20must\x20be\x20a\x20string');const {0x0:_0xe816f9,0x1:_0x22449e,0x2:_0x4f7496,length:_0x2c80eb}=_0x163d75['split']('.');if(0x3!==_0x2c80eb||''!==_0x4f7496)throw new _0x51e9d3('Invalid\x20Unsecured\x20JWT');let _0x3ae3ec;try{if(_0x3ae3ec=JSON['parse'](_0x41a439['decode'](_0x472e05(_0xe816f9))),'none'!==_0x3ae3ec['alg'])throw new Error();}catch{throw new _0x51e9d3('Invalid\x20Unsecured\x20JWT');}return{'payload':_0x125923(_0x3ae3ec,_0x472e05(_0x22449e),_0x499d45),'header':_0x3ae3ec};}}const _0x4b48e1=_0x195223,_0x5d764f=_0x472e05;function _0x135aae(_0x3e971e){let _0x386981;if('string'==typeof _0x3e971e){const _0x7ed402=_0x3e971e['split']('.');0x3!==_0x7ed402['length']&&0x5!==_0x7ed402['length']||([_0x386981]=_0x7ed402);}else{if('object'==typeof _0x3e971e&&_0x3e971e){if(!('protected'in _0x3e971e))throw new TypeError('Token\x20does\x20not\x20contain\x20a\x20Protected\x20Header');_0x386981=_0x3e971e['protected'];}}try{if('string'!=typeof _0x386981||!_0x386981)throw new Error();const _0x5a9c06=JSON['parse'](_0x41a439['decode'](_0x5d764f(_0x386981)));if(!_0x14a94b(_0x5a9c06))throw new Error();return _0x5a9c06;}catch{throw new TypeError('Invalid\x20Token\x20or\x20Protected\x20Header\x20formatting');}}function _0x570a4a(_0x21bc62){if('string'!=typeof _0x21bc62)throw new _0x51e9d3('JWTs\x20must\x20use\x20Compact\x20JWS\x20serialization,\x20JWT\x20must\x20be\x20a\x20string');const {0x1:_0x452bff,length:_0x52b62f}=_0x21bc62['split']('.');if(0x5===_0x52b62f)throw new _0x51e9d3('Only\x20JWTs\x20using\x20Compact\x20JWS\x20serialization\x20can\x20be\x20decoded');if(0x3!==_0x52b62f)throw new _0x51e9d3('Invalid\x20JWT');if(!_0x452bff)throw new _0x51e9d3('JWTs\x20must\x20contain\x20a\x20payload');let _0x4826f6,_0x1151a3;try{_0x4826f6=_0x5d764f(_0x452bff);}catch{throw new _0x51e9d3('Failed\x20to\x20base64url\x20decode\x20the\x20payload');}try{_0x1151a3=JSON['parse'](_0x41a439['decode'](_0x4826f6));}catch{throw new _0x51e9d3('Failed\x20to\x20parse\x20the\x20decoded\x20payload\x20as\x20JSON');}if(!_0x14a94b(_0x1151a3))throw new _0x51e9d3('Invalid\x20JWT\x20Claims\x20Set');return _0x1151a3;}function _0x1c4e7c(_0x1aa33d){const _0x39a790=_0x1aa33d?.['modulusLength']??0x800;if('number'!=typeof _0x39a790||_0x39a790<0x800)throw new _0xb6a76d('Invalid\x20or\x20unsupported\x20modulusLength\x20option\x20provided,\x202048\x20bits\x20or\x20larger\x20keys\x20must\x20be\x20used');return _0x39a790;}async function _0x418923(_0x3d95fd,_0x50e956){return async function(_0x1d7467,_0x138ec3){let _0x4e984f,_0x27a3f8;switch(_0x1d7467){case'PS256':case'PS384':case'PS512':_0x4e984f={'name':'RSA-PSS','hash':'SHA-'+_0x1d7467['slice'](-0x3),'publicExponent':new Uint8Array([0x1,0x0,0x1]),'modulusLength':_0x1c4e7c(_0x138ec3)},_0x27a3f8=['sign','verify'];break;case'RS256':case'RS384':case'RS512':_0x4e984f={'name':'RSASSA-PKCS1-v1_5','hash':'SHA-'+_0x1d7467['slice'](-0x3),'publicExponent':new Uint8Array([0x1,0x0,0x1]),'modulusLength':_0x1c4e7c(_0x138ec3)},_0x27a3f8=['sign','verify'];break;case'RSA-OAEP':case'RSA-OAEP-256':case'RSA-OAEP-384':case'RSA-OAEP-512':_0x4e984f={'name':'RSA-OAEP','hash':'SHA-'+(parseInt(_0x1d7467['slice'](-0x3),0xa)||0x1),'publicExponent':new Uint8Array([0x1,0x0,0x1]),'modulusLength':_0x1c4e7c(_0x138ec3)},_0x27a3f8=['decrypt','unwrapKey','encrypt','wrapKey'];break;case'ES256':_0x4e984f={'name':'ECDSA','namedCurve':'P-256'},_0x27a3f8=['sign','verify'];break;case'ES384':_0x4e984f={'name':'ECDSA','namedCurve':'P-384'},_0x27a3f8=['sign','verify'];break;case'ES512':_0x4e984f={'name':'ECDSA','namedCurve':'P-521'},_0x27a3f8=['sign','verify'];break;case'Ed25519':_0x4e984f={'name':'Ed25519'},_0x27a3f8=['sign','verify'];break;case'EdDSA':{_0x27a3f8=['sign','verify'];const _0x858dd6=_0x138ec3?.['crv']??'Ed25519';switch(_0x858dd6){case'Ed25519':case'Ed448':_0x4e984f={'name':_0x858dd6};break;default:throw new _0xb6a76d('Invalid\x20or\x20unsupported\x20crv\x20option\x20provided');}break;}case'ECDH-ES':case'ECDH-ES+A128KW':case'ECDH-ES+A192KW':case'ECDH-ES+A256KW':{_0x27a3f8=['deriveKey','deriveBits'];const _0x41db60=_0x138ec3?.['crv']??'P-256';switch(_0x41db60){case'P-256':case'P-384':case'P-521':_0x4e984f={'name':'ECDH','namedCurve':_0x41db60};break;case'X25519':case'X448':_0x4e984f={'name':_0x41db60};break;default:throw new _0xb6a76d('Invalid\x20or\x20unsupported\x20crv\x20option\x20provided,\x20supported\x20values\x20are\x20P-256,\x20P-384,\x20P-521,\x20X25519,\x20and\x20X448');}break;}default:throw new _0xb6a76d('Invalid\x20or\x20unsupported\x20JWK\x20\x22alg\x22\x20(Algorithm)\x20Parameter\x20value');}return _0x41e110['subtle']['generateKey'](_0x4e984f,_0x138ec3?.['extractable']??!0x1,_0x27a3f8);}(_0x3d95fd,_0x50e956);}async function _0x294e43(_0x2bd18b,_0x1c9198){return async function(_0x2c1b69,_0x541bbf){let _0x5c7033,_0x4bde61,_0x1aae5e;switch(_0x2c1b69){case'HS256':case'HS384':case'HS512':_0x5c7033=parseInt(_0x2c1b69['slice'](-0x3),0xa),_0x4bde61={'name':'HMAC','hash':'SHA-'+_0x5c7033,'length':_0x5c7033},_0x1aae5e=['sign','verify'];break;case'A128CBC-HS256':case'A192CBC-HS384':case'A256CBC-HS512':return _0x5c7033=parseInt(_0x2c1b69['slice'](-0x3),0xa),_0x1e831f(new Uint8Array(_0x5c7033>>0x3));case'A128KW':case'A192KW':case'A256KW':_0x5c7033=parseInt(_0x2c1b69['slice'](0x1,0x4),0xa),_0x4bde61={'name':'AES-KW','length':_0x5c7033},_0x1aae5e=['wrapKey','unwrapKey'];break;case'A128GCMKW':case'A192GCMKW':case'A256GCMKW':case'A128GCM':case'A192GCM':case'A256GCM':_0x5c7033=parseInt(_0x2c1b69['slice'](0x1,0x4),0xa),_0x4bde61={'name':'AES-GCM','length':_0x5c7033},_0x1aae5e=['encrypt','decrypt'];break;default:throw new _0xb6a76d('Invalid\x20or\x20unsupported\x20JWK\x20\x22alg\x22\x20(Algorithm)\x20Parameter\x20value');}return _0x41e110['subtle']['generateKey'](_0x4bde61,_0x541bbf?.['extractable']??!0x1,_0x1aae5e);}(_0x2bd18b,_0x1c9198);}var _0x11cfe7='WebCryptoAPI';},0x268:function(_0x36de2f,_0x2bc995,_0x35f4ba){'use strict';Object['defineProperty'](_0x2bc995,'__esModule',{'value':!0x0});const _0x57fef8=_0x35f4ba(0x356),_0x4e8755=_0x35f4ba(0x3e0),_0x25e0f1=_0x35f4ba(0x36c);_0x2bc995['default']={'esignature':_0x57fef8['default'],'esignStamp':_0x4e8755['default'],'esignTooltip':_0x25e0f1['default']};},0x26e:function(_0x38cead,_0xbc263c){Object['defineProperty'](_0xbc263c,'__esModule',{'value':!0x0}),_0xbc263c['default']=function(_0x511579){var _0x2a9879,_0x22a0e3='';return Array['prototype']['join'],_0x22a0e3+='<div\x20class=\x22formio-esign-tooltip\x22>\x0a\x20\x20\x20\x20<span\x20class=\x22'+(null==(_0x2a9879=!0x0!==_0x511579['esign']['valid']?'formio-esign-tooltip-header-invalid':'')?'':_0x2a9879)+'\x20formio-esign-tooltip-header\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span\x20>'+(null==(_0x2a9879=_0x511579['t']('Digital\x20Signature'))?'':_0x2a9879)+'</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span\x20class=\x22formio-esign-tooltip-status\x22\x20>'+(null==(_0x2a9879=_0x511579['t'](!0x0!==_0x511579['esign']['valid']?'invalid':'verified'))?'':_0x2a9879)+'</span>\x0a\x20\x20\x20\x20</span>\x0a\x20\x20\x20\x20',_0x511579['pdfForm']&&!0x0!==_0x511579['esign']['valid']&&(_0x22a0e3+='\x0a\x20\x20\x20\x20<div\x20class=\x22formio-esign-tooltip-invalid-msg\x22>'+(null==(_0x2a9879=_0x511579['esignInvalidMessage'])?'':_0x2a9879)+'</div>\x0a\x20\x20\x20\x20'),_0x22a0e3+='\x0a\x20\x20\x20\x20<ul\x20class=\x22formio-esign-tooltip-info\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20',_0x511579['pdfForm']&&(_0x22a0e3+='\x0a\x20\x20\x20\x20\x20\x20\x20\x20<li\x20class=\x22formio-esign-tooltip-info-item\x22><span\x20class=\x22formio-esign-tooltip-info-item-title\x22>'+(null==(_0x2a9879=_0x511579['t']('Signed\x20by'))?'':_0x2a9879)+':</span><span>'+(null==(_0x2a9879=_0x511579['esign']?.['signature']?.['user']?.['data']||_0x511579['esign']?.['signature']?.['user']?.['_id'])?'':_0x2a9879)+'</span></li>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<li\x20class=\x22formio-esign-tooltip-info-item\x22><span\x20class=\x22formio-esign-tooltip-info-item-title\x22>'+(null==(_0x2a9879=_0x511579['t']('Signed\x20on'))?'':_0x2a9879)+':</span><span>'+(null==(_0x2a9879=new Date(_0x511579['esign']?.['created'])['toLocaleString']())?'':_0x2a9879)+'</span></li>\x0a\x20\x20\x20\x20\x20\x20\x20\x20'),_0x22a0e3+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20<li\x20class=\x22formio-esign-tooltip-info-item\x22><span\x20class=\x22formio-esign-tooltip-info-item-title\x22>'+(null==(_0x2a9879=_0x511579['t']('ID'))?'':_0x2a9879)+':</span><span>'+(null==(_0x2a9879=_0x511579['esign']?.['_id']||'-')?'':_0x2a9879)+'</span></li>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<li\x20class=\x22formio-esign-tooltip-info-item\x22><span\x20class=\x22formio-esign-tooltip-info-item-title\x22>'+(null==(_0x2a9879=_0x511579['t']('Path'))?'':_0x2a9879)+':</span><span>'+(null==(_0x2a9879=_0x511579['esign']?.['signature']?.['valuePath']||'-')?'':_0x2a9879)+'</span></li>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<li\x20class=\x22formio-esign-tooltip-info-item\x22><span\x20class=\x22formio-esign-tooltip-info-item-title\x22>'+(null==(_0x2a9879=_0x511579['t']('Submission\x20Rev.'))?'':_0x2a9879)+':</span><span>'+(null==(_0x2a9879=_0x511579['esign']?.['signature']?.['submission']?.['_id']||'-')?'':_0x2a9879)+'</span></li>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<li\x20class=\x22formio-esign-tooltip-info-item\x22><span\x20class=\x22formio-esign-tooltip-info-item-title\x22>'+(null==(_0x2a9879=_0x511579['t']('Form\x20Rev.'))?'':_0x2a9879)+':</span><span>'+(null==(_0x2a9879=_0x511579['esign']?.['signature']?.['submission']?.['_fvid'])?'':_0x2a9879)+'</span></li>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<li\x20class=\x22formio-esign-tooltip-info-item\x22><span\x20class=\x22formio-esign-tooltip-info-item-title\x22>'+(null==(_0x2a9879=_0x511579['t']('User\x20ID'))?'':_0x2a9879)+':</span><span>'+(null==(_0x2a9879=_0x511579['esign']?.['signature']?.['user']?.['_id']||'-')?'':_0x2a9879)+'</span></li>\x0a\x20\x20\x20\x20</ul>\x0a<div>\x0a';};},0x27f:function(_0x11e6bf,_0x208e56){Object['defineProperty'](_0x208e56,'__esModule',{'value':!0x0}),_0x208e56['default']=function(_0x417764){var _0x51bbc3,_0x17bc33='';return Array['prototype']['join'],_0x417764['esign']&&(_0x17bc33+='\x0a<span\x20class=\x22formio-esign-stamp\x20\x20'+(null==(_0x51bbc3=!0x0===_0x417764['esign']['valid']?'':'formio-esign-stamp-invalid')?'':_0x51bbc3)+'\x22>\x0a\x20\x20\x20\x20<i\x20ref=\x22esignTooltip\x22\x20style=\x22cursor:pointer\x22\x20data-tooltip=\x22'+(null==(_0x51bbc3=_0x417764['esignTooltip'])?'':_0x51bbc3)+'\x22\x20class=\x27'+(null==(_0x51bbc3=_0x417764['iconClass'](!0x0!==_0x417764['esign']['valid']?'remove-sign':'ok-sign',!0x1))?'':_0x51bbc3)+'\x27\x20aria-hidden=\x27true\x27></i>\x20\x0a\x20\x20\x20\x20<span\x20class=\x22formio-esign-stamp-description\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20',!0x0!==_0x417764['esign']['valid']||_0x417764['pdfForm']||(_0x17bc33+='\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Signed\x20by\x20'+(null==(_0x51bbc3=_0x417764['esign']?.['signature']?.['user']?.['data']||_0x417764['esign']?.['signature']?.['user']?.['_id'])?'':_0x51bbc3)+'\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20',_0x417764['esign']?.['created']&&(_0x17bc33+='\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20on\x20'+(null==(_0x51bbc3=new Date(_0x417764['esign']['created'])['toLocaleString']())?'':_0x51bbc3)+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'),_0x17bc33+='\x0a\x20\x20\x20\x20\x20\x20\x20\x20</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20'),_0x17bc33+='\x0a\x20\x20\x20\x20\x20\x20\x20\x20',!0x0===_0x417764['esign']['valid']&&_0x417764['pdfForm']&&(_0x17bc33+='\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(null==(_0x51bbc3=_0x417764['t']('Signed'))?'':_0x51bbc3)+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20'),_0x17bc33+='\x0a\x20\x20\x20\x20\x20\x20\x20\x20',!0x0!==_0x417764['esign']['valid']&&(_0x17bc33+='\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(null==(_0x51bbc3=_0x417764['esignInvalidMessage'])?'':_0x51bbc3)+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20'),_0x17bc33+='\x0a\x20\x20\x20\x20</span>\x0a</span>\x0a'),_0x17bc33+'\x0a';};},0x295:function(_0x19082c,_0x53d45c,_0x3de6c1){'use strict';var _0x536840=this&&this['__awaiter']||function(_0x5c2c47,_0x3ca9f1,_0x30bcc5,_0x459544){return new(_0x30bcc5||(_0x30bcc5=Promise))(function(_0x24edae,_0x1d7b77){function _0xf4ca1c(_0x18a1b0){try{_0x160779(_0x459544['next'](_0x18a1b0));}catch(_0x3d1a0f){_0x1d7b77(_0x3d1a0f);}}function _0x34803f(_0x501e1c){try{_0x160779(_0x459544['throw'](_0x501e1c));}catch(_0x5e2c52){_0x1d7b77(_0x5e2c52);}}function _0x160779(_0x15b729){var _0x369502;_0x15b729['done']?_0x24edae(_0x15b729['value']):(_0x369502=_0x15b729['value'],_0x369502 instanceof _0x30bcc5?_0x369502:new _0x30bcc5(function(_0x2898c8){_0x2898c8(_0x369502);}))['then'](_0xf4ca1c,_0x34803f);}_0x160779((_0x459544=_0x459544['apply'](_0x5c2c47,_0x3ca9f1||[]))['next']());});};Object['defineProperty'](_0x53d45c,'__esModule',{'value':!0x0});const _0x275a8a=_0x3de6c1(0x170),_0x1afbdb=_0x3de6c1(0x190),_0xf0c607=_0x275a8a['Components']['components']['component'],_0x23386a=_0x275a8a['Utils']['_'],_0x4c8f17=_0xf0c607['prototype']['init'];_0xf0c607['prototype']['init']=function(){var _0xc19836,_0x5783f3,_0x2a7254;this['builderMode']||(null===(_0xc19836=this['options'])||void 0x0===_0xc19836?void 0x0:_0xc19836['building'])||(null===(_0x5783f3=this['options'])||void 0x0===_0x5783f3?void 0x0:_0x5783f3['inFormBuilder'])||!this['options']['root']||(this['_parentPath']=(null===(_0x2a7254=this['options'])||void 0x0===_0x2a7254?void 0x0:_0x2a7254['parentPath'])||'',this['esignConfig']=this['getEsignConfig']()),_0x4c8f17['call'](this);},_0xf0c607['prototype']['getEsignConfig']=function(){const _0x55975f=this['esign']['signatures']||[];return _0x23386a['find'](_0x55975f,_0x4e99f9=>_0x4e99f9['component']===this['jsonPathInLocalRoot']);},Object['defineProperty'](_0xf0c607['prototype'],'esign',{'enumerable':!0x0,'configurable':!0x0,'get'(){var _0x7e08b0;return(null===(_0x7e08b0=this['root'])||void 0x0===_0x7e08b0?void 0x0:_0x7e08b0['esign'])||{};}}),Object['defineProperty'](_0xf0c607['prototype'],'jsonPathInLocalRoot',{'enumerable':!0x0,'configurable':!0x0,'get'(){return _0x23386a['replace'](this['pathInLocalRoot']||'',new RegExp('\x5c[[0-9]*\x5c]','g'),'');}}),Object['defineProperty'](_0xf0c607['prototype'],'pathInLocalRoot',{'enumerable':!0x0,'configurable':!0x0,'get'(){return _0x23386a['replace'](this['path'],this['_parentPath'],'');}}),_0xf0c607['prototype']['attachESignTooltip']=function(_0x143d36){(_0x143d36=_0x143d36||this['element'])&&(this['destroyESignTooltip'](),this['loadRefs'](_0x143d36,{'esignTooltip':'multiple'}),this['refs']['esignTooltip']&&(this['esignTooltip']=_0x23386a['map'](this['refs']['esignTooltip']||[],_0x4a7e65=>this['createTooltip'](_0x4a7e65,{'theme':'formioEsign'}))));};const _0x1068b7=_0xf0c607['prototype']['attach'];_0xf0c607['prototype']['attach']=function(_0x35af47){return _0x536840(this,void 0x0,void 0x0,function*(){const _0x5394a6=_0x1068b7['call'](this,_0x35af47);try{yield(0x0,_0x1afbdb['checkLicense'])(window['location']['href']),this['attachESignTooltip'](_0x35af47),this['attachESignatureValidation']();}catch(_0x30be90){return;}return _0x5394a6;});},_0xf0c607['prototype']['setESignature']=function(_0x31bb4d,_0x35f5a2){var _0x3a342a;if(!this['esignConfig'])return void(this['eSignature']&&(this['eSignature']=null));if(_0x31bb4d&&_0x35f5a2['fromSubmission']&&this['options']['cleanESignOnSetSubmission'])return this['eSignature']=null,this['resetValue'](),void this['redraw']();const _0x4544f8=!_0x23386a['isEqual'](this['eSignature'],_0x31bb4d);this['eSignature']=_0x31bb4d,this['attachESignatureValidation'](),_0x4544f8&&(this['eSignature']&&!0x0!==(null===(_0x3a342a=this['eSignature'])||void 0x0===_0x3a342a?void 0x0:_0x3a342a['valid'])&&this['resetValue'](),this['redraw']());},_0xf0c607['prototype']['attachESignatureValidation']=function(){var _0x2212a9;!_0x23386a['isEmpty'](this['esignConfig'])&&(null===(_0x2212a9=this['eSignature'])||void 0x0===_0x2212a9?void 0x0:_0x2212a9['valid'])&&this['on']('signedValueChanged',_0xba3fdf=>{var _0x5cdabb;if(!(null===(_0x5cdabb=this['eSignature'])||void 0x0===_0x5cdabb?void 0x0:_0x5cdabb['valid'])||!_0xba3fdf)return;const {valuePath:_0x2eb26f,compPath:_0x34f41c,parent:_0x205144,customProps:_0x5cd027}=_0xba3fdf;_0x5cd027&&this['invalidateESignature'](),_0x2eb26f===this['pathInLocalRoot']&&this['invalidateESignature'](!0x0),this['isESignatureDataPath'](_0x34f41c,_0x205144)&&this['invalidateESignature']();});},_0xf0c607['prototype']['invalidateESignature']=function(_0x1ee030){this['eSignature']['valid']='the\x20data\x20has\x20been\x20modified',_0x1ee030||this['resetValue'](),this['redraw']();},_0xf0c607['prototype']['isESignatureDataPath']=function(_0x181f3c,_0x1cd0ed){if(!_0x181f3c)return!0x1;const {signAll:_0x46423f,signedData:_0x31438f=[]}=this['esignConfig']||{};return _0x46423f||_0x23386a['some'](_0x31438f,_0x5abbaa=>_0x1cd0ed&&_0x23386a['startsWith'](_0x5abbaa,_0x181f3c+'.')||_0x5abbaa===_0x181f3c||_0x23386a['startsWith'](_0x181f3c,_0x5abbaa+'.'));},_0xf0c607['prototype']['formatEsignTooltip']=function(_0x4f9b4f=''){const _0x393e1e=_0x4f9b4f['replace'](/(?:\r\n|\r|\n)/g,'');return this['getFormattedAttribute'](_0x393e1e);},_0xf0c607['prototype']['renderESignature']=function(_0x5a061a){return this['eSignature']&&this['getEsignConfig']?this['renderTemplate']('esignature',{'children':_0x5a061a,'eSignStamp':this['renderEsignStamp']()}):_0x5a061a;};const _0x2df06b=_0xf0c607['prototype']['render'];_0xf0c607['prototype']['render']=function(_0x315a86='Unknown\x20component:\x20'+this['component']['type'],_0x57946d=!0x1){return _0x315a86=this['renderESignature'](_0x315a86),_0x2df06b['call'](this,_0x315a86,_0x57946d);},_0xf0c607['prototype']['renderEsignTooltip']=function(){const {tooltipTemplate:_0x246395}=this['esign'],_0x28437a={'pdfForm':'pdf'===this['options']['display'],'esign':this['eSignature'],'esignInvalidMessage':this['getInvalidESigntureMessage'](!0x0)},_0x4dc20d=_0x246395?this['renderString'](_0x246395,_0x28437a):this['renderTemplate']('esignTooltip',_0x28437a);return this['formatEsignTooltip'](_0x4dc20d);};const _0x20cf99=_0xf0c607['prototype']['renderModalPreview'];_0xf0c607['prototype']['renderModalPreview']=function(_0x44fbcc){return this['renderESignature'](_0x20cf99['call'](this,_0x44fbcc));},_0xf0c607['prototype']['getInvalidESigntureMessage']=function(_0x2f9e1c){if(!0x0===this['eSignature']['valid'])return'';if(_0x2f9e1c)return'pdf'===this['options']['display']?this['t']('{{reason}}.\x20Please\x20provide\x20an\x20updated\x20signature.',{'reason':this['eSignature']['valid']}):'';const _0x55efb8=this['t']('Invalid\x20signature:');return'pdf'===this['options']['display']?_0x55efb8:_0x55efb8+'\x20'+this['t']('{{reason}}.\x20Please\x20provide\x20an\x20updated\x20signature.',{'reason':this['eSignature']['valid']});},_0xf0c607['prototype']['renderEsignStamp']=function(){const _0x47e831=this['renderEsignTooltip'](),_0x225a12={'pdfForm':'pdf'===this['options']['display'],'esign':this['eSignature'],'esignTooltip':_0x47e831,'esignIconClass':this['iconClass'](!0x0!==this['eSignature']['valid']?'times-circle':'check-circle',!0x1),'esignInvalidMessage':this['getInvalidESigntureMessage']()},{stampTemplate:_0x288e65}=this['esign'];return _0x288e65?this['renderString'](_0x288e65,_0x225a12):this['renderTemplate']('esignStamp',_0x225a12);},_0xf0c607['prototype']['destroyESignTooltip']=function(){_0x23386a['each'](this['esignTooltip']||[],_0x4438a2=>{var _0x14af23;_0x4438a2&&!(null===(_0x14af23=_0x4438a2['state'])||void 0x0===_0x14af23?void 0x0:_0x14af23['isDestroyed'])&&_0x4438a2['destroy']&&_0x4438a2['destroy']();});};const _0x558b83=_0xf0c607['prototype']['removeEventListeners'];_0xf0c607['prototype']['removeEventListeners']=function(){_0x558b83['call'](this),this['destroyESignTooltip']();};const _0x1a6aca=Object['getOwnPropertyDescriptor'](_0xf0c607['prototype'],'disabled');Object['defineProperty'](_0xf0c607['prototype'],'disabled',{'enumerable':!0x0,'configurable':!0x0,'get'(){var _0x4d6a0a;return _0x1a6aca['get']['call'](this)||(null===(_0x4d6a0a=this['parent'])||void 0x0===_0x4d6a0a?void 0x0:_0x4d6a0a['disabled'])||this['shouldDisableSignedData']();}}),_0xf0c607['prototype']['shouldDisableSignedData']=function(){return _0x23386a['get'](this,'root.disableSignedData',!0x1)&&this['isValueSigned']();},_0xf0c607['prototype']['isValueSigned']=function(){var _0x313245,_0x7d329b;if(!0x0===(null===(_0x313245=this['eSignature'])||void 0x0===_0x313245?void 0x0:_0x313245['valid']))return!0x0;const _0x5b2c3a=(null===(_0x7d329b=this['root'])||void 0x0===_0x7d329b?void 0x0:_0x7d329b['signedComponentsInfo'])||{};if(null==_0x5b2c3a?void 0x0:_0x5b2c3a['all'])return!0x0;const _0x4c174d=this['jsonPathInLocalRoot'];return _0x23386a['some']((null==_0x5b2c3a?void 0x0:_0x5b2c3a['components'])||[],_0x4c8e82=>_0x4c174d===_0x4c8e82||_0x23386a['startsWith'](_0x4c174d,_0x4c8e82+'.'));};const _0x127ea3=_0xf0c607['prototype']['checkData'];_0xf0c607['prototype']['checkData']=function(_0x5ec39b,_0x30b878,_0x12f828){const _0x1f333b=_0x127ea3['call'](this,_0x5ec39b,_0x30b878,_0x12f828);return(null==_0x30b878?void 0x0:_0x30b878['fromSubmission'])||this['validateSignedValue'](),_0x1f333b;},_0xf0c607['prototype']['checkSignedDataChange']=function(_0x53c618={}){return this['hasSignedValueChanged'](_0x53c618);},_0xf0c607['prototype']['validateSignedValue']=function(){var _0x317253;!this['options']['inFormBuilder']&&!this['builderMode']&&!this['options']['building']&&this['options']['root']&&(null===(_0x317253=this['root'])||void 0x0===_0x317253?void 0x0:_0x317253['shouldValidateESignatures']())&&this['hasSignedValueChanged']()&&this['emitSignedValueChange']();},_0xf0c607['prototype']['emitSignedValueChange']=function(_0x2382e3){this['emit']('signedValueChanged',{'valuePath':this['pathInLocalRoot'],'compPath':this['jsonPathInLocalRoot'],'parent':this['hasSignedChildren'](),'customProps':_0x2382e3});},_0xf0c607['prototype']['getValuePathInSignedData']=function(){if(this['row']){let _0x4b181f,_0xca4313=this;for(;_0xca4313&&_0xca4313['row']&&!_0x4b181f;)_0xca4313=_0xca4313['parent'],'tagpad'===_0xca4313['type']&&(_0x4b181f=_0xca4313);if(_0x4b181f){const _0x25ac15=_0x23386a['split'](this['pathInLocalRoot'],new RegExp('^'+_0x4b181f['pathInLocalRoot']+'\x5c[[0-9]*\x5c]','g'))[0x1];return _0x23386a['split'](this['pathInLocalRoot'],_0x25ac15)[0x0]+'.data'+_0x25ac15;}}return this['pathInLocalRoot'];},_0xf0c607['prototype']['compareSignedValue']=function(_0x5c0e42){return!this['isEqual'](_0x23386a['isNil'](_0x5c0e42)?this['emptyValue']:_0x5c0e42,_0x23386a['isNil'](this['dataValue'])?this['emptyValue']:this['dataValue']);},_0xf0c607['prototype']['hasSignedValueChanged']=function(_0x54eeb2={}){var _0x11a97a,_0x3055e8;const {checkAll:_0x5738de,signedData:_0x2c50bc}=_0x54eeb2,_0x25f289=_0x5738de||this['isValueSigned']();if(!this['component']['input']||!0x0!==this['component']['persistent']||!_0x25f289)return!0x1;const _0x38306f=_0x2c50bc||(null===(_0x3055e8=null===(_0x11a97a=this['root'])||void 0x0===_0x11a97a?void 0x0:_0x11a97a['signedSubmission'])||void 0x0===_0x3055e8?void 0x0:_0x3055e8['data']);if(!_0x38306f)return!0x1;const _0x1f2a08=_0x23386a['get'](_0x38306f,this['getValuePathInSignedData']());return this['compareSignedValue'](_0x1f2a08);},_0xf0c607['prototype']['hasSignedChildren']=_0x52c15e=>!0x1,_0x53d45c['default']=_0xf0c607;},0x2bb:function(_0x5d074e,_0x32fdbc,_0x249bbe){'use strict';Object['defineProperty'](_0x32fdbc,'__esModule',{'value':!0x0});const _0x3febdd=_0x249bbe(0x170)['Components']['components']['componentmodal'],_0x128a13=_0x3febdd['prototype']['setOpenEventListener'];_0x3febdd['prototype']['setOpenEventListener']=function(){_0x128a13['call'](this),this['component']['attachESignTooltip']();},_0x32fdbc['default']=_0x3febdd;},0x2bd:function(_0x1c9bff,_0x470c60,_0x1e04c9){'use strict';Object['defineProperty'](_0x470c60,'__esModule',{'value':!0x0});const _0x1d2dcf=_0x1e04c9(0x170),_0xbe0e23=_0x1d2dcf['Components']['components']['nested'],_0x3ca585=_0x1d2dcf['Utils']['_'];_0xbe0e23['prototype']['hasSignedValueChanged']=()=>!0x1,_0xbe0e23['prototype']['checkSignedDataChange']=function(_0x4287d3={}){const {checkAll:_0x6ddef1}=_0x4287d3;return!(!_0x6ddef1&&!this['hasSignedChildren']())&&_0x3ca585['some'](this['getComponents']()||[],_0x278841=>_0x278841['checkSignedDataChange'](_0x4287d3));},_0xbe0e23['prototype']['hasSignedChildren']=function(){var _0x477c85;const _0x1f30b6=(null===(_0x477c85=this['root'])||void 0x0===_0x477c85?void 0x0:_0x477c85['signedComponentsInfo'])||{};if(null==_0x1f30b6?void 0x0:_0x1f30b6['all'])return!0x0;const _0x10f72d=this['jsonPathInLocalRoot'];return _0x3ca585['some']((null==_0x1f30b6?void 0x0:_0x1f30b6['components'])||[],_0x414478=>_0x10f72d===_0x414478||_0x3ca585['startsWith'](_0x10f72d,_0x414478+'.'||_0x3ca585['startsWith'](_0x414478,_0x10f72d+'.')));},_0x470c60['default']=_0xbe0e23;},0x2bf:function(_0x9b203a,_0x2afa18,_0x3859f7){'use strict';Object['defineProperty'](_0x2afa18,'__esModule',{'value':!0x0});const _0x191769=_0x3859f7(0x170),_0x1eea06=_0x191769['Components']['components']['form'],_0xf91d67=(_0x191769['Utils']['_'],_0x1eea06['prototype']['onSetSubFormValue']);_0x1eea06['prototype']['onSetSubFormValue']=function(_0x271a9a,_0x43475d){const _0x327a89=(null==_0x43475d?void 0x0:_0x43475d['fromSubmission'])&&this['subForm'];_0x327a89&&this['subForm']['setSignedSubmission'](_0x271a9a),_0xf91d67['call'](this,_0x271a9a,_0x43475d),_0x327a89&&this['subForm']['setESignatures'](_0x271a9a);};const _0x3e4964=_0x1eea06['prototype']['getSubOptions'];_0x1eea06['prototype']['getSubOptions']=function(_0x37096c={}){return _0x37096c['parentPath']=this['path']+'.data.',_0x3e4964['call'](this,_0x37096c);},_0x1eea06['prototype']['getValuePathInSignedData']=function(){return this['pathInLocalRoot']+'.data';},_0x1eea06['prototype']['compareSignedValue']=function(_0x4b9031){return!!this['subForm']&&this['subForm']['checkSignedDataChange']({'checkAll':!0x0,'signedData':_0x4b9031});};const _0x3f629d=_0x1eea06['prototype']['isInternalEvent'];_0x1eea06['prototype']['isInternalEvent']=function(_0x253442){return _0x3f629d['call'](this,_0x253442)||'signedValueChanged'===_0x253442;},_0x2afa18['default']=_0x1eea06;},0x2c1:function(_0xd27a68,_0x2649e5,_0xdc808a){'use strict';Object['defineProperty'](_0x2649e5,'__esModule',{'value':!0x0});const _0x21a8f5=_0xdc808a(0x170),_0x3e08c8=_0x21a8f5['Components']['components']['nestedarray'],_0xcb10b=_0x21a8f5['Utils']['_'];_0x3e08c8['prototype']['hasSignedValueChanged']=function(_0x182104={}){var _0x1bd987,_0xe31989;const {checkAll:_0x292d36,signedData:_0x36b9cd}=_0x182104;if(_0x292d36||this['hasSignedChildren']()){const _0xcd913b=_0xcb10b['get'](_0x36b9cd||(null===(_0xe31989=null===(_0x1bd987=this['root'])||void 0x0===_0x1bd987?void 0x0:_0x1bd987['signedSubmission'])||void 0x0===_0xe31989?void 0x0:_0xe31989['data']),this['getValuePathInSignedData']());if(_0xcb10b['keys'](this['dataValue'])['length']!==_0xcb10b['keys'](_0xcd913b)['length'])return!0x0;if('datamap'===this['component']['type'])return!_0xcb10b['isEqual'](_0xcb10b['keys'](this['dataValue']),_0xcb10b['keys'](_0xcd913b));}return!0x1;},_0x2649e5['default']=_0x3e08c8;},0x2ed:function(_0xe097f5,_0x6c3772){Object['defineProperty'](_0x6c3772,'__esModule',{'value':!0x0}),_0x6c3772['default']=function(_0x1ad163){var _0x499583;return''+((null==(_0x499583=_0x1ad163['children'])?'':_0x499583)+'\x0a<div\x20ref=\x22esignContainer\x22>')+(null==(_0x499583=_0x1ad163['eSignStamp'])?'':_0x499583)+'</div>\x0a';};},0x2f5:function(_0x144c8e,_0x4ca40a,_0x14738c){'use strict';Object['defineProperty'](_0x4ca40a,'__esModule',{'value':!0x0});const _0x57411c=_0x14738c(0x14e);_0x4ca40a['default']={'webform':_0x57411c['default']};},0x339:function(_0x5d9a46,_0x1b5eee,_0x4a4af5){'use strict';Object['defineProperty'](_0x1b5eee,'__esModule',{'value':!0x0});const _0x55149d=_0x4a4af5(0x39d),_0x3f8461=_0x4a4af5(0x197),_0x256bc4=_0x4a4af5(0x193);_0x1b5eee['default']={'esignature':_0x55149d['default'],'esignStamp':_0x3f8461['default'],'esignTooltip':_0x256bc4['default']};},0x34a:function(_0x408c6a,_0x5c5bb4){Object['defineProperty'](_0x5c5bb4,'__esModule',{'value':!0x0}),_0x5c5bb4['default']=function(_0x295837){var _0x13deb7,_0x17c41e='';return Array['prototype']['join'],_0x295837['esign']&&(_0x17c41e+='\x0a<span\x20class=\x22formio-esign-stamp\x20\x20'+(null==(_0x13deb7=!0x0===_0x295837['esign']['valid']?'':'formio-esign-stamp-invalid')?'':_0x13deb7)+'\x22>\x0a\x20\x20\x20\x20<i\x20ref=\x22esignTooltip\x22\x20style=\x22cursor:pointer\x22\x20data-tooltip=\x22'+(null==(_0x13deb7=_0x295837['esignTooltip'])?'':_0x13deb7)+'\x22\x20class=\x27'+(null==(_0x13deb7=_0x295837['esignIconClass'])?'':_0x13deb7)+'\x27\x20aria-hidden=\x27true\x27></i>\x20\x0a\x20\x20\x20\x20<span\x20class=\x22formio-esign-stamp-description\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20',!0x0!==_0x295837['esign']['valid']||_0x295837['pdfForm']||(_0x17c41e+='\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Signed\x20by\x20'+(null==(_0x13deb7=_0x295837['esign']?.['signature']?.['user']?.['data']||_0x295837['esign']?.['signature']?.['user']?.['_id'])?'':_0x13deb7)+'\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20',_0x295837['esign']?.['created']&&(_0x17c41e+='\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20on\x20'+(null==(_0x13deb7=new Date(_0x295837['esign']['created'])['toLocaleString']())?'':_0x13deb7)+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'),_0x17c41e+='\x0a\x20\x20\x20\x20\x20\x20\x20\x20</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20'),_0x17c41e+='\x0a\x20\x20\x20\x20\x20\x20\x20\x20',!0x0===_0x295837['esign']['valid']&&_0x295837['pdfForm']&&(_0x17c41e+='\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(null==(_0x13deb7=_0x295837['t']('Signed'))?'':_0x13deb7)+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20'),_0x17c41e+='\x0a\x20\x20\x20\x20\x20\x20\x20\x20',!0x0!==_0x295837['esign']['valid']&&(_0x17c41e+='\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(null==(_0x13deb7=_0x295837['esignInvalidMessage'])?'':_0x13deb7)+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20'),_0x17c41e+='\x0a\x20\x20\x20\x20</span>\x0a</span>\x0a'),_0x17c41e+'\x0a';};},0x356:function(_0x2dfa36,_0x2140d6,_0x48c394){'use strict';Object['defineProperty'](_0x2140d6,'__esModule',{'value':!0x0});const _0x44a60e=_0x48c394(0x0);_0x2140d6['default']={'form':_0x44a60e['default']};},0x36c:function(_0x19bace,_0x3ecdbf,_0x57171c){'use strict';Object['defineProperty'](_0x3ecdbf,'__esModule',{'value':!0x0});const _0x36414d=_0x57171c(0x26e);_0x3ecdbf['default']={'form':_0x36414d['default']};},0x39d:function(_0x42c359,_0xe9e7da,_0x5dea63){'use strict';Object['defineProperty'](_0xe9e7da,'__esModule',{'value':!0x0});const _0x2d7644=_0x5dea63(0x2ed);_0xe9e7da['default']={'form':_0x2d7644['default']};},0x3c9:function(_0x57837e,_0x165212,_0x303b86){'use strict';Object['defineProperty'](_0x165212,'__esModule',{'value':!0x0});const _0x461a06=_0x303b86(0x268),_0x9887b7=_0x303b86(0x339);_0x165212['default']={'bootstrap':_0x461a06['default'],'bootstrap3':_0x9887b7['default'],'bootstrap4':_0x461a06['default'],'bootstrap5':_0x461a06['default']};},0x3e0:function(_0x2c74f6,_0x1c6f42,_0x4471cb){'use strict';Object['defineProperty'](_0x1c6f42,'__esModule',{'value':!0x0});const _0x22c419=_0x4471cb(0x34a);_0x1c6f42['default']={'form':_0x22c419['default']};}},_0x347b63={};function _0x479528(_0x481be0){var _0x553b32=_0x347b63[_0x481be0];if(void 0x0!==_0x553b32)return _0x553b32['exports'];var _0x40370f=_0x347b63[_0x481be0]={'exports':{}};return _0x438f24[_0x481be0]['call'](_0x40370f['exports'],_0x40370f,_0x40370f['exports'],_0x479528),_0x40370f['exports'];}_0x479528['d']=function(_0x37dab5,_0xf6949d){for(var _0x1a819b in _0xf6949d)_0x479528['o'](_0xf6949d,_0x1a819b)&&!_0x479528['o'](_0x37dab5,_0x1a819b)&&Object['defineProperty'](_0x37dab5,_0x1a819b,{'enumerable':!0x0,'get':_0xf6949d[_0x1a819b]});},_0x479528['o']=function(_0x6c10d8,_0xeaa785){return Object['prototype']['hasOwnProperty']['call'](_0x6c10d8,_0xeaa785);},_0x479528['r']=function(_0x26e5dd){'undefined'!=typeof Symbol&&Symbol['toStringTag']&&Object['defineProperty'](_0x26e5dd,Symbol['toStringTag'],{'value':'Module'}),Object['defineProperty'](_0x26e5dd,'__esModule',{'value':!0x0});};var _0x3ef057={};return(function(){'use strict';var _0x364697=_0x3ef057;const _0x1ec1a0=_0x479528(0x15e),_0x49d124=_0x479528(0x3c9),_0x4c4f7a=_0x479528(0x203),_0x5dbda3=_0x479528(0x2f5);_0x364697['default']={'components':_0x1ec1a0['default'],'templates':_0x49d124['default'],'library':_0x4c4f7a['default'],'displays':_0x5dbda3['default']};}()),_0x3ef057['default'];}());});
@@ -0,0 +1,2 @@
1
+ declare const BaseAddress: any;
2
+ export default BaseAddress;
@@ -4,5 +4,6 @@ declare const _default: {
4
4
  nestedarray: any;
5
5
  form: any;
6
6
  componentmodal: any;
7
+ address: any;
7
8
  };
8
9
  export default _default;
package/lib/index.d.ts CHANGED
@@ -5,6 +5,7 @@ declare const _default: {
5
5
  nestedarray: any;
6
6
  form: any;
7
7
  componentmodal: any;
8
+ address: any;
8
9
  };
9
10
  templates: {
10
11
  bootstrap: {
@@ -0,0 +1,3 @@
1
+ export declare function verifyLicense(): Promise<void>;
2
+ export declare function checkEndpointAllowed(endpointUrl: string): Promise<void>;
3
+ export declare function checkLicense(endpointUrl: string): Promise<void>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@formio/esignature",
3
- "version": "1.0.2",
3
+ "version": "1.1.0",
4
4
  "description": "eSignature components for form.io",
5
5
  "main": "esignature.js",
6
6
  "types": "lib/index.d.ts",
@@ -27,10 +27,11 @@
27
27
  "bugs": {
28
28
  "url": "https://github.com/formio/esignature/issues"
29
29
  },
30
- "configVersion": 3,
30
+ "configVersion": 11,
31
31
  "homepage": "https://github.com/formio/esignature#readme",
32
32
  "devDependencies": {
33
- "@formio/js": "^5.2.5",
33
+ "@formio/js": "^5.3.0",
34
+ "@formio/license": "^2.0.2",
34
35
  "@types/mocha": "^10.0.1",
35
36
  "@types/node": "^20.1.5",
36
37
  "chai": "^4.3.7",
@@ -59,17 +60,18 @@
59
60
  "webpack-obfuscator": "^3.5.1"
60
61
  },
61
62
  "peerDependencies": {
62
- "@formio/js": "^5.2.5"
63
+ "@formio/js": "^5.3.0"
63
64
  },
64
65
  "dependencies": {},
65
66
  "scripts": {
66
67
  "watch": "tsc -w",
67
68
  "precommit": "gulp esignature-config-template",
68
69
  "build:style": "sass ./src/sass/esignature.scss ./dist/esignature.css",
69
- "build:dist": "rm -rf lib && rm -rf dist && tsc && gulp templates && webpack --config=config/webpack.prod.js && gulp modifyPackage && npm run build:style",
70
- "build:dev": "rm -rf lib && rm -rf dist && tsc && gulp templates && webpack --config=config/webpack.dev.js && npm run build:style",
71
- "build:portal": "rm -rf lib && rm -rf build && tsc && gulp templates && webpack --config=config/webpack.portal.js && sass ./src/sass/esignature.scss ./build/esignature.css",
72
- "build": "npm run build:portal && npm run build:dist",
70
+ "build:dist": "npm run clean && gulp licenseCheck && tsc && gulp templates && webpack --config=config/webpack.prod.js && gulp modifyPackage && npm run build:style",
71
+ "build:dev": "npm run clean && gulp licenseCheck:disable && tsc && gulp templates && webpack --config=config/webpack.dev.js && gulp modifyPackage && npm run build:style",
72
+ "build:portal": "npm run clean && gulp licenseCheck:disable && tsc && gulp templates && webpack --config=config/webpack.portal.js && gulp modifyPackage && npm run build:style",
73
+ "build": "npm run build:portal",
74
+ "clean": "rm -rf lib && rm -rf dist",
73
75
  "lint": "tslint -p .",
74
76
  "test": "rm -rf lib && tsc && gulp templates && mocha test/*.spec.ts"
75
77
  }
@@ -1 +0,0 @@
1
- {"title":"E SIGNATURE SETTINGS","name":"eSignatureSettings","path":"esignaturesettings","type":"form","display":"form","components":[{"label":"eSignatures","hideLabel":true,"tableView":false,"templates":{"header":"<div class=\"row\">\n {% util.eachComponent(components, function(component) { %}\n {% if (displayValue(component)) { %}\n <div class=\"col-sm-{{component.key === 'component' ? '9' : '3'}} fw-bold font-weight-bold\">{{ t(component.label) }}</div>\n {% } %}\n {% }) %}\n </div>","row":"<div class=\"row\">\n {% util.eachComponent(components, function(component) { %}\n {% if (displayValue(component)) { %}\n <div class=\"col-sm-{{component.key === 'component' ? '8' : '2'}}\">\n {{ isVisibleInRow(component) ? getView(component, row[component.key]) : ''}}\n </div>\n {% } %}\n {% }) %}\n {% if (!instance.options.readOnly && !instance.disabled) { %}\n <div class=\"col-sm-3\">\n <div class=\"btn-group pull-right\">\n <button class=\"btn btn-default btn-light btn-sm editRow\"><i class=\"{{ iconClass('edit') }}\"></i></button>\n {% if (!instance.hasRemoveButtons || instance.hasRemoveButtons()) { %}\n <button class=\"btn btn-danger btn-sm removeRow\"><i class=\"{{ iconClass('trash') }}\"></i></button>\n {% } %}\n </div>\n </div>\n {% } %}\n </div>"},"addAnother":"Add eSignature","rowDrafts":false,"key":"signatures","type":"editgrid","displayAsTable":false,"reorder":false,"addAnotherPosition":"bottom","layoutFixed":false,"enableRowGroups":false,"initEmpty":false,"input":true,"components":[{"label":"eSignature Component","widget":"choicesjs","tooltip":"Select the form component that will be used as the signature.","tableView":true,"dataSrc":"custom","data":{"custom":"const compOptions = []\r\nutils.eachComponent(instance.options?.esignForm?.components || [], (comp, path) => {\r\n if (_.includes(['button', 'form', 'datasource'], comp.type)) {\r\n return;\r\n }\r\n const compClass = Formio.Components.components[comp.type];\r\n const compFullSchema = compClass ? compClass.schema(comp) : null;\r\n const nestedDataComp = Formio.Components.components.nesteddata;\r\n const excludeComp = !comp.input || !compFullSchema.persistent || compFullSchema.tree || (compClass && nestedDataComp && compClass.prototype instanceof nestedDataComp);\r\n if (!excludeComp || _.includes(['address'], comp.type)) {\r\n compOptions.push({\r\n label: comp.label + ' (' + path + ')',\r\n value: path,\r\n });\r\n }\r\n}, true);\r\nvalues = compOptions;"},"valueProperty":"value","validate":{"required":true},"key":"component","type":"select","input":true},{"label":"eSignature Data","widget":"choicesjs","tooltip":"Select the components those values must be confirmed by this eSignature. Changing the value of these components will invalidate the eSignature.","tableView":false,"multiple":true,"dataSrc":"custom","data":{"custom":"const compOptions = [];\r\nutils.eachComponent(instance.options?.esignForm?.components || [], (comp, path) => {\r\nif (comp.input) {\r\n compOptions.push({\r\n label: comp.label + ' (' + path + ')',\r\n value: path,\r\n });\r\n}\r\n}, true);\r\nvalues = compOptions;"},"valueProperty":"value","validate":{"required":true},"key":"signedData","customConditional":"show = !row.signAll;","type":"select","input":true},{"label":"Include all form data in eSignature","tooltip":"When checked, the eSignature will be responsible for all form data. If some value of the form components is changed, the eSignature will be invalid.","tableView":false,"defaultValue":false,"key":"signAll","type":"checkbox","input":true}]},{"label":"Submission properties to include in eSignature","placeholder":"e.g. metadata.timezone","tooltip":"Add a comma separated paths to the data inside the submission object that must be used for the eSignature verification. Submission data is verified by default.","applyMaskOn":"change","tableView":true,"key":"submissionProps","type":"textfield","input":true},{"label":"Do not disable signed data","tooltip":"When enabled, the form fields confirmed by eSignature will not be disabled in the UI.","tableView":false,"defaultValue":false,"key":"notDisableSignedData","type":"checkbox","input":true},{"title":"Templates","collapsible":true,"key":"templates","type":"panel","label":"Panel","input":false,"tableView":false,"components":[{"title":"Available variables","collapsible":true,"key":"availableVariables","type":"panel","label":"Panel","collapsed":true,"input":false,"tableView":false,"components":[{"label":"HTML","attrs":[{"attr":"","value":""}],"content":"<p>The following variables are available for templates:</p>\n<table class=\"table table-bordered table-condensed table-striped\">\n <tr><th>esign</th><td>The form.io eSignature object</td></tr>\n <tr><th>esignTooltip</th><td>The markup of the eSignature tooltip represented as a string (available only for the stamp template).</td></tr>\n <tr><th>esignInvalidMessage</th><td>The default message for invalid eSignature (available only for the stamp template).</td></tr>\n <tr><th>esignIconClass</th><td>The class of the eSignature default stamp icon (available only for the stamp template).</td></tr>\n <tr><th>pdfForm</th><td>Indicates whether the current form has a PDF display type.</td></tr>\n <tr><th>form</th><td>The complete form JSON object</td></tr>\n <tr><th>submission</th><td>The complete submission object.</td></tr>\n <tr><th>data</th><td>The complete submission data object.</td></tr>\n <tr><th>row</th><td>Contextual \"row\" data, used within DataGrid, EditGrid, and Container components</td></tr>\n <tr><th>component</th><td>The current component JSON</td></tr>\n <tr><th>instance</th><td>The current component instance.</td></tr>\n <tr><th>value</th><td>The current value of the component.</td></tr>\n <tr><th>moment</th><td>The moment.js library for date manipulation.</td></tr><tr>\n <th>_</th><td>An instance of <a href=\"https://lodash.com/docs/\" target=\"_blank\" rel=\"noopener noreferrer\">Lodash</a>.</td></tr>\n <tr><th>utils</th><td>An instance of the <a href=\"http://formio.github.io/formio.js/docs/identifiers.html#utils\" target=\"_blank\" rel=\"noopener noreferrer\">FormioUtils</a> object.</td></tr>\n <tr><th>util</th><td>An alias for \"utils\".</td></tr>\n</table>","refreshOnChange":false,"key":"html","type":"htmlelement","input":false,"tableView":false}]},{"label":"eSignature stamp template","placeholder":"/*** Lodash Template Code ***/","description":"Example:\n</br>\n<code>\n{% if (esign.valid === true) { %}\n</br>\n&lt;span class=\"formio-esign-stamp\"&gt;\n</br>\n&nbsp;&nbsp;&lt;i ref=\"esignTooltip\" style=\"cursor:pointer\" data-tooltip=\"{{esignTooltip}}\" class='{{esignIconClass}}' aria-hidden='true'&gt;&lt;/i&gt;\n</br>\n&nbsp;&nbsp;&lt;span class=\"formio-esign-stamp-description\"&gt;\n</br>\n&nbsp;&nbsp;&nbsp;&nbsp;Signed on {{new Date(esign.created).toLocaleString()}}\n</br>\n&nbsp;&nbsp;&lt;/span&gt;\n</br>\n&lt;/span&gt;\n</br>\n{% } %}\n</br>\n{% if (esign.valid !== true) { %}\n</br>\n&lt;span class=\"formio-esign-stamp formio-esign-stamp-invalid formio-esign-stamp-description\"&gt;\n</br>\n&nbsp;&nbsp;&lt;i ref=\"esignTooltip\" style=\"cursor:pointer\" data-tooltip=\"{{esignTooltip}}\" class='{{esignIconClass}}' aria-hidden='true'&gt;&lt;/i&gt; \n</br>\n&nbsp;&nbsp;Invalid eSignature\n</br>\n&lt;/span&gt;\n</br>\n{% } %}\n</code>\n</br>","tooltip":"Add your <a href='https://lodash.com/docs#template'>Lodash Template</a> that will be used to render eSignature stamp instead of form.io default stamp template.","applyMaskOn":"change","editor":"ace","autoExpand":false,"tableView":true,"key":"stampTemplate","type":"textarea","as":"html","input":true},{"label":"eSignature tooltip template","placeholder":"/*** Lodash Template Code ***/","description":"Example:\n</br>\n<code>\n&lt;div class=\"formio-esign-tooltip\"&gt;\n</br>\n&nbsp;&nbsp;&lt;span class=\"{{esign.valid !== true ? 'formio-esign-tooltip-header-invalid' : ''}} formio-esign-tooltip-header\"&gt;\n</br>\n&nbsp;&nbsp;&nbsp;&nbsp;&lt;span&gt;eSignature&lt;/span&gt;\n</br>\n&nbsp;&nbsp;&nbsp;&nbsp;&lt;span class=\"formio-esign-tooltip-status\" &gt;{{esign.valid !== true ? 'invalid' : 'verified'}}&lt;/span&gt;\n</br>\n&nbsp;&nbsp;&lt;/span&gt;\n</br>\n&nbsp;&nbsp;&lt;ul class=\"formio-esign-tooltip-info\"&gt;\n</br>\n&nbsp;&nbsp;&nbsp;&nbsp;&lt;li class=\"formio-esign-tooltip-info-item\"&gt;&lt;span class=\"formio-esign-tooltip-info-item-title\"&gt;ID:&lt;/span&gt;<&lt;span&gt;{{esign?._id || '-'}}&lt;/span&gt;&lt;/li&gt;\n</br>\n&nbsp;&nbsp;&nbsp;&nbsp;&lt;li class=\"formio-esign-tooltip-info-item\"&gt;&lt;span class=\"formio-esign-tooltip-info-item-title\"&gt;Path:&lt;/span&gt;&lt;span&gt;{{esign?.signature?.valuePath || '-'}}&lt;/span&gt;&lt;/li&gt;\n</br>\n&nbsp;&nbsp;&lt;/ul&gt;\n</br>\n&lt;/div&gt;\n</br>\n</code>\n</br>","tooltip":"Add your <a href='https://lodash.com/docs#template'>Lodash Template</a> for eSignature stamp tooltip. This template overrides the default eSignature tooltip.","applyMaskOn":"change","editor":"ace","autoExpand":false,"tableView":true,"key":"tooltipTemplate","type":"textarea","as":"html","input":true}],"collapsed":true}]}