@formio/esignature 1.0.3 → 1.1.1

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(_0x2d794a,_0x19da92){'object'==typeof exports&&'object'==typeof module?module['exports']=_0x19da92():'function'==typeof define&&define['amd']?define([],_0x19da92):'object'==typeof exports?exports['esignature']=_0x19da92():_0x2d794a['esignature']=_0x19da92();}(self,function(){return(function(){var _0x3cc44a={0x0:function(_0x51b426,_0xa03404){Object['defineProperty'](_0xa03404,'__esModule',{'value':!0x0}),_0xa03404['default']=function(_0x1f8a08){var _0x2c6bec;return''+((null==(_0x2c6bec=_0x1f8a08['children'])?'':_0x2c6bec)+'\x0a<div\x20ref=\x22esignContainer\x22>')+(null==(_0x2c6bec=_0x1f8a08['eSignStamp'])?'':_0x2c6bec)+'</div>\x0a';};},0x14e:function(_0x3f9a40,_0x14cee6,_0x1e0aa9){'use strict';Object['defineProperty'](_0x14cee6,'__esModule',{'value':!0x0});const _0x55facf=_0x1e0aa9(0x170),_0x21a25b=_0x55facf['Displays']['getDisplay']('webform'),_0x21324d=_0x55facf['Utils']['_'];Object['defineProperty'](_0x21a25b['prototype'],'disableSignedData',{'enumerable':!0x0,'configurable':!0x0,'get'(){var _0x2c3c45,_0x140673;return!_0x21324d['get'](this,'form.esign.notDisableSignedData',!0x1)&&_0x21324d['some'](null===(_0x2c3c45=this['_submission'])||void 0x0===_0x2c3c45?void 0x0:_0x2c3c45['eSignatures'],_0x39cc9d=>!0x0===_0x39cc9d['valid'])&&!!(null===(_0x140673=this['esign']['signatures'])||void 0x0===_0x140673?void 0x0:_0x140673['length']);}}),Object['defineProperty'](_0x21a25b['prototype'],'esign',{'enumerable':!0x0,'configurable':!0x0,'get'(){var _0x42aa96;return(null===(_0x42aa96=this['form'])||void 0x0===_0x42aa96?void 0x0:_0x42aa96['esign'])||{};}}),Object['defineProperty'](_0x21a25b['prototype'],'signedComponentsInfo',{'enumerable':!0x0,'configurable':!0x0,'get'(){const _0x472162=_0x21324d['filter'](_0x21324d['get'](this['submission'],'eSignatures',[]),_0x26e1c3=>!0x0===_0x26e1c3['valid']),_0x3eed18=this['esign']['signatures']||[],_0x516b34={'all':!0x1,'components':[]};return _0x21324d['isEmpty'](_0x472162||_0x21324d['isEmpty'](_0x3eed18))||(_0x21324d['each'](_0x472162,_0x2794bc=>{if(_0x516b34['all'])return;const {compPath:_0x2aa01c}=_0x2794bc['signature']||{},_0x58cd2d=_0x21324d['find'](_0x3eed18,_0x3a3e81=>_0x3a3e81['component']===_0x2aa01c);_0x58cd2d['signAll']&&(_0x516b34['all']=!0x0,_0x516b34['components']=[]),_0x516b34['components']=_0x21324d['concat'](_0x516b34['components'],_0x58cd2d['signedData']||[]);}),_0x516b34['components']['length']&&(_0x516b34['components']=_0x21324d['uniq'](_0x516b34['components']))),_0x516b34;}});const _0x406531=_0x21a25b['prototype']['setSubmission'];_0x21a25b['prototype']['setSubmission']=function(_0x12a8e4,_0x576d27){return this['setSignedSubmission'](_0x12a8e4),_0x406531['call'](this,_0x12a8e4,_0x576d27);},_0x21a25b['prototype']['setSignedSubmission']=function(_0x5be682){var _0x5e96ea;if((null===(_0x5e96ea=this['esign']['signatures'])||void 0x0===_0x5e96ea?void 0x0:_0x5e96ea['length'])&&_0x21324d['some'](_0x21324d['get'](_0x5be682,'eSignatures',[]),_0x1696e5=>!0x0===_0x1696e5['valid'])){const _0x50d59c=_0x21324d['omit'](_0x5be682,['eSignatures']);this['signedSubmission']=_0x55facf['Utils']['fastCloneDeep'](_0x50d59c);}else this['signedSubmission']=null;};const _0x2f79b2=_0x21a25b['prototype']['onSetSubmission'];_0x21a25b['prototype']['onSetSubmission']=function(_0x2caed0,_0x43f2c1={}){_0x2f79b2['call'](this,_0x2caed0,_0x43f2c1),this['setESignatures'](_0x2caed0,_0x43f2c1);},_0x21a25b['prototype']['setESignatures']=function(_0xe758de={},_0x39b9e6={}){const _0x6eeb74=this['esign']['signatures']||[];if(!_0x6eeb74['length'])return;const _0x462826=_0x21324d['groupBy'](_0x21324d['get'](_0xe758de,'eSignatures',[]),'signature.valuePath');_0x21324d['each'](_0x6eeb74,_0x3ccf4d=>{if(_0x3ccf4d['component']){let _0x50cbc6=this['getComponent'](_0x3ccf4d['component'])||[];_0x50cbc6=_0x21324d['isArray'](_0x50cbc6)?_0x50cbc6:[_0x50cbc6],_0x21324d['each'](_0x50cbc6,_0x34aba7=>{_0x34aba7['setESignature'](_0x21324d['get'](_0x462826[_0x34aba7['jsonPathInLocalRoot']],'[0]',null),_0x39b9e6);});}}),_0x39b9e6['fromSubmission']&&this['options']['cleanESignOnSetSubmission']&&_0x21324d['set'](this['_submission'],'eSignatures',[]),this['disableSignedData']&&this['redraw']();};const _0x5b2d54=_0x21a25b['prototype']['checkData'];_0x21a25b['prototype']['checkData']=function(_0x47e832,_0x26af26){const _0x163ddd=_0x5b2d54['call'](this,_0x47e832,_0x26af26);return(null==_0x26af26?void 0x0:_0x26af26['fromSubmission'])||this['validateESignatureCustomProps'](),_0x163ddd;},_0x21a25b['prototype']['validateESignatureCustomProps']=function(){const {submissionProps:_0x4840a9=''}=this['esign'];if(!_0x4840a9||!this['shouldValidateESignatures']())return;const _0x396930={},_0x1686c3={},_0x5c02a8=_0x21324d['chain'](_0x4840a9)['split'](',')['map'](_0x46c223=>_0x21324d['trim'](_0x46c223))['value']();_0x21324d['each'](_0x5c02a8||[],_0x2f3742=>{_0x21324d['set'](_0x396930,_0x2f3742,_0x21324d['get'](this['signedSubmission'],_0x2f3742)),_0x21324d['set'](_0x1686c3,_0x2f3742,_0x21324d['get'](this['submission'],_0x2f3742));}),_0x21324d['isEqual'](_0x396930,_0x1686c3)||this['emitSignedValueChange'](!0x0);},_0x21a25b['prototype']['shouldValidateESignatures']=function(){var _0x2fbec0,_0x77d1fa,_0x36838e;return!(_0x21324d['isEmpty'](_0x21324d['filter']((null===(_0x2fbec0=this['submission'])||void 0x0===_0x2fbec0?void 0x0:_0x2fbec0['eSignatures'])||[],_0x30ead6=>!0x0===(null==_0x30ead6?void 0x0:_0x30ead6['valid'])))||_0x21324d['isEmpty'](this['esign']['signatures'])||!this['signedSubmission']||(null===(_0x77d1fa=this['submission'])||void 0x0===_0x77d1fa?void 0x0:_0x77d1fa['_id'])!==(null===(_0x36838e=this['signedSubmission'])||void 0x0===_0x36838e?void 0x0:_0x36838e['_id']));},_0x14cee6['default']=_0x21a25b;},0x15e:function(_0x3a2553,_0x52b392,_0x5c8e0d){'use strict';Object['defineProperty'](_0x52b392,'__esModule',{'value':!0x0});const _0x2a3936=_0x5c8e0d(0x295),_0x46d4fc=_0x5c8e0d(0x2bd),_0x4ddce0=_0x5c8e0d(0x2c1),_0x381f70=_0x5c8e0d(0x2bf),_0x57659e=_0x5c8e0d(0x2bb);_0x52b392['default']={'component':_0x2a3936['default'],'nested':_0x46d4fc['default'],'nestedarray':_0x4ddce0['default'],'form':_0x381f70['default'],'componentmodal':_0x57659e['default']};},0x170:function(_0x328557){'use strict';_0x328557['exports']=window['Formio'];},0x193:function(_0x11cfbc,_0x2af6c1,_0x71b3e1){'use strict';Object['defineProperty'](_0x2af6c1,'__esModule',{'value':!0x0});const _0x3619e9=_0x71b3e1(0x1ab);_0x2af6c1['default']={'form':_0x3619e9['default']};},0x197:function(_0x390929,_0x55fe50,_0x438426){'use strict';Object['defineProperty'](_0x55fe50,'__esModule',{'value':!0x0});const _0x253deb=_0x438426(0x27f);_0x55fe50['default']={'form':_0x253deb['default']};},0x1ab:function(_0x155380,_0x45d051){Object['defineProperty'](_0x45d051,'__esModule',{'value':!0x0}),_0x45d051['default']=function(_0x4aef0e){var _0x2badac,_0x59a41f='';return Array['prototype']['join'],_0x59a41f+='<div\x20class=\x22formio-esign-tooltip\x22>\x0a\x20\x20\x20\x20<span\x20class=\x22'+(null==(_0x2badac=!0x0!==_0x4aef0e['esign']['valid']?'formio-esign-tooltip-header-invalid':'')?'':_0x2badac)+'\x20formio-esign-tooltip-header\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span\x20>'+(null==(_0x2badac=_0x4aef0e['t']('eSignature'))?'':_0x2badac)+'</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span\x20class=\x22formio-esign-tooltip-status\x22\x20>'+(null==(_0x2badac=_0x4aef0e['t'](!0x0!==_0x4aef0e['esign']['valid']?'invalid':'verified'))?'':_0x2badac)+'</span>\x0a\x20\x20\x20\x20</span>\x0a\x20\x20\x20\x20',_0x4aef0e['pdfForm']&&!0x0!==_0x4aef0e['esign']['valid']&&(_0x59a41f+='\x0a\x20\x20\x20\x20<div\x20class=\x22formio-esign-tooltip-invalid-msg\x22>'+(null==(_0x2badac=_0x4aef0e['esignInvalidMessage'])?'':_0x2badac)+'</div>\x0a\x20\x20\x20\x20'),_0x59a41f+='\x0a\x20\x20\x20\x20<ul\x20class=\x22formio-esign-tooltip-info\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20',_0x4aef0e['pdfForm']&&(_0x59a41f+='\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==(_0x2badac=_0x4aef0e['t']('Signed\x20by'))?'':_0x2badac)+':</span><span>'+(null==(_0x2badac=_0x4aef0e['esign']?.['signature']?.['user']?.['data']||_0x4aef0e['esign']?.['signature']?.['user']?.['_id'])?'':_0x2badac)+'</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==(_0x2badac=_0x4aef0e['t']('Signed\x20on'))?'':_0x2badac)+':</span><span>'+(null==(_0x2badac=new Date(_0x4aef0e['esign']?.['created'])['toLocaleString']())?'':_0x2badac)+'</span></li>\x0a\x20\x20\x20\x20\x20\x20\x20\x20'),_0x59a41f+'\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==(_0x2badac=_0x4aef0e['t']('ID'))?'':_0x2badac)+':</span><span>'+(null==(_0x2badac=_0x4aef0e['esign']?.['_id']||'-')?'':_0x2badac)+'</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==(_0x2badac=_0x4aef0e['t']('Path'))?'':_0x2badac)+':</span><span>'+(null==(_0x2badac=_0x4aef0e['esign']?.['signature']?.['valuePath']||'-')?'':_0x2badac)+'</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==(_0x2badac=_0x4aef0e['t']('Submission\x20Rev.'))?'':_0x2badac)+':</span><span>'+(null==(_0x2badac=_0x4aef0e['esign']?.['signature']?.['submission']?.['_id']||'-')?'':_0x2badac)+'</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==(_0x2badac=_0x4aef0e['t']('Form\x20Rev.'))?'':_0x2badac)+':</span><span>'+(null==(_0x2badac=_0x4aef0e['esign']?.['signature']?.['submission']?.['_fvid'])?'':_0x2badac)+'</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==(_0x2badac=_0x4aef0e['t']('User\x20ID'))?'':_0x2badac)+':</span><span>'+(null==(_0x2badac=_0x4aef0e['esign']?.['signature']?.['user']?.['_id']||'-')?'':_0x2badac)+'</span></li>\x0a\x20\x20\x20\x20</ul>\x0a<div>\x0a';};},0x203:function(_0x4ba9e,_0x48f5e5){'use strict';Object['defineProperty'](_0x48f5e5,'__esModule',{'value':!0x0}),_0x48f5e5['default']='esignature';},0x268:function(_0x2f4567,_0xbd667f,_0x221cc5){'use strict';Object['defineProperty'](_0xbd667f,'__esModule',{'value':!0x0});const _0x5af029=_0x221cc5(0x356),_0x300e4e=_0x221cc5(0x3e0),_0x3f1e86=_0x221cc5(0x36c);_0xbd667f['default']={'esignature':_0x5af029['default'],'esignStamp':_0x300e4e['default'],'esignTooltip':_0x3f1e86['default']};},0x26e:function(_0xb236e4,_0xd1bed4){Object['defineProperty'](_0xd1bed4,'__esModule',{'value':!0x0}),_0xd1bed4['default']=function(_0xa10770){var _0x53677c,_0x72febc='';return Array['prototype']['join'],_0x72febc+='<div\x20class=\x22formio-esign-tooltip\x22>\x0a\x20\x20\x20\x20<span\x20class=\x22'+(null==(_0x53677c=!0x0!==_0xa10770['esign']['valid']?'formio-esign-tooltip-header-invalid':'')?'':_0x53677c)+'\x20formio-esign-tooltip-header\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span\x20>'+(null==(_0x53677c=_0xa10770['t']('eSignature'))?'':_0x53677c)+'</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span\x20class=\x22formio-esign-tooltip-status\x22\x20>'+(null==(_0x53677c=_0xa10770['t'](!0x0!==_0xa10770['esign']['valid']?'invalid':'verified'))?'':_0x53677c)+'</span>\x0a\x20\x20\x20\x20</span>\x0a\x20\x20\x20\x20',_0xa10770['pdfForm']&&!0x0!==_0xa10770['esign']['valid']&&(_0x72febc+='\x0a\x20\x20\x20\x20<div\x20class=\x22formio-esign-tooltip-invalid-msg\x22>'+(null==(_0x53677c=_0xa10770['esignInvalidMessage'])?'':_0x53677c)+'</div>\x0a\x20\x20\x20\x20'),_0x72febc+='\x0a\x20\x20\x20\x20<ul\x20class=\x22formio-esign-tooltip-info\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20',_0xa10770['pdfForm']&&(_0x72febc+='\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==(_0x53677c=_0xa10770['t']('Signed\x20by'))?'':_0x53677c)+':</span><span>'+(null==(_0x53677c=_0xa10770['esign']?.['signature']?.['user']?.['data']||_0xa10770['esign']?.['signature']?.['user']?.['_id'])?'':_0x53677c)+'</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==(_0x53677c=_0xa10770['t']('Signed\x20on'))?'':_0x53677c)+':</span><span>'+(null==(_0x53677c=new Date(_0xa10770['esign']?.['created'])['toLocaleString']())?'':_0x53677c)+'</span></li>\x0a\x20\x20\x20\x20\x20\x20\x20\x20'),_0x72febc+'\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==(_0x53677c=_0xa10770['t']('ID'))?'':_0x53677c)+':</span><span>'+(null==(_0x53677c=_0xa10770['esign']?.['_id']||'-')?'':_0x53677c)+'</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==(_0x53677c=_0xa10770['t']('Path'))?'':_0x53677c)+':</span><span>'+(null==(_0x53677c=_0xa10770['esign']?.['signature']?.['valuePath']||'-')?'':_0x53677c)+'</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==(_0x53677c=_0xa10770['t']('Submission\x20Rev.'))?'':_0x53677c)+':</span><span>'+(null==(_0x53677c=_0xa10770['esign']?.['signature']?.['submission']?.['_id']||'-')?'':_0x53677c)+'</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==(_0x53677c=_0xa10770['t']('Form\x20Rev.'))?'':_0x53677c)+':</span><span>'+(null==(_0x53677c=_0xa10770['esign']?.['signature']?.['submission']?.['_fvid'])?'':_0x53677c)+'</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==(_0x53677c=_0xa10770['t']('User\x20ID'))?'':_0x53677c)+':</span><span>'+(null==(_0x53677c=_0xa10770['esign']?.['signature']?.['user']?.['_id']||'-')?'':_0x53677c)+'</span></li>\x0a\x20\x20\x20\x20</ul>\x0a<div>\x0a';};},0x27f:function(_0x34979f,_0x1bf69d){Object['defineProperty'](_0x1bf69d,'__esModule',{'value':!0x0}),_0x1bf69d['default']=function(_0x134279){var _0x2e29f6,_0x4a0e69='';return Array['prototype']['join'],_0x134279['esign']&&(_0x4a0e69+='\x0a<span\x20class=\x22formio-esign-stamp\x20\x20'+(null==(_0x2e29f6=!0x0===_0x134279['esign']['valid']?'':'formio-esign-stamp-invalid')?'':_0x2e29f6)+'\x22>\x0a\x20\x20\x20\x20<i\x20ref=\x22esignTooltip\x22\x20style=\x22cursor:pointer\x22\x20data-tooltip=\x22'+(null==(_0x2e29f6=_0x134279['esignTooltip'])?'':_0x2e29f6)+'\x22\x20class=\x27'+(null==(_0x2e29f6=_0x134279['iconClass'](!0x0!==_0x134279['esign']['valid']?'remove-sign':'ok-sign',!0x1))?'':_0x2e29f6)+'\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!==_0x134279['esign']['valid']||_0x134279['pdfForm']||(_0x4a0e69+='\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==(_0x2e29f6=_0x134279['esign']?.['signature']?.['user']?.['data']||_0x134279['esign']?.['signature']?.['user']?.['_id'])?'':_0x2e29f6)+'\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20',_0x134279['esign']?.['created']&&(_0x4a0e69+='\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20on\x20'+(null==(_0x2e29f6=new Date(_0x134279['esign']['created'])['toLocaleString']())?'':_0x2e29f6)+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'),_0x4a0e69+='\x0a\x20\x20\x20\x20\x20\x20\x20\x20</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20'),_0x4a0e69+='\x0a\x20\x20\x20\x20\x20\x20\x20\x20',!0x0===_0x134279['esign']['valid']&&_0x134279['pdfForm']&&(_0x4a0e69+='\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(null==(_0x2e29f6=_0x134279['t']('Signed'))?'':_0x2e29f6)+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20'),_0x4a0e69+='\x0a\x20\x20\x20\x20\x20\x20\x20\x20',!0x0!==_0x134279['esign']['valid']&&(_0x4a0e69+='\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(null==(_0x2e29f6=_0x134279['esignInvalidMessage'])?'':_0x2e29f6)+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20'),_0x4a0e69+='\x0a\x20\x20\x20\x20</span>\x0a</span>\x0a'),_0x4a0e69+'\x0a';};},0x295:function(_0x5854d2,_0x5a3302,_0x53f399){'use strict';Object['defineProperty'](_0x5a3302,'__esModule',{'value':!0x0});const _0x5689e9=_0x53f399(0x170),_0x3a4500=_0x5689e9['Components']['components']['component'],_0x395e95=_0x5689e9['Utils']['_'],_0x402bfd=_0x3a4500['prototype']['init'];_0x3a4500['prototype']['init']=function(){var _0x14685b,_0x583558,_0x1ad584;this['builderMode']||(null===(_0x14685b=this['options'])||void 0x0===_0x14685b?void 0x0:_0x14685b['building'])||(null===(_0x583558=this['options'])||void 0x0===_0x583558?void 0x0:_0x583558['inFormBuilder'])||!this['options']['root']||(this['_parentPath']=(null===(_0x1ad584=this['options'])||void 0x0===_0x1ad584?void 0x0:_0x1ad584['parentPath'])||'',this['esignConfig']=this['getEsignConfig']()),_0x402bfd['call'](this);},_0x3a4500['prototype']['getEsignConfig']=function(){const _0x3a7c92=this['esign']['signatures']||[];return _0x395e95['find'](_0x3a7c92,_0x503110=>_0x503110['component']===this['jsonPathInLocalRoot']);},Object['defineProperty'](_0x3a4500['prototype'],'esign',{'enumerable':!0x0,'configurable':!0x0,'get'(){var _0x5547d4;return(null===(_0x5547d4=this['root'])||void 0x0===_0x5547d4?void 0x0:_0x5547d4['esign'])||{};}}),Object['defineProperty'](_0x3a4500['prototype'],'jsonPathInLocalRoot',{'enumerable':!0x0,'configurable':!0x0,'get'(){return _0x395e95['replace'](this['pathInLocalRoot']||'',new RegExp('\x5c[[0-9]*\x5c]','g'),'');}}),Object['defineProperty'](_0x3a4500['prototype'],'pathInLocalRoot',{'enumerable':!0x0,'configurable':!0x0,'get'(){return _0x395e95['replace'](this['path'],this['_parentPath'],'');}}),_0x3a4500['prototype']['attachESignTooltip']=function(_0x3c94e4){(_0x3c94e4=_0x3c94e4||this['element'])&&(this['destroyESignTooltip'](),this['loadRefs'](_0x3c94e4,{'esignTooltip':'multiple'}),this['refs']['esignTooltip']&&(this['esignTooltip']=_0x395e95['map'](this['refs']['esignTooltip']||[],_0x1fb0a8=>this['createTooltip'](_0x1fb0a8,{'theme':'formioEsign'}))));};const _0x56a052=_0x3a4500['prototype']['attach'];_0x3a4500['prototype']['attach']=function(_0x5f3ed5){const _0x55479e=_0x56a052['call'](this,_0x5f3ed5);return this['attachESignTooltip'](_0x5f3ed5),this['attachESignatureValidation'](),_0x55479e;},_0x3a4500['prototype']['setESignature']=function(_0x3dedb3,_0x49ad03){var _0x30a411;if(!this['esignConfig'])return void(this['eSignature']&&(this['eSignature']=null));if(_0x3dedb3&&_0x49ad03['fromSubmission']&&this['options']['cleanESignOnSetSubmission'])return this['eSignature']=null,this['resetValue'](),void this['redraw']();const _0x23180f=!_0x395e95['isEqual'](this['eSignature'],_0x3dedb3);this['eSignature']=_0x3dedb3,this['attachESignatureValidation'](),_0x23180f&&(this['eSignature']&&!0x0!==(null===(_0x30a411=this['eSignature'])||void 0x0===_0x30a411?void 0x0:_0x30a411['valid'])&&this['resetValue'](),this['redraw']());},_0x3a4500['prototype']['attachESignatureValidation']=function(){var _0x49d659;!_0x395e95['isEmpty'](this['esignConfig'])&&(null===(_0x49d659=this['eSignature'])||void 0x0===_0x49d659?void 0x0:_0x49d659['valid'])&&this['on']('signedValueChanged',_0x9ecc8=>{var _0x418248;if(!(null===(_0x418248=this['eSignature'])||void 0x0===_0x418248?void 0x0:_0x418248['valid'])||!_0x9ecc8)return;const {valuePath:_0x3db475,compPath:_0x12f9ba,parent:_0x95fd80,customProps:_0x3dffe8}=_0x9ecc8;_0x3dffe8&&this['invalidateESignature'](),_0x3db475===this['pathInLocalRoot']&&this['invalidateESignature'](!0x0),this['isESignatureDataPath'](_0x12f9ba,_0x95fd80)&&this['invalidateESignature']();});},_0x3a4500['prototype']['invalidateESignature']=function(_0x49523f){this['eSignature']['valid']='The\x20data\x20has\x20changed',_0x49523f||this['resetValue'](),this['redraw']();},_0x3a4500['prototype']['isESignatureDataPath']=function(_0x239e3c,_0x528eec){if(!_0x239e3c)return!0x1;const {signAll:_0x389600,signedData:_0x3252d7=[]}=this['esignConfig']||{};return _0x389600||_0x395e95['some'](_0x3252d7,_0x302dd2=>_0x528eec&&_0x395e95['startsWith'](_0x302dd2,_0x239e3c+'.')||_0x302dd2===_0x239e3c||_0x395e95['startsWith'](_0x239e3c,_0x302dd2+'.'));},_0x3a4500['prototype']['formatEsignTooltip']=function(_0x631a23=''){const _0x5d4575=_0x631a23['replace'](/(?:\r\n|\r|\n)/g,'');return this['getFormattedAttribute'](_0x5d4575);},_0x3a4500['prototype']['renderESignature']=function(_0x196c45){return this['eSignature']&&this['getEsignConfig']?this['renderTemplate']('esignature',{'children':_0x196c45,'eSignStamp':this['renderEsignStamp']()}):_0x196c45;};const _0x496fb5=_0x3a4500['prototype']['render'];_0x3a4500['prototype']['render']=function(_0x3b87cb='Unknown\x20component:\x20'+this['component']['type'],_0x50db67=!0x1){return _0x3b87cb=this['renderESignature'](_0x3b87cb),_0x496fb5['call'](this,_0x3b87cb,_0x50db67);},_0x3a4500['prototype']['renderEsignTooltip']=function(){const {tooltipTemplate:_0x100962}=this['esign'],_0x1ae31d={'pdfForm':'pdf'===this['options']['display'],'esign':this['eSignature'],'esignInvalidMessage':this['getInvalidESigntureMessage'](!0x0)},_0x4e736e=_0x100962?this['renderString'](_0x100962,_0x1ae31d):this['renderTemplate']('esignTooltip',_0x1ae31d);return this['formatEsignTooltip'](_0x4e736e);};const _0x4389d4=_0x3a4500['prototype']['renderModalPreview'];_0x3a4500['prototype']['renderModalPreview']=function(_0x3ecefa){return this['renderESignature'](_0x4389d4['call'](this,_0x3ecefa));},_0x3a4500['prototype']['getInvalidESigntureMessage']=function(_0x32ffb6){if(!0x0===this['eSignature']['valid'])return'';if(_0x32ffb6)return'pdf'===this['options']['display']?this['t']('{{reason}}.\x20Please\x20sign\x20again.',{'reason':this['eSignature']['valid']}):'';const _0x124362=this['t']('Invalid\x20eSignature.');return'pdf'===this['options']['display']?_0x124362:_0x124362+'\x20'+this['t']('{{reason}}.\x20Please\x20sign\x20again.',{'reason':this['eSignature']['valid']});},_0x3a4500['prototype']['renderEsignStamp']=function(){const _0x2d1463=this['renderEsignTooltip'](),_0x2ead72={'pdfForm':'pdf'===this['options']['display'],'esign':this['eSignature'],'esignTooltip':_0x2d1463,'esignIconClass':this['iconClass'](!0x0!==this['eSignature']['valid']?'times-circle':'check-circle',!0x1),'esignInvalidMessage':this['getInvalidESigntureMessage']()},{stampTemplate:_0x377323}=this['esign'];return _0x377323?this['renderString'](_0x377323,_0x2ead72):this['renderTemplate']('esignStamp',_0x2ead72);},_0x3a4500['prototype']['destroyESignTooltip']=function(){_0x395e95['each'](this['esignTooltip']||[],_0x3277f6=>{var _0x312edd;_0x3277f6&&!(null===(_0x312edd=_0x3277f6['state'])||void 0x0===_0x312edd?void 0x0:_0x312edd['isDestroyed'])&&_0x3277f6['destroy']&&_0x3277f6['destroy']();});};const _0x290b4d=_0x3a4500['prototype']['removeEventListeners'];_0x3a4500['prototype']['removeEventListeners']=function(){_0x290b4d['call'](this),this['destroyESignTooltip']();};const _0x1ffaa4=Object['getOwnPropertyDescriptor'](_0x3a4500['prototype'],'disabled');Object['defineProperty'](_0x3a4500['prototype'],'disabled',{'enumerable':!0x0,'configurable':!0x0,'get'(){var _0x34d129;return _0x1ffaa4['get']['call'](this)||(null===(_0x34d129=this['parent'])||void 0x0===_0x34d129?void 0x0:_0x34d129['disabled'])||this['shouldDisableSignedData']();}}),_0x3a4500['prototype']['shouldDisableSignedData']=function(){return _0x395e95['get'](this,'root.disableSignedData',!0x1)&&this['isValueSigned']();},_0x3a4500['prototype']['isValueSigned']=function(){var _0x34aaca,_0x14be4f;if(!0x0===(null===(_0x34aaca=this['eSignature'])||void 0x0===_0x34aaca?void 0x0:_0x34aaca['valid']))return!0x0;const _0x2858f9=(null===(_0x14be4f=this['root'])||void 0x0===_0x14be4f?void 0x0:_0x14be4f['signedComponentsInfo'])||{};if(null==_0x2858f9?void 0x0:_0x2858f9['all'])return!0x0;const _0xbb12d6=this['jsonPathInLocalRoot'];return _0x395e95['some']((null==_0x2858f9?void 0x0:_0x2858f9['components'])||[],_0x1b473e=>_0xbb12d6===_0x1b473e||_0x395e95['startsWith'](_0xbb12d6,_0x1b473e+'.'));};const _0x4378ac=_0x3a4500['prototype']['checkData'];_0x3a4500['prototype']['checkData']=function(_0x2750d7,_0x17a414,_0x37227e){const _0xa63b62=_0x4378ac['call'](this,_0x2750d7,_0x17a414,_0x37227e);return(null==_0x17a414?void 0x0:_0x17a414['fromSubmission'])||this['validateSignedValue'](),_0xa63b62;},_0x3a4500['prototype']['checkSignedDataChange']=function(_0x27e8d6={}){return this['hasSignedValueChanged'](_0x27e8d6);},_0x3a4500['prototype']['validateSignedValue']=function(){var _0x1ba133;!this['options']['inFormBuilder']&&!this['builderMode']&&!this['options']['building']&&this['options']['root']&&(null===(_0x1ba133=this['root'])||void 0x0===_0x1ba133?void 0x0:_0x1ba133['shouldValidateESignatures']())&&this['hasSignedValueChanged']()&&this['emitSignedValueChange']();},_0x3a4500['prototype']['emitSignedValueChange']=function(_0x3782a7){this['emit']('signedValueChanged',{'valuePath':this['pathInLocalRoot'],'compPath':this['jsonPathInLocalRoot'],'parent':this['hasSignedChildren'](),'customProps':_0x3782a7});},_0x3a4500['prototype']['getValuePathInSignedData']=function(){if(this['row']){let _0x4a4a28,_0x21fb55=this;for(;_0x21fb55&&_0x21fb55['row']&&!_0x4a4a28;)_0x21fb55=_0x21fb55['parent'],'tagpad'===_0x21fb55['type']&&(_0x4a4a28=_0x21fb55);if(_0x4a4a28){const _0x44f25e=_0x395e95['split'](this['pathInLocalRoot'],new RegExp('^'+_0x4a4a28['pathInLocalRoot']+'\x5c[[0-9]*\x5c]','g'))[0x1];return _0x395e95['split'](this['pathInLocalRoot'],_0x44f25e)[0x0]+'.data'+_0x44f25e;}}return this['pathInLocalRoot'];},_0x3a4500['prototype']['compareSignedValue']=function(_0xa3f307){return!this['isEqual'](_0x395e95['isNil'](_0xa3f307)?this['emptyValue']:_0xa3f307,_0x395e95['isNil'](this['dataValue'])?this['emptyValue']:this['dataValue']);},_0x3a4500['prototype']['hasSignedValueChanged']=function(_0x2661a8={}){var _0x2fbcd3,_0x17e797;const {checkAll:_0x1ab9d9,signedData:_0x3f521d}=_0x2661a8,_0x1e6fa2=_0x1ab9d9||this['isValueSigned']();if(!this['component']['input']||!0x0!==this['component']['persistent']||!_0x1e6fa2)return!0x1;const _0x1e65b3=_0x3f521d||(null===(_0x17e797=null===(_0x2fbcd3=this['root'])||void 0x0===_0x2fbcd3?void 0x0:_0x2fbcd3['signedSubmission'])||void 0x0===_0x17e797?void 0x0:_0x17e797['data']);if(!_0x1e65b3)return!0x1;const _0x203361=_0x395e95['get'](_0x1e65b3,this['getValuePathInSignedData']());return this['compareSignedValue'](_0x203361);},_0x3a4500['prototype']['hasSignedChildren']=_0x30d334=>!0x1,_0x5a3302['default']=_0x3a4500;},0x2bb:function(_0x38deee,_0xa551a2,_0x480935){'use strict';Object['defineProperty'](_0xa551a2,'__esModule',{'value':!0x0});const _0x5684d0=_0x480935(0x170)['Components']['components']['componentmodal'],_0x3e4af0=_0x5684d0['prototype']['setOpenEventListener'];_0x5684d0['prototype']['setOpenEventListener']=function(){_0x3e4af0['call'](this),this['component']['attachESignTooltip']();},_0xa551a2['default']=_0x5684d0;},0x2bd:function(_0x567a22,_0xbb65f9,_0x9c3302){'use strict';Object['defineProperty'](_0xbb65f9,'__esModule',{'value':!0x0});const _0x293041=_0x9c3302(0x170),_0x965b8d=_0x293041['Components']['components']['nested'],_0x480c8e=_0x293041['Utils']['_'];_0x965b8d['prototype']['hasSignedValueChanged']=()=>!0x1,_0x965b8d['prototype']['checkSignedDataChange']=function(_0x7c6355={}){const {checkAll:_0x5598f2}=_0x7c6355;return!(!_0x5598f2&&!this['hasSignedChildren']())&&_0x480c8e['some'](this['getComponents']()||[],_0x3ec486=>_0x3ec486['checkSignedDataChange'](_0x7c6355));},_0x965b8d['prototype']['hasSignedChildren']=function(){var _0x4f448c;const _0x2db611=(null===(_0x4f448c=this['root'])||void 0x0===_0x4f448c?void 0x0:_0x4f448c['signedComponentsInfo'])||{};if(null==_0x2db611?void 0x0:_0x2db611['all'])return!0x0;const _0xd20cb6=this['jsonPathInLocalRoot'];return _0x480c8e['some']((null==_0x2db611?void 0x0:_0x2db611['components'])||[],_0xef5255=>_0xd20cb6===_0xef5255||_0x480c8e['startsWith'](_0xd20cb6,_0xef5255+'.'||_0x480c8e['startsWith'](_0xef5255,_0xd20cb6+'.')));},_0xbb65f9['default']=_0x965b8d;},0x2bf:function(_0x12fb54,_0x5c4bdc,_0x9958a5){'use strict';Object['defineProperty'](_0x5c4bdc,'__esModule',{'value':!0x0});const _0x4c2648=_0x9958a5(0x170),_0x4d2642=_0x4c2648['Components']['components']['form'],_0x39569b=(_0x4c2648['Utils']['_'],_0x4d2642['prototype']['onSetSubFormValue']);_0x4d2642['prototype']['onSetSubFormValue']=function(_0x39d9d1,_0x3a3e24){const _0x26dc56=(null==_0x3a3e24?void 0x0:_0x3a3e24['fromSubmission'])&&this['subForm'];_0x26dc56&&this['subForm']['setSignedSubmission'](_0x39d9d1),_0x39569b['call'](this,_0x39d9d1,_0x3a3e24),_0x26dc56&&this['subForm']['setESignatures'](_0x39d9d1);};const _0x145fa4=_0x4d2642['prototype']['getSubOptions'];_0x4d2642['prototype']['getSubOptions']=function(_0x355765={}){return _0x355765['parentPath']=this['path']+'.data.',_0x145fa4['call'](this,_0x355765);},_0x4d2642['prototype']['getValuePathInSignedData']=function(){return this['pathInLocalRoot']+'.data';},_0x4d2642['prototype']['compareSignedValue']=function(_0x193523){return!!this['subForm']&&this['subForm']['checkSignedDataChange']({'checkAll':!0x0,'signedData':_0x193523});};const _0x16d3ea=_0x4d2642['prototype']['isInternalEvent'];_0x4d2642['prototype']['isInternalEvent']=function(_0x23e51e){return _0x16d3ea['call'](this,_0x23e51e)||'signedValueChanged'===_0x23e51e;},_0x5c4bdc['default']=_0x4d2642;},0x2c1:function(_0x17fc21,_0x104f82,_0x3b3fb3){'use strict';Object['defineProperty'](_0x104f82,'__esModule',{'value':!0x0});const _0x6d6bbb=_0x3b3fb3(0x170),_0x11cc51=_0x6d6bbb['Components']['components']['nestedarray'],_0x2df443=_0x6d6bbb['Utils']['_'];_0x11cc51['prototype']['hasSignedValueChanged']=function(_0x10e0b0={}){var _0x5de0b3,_0x241d39;const {checkAll:_0x3a93ce,signedData:_0xe1860d}=_0x10e0b0;if(_0x3a93ce||this['hasSignedChildren']()){const _0xb3f6f0=_0x2df443['get'](_0xe1860d||(null===(_0x241d39=null===(_0x5de0b3=this['root'])||void 0x0===_0x5de0b3?void 0x0:_0x5de0b3['signedSubmission'])||void 0x0===_0x241d39?void 0x0:_0x241d39['data']),this['getValuePathInSignedData']());if(_0x2df443['keys'](this['dataValue'])['length']!==_0x2df443['keys'](_0xb3f6f0)['length'])return!0x0;}return!0x1;},_0x104f82['default']=_0x11cc51;},0x2ed:function(_0x39a8ac,_0x5f1803){Object['defineProperty'](_0x5f1803,'__esModule',{'value':!0x0}),_0x5f1803['default']=function(_0x5a400f){var _0x3e48a0;return''+((null==(_0x3e48a0=_0x5a400f['children'])?'':_0x3e48a0)+'\x0a<div\x20ref=\x22esignContainer\x22>')+(null==(_0x3e48a0=_0x5a400f['eSignStamp'])?'':_0x3e48a0)+'</div>\x0a';};},0x2f5:function(_0x3a0710,_0x41b739,_0x26ff9f){'use strict';Object['defineProperty'](_0x41b739,'__esModule',{'value':!0x0});const _0xfcb372=_0x26ff9f(0x14e);_0x41b739['default']={'webform':_0xfcb372['default']};},0x339:function(_0x23b93a,_0xdb93e3,_0x2cfaa4){'use strict';Object['defineProperty'](_0xdb93e3,'__esModule',{'value':!0x0});const _0xf72ae9=_0x2cfaa4(0x39d),_0x25fef8=_0x2cfaa4(0x197),_0x3e68bc=_0x2cfaa4(0x193);_0xdb93e3['default']={'esignature':_0xf72ae9['default'],'esignStamp':_0x25fef8['default'],'esignTooltip':_0x3e68bc['default']};},0x34a:function(_0x11047e,_0x567e29){Object['defineProperty'](_0x567e29,'__esModule',{'value':!0x0}),_0x567e29['default']=function(_0x13528e){var _0x1263a3,_0x550484='';return Array['prototype']['join'],_0x13528e['esign']&&(_0x550484+='\x0a<span\x20class=\x22formio-esign-stamp\x20\x20'+(null==(_0x1263a3=!0x0===_0x13528e['esign']['valid']?'':'formio-esign-stamp-invalid')?'':_0x1263a3)+'\x22>\x0a\x20\x20\x20\x20<i\x20ref=\x22esignTooltip\x22\x20style=\x22cursor:pointer\x22\x20data-tooltip=\x22'+(null==(_0x1263a3=_0x13528e['esignTooltip'])?'':_0x1263a3)+'\x22\x20class=\x27'+(null==(_0x1263a3=_0x13528e['esignIconClass'])?'':_0x1263a3)+'\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!==_0x13528e['esign']['valid']||_0x13528e['pdfForm']||(_0x550484+='\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==(_0x1263a3=_0x13528e['esign']?.['signature']?.['user']?.['data']||_0x13528e['esign']?.['signature']?.['user']?.['_id'])?'':_0x1263a3)+'\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20',_0x13528e['esign']?.['created']&&(_0x550484+='\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20on\x20'+(null==(_0x1263a3=new Date(_0x13528e['esign']['created'])['toLocaleString']())?'':_0x1263a3)+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'),_0x550484+='\x0a\x20\x20\x20\x20\x20\x20\x20\x20</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20'),_0x550484+='\x0a\x20\x20\x20\x20\x20\x20\x20\x20',!0x0===_0x13528e['esign']['valid']&&_0x13528e['pdfForm']&&(_0x550484+='\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(null==(_0x1263a3=_0x13528e['t']('Signed'))?'':_0x1263a3)+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20'),_0x550484+='\x0a\x20\x20\x20\x20\x20\x20\x20\x20',!0x0!==_0x13528e['esign']['valid']&&(_0x550484+='\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(null==(_0x1263a3=_0x13528e['esignInvalidMessage'])?'':_0x1263a3)+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20'),_0x550484+='\x0a\x20\x20\x20\x20</span>\x0a</span>\x0a'),_0x550484+'\x0a';};},0x356:function(_0x6f629c,_0x391ff6,_0x1c9f29){'use strict';Object['defineProperty'](_0x391ff6,'__esModule',{'value':!0x0});const _0x19f012=_0x1c9f29(0x0);_0x391ff6['default']={'form':_0x19f012['default']};},0x36c:function(_0x569bc9,_0x44c84c,_0x57704f){'use strict';Object['defineProperty'](_0x44c84c,'__esModule',{'value':!0x0});const _0x17edaf=_0x57704f(0x26e);_0x44c84c['default']={'form':_0x17edaf['default']};},0x39d:function(_0x2c3039,_0x503c80,_0x4e6d59){'use strict';Object['defineProperty'](_0x503c80,'__esModule',{'value':!0x0});const _0x17aa9b=_0x4e6d59(0x2ed);_0x503c80['default']={'form':_0x17aa9b['default']};},0x3c9:function(_0x45159a,_0x3bf56c,_0x2fe41c){'use strict';Object['defineProperty'](_0x3bf56c,'__esModule',{'value':!0x0});const _0x35878d=_0x2fe41c(0x268),_0x62d796=_0x2fe41c(0x339);_0x3bf56c['default']={'bootstrap':_0x35878d['default'],'bootstrap3':_0x62d796['default'],'bootstrap4':_0x35878d['default'],'bootstrap5':_0x35878d['default']};},0x3e0:function(_0xdb217c,_0xb79c58,_0x5318d1){'use strict';Object['defineProperty'](_0xb79c58,'__esModule',{'value':!0x0});const _0x1e98c6=_0x5318d1(0x34a);_0xb79c58['default']={'form':_0x1e98c6['default']};}},_0x305c68={};function _0x560d91(_0x35efc4){var _0x152398=_0x305c68[_0x35efc4];if(void 0x0!==_0x152398)return _0x152398['exports'];var _0x530de6=_0x305c68[_0x35efc4]={'exports':{}};return _0x3cc44a[_0x35efc4](_0x530de6,_0x530de6['exports'],_0x560d91),_0x530de6['exports'];}var _0x572a90={};return(function(){'use strict';var _0x2a4aea=_0x572a90;const _0x55eefa=_0x560d91(0x15e),_0x24580b=_0x560d91(0x3c9),_0x594d19=_0x560d91(0x203),_0xea2292=_0x560d91(0x2f5);_0x2a4aea['default']={'components':_0x55eefa['default'],'templates':_0x24580b['default'],'library':_0x594d19['default'],'displays':_0xea2292['default']};}()),_0x572a90['default'];}());});
1
+ !function(_0x40afd3,_0x5af28d){'object'==typeof exports&&'object'==typeof module?module['exports']=_0x5af28d():'function'==typeof define&&define['amd']?define([],_0x5af28d):'object'==typeof exports?exports['esignature']=_0x5af28d():_0x40afd3['esignature']=_0x5af28d();}(self,function(){return(function(){var _0x59ad05={0x0:function(_0x5acbac,_0x1d436d){Object['defineProperty'](_0x1d436d,'__esModule',{'value':!0x0}),_0x1d436d['default']=function(_0x4c04b9){var _0x3a9fa8;return''+((null==(_0x3a9fa8=_0x4c04b9['children'])?'':_0x3a9fa8)+'\x0a<div\x20ref=\x22esignContainer\x22>')+(null==(_0x3a9fa8=_0x4c04b9['eSignStamp'])?'':_0x3a9fa8)+'</div>\x0a';};},0xfd:function(_0x12c34e,_0x1fe373){'use strict';function _0x3f9de0(_0x268225){return!Number['isNaN'](Date['parse'](_0x268225));}function _0x421580(_0x3bfc40){return(_0x3bfc40=_0x3bfc40['replace'](/\*\./,'(\x5cS+\x5c.)?')['replace'](/([A-Za-z0-9])\.([A-Za-z0-9])/g,'$1\x5c.$2'))['match'](/^\(+?http|capacitor/)||(_0x3bfc40='((http[s]?|capacitor)://)?'+_0x3bfc40),_0x3bfc40;}Object['defineProperty'](_0x1fe373,'__esModule',{'value':!0x0}),_0x1fe373['isValidDate']=_0x3f9de0,_0x1fe373['dateStringToMilliseconds']=function(_0x3c1cd2){if(!_0x3f9de0(_0x3c1cd2))throw new Error('Provided\x20invalid\x20date\x20string.');return new Date(_0x3c1cd2)['getTime']();},_0x1fe373['normalizeUrl']=_0x421580,_0x1fe373['capitalize']=function(_0x15f477){return'string'!=typeof _0x15f477?'':''+_0x15f477['charAt'](0x0)['toUpperCase']()+_0x15f477['slice'](0x1)['toLowerCase']();},_0x1fe373['isAllowedUrl']=function(_0x29eb5e=[],_0x43581a){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'](_0x29eb5e=_0x29eb5e||[])['some'](_0xaa3c05=>new RegExp('^'+_0x421580(_0xaa3c05),'i')['test'](_0x43581a));};},0x10d:function(_0x253584,_0x239610,_0x3df99e){'use strict';Object['defineProperty'](_0x239610,'__esModule',{'value':!0x0});const _0x52a7f6=_0x3df99e(0x170),_0x39dedb=_0x52a7f6['Components']['components']['address'],_0x3992a4=_0x52a7f6['Utils']['_'];_0x39dedb['prototype']['hasSignedValueChanged']=function(_0x48fbf9={}){var _0x461d75,_0x2771d4;const {checkAll:_0x3ef907,signedData:_0x170184}=_0x48fbf9;if(_0x3ef907||this['isValueSigned']()){const _0x5d7925=_0x3992a4['get'](_0x170184||(null===(_0x2771d4=null===(_0x461d75=this['root'])||void 0x0===_0x461d75?void 0x0:_0x461d75['signedSubmission'])||void 0x0===_0x2771d4?void 0x0:_0x2771d4['data']),this['getValuePathInSignedData']());return!_0x3992a4['isEqual'](_0x5d7925,this['dataValue']);}return!0x1;},_0x239610['default']=_0x39dedb;},0x14e:function(_0x138b87,_0x27ff48,_0x948dc8){'use strict';Object['defineProperty'](_0x27ff48,'__esModule',{'value':!0x0});const _0x24cd49=_0x948dc8(0x170),_0xde82e0=_0x24cd49['Displays']['getDisplay']('webform'),_0xb5909a=_0x24cd49['Utils']['_'];Object['defineProperty'](_0xde82e0['prototype'],'disableSignedData',{'enumerable':!0x0,'configurable':!0x0,'get'(){var _0x26964e,_0x10cfed;return!_0xb5909a['get'](this,'form.esign.notDisableSignedData',!0x1)&&_0xb5909a['some'](null===(_0x26964e=this['_submission'])||void 0x0===_0x26964e?void 0x0:_0x26964e['eSignatures'],_0x3e7038=>!0x0===_0x3e7038['valid'])&&!!(null===(_0x10cfed=this['esign']['signatures'])||void 0x0===_0x10cfed?void 0x0:_0x10cfed['length']);}}),Object['defineProperty'](_0xde82e0['prototype'],'esign',{'enumerable':!0x0,'configurable':!0x0,'get'(){var _0x44db9f;return(null===(_0x44db9f=this['form'])||void 0x0===_0x44db9f?void 0x0:_0x44db9f['esign'])||{};}}),Object['defineProperty'](_0xde82e0['prototype'],'signedComponentsInfo',{'enumerable':!0x0,'configurable':!0x0,'get'(){const _0x6ca42=_0xb5909a['filter'](_0xb5909a['get'](this['submission'],'eSignatures',[]),_0x474ea9=>!0x0===_0x474ea9['valid']),_0x19ed38=this['esign']['signatures']||[],_0x30a2bd={'all':!0x1,'components':[]};return _0xb5909a['isEmpty'](_0x6ca42||_0xb5909a['isEmpty'](_0x19ed38))||(_0xb5909a['each'](_0x6ca42,_0x2f70a4=>{if(_0x30a2bd['all'])return;const {compPath:_0x335c54}=_0x2f70a4['signature']||{},_0x1df44f=_0xb5909a['find'](_0x19ed38,_0x47cc56=>_0x47cc56['component']===_0x335c54);_0x1df44f['signAll']&&(_0x30a2bd['all']=!0x0,_0x30a2bd['components']=[]),_0x30a2bd['components']=_0xb5909a['concat'](_0x30a2bd['components'],_0x1df44f['signedData']||[]);}),_0x30a2bd['components']['length']&&(_0x30a2bd['components']=_0xb5909a['uniq'](_0x30a2bd['components']))),_0x30a2bd;}});const _0x3f2d90=_0xde82e0['prototype']['setSubmission'];_0xde82e0['prototype']['setSubmission']=function(_0x491220,_0x4d9170){return this['setSignedSubmission'](_0x491220),_0x3f2d90['call'](this,_0x491220,_0x4d9170);},_0xde82e0['prototype']['setSignedSubmission']=function(_0x4497c6){var _0x28dad2;if((null===(_0x28dad2=this['esign']['signatures'])||void 0x0===_0x28dad2?void 0x0:_0x28dad2['length'])&&_0xb5909a['some'](_0xb5909a['get'](_0x4497c6,'eSignatures',[]),_0x3b3326=>!0x0===_0x3b3326['valid'])){const _0x173766=_0xb5909a['omit'](_0x4497c6,['eSignatures']);this['signedSubmission']=_0x24cd49['Utils']['fastCloneDeep'](_0x173766);}else this['signedSubmission']=null;};const _0x3b7a10=_0xde82e0['prototype']['onSetSubmission'];_0xde82e0['prototype']['onSetSubmission']=function(_0x28c3ab,_0x156a06={}){_0x3b7a10['call'](this,_0x28c3ab,_0x156a06),this['setESignatures'](_0x28c3ab,_0x156a06);},_0xde82e0['prototype']['setESignatures']=function(_0x5e5f86={},_0x5cebbe={}){const _0x5ad3e3=this['esign']['signatures']||[];if(!_0x5ad3e3['length'])return;const _0xc28861=_0xb5909a['groupBy'](_0xb5909a['get'](_0x5e5f86,'eSignatures',[]),'signature.valuePath');_0xb5909a['each'](_0x5ad3e3,_0x20126f=>{if(_0x20126f['component']){let _0x211d2e=this['getComponent'](_0x20126f['component'])||[];_0x211d2e=_0xb5909a['isArray'](_0x211d2e)?_0x211d2e:[_0x211d2e],_0xb5909a['each'](_0x211d2e,_0x44d557=>{_0x44d557['setESignature'](_0xb5909a['get'](_0xc28861[_0x44d557['jsonPathInLocalRoot']],'[0]',null),_0x5cebbe);});}}),_0x5cebbe['fromSubmission']&&this['options']['cleanESignOnSetSubmission']&&_0xb5909a['set'](this['_submission'],'eSignatures',[]),this['disableSignedData']&&this['redraw']();};const _0x2feb6e=_0xde82e0['prototype']['checkData'];_0xde82e0['prototype']['checkData']=function(_0x580afd,_0x433ce4){const _0x3d1d5b=_0x2feb6e['call'](this,_0x580afd,_0x433ce4);return(null==_0x433ce4?void 0x0:_0x433ce4['fromSubmission'])||this['validateESignatureCustomProps'](),_0x3d1d5b;},_0xde82e0['prototype']['validateESignatureCustomProps']=function(){const {submissionProps:_0x3eb605=''}=this['esign'];if(!_0x3eb605||!this['shouldValidateESignatures']())return;const _0x15defb={},_0x3059ac={},_0x5c6dfa=_0xb5909a['chain'](_0x3eb605)['split'](',')['map'](_0x2b6509=>_0xb5909a['trim'](_0x2b6509))['value']();_0xb5909a['each'](_0x5c6dfa||[],_0x32a434=>{_0xb5909a['set'](_0x15defb,_0x32a434,_0xb5909a['get'](this['signedSubmission'],_0x32a434)),_0xb5909a['set'](_0x3059ac,_0x32a434,_0xb5909a['get'](this['submission'],_0x32a434));}),_0xb5909a['isEqual'](_0x15defb,_0x3059ac)||this['emitSignedValueChange'](!0x0);},_0xde82e0['prototype']['shouldValidateESignatures']=function(){var _0x21ff2f,_0x3b4c8a,_0x1e5037;return!(_0xb5909a['isEmpty'](_0xb5909a['filter']((null===(_0x21ff2f=this['submission'])||void 0x0===_0x21ff2f?void 0x0:_0x21ff2f['eSignatures'])||[],_0x4c7598=>!0x0===(null==_0x4c7598?void 0x0:_0x4c7598['valid'])))||_0xb5909a['isEmpty'](this['esign']['signatures'])||!this['signedSubmission']||(null===(_0x3b4c8a=this['submission'])||void 0x0===_0x3b4c8a?void 0x0:_0x3b4c8a['_id'])!==(null===(_0x1e5037=this['signedSubmission'])||void 0x0===_0x1e5037?void 0x0:_0x1e5037['_id']));},_0x27ff48['default']=_0xde82e0;},0x15e:function(_0x22ab18,_0x11180c,_0x4cb086){'use strict';Object['defineProperty'](_0x11180c,'__esModule',{'value':!0x0});const _0x283cda=_0x4cb086(0x295),_0x5b5a51=_0x4cb086(0x2bd),_0xeb91a3=_0x4cb086(0x2c1),_0x3aac9c=_0x4cb086(0x2bf),_0x4e5415=_0x4cb086(0x2bb),_0xbec896=_0x4cb086(0x10d);_0x11180c['default']={'component':_0x283cda['default'],'nested':_0x5b5a51['default'],'nestedarray':_0xeb91a3['default'],'form':_0x3aac9c['default'],'componentmodal':_0x4e5415['default'],'address':_0xbec896['default']};},0x170:function(_0x290f21){'use strict';_0x290f21['exports']=window['Formio'];},0x174:function(_0x58b8a5,_0x14cbfc,_0x425a0f){'use strict';var _0x3ef931=this&&this['__awaiter']||function(_0x4352f3,_0x43171e,_0x2b53e1,_0x1abc30){return new(_0x2b53e1||(_0x2b53e1=Promise))(function(_0x3f50ec,_0x27bcee){function _0x449ad2(_0x545d01){try{_0x3a67ed(_0x1abc30['next'](_0x545d01));}catch(_0xc35a61){_0x27bcee(_0xc35a61);}}function _0x5dbb34(_0x5a64a3){try{_0x3a67ed(_0x1abc30['throw'](_0x5a64a3));}catch(_0x3f9832){_0x27bcee(_0x3f9832);}}function _0x3a67ed(_0xb86643){var _0x401c8e;_0xb86643['done']?_0x3f50ec(_0xb86643['value']):(_0x401c8e=_0xb86643['value'],_0x401c8e instanceof _0x2b53e1?_0x401c8e:new _0x2b53e1(function(_0x79987e){_0x79987e(_0x401c8e);}))['then'](_0x449ad2,_0x5dbb34);}_0x3a67ed((_0x1abc30=_0x1abc30['apply'](_0x4352f3,_0x43171e||[]))['next']());});};Object['defineProperty'](_0x14cbfc,'__esModule',{'value':!0x0}),_0x14cbfc['OfflineLibraryLicense']=void 0x0;const _0x456339=_0x425a0f(0x23c),_0x13d13e=_0x425a0f(0xfd);class _0xa1d909 extends Error{constructor(_0x581710,_0x20360c){super(_0x581710?_0xa1d909['errorMessagePrefix']+'\x0a'+_0x581710:_0xa1d909['errorMessagePrefix']+'\x0aUnexpected\x20error\x20occurred.'),this['softFailLicenseExpiration']=!0x1,this['softFailLicenseExpiration']=_0x20360c;}}_0xa1d909['errorMessagePrefix']='Library\x20License\x20check\x20error:',_0x14cbfc['OfflineLibraryLicense']=class{constructor(_0x2cfe7a,_0x1c2125){this['libraryName']=_0x2cfe7a,this['injectedPublicKey']=_0x1c2125,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 _0x3d9f44,_0x1ab225;if(this['libraryName']&&!(null===(_0x1ab225=null===(_0x3d9f44=this['parsedLicenseKey'])||void 0x0===_0x3d9f44?void 0x0:_0x3d9f44['terms'])||void 0x0===_0x1ab225?void 0x0:_0x1ab225[this['libraryName']]))throw new _0xa1d909((0x0,_0x13d13e['capitalize'])(this['libraryName'])+'\x20is\x20disabled\x20in\x20your\x20license.');}['checkExpiration'](){let {exp:_0x3130e7,failDate:_0x51e2e2}=this['parsedLicenseKey'];if(!_0x3130e7)return;let _0x1f4aa7=!0x1;const _0x46677c=Math['floor'](Date['now']()/0x3e8);switch(typeof _0x3130e7){case'string':_0x1f4aa7=(0x0,_0x13d13e['dateStringToMilliseconds'])(_0x3130e7)<_0x46677c;break;case'number':case'object':_0x1f4aa7=_0x3130e7<_0x46677c;break;default:throw new _0xa1d909('Invalid\x20expiration\x20date\x20provided.');}if(_0x51e2e2=function(_0x34fd8f){return _0x34fd8f>0xe8d4a51000?Math['floor'](_0x34fd8f/0x3e8):_0x34fd8f;}(_0x51e2e2),_0x1f4aa7)throw _0x46677c<_0x51e2e2?new _0xa1d909('Your\x20Library\x20License\x20has\x20expired.\x20Please\x20contact\x20sales@form.io\x20to\x20renew\x20it',!0x0):new _0xa1d909('License\x20is\x20expired');}['checkAllowedHostnames'](){var _0xcd5d71;let {hostnames:_0x5435da}=null===(_0xcd5d71=this['parsedLicenseKey'])||void 0x0===_0xcd5d71?void 0x0:_0xcd5d71['terms'];const _0x19a21d=window['location']['protocol']+'//'+window['location']['hostname'];if(!(0x0,_0x13d13e['isAllowedUrl'])(_0x5435da,_0x19a21d))throw new _0xa1d909('Current\x20hostname\x20('+_0x19a21d+')\x20is\x20not\x20allowed.');}['checkAllowedEndpoints'](_0x1678f2,_0xcb5066){return _0x3ef931(this,void 0x0,void 0x0,function*(){var _0x3e9b36;if(!this['parsedLicenseKey']){if(!_0xcb5066)throw new _0xa1d909('License\x20Key\x20should\x20be\x20provided\x20to\x20verify\x20allowed\x20endpoints.');this['parsedLicenseKey']=yield this['parseKey'](_0xcb5066);}let {endpoints:_0x47b100}=null===(_0x3e9b36=this['parsedLicenseKey'])||void 0x0===_0x3e9b36?void 0x0:_0x3e9b36['terms'];if(window['Formio']){const _0x3c4038=window['Formio']['getProjectUrl'](),_0x8d2ac6=window['Formio']['getBaseUrl']();if(!(0x0,_0x13d13e['isAllowedUrl'])(_0x47b100,_0x3c4038)&&!(0x0,_0x13d13e['isAllowedUrl'])(_0x47b100,_0x8d2ac6))throw new _0xa1d909('Formio.projectUrl\x20and\x20Formio.baseUrl\x20are\x20not\x20allowed\x20for\x20this\x20license.');}});}['parseKey'](_0xa06c7){return _0x3ef931(this,void 0x0,void 0x0,function*(){try{const {payload:_0x4f0cd2}=yield(0x0,_0x456339['compactVerify'])(_0xa06c7,yield(0x0,_0x456339['importSPKI'])(this['injectedPublicKey']||this['publicKey'],'PS256'));return JSON['parse'](new TextDecoder('utf-8')['decode'](_0x4f0cd2));}catch(_0xa10b79){throw console['error']('Error\x20parsing\x20Library\x20License\x20key:\x20'+_0xa10b79['message']),new _0xa1d909('Invalid\x20key\x20provided.');}});}['verify'](_0x2b52a0){return _0x3ef931(this,arguments,void 0x0,function*(_0x37d2a1,_0x2f2ce8=!0x0){if(!_0x37d2a1)throw new _0xa1d909('License\x20key\x20not\x20provided.');try{this['parsedLicenseKey']=yield this['parseKey'](_0x37d2a1),this['checkTerms'](),this['checkExpiration'](),_0x2f2ce8&&this['checkAllowedHostnames']();}catch(_0x4926b9){throw _0x4926b9 instanceof _0xa1d909?_0x4926b9:(console['error']('Unexpected\x20Library\x20License\x20verify\x20error:\x20'+_0x4926b9['message']),new _0xa1d909());}});}['generate'](_0x531587,_0xe8f073){return _0x3ef931(this,void 0x0,void 0x0,function*(){const _0xf0f478=yield(0x0,_0x456339['importPKCS8'])(_0xe8f073,'PS256');return yield new _0x456339['CompactSign'](new TextEncoder()['encode'](JSON['stringify'](_0x531587)))['setProtectedHeader']({'alg':'PS256'})['sign'](_0xf0f478);});}};},0x190:function(_0x26a3de,_0x331c4a,_0x5da855){'use strict';var _0x508d0f=this&&this['__awaiter']||function(_0x46abbc,_0x50c4e9,_0x136067,_0x3e708c){return new(_0x136067||(_0x136067=Promise))(function(_0x31a698,_0x19b7bd){function _0x10bfd9(_0x868a87){try{_0x1a33a6(_0x3e708c['next'](_0x868a87));}catch(_0x5da0ba){_0x19b7bd(_0x5da0ba);}}function _0x4c4910(_0x44eced){try{_0x1a33a6(_0x3e708c['throw'](_0x44eced));}catch(_0x213227){_0x19b7bd(_0x213227);}}function _0x1a33a6(_0x172584){var _0x2e7752;_0x172584['done']?_0x31a698(_0x172584['value']):(_0x2e7752=_0x172584['value'],_0x2e7752 instanceof _0x136067?_0x2e7752:new _0x136067(function(_0x4cb474){_0x4cb474(_0x2e7752);}))['then'](_0x10bfd9,_0x4c4910);}_0x1a33a6((_0x3e708c=_0x3e708c['apply'](_0x46abbc,_0x50c4e9||[]))['next']());});};Object['defineProperty'](_0x331c4a,'__esModule',{'value':!0x0}),_0x331c4a['checkLicense']=_0x331c4a['checkEndpointAllowed']=_0x331c4a['verifyLicense']=void 0x0;const _0x40f436=new(_0x5da855(0x174))['OfflineLibraryLicense']('esign'),_0xdb29d9=_0x11c2ba=>_0x508d0f(void 0x0,void 0x0,void 0x0,function*(){var _0x4f20c0;if(!(null===(_0x4f20c0=null===window||void 0x0===window?void 0x0:window['Formio'])||void 0x0===_0x4f20c0?void 0x0:_0x4f20c0['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 _0x11c2ba();});function _0x113e38(){return _0x508d0f(this,void 0x0,void 0x0,function*(){yield _0xdb29d9(()=>_0x40f436['verify'](window['Formio']['license']));});}function _0x334f60(_0x50b675){return _0x508d0f(this,void 0x0,void 0x0,function*(){yield _0xdb29d9(()=>_0x40f436['checkAllowedEndpoints'](_0x50b675,window['Formio']['license']));});}_0x331c4a['verifyLicense']=_0x113e38,_0x331c4a['checkEndpointAllowed']=_0x334f60;let _0x1a9e9f,_0x5805dd=!0x1,_0x28adad=!0x1;_0x331c4a['checkLicense']=function(_0x463a9c){return _0x508d0f(this,void 0x0,void 0x0,function*(){if(!_0x28adad){if(_0x5805dd){if(!_0x28adad)throw new Error(_0x1a9e9f);}else try{yield _0x113e38(),yield _0x334f60(_0x463a9c),_0x5805dd=!0x0,_0x28adad=!0x0;}catch(_0x403062){if(_0x5805dd)throw new Error(_0x403062);throw alert(_0x403062),_0x1a9e9f=_0x403062,_0x5805dd=!0x0,new Error(_0x403062);}}});};},0x193:function(_0x3519f1,_0x5cbb09,_0x2df5b3){'use strict';Object['defineProperty'](_0x5cbb09,'__esModule',{'value':!0x0});const _0x3c1cd1=_0x2df5b3(0x1ab);_0x5cbb09['default']={'form':_0x3c1cd1['default']};},0x197:function(_0x1a8e3b,_0x591b50,_0x364f5f){'use strict';Object['defineProperty'](_0x591b50,'__esModule',{'value':!0x0});const _0x4da6f5=_0x364f5f(0x27f);_0x591b50['default']={'form':_0x4da6f5['default']};},0x1ab:function(_0x3d206c,_0x43bdd6){Object['defineProperty'](_0x43bdd6,'__esModule',{'value':!0x0}),_0x43bdd6['default']=function(_0x446bc1){var _0x4e4530,_0x2e28f5='';return Array['prototype']['join'],_0x2e28f5+='<div\x20class=\x22formio-esign-tooltip\x22>\x0a\x20\x20\x20\x20<span\x20class=\x22'+(null==(_0x4e4530=!0x0!==_0x446bc1['esign']['valid']?'formio-esign-tooltip-header-invalid':'')?'':_0x4e4530)+'\x20formio-esign-tooltip-header\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span\x20>'+(null==(_0x4e4530=_0x446bc1['t']('Digital\x20Signature'))?'':_0x4e4530)+'</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span\x20class=\x22formio-esign-tooltip-status\x22\x20>'+(null==(_0x4e4530=_0x446bc1['t'](!0x0!==_0x446bc1['esign']['valid']?'invalid':'verified'))?'':_0x4e4530)+'</span>\x0a\x20\x20\x20\x20</span>\x0a\x20\x20\x20\x20',_0x446bc1['pdfForm']&&!0x0!==_0x446bc1['esign']['valid']&&(_0x2e28f5+='\x0a\x20\x20\x20\x20<div\x20class=\x22formio-esign-tooltip-invalid-msg\x22>'+(null==(_0x4e4530=_0x446bc1['esignInvalidMessage'])?'':_0x4e4530)+'</div>\x0a\x20\x20\x20\x20'),_0x2e28f5+='\x0a\x20\x20\x20\x20<ul\x20class=\x22formio-esign-tooltip-info\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20',_0x446bc1['pdfForm']&&(_0x2e28f5+='\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==(_0x4e4530=_0x446bc1['t']('Signed\x20by'))?'':_0x4e4530)+':</span><span>'+(null==(_0x4e4530=_0x446bc1['esign']?.['signature']?.['user']?.['data']||_0x446bc1['esign']?.['signature']?.['user']?.['_id'])?'':_0x4e4530)+'</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==(_0x4e4530=_0x446bc1['t']('Signed\x20on'))?'':_0x4e4530)+':</span><span>'+(null==(_0x4e4530=new Date(_0x446bc1['esign']?.['created'])['toLocaleString']())?'':_0x4e4530)+'</span></li>\x0a\x20\x20\x20\x20\x20\x20\x20\x20'),_0x2e28f5+'\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==(_0x4e4530=_0x446bc1['t']('ID'))?'':_0x4e4530)+':</span><span>'+(null==(_0x4e4530=_0x446bc1['esign']?.['_id']||'-')?'':_0x4e4530)+'</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==(_0x4e4530=_0x446bc1['t']('Path'))?'':_0x4e4530)+':</span><span>'+(null==(_0x4e4530=_0x446bc1['esign']?.['signature']?.['valuePath']||'-')?'':_0x4e4530)+'</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==(_0x4e4530=_0x446bc1['t']('Submission\x20Rev.'))?'':_0x4e4530)+':</span><span>'+(null==(_0x4e4530=_0x446bc1['esign']?.['signature']?.['submission']?.['_id']||'-')?'':_0x4e4530)+'</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==(_0x4e4530=_0x446bc1['t']('Form\x20Rev.'))?'':_0x4e4530)+':</span><span>'+(null==(_0x4e4530=_0x446bc1['esign']?.['signature']?.['submission']?.['_fvid'])?'':_0x4e4530)+'</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==(_0x4e4530=_0x446bc1['t']('User\x20ID'))?'':_0x4e4530)+':</span><span>'+(null==(_0x4e4530=_0x446bc1['esign']?.['signature']?.['user']?.['_id']||'-')?'':_0x4e4530)+'</span></li>\x0a\x20\x20\x20\x20</ul>\x0a<div>\x0a';};},0x203:function(_0x53c74c,_0x56b9c9){'use strict';Object['defineProperty'](_0x56b9c9,'__esModule',{'value':!0x0}),_0x56b9c9['default']='esignature';},0x23c:function(_0x4ca763,_0x3350c5,_0x2b2aae){'use strict';_0x2b2aae['r'](_0x3350c5),_0x2b2aae['d'](_0x3350c5,{'CompactEncrypt':function(){return _0x3380e7;},'CompactSign':function(){return _0x4c1585;},'EmbeddedJWK':function(){return _0x4b2d61;},'EncryptJWT':function(){return _0x534574;},'FlattenedEncrypt':function(){return _0x293da5;},'FlattenedSign':function(){return _0xe21a97;},'GeneralEncrypt':function(){return _0x1ab996;},'GeneralSign':function(){return _0x3c5f11;},'SignJWT':function(){return _0x4c4a1b;},'UnsecuredJWT':function(){return _0x439348;},'base64url':function(){return _0x503a5c;},'calculateJwkThumbprint':function(){return _0x37cc84;},'calculateJwkThumbprintUri':function(){return _0x58bb20;},'compactDecrypt':function(){return _0x1c2424;},'compactVerify':function(){return _0x17c93c;},'createLocalJWKSet':function(){return _0x1a2915;},'createRemoteJWKSet':function(){return _0x255522;},'cryptoRuntime':function(){return _0xf49d7f;},'decodeJwt':function(){return _0x2b8b1b;},'decodeProtectedHeader':function(){return _0xb6fd00;},'errors':function(){return _0x219ab7;},'experimental_jwksCache':function(){return _0x438713;},'exportJWK':function(){return _0x1a256e;},'exportPKCS8':function(){return _0x23dc52;},'exportSPKI':function(){return _0x536cb3;},'flattenedDecrypt':function(){return _0x2e6c44;},'flattenedVerify':function(){return _0x2fecab;},'generalDecrypt':function(){return _0x511561;},'generalVerify':function(){return _0x229811;},'generateKeyPair':function(){return _0x278af7;},'generateSecret':function(){return _0x424c08;},'importJWK':function(){return _0x417c79;},'importPKCS8':function(){return _0x5db37f;},'importSPKI':function(){return _0x3450cc;},'importX509':function(){return _0xc68152;},'jwksCache':function(){return _0x2de35e;},'jwtDecrypt':function(){return _0xc0d83a;},'jwtVerify':function(){return _0x40d7a6;}});var _0x219ab7={};_0x2b2aae['r'](_0x219ab7),_0x2b2aae['d'](_0x219ab7,{'JOSEAlgNotAllowed':function(){return _0x433e62;},'JOSEError':function(){return _0x432873;},'JOSENotSupported':function(){return _0x51a5b6;},'JWEDecryptionFailed':function(){return _0x185c6b;},'JWEInvalid':function(){return _0x5e8e58;},'JWKInvalid':function(){return _0x3c2a43;},'JWKSInvalid':function(){return _0x17624b;},'JWKSMultipleMatchingKeys':function(){return _0x12a802;},'JWKSNoMatchingKey':function(){return _0x31f20c;},'JWKSTimeout':function(){return _0x593fd8;},'JWSInvalid':function(){return _0x52a075;},'JWSSignatureVerificationFailed':function(){return _0x28fc94;},'JWTClaimValidationFailed':function(){return _0x10fc59;},'JWTExpired':function(){return _0x533581;},'JWTInvalid':function(){return _0x2dc34b;}});var _0x503a5c={};_0x2b2aae['r'](_0x503a5c),_0x2b2aae['d'](_0x503a5c,{'decode':function(){return _0x2d7500;},'encode':function(){return _0x3296c0;}});var _0x327377=crypto;const _0x515249=_0x4559e7=>_0x4559e7 instanceof CryptoKey;var _0xd66d9d=async(_0x34da31,_0x3d9cda)=>{const _0x133516='SHA-'+_0x34da31['slice'](-0x3);return new Uint8Array(await _0x327377['subtle']['digest'](_0x133516,_0x3d9cda));};const _0x109970=new TextEncoder(),_0x6a1349=new TextDecoder(),_0x112202=0x2**0x20;function _0x377b9e(..._0x2944d5){const _0x1eec43=_0x2944d5['reduce']((_0x18bf42,{length:_0x33b071})=>_0x18bf42+_0x33b071,0x0),_0x50de00=new Uint8Array(_0x1eec43);let _0x303695=0x0;for(const _0x150411 of _0x2944d5)_0x50de00['set'](_0x150411,_0x303695),_0x303695+=_0x150411['length'];return _0x50de00;}function _0x5092b2(_0x1591c3,_0x14cf15,_0x587ec2){if(_0x14cf15<0x0||_0x14cf15>=_0x112202)throw new RangeError('value\x20must\x20be\x20>=\x200\x20and\x20<=\x204294967295.\x20Received\x20'+_0x14cf15);_0x1591c3['set']([_0x14cf15>>>0x18,_0x14cf15>>>0x10,_0x14cf15>>>0x8,0xff&_0x14cf15],_0x587ec2);}function _0x426104(_0x104a47){const _0x4e9ef2=Math['floor'](_0x104a47/_0x112202),_0x4328cb=_0x104a47%_0x112202,_0x27ae0e=new Uint8Array(0x8);return _0x5092b2(_0x27ae0e,_0x4e9ef2,0x0),_0x5092b2(_0x27ae0e,_0x4328cb,0x4),_0x27ae0e;}function _0x22a68c(_0x34dd87){const _0x4fc791=new Uint8Array(0x4);return _0x5092b2(_0x4fc791,_0x34dd87),_0x4fc791;}function _0x224080(_0x43db8b){return _0x377b9e(_0x22a68c(_0x43db8b['length']),_0x43db8b);}const _0x146989=_0x1639ae=>{let _0x806aad=_0x1639ae;'string'==typeof _0x806aad&&(_0x806aad=_0x109970['encode'](_0x806aad));const _0x4f5914=[];for(let _0x4ec92b=0x0;_0x4ec92b<_0x806aad['length'];_0x4ec92b+=0x8000)_0x4f5914['push'](String['fromCharCode']['apply'](null,_0x806aad['subarray'](_0x4ec92b,_0x4ec92b+0x8000)));return btoa(_0x4f5914['join'](''));},_0x367467=_0x1f3f33=>_0x146989(_0x1f3f33)['replace'](/=/g,'')['replace'](/\+/g,'-')['replace'](/\//g,'_'),_0x1c7897=_0x3228c7=>{const _0x553d86=atob(_0x3228c7),_0x1ccd08=new Uint8Array(_0x553d86['length']);for(let _0x34cd6b=0x0;_0x34cd6b<_0x553d86['length'];_0x34cd6b++)_0x1ccd08[_0x34cd6b]=_0x553d86['charCodeAt'](_0x34cd6b);return _0x1ccd08;},_0x491e5c=_0x58656a=>{let _0x19c72a=_0x58656a;_0x19c72a instanceof Uint8Array&&(_0x19c72a=_0x6a1349['decode'](_0x19c72a)),_0x19c72a=_0x19c72a['replace'](/-/g,'+')['replace'](/_/g,'/')['replace'](/\s/g,'');try{return _0x1c7897(_0x19c72a);}catch{throw new TypeError('The\x20input\x20to\x20be\x20decoded\x20is\x20not\x20correctly\x20encoded.');}};class _0x432873 extends Error{constructor(_0x4109a0,_0x136cdd){super(_0x4109a0,_0x136cdd),this['code']='ERR_JOSE_GENERIC',this['name']=this['constructor']['name'],Error['captureStackTrace']?.(this,this['constructor']);}}_0x432873['code']='ERR_JOSE_GENERIC';class _0x10fc59 extends _0x432873{constructor(_0x4432e3,_0x5ada8e,_0x325cf5='unspecified',_0x19c45d='unspecified'){super(_0x4432e3,{'cause':{'claim':_0x325cf5,'reason':_0x19c45d,'payload':_0x5ada8e}}),this['code']='ERR_JWT_CLAIM_VALIDATION_FAILED',this['claim']=_0x325cf5,this['reason']=_0x19c45d,this['payload']=_0x5ada8e;}}_0x10fc59['code']='ERR_JWT_CLAIM_VALIDATION_FAILED';class _0x533581 extends _0x432873{constructor(_0x37746e,_0x3b819f,_0x3868cb='unspecified',_0x45ae6b='unspecified'){super(_0x37746e,{'cause':{'claim':_0x3868cb,'reason':_0x45ae6b,'payload':_0x3b819f}}),this['code']='ERR_JWT_EXPIRED',this['claim']=_0x3868cb,this['reason']=_0x45ae6b,this['payload']=_0x3b819f;}}_0x533581['code']='ERR_JWT_EXPIRED';class _0x433e62 extends _0x432873{constructor(){super(...arguments),this['code']='ERR_JOSE_ALG_NOT_ALLOWED';}}_0x433e62['code']='ERR_JOSE_ALG_NOT_ALLOWED';class _0x51a5b6 extends _0x432873{constructor(){super(...arguments),this['code']='ERR_JOSE_NOT_SUPPORTED';}}_0x51a5b6['code']='ERR_JOSE_NOT_SUPPORTED';class _0x185c6b extends _0x432873{constructor(_0x43d96c='decryption\x20operation\x20failed',_0x358638){super(_0x43d96c,_0x358638),this['code']='ERR_JWE_DECRYPTION_FAILED';}}_0x185c6b['code']='ERR_JWE_DECRYPTION_FAILED';class _0x5e8e58 extends _0x432873{constructor(){super(...arguments),this['code']='ERR_JWE_INVALID';}}_0x5e8e58['code']='ERR_JWE_INVALID';class _0x52a075 extends _0x432873{constructor(){super(...arguments),this['code']='ERR_JWS_INVALID';}}_0x52a075['code']='ERR_JWS_INVALID';class _0x2dc34b extends _0x432873{constructor(){super(...arguments),this['code']='ERR_JWT_INVALID';}}_0x2dc34b['code']='ERR_JWT_INVALID';class _0x3c2a43 extends _0x432873{constructor(){super(...arguments),this['code']='ERR_JWK_INVALID';}}_0x3c2a43['code']='ERR_JWK_INVALID';class _0x17624b extends _0x432873{constructor(){super(...arguments),this['code']='ERR_JWKS_INVALID';}}_0x17624b['code']='ERR_JWKS_INVALID';class _0x31f20c extends _0x432873{constructor(_0x129c9b='no\x20applicable\x20key\x20found\x20in\x20the\x20JSON\x20Web\x20Key\x20Set',_0x4bd1ba){super(_0x129c9b,_0x4bd1ba),this['code']='ERR_JWKS_NO_MATCHING_KEY';}}_0x31f20c['code']='ERR_JWKS_NO_MATCHING_KEY';class _0x12a802 extends _0x432873{constructor(_0x3c2d6b='multiple\x20matching\x20keys\x20found\x20in\x20the\x20JSON\x20Web\x20Key\x20Set',_0x394ebe){super(_0x3c2d6b,_0x394ebe),this['code']='ERR_JWKS_MULTIPLE_MATCHING_KEYS';}}Symbol['asyncIterator'],_0x12a802['code']='ERR_JWKS_MULTIPLE_MATCHING_KEYS';class _0x593fd8 extends _0x432873{constructor(_0x4773e1='request\x20timed\x20out',_0x1f3b9d){super(_0x4773e1,_0x1f3b9d),this['code']='ERR_JWKS_TIMEOUT';}}_0x593fd8['code']='ERR_JWKS_TIMEOUT';class _0x28fc94 extends _0x432873{constructor(_0x395387='signature\x20verification\x20failed',_0x5bbe84){super(_0x395387,_0x5bbe84),this['code']='ERR_JWS_SIGNATURE_VERIFICATION_FAILED';}}_0x28fc94['code']='ERR_JWS_SIGNATURE_VERIFICATION_FAILED';var _0x4ed8e4=_0x327377['getRandomValues']['bind'](_0x327377);function _0x44c51a(_0x1f1b1b){switch(_0x1f1b1b){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 _0x51a5b6('Unsupported\x20JWE\x20Algorithm:\x20'+_0x1f1b1b);}}var _0x42eec1=(_0x6c48b6,_0x5e5c5c)=>{if(_0x5e5c5c['length']<<0x3!==_0x44c51a(_0x6c48b6))throw new _0x5e8e58('Invalid\x20Initialization\x20Vector\x20length');},_0x4c9594=(_0x187817,_0x5d0cc3)=>{const _0x374893=_0x187817['byteLength']<<0x3;if(_0x374893!==_0x5d0cc3)throw new _0x5e8e58('Invalid\x20Content\x20Encryption\x20Key\x20length.\x20Expected\x20'+_0x5d0cc3+'\x20bits,\x20got\x20'+_0x374893+'\x20bits');};function _0x45da36(_0x4ed457,_0x20e404='algorithm.name'){return new TypeError('CryptoKey\x20does\x20not\x20support\x20this\x20operation,\x20its\x20'+_0x20e404+'\x20must\x20be\x20'+_0x4ed457);}function _0x3756f3(_0x5aa692,_0x3dc742){return _0x5aa692['name']===_0x3dc742;}function _0x223b53(_0x547de5){return parseInt(_0x547de5['name']['slice'](0x4),0xa);}function _0x11f710(_0x11cec4,_0x1f9936){if(_0x1f9936['length']&&!_0x1f9936['some'](_0x1b4199=>_0x11cec4['usages']['includes'](_0x1b4199))){let _0x29da7f='CryptoKey\x20does\x20not\x20support\x20this\x20operation,\x20its\x20usages\x20must\x20include\x20';if(_0x1f9936['length']>0x2){const _0x2cbaa4=_0x1f9936['pop']();_0x29da7f+='one\x20of\x20'+_0x1f9936['join'](',\x20')+',\x20or\x20'+_0x2cbaa4+'.';}else 0x2===_0x1f9936['length']?_0x29da7f+='one\x20of\x20'+_0x1f9936[0x0]+'\x20or\x20'+_0x1f9936[0x1]+'.':_0x29da7f+=_0x1f9936[0x0]+'.';throw new TypeError(_0x29da7f);}}function _0x4391d9(_0x3534d1,_0xb836d0,..._0x105c35){switch(_0xb836d0){case'A128GCM':case'A192GCM':case'A256GCM':{if(!_0x3756f3(_0x3534d1['algorithm'],'AES-GCM'))throw _0x45da36('AES-GCM');const _0x2e95a7=parseInt(_0xb836d0['slice'](0x1,0x4),0xa);if(_0x3534d1['algorithm']['length']!==_0x2e95a7)throw _0x45da36(_0x2e95a7,'algorithm.length');break;}case'A128KW':case'A192KW':case'A256KW':{if(!_0x3756f3(_0x3534d1['algorithm'],'AES-KW'))throw _0x45da36('AES-KW');const _0xe31013=parseInt(_0xb836d0['slice'](0x1,0x4),0xa);if(_0x3534d1['algorithm']['length']!==_0xe31013)throw _0x45da36(_0xe31013,'algorithm.length');break;}case'ECDH':switch(_0x3534d1['algorithm']['name']){case'ECDH':case'X25519':case'X448':break;default:throw _0x45da36('ECDH,\x20X25519,\x20or\x20X448');}break;case'PBES2-HS256+A128KW':case'PBES2-HS384+A192KW':case'PBES2-HS512+A256KW':if(!_0x3756f3(_0x3534d1['algorithm'],'PBKDF2'))throw _0x45da36('PBKDF2');break;case'RSA-OAEP':case'RSA-OAEP-256':case'RSA-OAEP-384':case'RSA-OAEP-512':{if(!_0x3756f3(_0x3534d1['algorithm'],'RSA-OAEP'))throw _0x45da36('RSA-OAEP');const _0xce0c7e=parseInt(_0xb836d0['slice'](0x9),0xa)||0x1;if(_0x223b53(_0x3534d1['algorithm']['hash'])!==_0xce0c7e)throw _0x45da36('SHA-'+_0xce0c7e,'algorithm.hash');break;}default:throw new TypeError('CryptoKey\x20does\x20not\x20support\x20this\x20operation');}_0x11f710(_0x3534d1,_0x105c35);}function _0x5a4313(_0x4b233f,_0x320396,..._0x5819e5){if((_0x5819e5=_0x5819e5['filter'](Boolean))['length']>0x2){const _0x481930=_0x5819e5['pop']();_0x4b233f+='one\x20of\x20type\x20'+_0x5819e5['join'](',\x20')+',\x20or\x20'+_0x481930+'.';}else 0x2===_0x5819e5['length']?_0x4b233f+='one\x20of\x20type\x20'+_0x5819e5[0x0]+'\x20or\x20'+_0x5819e5[0x1]+'.':_0x4b233f+='of\x20type\x20'+_0x5819e5[0x0]+'.';return null==_0x320396?_0x4b233f+='\x20Received\x20'+_0x320396:'function'==typeof _0x320396&&_0x320396['name']?_0x4b233f+='\x20Received\x20function\x20'+_0x320396['name']:'object'==typeof _0x320396&&null!=_0x320396&&_0x320396['constructor']?.['name']&&(_0x4b233f+='\x20Received\x20an\x20instance\x20of\x20'+_0x320396['constructor']['name']),_0x4b233f;}var _0x2b597f=(_0x4b1e21,..._0x224f1c)=>_0x5a4313('Key\x20must\x20be\x20',_0x4b1e21,..._0x224f1c);function _0x81048a(_0x539635,_0x14c113,..._0x7602f7){return _0x5a4313('Key\x20for\x20the\x20'+_0x539635+'\x20algorithm\x20must\x20be\x20',_0x14c113,..._0x7602f7);}var _0x33c1a6=_0x39ad3f=>!!_0x515249(_0x39ad3f)||'KeyObject'===_0x39ad3f?.[Symbol['toStringTag']];const _0x37c167=['CryptoKey'];var _0x2fe05a=async(_0x2c50f2,_0x57154a,_0x3bd06f,_0x454a18,_0x27d63a,_0x51aa99)=>{if(!(_0x515249(_0x57154a)||_0x57154a instanceof Uint8Array))throw new TypeError(_0x2b597f(_0x57154a,..._0x37c167,'Uint8Array'));if(!_0x454a18)throw new _0x5e8e58('JWE\x20Initialization\x20Vector\x20missing');if(!_0x27d63a)throw new _0x5e8e58('JWE\x20Authentication\x20Tag\x20missing');switch(_0x42eec1(_0x2c50f2,_0x454a18),_0x2c50f2){case'A128CBC-HS256':case'A192CBC-HS384':case'A256CBC-HS512':return _0x57154a instanceof Uint8Array&&_0x4c9594(_0x57154a,parseInt(_0x2c50f2['slice'](-0x3),0xa)),async function(_0x30348b,_0x13f290,_0x1adb39,_0x290f20,_0x5880b7,_0xaf74cb){if(!(_0x13f290 instanceof Uint8Array))throw new TypeError(_0x2b597f(_0x13f290,'Uint8Array'));const _0xb11dd3=parseInt(_0x30348b['slice'](0x1,0x4),0xa),_0x5bf161=await _0x327377['subtle']['importKey']('raw',_0x13f290['subarray'](_0xb11dd3>>0x3),'AES-CBC',!0x1,['decrypt']),_0xb406a0=await _0x327377['subtle']['importKey']('raw',_0x13f290['subarray'](0x0,_0xb11dd3>>0x3),{'hash':'SHA-'+(_0xb11dd3<<0x1),'name':'HMAC'},!0x1,['sign']),_0x264c09=_0x377b9e(_0xaf74cb,_0x290f20,_0x1adb39,_0x426104(_0xaf74cb['length']<<0x3)),_0x50a23a=new Uint8Array((await _0x327377['subtle']['sign']('HMAC',_0xb406a0,_0x264c09))['slice'](0x0,_0xb11dd3>>0x3));let _0x115c5b,_0x124d5c;try{_0x115c5b=((_0x15ff40,_0x27fb7d)=>{if(!(_0x15ff40 instanceof Uint8Array))throw new TypeError('First\x20argument\x20must\x20be\x20a\x20buffer');if(!(_0x27fb7d instanceof Uint8Array))throw new TypeError('Second\x20argument\x20must\x20be\x20a\x20buffer');if(_0x15ff40['length']!==_0x27fb7d['length'])throw new TypeError('Input\x20buffers\x20must\x20have\x20the\x20same\x20length');const _0x19349b=_0x15ff40['length'];let _0x48bd9e=0x0,_0x3fbe3a=-0x1;for(;++_0x3fbe3a<_0x19349b;)_0x48bd9e|=_0x15ff40[_0x3fbe3a]^_0x27fb7d[_0x3fbe3a];return 0x0===_0x48bd9e;})(_0x5880b7,_0x50a23a);}catch{}if(!_0x115c5b)throw new _0x185c6b();try{_0x124d5c=new Uint8Array(await _0x327377['subtle']['decrypt']({'iv':_0x290f20,'name':'AES-CBC'},_0x5bf161,_0x1adb39));}catch{}if(!_0x124d5c)throw new _0x185c6b();return _0x124d5c;}(_0x2c50f2,_0x57154a,_0x3bd06f,_0x454a18,_0x27d63a,_0x51aa99);case'A128GCM':case'A192GCM':case'A256GCM':return _0x57154a instanceof Uint8Array&&_0x4c9594(_0x57154a,parseInt(_0x2c50f2['slice'](0x1,0x4),0xa)),async function(_0x5045a3,_0x5275e2,_0x5edfc1,_0x486c3a,_0x22659c,_0x3ebe21){let _0xb27771;_0x5275e2 instanceof Uint8Array?_0xb27771=await _0x327377['subtle']['importKey']('raw',_0x5275e2,'AES-GCM',!0x1,['decrypt']):(_0x4391d9(_0x5275e2,_0x5045a3,'decrypt'),_0xb27771=_0x5275e2);try{return new Uint8Array(await _0x327377['subtle']['decrypt']({'additionalData':_0x3ebe21,'iv':_0x486c3a,'name':'AES-GCM','tagLength':0x80},_0xb27771,_0x377b9e(_0x5edfc1,_0x22659c)));}catch{throw new _0x185c6b();}}(_0x2c50f2,_0x57154a,_0x3bd06f,_0x454a18,_0x27d63a,_0x51aa99);default:throw new _0x51a5b6('Unsupported\x20JWE\x20Content\x20Encryption\x20Algorithm');}},_0x2ef579=(..._0x585750)=>{const _0x4f8c6b=_0x585750['filter'](Boolean);if(0x0===_0x4f8c6b['length']||0x1===_0x4f8c6b['length'])return!0x0;let _0x2a3560;for(const _0x25ea8d of _0x4f8c6b){const _0x13dc5f=Object['keys'](_0x25ea8d);if(_0x2a3560&&0x0!==_0x2a3560['size'])for(const _0x212342 of _0x13dc5f){if(_0x2a3560['has'](_0x212342))return!0x1;_0x2a3560['add'](_0x212342);}else _0x2a3560=new Set(_0x13dc5f);}return!0x0;};function _0xd2756f(_0x1e553c){if('object'!=typeof(_0x8e0ff6=_0x1e553c)||null===_0x8e0ff6||'[object\x20Object]'!==Object['prototype']['toString']['call'](_0x1e553c))return!0x1;var _0x8e0ff6;if(null===Object['getPrototypeOf'](_0x1e553c))return!0x0;let _0x4548b2=_0x1e553c;for(;null!==Object['getPrototypeOf'](_0x4548b2);)_0x4548b2=Object['getPrototypeOf'](_0x4548b2);return Object['getPrototypeOf'](_0x1e553c)===_0x4548b2;}var _0x11521a=[{'hash':'SHA-256','name':'HMAC'},!0x0,['sign']];function _0x51bcf9(_0x34b3dd,_0x52a538){if(_0x34b3dd['algorithm']['length']!==parseInt(_0x52a538['slice'](0x1,0x4),0xa))throw new TypeError('Invalid\x20key\x20size\x20for\x20alg:\x20'+_0x52a538);}function _0x24c2b0(_0x3d9c16,_0x3ce02b,_0x319762){if(_0x515249(_0x3d9c16))return _0x4391d9(_0x3d9c16,_0x3ce02b,_0x319762),_0x3d9c16;if(_0x3d9c16 instanceof Uint8Array)return _0x327377['subtle']['importKey']('raw',_0x3d9c16,'AES-KW',!0x0,[_0x319762]);throw new TypeError(_0x2b597f(_0x3d9c16,..._0x37c167,'Uint8Array'));}const _0x25735c=async(_0x5e26f8,_0x120a83,_0x166907)=>{const _0x4a8d37=await _0x24c2b0(_0x120a83,_0x5e26f8,'wrapKey');_0x51bcf9(_0x4a8d37,_0x5e26f8);const _0x3814d3=await _0x327377['subtle']['importKey']('raw',_0x166907,..._0x11521a);return new Uint8Array(await _0x327377['subtle']['wrapKey']('raw',_0x3814d3,_0x4a8d37,'AES-KW'));},_0x2c3e7d=async(_0x28fbe3,_0x3dff25,_0x2f24ce)=>{const _0x5386ae=await _0x24c2b0(_0x3dff25,_0x28fbe3,'unwrapKey');_0x51bcf9(_0x5386ae,_0x28fbe3);const _0x2f7940=await _0x327377['subtle']['unwrapKey']('raw',_0x2f24ce,_0x5386ae,'AES-KW',..._0x11521a);return new Uint8Array(await _0x327377['subtle']['exportKey']('raw',_0x2f7940));};async function _0x5b9f24(_0x2bd48b,_0xb4d074,_0x4332ba,_0x54abc7,_0x35d937=new Uint8Array(0x0),_0x384264=new Uint8Array(0x0)){if(!_0x515249(_0x2bd48b))throw new TypeError(_0x2b597f(_0x2bd48b,..._0x37c167));if(_0x4391d9(_0x2bd48b,'ECDH'),!_0x515249(_0xb4d074))throw new TypeError(_0x2b597f(_0xb4d074,..._0x37c167));_0x4391d9(_0xb4d074,'ECDH','deriveBits');const _0x1af5c6=_0x377b9e(_0x224080(_0x109970['encode'](_0x4332ba)),_0x224080(_0x35d937),_0x224080(_0x384264),_0x22a68c(_0x54abc7));let _0x1973c5;return _0x1973c5='X25519'===_0x2bd48b['algorithm']['name']?0x100:'X448'===_0x2bd48b['algorithm']['name']?0x1c0:Math['ceil'](parseInt(_0x2bd48b['algorithm']['namedCurve']['substr'](-0x3),0xa)/0x8)<<0x3,async function(_0x1137c8,_0x4b283d,_0x3dcde3){const _0x212807=Math['ceil']((_0x4b283d>>0x3)/0x20),_0x2d9d44=new Uint8Array(0x20*_0x212807);for(let _0x167fd6=0x0;_0x167fd6<_0x212807;_0x167fd6++){const _0x133b2e=new Uint8Array(0x4+_0x1137c8['length']+_0x3dcde3['length']);_0x133b2e['set'](_0x22a68c(_0x167fd6+0x1)),_0x133b2e['set'](_0x1137c8,0x4),_0x133b2e['set'](_0x3dcde3,0x4+_0x1137c8['length']),_0x2d9d44['set'](await _0xd66d9d('sha256',_0x133b2e),0x20*_0x167fd6);}return _0x2d9d44['slice'](0x0,_0x4b283d>>0x3);}(new Uint8Array(await _0x327377['subtle']['deriveBits']({'name':_0x2bd48b['algorithm']['name'],'public':_0x2bd48b},_0xb4d074,_0x1973c5)),_0x54abc7,_0x1af5c6);}function _0x1ed6da(_0x154b72){if(!_0x515249(_0x154b72))throw new TypeError(_0x2b597f(_0x154b72,..._0x37c167));return['P-256','P-384','P-521']['includes'](_0x154b72['algorithm']['namedCurve'])||'X25519'===_0x154b72['algorithm']['name']||'X448'===_0x154b72['algorithm']['name'];}async function _0x432697(_0x369515,_0x269344,_0x525c6f,_0x3aebdd){!function(_0x5ccd0d){if(!(_0x5ccd0d instanceof Uint8Array)||_0x5ccd0d['length']<0x8)throw new _0x5e8e58('PBES2\x20Salt\x20Input\x20must\x20be\x208\x20or\x20more\x20octets');}(_0x369515);const _0x39463d=function(_0x5f4c20,_0x1da9b1){return _0x377b9e(_0x109970['encode'](_0x5f4c20),new Uint8Array([0x0]),_0x1da9b1);}(_0x269344,_0x369515),_0x35266c=parseInt(_0x269344['slice'](0xd,0x10),0xa),_0x439058={'hash':'SHA-'+_0x269344['slice'](0x8,0xb),'iterations':_0x525c6f,'name':'PBKDF2','salt':_0x39463d},_0x52c81a={'length':_0x35266c,'name':'AES-KW'},_0x342421=await function(_0x5e07e6,_0x5e4419){if(_0x5e07e6 instanceof Uint8Array)return _0x327377['subtle']['importKey']('raw',_0x5e07e6,'PBKDF2',!0x1,['deriveBits']);if(_0x515249(_0x5e07e6))return _0x4391d9(_0x5e07e6,_0x5e4419,'deriveBits','deriveKey'),_0x5e07e6;throw new TypeError(_0x2b597f(_0x5e07e6,..._0x37c167,'Uint8Array'));}(_0x3aebdd,_0x269344);if(_0x342421['usages']['includes']('deriveBits'))return new Uint8Array(await _0x327377['subtle']['deriveBits'](_0x439058,_0x342421,_0x35266c));if(_0x342421['usages']['includes']('deriveKey'))return _0x327377['subtle']['deriveKey'](_0x439058,_0x342421,_0x52c81a,!0x1,['wrapKey','unwrapKey']);throw new TypeError('PBKDF2\x20key\x20\x22usages\x22\x20must\x20include\x20\x22deriveBits\x22\x20or\x20\x22deriveKey\x22');}function _0x42afdb(_0x490911){switch(_0x490911){case'RSA-OAEP':case'RSA-OAEP-256':case'RSA-OAEP-384':case'RSA-OAEP-512':return'RSA-OAEP';default:throw new _0x51a5b6('alg\x20'+_0x490911+'\x20is\x20not\x20supported\x20either\x20by\x20JOSE\x20or\x20your\x20javascript\x20runtime');}}var _0x25afa6=(_0x35de6f,_0x4cb6f9)=>{if(_0x35de6f['startsWith']('RS')||_0x35de6f['startsWith']('PS')){const {modulusLength:_0x5117aa}=_0x4cb6f9['algorithm'];if('number'!=typeof _0x5117aa||_0x5117aa<0x800)throw new TypeError(_0x35de6f+'\x20requires\x20key\x20modulusLength\x20to\x20be\x202048\x20bits\x20or\x20larger');}};function _0x14e2b7(_0x403c1e){return _0xd2756f(_0x403c1e)&&'string'==typeof _0x403c1e['kty'];}var _0x5ca6c0=async _0x508fc4=>{if(!_0x508fc4['alg'])throw new TypeError('\x22alg\x22\x20argument\x20is\x20required\x20when\x20\x22jwk.alg\x22\x20is\x20not\x20present');const {algorithm:_0x42007e,keyUsages:_0x43fe6e}=function(_0x4c992f){let _0x748c97,_0x84a27a;switch(_0x4c992f['kty']){case'RSA':switch(_0x4c992f['alg']){case'PS256':case'PS384':case'PS512':_0x748c97={'name':'RSA-PSS','hash':'SHA-'+_0x4c992f['alg']['slice'](-0x3)},_0x84a27a=_0x4c992f['d']?['sign']:['verify'];break;case'RS256':case'RS384':case'RS512':_0x748c97={'name':'RSASSA-PKCS1-v1_5','hash':'SHA-'+_0x4c992f['alg']['slice'](-0x3)},_0x84a27a=_0x4c992f['d']?['sign']:['verify'];break;case'RSA-OAEP':case'RSA-OAEP-256':case'RSA-OAEP-384':case'RSA-OAEP-512':_0x748c97={'name':'RSA-OAEP','hash':'SHA-'+(parseInt(_0x4c992f['alg']['slice'](-0x3),0xa)||0x1)},_0x84a27a=_0x4c992f['d']?['decrypt','unwrapKey']:['encrypt','wrapKey'];break;default:throw new _0x51a5b6('Invalid\x20or\x20unsupported\x20JWK\x20\x22alg\x22\x20(Algorithm)\x20Parameter\x20value');}break;case'EC':switch(_0x4c992f['alg']){case'ES256':_0x748c97={'name':'ECDSA','namedCurve':'P-256'},_0x84a27a=_0x4c992f['d']?['sign']:['verify'];break;case'ES384':_0x748c97={'name':'ECDSA','namedCurve':'P-384'},_0x84a27a=_0x4c992f['d']?['sign']:['verify'];break;case'ES512':_0x748c97={'name':'ECDSA','namedCurve':'P-521'},_0x84a27a=_0x4c992f['d']?['sign']:['verify'];break;case'ECDH-ES':case'ECDH-ES+A128KW':case'ECDH-ES+A192KW':case'ECDH-ES+A256KW':_0x748c97={'name':'ECDH','namedCurve':_0x4c992f['crv']},_0x84a27a=_0x4c992f['d']?['deriveBits']:[];break;default:throw new _0x51a5b6('Invalid\x20or\x20unsupported\x20JWK\x20\x22alg\x22\x20(Algorithm)\x20Parameter\x20value');}break;case'OKP':switch(_0x4c992f['alg']){case'Ed25519':_0x748c97={'name':'Ed25519'},_0x84a27a=_0x4c992f['d']?['sign']:['verify'];break;case'EdDSA':_0x748c97={'name':_0x4c992f['crv']},_0x84a27a=_0x4c992f['d']?['sign']:['verify'];break;case'ECDH-ES':case'ECDH-ES+A128KW':case'ECDH-ES+A192KW':case'ECDH-ES+A256KW':_0x748c97={'name':_0x4c992f['crv']},_0x84a27a=_0x4c992f['d']?['deriveBits']:[];break;default:throw new _0x51a5b6('Invalid\x20or\x20unsupported\x20JWK\x20\x22alg\x22\x20(Algorithm)\x20Parameter\x20value');}break;default:throw new _0x51a5b6('Invalid\x20or\x20unsupported\x20JWK\x20\x22kty\x22\x20(Key\x20Type)\x20Parameter\x20value');}return{'algorithm':_0x748c97,'keyUsages':_0x84a27a};}(_0x508fc4),_0x2e9b1d=[_0x42007e,_0x508fc4['ext']??!0x1,_0x508fc4['key_ops']??_0x43fe6e],_0x2099d9={..._0x508fc4};return delete _0x2099d9['alg'],delete _0x2099d9['use'],_0x327377['subtle']['importKey']('jwk',_0x2099d9,..._0x2e9b1d);};const _0x4a67d4=_0x407254=>_0x491e5c(_0x407254);let _0x2369c7,_0xf6c5b0;const _0x5a95b3=_0x5aaa33=>'KeyObject'===_0x5aaa33?.[Symbol['toStringTag']],_0x2ee44b=async(_0x1199f8,_0x1d8035,_0x36ab31,_0x358029,_0x3e11ad=!0x1)=>{let _0xceb31a=_0x1199f8['get'](_0x1d8035);if(_0xceb31a?.[_0x358029])return _0xceb31a[_0x358029];const _0x24f061=await _0x5ca6c0({..._0x36ab31,'alg':_0x358029});return _0x3e11ad&&Object['freeze'](_0x1d8035),_0xceb31a?_0xceb31a[_0x358029]=_0x24f061:_0x1199f8['set'](_0x1d8035,{[_0x358029]:_0x24f061}),_0x24f061;};var _0x252b79=(_0x1312d2,_0x5bb839)=>{if(_0x5a95b3(_0x1312d2)){let _0x179d65=_0x1312d2['export']({'format':'jwk'});return delete _0x179d65['d'],delete _0x179d65['dp'],delete _0x179d65['dq'],delete _0x179d65['p'],delete _0x179d65['q'],delete _0x179d65['qi'],_0x179d65['k']?_0x4a67d4(_0x179d65['k']):(_0xf6c5b0||(_0xf6c5b0=new WeakMap()),_0x2ee44b(_0xf6c5b0,_0x1312d2,_0x179d65,_0x5bb839));}return _0x14e2b7(_0x1312d2)?_0x1312d2['k']?_0x491e5c(_0x1312d2['k']):(_0xf6c5b0||(_0xf6c5b0=new WeakMap()),_0x2ee44b(_0xf6c5b0,_0x1312d2,_0x1312d2,_0x5bb839,!0x0)):_0x1312d2;},_0x28487a=(_0x16aadf,_0x4cec95)=>{if(_0x5a95b3(_0x16aadf)){let _0x2b02ea=_0x16aadf['export']({'format':'jwk'});return _0x2b02ea['k']?_0x4a67d4(_0x2b02ea['k']):(_0x2369c7||(_0x2369c7=new WeakMap()),_0x2ee44b(_0x2369c7,_0x16aadf,_0x2b02ea,_0x4cec95));}return _0x14e2b7(_0x16aadf)?_0x16aadf['k']?_0x491e5c(_0x16aadf['k']):(_0x2369c7||(_0x2369c7=new WeakMap()),_0x2ee44b(_0x2369c7,_0x16aadf,_0x16aadf,_0x4cec95,!0x0)):_0x16aadf;};function _0x4b81f6(_0x115d24){switch(_0x115d24){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 _0x51a5b6('Unsupported\x20JWE\x20Algorithm:\x20'+_0x115d24);}}var _0x3c0aab=_0x4bda79=>_0x4ed8e4(new Uint8Array(_0x4b81f6(_0x4bda79)>>0x3)),_0x4f19f2=(_0x4681a2,_0x1a861c)=>'-----BEGIN\x20'+_0x1a861c+'-----\x0a'+(_0x4681a2['match'](/.{1,64}/g)||[])['join']('\x0a')+'\x0a-----END\x20'+_0x1a861c+'-----';const _0x44ce42=async(_0x3c1ebc,_0x300148,_0x3f289c)=>{if(!_0x515249(_0x3f289c))throw new TypeError(_0x2b597f(_0x3f289c,..._0x37c167));if(!_0x3f289c['extractable'])throw new TypeError('CryptoKey\x20is\x20not\x20extractable');if(_0x3f289c['type']!==_0x3c1ebc)throw new TypeError('key\x20is\x20not\x20a\x20'+_0x3c1ebc+'\x20key');return _0x4f19f2(_0x146989(new Uint8Array(await _0x327377['subtle']['exportKey'](_0x300148,_0x3f289c))),_0x3c1ebc['toUpperCase']()+'\x20KEY');},_0x3e5fd6=_0x66fec9=>_0x44ce42('public','spki',_0x66fec9),_0x43478c=_0x5551bb=>_0x44ce42('private','pkcs8',_0x5551bb),_0x3e78b8=(_0x2fbf4f,_0x12d45b,_0x4a6040=0x0)=>{0x0===_0x4a6040&&(_0x12d45b['unshift'](_0x12d45b['length']),_0x12d45b['unshift'](0x6));const _0x567b35=_0x2fbf4f['indexOf'](_0x12d45b[0x0],_0x4a6040);if(-0x1===_0x567b35)return!0x1;const _0x3fc97a=_0x2fbf4f['subarray'](_0x567b35,_0x567b35+_0x12d45b['length']);return _0x3fc97a['length']===_0x12d45b['length']&&(_0x3fc97a['every']((_0x1f6e16,_0x475185)=>_0x1f6e16===_0x12d45b[_0x475185])||_0x3e78b8(_0x2fbf4f,_0x12d45b,_0x567b35+0x1));},_0x559231=_0x4c4d01=>{switch(!0x0){case _0x3e78b8(_0x4c4d01,[0x2a,0x86,0x48,0xce,0x3d,0x3,0x1,0x7]):return'P-256';case _0x3e78b8(_0x4c4d01,[0x2b,0x81,0x4,0x0,0x22]):return'P-384';case _0x3e78b8(_0x4c4d01,[0x2b,0x81,0x4,0x0,0x23]):return'P-521';case _0x3e78b8(_0x4c4d01,[0x2b,0x65,0x6e]):return'X25519';case _0x3e78b8(_0x4c4d01,[0x2b,0x65,0x6f]):return'X448';case _0x3e78b8(_0x4c4d01,[0x2b,0x65,0x70]):return'Ed25519';case _0x3e78b8(_0x4c4d01,[0x2b,0x65,0x71]):return'Ed448';default:throw new _0x51a5b6('Invalid\x20or\x20unsupported\x20EC\x20Key\x20Curve\x20or\x20OKP\x20Key\x20Sub\x20Type');}},_0x4990eb=async(_0x4acf49,_0x14919b,_0xbabb63,_0x3fa9fb,_0x21faef)=>{let _0x280179,_0x57b594;const _0x271f8e=new Uint8Array(atob(_0xbabb63['replace'](_0x4acf49,''))['split']('')['map'](_0x1ec908=>_0x1ec908['charCodeAt'](0x0))),_0x2b2c2e='spki'===_0x14919b;switch(_0x3fa9fb){case'PS256':case'PS384':case'PS512':_0x280179={'name':'RSA-PSS','hash':'SHA-'+_0x3fa9fb['slice'](-0x3)},_0x57b594=_0x2b2c2e?['verify']:['sign'];break;case'RS256':case'RS384':case'RS512':_0x280179={'name':'RSASSA-PKCS1-v1_5','hash':'SHA-'+_0x3fa9fb['slice'](-0x3)},_0x57b594=_0x2b2c2e?['verify']:['sign'];break;case'RSA-OAEP':case'RSA-OAEP-256':case'RSA-OAEP-384':case'RSA-OAEP-512':_0x280179={'name':'RSA-OAEP','hash':'SHA-'+(parseInt(_0x3fa9fb['slice'](-0x3),0xa)||0x1)},_0x57b594=_0x2b2c2e?['encrypt','wrapKey']:['decrypt','unwrapKey'];break;case'ES256':_0x280179={'name':'ECDSA','namedCurve':'P-256'},_0x57b594=_0x2b2c2e?['verify']:['sign'];break;case'ES384':_0x280179={'name':'ECDSA','namedCurve':'P-384'},_0x57b594=_0x2b2c2e?['verify']:['sign'];break;case'ES512':_0x280179={'name':'ECDSA','namedCurve':'P-521'},_0x57b594=_0x2b2c2e?['verify']:['sign'];break;case'ECDH-ES':case'ECDH-ES+A128KW':case'ECDH-ES+A192KW':case'ECDH-ES+A256KW':{const _0x5f6c1c=_0x559231(_0x271f8e);_0x280179=_0x5f6c1c['startsWith']('P-')?{'name':'ECDH','namedCurve':_0x5f6c1c}:{'name':_0x5f6c1c},_0x57b594=_0x2b2c2e?[]:['deriveBits'];break;}case'Ed25519':_0x280179={'name':'Ed25519'},_0x57b594=_0x2b2c2e?['verify']:['sign'];break;case'EdDSA':_0x280179={'name':_0x559231(_0x271f8e)},_0x57b594=_0x2b2c2e?['verify']:['sign'];break;default:throw new _0x51a5b6('Invalid\x20or\x20unsupported\x20\x22alg\x22\x20(Algorithm)\x20value');}return _0x327377['subtle']['importKey'](_0x14919b,_0x271f8e,_0x280179,_0x21faef?.['extractable']??!0x1,_0x57b594);},_0x4c5496=(_0x4c4e45,_0x4fab07,_0x5e52a9)=>_0x4990eb(/(?:-----(?:BEGIN|END) PRIVATE KEY-----|\s)/g,'pkcs8',_0x4c4e45,_0x4fab07,_0x5e52a9),_0x1a0397=(_0x2d75ce,_0x316b89,_0x6c814)=>_0x4990eb(/(?:-----(?:BEGIN|END) PUBLIC KEY-----|\s)/g,'spki',_0x2d75ce,_0x316b89,_0x6c814);function _0x5a9590(_0x10f260){const _0x216768=[];let _0x500c61=0x0;for(;_0x500c61<_0x10f260['length'];){const _0x4964d5=_0x21a469(_0x10f260['subarray'](_0x500c61));_0x216768['push'](_0x4964d5),_0x500c61+=_0x4964d5['byteLength'];}return _0x216768;}function _0x21a469(_0x4e3173){let _0x4ed9f2=0x0,_0x36cf6c=0x1f&_0x4e3173[0x0];if(_0x4ed9f2++,0x1f===_0x36cf6c){for(_0x36cf6c=0x0;_0x4e3173[_0x4ed9f2]>=0x80;)_0x36cf6c=0x80*_0x36cf6c+_0x4e3173[_0x4ed9f2]-0x80,_0x4ed9f2++;_0x36cf6c=0x80*_0x36cf6c+_0x4e3173[_0x4ed9f2]-0x80,_0x4ed9f2++;}let _0x3740a1=0x0;if(_0x4e3173[_0x4ed9f2]<0x80)_0x3740a1=_0x4e3173[_0x4ed9f2],_0x4ed9f2++;else{if(0x80===_0x3740a1){for(_0x3740a1=0x0;0x0!==_0x4e3173[_0x4ed9f2+_0x3740a1]||0x0!==_0x4e3173[_0x4ed9f2+_0x3740a1+0x1];){if(_0x3740a1>_0x4e3173['byteLength'])throw new TypeError('invalid\x20indefinite\x20form\x20length');_0x3740a1++;}const _0x45844f=_0x4ed9f2+_0x3740a1+0x2;return{'byteLength':_0x45844f,'contents':_0x4e3173['subarray'](_0x4ed9f2,_0x4ed9f2+_0x3740a1),'raw':_0x4e3173['subarray'](0x0,_0x45844f)};}{const _0xd0dda2=0x7f&_0x4e3173[_0x4ed9f2];_0x4ed9f2++,_0x3740a1=0x0;for(let _0x429dfe=0x0;_0x429dfe<_0xd0dda2;_0x429dfe++)_0x3740a1=0x100*_0x3740a1+_0x4e3173[_0x4ed9f2],_0x4ed9f2++;}}const _0x3bdea4=_0x4ed9f2+_0x3740a1;return{'byteLength':_0x3bdea4,'contents':_0x4e3173['subarray'](_0x4ed9f2,_0x3bdea4),'raw':_0x4e3173['subarray'](0x0,_0x3bdea4)};}const _0x4d3792=(_0x81f619,_0x141d31,_0x252441)=>{let _0x584354;try{_0x584354=function(_0xb6e72){const _0x5871ee=_0xb6e72['replace'](/(?:-----(?:BEGIN|END) CERTIFICATE-----|\s)/g,''),_0x12fc97=_0x1c7897(_0x5871ee);return _0x4f19f2(function(_0x39c168){const _0x57501f=_0x5a9590(_0x5a9590(_0x21a469(_0x39c168)['contents'])[0x0]['contents']);return _0x146989(_0x57501f[0xa0===_0x57501f[0x0]['raw'][0x0]?0x6:0x5]['raw']);}(_0x12fc97),'PUBLIC\x20KEY');}(_0x81f619);}catch(_0x37e122){throw new TypeError('Failed\x20to\x20parse\x20the\x20X.509\x20certificate',{'cause':_0x37e122});}return _0x1a0397(_0x584354,_0x141d31,_0x252441);};async function _0x3450cc(_0x510181,_0x19da9e,_0xcabfd3){if('string'!=typeof _0x510181||0x0!==_0x510181['indexOf']('-----BEGIN\x20PUBLIC\x20KEY-----'))throw new TypeError('\x22spki\x22\x20must\x20be\x20SPKI\x20formatted\x20string');return _0x1a0397(_0x510181,_0x19da9e,_0xcabfd3);}async function _0xc68152(_0xc83a0c,_0x491eb5,_0x4cbf48){if('string'!=typeof _0xc83a0c||0x0!==_0xc83a0c['indexOf']('-----BEGIN\x20CERTIFICATE-----'))throw new TypeError('\x22x509\x22\x20must\x20be\x20X.509\x20formatted\x20string');return _0x4d3792(_0xc83a0c,_0x491eb5,_0x4cbf48);}async function _0x5db37f(_0x4832d4,_0x44570a,_0x61aa48){if('string'!=typeof _0x4832d4||0x0!==_0x4832d4['indexOf']('-----BEGIN\x20PRIVATE\x20KEY-----'))throw new TypeError('\x22pkcs8\x22\x20must\x20be\x20PKCS#8\x20formatted\x20string');return _0x4c5496(_0x4832d4,_0x44570a,_0x61aa48);}async function _0x417c79(_0x23e445,_0x57aee3){if(!_0xd2756f(_0x23e445))throw new TypeError('JWK\x20must\x20be\x20an\x20object');switch(_0x57aee3||(_0x57aee3=_0x23e445['alg']),_0x23e445['kty']){case'oct':if('string'!=typeof _0x23e445['k']||!_0x23e445['k'])throw new TypeError('missing\x20\x22k\x22\x20(Key\x20Value)\x20Parameter\x20value');return _0x491e5c(_0x23e445['k']);case'RSA':if('oth'in _0x23e445&&void 0x0!==_0x23e445['oth'])throw new _0x51a5b6('RSA\x20JWK\x20\x22oth\x22\x20(Other\x20Primes\x20Info)\x20Parameter\x20value\x20is\x20not\x20supported');case'EC':case'OKP':return _0x5ca6c0({..._0x23e445,'alg':_0x57aee3});default:throw new _0x51a5b6('Unsupported\x20\x22kty\x22\x20(Key\x20Type)\x20Parameter\x20value');}}const _0x588055=_0xb96917=>_0xb96917?.[Symbol['toStringTag']],_0x4475da=(_0x3e7463,_0x4e8e9c,_0x2fc8f7)=>{if(void 0x0!==_0x4e8e9c['use']&&'sig'!==_0x4e8e9c['use'])throw new TypeError('Invalid\x20key\x20for\x20this\x20operation,\x20when\x20present\x20its\x20use\x20must\x20be\x20sig');if(void 0x0!==_0x4e8e9c['key_ops']&&!0x0!==_0x4e8e9c['key_ops']['includes']?.(_0x2fc8f7))throw new TypeError('Invalid\x20key\x20for\x20this\x20operation,\x20when\x20present\x20its\x20key_ops\x20must\x20include\x20'+_0x2fc8f7);if(void 0x0!==_0x4e8e9c['alg']&&_0x4e8e9c['alg']!==_0x3e7463)throw new TypeError('Invalid\x20key\x20for\x20this\x20operation,\x20when\x20present\x20its\x20alg\x20must\x20be\x20'+_0x3e7463);return!0x0;};function _0x55f17c(_0x4a19ff,_0x5ad845,_0xf19953,_0x2ecf1b){_0x5ad845['startsWith']('HS')||'dir'===_0x5ad845||_0x5ad845['startsWith']('PBES2')||/^A\d{3}(?:GCM)?KW$/['test'](_0x5ad845)?((_0x41eb2c,_0x2df1db,_0x5abe88,_0x8efe3c)=>{if(!(_0x2df1db instanceof Uint8Array)){if(_0x8efe3c&&_0x14e2b7(_0x2df1db)){if(function(_0xfe3c7b){return _0x14e2b7(_0xfe3c7b)&&'oct'===_0xfe3c7b['kty']&&'string'==typeof _0xfe3c7b['k'];}(_0x2df1db)&&_0x4475da(_0x41eb2c,_0x2df1db,_0x5abe88))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(!_0x33c1a6(_0x2df1db))throw new TypeError(_0x81048a(_0x41eb2c,_0x2df1db,..._0x37c167,'Uint8Array',_0x8efe3c?'JSON\x20Web\x20Key':null));if('secret'!==_0x2df1db['type'])throw new TypeError(_0x588055(_0x2df1db)+'\x20instances\x20for\x20symmetric\x20algorithms\x20must\x20be\x20of\x20type\x20\x22secret\x22');}})(_0x5ad845,_0xf19953,_0x2ecf1b,_0x4a19ff):((_0x299c27,_0x513dde,_0x47188f,_0x484b36)=>{if(_0x484b36&&_0x14e2b7(_0x513dde))switch(_0x47188f){case'sign':if(function(_0x442d84){return'oct'!==_0x442d84['kty']&&'string'==typeof _0x442d84['d'];}(_0x513dde)&&_0x4475da(_0x299c27,_0x513dde,_0x47188f))return;throw new TypeError('JSON\x20Web\x20Key\x20for\x20this\x20operation\x20be\x20a\x20private\x20JWK');case'verify':if(function(_0x229a10){return'oct'!==_0x229a10['kty']&&void 0x0===_0x229a10['d'];}(_0x513dde)&&_0x4475da(_0x299c27,_0x513dde,_0x47188f))return;throw new TypeError('JSON\x20Web\x20Key\x20for\x20this\x20operation\x20be\x20a\x20public\x20JWK');}if(!_0x33c1a6(_0x513dde))throw new TypeError(_0x81048a(_0x299c27,_0x513dde,..._0x37c167,_0x484b36?'JSON\x20Web\x20Key':null));if('secret'===_0x513dde['type'])throw new TypeError(_0x588055(_0x513dde)+'\x20instances\x20for\x20asymmetric\x20algorithms\x20must\x20not\x20be\x20of\x20type\x20\x22secret\x22');if('sign'===_0x47188f&&'public'===_0x513dde['type'])throw new TypeError(_0x588055(_0x513dde)+'\x20instances\x20for\x20asymmetric\x20algorithm\x20signing\x20must\x20be\x20of\x20type\x20\x22private\x22');if('decrypt'===_0x47188f&&'public'===_0x513dde['type'])throw new TypeError(_0x588055(_0x513dde)+'\x20instances\x20for\x20asymmetric\x20algorithm\x20decryption\x20must\x20be\x20of\x20type\x20\x22private\x22');if(_0x513dde['algorithm']&&'verify'===_0x47188f&&'private'===_0x513dde['type'])throw new TypeError(_0x588055(_0x513dde)+'\x20instances\x20for\x20asymmetric\x20algorithm\x20verifying\x20must\x20be\x20of\x20type\x20\x22public\x22');if(_0x513dde['algorithm']&&'encrypt'===_0x47188f&&'private'===_0x513dde['type'])throw new TypeError(_0x588055(_0x513dde)+'\x20instances\x20for\x20asymmetric\x20algorithm\x20encryption\x20must\x20be\x20of\x20type\x20\x22public\x22');})(_0x5ad845,_0xf19953,_0x2ecf1b,_0x4a19ff);}var _0x5b6b80=_0x55f17c['bind'](void 0x0,!0x1);const _0x33185c=_0x55f17c['bind'](void 0x0,!0x0);var _0x4716f5=async(_0x30d2ee,_0xd3a4e4,_0x4c6f0f,_0x4ce6f2,_0x40aff1)=>{if(!(_0x515249(_0x4c6f0f)||_0x4c6f0f instanceof Uint8Array))throw new TypeError(_0x2b597f(_0x4c6f0f,..._0x37c167,'Uint8Array'));switch(_0x4ce6f2?_0x42eec1(_0x30d2ee,_0x4ce6f2):_0x4ce6f2=_0x4ed8e4(new Uint8Array(_0x44c51a(_0x30d2ee)>>0x3)),_0x30d2ee){case'A128CBC-HS256':case'A192CBC-HS384':case'A256CBC-HS512':return _0x4c6f0f instanceof Uint8Array&&_0x4c9594(_0x4c6f0f,parseInt(_0x30d2ee['slice'](-0x3),0xa)),async function(_0x3c67dc,_0x5c496c,_0x59001f,_0x3b1f73,_0x15ff71){if(!(_0x59001f instanceof Uint8Array))throw new TypeError(_0x2b597f(_0x59001f,'Uint8Array'));const _0x2a072a=parseInt(_0x3c67dc['slice'](0x1,0x4),0xa),_0x4e35dd=await _0x327377['subtle']['importKey']('raw',_0x59001f['subarray'](_0x2a072a>>0x3),'AES-CBC',!0x1,['encrypt']),_0x1e26c0=await _0x327377['subtle']['importKey']('raw',_0x59001f['subarray'](0x0,_0x2a072a>>0x3),{'hash':'SHA-'+(_0x2a072a<<0x1),'name':'HMAC'},!0x1,['sign']),_0xc2f539=new Uint8Array(await _0x327377['subtle']['encrypt']({'iv':_0x3b1f73,'name':'AES-CBC'},_0x4e35dd,_0x5c496c)),_0x318e15=_0x377b9e(_0x15ff71,_0x3b1f73,_0xc2f539,_0x426104(_0x15ff71['length']<<0x3));return{'ciphertext':_0xc2f539,'tag':new Uint8Array((await _0x327377['subtle']['sign']('HMAC',_0x1e26c0,_0x318e15))['slice'](0x0,_0x2a072a>>0x3)),'iv':_0x3b1f73};}(_0x30d2ee,_0xd3a4e4,_0x4c6f0f,_0x4ce6f2,_0x40aff1);case'A128GCM':case'A192GCM':case'A256GCM':return _0x4c6f0f instanceof Uint8Array&&_0x4c9594(_0x4c6f0f,parseInt(_0x30d2ee['slice'](0x1,0x4),0xa)),async function(_0x580e04,_0x389b79,_0x3a16c7,_0x2d0f73,_0x33b952){let _0xf8e9a4;_0x3a16c7 instanceof Uint8Array?_0xf8e9a4=await _0x327377['subtle']['importKey']('raw',_0x3a16c7,'AES-GCM',!0x1,['encrypt']):(_0x4391d9(_0x3a16c7,_0x580e04,'encrypt'),_0xf8e9a4=_0x3a16c7);const _0x840944=new Uint8Array(await _0x327377['subtle']['encrypt']({'additionalData':_0x33b952,'iv':_0x2d0f73,'name':'AES-GCM','tagLength':0x80},_0xf8e9a4,_0x389b79)),_0x137147=_0x840944['slice'](-0x10);return{'ciphertext':_0x840944['slice'](0x0,-0x10),'tag':_0x137147,'iv':_0x2d0f73};}(_0x30d2ee,_0xd3a4e4,_0x4c6f0f,_0x4ce6f2,_0x40aff1);default:throw new _0x51a5b6('Unsupported\x20JWE\x20Content\x20Encryption\x20Algorithm');}},_0x625f62=async function(_0x2bd2c0,_0x302483,_0xb33ac,_0xfc241c,_0x5d60be){switch(_0x5b6b80(_0x2bd2c0,_0x302483,'decrypt'),_0x302483=await _0x28487a?.(_0x302483,_0x2bd2c0)||_0x302483,_0x2bd2c0){case'dir':if(void 0x0!==_0xb33ac)throw new _0x5e8e58('Encountered\x20unexpected\x20JWE\x20Encrypted\x20Key');return _0x302483;case'ECDH-ES':if(void 0x0!==_0xb33ac)throw new _0x5e8e58('Encountered\x20unexpected\x20JWE\x20Encrypted\x20Key');case'ECDH-ES+A128KW':case'ECDH-ES+A192KW':case'ECDH-ES+A256KW':{if(!_0xd2756f(_0xfc241c['epk']))throw new _0x5e8e58('JOSE\x20Header\x20\x22epk\x22\x20(Ephemeral\x20Public\x20Key)\x20missing\x20or\x20invalid');if(!_0x1ed6da(_0x302483))throw new _0x51a5b6('ECDH\x20with\x20the\x20provided\x20key\x20is\x20not\x20allowed\x20or\x20not\x20supported\x20by\x20your\x20javascript\x20runtime');const _0x12662a=await _0x417c79(_0xfc241c['epk'],_0x2bd2c0);let _0x3c7118,_0x2a0d9f;if(void 0x0!==_0xfc241c['apu']){if('string'!=typeof _0xfc241c['apu'])throw new _0x5e8e58('JOSE\x20Header\x20\x22apu\x22\x20(Agreement\x20PartyUInfo)\x20invalid');try{_0x3c7118=_0x491e5c(_0xfc241c['apu']);}catch{throw new _0x5e8e58('Failed\x20to\x20base64url\x20decode\x20the\x20apu');}}if(void 0x0!==_0xfc241c['apv']){if('string'!=typeof _0xfc241c['apv'])throw new _0x5e8e58('JOSE\x20Header\x20\x22apv\x22\x20(Agreement\x20PartyVInfo)\x20invalid');try{_0x2a0d9f=_0x491e5c(_0xfc241c['apv']);}catch{throw new _0x5e8e58('Failed\x20to\x20base64url\x20decode\x20the\x20apv');}}const _0x45581f=await _0x5b9f24(_0x12662a,_0x302483,'ECDH-ES'===_0x2bd2c0?_0xfc241c['enc']:_0x2bd2c0,'ECDH-ES'===_0x2bd2c0?_0x4b81f6(_0xfc241c['enc']):parseInt(_0x2bd2c0['slice'](-0x5,-0x2),0xa),_0x3c7118,_0x2a0d9f);if('ECDH-ES'===_0x2bd2c0)return _0x45581f;if(void 0x0===_0xb33ac)throw new _0x5e8e58('JWE\x20Encrypted\x20Key\x20missing');return _0x2c3e7d(_0x2bd2c0['slice'](-0x6),_0x45581f,_0xb33ac);}case'RSA1_5':case'RSA-OAEP':case'RSA-OAEP-256':case'RSA-OAEP-384':case'RSA-OAEP-512':if(void 0x0===_0xb33ac)throw new _0x5e8e58('JWE\x20Encrypted\x20Key\x20missing');return(async(_0x49150b,_0x2dc9c0,_0x49f5b4)=>{if(!_0x515249(_0x2dc9c0))throw new TypeError(_0x2b597f(_0x2dc9c0,..._0x37c167));if(_0x4391d9(_0x2dc9c0,_0x49150b,'decrypt','unwrapKey'),_0x25afa6(_0x49150b,_0x2dc9c0),_0x2dc9c0['usages']['includes']('decrypt'))return new Uint8Array(await _0x327377['subtle']['decrypt'](_0x42afdb(_0x49150b),_0x2dc9c0,_0x49f5b4));if(_0x2dc9c0['usages']['includes']('unwrapKey')){const _0x3f788f=await _0x327377['subtle']['unwrapKey']('raw',_0x49f5b4,_0x2dc9c0,_0x42afdb(_0x49150b),..._0x11521a);return new Uint8Array(await _0x327377['subtle']['exportKey']('raw',_0x3f788f));}throw new TypeError('RSA-OAEP\x20key\x20\x22usages\x22\x20must\x20include\x20\x22decrypt\x22\x20or\x20\x22unwrapKey\x22\x20for\x20this\x20operation');})(_0x2bd2c0,_0x302483,_0xb33ac);case'PBES2-HS256+A128KW':case'PBES2-HS384+A192KW':case'PBES2-HS512+A256KW':{if(void 0x0===_0xb33ac)throw new _0x5e8e58('JWE\x20Encrypted\x20Key\x20missing');if('number'!=typeof _0xfc241c['p2c'])throw new _0x5e8e58('JOSE\x20Header\x20\x22p2c\x22\x20(PBES2\x20Count)\x20missing\x20or\x20invalid');const _0x27a66a=_0x5d60be?.['maxPBES2Count']||0x2710;if(_0xfc241c['p2c']>_0x27a66a)throw new _0x5e8e58('JOSE\x20Header\x20\x22p2c\x22\x20(PBES2\x20Count)\x20out\x20is\x20of\x20acceptable\x20bounds');if('string'!=typeof _0xfc241c['p2s'])throw new _0x5e8e58('JOSE\x20Header\x20\x22p2s\x22\x20(PBES2\x20Salt)\x20missing\x20or\x20invalid');let _0x32c1cc;try{_0x32c1cc=_0x491e5c(_0xfc241c['p2s']);}catch{throw new _0x5e8e58('Failed\x20to\x20base64url\x20decode\x20the\x20p2s');}return(async(_0x39880f,_0x2e1864,_0x2908df,_0x3d2525,_0x2d30de)=>{const _0x2b3f2d=await _0x432697(_0x2d30de,_0x39880f,_0x3d2525,_0x2e1864);return _0x2c3e7d(_0x39880f['slice'](-0x6),_0x2b3f2d,_0x2908df);})(_0x2bd2c0,_0x302483,_0xb33ac,_0xfc241c['p2c'],_0x32c1cc);}case'A128KW':case'A192KW':case'A256KW':if(void 0x0===_0xb33ac)throw new _0x5e8e58('JWE\x20Encrypted\x20Key\x20missing');return _0x2c3e7d(_0x2bd2c0,_0x302483,_0xb33ac);case'A128GCMKW':case'A192GCMKW':case'A256GCMKW':{if(void 0x0===_0xb33ac)throw new _0x5e8e58('JWE\x20Encrypted\x20Key\x20missing');if('string'!=typeof _0xfc241c['iv'])throw new _0x5e8e58('JOSE\x20Header\x20\x22iv\x22\x20(Initialization\x20Vector)\x20missing\x20or\x20invalid');if('string'!=typeof _0xfc241c['tag'])throw new _0x5e8e58('JOSE\x20Header\x20\x22tag\x22\x20(Authentication\x20Tag)\x20missing\x20or\x20invalid');let _0x5c3991,_0x29486b;try{_0x5c3991=_0x491e5c(_0xfc241c['iv']);}catch{throw new _0x5e8e58('Failed\x20to\x20base64url\x20decode\x20the\x20iv');}try{_0x29486b=_0x491e5c(_0xfc241c['tag']);}catch{throw new _0x5e8e58('Failed\x20to\x20base64url\x20decode\x20the\x20tag');}return async function(_0x22e528,_0x2e48f0,_0x4f573d,_0x254436,_0x524840){const _0xa9e911=_0x22e528['slice'](0x0,0x7);return _0x2fe05a(_0xa9e911,_0x2e48f0,_0x4f573d,_0x254436,_0x524840,new Uint8Array(0x0));}(_0x2bd2c0,_0x302483,_0xb33ac,_0x5c3991,_0x29486b);}default:throw new _0x51a5b6('Invalid\x20or\x20unsupported\x20\x22alg\x22\x20(JWE\x20Algorithm)\x20header\x20value');}},_0x4ad9f4=function(_0x51693c,_0xd6f3ea,_0x4dae0b,_0x46de77,_0x5de593){if(void 0x0!==_0x5de593['crit']&&void 0x0===_0x46de77?.['crit'])throw new _0x51693c('\x22crit\x22\x20(Critical)\x20Header\x20Parameter\x20MUST\x20be\x20integrity\x20protected');if(!_0x46de77||void 0x0===_0x46de77['crit'])return new Set();if(!Array['isArray'](_0x46de77['crit'])||0x0===_0x46de77['crit']['length']||_0x46de77['crit']['some'](_0x11ab11=>'string'!=typeof _0x11ab11||0x0===_0x11ab11['length']))throw new _0x51693c('\x22crit\x22\x20(Critical)\x20Header\x20Parameter\x20MUST\x20be\x20an\x20array\x20of\x20non-empty\x20strings\x20when\x20present');let _0x290c30;_0x290c30=void 0x0!==_0x4dae0b?new Map([...Object['entries'](_0x4dae0b),..._0xd6f3ea['entries']()]):_0xd6f3ea;for(const _0x15ddf9 of _0x46de77['crit']){if(!_0x290c30['has'](_0x15ddf9))throw new _0x51a5b6('Extension\x20Header\x20Parameter\x20\x22'+_0x15ddf9+'\x22\x20is\x20not\x20recognized');if(void 0x0===_0x5de593[_0x15ddf9])throw new _0x51693c('Extension\x20Header\x20Parameter\x20\x22'+_0x15ddf9+'\x22\x20is\x20missing');if(_0x290c30['get'](_0x15ddf9)&&void 0x0===_0x46de77[_0x15ddf9])throw new _0x51693c('Extension\x20Header\x20Parameter\x20\x22'+_0x15ddf9+'\x22\x20MUST\x20be\x20integrity\x20protected');}return new Set(_0x46de77['crit']);},_0x2eac05=(_0x55f17f,_0x4cbcc0)=>{if(void 0x0!==_0x4cbcc0&&(!Array['isArray'](_0x4cbcc0)||_0x4cbcc0['some'](_0x123bee=>'string'!=typeof _0x123bee)))throw new TypeError('\x22'+_0x55f17f+'\x22\x20option\x20must\x20be\x20an\x20array\x20of\x20strings');if(_0x4cbcc0)return new Set(_0x4cbcc0);};async function _0x2e6c44(_0x10258c,_0x429a18,_0x42bc4e){if(!_0xd2756f(_0x10258c))throw new _0x5e8e58('Flattened\x20JWE\x20must\x20be\x20an\x20object');if(void 0x0===_0x10258c['protected']&&void 0x0===_0x10258c['header']&&void 0x0===_0x10258c['unprotected'])throw new _0x5e8e58('JOSE\x20Header\x20missing');if(void 0x0!==_0x10258c['iv']&&'string'!=typeof _0x10258c['iv'])throw new _0x5e8e58('JWE\x20Initialization\x20Vector\x20incorrect\x20type');if('string'!=typeof _0x10258c['ciphertext'])throw new _0x5e8e58('JWE\x20Ciphertext\x20missing\x20or\x20incorrect\x20type');if(void 0x0!==_0x10258c['tag']&&'string'!=typeof _0x10258c['tag'])throw new _0x5e8e58('JWE\x20Authentication\x20Tag\x20incorrect\x20type');if(void 0x0!==_0x10258c['protected']&&'string'!=typeof _0x10258c['protected'])throw new _0x5e8e58('JWE\x20Protected\x20Header\x20incorrect\x20type');if(void 0x0!==_0x10258c['encrypted_key']&&'string'!=typeof _0x10258c['encrypted_key'])throw new _0x5e8e58('JWE\x20Encrypted\x20Key\x20incorrect\x20type');if(void 0x0!==_0x10258c['aad']&&'string'!=typeof _0x10258c['aad'])throw new _0x5e8e58('JWE\x20AAD\x20incorrect\x20type');if(void 0x0!==_0x10258c['header']&&!_0xd2756f(_0x10258c['header']))throw new _0x5e8e58('JWE\x20Shared\x20Unprotected\x20Header\x20incorrect\x20type');if(void 0x0!==_0x10258c['unprotected']&&!_0xd2756f(_0x10258c['unprotected']))throw new _0x5e8e58('JWE\x20Per-Recipient\x20Unprotected\x20Header\x20incorrect\x20type');let _0x6cc448;if(_0x10258c['protected'])try{const _0x18e4e1=_0x491e5c(_0x10258c['protected']);_0x6cc448=JSON['parse'](_0x6a1349['decode'](_0x18e4e1));}catch{throw new _0x5e8e58('JWE\x20Protected\x20Header\x20is\x20invalid');}if(!_0x2ef579(_0x6cc448,_0x10258c['header'],_0x10258c['unprotected']))throw new _0x5e8e58('JWE\x20Protected,\x20JWE\x20Unprotected\x20Header,\x20and\x20JWE\x20Per-Recipient\x20Unprotected\x20Header\x20Parameter\x20names\x20must\x20be\x20disjoint');const _0x3463b1={..._0x6cc448,..._0x10258c['header'],..._0x10258c['unprotected']};if(_0x4ad9f4(_0x5e8e58,new Map(),_0x42bc4e?.['crit'],_0x6cc448,_0x3463b1),void 0x0!==_0x3463b1['zip'])throw new _0x51a5b6('JWE\x20\x22zip\x22\x20(Compression\x20Algorithm)\x20Header\x20Parameter\x20is\x20not\x20supported.');const {alg:_0x475fa7,enc:_0x670d8}=_0x3463b1;if('string'!=typeof _0x475fa7||!_0x475fa7)throw new _0x5e8e58('missing\x20JWE\x20Algorithm\x20(alg)\x20in\x20JWE\x20Header');if('string'!=typeof _0x670d8||!_0x670d8)throw new _0x5e8e58('missing\x20JWE\x20Encryption\x20Algorithm\x20(enc)\x20in\x20JWE\x20Header');const _0x3993d4=_0x42bc4e&&_0x2eac05('keyManagementAlgorithms',_0x42bc4e['keyManagementAlgorithms']),_0x4932cf=_0x42bc4e&&_0x2eac05('contentEncryptionAlgorithms',_0x42bc4e['contentEncryptionAlgorithms']);if(_0x3993d4&&!_0x3993d4['has'](_0x475fa7)||!_0x3993d4&&_0x475fa7['startsWith']('PBES2'))throw new _0x433e62('\x22alg\x22\x20(Algorithm)\x20Header\x20Parameter\x20value\x20not\x20allowed');if(_0x4932cf&&!_0x4932cf['has'](_0x670d8))throw new _0x433e62('\x22enc\x22\x20(Encryption\x20Algorithm)\x20Header\x20Parameter\x20value\x20not\x20allowed');let _0x3be49b;if(void 0x0!==_0x10258c['encrypted_key'])try{_0x3be49b=_0x491e5c(_0x10258c['encrypted_key']);}catch{throw new _0x5e8e58('Failed\x20to\x20base64url\x20decode\x20the\x20encrypted_key');}let _0x4597bc,_0x125b6d,_0x59c5d9,_0x119706=!0x1;'function'==typeof _0x429a18&&(_0x429a18=await _0x429a18(_0x6cc448,_0x10258c),_0x119706=!0x0);try{_0x4597bc=await _0x625f62(_0x475fa7,_0x429a18,_0x3be49b,_0x3463b1,_0x42bc4e);}catch(_0x3a05fd){if(_0x3a05fd instanceof TypeError||_0x3a05fd instanceof _0x5e8e58||_0x3a05fd instanceof _0x51a5b6)throw _0x3a05fd;_0x4597bc=_0x3c0aab(_0x670d8);}if(void 0x0!==_0x10258c['iv'])try{_0x125b6d=_0x491e5c(_0x10258c['iv']);}catch{throw new _0x5e8e58('Failed\x20to\x20base64url\x20decode\x20the\x20iv');}if(void 0x0!==_0x10258c['tag'])try{_0x59c5d9=_0x491e5c(_0x10258c['tag']);}catch{throw new _0x5e8e58('Failed\x20to\x20base64url\x20decode\x20the\x20tag');}const _0x2cf967=_0x109970['encode'](_0x10258c['protected']??'');let _0x306c0f,_0x424ef7;_0x306c0f=void 0x0!==_0x10258c['aad']?_0x377b9e(_0x2cf967,_0x109970['encode']('.'),_0x109970['encode'](_0x10258c['aad'])):_0x2cf967;try{_0x424ef7=_0x491e5c(_0x10258c['ciphertext']);}catch{throw new _0x5e8e58('Failed\x20to\x20base64url\x20decode\x20the\x20ciphertext');}const _0x4a2b99={'plaintext':await _0x2fe05a(_0x670d8,_0x4597bc,_0x424ef7,_0x125b6d,_0x59c5d9,_0x306c0f)};if(void 0x0!==_0x10258c['protected']&&(_0x4a2b99['protectedHeader']=_0x6cc448),void 0x0!==_0x10258c['aad'])try{_0x4a2b99['additionalAuthenticatedData']=_0x491e5c(_0x10258c['aad']);}catch{throw new _0x5e8e58('Failed\x20to\x20base64url\x20decode\x20the\x20aad');}return void 0x0!==_0x10258c['unprotected']&&(_0x4a2b99['sharedUnprotectedHeader']=_0x10258c['unprotected']),void 0x0!==_0x10258c['header']&&(_0x4a2b99['unprotectedHeader']=_0x10258c['header']),_0x119706?{..._0x4a2b99,'key':_0x429a18}:_0x4a2b99;}async function _0x1c2424(_0x393e9d,_0x57424a,_0x57ee4f){if(_0x393e9d instanceof Uint8Array&&(_0x393e9d=_0x6a1349['decode'](_0x393e9d)),'string'!=typeof _0x393e9d)throw new _0x5e8e58('Compact\x20JWE\x20must\x20be\x20a\x20string\x20or\x20Uint8Array');const {0x0:_0x28361b,0x1:_0x563215,0x2:_0x2e97c3,0x3:_0xa17489,0x4:_0x128a96,length:_0x4213a3}=_0x393e9d['split']('.');if(0x5!==_0x4213a3)throw new _0x5e8e58('Invalid\x20Compact\x20JWE');const _0x4bbe5d=await _0x2e6c44({'ciphertext':_0xa17489,'iv':_0x2e97c3||void 0x0,'protected':_0x28361b,'tag':_0x128a96||void 0x0,'encrypted_key':_0x563215||void 0x0},_0x57424a,_0x57ee4f),_0x3fca94={'plaintext':_0x4bbe5d['plaintext'],'protectedHeader':_0x4bbe5d['protectedHeader']};return'function'==typeof _0x57424a?{..._0x3fca94,'key':_0x4bbe5d['key']}:_0x3fca94;}async function _0x511561(_0x182262,_0x53fc26,_0x481d50){if(!_0xd2756f(_0x182262))throw new _0x5e8e58('General\x20JWE\x20must\x20be\x20an\x20object');if(!Array['isArray'](_0x182262['recipients'])||!_0x182262['recipients']['every'](_0xd2756f))throw new _0x5e8e58('JWE\x20Recipients\x20missing\x20or\x20incorrect\x20type');if(!_0x182262['recipients']['length'])throw new _0x5e8e58('JWE\x20Recipients\x20has\x20no\x20members');for(const _0x522d81 of _0x182262['recipients'])try{return await _0x2e6c44({'aad':_0x182262['aad'],'ciphertext':_0x182262['ciphertext'],'encrypted_key':_0x522d81['encrypted_key'],'header':_0x522d81['header'],'iv':_0x182262['iv'],'protected':_0x182262['protected'],'tag':_0x182262['tag'],'unprotected':_0x182262['unprotected']},_0x53fc26,_0x481d50);}catch{}throw new _0x185c6b();}const _0x42e57a=Symbol();var _0x3e0d33=async _0x2f7a70=>{if(_0x2f7a70 instanceof Uint8Array)return{'kty':'oct','k':_0x367467(_0x2f7a70)};if(!_0x515249(_0x2f7a70))throw new TypeError(_0x2b597f(_0x2f7a70,..._0x37c167,'Uint8Array'));if(!_0x2f7a70['extractable'])throw new TypeError('non-extractable\x20CryptoKey\x20cannot\x20be\x20exported\x20as\x20a\x20JWK');const {ext:_0x41cad4,key_ops:_0x4341f6,alg:_0x461040,use:_0x326439,..._0x934f9}=await _0x327377['subtle']['exportKey']('jwk',_0x2f7a70);return _0x934f9;};async function _0x536cb3(_0x469ff7){return _0x3e5fd6(_0x469ff7);}async function _0x23dc52(_0x2606fe){return _0x43478c(_0x2606fe);}async function _0x1a256e(_0x7f771){return _0x3e0d33(_0x7f771);}var _0x4084d8=async function(_0x46bcb0,_0x422a89,_0x460eef,_0x33c2e9,_0x3ec86c={}){let _0x47d63d,_0x58860b,_0x47c24e;switch(_0x5b6b80(_0x46bcb0,_0x460eef,'encrypt'),_0x460eef=await _0x252b79?.(_0x460eef,_0x46bcb0)||_0x460eef,_0x46bcb0){case'dir':_0x47c24e=_0x460eef;break;case'ECDH-ES':case'ECDH-ES+A128KW':case'ECDH-ES+A192KW':case'ECDH-ES+A256KW':{if(!_0x1ed6da(_0x460eef))throw new _0x51a5b6('ECDH\x20with\x20the\x20provided\x20key\x20is\x20not\x20allowed\x20or\x20not\x20supported\x20by\x20your\x20javascript\x20runtime');const {apu:_0x554970,apv:_0x4f0489}=_0x3ec86c;let {epk:_0x258560}=_0x3ec86c;_0x258560||(_0x258560=(await async function(_0x156a50){if(!_0x515249(_0x156a50))throw new TypeError(_0x2b597f(_0x156a50,..._0x37c167));return _0x327377['subtle']['generateKey'](_0x156a50['algorithm'],!0x0,['deriveBits']);}(_0x460eef))['privateKey']);const {x:_0x2d4319,y:_0x28d766,crv:_0x4cd522,kty:_0x8db2c1}=await _0x1a256e(_0x258560),_0x47408e=await _0x5b9f24(_0x460eef,_0x258560,'ECDH-ES'===_0x46bcb0?_0x422a89:_0x46bcb0,'ECDH-ES'===_0x46bcb0?_0x4b81f6(_0x422a89):parseInt(_0x46bcb0['slice'](-0x5,-0x2),0xa),_0x554970,_0x4f0489);if(_0x58860b={'epk':{'x':_0x2d4319,'crv':_0x4cd522,'kty':_0x8db2c1}},'EC'===_0x8db2c1&&(_0x58860b['epk']['y']=_0x28d766),_0x554970&&(_0x58860b['apu']=_0x367467(_0x554970)),_0x4f0489&&(_0x58860b['apv']=_0x367467(_0x4f0489)),'ECDH-ES'===_0x46bcb0){_0x47c24e=_0x47408e;break;}_0x47c24e=_0x33c2e9||_0x3c0aab(_0x422a89);const _0x550c8d=_0x46bcb0['slice'](-0x6);_0x47d63d=await _0x25735c(_0x550c8d,_0x47408e,_0x47c24e);break;}case'RSA1_5':case'RSA-OAEP':case'RSA-OAEP-256':case'RSA-OAEP-384':case'RSA-OAEP-512':_0x47c24e=_0x33c2e9||_0x3c0aab(_0x422a89),_0x47d63d=await(async(_0x52ce44,_0x3a5b07,_0x42f5bf)=>{if(!_0x515249(_0x3a5b07))throw new TypeError(_0x2b597f(_0x3a5b07,..._0x37c167));if(_0x4391d9(_0x3a5b07,_0x52ce44,'encrypt','wrapKey'),_0x25afa6(_0x52ce44,_0x3a5b07),_0x3a5b07['usages']['includes']('encrypt'))return new Uint8Array(await _0x327377['subtle']['encrypt'](_0x42afdb(_0x52ce44),_0x3a5b07,_0x42f5bf));if(_0x3a5b07['usages']['includes']('wrapKey')){const _0xeadf05=await _0x327377['subtle']['importKey']('raw',_0x42f5bf,..._0x11521a);return new Uint8Array(await _0x327377['subtle']['wrapKey']('raw',_0xeadf05,_0x3a5b07,_0x42afdb(_0x52ce44)));}throw new TypeError('RSA-OAEP\x20key\x20\x22usages\x22\x20must\x20include\x20\x22encrypt\x22\x20or\x20\x22wrapKey\x22\x20for\x20this\x20operation');})(_0x46bcb0,_0x460eef,_0x47c24e);break;case'PBES2-HS256+A128KW':case'PBES2-HS384+A192KW':case'PBES2-HS512+A256KW':{_0x47c24e=_0x33c2e9||_0x3c0aab(_0x422a89);const {p2c:_0x405185,p2s:_0x316c84}=_0x3ec86c;({encryptedKey:_0x47d63d,..._0x58860b}=await(async(_0x18d480,_0x3cb8b8,_0x56ba57,_0x5cbe65=0x800,_0x338b55=_0x4ed8e4(new Uint8Array(0x10)))=>{const _0x141d7e=await _0x432697(_0x338b55,_0x18d480,_0x5cbe65,_0x3cb8b8);return{'encryptedKey':await _0x25735c(_0x18d480['slice'](-0x6),_0x141d7e,_0x56ba57),'p2c':_0x5cbe65,'p2s':_0x367467(_0x338b55)};})(_0x46bcb0,_0x460eef,_0x47c24e,_0x405185,_0x316c84));break;}case'A128KW':case'A192KW':case'A256KW':_0x47c24e=_0x33c2e9||_0x3c0aab(_0x422a89),_0x47d63d=await _0x25735c(_0x46bcb0,_0x460eef,_0x47c24e);break;case'A128GCMKW':case'A192GCMKW':case'A256GCMKW':{_0x47c24e=_0x33c2e9||_0x3c0aab(_0x422a89);const {iv:_0x2f264a}=_0x3ec86c;({encryptedKey:_0x47d63d,..._0x58860b}=await async function(_0x1671b9,_0x59aef1,_0x35268a,_0x4065fe){const _0x30d55a=_0x1671b9['slice'](0x0,0x7),_0x447f6d=await _0x4716f5(_0x30d55a,_0x35268a,_0x59aef1,_0x4065fe,new Uint8Array(0x0));return{'encryptedKey':_0x447f6d['ciphertext'],'iv':_0x367467(_0x447f6d['iv']),'tag':_0x367467(_0x447f6d['tag'])};}(_0x46bcb0,_0x460eef,_0x47c24e,_0x2f264a));break;}default:throw new _0x51a5b6('Invalid\x20or\x20unsupported\x20\x22alg\x22\x20(JWE\x20Algorithm)\x20header\x20value');}return{'cek':_0x47c24e,'encryptedKey':_0x47d63d,'parameters':_0x58860b};};class _0x293da5{constructor(_0x4293db){if(!(_0x4293db instanceof Uint8Array))throw new TypeError('plaintext\x20must\x20be\x20an\x20instance\x20of\x20Uint8Array');this['_plaintext']=_0x4293db;}['setKeyManagementParameters'](_0x479879){if(this['_keyManagementParameters'])throw new TypeError('setKeyManagementParameters\x20can\x20only\x20be\x20called\x20once');return this['_keyManagementParameters']=_0x479879,this;}['setProtectedHeader'](_0x4b78ef){if(this['_protectedHeader'])throw new TypeError('setProtectedHeader\x20can\x20only\x20be\x20called\x20once');return this['_protectedHeader']=_0x4b78ef,this;}['setSharedUnprotectedHeader'](_0x57035e){if(this['_sharedUnprotectedHeader'])throw new TypeError('setSharedUnprotectedHeader\x20can\x20only\x20be\x20called\x20once');return this['_sharedUnprotectedHeader']=_0x57035e,this;}['setUnprotectedHeader'](_0x4ca3d3){if(this['_unprotectedHeader'])throw new TypeError('setUnprotectedHeader\x20can\x20only\x20be\x20called\x20once');return this['_unprotectedHeader']=_0x4ca3d3,this;}['setAdditionalAuthenticatedData'](_0xcff7f2){return this['_aad']=_0xcff7f2,this;}['setContentEncryptionKey'](_0x47de34){if(this['_cek'])throw new TypeError('setContentEncryptionKey\x20can\x20only\x20be\x20called\x20once');return this['_cek']=_0x47de34,this;}['setInitializationVector'](_0x51a55e){if(this['_iv'])throw new TypeError('setInitializationVector\x20can\x20only\x20be\x20called\x20once');return this['_iv']=_0x51a55e,this;}async['encrypt'](_0x289a5e,_0x7cf2b6){if(!this['_protectedHeader']&&!this['_unprotectedHeader']&&!this['_sharedUnprotectedHeader'])throw new _0x5e8e58('either\x20setProtectedHeader,\x20setUnprotectedHeader,\x20or\x20sharedUnprotectedHeader\x20must\x20be\x20called\x20before\x20#encrypt()');if(!_0x2ef579(this['_protectedHeader'],this['_unprotectedHeader'],this['_sharedUnprotectedHeader']))throw new _0x5e8e58('JWE\x20Protected,\x20JWE\x20Shared\x20Unprotected\x20and\x20JWE\x20Per-Recipient\x20Header\x20Parameter\x20names\x20must\x20be\x20disjoint');const _0x5c827d={...this['_protectedHeader'],...this['_unprotectedHeader'],...this['_sharedUnprotectedHeader']};if(_0x4ad9f4(_0x5e8e58,new Map(),_0x7cf2b6?.['crit'],this['_protectedHeader'],_0x5c827d),void 0x0!==_0x5c827d['zip'])throw new _0x51a5b6('JWE\x20\x22zip\x22\x20(Compression\x20Algorithm)\x20Header\x20Parameter\x20is\x20not\x20supported.');const {alg:_0x43c607,enc:_0x4a9612}=_0x5c827d;if('string'!=typeof _0x43c607||!_0x43c607)throw new _0x5e8e58('JWE\x20\x22alg\x22\x20(Algorithm)\x20Header\x20Parameter\x20missing\x20or\x20invalid');if('string'!=typeof _0x4a9612||!_0x4a9612)throw new _0x5e8e58('JWE\x20\x22enc\x22\x20(Encryption\x20Algorithm)\x20Header\x20Parameter\x20missing\x20or\x20invalid');let _0x3646fa,_0x3ac9ac,_0x5c97f0,_0x913681,_0x2c9ef9;if(this['_cek']&&('dir'===_0x43c607||'ECDH-ES'===_0x43c607))throw new TypeError('setContentEncryptionKey\x20cannot\x20be\x20called\x20with\x20JWE\x20\x22alg\x22\x20(Algorithm)\x20Header\x20'+_0x43c607);{let _0x369dc2;({cek:_0x3ac9ac,encryptedKey:_0x3646fa,parameters:_0x369dc2}=await _0x4084d8(_0x43c607,_0x4a9612,_0x289a5e,this['_cek'],this['_keyManagementParameters']),_0x369dc2&&(_0x7cf2b6&&_0x42e57a in _0x7cf2b6?this['_unprotectedHeader']?this['_unprotectedHeader']={...this['_unprotectedHeader'],..._0x369dc2}:this['setUnprotectedHeader'](_0x369dc2):this['_protectedHeader']?this['_protectedHeader']={...this['_protectedHeader'],..._0x369dc2}:this['setProtectedHeader'](_0x369dc2)));}_0x913681=this['_protectedHeader']?_0x109970['encode'](_0x367467(JSON['stringify'](this['_protectedHeader']))):_0x109970['encode'](''),this['_aad']?(_0x2c9ef9=_0x367467(this['_aad']),_0x5c97f0=_0x377b9e(_0x913681,_0x109970['encode']('.'),_0x109970['encode'](_0x2c9ef9))):_0x5c97f0=_0x913681;const {ciphertext:_0x5e6137,tag:_0x1f63e0,iv:_0xa489f1}=await _0x4716f5(_0x4a9612,this['_plaintext'],_0x3ac9ac,this['_iv'],_0x5c97f0),_0x181aeb={'ciphertext':_0x367467(_0x5e6137)};return _0xa489f1&&(_0x181aeb['iv']=_0x367467(_0xa489f1)),_0x1f63e0&&(_0x181aeb['tag']=_0x367467(_0x1f63e0)),_0x3646fa&&(_0x181aeb['encrypted_key']=_0x367467(_0x3646fa)),_0x2c9ef9&&(_0x181aeb['aad']=_0x2c9ef9),this['_protectedHeader']&&(_0x181aeb['protected']=_0x6a1349['decode'](_0x913681)),this['_sharedUnprotectedHeader']&&(_0x181aeb['unprotected']=this['_sharedUnprotectedHeader']),this['_unprotectedHeader']&&(_0x181aeb['header']=this['_unprotectedHeader']),_0x181aeb;}}class _0x20c33d{constructor(_0x40821b,_0x555a80,_0x57d122){this['parent']=_0x40821b,this['key']=_0x555a80,this['options']=_0x57d122;}['setUnprotectedHeader'](_0x4dedb8){if(this['unprotectedHeader'])throw new TypeError('setUnprotectedHeader\x20can\x20only\x20be\x20called\x20once');return this['unprotectedHeader']=_0x4dedb8,this;}['addRecipient'](..._0x2ebadd){return this['parent']['addRecipient'](..._0x2ebadd);}['encrypt'](..._0x40176e){return this['parent']['encrypt'](..._0x40176e);}['done'](){return this['parent'];}}class _0x1ab996{constructor(_0x55f47d){this['_recipients']=[],this['_plaintext']=_0x55f47d;}['addRecipient'](_0x3411c8,_0x381b7b){const _0x7ee009=new _0x20c33d(this,_0x3411c8,{'crit':_0x381b7b?.['crit']});return this['_recipients']['push'](_0x7ee009),_0x7ee009;}['setProtectedHeader'](_0x48a741){if(this['_protectedHeader'])throw new TypeError('setProtectedHeader\x20can\x20only\x20be\x20called\x20once');return this['_protectedHeader']=_0x48a741,this;}['setSharedUnprotectedHeader'](_0x59c4fe){if(this['_unprotectedHeader'])throw new TypeError('setSharedUnprotectedHeader\x20can\x20only\x20be\x20called\x20once');return this['_unprotectedHeader']=_0x59c4fe,this;}['setAdditionalAuthenticatedData'](_0x34efcb){return this['_aad']=_0x34efcb,this;}async['encrypt'](){if(!this['_recipients']['length'])throw new _0x5e8e58('at\x20least\x20one\x20recipient\x20must\x20be\x20added');if(0x1===this['_recipients']['length']){const [_0x14d34e]=this['_recipients'],_0x5b8ab9=await new _0x293da5(this['_plaintext'])['setAdditionalAuthenticatedData'](this['_aad'])['setProtectedHeader'](this['_protectedHeader'])['setSharedUnprotectedHeader'](this['_unprotectedHeader'])['setUnprotectedHeader'](_0x14d34e['unprotectedHeader'])['encrypt'](_0x14d34e['key'],{..._0x14d34e['options']}),_0x5888ad={'ciphertext':_0x5b8ab9['ciphertext'],'iv':_0x5b8ab9['iv'],'recipients':[{}],'tag':_0x5b8ab9['tag']};return _0x5b8ab9['aad']&&(_0x5888ad['aad']=_0x5b8ab9['aad']),_0x5b8ab9['protected']&&(_0x5888ad['protected']=_0x5b8ab9['protected']),_0x5b8ab9['unprotected']&&(_0x5888ad['unprotected']=_0x5b8ab9['unprotected']),_0x5b8ab9['encrypted_key']&&(_0x5888ad['recipients'][0x0]['encrypted_key']=_0x5b8ab9['encrypted_key']),_0x5b8ab9['header']&&(_0x5888ad['recipients'][0x0]['header']=_0x5b8ab9['header']),_0x5888ad;}let _0x54e5cd;for(let _0x556ee5=0x0;_0x556ee5<this['_recipients']['length'];_0x556ee5++){const _0x3d8525=this['_recipients'][_0x556ee5];if(!_0x2ef579(this['_protectedHeader'],this['_unprotectedHeader'],_0x3d8525['unprotectedHeader']))throw new _0x5e8e58('JWE\x20Protected,\x20JWE\x20Shared\x20Unprotected\x20and\x20JWE\x20Per-Recipient\x20Header\x20Parameter\x20names\x20must\x20be\x20disjoint');const _0x4b4dcf={...this['_protectedHeader'],...this['_unprotectedHeader'],..._0x3d8525['unprotectedHeader']},{alg:_0x35df57}=_0x4b4dcf;if('string'!=typeof _0x35df57||!_0x35df57)throw new _0x5e8e58('JWE\x20\x22alg\x22\x20(Algorithm)\x20Header\x20Parameter\x20missing\x20or\x20invalid');if('dir'===_0x35df57||'ECDH-ES'===_0x35df57)throw new _0x5e8e58('\x22dir\x22\x20and\x20\x22ECDH-ES\x22\x20alg\x20may\x20only\x20be\x20used\x20with\x20a\x20single\x20recipient');if('string'!=typeof _0x4b4dcf['enc']||!_0x4b4dcf['enc'])throw new _0x5e8e58('JWE\x20\x22enc\x22\x20(Encryption\x20Algorithm)\x20Header\x20Parameter\x20missing\x20or\x20invalid');if(_0x54e5cd){if(_0x54e5cd!==_0x4b4dcf['enc'])throw new _0x5e8e58('JWE\x20\x22enc\x22\x20(Encryption\x20Algorithm)\x20Header\x20Parameter\x20must\x20be\x20the\x20same\x20for\x20all\x20recipients');}else _0x54e5cd=_0x4b4dcf['enc'];if(_0x4ad9f4(_0x5e8e58,new Map(),_0x3d8525['options']['crit'],this['_protectedHeader'],_0x4b4dcf),void 0x0!==_0x4b4dcf['zip'])throw new _0x51a5b6('JWE\x20\x22zip\x22\x20(Compression\x20Algorithm)\x20Header\x20Parameter\x20is\x20not\x20supported.');}const _0x56267b=_0x3c0aab(_0x54e5cd),_0x3a33a3={'ciphertext':'','iv':'','recipients':[],'tag':''};for(let _0x150a17=0x0;_0x150a17<this['_recipients']['length'];_0x150a17++){const _0x86e654=this['_recipients'][_0x150a17],_0x162794={};_0x3a33a3['recipients']['push'](_0x162794);const _0x12e187={...this['_protectedHeader'],...this['_unprotectedHeader'],..._0x86e654['unprotectedHeader']}['alg']['startsWith']('PBES2')?0x800+_0x150a17:void 0x0;if(0x0===_0x150a17){const _0x32be54=await new _0x293da5(this['_plaintext'])['setAdditionalAuthenticatedData'](this['_aad'])['setContentEncryptionKey'](_0x56267b)['setProtectedHeader'](this['_protectedHeader'])['setSharedUnprotectedHeader'](this['_unprotectedHeader'])['setUnprotectedHeader'](_0x86e654['unprotectedHeader'])['setKeyManagementParameters']({'p2c':_0x12e187})['encrypt'](_0x86e654['key'],{..._0x86e654['options'],[_0x42e57a]:!0x0});_0x3a33a3['ciphertext']=_0x32be54['ciphertext'],_0x3a33a3['iv']=_0x32be54['iv'],_0x3a33a3['tag']=_0x32be54['tag'],_0x32be54['aad']&&(_0x3a33a3['aad']=_0x32be54['aad']),_0x32be54['protected']&&(_0x3a33a3['protected']=_0x32be54['protected']),_0x32be54['unprotected']&&(_0x3a33a3['unprotected']=_0x32be54['unprotected']),_0x162794['encrypted_key']=_0x32be54['encrypted_key'],_0x32be54['header']&&(_0x162794['header']=_0x32be54['header']);continue;}const {encryptedKey:_0x5b8c04,parameters:_0x14e2df}=await _0x4084d8(_0x86e654['unprotectedHeader']?.['alg']||this['_protectedHeader']?.['alg']||this['_unprotectedHeader']?.['alg'],_0x54e5cd,_0x86e654['key'],_0x56267b,{'p2c':_0x12e187});_0x162794['encrypted_key']=_0x367467(_0x5b8c04),(_0x86e654['unprotectedHeader']||_0x14e2df)&&(_0x162794['header']={..._0x86e654['unprotectedHeader'],..._0x14e2df});}return _0x3a33a3;}}function _0x3e20b9(_0x385ec5,_0x2f5686){const _0x2837fe='SHA-'+_0x385ec5['slice'](-0x3);switch(_0x385ec5){case'HS256':case'HS384':case'HS512':return{'hash':_0x2837fe,'name':'HMAC'};case'PS256':case'PS384':case'PS512':return{'hash':_0x2837fe,'name':'RSA-PSS','saltLength':_0x385ec5['slice'](-0x3)>>0x3};case'RS256':case'RS384':case'RS512':return{'hash':_0x2837fe,'name':'RSASSA-PKCS1-v1_5'};case'ES256':case'ES384':case'ES512':return{'hash':_0x2837fe,'name':'ECDSA','namedCurve':_0x2f5686['namedCurve']};case'Ed25519':return{'name':'Ed25519'};case'EdDSA':return{'name':_0x2f5686['name']};default:throw new _0x51a5b6('alg\x20'+_0x385ec5+'\x20is\x20not\x20supported\x20either\x20by\x20JOSE\x20or\x20your\x20javascript\x20runtime');}}async function _0x3061a9(_0x5ef907,_0x59daae,_0x23d2fa){if('sign'===_0x23d2fa&&(_0x59daae=await _0x28487a(_0x59daae,_0x5ef907)),'verify'===_0x23d2fa&&(_0x59daae=await _0x252b79(_0x59daae,_0x5ef907)),_0x515249(_0x59daae))return function(_0x395471,_0x5c935b,..._0x310951){switch(_0x5c935b){case'HS256':case'HS384':case'HS512':{if(!_0x3756f3(_0x395471['algorithm'],'HMAC'))throw _0x45da36('HMAC');const _0xacc80c=parseInt(_0x5c935b['slice'](0x2),0xa);if(_0x223b53(_0x395471['algorithm']['hash'])!==_0xacc80c)throw _0x45da36('SHA-'+_0xacc80c,'algorithm.hash');break;}case'RS256':case'RS384':case'RS512':{if(!_0x3756f3(_0x395471['algorithm'],'RSASSA-PKCS1-v1_5'))throw _0x45da36('RSASSA-PKCS1-v1_5');const _0x118b10=parseInt(_0x5c935b['slice'](0x2),0xa);if(_0x223b53(_0x395471['algorithm']['hash'])!==_0x118b10)throw _0x45da36('SHA-'+_0x118b10,'algorithm.hash');break;}case'PS256':case'PS384':case'PS512':{if(!_0x3756f3(_0x395471['algorithm'],'RSA-PSS'))throw _0x45da36('RSA-PSS');const _0x49bc5f=parseInt(_0x5c935b['slice'](0x2),0xa);if(_0x223b53(_0x395471['algorithm']['hash'])!==_0x49bc5f)throw _0x45da36('SHA-'+_0x49bc5f,'algorithm.hash');break;}case'EdDSA':if('Ed25519'!==_0x395471['algorithm']['name']&&'Ed448'!==_0x395471['algorithm']['name'])throw _0x45da36('Ed25519\x20or\x20Ed448');break;case'Ed25519':if(!_0x3756f3(_0x395471['algorithm'],'Ed25519'))throw _0x45da36('Ed25519');break;case'ES256':case'ES384':case'ES512':{if(!_0x3756f3(_0x395471['algorithm'],'ECDSA'))throw _0x45da36('ECDSA');const _0xa1345e=function(_0x464d1f){switch(_0x464d1f){case'ES256':return'P-256';case'ES384':return'P-384';case'ES512':return'P-521';default:throw new Error('unreachable');}}(_0x5c935b);if(_0x395471['algorithm']['namedCurve']!==_0xa1345e)throw _0x45da36(_0xa1345e,'algorithm.namedCurve');break;}default:throw new TypeError('CryptoKey\x20does\x20not\x20support\x20this\x20operation');}_0x11f710(_0x395471,_0x310951);}(_0x59daae,_0x5ef907,_0x23d2fa),_0x59daae;if(_0x59daae instanceof Uint8Array){if(!_0x5ef907['startsWith']('HS'))throw new TypeError(_0x2b597f(_0x59daae,..._0x37c167));return _0x327377['subtle']['importKey']('raw',_0x59daae,{'hash':'SHA-'+_0x5ef907['slice'](-0x3),'name':'HMAC'},!0x1,[_0x23d2fa]);}throw new TypeError(_0x2b597f(_0x59daae,..._0x37c167,'Uint8Array','JSON\x20Web\x20Key'));}var _0x3658a8=async(_0x3c00bf,_0x186239,_0x5d8f1b,_0x529a41)=>{const _0x651e5f=await _0x3061a9(_0x3c00bf,_0x186239,'verify');_0x25afa6(_0x3c00bf,_0x651e5f);const _0x318576=_0x3e20b9(_0x3c00bf,_0x651e5f['algorithm']);try{return await _0x327377['subtle']['verify'](_0x318576,_0x651e5f,_0x5d8f1b,_0x529a41);}catch{return!0x1;}};async function _0x2fecab(_0x5b2ca0,_0x40392c,_0x4162ef){if(!_0xd2756f(_0x5b2ca0))throw new _0x52a075('Flattened\x20JWS\x20must\x20be\x20an\x20object');if(void 0x0===_0x5b2ca0['protected']&&void 0x0===_0x5b2ca0['header'])throw new _0x52a075('Flattened\x20JWS\x20must\x20have\x20either\x20of\x20the\x20\x22protected\x22\x20or\x20\x22header\x22\x20members');if(void 0x0!==_0x5b2ca0['protected']&&'string'!=typeof _0x5b2ca0['protected'])throw new _0x52a075('JWS\x20Protected\x20Header\x20incorrect\x20type');if(void 0x0===_0x5b2ca0['payload'])throw new _0x52a075('JWS\x20Payload\x20missing');if('string'!=typeof _0x5b2ca0['signature'])throw new _0x52a075('JWS\x20Signature\x20missing\x20or\x20incorrect\x20type');if(void 0x0!==_0x5b2ca0['header']&&!_0xd2756f(_0x5b2ca0['header']))throw new _0x52a075('JWS\x20Unprotected\x20Header\x20incorrect\x20type');let _0x555d87={};if(_0x5b2ca0['protected'])try{const _0x4af43c=_0x491e5c(_0x5b2ca0['protected']);_0x555d87=JSON['parse'](_0x6a1349['decode'](_0x4af43c));}catch{throw new _0x52a075('JWS\x20Protected\x20Header\x20is\x20invalid');}if(!_0x2ef579(_0x555d87,_0x5b2ca0['header']))throw new _0x52a075('JWS\x20Protected\x20and\x20JWS\x20Unprotected\x20Header\x20Parameter\x20names\x20must\x20be\x20disjoint');const _0xf2c345={..._0x555d87,..._0x5b2ca0['header']};let _0x10a011=!0x0;if(_0x4ad9f4(_0x52a075,new Map([['b64',!0x0]]),_0x4162ef?.['crit'],_0x555d87,_0xf2c345)['has']('b64')&&(_0x10a011=_0x555d87['b64'],'boolean'!=typeof _0x10a011))throw new _0x52a075('The\x20\x22b64\x22\x20(base64url-encode\x20payload)\x20Header\x20Parameter\x20must\x20be\x20a\x20boolean');const {alg:_0x2aaaba}=_0xf2c345;if('string'!=typeof _0x2aaaba||!_0x2aaaba)throw new _0x52a075('JWS\x20\x22alg\x22\x20(Algorithm)\x20Header\x20Parameter\x20missing\x20or\x20invalid');const _0x4e939b=_0x4162ef&&_0x2eac05('algorithms',_0x4162ef['algorithms']);if(_0x4e939b&&!_0x4e939b['has'](_0x2aaaba))throw new _0x433e62('\x22alg\x22\x20(Algorithm)\x20Header\x20Parameter\x20value\x20not\x20allowed');if(_0x10a011){if('string'!=typeof _0x5b2ca0['payload'])throw new _0x52a075('JWS\x20Payload\x20must\x20be\x20a\x20string');}else{if('string'!=typeof _0x5b2ca0['payload']&&!(_0x5b2ca0['payload']instanceof Uint8Array))throw new _0x52a075('JWS\x20Payload\x20must\x20be\x20a\x20string\x20or\x20an\x20Uint8Array\x20instance');}let _0x22a9d4=!0x1;'function'==typeof _0x40392c?(_0x40392c=await _0x40392c(_0x555d87,_0x5b2ca0),_0x22a9d4=!0x0,_0x33185c(_0x2aaaba,_0x40392c,'verify'),_0x14e2b7(_0x40392c)&&(_0x40392c=await _0x417c79(_0x40392c,_0x2aaaba))):_0x33185c(_0x2aaaba,_0x40392c,'verify');const _0x3c912a=_0x377b9e(_0x109970['encode'](_0x5b2ca0['protected']??''),_0x109970['encode']('.'),'string'==typeof _0x5b2ca0['payload']?_0x109970['encode'](_0x5b2ca0['payload']):_0x5b2ca0['payload']);let _0x581096,_0x557e27;try{_0x581096=_0x491e5c(_0x5b2ca0['signature']);}catch{throw new _0x52a075('Failed\x20to\x20base64url\x20decode\x20the\x20signature');}if(!await _0x3658a8(_0x2aaaba,_0x40392c,_0x581096,_0x3c912a))throw new _0x28fc94();if(_0x10a011)try{_0x557e27=_0x491e5c(_0x5b2ca0['payload']);}catch{throw new _0x52a075('Failed\x20to\x20base64url\x20decode\x20the\x20payload');}else _0x557e27='string'==typeof _0x5b2ca0['payload']?_0x109970['encode'](_0x5b2ca0['payload']):_0x5b2ca0['payload'];const _0x5a0f17={'payload':_0x557e27};return void 0x0!==_0x5b2ca0['protected']&&(_0x5a0f17['protectedHeader']=_0x555d87),void 0x0!==_0x5b2ca0['header']&&(_0x5a0f17['unprotectedHeader']=_0x5b2ca0['header']),_0x22a9d4?{..._0x5a0f17,'key':_0x40392c}:_0x5a0f17;}async function _0x17c93c(_0x30a4b6,_0x5301f5,_0x1682a3){if(_0x30a4b6 instanceof Uint8Array&&(_0x30a4b6=_0x6a1349['decode'](_0x30a4b6)),'string'!=typeof _0x30a4b6)throw new _0x52a075('Compact\x20JWS\x20must\x20be\x20a\x20string\x20or\x20Uint8Array');const {0x0:_0x5c2cd1,0x1:_0x4733c3,0x2:_0x4942ee,length:_0xcb8226}=_0x30a4b6['split']('.');if(0x3!==_0xcb8226)throw new _0x52a075('Invalid\x20Compact\x20JWS');const _0x5b79e6=await _0x2fecab({'payload':_0x4733c3,'protected':_0x5c2cd1,'signature':_0x4942ee},_0x5301f5,_0x1682a3),_0x4236ab={'payload':_0x5b79e6['payload'],'protectedHeader':_0x5b79e6['protectedHeader']};return'function'==typeof _0x5301f5?{..._0x4236ab,'key':_0x5b79e6['key']}:_0x4236ab;}async function _0x229811(_0x232b79,_0x4e3031,_0x2866fb){if(!_0xd2756f(_0x232b79))throw new _0x52a075('General\x20JWS\x20must\x20be\x20an\x20object');if(!Array['isArray'](_0x232b79['signatures'])||!_0x232b79['signatures']['every'](_0xd2756f))throw new _0x52a075('JWS\x20Signatures\x20missing\x20or\x20incorrect\x20type');for(const _0x163af9 of _0x232b79['signatures'])try{return await _0x2fecab({'header':_0x163af9['header'],'payload':_0x232b79['payload'],'protected':_0x163af9['protected'],'signature':_0x163af9['signature']},_0x4e3031,_0x2866fb);}catch{}throw new _0x28fc94();}var _0x1ec332=_0x4abe3b=>Math['floor'](_0x4abe3b['getTime']()/0x3e8);const _0x501ce5=/^(\+|\-)? ?(\d+|\d+\.\d+) ?(seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)(?: (ago|from now))?$/i;var _0x4670a0=_0x5d7e53=>{const _0x50d7d7=_0x501ce5['exec'](_0x5d7e53);if(!_0x50d7d7||_0x50d7d7[0x4]&&_0x50d7d7[0x1])throw new TypeError('Invalid\x20time\x20period\x20format');const _0x393fa3=parseFloat(_0x50d7d7[0x2]);let _0x509f4e;switch(_0x50d7d7[0x3]['toLowerCase']()){case'sec':case'secs':case'second':case'seconds':case's':_0x509f4e=Math['round'](_0x393fa3);break;case'minute':case'minutes':case'min':case'mins':case'm':_0x509f4e=Math['round'](0x3c*_0x393fa3);break;case'hour':case'hours':case'hr':case'hrs':case'h':_0x509f4e=Math['round'](0xe10*_0x393fa3);break;case'day':case'days':case'd':_0x509f4e=Math['round'](0x15180*_0x393fa3);break;case'week':case'weeks':case'w':_0x509f4e=Math['round'](0x93a80*_0x393fa3);break;default:_0x509f4e=Math['round'](0x1e187e0*_0x393fa3);}return'-'===_0x50d7d7[0x1]||'ago'===_0x50d7d7[0x4]?-_0x509f4e:_0x509f4e;};const _0x133ae1=_0x10ab7c=>_0x10ab7c['toLowerCase']()['replace'](/^application\//,'');var _0x151c40=(_0x57fede,_0x495b37,_0x24a86d={})=>{let _0x935a49;try{_0x935a49=JSON['parse'](_0x6a1349['decode'](_0x495b37));}catch{}if(!_0xd2756f(_0x935a49))throw new _0x2dc34b('JWT\x20Claims\x20Set\x20must\x20be\x20a\x20top-level\x20JSON\x20object');const {typ:_0x23525d}=_0x24a86d;if(_0x23525d&&('string'!=typeof _0x57fede['typ']||_0x133ae1(_0x57fede['typ'])!==_0x133ae1(_0x23525d)))throw new _0x10fc59('unexpected\x20\x22typ\x22\x20JWT\x20header\x20value',_0x935a49,'typ','check_failed');const {requiredClaims:_0x38ad54=[],issuer:_0x12dc7f,subject:_0x588717,audience:_0x474e3,maxTokenAge:_0x51a853}=_0x24a86d,_0x11692c=[..._0x38ad54];void 0x0!==_0x51a853&&_0x11692c['push']('iat'),void 0x0!==_0x474e3&&_0x11692c['push']('aud'),void 0x0!==_0x588717&&_0x11692c['push']('sub'),void 0x0!==_0x12dc7f&&_0x11692c['push']('iss');for(const _0x3b341a of new Set(_0x11692c['reverse']()))if(!(_0x3b341a in _0x935a49))throw new _0x10fc59('missing\x20required\x20\x22'+_0x3b341a+'\x22\x20claim',_0x935a49,_0x3b341a,'missing');if(_0x12dc7f&&!(Array['isArray'](_0x12dc7f)?_0x12dc7f:[_0x12dc7f])['includes'](_0x935a49['iss']))throw new _0x10fc59('unexpected\x20\x22iss\x22\x20claim\x20value',_0x935a49,'iss','check_failed');if(_0x588717&&_0x935a49['sub']!==_0x588717)throw new _0x10fc59('unexpected\x20\x22sub\x22\x20claim\x20value',_0x935a49,'sub','check_failed');if(_0x474e3&&(_0x46ead6='string'==typeof _0x474e3?[_0x474e3]:_0x474e3,!('string'==typeof(_0x3eaf0d=_0x935a49['aud'])?_0x46ead6['includes'](_0x3eaf0d):Array['isArray'](_0x3eaf0d)&&_0x46ead6['some'](Set['prototype']['has']['bind'](new Set(_0x3eaf0d))))))throw new _0x10fc59('unexpected\x20\x22aud\x22\x20claim\x20value',_0x935a49,'aud','check_failed');var _0x3eaf0d,_0x46ead6;let _0xf14931;switch(typeof _0x24a86d['clockTolerance']){case'string':_0xf14931=_0x4670a0(_0x24a86d['clockTolerance']);break;case'number':_0xf14931=_0x24a86d['clockTolerance'];break;case'undefined':_0xf14931=0x0;break;default:throw new TypeError('Invalid\x20clockTolerance\x20option\x20type');}const {currentDate:_0x5ac666}=_0x24a86d,_0x499c3c=_0x1ec332(_0x5ac666||new Date());if((void 0x0!==_0x935a49['iat']||_0x51a853)&&'number'!=typeof _0x935a49['iat'])throw new _0x10fc59('\x22iat\x22\x20claim\x20must\x20be\x20a\x20number',_0x935a49,'iat','invalid');if(void 0x0!==_0x935a49['nbf']){if('number'!=typeof _0x935a49['nbf'])throw new _0x10fc59('\x22nbf\x22\x20claim\x20must\x20be\x20a\x20number',_0x935a49,'nbf','invalid');if(_0x935a49['nbf']>_0x499c3c+_0xf14931)throw new _0x10fc59('\x22nbf\x22\x20claim\x20timestamp\x20check\x20failed',_0x935a49,'nbf','check_failed');}if(void 0x0!==_0x935a49['exp']){if('number'!=typeof _0x935a49['exp'])throw new _0x10fc59('\x22exp\x22\x20claim\x20must\x20be\x20a\x20number',_0x935a49,'exp','invalid');if(_0x935a49['exp']<=_0x499c3c-_0xf14931)throw new _0x533581('\x22exp\x22\x20claim\x20timestamp\x20check\x20failed',_0x935a49,'exp','check_failed');}if(_0x51a853){const _0x41e192=_0x499c3c-_0x935a49['iat'];if(_0x41e192-_0xf14931>('number'==typeof _0x51a853?_0x51a853:_0x4670a0(_0x51a853)))throw new _0x533581('\x22iat\x22\x20claim\x20timestamp\x20check\x20failed\x20(too\x20far\x20in\x20the\x20past)',_0x935a49,'iat','check_failed');if(_0x41e192<0x0-_0xf14931)throw new _0x10fc59('\x22iat\x22\x20claim\x20timestamp\x20check\x20failed\x20(it\x20should\x20be\x20in\x20the\x20past)',_0x935a49,'iat','check_failed');}return _0x935a49;};async function _0x40d7a6(_0x9107c,_0x3a56a6,_0x2633e4){const _0x2b85b3=await _0x17c93c(_0x9107c,_0x3a56a6,_0x2633e4);if(_0x2b85b3['protectedHeader']['crit']?.['includes']('b64')&&!0x1===_0x2b85b3['protectedHeader']['b64'])throw new _0x2dc34b('JWTs\x20MUST\x20NOT\x20use\x20unencoded\x20payload');const _0x5774be={'payload':_0x151c40(_0x2b85b3['protectedHeader'],_0x2b85b3['payload'],_0x2633e4),'protectedHeader':_0x2b85b3['protectedHeader']};return'function'==typeof _0x3a56a6?{..._0x5774be,'key':_0x2b85b3['key']}:_0x5774be;}async function _0xc0d83a(_0x4233e0,_0x3774e4,_0x336a42){const _0x516ba5=await _0x1c2424(_0x4233e0,_0x3774e4,_0x336a42),_0x1b7c2f=_0x151c40(_0x516ba5['protectedHeader'],_0x516ba5['plaintext'],_0x336a42),{protectedHeader:_0x29c88d}=_0x516ba5;if(void 0x0!==_0x29c88d['iss']&&_0x29c88d['iss']!==_0x1b7c2f['iss'])throw new _0x10fc59('replicated\x20\x22iss\x22\x20claim\x20header\x20parameter\x20mismatch',_0x1b7c2f,'iss','mismatch');if(void 0x0!==_0x29c88d['sub']&&_0x29c88d['sub']!==_0x1b7c2f['sub'])throw new _0x10fc59('replicated\x20\x22sub\x22\x20claim\x20header\x20parameter\x20mismatch',_0x1b7c2f,'sub','mismatch');if(void 0x0!==_0x29c88d['aud']&&JSON['stringify'](_0x29c88d['aud'])!==JSON['stringify'](_0x1b7c2f['aud']))throw new _0x10fc59('replicated\x20\x22aud\x22\x20claim\x20header\x20parameter\x20mismatch',_0x1b7c2f,'aud','mismatch');const _0x48e1d9={'payload':_0x1b7c2f,'protectedHeader':_0x29c88d};return'function'==typeof _0x3774e4?{..._0x48e1d9,'key':_0x516ba5['key']}:_0x48e1d9;}class _0x3380e7{constructor(_0x4d9ab4){this['_flattened']=new _0x293da5(_0x4d9ab4);}['setContentEncryptionKey'](_0x4cfed3){return this['_flattened']['setContentEncryptionKey'](_0x4cfed3),this;}['setInitializationVector'](_0x3ec186){return this['_flattened']['setInitializationVector'](_0x3ec186),this;}['setProtectedHeader'](_0x58bb05){return this['_flattened']['setProtectedHeader'](_0x58bb05),this;}['setKeyManagementParameters'](_0x2700a6){return this['_flattened']['setKeyManagementParameters'](_0x2700a6),this;}async['encrypt'](_0x448e84,_0x5a1d14){const _0x41baff=await this['_flattened']['encrypt'](_0x448e84,_0x5a1d14);return[_0x41baff['protected'],_0x41baff['encrypted_key'],_0x41baff['iv'],_0x41baff['ciphertext'],_0x41baff['tag']]['join']('.');}}class _0xe21a97{constructor(_0x3c0ff1){if(!(_0x3c0ff1 instanceof Uint8Array))throw new TypeError('payload\x20must\x20be\x20an\x20instance\x20of\x20Uint8Array');this['_payload']=_0x3c0ff1;}['setProtectedHeader'](_0x4d806d){if(this['_protectedHeader'])throw new TypeError('setProtectedHeader\x20can\x20only\x20be\x20called\x20once');return this['_protectedHeader']=_0x4d806d,this;}['setUnprotectedHeader'](_0x191f7e){if(this['_unprotectedHeader'])throw new TypeError('setUnprotectedHeader\x20can\x20only\x20be\x20called\x20once');return this['_unprotectedHeader']=_0x191f7e,this;}async['sign'](_0x20c503,_0x5dd09b){if(!this['_protectedHeader']&&!this['_unprotectedHeader'])throw new _0x52a075('either\x20setProtectedHeader\x20or\x20setUnprotectedHeader\x20must\x20be\x20called\x20before\x20#sign()');if(!_0x2ef579(this['_protectedHeader'],this['_unprotectedHeader']))throw new _0x52a075('JWS\x20Protected\x20and\x20JWS\x20Unprotected\x20Header\x20Parameter\x20names\x20must\x20be\x20disjoint');const _0x58a457={...this['_protectedHeader'],...this['_unprotectedHeader']};let _0x18a6ef=!0x0;if(_0x4ad9f4(_0x52a075,new Map([['b64',!0x0]]),_0x5dd09b?.['crit'],this['_protectedHeader'],_0x58a457)['has']('b64')&&(_0x18a6ef=this['_protectedHeader']['b64'],'boolean'!=typeof _0x18a6ef))throw new _0x52a075('The\x20\x22b64\x22\x20(base64url-encode\x20payload)\x20Header\x20Parameter\x20must\x20be\x20a\x20boolean');const {alg:_0x2e7976}=_0x58a457;if('string'!=typeof _0x2e7976||!_0x2e7976)throw new _0x52a075('JWS\x20\x22alg\x22\x20(Algorithm)\x20Header\x20Parameter\x20missing\x20or\x20invalid');_0x33185c(_0x2e7976,_0x20c503,'sign');let _0x8c8386,_0x212747=this['_payload'];_0x18a6ef&&(_0x212747=_0x109970['encode'](_0x367467(_0x212747))),_0x8c8386=this['_protectedHeader']?_0x109970['encode'](_0x367467(JSON['stringify'](this['_protectedHeader']))):_0x109970['encode']('');const _0x1d6b98=_0x377b9e(_0x8c8386,_0x109970['encode']('.'),_0x212747),_0x17f947=await(async(_0xb13fd8,_0x359f20,_0x45ca62)=>{const _0x4a22b0=await _0x3061a9(_0xb13fd8,_0x359f20,'sign');_0x25afa6(_0xb13fd8,_0x4a22b0);const _0x1f2910=await _0x327377['subtle']['sign'](_0x3e20b9(_0xb13fd8,_0x4a22b0['algorithm']),_0x4a22b0,_0x45ca62);return new Uint8Array(_0x1f2910);})(_0x2e7976,_0x20c503,_0x1d6b98),_0x245e9a={'signature':_0x367467(_0x17f947),'payload':''};return _0x18a6ef&&(_0x245e9a['payload']=_0x6a1349['decode'](_0x212747)),this['_unprotectedHeader']&&(_0x245e9a['header']=this['_unprotectedHeader']),this['_protectedHeader']&&(_0x245e9a['protected']=_0x6a1349['decode'](_0x8c8386)),_0x245e9a;}}class _0x4c1585{constructor(_0x2f14dc){this['_flattened']=new _0xe21a97(_0x2f14dc);}['setProtectedHeader'](_0x465e8a){return this['_flattened']['setProtectedHeader'](_0x465e8a),this;}async['sign'](_0x1302e0,_0x57e490){const _0x4ac027=await this['_flattened']['sign'](_0x1302e0,_0x57e490);if(void 0x0===_0x4ac027['payload'])throw new TypeError('use\x20the\x20flattened\x20module\x20for\x20creating\x20JWS\x20with\x20b64:\x20false');return _0x4ac027['protected']+'.'+_0x4ac027['payload']+'.'+_0x4ac027['signature'];}}class _0x459fa0{constructor(_0x15b322,_0x4e6aab,_0x8fb908){this['parent']=_0x15b322,this['key']=_0x4e6aab,this['options']=_0x8fb908;}['setProtectedHeader'](_0x2b0e3d){if(this['protectedHeader'])throw new TypeError('setProtectedHeader\x20can\x20only\x20be\x20called\x20once');return this['protectedHeader']=_0x2b0e3d,this;}['setUnprotectedHeader'](_0x59f620){if(this['unprotectedHeader'])throw new TypeError('setUnprotectedHeader\x20can\x20only\x20be\x20called\x20once');return this['unprotectedHeader']=_0x59f620,this;}['addSignature'](..._0x4f96d2){return this['parent']['addSignature'](..._0x4f96d2);}['sign'](..._0x464f50){return this['parent']['sign'](..._0x464f50);}['done'](){return this['parent'];}}class _0x3c5f11{constructor(_0x1fdd0b){this['_signatures']=[],this['_payload']=_0x1fdd0b;}['addSignature'](_0x4286f4,_0x34792a){const _0x4692d8=new _0x459fa0(this,_0x4286f4,_0x34792a);return this['_signatures']['push'](_0x4692d8),_0x4692d8;}async['sign'](){if(!this['_signatures']['length'])throw new _0x52a075('at\x20least\x20one\x20signature\x20must\x20be\x20added');const _0x14281f={'signatures':[],'payload':''};for(let _0x5dd67e=0x0;_0x5dd67e<this['_signatures']['length'];_0x5dd67e++){const _0x10d171=this['_signatures'][_0x5dd67e],_0x3da56d=new _0xe21a97(this['_payload']);_0x3da56d['setProtectedHeader'](_0x10d171['protectedHeader']),_0x3da56d['setUnprotectedHeader'](_0x10d171['unprotectedHeader']);const {payload:_0x46bd4a,..._0x469c84}=await _0x3da56d['sign'](_0x10d171['key'],_0x10d171['options']);if(0x0===_0x5dd67e)_0x14281f['payload']=_0x46bd4a;else{if(_0x14281f['payload']!==_0x46bd4a)throw new _0x52a075('inconsistent\x20use\x20of\x20JWS\x20Unencoded\x20Payload\x20(RFC7797)');}_0x14281f['signatures']['push'](_0x469c84);}return _0x14281f;}}function _0x3f21a4(_0x2dd525,_0xe2525b){if(!Number['isFinite'](_0xe2525b))throw new TypeError('Invalid\x20'+_0x2dd525+'\x20input');return _0xe2525b;}class _0x34a01f{constructor(_0x4672dd={}){if(!_0xd2756f(_0x4672dd))throw new TypeError('JWT\x20Claims\x20Set\x20MUST\x20be\x20an\x20object');this['_payload']=_0x4672dd;}['setIssuer'](_0x1fdc3e){return this['_payload']={...this['_payload'],'iss':_0x1fdc3e},this;}['setSubject'](_0x20d921){return this['_payload']={...this['_payload'],'sub':_0x20d921},this;}['setAudience'](_0x2bfd13){return this['_payload']={...this['_payload'],'aud':_0x2bfd13},this;}['setJti'](_0xe4c65c){return this['_payload']={...this['_payload'],'jti':_0xe4c65c},this;}['setNotBefore'](_0x2351c6){return'number'==typeof _0x2351c6?this['_payload']={...this['_payload'],'nbf':_0x3f21a4('setNotBefore',_0x2351c6)}:_0x2351c6 instanceof Date?this['_payload']={...this['_payload'],'nbf':_0x3f21a4('setNotBefore',_0x1ec332(_0x2351c6))}:this['_payload']={...this['_payload'],'nbf':_0x1ec332(new Date())+_0x4670a0(_0x2351c6)},this;}['setExpirationTime'](_0x2aecea){return'number'==typeof _0x2aecea?this['_payload']={...this['_payload'],'exp':_0x3f21a4('setExpirationTime',_0x2aecea)}:_0x2aecea instanceof Date?this['_payload']={...this['_payload'],'exp':_0x3f21a4('setExpirationTime',_0x1ec332(_0x2aecea))}:this['_payload']={...this['_payload'],'exp':_0x1ec332(new Date())+_0x4670a0(_0x2aecea)},this;}['setIssuedAt'](_0x3ec99c){return void 0x0===_0x3ec99c?this['_payload']={...this['_payload'],'iat':_0x1ec332(new Date())}:_0x3ec99c instanceof Date?this['_payload']={...this['_payload'],'iat':_0x3f21a4('setIssuedAt',_0x1ec332(_0x3ec99c))}:this['_payload']='string'==typeof _0x3ec99c?{...this['_payload'],'iat':_0x3f21a4('setIssuedAt',_0x1ec332(new Date())+_0x4670a0(_0x3ec99c))}:{...this['_payload'],'iat':_0x3f21a4('setIssuedAt',_0x3ec99c)},this;}}class _0x4c4a1b extends _0x34a01f{['setProtectedHeader'](_0x5c7d2a){return this['_protectedHeader']=_0x5c7d2a,this;}async['sign'](_0x278353,_0x25adfd){const _0x113fa1=new _0x4c1585(_0x109970['encode'](JSON['stringify'](this['_payload'])));if(_0x113fa1['setProtectedHeader'](this['_protectedHeader']),Array['isArray'](this['_protectedHeader']?.['crit'])&&this['_protectedHeader']['crit']['includes']('b64')&&!0x1===this['_protectedHeader']['b64'])throw new _0x2dc34b('JWTs\x20MUST\x20NOT\x20use\x20unencoded\x20payload');return _0x113fa1['sign'](_0x278353,_0x25adfd);}}class _0x534574 extends _0x34a01f{['setProtectedHeader'](_0x587221){if(this['_protectedHeader'])throw new TypeError('setProtectedHeader\x20can\x20only\x20be\x20called\x20once');return this['_protectedHeader']=_0x587221,this;}['setKeyManagementParameters'](_0x4788d4){if(this['_keyManagementParameters'])throw new TypeError('setKeyManagementParameters\x20can\x20only\x20be\x20called\x20once');return this['_keyManagementParameters']=_0x4788d4,this;}['setContentEncryptionKey'](_0x3ee1d1){if(this['_cek'])throw new TypeError('setContentEncryptionKey\x20can\x20only\x20be\x20called\x20once');return this['_cek']=_0x3ee1d1,this;}['setInitializationVector'](_0x407f97){if(this['_iv'])throw new TypeError('setInitializationVector\x20can\x20only\x20be\x20called\x20once');return this['_iv']=_0x407f97,this;}['replicateIssuerAsHeader'](){return this['_replicateIssuerAsHeader']=!0x0,this;}['replicateSubjectAsHeader'](){return this['_replicateSubjectAsHeader']=!0x0,this;}['replicateAudienceAsHeader'](){return this['_replicateAudienceAsHeader']=!0x0,this;}async['encrypt'](_0x18972d,_0x3f8033){const _0x305909=new _0x3380e7(_0x109970['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']}),_0x305909['setProtectedHeader'](this['_protectedHeader']),this['_iv']&&_0x305909['setInitializationVector'](this['_iv']),this['_cek']&&_0x305909['setContentEncryptionKey'](this['_cek']),this['_keyManagementParameters']&&_0x305909['setKeyManagementParameters'](this['_keyManagementParameters']),_0x305909['encrypt'](_0x18972d,_0x3f8033);}}const _0x22f73c=(_0x56b1a3,_0x24b778)=>{if('string'!=typeof _0x56b1a3||!_0x56b1a3)throw new _0x3c2a43(_0x24b778+'\x20missing\x20or\x20invalid');};async function _0x37cc84(_0x152c5b,_0x1c659b){if(!_0xd2756f(_0x152c5b))throw new TypeError('JWK\x20must\x20be\x20an\x20object');if(_0x1c659b??(_0x1c659b='sha256'),'sha256'!==_0x1c659b&&'sha384'!==_0x1c659b&&'sha512'!==_0x1c659b)throw new TypeError('digestAlgorithm\x20must\x20one\x20of\x20\x22sha256\x22,\x20\x22sha384\x22,\x20or\x20\x22sha512\x22');let _0x3338c0;switch(_0x152c5b['kty']){case'EC':_0x22f73c(_0x152c5b['crv'],'\x22crv\x22\x20(Curve)\x20Parameter'),_0x22f73c(_0x152c5b['x'],'\x22x\x22\x20(X\x20Coordinate)\x20Parameter'),_0x22f73c(_0x152c5b['y'],'\x22y\x22\x20(Y\x20Coordinate)\x20Parameter'),_0x3338c0={'crv':_0x152c5b['crv'],'kty':_0x152c5b['kty'],'x':_0x152c5b['x'],'y':_0x152c5b['y']};break;case'OKP':_0x22f73c(_0x152c5b['crv'],'\x22crv\x22\x20(Subtype\x20of\x20Key\x20Pair)\x20Parameter'),_0x22f73c(_0x152c5b['x'],'\x22x\x22\x20(Public\x20Key)\x20Parameter'),_0x3338c0={'crv':_0x152c5b['crv'],'kty':_0x152c5b['kty'],'x':_0x152c5b['x']};break;case'RSA':_0x22f73c(_0x152c5b['e'],'\x22e\x22\x20(Exponent)\x20Parameter'),_0x22f73c(_0x152c5b['n'],'\x22n\x22\x20(Modulus)\x20Parameter'),_0x3338c0={'e':_0x152c5b['e'],'kty':_0x152c5b['kty'],'n':_0x152c5b['n']};break;case'oct':_0x22f73c(_0x152c5b['k'],'\x22k\x22\x20(Key\x20Value)\x20Parameter'),_0x3338c0={'k':_0x152c5b['k'],'kty':_0x152c5b['kty']};break;default:throw new _0x51a5b6('\x22kty\x22\x20(Key\x20Type)\x20Parameter\x20missing\x20or\x20unsupported');}const _0x167cb4=_0x109970['encode'](JSON['stringify'](_0x3338c0));return _0x367467(await _0xd66d9d(_0x1c659b,_0x167cb4));}async function _0x58bb20(_0x252392,_0xf8dc4c){_0xf8dc4c??(_0xf8dc4c='sha256');const _0x253ff5=await _0x37cc84(_0x252392,_0xf8dc4c);return'urn:ietf:params:oauth:jwk-thumbprint:sha-'+_0xf8dc4c['slice'](-0x3)+':'+_0x253ff5;}async function _0x4b2d61(_0xdb655d,_0x4cf680){const _0x36ae7d={..._0xdb655d,..._0x4cf680?.['header']};if(!_0xd2756f(_0x36ae7d['jwk']))throw new _0x52a075('\x22jwk\x22\x20(JSON\x20Web\x20Key)\x20Header\x20Parameter\x20must\x20be\x20a\x20JSON\x20object');const _0x13b673=await _0x417c79({..._0x36ae7d['jwk'],'ext':!0x0},_0x36ae7d['alg']);if(_0x13b673 instanceof Uint8Array||'public'!==_0x13b673['type'])throw new _0x52a075('\x22jwk\x22\x20(JSON\x20Web\x20Key)\x20Header\x20Parameter\x20must\x20be\x20a\x20public\x20key');return _0x13b673;}function _0x57ebd5(_0x14a37a){return _0xd2756f(_0x14a37a);}function _0x18acfc(_0x25db03){return'function'==typeof structuredClone?structuredClone(_0x25db03):JSON['parse'](JSON['stringify'](_0x25db03));}class _0x40ee4b{constructor(_0xcd352c){if(this['_cached']=new WeakMap(),!function(_0x5b6970){return _0x5b6970&&'object'==typeof _0x5b6970&&Array['isArray'](_0x5b6970['keys'])&&_0x5b6970['keys']['every'](_0x57ebd5);}(_0xcd352c))throw new _0x17624b('JSON\x20Web\x20Key\x20Set\x20malformed');this['_jwks']=_0x18acfc(_0xcd352c);}async['getKey'](_0x5b6975,_0x3b1c8f){const {alg:_0x2ab106,kid:_0xe6214d}={..._0x5b6975,..._0x3b1c8f?.['header']},_0x533947=function(_0x590ccb){switch('string'==typeof _0x590ccb&&_0x590ccb['slice'](0x0,0x2)){case'RS':case'PS':return'RSA';case'ES':return'EC';case'Ed':return'OKP';default:throw new _0x51a5b6('Unsupported\x20\x22alg\x22\x20value\x20for\x20a\x20JSON\x20Web\x20Key\x20Set');}}(_0x2ab106),_0x2791da=this['_jwks']['keys']['filter'](_0x159039=>{let _0x47da8c=_0x533947===_0x159039['kty'];if(_0x47da8c&&'string'==typeof _0xe6214d&&(_0x47da8c=_0xe6214d===_0x159039['kid']),_0x47da8c&&'string'==typeof _0x159039['alg']&&(_0x47da8c=_0x2ab106===_0x159039['alg']),_0x47da8c&&'string'==typeof _0x159039['use']&&(_0x47da8c='sig'===_0x159039['use']),_0x47da8c&&Array['isArray'](_0x159039['key_ops'])&&(_0x47da8c=_0x159039['key_ops']['includes']('verify')),_0x47da8c)switch(_0x2ab106){case'ES256':_0x47da8c='P-256'===_0x159039['crv'];break;case'ES256K':_0x47da8c='secp256k1'===_0x159039['crv'];break;case'ES384':_0x47da8c='P-384'===_0x159039['crv'];break;case'ES512':_0x47da8c='P-521'===_0x159039['crv'];break;case'Ed25519':_0x47da8c='Ed25519'===_0x159039['crv'];break;case'EdDSA':_0x47da8c='Ed25519'===_0x159039['crv']||'Ed448'===_0x159039['crv'];}return _0x47da8c;}),{0x0:_0x16e800,length:_0x2bdf7d}=_0x2791da;if(0x0===_0x2bdf7d)throw new _0x31f20c();if(0x1!==_0x2bdf7d){const _0xee5420=new _0x12a802(),{_cached:_0x3e724c}=this;throw _0xee5420[Symbol['asyncIterator']]=async function*(){for(const _0x6aeced of _0x2791da)try{yield await _0x1981e0(_0x3e724c,_0x6aeced,_0x2ab106);}catch{}},_0xee5420;}return _0x1981e0(this['_cached'],_0x16e800,_0x2ab106);}}async function _0x1981e0(_0x37d81e,_0x473a86,_0x42120a){const _0x57d215=_0x37d81e['get'](_0x473a86)||_0x37d81e['set'](_0x473a86,{})['get'](_0x473a86);if(void 0x0===_0x57d215[_0x42120a]){const _0x11479e=await _0x417c79({..._0x473a86,'ext':!0x0},_0x42120a);if(_0x11479e instanceof Uint8Array||'public'!==_0x11479e['type'])throw new _0x17624b('JSON\x20Web\x20Key\x20Set\x20members\x20must\x20be\x20public\x20keys');_0x57d215[_0x42120a]=_0x11479e;}return _0x57d215[_0x42120a];}function _0x1a2915(_0x4ce830){const _0x37a37d=new _0x40ee4b(_0x4ce830),_0x1c3c16=async(_0x15989a,_0x2d9cc3)=>_0x37a37d['getKey'](_0x15989a,_0x2d9cc3);return Object['defineProperties'](_0x1c3c16,{'jwks':{'value':()=>_0x18acfc(_0x37a37d['_jwks']),'enumerable':!0x0,'configurable':!0x1,'writable':!0x1}}),_0x1c3c16;}let _0x13116c;'undefined'!=typeof navigator&&navigator['userAgent']?.['startsWith']?.('Mozilla/5.0\x20')||(_0x13116c='jose/v5.10.0');const _0x2de35e=Symbol();class _0x427b0e{constructor(_0x2e7bb4,_0xf56643){if(!(_0x2e7bb4 instanceof URL))throw new TypeError('url\x20must\x20be\x20an\x20instance\x20of\x20URL');var _0x1968ae,_0x82ee38;this['_url']=new URL(_0x2e7bb4['href']),this['_options']={'agent':_0xf56643?.['agent'],'headers':_0xf56643?.['headers']},this['_timeoutDuration']='number'==typeof _0xf56643?.['timeoutDuration']?_0xf56643?.['timeoutDuration']:0x1388,this['_cooldownDuration']='number'==typeof _0xf56643?.['cooldownDuration']?_0xf56643?.['cooldownDuration']:0x7530,this['_cacheMaxAge']='number'==typeof _0xf56643?.['cacheMaxAge']?_0xf56643?.['cacheMaxAge']:0x927c0,void 0x0!==_0xf56643?.[_0x2de35e]&&(this['_cache']=_0xf56643?.[_0x2de35e],_0x1968ae=_0xf56643?.[_0x2de35e],_0x82ee38=this['_cacheMaxAge'],'object'==typeof _0x1968ae&&null!==_0x1968ae&&'uat'in _0x1968ae&&'number'==typeof _0x1968ae['uat']&&!(Date['now']()-_0x1968ae['uat']>=_0x82ee38)&&'jwks'in _0x1968ae&&_0xd2756f(_0x1968ae['jwks'])&&Array['isArray'](_0x1968ae['jwks']['keys'])&&Array['prototype']['every']['call'](_0x1968ae['jwks']['keys'],_0xd2756f)&&(this['_jwksTimestamp']=this['_cache']['uat'],this['_local']=_0x1a2915(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'](_0x571262,_0xb07178){this['_local']&&this['fresh']()||await this['reload']();try{return await this['_local'](_0x571262,_0xb07178);}catch(_0x36493d){if(_0x36493d instanceof _0x31f20c&&!0x1===this['coolingDown']())return await this['reload'](),this['_local'](_0x571262,_0xb07178);throw _0x36493d;}}async['reload'](){this['_pendingFetch']&&('undefined'!=typeof WebSocketPair||'undefined'!=typeof navigator&&'Cloudflare-Workers'===navigator['userAgent']||'undefined'!=typeof EdgeRuntime&&'vercel'===EdgeRuntime)&&(this['_pendingFetch']=void 0x0);const _0x912f55=new Headers(this['_options']['headers']);_0x13116c&&!_0x912f55['has']('User-Agent')&&(_0x912f55['set']('User-Agent',_0x13116c),this['_options']['headers']=Object['fromEntries'](_0x912f55['entries']())),this['_pendingFetch']||(this['_pendingFetch']=(async(_0x4457ee,_0x12426a,_0x21be53)=>{let _0xd5c81a,_0x575f48,_0x5248a5=!0x1;'function'==typeof AbortController&&(_0xd5c81a=new AbortController(),_0x575f48=setTimeout(()=>{_0x5248a5=!0x0,_0xd5c81a['abort']();},_0x12426a));const _0x490b38=await fetch(_0x4457ee['href'],{'signal':_0xd5c81a?_0xd5c81a['signal']:void 0x0,'redirect':'manual','headers':_0x21be53['headers']})['catch'](_0x195247=>{if(_0x5248a5)throw new _0x593fd8();throw _0x195247;});if(void 0x0!==_0x575f48&&clearTimeout(_0x575f48),0xc8!==_0x490b38['status'])throw new _0x432873('Expected\x20200\x20OK\x20from\x20the\x20JSON\x20Web\x20Key\x20Set\x20HTTP\x20response');try{return await _0x490b38['json']();}catch{throw new _0x432873('Failed\x20to\x20parse\x20the\x20JSON\x20Web\x20Key\x20Set\x20HTTP\x20response\x20as\x20JSON');}})(this['_url'],this['_timeoutDuration'],this['_options'])['then'](_0x477048=>{this['_local']=_0x1a2915(_0x477048),this['_cache']&&(this['_cache']['uat']=Date['now'](),this['_cache']['jwks']=_0x477048),this['_jwksTimestamp']=Date['now'](),this['_pendingFetch']=void 0x0;})['catch'](_0x281aed=>{throw this['_pendingFetch']=void 0x0,_0x281aed;})),await this['_pendingFetch'];}}function _0x255522(_0x2f430c,_0x5b3e6c){const _0x2f115e=new _0x427b0e(_0x2f430c,_0x5b3e6c),_0x2ea602=async(_0x2a2088,_0x44700f)=>_0x2f115e['getKey'](_0x2a2088,_0x44700f);return Object['defineProperties'](_0x2ea602,{'coolingDown':{'get':()=>_0x2f115e['coolingDown'](),'enumerable':!0x0,'configurable':!0x1},'fresh':{'get':()=>_0x2f115e['fresh'](),'enumerable':!0x0,'configurable':!0x1},'reload':{'value':()=>_0x2f115e['reload'](),'enumerable':!0x0,'configurable':!0x1,'writable':!0x1},'reloading':{'get':()=>!!_0x2f115e['_pendingFetch'],'enumerable':!0x0,'configurable':!0x1},'jwks':{'value':()=>_0x2f115e['_local']?.['jwks'](),'enumerable':!0x0,'configurable':!0x1,'writable':!0x1}}),_0x2ea602;}const _0x438713=_0x2de35e;class _0x439348 extends _0x34a01f{['encode'](){return _0x367467(JSON['stringify']({'alg':'none'}))+'.'+_0x367467(JSON['stringify'](this['_payload']))+'.';}static['decode'](_0x8dbd72,_0x2828be){if('string'!=typeof _0x8dbd72)throw new _0x2dc34b('Unsecured\x20JWT\x20must\x20be\x20a\x20string');const {0x0:_0x508cc4,0x1:_0x3e6ab5,0x2:_0x2160d1,length:_0x1ab693}=_0x8dbd72['split']('.');if(0x3!==_0x1ab693||''!==_0x2160d1)throw new _0x2dc34b('Invalid\x20Unsecured\x20JWT');let _0x1502b4;try{if(_0x1502b4=JSON['parse'](_0x6a1349['decode'](_0x491e5c(_0x508cc4))),'none'!==_0x1502b4['alg'])throw new Error();}catch{throw new _0x2dc34b('Invalid\x20Unsecured\x20JWT');}return{'payload':_0x151c40(_0x1502b4,_0x491e5c(_0x3e6ab5),_0x2828be),'header':_0x1502b4};}}const _0x3296c0=_0x367467,_0x2d7500=_0x491e5c;function _0xb6fd00(_0x39e59a){let _0x219b3e;if('string'==typeof _0x39e59a){const _0x85923a=_0x39e59a['split']('.');0x3!==_0x85923a['length']&&0x5!==_0x85923a['length']||([_0x219b3e]=_0x85923a);}else{if('object'==typeof _0x39e59a&&_0x39e59a){if(!('protected'in _0x39e59a))throw new TypeError('Token\x20does\x20not\x20contain\x20a\x20Protected\x20Header');_0x219b3e=_0x39e59a['protected'];}}try{if('string'!=typeof _0x219b3e||!_0x219b3e)throw new Error();const _0x1cb782=JSON['parse'](_0x6a1349['decode'](_0x2d7500(_0x219b3e)));if(!_0xd2756f(_0x1cb782))throw new Error();return _0x1cb782;}catch{throw new TypeError('Invalid\x20Token\x20or\x20Protected\x20Header\x20formatting');}}function _0x2b8b1b(_0xa689db){if('string'!=typeof _0xa689db)throw new _0x2dc34b('JWTs\x20must\x20use\x20Compact\x20JWS\x20serialization,\x20JWT\x20must\x20be\x20a\x20string');const {0x1:_0x13efc7,length:_0x51c54a}=_0xa689db['split']('.');if(0x5===_0x51c54a)throw new _0x2dc34b('Only\x20JWTs\x20using\x20Compact\x20JWS\x20serialization\x20can\x20be\x20decoded');if(0x3!==_0x51c54a)throw new _0x2dc34b('Invalid\x20JWT');if(!_0x13efc7)throw new _0x2dc34b('JWTs\x20must\x20contain\x20a\x20payload');let _0x20295f,_0x8e13d;try{_0x20295f=_0x2d7500(_0x13efc7);}catch{throw new _0x2dc34b('Failed\x20to\x20base64url\x20decode\x20the\x20payload');}try{_0x8e13d=JSON['parse'](_0x6a1349['decode'](_0x20295f));}catch{throw new _0x2dc34b('Failed\x20to\x20parse\x20the\x20decoded\x20payload\x20as\x20JSON');}if(!_0xd2756f(_0x8e13d))throw new _0x2dc34b('Invalid\x20JWT\x20Claims\x20Set');return _0x8e13d;}function _0x7f4eb6(_0x4064ec){const _0x217b5c=_0x4064ec?.['modulusLength']??0x800;if('number'!=typeof _0x217b5c||_0x217b5c<0x800)throw new _0x51a5b6('Invalid\x20or\x20unsupported\x20modulusLength\x20option\x20provided,\x202048\x20bits\x20or\x20larger\x20keys\x20must\x20be\x20used');return _0x217b5c;}async function _0x278af7(_0xb56c45,_0x3746fc){return async function(_0x3f4347,_0x2d79a9){let _0x1811b0,_0x1d930b;switch(_0x3f4347){case'PS256':case'PS384':case'PS512':_0x1811b0={'name':'RSA-PSS','hash':'SHA-'+_0x3f4347['slice'](-0x3),'publicExponent':new Uint8Array([0x1,0x0,0x1]),'modulusLength':_0x7f4eb6(_0x2d79a9)},_0x1d930b=['sign','verify'];break;case'RS256':case'RS384':case'RS512':_0x1811b0={'name':'RSASSA-PKCS1-v1_5','hash':'SHA-'+_0x3f4347['slice'](-0x3),'publicExponent':new Uint8Array([0x1,0x0,0x1]),'modulusLength':_0x7f4eb6(_0x2d79a9)},_0x1d930b=['sign','verify'];break;case'RSA-OAEP':case'RSA-OAEP-256':case'RSA-OAEP-384':case'RSA-OAEP-512':_0x1811b0={'name':'RSA-OAEP','hash':'SHA-'+(parseInt(_0x3f4347['slice'](-0x3),0xa)||0x1),'publicExponent':new Uint8Array([0x1,0x0,0x1]),'modulusLength':_0x7f4eb6(_0x2d79a9)},_0x1d930b=['decrypt','unwrapKey','encrypt','wrapKey'];break;case'ES256':_0x1811b0={'name':'ECDSA','namedCurve':'P-256'},_0x1d930b=['sign','verify'];break;case'ES384':_0x1811b0={'name':'ECDSA','namedCurve':'P-384'},_0x1d930b=['sign','verify'];break;case'ES512':_0x1811b0={'name':'ECDSA','namedCurve':'P-521'},_0x1d930b=['sign','verify'];break;case'Ed25519':_0x1811b0={'name':'Ed25519'},_0x1d930b=['sign','verify'];break;case'EdDSA':{_0x1d930b=['sign','verify'];const _0x1a19d5=_0x2d79a9?.['crv']??'Ed25519';switch(_0x1a19d5){case'Ed25519':case'Ed448':_0x1811b0={'name':_0x1a19d5};break;default:throw new _0x51a5b6('Invalid\x20or\x20unsupported\x20crv\x20option\x20provided');}break;}case'ECDH-ES':case'ECDH-ES+A128KW':case'ECDH-ES+A192KW':case'ECDH-ES+A256KW':{_0x1d930b=['deriveKey','deriveBits'];const _0xeaf45e=_0x2d79a9?.['crv']??'P-256';switch(_0xeaf45e){case'P-256':case'P-384':case'P-521':_0x1811b0={'name':'ECDH','namedCurve':_0xeaf45e};break;case'X25519':case'X448':_0x1811b0={'name':_0xeaf45e};break;default:throw new _0x51a5b6('Invalid\x20or\x20unsupported\x20crv\x20option\x20provided,\x20supported\x20values\x20are\x20P-256,\x20P-384,\x20P-521,\x20X25519,\x20and\x20X448');}break;}default:throw new _0x51a5b6('Invalid\x20or\x20unsupported\x20JWK\x20\x22alg\x22\x20(Algorithm)\x20Parameter\x20value');}return _0x327377['subtle']['generateKey'](_0x1811b0,_0x2d79a9?.['extractable']??!0x1,_0x1d930b);}(_0xb56c45,_0x3746fc);}async function _0x424c08(_0x1c6645,_0x203f8a){return async function(_0x503c60,_0x4c2609){let _0x25875c,_0x51130d,_0x3d4623;switch(_0x503c60){case'HS256':case'HS384':case'HS512':_0x25875c=parseInt(_0x503c60['slice'](-0x3),0xa),_0x51130d={'name':'HMAC','hash':'SHA-'+_0x25875c,'length':_0x25875c},_0x3d4623=['sign','verify'];break;case'A128CBC-HS256':case'A192CBC-HS384':case'A256CBC-HS512':return _0x25875c=parseInt(_0x503c60['slice'](-0x3),0xa),_0x4ed8e4(new Uint8Array(_0x25875c>>0x3));case'A128KW':case'A192KW':case'A256KW':_0x25875c=parseInt(_0x503c60['slice'](0x1,0x4),0xa),_0x51130d={'name':'AES-KW','length':_0x25875c},_0x3d4623=['wrapKey','unwrapKey'];break;case'A128GCMKW':case'A192GCMKW':case'A256GCMKW':case'A128GCM':case'A192GCM':case'A256GCM':_0x25875c=parseInt(_0x503c60['slice'](0x1,0x4),0xa),_0x51130d={'name':'AES-GCM','length':_0x25875c},_0x3d4623=['encrypt','decrypt'];break;default:throw new _0x51a5b6('Invalid\x20or\x20unsupported\x20JWK\x20\x22alg\x22\x20(Algorithm)\x20Parameter\x20value');}return _0x327377['subtle']['generateKey'](_0x51130d,_0x4c2609?.['extractable']??!0x1,_0x3d4623);}(_0x1c6645,_0x203f8a);}var _0xf49d7f='WebCryptoAPI';},0x268:function(_0x5c28ea,_0x253784,_0x39bfee){'use strict';Object['defineProperty'](_0x253784,'__esModule',{'value':!0x0});const _0x26802d=_0x39bfee(0x356),_0x2dbe21=_0x39bfee(0x3e0),_0x3bb25a=_0x39bfee(0x36c);_0x253784['default']={'esignature':_0x26802d['default'],'esignStamp':_0x2dbe21['default'],'esignTooltip':_0x3bb25a['default']};},0x26e:function(_0x333055,_0x3fd065){Object['defineProperty'](_0x3fd065,'__esModule',{'value':!0x0}),_0x3fd065['default']=function(_0x3c3822){var _0x5ad1d1,_0x2c9640='';return Array['prototype']['join'],_0x2c9640+='<div\x20class=\x22formio-esign-tooltip\x22>\x0a\x20\x20\x20\x20<span\x20class=\x22'+(null==(_0x5ad1d1=!0x0!==_0x3c3822['esign']['valid']?'formio-esign-tooltip-header-invalid':'')?'':_0x5ad1d1)+'\x20formio-esign-tooltip-header\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span\x20>'+(null==(_0x5ad1d1=_0x3c3822['t']('Digital\x20Signature'))?'':_0x5ad1d1)+'</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span\x20class=\x22formio-esign-tooltip-status\x22\x20>'+(null==(_0x5ad1d1=_0x3c3822['t'](!0x0!==_0x3c3822['esign']['valid']?'invalid':'verified'))?'':_0x5ad1d1)+'</span>\x0a\x20\x20\x20\x20</span>\x0a\x20\x20\x20\x20',_0x3c3822['pdfForm']&&!0x0!==_0x3c3822['esign']['valid']&&(_0x2c9640+='\x0a\x20\x20\x20\x20<div\x20class=\x22formio-esign-tooltip-invalid-msg\x22>'+(null==(_0x5ad1d1=_0x3c3822['esignInvalidMessage'])?'':_0x5ad1d1)+'</div>\x0a\x20\x20\x20\x20'),_0x2c9640+='\x0a\x20\x20\x20\x20<ul\x20class=\x22formio-esign-tooltip-info\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20',_0x3c3822['pdfForm']&&(_0x2c9640+='\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==(_0x5ad1d1=_0x3c3822['t']('Signed\x20by'))?'':_0x5ad1d1)+':</span><span>'+(null==(_0x5ad1d1=_0x3c3822['esign']?.['signature']?.['user']?.['data']||_0x3c3822['esign']?.['signature']?.['user']?.['_id'])?'':_0x5ad1d1)+'</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==(_0x5ad1d1=_0x3c3822['t']('Signed\x20on'))?'':_0x5ad1d1)+':</span><span>'+(null==(_0x5ad1d1=new Date(_0x3c3822['esign']?.['created'])['toLocaleString']())?'':_0x5ad1d1)+'</span></li>\x0a\x20\x20\x20\x20\x20\x20\x20\x20'),_0x2c9640+'\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==(_0x5ad1d1=_0x3c3822['t']('ID'))?'':_0x5ad1d1)+':</span><span>'+(null==(_0x5ad1d1=_0x3c3822['esign']?.['_id']||'-')?'':_0x5ad1d1)+'</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==(_0x5ad1d1=_0x3c3822['t']('Path'))?'':_0x5ad1d1)+':</span><span>'+(null==(_0x5ad1d1=_0x3c3822['esign']?.['signature']?.['valuePath']||'-')?'':_0x5ad1d1)+'</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==(_0x5ad1d1=_0x3c3822['t']('Submission\x20Rev.'))?'':_0x5ad1d1)+':</span><span>'+(null==(_0x5ad1d1=_0x3c3822['esign']?.['signature']?.['submission']?.['_id']||'-')?'':_0x5ad1d1)+'</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==(_0x5ad1d1=_0x3c3822['t']('Form\x20Rev.'))?'':_0x5ad1d1)+':</span><span>'+(null==(_0x5ad1d1=_0x3c3822['esign']?.['signature']?.['submission']?.['_fvid'])?'':_0x5ad1d1)+'</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==(_0x5ad1d1=_0x3c3822['t']('User\x20ID'))?'':_0x5ad1d1)+':</span><span>'+(null==(_0x5ad1d1=_0x3c3822['esign']?.['signature']?.['user']?.['_id']||'-')?'':_0x5ad1d1)+'</span></li>\x0a\x20\x20\x20\x20</ul>\x0a<div>\x0a';};},0x27f:function(_0x10ca79,_0x2265ba){Object['defineProperty'](_0x2265ba,'__esModule',{'value':!0x0}),_0x2265ba['default']=function(_0x281027){var _0xa940f7,_0x57c1ae='';return Array['prototype']['join'],_0x281027['esign']&&(_0x57c1ae+='\x0a<span\x20class=\x22formio-esign-stamp\x20\x20'+(null==(_0xa940f7=!0x0===_0x281027['esign']['valid']?'':'formio-esign-stamp-invalid')?'':_0xa940f7)+'\x22>\x0a\x20\x20\x20\x20<i\x20ref=\x22esignTooltip\x22\x20style=\x22cursor:pointer\x22\x20data-tooltip=\x22'+(null==(_0xa940f7=_0x281027['esignTooltip'])?'':_0xa940f7)+'\x22\x20class=\x27'+(null==(_0xa940f7=_0x281027['iconClass'](!0x0!==_0x281027['esign']['valid']?'remove-sign':'ok-sign',!0x1))?'':_0xa940f7)+'\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!==_0x281027['esign']['valid']||_0x281027['pdfForm']||(_0x57c1ae+='\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==(_0xa940f7=_0x281027['esign']?.['signature']?.['user']?.['data']||_0x281027['esign']?.['signature']?.['user']?.['_id'])?'':_0xa940f7)+'\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20',_0x281027['esign']?.['created']&&(_0x57c1ae+='\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20on\x20'+(null==(_0xa940f7=new Date(_0x281027['esign']['created'])['toLocaleString']())?'':_0xa940f7)+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'),_0x57c1ae+='\x0a\x20\x20\x20\x20\x20\x20\x20\x20</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20'),_0x57c1ae+='\x0a\x20\x20\x20\x20\x20\x20\x20\x20',!0x0===_0x281027['esign']['valid']&&_0x281027['pdfForm']&&(_0x57c1ae+='\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(null==(_0xa940f7=_0x281027['t']('Signed'))?'':_0xa940f7)+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20'),_0x57c1ae+='\x0a\x20\x20\x20\x20\x20\x20\x20\x20',!0x0!==_0x281027['esign']['valid']&&(_0x57c1ae+='\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(null==(_0xa940f7=_0x281027['esignInvalidMessage'])?'':_0xa940f7)+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20'),_0x57c1ae+='\x0a\x20\x20\x20\x20</span>\x0a</span>\x0a'),_0x57c1ae+'\x0a';};},0x295:function(_0x4daa85,_0x265b9c,_0x1ff687){'use strict';var _0xf2bc9=this&&this['__awaiter']||function(_0x1f8e8f,_0x79f943,_0x53bb6f,_0x3ab51a){return new(_0x53bb6f||(_0x53bb6f=Promise))(function(_0x3a8932,_0x276c12){function _0x5aef5c(_0x38f90a){try{_0x475f3d(_0x3ab51a['next'](_0x38f90a));}catch(_0x3f5893){_0x276c12(_0x3f5893);}}function _0x206987(_0x1c4dbe){try{_0x475f3d(_0x3ab51a['throw'](_0x1c4dbe));}catch(_0x2e1eb5){_0x276c12(_0x2e1eb5);}}function _0x475f3d(_0x2902db){var _0x22c5e9;_0x2902db['done']?_0x3a8932(_0x2902db['value']):(_0x22c5e9=_0x2902db['value'],_0x22c5e9 instanceof _0x53bb6f?_0x22c5e9:new _0x53bb6f(function(_0x17e5bb){_0x17e5bb(_0x22c5e9);}))['then'](_0x5aef5c,_0x206987);}_0x475f3d((_0x3ab51a=_0x3ab51a['apply'](_0x1f8e8f,_0x79f943||[]))['next']());});};Object['defineProperty'](_0x265b9c,'__esModule',{'value':!0x0});const _0x2f508a=_0x1ff687(0x170),_0x5d8b23=_0x1ff687(0x190),_0x318336=_0x2f508a['Components']['components']['component'],_0x2a3c37=_0x2f508a['Utils']['_'],_0x2e07ea=_0x318336['prototype']['init'];_0x318336['prototype']['init']=function(){var _0x67626a,_0x329686,_0x831b3;this['builderMode']||(null===(_0x67626a=this['options'])||void 0x0===_0x67626a?void 0x0:_0x67626a['building'])||(null===(_0x329686=this['options'])||void 0x0===_0x329686?void 0x0:_0x329686['inFormBuilder'])||!this['options']['root']||(this['_parentPath']=(null===(_0x831b3=this['options'])||void 0x0===_0x831b3?void 0x0:_0x831b3['parentPath'])||'',this['esignConfig']=this['getEsignConfig']()),_0x2e07ea['call'](this);},_0x318336['prototype']['getEsignConfig']=function(){const _0x7bd754=this['esign']['signatures']||[];return _0x2a3c37['find'](_0x7bd754,_0x5634f5=>_0x5634f5['component']===this['jsonPathInLocalRoot']);},Object['defineProperty'](_0x318336['prototype'],'esign',{'enumerable':!0x0,'configurable':!0x0,'get'(){var _0xbbfc27;return(null===(_0xbbfc27=this['root'])||void 0x0===_0xbbfc27?void 0x0:_0xbbfc27['esign'])||{};}}),Object['defineProperty'](_0x318336['prototype'],'jsonPathInLocalRoot',{'enumerable':!0x0,'configurable':!0x0,'get'(){return _0x2a3c37['replace'](this['pathInLocalRoot']||'',new RegExp('\x5c[[0-9]*\x5c]','g'),'');}}),Object['defineProperty'](_0x318336['prototype'],'pathInLocalRoot',{'enumerable':!0x0,'configurable':!0x0,'get'(){return _0x2a3c37['replace'](this['path'],this['_parentPath'],'');}}),_0x318336['prototype']['attachESignTooltip']=function(_0x19aa75){(_0x19aa75=_0x19aa75||this['element'])&&(this['destroyESignTooltip'](),this['loadRefs'](_0x19aa75,{'esignTooltip':'multiple'}),this['refs']['esignTooltip']&&(this['esignTooltip']=_0x2a3c37['map'](this['refs']['esignTooltip']||[],_0x48c1bf=>this['createTooltip'](_0x48c1bf,{'theme':'formioEsign'}))));};const _0xbd885e=_0x318336['prototype']['attach'];_0x318336['prototype']['attach']=function(_0x21bc35){return _0xf2bc9(this,void 0x0,void 0x0,function*(){const _0x20253d=_0xbd885e['call'](this,_0x21bc35);try{yield(0x0,_0x5d8b23['checkLicense'])(window['location']['href']),this['attachESignTooltip'](_0x21bc35),this['attachESignatureValidation']();}catch(_0x17e706){return;}return _0x20253d;});},_0x318336['prototype']['setESignature']=function(_0x2d1a65,_0x419337){var _0x41d24d;if(!this['esignConfig'])return void(this['eSignature']&&(this['eSignature']=null));if(_0x2d1a65&&_0x419337['fromSubmission']&&this['options']['cleanESignOnSetSubmission'])return this['eSignature']=null,this['resetValue'](),void this['redraw']();const _0x313ab4=!_0x2a3c37['isEqual'](this['eSignature'],_0x2d1a65);this['eSignature']=_0x2d1a65,this['attachESignatureValidation'](),_0x313ab4&&(this['eSignature']&&!0x0!==(null===(_0x41d24d=this['eSignature'])||void 0x0===_0x41d24d?void 0x0:_0x41d24d['valid'])&&this['resetValue'](),this['redraw']());},_0x318336['prototype']['attachESignatureValidation']=function(){var _0x230e0c;!_0x2a3c37['isEmpty'](this['esignConfig'])&&(null===(_0x230e0c=this['eSignature'])||void 0x0===_0x230e0c?void 0x0:_0x230e0c['valid'])&&this['on']('signedValueChanged',_0x329534=>{var _0x495dd2;if(!(null===(_0x495dd2=this['eSignature'])||void 0x0===_0x495dd2?void 0x0:_0x495dd2['valid'])||!_0x329534)return;const {valuePath:_0xcd4e80,compPath:_0x293f64,parent:_0x2e901a,customProps:_0x4c3e07}=_0x329534;_0x4c3e07&&this['invalidateESignature'](),_0xcd4e80===this['pathInLocalRoot']&&this['invalidateESignature'](!0x0),this['isESignatureDataPath'](_0x293f64,_0x2e901a)&&this['invalidateESignature']();});},_0x318336['prototype']['invalidateESignature']=function(_0x4401a1){this['eSignature']['valid']='the\x20data\x20has\x20been\x20modified',_0x4401a1||this['resetValue'](),this['redraw']();},_0x318336['prototype']['isESignatureDataPath']=function(_0x1508bb,_0x214c04){if(!_0x1508bb)return!0x1;const {signAll:_0xad96,signedData:_0x134884=[]}=this['esignConfig']||{};return _0xad96||_0x2a3c37['some'](_0x134884,_0x4509a0=>_0x214c04&&_0x2a3c37['startsWith'](_0x4509a0,_0x1508bb+'.')||_0x4509a0===_0x1508bb||_0x2a3c37['startsWith'](_0x1508bb,_0x4509a0+'.'));},_0x318336['prototype']['formatEsignTooltip']=function(_0x1234d5=''){const _0x3a6f68=_0x1234d5['replace'](/(?:\r\n|\r|\n)/g,'');return this['getFormattedAttribute'](_0x3a6f68);},_0x318336['prototype']['renderESignature']=function(_0xf4489a){return this['eSignature']&&this['getEsignConfig']?this['renderTemplate']('esignature',{'children':_0xf4489a,'eSignStamp':this['renderEsignStamp']()}):_0xf4489a;};const _0x5528c0=_0x318336['prototype']['render'];_0x318336['prototype']['render']=function(_0x2d01fe='Unknown\x20component:\x20'+this['component']['type'],_0x36cb38=!0x1){return _0x2d01fe=this['renderESignature'](_0x2d01fe),_0x5528c0['call'](this,_0x2d01fe,_0x36cb38);},_0x318336['prototype']['renderEsignTooltip']=function(){const {tooltipTemplate:_0x5b969f}=this['esign'],_0x2a18ea={'pdfForm':'pdf'===this['options']['display'],'esign':this['eSignature'],'esignInvalidMessage':this['getInvalidESigntureMessage'](!0x0)},_0x3438f7=_0x5b969f?this['renderString'](_0x5b969f,_0x2a18ea):this['renderTemplate']('esignTooltip',_0x2a18ea);return this['formatEsignTooltip'](_0x3438f7);};const _0x55b999=_0x318336['prototype']['renderModalPreview'];_0x318336['prototype']['renderModalPreview']=function(_0x41ba6b){return this['renderESignature'](_0x55b999['call'](this,_0x41ba6b));},_0x318336['prototype']['getInvalidESigntureMessage']=function(_0x5aaf05){if(!0x0===this['eSignature']['valid'])return'';if(_0x5aaf05)return'pdf'===this['options']['display']?this['t']('{{reason}}.\x20Please\x20provide\x20an\x20updated\x20signature.',{'reason':this['eSignature']['valid']}):'';const _0x3bfb24=this['t']('Invalid\x20signature:');return'pdf'===this['options']['display']?_0x3bfb24:_0x3bfb24+'\x20'+this['t']('{{reason}}.\x20Please\x20provide\x20an\x20updated\x20signature.',{'reason':this['eSignature']['valid']});},_0x318336['prototype']['renderEsignStamp']=function(){const _0x51a636=this['renderEsignTooltip'](),_0x4c4738={'pdfForm':'pdf'===this['options']['display'],'esign':this['eSignature'],'esignTooltip':_0x51a636,'esignIconClass':this['iconClass'](!0x0!==this['eSignature']['valid']?'times-circle':'check-circle',!0x1),'esignInvalidMessage':this['getInvalidESigntureMessage']()},{stampTemplate:_0x363fc8}=this['esign'];return _0x363fc8?this['renderString'](_0x363fc8,_0x4c4738):this['renderTemplate']('esignStamp',_0x4c4738);},_0x318336['prototype']['destroyESignTooltip']=function(){_0x2a3c37['each'](this['esignTooltip']||[],_0x3c6a2b=>{var _0x4e76dc;_0x3c6a2b&&!(null===(_0x4e76dc=_0x3c6a2b['state'])||void 0x0===_0x4e76dc?void 0x0:_0x4e76dc['isDestroyed'])&&_0x3c6a2b['destroy']&&_0x3c6a2b['destroy']();});};const _0x967128=_0x318336['prototype']['removeEventListeners'];_0x318336['prototype']['removeEventListeners']=function(){_0x967128['call'](this),this['destroyESignTooltip']();};const _0x3f97a2=Object['getOwnPropertyDescriptor'](_0x318336['prototype'],'disabled');Object['defineProperty'](_0x318336['prototype'],'disabled',{'enumerable':!0x0,'configurable':!0x0,'get'(){var _0x5cd1f5;return _0x3f97a2['get']['call'](this)||(null===(_0x5cd1f5=this['parent'])||void 0x0===_0x5cd1f5?void 0x0:_0x5cd1f5['disabled'])||this['shouldDisableSignedData']();}}),_0x318336['prototype']['shouldDisableSignedData']=function(){return _0x2a3c37['get'](this,'root.disableSignedData',!0x1)&&this['isValueSigned']();},_0x318336['prototype']['isValueSigned']=function(){var _0xae4aea,_0x1b39c2;if(!0x0===(null===(_0xae4aea=this['eSignature'])||void 0x0===_0xae4aea?void 0x0:_0xae4aea['valid']))return!0x0;const _0x55f80f=(null===(_0x1b39c2=this['root'])||void 0x0===_0x1b39c2?void 0x0:_0x1b39c2['signedComponentsInfo'])||{};if(null==_0x55f80f?void 0x0:_0x55f80f['all'])return!0x0;const _0x4d4813=this['jsonPathInLocalRoot'];return _0x2a3c37['some']((null==_0x55f80f?void 0x0:_0x55f80f['components'])||[],_0x95178d=>_0x4d4813===_0x95178d||_0x2a3c37['startsWith'](_0x4d4813,_0x95178d+'.'));};const _0x1047d7=_0x318336['prototype']['checkData'];_0x318336['prototype']['checkData']=function(_0x37db5c,_0x3fcf46,_0x36065c){const _0x12f428=_0x1047d7['call'](this,_0x37db5c,_0x3fcf46,_0x36065c);return(null==_0x3fcf46?void 0x0:_0x3fcf46['fromSubmission'])||this['validateSignedValue'](),_0x12f428;},_0x318336['prototype']['checkSignedDataChange']=function(_0xf6af0d={}){return this['hasSignedValueChanged'](_0xf6af0d);},_0x318336['prototype']['validateSignedValue']=function(){var _0x2f4a1b;!this['options']['inFormBuilder']&&!this['builderMode']&&!this['options']['building']&&this['options']['root']&&(null===(_0x2f4a1b=this['root'])||void 0x0===_0x2f4a1b?void 0x0:_0x2f4a1b['shouldValidateESignatures']())&&this['hasSignedValueChanged']()&&this['emitSignedValueChange']();},_0x318336['prototype']['emitSignedValueChange']=function(_0x9c7ab1){this['emit']('signedValueChanged',{'valuePath':this['pathInLocalRoot'],'compPath':this['jsonPathInLocalRoot'],'parent':this['hasSignedChildren'](),'customProps':_0x9c7ab1});},_0x318336['prototype']['getValuePathInSignedData']=function(){if(this['row']){let _0x228dbc,_0x460e34=this;for(;_0x460e34&&_0x460e34['row']&&!_0x228dbc;)_0x460e34=_0x460e34['parent'],'tagpad'===_0x460e34['type']&&(_0x228dbc=_0x460e34);if(_0x228dbc){const _0x2b345e=_0x2a3c37['split'](this['pathInLocalRoot'],new RegExp('^'+_0x228dbc['pathInLocalRoot']+'\x5c[[0-9]*\x5c]','g'))[0x1];return _0x2a3c37['split'](this['pathInLocalRoot'],_0x2b345e)[0x0]+'.data'+_0x2b345e;}}return this['pathInLocalRoot'];},_0x318336['prototype']['compareSignedValue']=function(_0x3e7c3c){return!this['isEqual'](_0x2a3c37['isNil'](_0x3e7c3c)?this['emptyValue']:_0x3e7c3c,_0x2a3c37['isNil'](this['dataValue'])?this['emptyValue']:this['dataValue']);},_0x318336['prototype']['hasSignedValueChanged']=function(_0xfa3782={}){var _0x2dcf45,_0x17b166;const {checkAll:_0x43808a,signedData:_0x3a1de6}=_0xfa3782,_0xda696d=_0x43808a||this['isValueSigned']();if(!this['component']['input']||!0x0!==this['component']['persistent']||!_0xda696d)return!0x1;const _0x4ffbea=_0x3a1de6||(null===(_0x17b166=null===(_0x2dcf45=this['root'])||void 0x0===_0x2dcf45?void 0x0:_0x2dcf45['signedSubmission'])||void 0x0===_0x17b166?void 0x0:_0x17b166['data']);if(!_0x4ffbea)return!0x1;const _0x25a6dc=_0x2a3c37['get'](_0x4ffbea,this['getValuePathInSignedData']());return this['compareSignedValue'](_0x25a6dc);},_0x318336['prototype']['hasSignedChildren']=_0x1537ac=>!0x1,_0x265b9c['default']=_0x318336;},0x2bb:function(_0x2fc960,_0x4ed7d2,_0x3e4a3b){'use strict';Object['defineProperty'](_0x4ed7d2,'__esModule',{'value':!0x0});const _0x480ddf=_0x3e4a3b(0x170)['Components']['components']['componentmodal'],_0x4d621d=_0x480ddf['prototype']['setOpenEventListener'];_0x480ddf['prototype']['setOpenEventListener']=function(){_0x4d621d['call'](this),this['component']['attachESignTooltip']();},_0x4ed7d2['default']=_0x480ddf;},0x2bd:function(_0x562929,_0x2c30f5,_0x4be743){'use strict';Object['defineProperty'](_0x2c30f5,'__esModule',{'value':!0x0});const _0x4f5b07=_0x4be743(0x170),_0x5e4b22=_0x4f5b07['Components']['components']['nested'],_0x1e3cab=_0x4f5b07['Utils']['_'];_0x5e4b22['prototype']['hasSignedValueChanged']=()=>!0x1,_0x5e4b22['prototype']['checkSignedDataChange']=function(_0x3dd3b7={}){const {checkAll:_0x27110c}=_0x3dd3b7;return!(!_0x27110c&&!this['hasSignedChildren']())&&_0x1e3cab['some'](this['getComponents']()||[],_0x33748f=>_0x33748f['checkSignedDataChange'](_0x3dd3b7));},_0x5e4b22['prototype']['hasSignedChildren']=function(){var _0x106e6b;const _0x44defd=(null===(_0x106e6b=this['root'])||void 0x0===_0x106e6b?void 0x0:_0x106e6b['signedComponentsInfo'])||{};if(null==_0x44defd?void 0x0:_0x44defd['all'])return!0x0;const _0x418d5a=this['jsonPathInLocalRoot'];return _0x1e3cab['some']((null==_0x44defd?void 0x0:_0x44defd['components'])||[],_0x8dac38=>_0x418d5a===_0x8dac38||_0x1e3cab['startsWith'](_0x418d5a,_0x8dac38+'.'||_0x1e3cab['startsWith'](_0x8dac38,_0x418d5a+'.')));},_0x2c30f5['default']=_0x5e4b22;},0x2bf:function(_0x440cd8,_0x414d77,_0x1a6b07){'use strict';Object['defineProperty'](_0x414d77,'__esModule',{'value':!0x0});const _0x4eb695=_0x1a6b07(0x170),_0x5a262=_0x4eb695['Components']['components']['form'],_0x3d408c=(_0x4eb695['Utils']['_'],_0x5a262['prototype']['onSetSubFormValue']);_0x5a262['prototype']['onSetSubFormValue']=function(_0x566c7d,_0x3f687d){const _0x22bbab=(null==_0x3f687d?void 0x0:_0x3f687d['fromSubmission'])&&this['subForm'];_0x22bbab&&this['subForm']['setSignedSubmission'](_0x566c7d),_0x3d408c['call'](this,_0x566c7d,_0x3f687d),_0x22bbab&&this['subForm']['setESignatures'](_0x566c7d);};const _0x3d2c53=_0x5a262['prototype']['getSubOptions'];_0x5a262['prototype']['getSubOptions']=function(_0x3f0aab={}){return _0x3f0aab['parentPath']=this['path']+'.data.',_0x3d2c53['call'](this,_0x3f0aab);},_0x5a262['prototype']['getValuePathInSignedData']=function(){return this['pathInLocalRoot']+'.data';},_0x5a262['prototype']['compareSignedValue']=function(_0x6c9e7a){return!!this['subForm']&&this['subForm']['checkSignedDataChange']({'checkAll':!0x0,'signedData':_0x6c9e7a});};const _0x2a15a0=_0x5a262['prototype']['isInternalEvent'];_0x5a262['prototype']['isInternalEvent']=function(_0x2f66a3){return _0x2a15a0['call'](this,_0x2f66a3)||'signedValueChanged'===_0x2f66a3;},_0x414d77['default']=_0x5a262;},0x2c1:function(_0x136384,_0x172f74,_0x401f20){'use strict';Object['defineProperty'](_0x172f74,'__esModule',{'value':!0x0});const _0x348dc2=_0x401f20(0x170),_0x1a323f=_0x348dc2['Components']['components']['nestedarray'],_0x3e8202=_0x348dc2['Utils']['_'];_0x1a323f['prototype']['hasSignedValueChanged']=function(_0x2c31ac={}){var _0x3f3406,_0x86103e;const {checkAll:_0xe5ddf0,signedData:_0x290411}=_0x2c31ac;if(_0xe5ddf0||this['hasSignedChildren']()){const _0x35169b=_0x3e8202['get'](_0x290411||(null===(_0x86103e=null===(_0x3f3406=this['root'])||void 0x0===_0x3f3406?void 0x0:_0x3f3406['signedSubmission'])||void 0x0===_0x86103e?void 0x0:_0x86103e['data']),this['getValuePathInSignedData']());if(_0x3e8202['keys'](this['dataValue'])['length']!==_0x3e8202['keys'](_0x35169b)['length'])return!0x0;if('datamap'===this['component']['type'])return!_0x3e8202['isEqual'](_0x3e8202['keys'](this['dataValue']),_0x3e8202['keys'](_0x35169b));}return!0x1;},_0x172f74['default']=_0x1a323f;},0x2ed:function(_0x1fea41,_0x146ad1){Object['defineProperty'](_0x146ad1,'__esModule',{'value':!0x0}),_0x146ad1['default']=function(_0x18ed69){var _0x281f5e;return''+((null==(_0x281f5e=_0x18ed69['children'])?'':_0x281f5e)+'\x0a<div\x20ref=\x22esignContainer\x22>')+(null==(_0x281f5e=_0x18ed69['eSignStamp'])?'':_0x281f5e)+'</div>\x0a';};},0x2f5:function(_0x1bf760,_0x5180ba,_0x4f4338){'use strict';Object['defineProperty'](_0x5180ba,'__esModule',{'value':!0x0});const _0x13d5a8=_0x4f4338(0x14e);_0x5180ba['default']={'webform':_0x13d5a8['default']};},0x339:function(_0x54c59,_0x37a7a9,_0x4df00d){'use strict';Object['defineProperty'](_0x37a7a9,'__esModule',{'value':!0x0});const _0x12422e=_0x4df00d(0x39d),_0x50dc60=_0x4df00d(0x197),_0x38cc96=_0x4df00d(0x193);_0x37a7a9['default']={'esignature':_0x12422e['default'],'esignStamp':_0x50dc60['default'],'esignTooltip':_0x38cc96['default']};},0x34a:function(_0xdf1259,_0x4b6fc3){Object['defineProperty'](_0x4b6fc3,'__esModule',{'value':!0x0}),_0x4b6fc3['default']=function(_0x1cb011){var _0x38a277,_0x4fce40='';return Array['prototype']['join'],_0x1cb011['esign']&&(_0x4fce40+='\x0a<span\x20class=\x22formio-esign-stamp\x20\x20'+(null==(_0x38a277=!0x0===_0x1cb011['esign']['valid']?'':'formio-esign-stamp-invalid')?'':_0x38a277)+'\x22>\x0a\x20\x20\x20\x20<i\x20ref=\x22esignTooltip\x22\x20style=\x22cursor:pointer\x22\x20data-tooltip=\x22'+(null==(_0x38a277=_0x1cb011['esignTooltip'])?'':_0x38a277)+'\x22\x20class=\x27'+(null==(_0x38a277=_0x1cb011['esignIconClass'])?'':_0x38a277)+'\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!==_0x1cb011['esign']['valid']||_0x1cb011['pdfForm']||(_0x4fce40+='\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==(_0x38a277=_0x1cb011['esign']?.['signature']?.['user']?.['data']||_0x1cb011['esign']?.['signature']?.['user']?.['_id'])?'':_0x38a277)+'\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20',_0x1cb011['esign']?.['created']&&(_0x4fce40+='\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20on\x20'+(null==(_0x38a277=new Date(_0x1cb011['esign']['created'])['toLocaleString']())?'':_0x38a277)+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'),_0x4fce40+='\x0a\x20\x20\x20\x20\x20\x20\x20\x20</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20'),_0x4fce40+='\x0a\x20\x20\x20\x20\x20\x20\x20\x20',!0x0===_0x1cb011['esign']['valid']&&_0x1cb011['pdfForm']&&(_0x4fce40+='\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(null==(_0x38a277=_0x1cb011['t']('Signed'))?'':_0x38a277)+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20'),_0x4fce40+='\x0a\x20\x20\x20\x20\x20\x20\x20\x20',!0x0!==_0x1cb011['esign']['valid']&&(_0x4fce40+='\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(null==(_0x38a277=_0x1cb011['esignInvalidMessage'])?'':_0x38a277)+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20'),_0x4fce40+='\x0a\x20\x20\x20\x20</span>\x0a</span>\x0a'),_0x4fce40+'\x0a';};},0x356:function(_0x3c7b78,_0x46dd21,_0x4da4b2){'use strict';Object['defineProperty'](_0x46dd21,'__esModule',{'value':!0x0});const _0x416f95=_0x4da4b2(0x0);_0x46dd21['default']={'form':_0x416f95['default']};},0x36c:function(_0x5dec9e,_0x2dded3,_0x8ef70f){'use strict';Object['defineProperty'](_0x2dded3,'__esModule',{'value':!0x0});const _0x18f213=_0x8ef70f(0x26e);_0x2dded3['default']={'form':_0x18f213['default']};},0x39d:function(_0x575cb1,_0x453d02,_0x371fa9){'use strict';Object['defineProperty'](_0x453d02,'__esModule',{'value':!0x0});const _0x45ea99=_0x371fa9(0x2ed);_0x453d02['default']={'form':_0x45ea99['default']};},0x3c9:function(_0x2d3503,_0x4d05eb,_0x2ed3e5){'use strict';Object['defineProperty'](_0x4d05eb,'__esModule',{'value':!0x0});const _0x474ea5=_0x2ed3e5(0x268),_0x451f50=_0x2ed3e5(0x339);_0x4d05eb['default']={'bootstrap':_0x474ea5['default'],'bootstrap3':_0x451f50['default'],'bootstrap4':_0x474ea5['default'],'bootstrap5':_0x474ea5['default']};},0x3e0:function(_0x4bcb3d,_0x2352bf,_0x5f3cf8){'use strict';Object['defineProperty'](_0x2352bf,'__esModule',{'value':!0x0});const _0x1698c0=_0x5f3cf8(0x34a);_0x2352bf['default']={'form':_0x1698c0['default']};}},_0x135955={};function _0x4c553d(_0x3d11d8){var _0x26bba8=_0x135955[_0x3d11d8];if(void 0x0!==_0x26bba8)return _0x26bba8['exports'];var _0x406e08=_0x135955[_0x3d11d8]={'exports':{}};return _0x59ad05[_0x3d11d8]['call'](_0x406e08['exports'],_0x406e08,_0x406e08['exports'],_0x4c553d),_0x406e08['exports'];}_0x4c553d['d']=function(_0x2906c0,_0x4a2a2e){for(var _0x1d6d73 in _0x4a2a2e)_0x4c553d['o'](_0x4a2a2e,_0x1d6d73)&&!_0x4c553d['o'](_0x2906c0,_0x1d6d73)&&Object['defineProperty'](_0x2906c0,_0x1d6d73,{'enumerable':!0x0,'get':_0x4a2a2e[_0x1d6d73]});},_0x4c553d['o']=function(_0x195d1,_0x580324){return Object['prototype']['hasOwnProperty']['call'](_0x195d1,_0x580324);},_0x4c553d['r']=function(_0x2adecb){'undefined'!=typeof Symbol&&Symbol['toStringTag']&&Object['defineProperty'](_0x2adecb,Symbol['toStringTag'],{'value':'Module'}),Object['defineProperty'](_0x2adecb,'__esModule',{'value':!0x0});};var _0x5697d1={};return(function(){'use strict';var _0x2f70ac=_0x5697d1;const _0x4bdb38=_0x4c553d(0x15e),_0x22d6b4=_0x4c553d(0x3c9),_0x49cc46=_0x4c553d(0x203),_0x57fd10=_0x4c553d(0x2f5);_0x2f70ac['default']={'components':_0x4bdb38['default'],'templates':_0x22d6b4['default'],'library':_0x49cc46['default'],'displays':_0x57fd10['default']};}()),_0x5697d1['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.3",
3
+ "version": "1.1.1",
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.6",
33
+ "@formio/js": "^5.3.1",
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.6"
63
+ "@formio/js": "^5.3.1"
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}]}