/**
 * Skipped minification because the original files appears to be already minified.
 * Original file: /npm/@xylink/xy-toolkit@1.0.1/index.js
 *
 * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
 */
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s0=class ae{static getPlatform(){const t=navigator.userAgent.toLowerCase(),e=navigator.platform.toLowerCase(),r=/macintosh|mac os x/.test(t)||/mac/.test(e),i=/linux/.test(e)&&!/harmony/.test(t),s=/win|windows|win32|win64/i.test(t),a=/windows phone/.test(t),o=/symbianos/.test(t)||a,h=/harmony/.test(t)&&!/pc/.test(t),c=/android/.test(t)||h,u=/harmony/.test(t)&&/pc/.test(t),d=/firefox/.test(t),f=/chrome|crios/.test(t)&&!/edg/.test(t),x=/edg/.test(t),l=/safari/.test(t)&&!f&&!x,g=/ipad/.test(t)||/macintel/.test(t)&&navigator.maxTouchPoints>1||/macintosh/.test(t)&&navigator.maxTouchPoints>1,E=/ipad|playbook/.test(t)||c&&!/mobile/.test(t)||d&&/tablet/.test(t),B=/iphone/.test(t)&&!E,v=B||g,p=B||c||g||o,y=!p,A=/baidu|bidubrowser|baiduboxapp/.test(t),m=/tencenttraveler|qqbrowse|qq\/|micromessenger/.test(t),b=/opera|opr/.test(t),w=/huaweibrowser/.test(t),O=/Trident/.test(t),D=/qihuubrowser|qhbrowser|360se|360ee|lbbrowser|uc|ubrowser|ucweb|quark|miuibrowser|aliapp\(tb|weibo|iqiyiapp|huaweibrowser|huawei|metasr|sogou|se|maxthon|the world|metasr|2345explorer|tencenttraveler|mb2345browser/.test(t),C=/micromessenger/.test(t)&&!/wxwork|windowswechat/.test(t),T=/wxwork/.test(t)&&/micromessenger/.test(t),S=/miniprogram/.test(t),I=/micromessenger.*wxwork.*windowswechat/.test(t)&&!/macintosh/.test(t),M=/micromessenger.*windowswechat/.test(t)&&!/wxwork|macintosh/i.test(t),L=/dingtalk/.test(t),U=/electron/.test(t);return{isTablet:E,isPhone:B,isAndroid:c,isPc:y,isMac:r,isWindows:s,isIPad:g,isChrome:f,isLinux:i,isFirefox:d,isBaidu:A,isQQ:m,isOpera:b,isZhazha:D,isEdge:x,isSafari:l,isHuaweiBrowser:w,isWeixin:C,isWxwork:T,isAPPHarmony:h,isPCHarmony:u,isMiniProgram:S,isWindowsWxWechat:I,isWindowsWechat:M,isTrident:O,isIOS:v,isDingDing:L,isMobile:p,isElectron:U}}static getOperationSystem(){const{isIPad:t,isMac:e,isWindowsWechat:r,isWindowsWxWechat:i,isWindows:s,isPhone:a,isAndroid:o,isLinux:h,isMiniProgram:c,isAPPHarmony:u,isPCHarmony:d}=ae.getPlatform();return i?"Windows WXWechat":r?"Windows Wechat":s?"Windows":u||d?"Harmony":a?"iOS":o?"Android":t?"iPad":e?"Mac":h?"Linux":c?"MiniProgram":""}static getChromeVersion(){let t=navigator.userAgent.match(/Chrom(?:e|ium)\/([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)/);if(!(t==null||t.length!=5))return t=t.map(e=>parseInt(e,10)),{major:t[1],minor:t[2],build:t[3],patch:t[4]}}static getEdgeVersion(){let t=navigator.userAgent.match(/Ed(?:g)\/([0-9]+)\.([0-9]+)\.([0-9]+)/);if(!(t==null||t.length<4))return t=t.map(e=>parseInt(e,10)),{major:t[1],minor:t[2],build:t[3]}}static getSafariVersion(){let t=navigator.userAgent.match(/Version\/([0-9]+)\.([0-9]+)/);if(!(t==null||t.length<3))return t=t.map(e=>parseInt(e,10)),{major:t[1],minor:t[2]}}static getFirefoxVersion(){let t=navigator.userAgent.match(/Firefox\/([0-9]+)\.([0-9]+)/);if(!(t==null||t.length<3))return t=t.map(e=>parseInt(e,10)),{major:t[1],minor:t[2]}}static getAndroidVersion(){const t=navigator.userAgent.toLowerCase().match(/android (.*?);/);if(t){let e=t[1].split(".");return e=e.map(r=>parseInt(r,10)),{major:e[0],minor:e[1]}}}static getIOSVersion(){const t=navigator.userAgent.toLowerCase().match(/cpu( iphone)? os (.*?) like mac os/);if(t){let e=t[2].split("_");return e=e.map(r=>parseInt(r,10)),{major:e[0],minor:e[1]}}}static getWeixinVersion(){const{isWeixin:t}=ae.getPlatform();if(t)return(navigator.userAgent.match(/MicroMessenger\/([\d.]+)/i)||["",""])[1]}static getWXWeixinVersion(){const{isWxwork:t}=ae.getPlatform();if(t)return(navigator.userAgent.match(/wxwork\/([\d.]+)/i)||["",""])[1]}static compareVersion(t,e){const r=t.split("."),i=e.split("."),s=Math.max(r.length,i.length);for(;r.length<s;)r.push("0");for(;i.length<s;)i.push("0");for(let a=0;a<s;a++){const o=parseInt(r[a]),h=parseInt(i[a]);if(o>h)return 1;if(o<h)return-1}return 0}static isTouchDevice(){return"ontouchstart"in window||navigator.maxTouchPoints>0}};s0.getBrowserName=()=>{const{isFirefox:n,isChrome:t,isSafari:e,isWindowsWechat:r,isWindowsWxWechat:i,isZhazha:s,isEdge:a,isWeixin:o,isWxwork:h,isQQ:c,isHuaweiBrowser:u,isOpera:d,isTrident:f,isAPPHarmony:x}=s0.getPlatform();return n?"Firefox":t?"Chrome":e?"Safari":a?"Edge":d?"Opera":f?"Internet Explorer":r?"WindowsWechat":i?"WindowsWxWechat":o?"Weixin":h?"WXWeixin":c?"Tencent":u?"Huawei":s?"Other":x?"Harmony":"Unknown"};let Et=s0;var Pt=(n=>(n[n.ALL=0]="ALL",n[n.VIDEO=1]="VIDEO",n[n.AUDIO=2]="AUDIO",n[n.CONTENT=3]="CONTENT",n))(Pt||{}),ri=(n,t,e)=>new Promise((r,i)=>{var s=h=>{try{o(e.next(h))}catch(c){i(c)}},a=h=>{try{o(e.throw(h))}catch(c){i(c)}},o=h=>h.done?r(h.value):Promise.resolve(h.value).then(s,a);o((e=e.apply(n,t)).next())});class ii{constructor(t={}){this.videoElement=null,this.wakeLock=null,this.handleVisibilityChange=()=>{const e=document.visibilityState==="visible";this.options.onVisibilityChange&&this.options.onVisibilityChange(e),e?(this.requestWakeLock(),this.destroyVideoElement()):this.playVideo()},this.handleWakeLockRelease=()=>{this.wakeLock=null},this.options=t}canWakeLock(){return"wakeLock"in navigator}createVideoElement(t){const e=document.createElement("video");return e.src=t,e.volume=.001,e.loop=!0,e.playsInline=!0,e.width=10,e.height=10,e.title="no sleep",e.style.position="fixed",e.style.zIndex="-1",document.body.appendChild(e),e}requestWakeLock(){return ri(this,null,function*(){if(this.canWakeLock()&&!this.wakeLock)try{this.wakeLock=yield navigator.wakeLock.request("screen"),console.log("Wake Lock is active"),this.wakeLock.addEventListener("release",this.handleWakeLockRelease)}catch(t){console.log("Wake Lock request failed:",t)}})}releaseWakeLock(){this.wakeLock&&(this.wakeLock.removeEventListener("release",this.handleWakeLockRelease),this.wakeLock.release().then(()=>{console.log("Wake Lock is release"),this.wakeLock=null}))}playVideo(){var t;this.options.enableAudioWakeLock&&(this.videoElement||(this.videoElement=this.createVideoElement(this.options.audioFile||"")),(t=this.videoElement)==null||t.play().catch(e=>console.log("Video play error:",e)))}destroyVideoElement(){this.videoElement&&(this.videoElement.pause(),document.body.removeChild(this.videoElement),this.videoElement=null)}enable(){this.requestWakeLock(),document.addEventListener("visibilitychange",this.handleVisibilityChange)}disable(){this.releaseWakeLock(),this.destroyVideoElement(),document.removeEventListener("visibilitychange",this.handleVisibilityChange)}destroy(){this.disable(),this.destroyVideoElement()}}var ni=(n,t,e)=>new Promise((r,i)=>{var s=h=>{try{o(e.next(h))}catch(c){i(c)}},a=h=>{try{o(e.throw(h))}catch(c){i(c)}},o=h=>h.done?r(h.value):Promise.resolve(h.value).then(s,a);o((e=e.apply(n,t)).next())});const Fr=n=>new Promise(t=>setTimeout(t,n)),Sr=n=>ni(null,null,function*(){let t=!0;for(;t;)yield Fr(n),t=!1});var si=Object.defineProperty,oi=Object.defineProperties,ai=Object.getOwnPropertyDescriptors,b0=Object.getOwnPropertySymbols,ci=Object.prototype.hasOwnProperty,hi=Object.prototype.propertyIsEnumerable,w0=(n,t,e)=>t in n?si(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e,ui=(n,t)=>{for(var e in t||(t={}))ci.call(t,e)&&w0(n,e,t[e]);if(b0)for(var e of b0(t))hi.call(t,e)&&w0(n,e,t[e]);return n},fi=(n,t)=>oi(n,ai(t)),Dt=(n,t,e)=>new Promise((r,i)=>{var s=h=>{try{o(e.next(h))}catch(c){i(c)}},a=h=>{try{o(e.throw(h))}catch(c){i(c)}},o=h=>h.done?r(h.value):Promise.resolve(h.value).then(s,a);o((e=e.apply(n,t)).next())});const Jt=[{width:640,height:360},{width:1280,height:720},{width:1920,height:1080},{width:2560,height:1440},{width:3840,height:2160},{width:5760,height:3240}],F0={audioInputList:[],audioOutputList:[],videoInputList:[]};class je{constructor(){this.deviceList=F0,this.maxResolutionMap=new Map}static getInstance(){return this.instance?this.instance:new je}destroy(){this.deviceList=F0,this.maxResolutionMap=new Map}captureStream(t,e=!0){return Dt(this,null,function*(){const{VIDEO:r,ALL:i,AUDIO:s}=Pt;let a={};t===r?a.video=e:t===s?a.audio=e:t===i&&(a=e);try{return yield navigator.mediaDevices.getUserMedia(a)}catch(o){const h=this.handleCaptureStreamError(o);return Promise.reject(h)}})}captureContentStream(t){return Dt(this,null,function*(){var e;try{const r=window.screen.width,i=window.screen.height,s=window.devicePixelRatio,a=r*s,o=i*s,h=t||{video:{cursor:"always",logicalSurface:!0,displaySurface:"monitor",width:a,height:o}},c=yield(e=navigator.mediaDevices)==null?void 0:e.getDisplayMedia(h);return yield Sr(500),c}catch(r){const i=this.handleCreateContentStreamError(r);return Promise.reject(i)}})}checkAllowCamera(){return Dt(this,null,function*(){let t=!1;try{const e=yield this.captureStream(Pt.VIDEO);return t=!0,e&&this.closeStream([e]),{allow:t,msg:""}}catch(e){const r=e.msg||"采集视频流失败";return{allow:t,msg:r}}})}checkAllowMicroPhone(){return Dt(this,null,function*(){let t=!1;try{const e=yield this.captureStream(Pt.AUDIO);return t=!0,e&&this.closeStream([e]),{allow:t,msg:""}}catch(e){const r=e.msg||"采集音频流失败";return{allow:t,msg:r}}})}getMaxResolution(){return Dt(this,null,function*(){const{videoInputList:t}=this.deviceList;if(t.length)for(const e of t){const r=yield this.calculateMaxResolution(e);this.maxResolutionMap.set(e.deviceId,r)}return this.maxResolutionMap})}calculateMaxResolution(t){return Dt(this,arguments,function*({deviceId:e}){const r=Jt.length,i=Jt[0].width,s=Jt[0].height;let a={width:i,height:s};for(let o=0;o<r;o++){const h=Jt[o],c=fi(ui({},h),{deviceId:e,frameRate:15});let u=!1;try{const d=yield this.captureStream(Pt.VIDEO,c),x=d.getVideoTracks()[0].getSettings(),{width:l=0,height:g=0,deviceId:E=""}=x;if((h.width===l||h.height===g)&&(a.width<=l||a.height<=g)&&e===E?a=h:u=!0,this.closeStream([d]),u)break}catch(d){console.warn("get max resolution err: ",d);break}}return a})}getDeviceList(){return Dt(this,null,function*(){try{const t=yield navigator.mediaDevices.enumerateDevices(),e=[],r=[],i=[],s=a=>a.filter(({label:o,deviceId:h})=>!(o.match(/\(Virtual\)$/)||h==="communications"));return t.forEach(a=>{const{deviceId:o,label:h,kind:c,groupId:u}=a,d={deviceId:o,label:h,kind:c,groupId:u};o&&c&&(c==="audioinput"?e.push(d):c==="audiooutput"?r.push(d):c==="videoinput"&&i.push(d))}),this.deviceList={audioInputList:s(e),audioOutputList:s(r),videoInputList:s(i)},this.deviceList}catch(t){return this.deviceList={audioInputList:[],audioOutputList:[],videoInputList:[]},this.deviceList}})}closeStream(t){t.forEach(e=>{e.getTracks().forEach(r=>{r.stop()})})}getSupportedConstraints(){var t;const e=[];try{const r=(t=navigator==null?void 0:navigator.mediaDevices)==null?void 0:t.getSupportedConstraints();if(r)for(const i in r)e.push(i);return e}catch(r){return e}}handleCaptureStreamError(t){let e={code:0,msg:"",detail:null};return t.name==="NotFoundError"||t.name==="DevicesNotFoundError"?e={code:20400,msg:"缺失摄像头或麦克风设备"}:t.name==="NotReadableError"||t.name==="TrackStartError"?e={code:20401,msg:"摄像头或麦克风设备无法访问"}:t.name==="OverconstrainedError"||t.name==="ConstraintNotSatisfiedError"?e={code:20402,msg:"约束设置无法被满足"}:t.name==="NotAllowedError"||t.name==="PermissionDeniedError"||t.message.includes("NotAllowedError")?e={code:20403,msg:"麦克风或摄像头使用权限被拒绝"}:t.name==="TypeError"||t.name==="TypeError"?e={code:20404,msg:"采集流约束设置为空"}:e={code:20405,msg:"创建媒体流失败"},e}handleCreateContentStreamError(t){const{name:e,message:r}=t;let i={code:0,msg:"",detail:null};return e==="NotAllowedError"?r==="Permission denied by system"?i={code:950508,msg:"屏幕分享失败，请在系统设置中授权屏幕录制权限"}:r==="Permission denied"?i={code:950501,msg:"取消分享屏幕"}:i={code:950511,msg:"用户取消分享屏幕"}:e==="InvalidStateError"?i={code:950502,msg:"操作异常-采集屏幕失败"}:e==="AbortError"?i={code:950503,msg:"采集屏幕失败"}:e==="NotFoundError"?i={code:950504,msg:"没有屏幕视频源可用于捕获"}:e==="NotReadableError"?i={code:950505,msg:"屏幕分享失败，请在系统设置中重新授权屏幕录制权限，并重启浏览器"}:e==="OverconstrainedError"?i={code:950506,msg:"采集屏幕流失败"}:e==="TypeError"?i={code:950507,msg:"采集屏幕流不支持"}:i={code:950503,msg:"采集屏幕失败"},i}}class xi{static getSystemInfo(){return window?{userAgent:navigator.userAgent,location:window.location,devicePixelRatio:window.devicePixelRatio,screen:{width:window.screen.width,height:window.screen.height,availWidth:window.screen.availWidth,availHeight:window.screen.availHeight,colorDepth:window.screen.colorDepth,pixelDepth:window.screen.pixelDepth}}:{}}}var li=Object.defineProperty,di=Object.defineProperties,vi=Object.getOwnPropertyDescriptors,S0=Object.getOwnPropertySymbols,pi=Object.prototype.hasOwnProperty,gi=Object.prototype.propertyIsEnumerable,_0=(n,t,e)=>t in n?li(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e,Ei=(n,t)=>{for(var e in t||(t={}))pi.call(t,e)&&_0(n,e,t[e]);if(S0)for(var e of S0(t))gi.call(t,e)&&_0(n,e,t[e]);return n},yi=(n,t)=>di(n,vi(t)),vt=(n,t,e)=>new Promise((r,i)=>{var s=h=>{try{o(e.next(h))}catch(c){i(c)}},a=h=>{try{o(e.throw(h))}catch(c){i(c)}},o=h=>h.done?r(h.value):Promise.resolve(h.value).then(s,a);o((e=e.apply(n,t)).next())});const Tt=Et.getPlatform(),Ht=class rt{static isSupportDesktopBrowser(){let t=!1;const{isChrome:e,isEdge:r,isFirefox:i}=Tt;if(e){const s=Et.getChromeVersion();t=(s==null?void 0:s.major)>=72}else if(r){const s=Et.getEdgeVersion();t=(s==null?void 0:s.major)>=80}else if(i){const s=Et.getFirefoxVersion();t=(s==null?void 0:s.major)>=80}return t}static isSupportMobileBrowser(){let t=!1;const{isPhone:e,isAndroid:r,isIPad:i}=Tt;if(r){const{major:s}=Et.getAndroidVersion()||{major:0};t=s>=6}else if(e){const{major:s,minor:a}=Et.getIOSVersion()||{major:0,minor:0};t=s===12?a>2:s>12}else i&&(t=!0);return t}static isSupportAspectRatio(){return!Tt.isPhone}static isSupportUserMedia(){var t;return!!((t=navigator==null?void 0:navigator.mediaDevices)!=null&&t.getUserMedia)}static checkCanvasCapture(){const t=document.createElement("canvas");t.setAttribute("style","display: none"),t.id=rt.CANVAS_TEST_ID,document.getElementsByTagName("body")[0].appendChild(t);const r=!!t.captureStream;let i=null;return r&&(i=t.captureStream()),{canvasStream:i,isSupportCanvasCapture:r}}static checkVideoCapture(t){const e=document.createElement("video");e.setAttribute("style","display: none"),e.src=t,e.muted=!0,e.id=rt.VIDEO_TEST_ID,e.crossOrigin="anonymous",document.getElementsByTagName("body")[0].appendChild(e);const i=!!e.captureStream||!1;return this.removeDetectElement(rt.VIDEO_TEST_ID),{isSupportVideoCapture:i}}static removeDetectElement(t=rt.CANVAS_TEST_ID){var e;const r=document.getElementById(t);r&&((e=r.parentNode)==null||e.removeChild(r))}static isSupportRTC(t){return vt(this,null,function*(){let e={isSupportRTC:!1,isSupportAddtrack:!1,isSupportAddTransceiver:!1,isSupportReplaceTrack:!1,isApplyConstraints:!1,isSupportSetStreams:!1};const r=["RTCPeerConnection","webkitRTCPeerConnection","mozRTCPeerConnection"];for(let i=0;i<r.length;i++)if(r[i]in window){e.isSupportRTC=!0;break}if(e.isSupportRTC){const i=yield rt.isSupportPeerCB(t),{isSupportPeer:s}=i;e=yi(Ei({},i),{isSupportRTC:s})}return e})}static isSupportPeerCB(t){return vt(this,null,function*(){return new Promise(e=>{setTimeout(()=>{var r;if(RTCPeerConnection){const i=new RTCPeerConnection({iceServers:[]});let s=!1,a=!1,o=!1,h=!1,c=!1,u=!1;if(s=!!(i.createAnswer&&i.createOffer),a=!!i.addTrack,o=!!(i!=null&&i.addTransceiver),t&&((r=t==null?void 0:t.getVideoTracks())!=null&&r.length)&&o){const f=t.getVideoTracks()[0];let x=i.addTransceiver(f);x&&(h=!!x.sender.replaceTrack,u=!!x.sender.setStreams),f&&(c=!!f.applyConstraints),x=null}return i.close(),e({isSupportPeer:s,isSupportAddtrack:a,isSupportAddTransceiver:o,isSupportReplaceTrack:h,isApplyConstraints:c,isSupportSetStreams:u})}else return e({isSupportPeer:!1,isSupportAddtrack:!1,isSupportAddTransceiver:!1,isSupportReplaceTrack:!1,isApplyConstraints:!1,isSupportSetStreams:!1})},100)})})}static isSupportWebsocket(){return!!window.WebSocket}static isSupportVideoCapture(t){const e=!!t.captureStream;let r=null;return e&&(r=t==null?void 0:t.captureStream()),{videoCaptureStream:r,captureVideoVisible:e}}static isSupportIndexDB(){var t;return!!((t=window==null?void 0:window.indexedDB)!=null&&t.open)}static isSupportDevicePermission(){return vt(this,null,function*(){try{return yield navigator.permissions.query({name:"microphone"}),yield navigator.permissions.query({name:"camera"}),!0}catch(t){return!1}})}static isSupportAudioContext(){return!!(window!=null&&window.AudioContext||window!=null&&window.webkitAudioContext)}static isSupportMediaDevices(){return!!navigator.mediaDevices}static isSupportMediaRecorder(){return!!window.MediaRecorder}static isSupportWebWorker(){return!!window.Worker}static isSupportTransformStream(){return!!window.TransformStream}static isSupportH264(){return vt(this,null,function*(){var t,e,r;const{isFirefox:i}=Tt;let s=!1;if(i)try{const o=yield new RTCPeerConnection().createOffer({offerToReceiveAudio:!0,offerToReceiveVideo:!0});s=(((t=o==null?void 0:o.sdp)==null?void 0:t.toLowerCase().indexOf("h264"))||-1)>-1}catch(a){}try{const a=((e=RTCRtpSender.getCapabilities("video"))==null?void 0:e.codecs.filter(h=>h.mimeType.toLowerCase().indexOf("h264")>0))||[],o=((r=RTCRtpReceiver.getCapabilities("video"))==null?void 0:r.codecs.filter(h=>h.mimeType.toLowerCase().indexOf("h264")>0))||[];(a==null?void 0:a.length)>0&&o.length>0&&(s=!0)}catch(a){}return s})}static getNetWork(){const e=navigator.connection||{};return JSON.stringify(e)}static getCPUCount(){return window.navigator.hardwareConcurrency||0}static getUserAgent(){return navigator.userAgent}static getAudioCodec(t){return vt(this,null,function*(){let e=[];try{const r=(t==null?void 0:t.getCapabilities("audio"))||{},i=(r==null?void 0:r.codecs)||[],s=new Set;i.forEach(a=>{a.mimeType==="audio/opus"&&s.add("Opus")}),e=[...s]}catch(r){const{isFirefox:i}=Tt;i&&(e=["Opus"])}return e})}static getVideoCodec(t){return vt(this,null,function*(){let e=[];try{const r=(t==null?void 0:t.getCapabilities("video"))||{},i=(r==null?void 0:r.codecs)||[],s=new Set;i.forEach(a=>{(a.mimeType==="video/H264"||a.mimeType==="video/VP8"||a.mimeType==="video/VP9")&&s.add(a.mimeType.split("video/")[1])}),e=[...s]}catch(r){const{isFirefox:i}=Tt;i&&(e=["VP8","H264"])}return e})}static getSupportedCodec(){return vt(this,null,function*(){try{const t=yield rt.getAudioCodec(RTCRtpSender),e=yield rt.getVideoCodec(RTCRtpSender),r=yield rt.getAudioCodec(RTCRtpReceiver),i=yield rt.getVideoCodec(RTCRtpReceiver);return{audioSenderCodecList:t,videoSenderCodecList:e,audioReceiverCodecList:r,videoReceiverCodecList:i}}catch(t){return Promise.reject(t)}})}static getWidowResolution(){const t=window.screen.width,e=window.screen.height,r=window.devicePixelRatio,i=Math.floor(t*r),s=Math.floor(e*r);return{maxWidth:i,maxHeight:e*r,width:t,height:e,dpr:r,maxScreenResolution:`${i}*${s}`}}static isSupportShareContent(){return!!(navigator.mediaDevices&&navigator.mediaDevices.getDisplayMedia)}static isSupportSetCaptureHandleConfig(){return!!navigator.mediaDevices.setCaptureHandleConfig}static isSupportDevicePressure(){let t=!1;return"PressureObserver"in globalThis&&(t=!0),t}static checkSupportWebRTC(){return vt(this,null,function*(){const t=yield rt.isSupportRTC(),e=yield rt.isSupportUserMedia(),r=rt.isSupportWebsocket(),i=yield rt.isSupportH264(),{isSupportRTC:s,isSupportAddTransceiver:a,isSupportAddtrack:o}=t;return{result:s&&r&&i,detail:{isSupportRTC:s,isSupportWebsocket:r,isSupportH264:i,isSupportAddTransceiver:a,isSupportAddtrack:o,isSupportUserMedia:e}}})}};Ht.CANVAS_TEST_ID="XY_DETECT_CANVAS_ID";Ht.VIDEO_TEST_ID="XY_DETECT_VIDEO_ID";Ht.browser=Et;Ht.window=xi;Ht.stream=je.getInstance();let _r=Ht;const J={isNumber(n){return typeof n=="number"},isObject(n){return Object.prototype.toString.call(n).toLocaleLowerCase()==="[object object]"},isArray(n){return Array.isArray(n)},isString(n){return typeof n=="string"},isBoolean(n){return typeof n=="boolean"},isUndefined(n){return typeof n=="undefined"},isFunction(n){return typeof n=="function"},isLetter(n){return/^[a-zA-Z]+$/.test(n)},isChinese(n){return/^[\u4e00-\u9fa5]+$/.test(n)},isNumberText(n){return/^[0-9]+$/.test(n)},isSpecialChar(n){return/^[^\u4e00-\u9fa5a-zA-Z0-9]+$/.test(n)},isWhiteSpace(n){return/^\s+$/.test(n)},isValidPhoneNumber(n,t){const e=/^1\d{10}$/;return!/^\d{7,11}$/.test(t)||n==="+86"&&!e.test(t)},isEnhancePassword(n){return/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[-()。＆@？'#，/" +!$%*~`^=_{}\[\]|;：‘、.\\]).{8,16}$/.test(n)},isSimplePassword(n){return/^(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{8,16}$/.test(n)},isUint8Buffer(n){return n&&n.length>0&&n instanceof Uint8Array}},mi=({param:n,constraint:t,payload:e,errorMessages:r,formatErrorMessage:i})=>({enable:()=>!!t.required,apply:()=>{const s=n!=null&&n!=="",{message:a=""}=t||{};if(!s){let o="";if(a)o=J.isFunction(a)?a(n):a;else return o=i(r.requiredError,{path:String(e.path||"")}),{isValid:s,error:o}}return{isValid:s,error:void 0}}}),Bi=({param:n,constraint:t,payload:e,errorMessages:r,formatErrorMessage:i})=>({enable:()=>!!t.type,apply:()=>{const{message:s="",type:a}=t||{},o=J.isObject(n)?"object":Array.isArray(n)?"array":typeof n,h=Array.isArray(a)?a.includes(o):o===a;if(!h){let c="";return s?c=J.isFunction(s)?s(n):s:c=i(r.typeError,{path:String(e.path||""),expected:Array.isArray(a)?a.join("|"):String(a),actual:o}),{isValid:h,error:c}}return{isValid:h,error:void 0}}}),Di=({param:n,constraint:t,payload:e,errorMessages:r,formatErrorMessage:i})=>({enable:()=>!!t.pattern,apply:()=>{const{message:s="",pattern:a}=t||{},h=(a instanceof RegExp?a:new RegExp(a)).test(n);if(!h){let c="";return s?c=J.isFunction(s)?s(n):s:c=i(r.patternError,{path:String(e.path||"")}),{isValid:h,error:c}}return{isValid:h,error:void 0}}});var Ci=Object.defineProperty,T0=Object.getOwnPropertySymbols,Ai=Object.prototype.hasOwnProperty,bi=Object.prototype.propertyIsEnumerable,R0=(n,t,e)=>t in n?Ci(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e,wi=(n,t)=>{for(var e in t||(t={}))Ai.call(t,e)&&R0(n,e,t[e]);if(T0)for(var e of T0(t))bi.call(t,e)&&R0(n,e,t[e]);return n};const c0=class pt{constructor(t){this.errorMessages=wi({typeError:"Parameter {{path}} type error: expected {{expected}}, but received {{actual}}",requiredError:"Parameter {{path}} is required",patternError:"Parameter {{path}} format error: does not match the specified pattern"},t)}static getInstance(t){return pt.instance||(pt.instance=new pt(t)),pt.instance}validate(t,e,r=""){return e?this.isConstraintObject(e)?this.validateObject(t,e,r):this.validateSingleValue(t,e,r):pt.defaultResult}formatErrorMessage(t,e){return Object.entries(e).reduce((r,[i,s])=>r.replace(new RegExp(`{{${i}}}`,"g"),s),t)}validateSingleValue(t,e,r=""){const i=[],s={param:t,constraint:e,path:r};if(e.required===!1&&t===void 0)return pt.defaultResult;if(Object.entries(pt.validators).forEach(([,a])=>{try{const{enable:o,apply:h}=a({param:t,constraint:e,payload:s,errorMessages:this.errorMessages,formatErrorMessage:this.formatErrorMessage.bind(this),validate:this.validate.bind(this)});if(o()){const c=h();!c.isValid&&c.error&&i.push(c.error)}}catch(o){i.push(`验证器错误: ${o instanceof Error?o.message:String(o)}`)}}),e.items&&(Array.isArray(t)||J.isObject(t)))if(Array.isArray(t))t.forEach((a,o)=>{const h=this.validate(a,e.items,`${r}[${o}]`);h.valid||i.push(...h.errors)});else{const a=this.validate(t,e.items,r);a.valid||i.push(...a.errors)}return{valid:i.length===0,errors:i,tip:i[0]||""}}validateObject(t,e,r=""){const i=[];for(const[s,a]of Object.entries(e)){const o=t[s],h=r?`${r}.${s}`:s,c=this.validateSingleValue(o,a,h);c.valid||i.push(...c.errors)}return{valid:i.length===0,errors:i,tip:i[0]||""}}isConstraintObject(t){return J.isObject(t)&&!("required"in t)}};c0.defaultResult={valid:!0,errors:[],tip:""};c0.validators={required:mi,type:Bi,pattern:Di};let Tr=c0;const Fi=Tr.getInstance();class Kt{static parse(t){try{return J.isObject(t)?t:J.isString(t)?JSON.parse(t):{}}catch(e){return{}}}static stringify(t){try{return JSON.stringify(t)}catch(e){return JSON.stringify("")}}static deepMerge(...t){const e={},r=t.filter(i=>J.isObject(i));if(r.length===0)return{};for(const i of r)for(const s in i){if(!Object.prototype.hasOwnProperty.call(i,s))continue;const a=e[s],o=i[s];J.isObject(a)&&J.isObject(o)?e[s]=Kt.deepMerge(a,o):J.isArray(o)?e[s]=[...o]:e[s]=o}return e}}var Je=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Si(n){if(Object.prototype.hasOwnProperty.call(n,"__esModule"))return n;var t=n.default;if(typeof t=="function"){var e=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};e.prototype=t.prototype}else e={};return Object.defineProperty(e,"__esModule",{value:!0}),Object.keys(n).forEach(function(r){var i=Object.getOwnPropertyDescriptor(n,r);Object.defineProperty(e,r,i.get?i:{enumerable:!0,get:function(){return n[r]}})}),e}var ce={exports:{}};function _i(n){throw new Error('Could not dynamically require "'+n+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var he={exports:{}};const Ti={},Ri=Object.freeze(Object.defineProperty({__proto__:null,default:Ti},Symbol.toStringTag,{value:"Module"})),ki=Si(Ri);var Oi=he.exports,k0;function N(){return k0||(k0=1,function(n,t){(function(e,r){n.exports=r()})(Oi,function(){var e=e||function(r,i){var s;if(typeof window!="undefined"&&window.crypto&&(s=window.crypto),typeof self!="undefined"&&self.crypto&&(s=self.crypto),typeof globalThis!="undefined"&&globalThis.crypto&&(s=globalThis.crypto),!s&&typeof window!="undefined"&&window.msCrypto&&(s=window.msCrypto),!s&&typeof Je!="undefined"&&Je.crypto&&(s=Je.crypto),!s&&typeof _i=="function")try{s=ki}catch(v){}var a=function(){if(s){if(typeof s.getRandomValues=="function")try{return s.getRandomValues(new Uint32Array(1))[0]}catch(v){}if(typeof s.randomBytes=="function")try{return s.randomBytes(4).readInt32LE()}catch(v){}}throw new Error("Native crypto module could not be used to get secure random number.")},o=Object.create||function(){function v(){}return function(p){var y;return v.prototype=p,y=new v,v.prototype=null,y}}(),h={},c=h.lib={},u=c.Base=function(){return{extend:function(v){var p=o(this);return v&&p.mixIn(v),(!p.hasOwnProperty("init")||this.init===p.init)&&(p.init=function(){p.$super.init.apply(this,arguments)}),p.init.prototype=p,p.$super=this,p},create:function(){var v=this.extend();return v.init.apply(v,arguments),v},init:function(){},mixIn:function(v){for(var p in v)v.hasOwnProperty(p)&&(this[p]=v[p]);v.hasOwnProperty("toString")&&(this.toString=v.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),d=c.WordArray=u.extend({init:function(v,p){v=this.words=v||[],p!=i?this.sigBytes=p:this.sigBytes=v.length*4},toString:function(v){return(v||x).stringify(this)},concat:function(v){var p=this.words,y=v.words,A=this.sigBytes,m=v.sigBytes;if(this.clamp(),A%4)for(var b=0;b<m;b++){var w=y[b>>>2]>>>24-b%4*8&255;p[A+b>>>2]|=w<<24-(A+b)%4*8}else for(var O=0;O<m;O+=4)p[A+O>>>2]=y[O>>>2];return this.sigBytes+=m,this},clamp:function(){var v=this.words,p=this.sigBytes;v[p>>>2]&=4294967295<<32-p%4*8,v.length=r.ceil(p/4)},clone:function(){var v=u.clone.call(this);return v.words=this.words.slice(0),v},random:function(v){for(var p=[],y=0;y<v;y+=4)p.push(a());return new d.init(p,v)}}),f=h.enc={},x=f.Hex={stringify:function(v){for(var p=v.words,y=v.sigBytes,A=[],m=0;m<y;m++){var b=p[m>>>2]>>>24-m%4*8&255;A.push((b>>>4).toString(16)),A.push((b&15).toString(16))}return A.join("")},parse:function(v){for(var p=v.length,y=[],A=0;A<p;A+=2)y[A>>>3]|=parseInt(v.substr(A,2),16)<<24-A%8*4;return new d.init(y,p/2)}},l=f.Latin1={stringify:function(v){for(var p=v.words,y=v.sigBytes,A=[],m=0;m<y;m++){var b=p[m>>>2]>>>24-m%4*8&255;A.push(String.fromCharCode(b))}return A.join("")},parse:function(v){for(var p=v.length,y=[],A=0;A<p;A++)y[A>>>2]|=(v.charCodeAt(A)&255)<<24-A%4*8;return new d.init(y,p)}},g=f.Utf8={stringify:function(v){try{return decodeURIComponent(escape(l.stringify(v)))}catch(p){throw new Error("Malformed UTF-8 data")}},parse:function(v){return l.parse(unescape(encodeURIComponent(v)))}},E=c.BufferedBlockAlgorithm=u.extend({reset:function(){this._data=new d.init,this._nDataBytes=0},_append:function(v){typeof v=="string"&&(v=g.parse(v)),this._data.concat(v),this._nDataBytes+=v.sigBytes},_process:function(v){var p,y=this._data,A=y.words,m=y.sigBytes,b=this.blockSize,w=b*4,O=m/w;v?O=r.ceil(O):O=r.max((O|0)-this._minBufferSize,0);var D=O*b,C=r.min(D*4,m);if(D){for(var T=0;T<D;T+=b)this._doProcessBlock(A,T);p=A.splice(0,D),y.sigBytes-=C}return new d.init(p,C)},clone:function(){var v=u.clone.call(this);return v._data=this._data.clone(),v},_minBufferSize:0});c.Hasher=E.extend({cfg:u.extend(),init:function(v){this.cfg=this.cfg.extend(v),this.reset()},reset:function(){E.reset.call(this),this._doReset()},update:function(v){return this._append(v),this._process(),this},finalize:function(v){v&&this._append(v);var p=this._doFinalize();return p},blockSize:16,_createHelper:function(v){return function(p,y){return new v.init(y).finalize(p)}},_createHmacHelper:function(v){return function(p,y){return new B.HMAC.init(v,y).finalize(p)}}});var B=h.algo={};return h}(Math);return e})}(he)),he.exports}var ue={exports:{}},Pi=ue.exports,O0;function Ye(){return O0||(O0=1,function(n,t){(function(e,r){n.exports=r(N())})(Pi,function(e){return function(r){var i=e,s=i.lib,a=s.Base,o=s.WordArray,h=i.x64={};h.Word=a.extend({init:function(c,u){this.high=c,this.low=u}}),h.WordArray=a.extend({init:function(c,u){c=this.words=c||[],u!=r?this.sigBytes=u:this.sigBytes=c.length*8},toX32:function(){for(var c=this.words,u=c.length,d=[],f=0;f<u;f++){var x=c[f];d.push(x.high),d.push(x.low)}return o.create(d,this.sigBytes)},clone:function(){for(var c=a.clone.call(this),u=c.words=this.words.slice(0),d=u.length,f=0;f<d;f++)u[f]=u[f].clone();return c}})}(),e})}(ue)),ue.exports}var fe={exports:{}},Ii=fe.exports,P0;function Mi(){return P0||(P0=1,function(n,t){(function(e,r){n.exports=r(N())})(Ii,function(e){return function(){if(typeof ArrayBuffer=="function"){var r=e,i=r.lib,s=i.WordArray,a=s.init,o=s.init=function(h){if(h instanceof ArrayBuffer&&(h=new Uint8Array(h)),(h instanceof Int8Array||typeof Uint8ClampedArray!="undefined"&&h instanceof Uint8ClampedArray||h instanceof Int16Array||h instanceof Uint16Array||h instanceof Int32Array||h instanceof Uint32Array||h instanceof Float32Array||h instanceof Float64Array)&&(h=new Uint8Array(h.buffer,h.byteOffset,h.byteLength)),h instanceof Uint8Array){for(var c=h.byteLength,u=[],d=0;d<c;d++)u[d>>>2]|=h[d]<<24-d%4*8;a.call(this,u,c)}else a.apply(this,arguments)};o.prototype=s}}(),e.lib.WordArray})}(fe)),fe.exports}var xe={exports:{}},Hi=xe.exports,I0;function Li(){return I0||(I0=1,function(n,t){(function(e,r){n.exports=r(N())})(Hi,function(e){return function(){var r=e,i=r.lib,s=i.WordArray,a=r.enc;a.Utf16=a.Utf16BE={stringify:function(h){for(var c=h.words,u=h.sigBytes,d=[],f=0;f<u;f+=2){var x=c[f>>>2]>>>16-f%4*8&65535;d.push(String.fromCharCode(x))}return d.join("")},parse:function(h){for(var c=h.length,u=[],d=0;d<c;d++)u[d>>>1]|=h.charCodeAt(d)<<16-d%2*16;return s.create(u,c*2)}},a.Utf16LE={stringify:function(h){for(var c=h.words,u=h.sigBytes,d=[],f=0;f<u;f+=2){var x=o(c[f>>>2]>>>16-f%4*8&65535);d.push(String.fromCharCode(x))}return d.join("")},parse:function(h){for(var c=h.length,u=[],d=0;d<c;d++)u[d>>>1]|=o(h.charCodeAt(d)<<16-d%2*16);return s.create(u,c*2)}};function o(h){return h<<8&4278255360|h>>>8&16711935}}(),e.enc.Utf16})}(xe)),xe.exports}var le={exports:{}},Vi=le.exports,M0;function bt(){return M0||(M0=1,function(n,t){(function(e,r){n.exports=r(N())})(Vi,function(e){return function(){var r=e,i=r.lib,s=i.WordArray,a=r.enc;a.Base64={stringify:function(h){var c=h.words,u=h.sigBytes,d=this._map;h.clamp();for(var f=[],x=0;x<u;x+=3)for(var l=c[x>>>2]>>>24-x%4*8&255,g=c[x+1>>>2]>>>24-(x+1)%4*8&255,E=c[x+2>>>2]>>>24-(x+2)%4*8&255,B=l<<16|g<<8|E,v=0;v<4&&x+v*.75<u;v++)f.push(d.charAt(B>>>6*(3-v)&63));var p=d.charAt(64);if(p)for(;f.length%4;)f.push(p);return f.join("")},parse:function(h){var c=h.length,u=this._map,d=this._reverseMap;if(!d){d=this._reverseMap=[];for(var f=0;f<u.length;f++)d[u.charCodeAt(f)]=f}var x=u.charAt(64);if(x){var l=h.indexOf(x);l!==-1&&(c=l)}return o(h,c,d)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function o(h,c,u){for(var d=[],f=0,x=0;x<c;x++)if(x%4){var l=u[h.charCodeAt(x-1)]<<x%4*2,g=u[h.charCodeAt(x)]>>>6-x%4*2,E=l|g;d[f>>>2]|=E<<24-f%4*8,f++}return s.create(d,f)}}(),e.enc.Base64})}(le)),le.exports}var de={exports:{}},zi=de.exports,H0;function Ni(){return H0||(H0=1,function(n,t){(function(e,r){n.exports=r(N())})(zi,function(e){return function(){var r=e,i=r.lib,s=i.WordArray,a=r.enc;a.Base64url={stringify:function(h,c){c===void 0&&(c=!0);var u=h.words,d=h.sigBytes,f=c?this._safe_map:this._map;h.clamp();for(var x=[],l=0;l<d;l+=3)for(var g=u[l>>>2]>>>24-l%4*8&255,E=u[l+1>>>2]>>>24-(l+1)%4*8&255,B=u[l+2>>>2]>>>24-(l+2)%4*8&255,v=g<<16|E<<8|B,p=0;p<4&&l+p*.75<d;p++)x.push(f.charAt(v>>>6*(3-p)&63));var y=f.charAt(64);if(y)for(;x.length%4;)x.push(y);return x.join("")},parse:function(h,c){c===void 0&&(c=!0);var u=h.length,d=c?this._safe_map:this._map,f=this._reverseMap;if(!f){f=this._reverseMap=[];for(var x=0;x<d.length;x++)f[d.charCodeAt(x)]=x}var l=d.charAt(64);if(l){var g=h.indexOf(l);g!==-1&&(u=g)}return o(h,u,f)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function o(h,c,u){for(var d=[],f=0,x=0;x<c;x++)if(x%4){var l=u[h.charCodeAt(x-1)]<<x%4*2,g=u[h.charCodeAt(x)]>>>6-x%4*2,E=l|g;d[f>>>2]|=E<<24-f%4*8,f++}return s.create(d,f)}}(),e.enc.Base64url})}(de)),de.exports}var ve={exports:{}},qi=ve.exports,L0;function wt(){return L0||(L0=1,function(n,t){(function(e,r){n.exports=r(N())})(qi,function(e){return function(r){var i=e,s=i.lib,a=s.WordArray,o=s.Hasher,h=i.algo,c=[];(function(){for(var g=0;g<64;g++)c[g]=r.abs(r.sin(g+1))*4294967296|0})();var u=h.MD5=o.extend({_doReset:function(){this._hash=new a.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(g,E){for(var B=0;B<16;B++){var v=E+B,p=g[v];g[v]=(p<<8|p>>>24)&16711935|(p<<24|p>>>8)&4278255360}var y=this._hash.words,A=g[E+0],m=g[E+1],b=g[E+2],w=g[E+3],O=g[E+4],D=g[E+5],C=g[E+6],T=g[E+7],S=g[E+8],I=g[E+9],M=g[E+10],L=g[E+11],U=g[E+12],q=g[E+13],$=g[E+14],W=g[E+15],_=y[0],k=y[1],P=y[2],R=y[3];_=d(_,k,P,R,A,7,c[0]),R=d(R,_,k,P,m,12,c[1]),P=d(P,R,_,k,b,17,c[2]),k=d(k,P,R,_,w,22,c[3]),_=d(_,k,P,R,O,7,c[4]),R=d(R,_,k,P,D,12,c[5]),P=d(P,R,_,k,C,17,c[6]),k=d(k,P,R,_,T,22,c[7]),_=d(_,k,P,R,S,7,c[8]),R=d(R,_,k,P,I,12,c[9]),P=d(P,R,_,k,M,17,c[10]),k=d(k,P,R,_,L,22,c[11]),_=d(_,k,P,R,U,7,c[12]),R=d(R,_,k,P,q,12,c[13]),P=d(P,R,_,k,$,17,c[14]),k=d(k,P,R,_,W,22,c[15]),_=f(_,k,P,R,m,5,c[16]),R=f(R,_,k,P,C,9,c[17]),P=f(P,R,_,k,L,14,c[18]),k=f(k,P,R,_,A,20,c[19]),_=f(_,k,P,R,D,5,c[20]),R=f(R,_,k,P,M,9,c[21]),P=f(P,R,_,k,W,14,c[22]),k=f(k,P,R,_,O,20,c[23]),_=f(_,k,P,R,I,5,c[24]),R=f(R,_,k,P,$,9,c[25]),P=f(P,R,_,k,w,14,c[26]),k=f(k,P,R,_,S,20,c[27]),_=f(_,k,P,R,q,5,c[28]),R=f(R,_,k,P,b,9,c[29]),P=f(P,R,_,k,T,14,c[30]),k=f(k,P,R,_,U,20,c[31]),_=x(_,k,P,R,D,4,c[32]),R=x(R,_,k,P,S,11,c[33]),P=x(P,R,_,k,L,16,c[34]),k=x(k,P,R,_,$,23,c[35]),_=x(_,k,P,R,m,4,c[36]),R=x(R,_,k,P,O,11,c[37]),P=x(P,R,_,k,T,16,c[38]),k=x(k,P,R,_,M,23,c[39]),_=x(_,k,P,R,q,4,c[40]),R=x(R,_,k,P,A,11,c[41]),P=x(P,R,_,k,w,16,c[42]),k=x(k,P,R,_,C,23,c[43]),_=x(_,k,P,R,I,4,c[44]),R=x(R,_,k,P,U,11,c[45]),P=x(P,R,_,k,W,16,c[46]),k=x(k,P,R,_,b,23,c[47]),_=l(_,k,P,R,A,6,c[48]),R=l(R,_,k,P,T,10,c[49]),P=l(P,R,_,k,$,15,c[50]),k=l(k,P,R,_,D,21,c[51]),_=l(_,k,P,R,U,6,c[52]),R=l(R,_,k,P,w,10,c[53]),P=l(P,R,_,k,M,15,c[54]),k=l(k,P,R,_,m,21,c[55]),_=l(_,k,P,R,S,6,c[56]),R=l(R,_,k,P,W,10,c[57]),P=l(P,R,_,k,C,15,c[58]),k=l(k,P,R,_,q,21,c[59]),_=l(_,k,P,R,O,6,c[60]),R=l(R,_,k,P,L,10,c[61]),P=l(P,R,_,k,b,15,c[62]),k=l(k,P,R,_,I,21,c[63]),y[0]=y[0]+_|0,y[1]=y[1]+k|0,y[2]=y[2]+P|0,y[3]=y[3]+R|0},_doFinalize:function(){var g=this._data,E=g.words,B=this._nDataBytes*8,v=g.sigBytes*8;E[v>>>5]|=128<<24-v%32;var p=r.floor(B/4294967296),y=B;E[(v+64>>>9<<4)+15]=(p<<8|p>>>24)&16711935|(p<<24|p>>>8)&4278255360,E[(v+64>>>9<<4)+14]=(y<<8|y>>>24)&16711935|(y<<24|y>>>8)&4278255360,g.sigBytes=(E.length+1)*4,this._process();for(var A=this._hash,m=A.words,b=0;b<4;b++){var w=m[b];m[b]=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360}return A},clone:function(){var g=o.clone.call(this);return g._hash=this._hash.clone(),g}});function d(g,E,B,v,p,y,A){var m=g+(E&B|~E&v)+p+A;return(m<<y|m>>>32-y)+E}function f(g,E,B,v,p,y,A){var m=g+(E&v|B&~v)+p+A;return(m<<y|m>>>32-y)+E}function x(g,E,B,v,p,y,A){var m=g+(E^B^v)+p+A;return(m<<y|m>>>32-y)+E}function l(g,E,B,v,p,y,A){var m=g+(B^(E|~v))+p+A;return(m<<y|m>>>32-y)+E}i.MD5=o._createHelper(u),i.HmacMD5=o._createHmacHelper(u)}(Math),e.MD5})}(ve)),ve.exports}var pe={exports:{}},Wi=pe.exports,V0;function Rr(){return V0||(V0=1,function(n,t){(function(e,r){n.exports=r(N())})(Wi,function(e){return function(){var r=e,i=r.lib,s=i.WordArray,a=i.Hasher,o=r.algo,h=[],c=o.SHA1=a.extend({_doReset:function(){this._hash=new s.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(u,d){for(var f=this._hash.words,x=f[0],l=f[1],g=f[2],E=f[3],B=f[4],v=0;v<80;v++){if(v<16)h[v]=u[d+v]|0;else{var p=h[v-3]^h[v-8]^h[v-14]^h[v-16];h[v]=p<<1|p>>>31}var y=(x<<5|x>>>27)+B+h[v];v<20?y+=(l&g|~l&E)+1518500249:v<40?y+=(l^g^E)+1859775393:v<60?y+=(l&g|l&E|g&E)-1894007588:y+=(l^g^E)-899497514,B=E,E=g,g=l<<30|l>>>2,l=x,x=y}f[0]=f[0]+x|0,f[1]=f[1]+l|0,f[2]=f[2]+g|0,f[3]=f[3]+E|0,f[4]=f[4]+B|0},_doFinalize:function(){var u=this._data,d=u.words,f=this._nDataBytes*8,x=u.sigBytes*8;return d[x>>>5]|=128<<24-x%32,d[(x+64>>>9<<4)+14]=Math.floor(f/4294967296),d[(x+64>>>9<<4)+15]=f,u.sigBytes=d.length*4,this._process(),this._hash},clone:function(){var u=a.clone.call(this);return u._hash=this._hash.clone(),u}});r.SHA1=a._createHelper(c),r.HmacSHA1=a._createHmacHelper(c)}(),e.SHA1})}(pe)),pe.exports}var ge={exports:{}},Ui=ge.exports,z0;function h0(){return z0||(z0=1,function(n,t){(function(e,r){n.exports=r(N())})(Ui,function(e){return function(r){var i=e,s=i.lib,a=s.WordArray,o=s.Hasher,h=i.algo,c=[],u=[];(function(){function x(B){for(var v=r.sqrt(B),p=2;p<=v;p++)if(!(B%p))return!1;return!0}function l(B){return(B-(B|0))*4294967296|0}for(var g=2,E=0;E<64;)x(g)&&(E<8&&(c[E]=l(r.pow(g,1/2))),u[E]=l(r.pow(g,1/3)),E++),g++})();var d=[],f=h.SHA256=o.extend({_doReset:function(){this._hash=new a.init(c.slice(0))},_doProcessBlock:function(x,l){for(var g=this._hash.words,E=g[0],B=g[1],v=g[2],p=g[3],y=g[4],A=g[5],m=g[6],b=g[7],w=0;w<64;w++){if(w<16)d[w]=x[l+w]|0;else{var O=d[w-15],D=(O<<25|O>>>7)^(O<<14|O>>>18)^O>>>3,C=d[w-2],T=(C<<15|C>>>17)^(C<<13|C>>>19)^C>>>10;d[w]=D+d[w-7]+T+d[w-16]}var S=y&A^~y&m,I=E&B^E&v^B&v,M=(E<<30|E>>>2)^(E<<19|E>>>13)^(E<<10|E>>>22),L=(y<<26|y>>>6)^(y<<21|y>>>11)^(y<<7|y>>>25),U=b+L+S+u[w]+d[w],q=M+I;b=m,m=A,A=y,y=p+U|0,p=v,v=B,B=E,E=U+q|0}g[0]=g[0]+E|0,g[1]=g[1]+B|0,g[2]=g[2]+v|0,g[3]=g[3]+p|0,g[4]=g[4]+y|0,g[5]=g[5]+A|0,g[6]=g[6]+m|0,g[7]=g[7]+b|0},_doFinalize:function(){var x=this._data,l=x.words,g=this._nDataBytes*8,E=x.sigBytes*8;return l[E>>>5]|=128<<24-E%32,l[(E+64>>>9<<4)+14]=r.floor(g/4294967296),l[(E+64>>>9<<4)+15]=g,x.sigBytes=l.length*4,this._process(),this._hash},clone:function(){var x=o.clone.call(this);return x._hash=this._hash.clone(),x}});i.SHA256=o._createHelper(f),i.HmacSHA256=o._createHmacHelper(f)}(Math),e.SHA256})}(ge)),ge.exports}var Ee={exports:{}},$i=Ee.exports,N0;function Xi(){return N0||(N0=1,function(n,t){(function(e,r,i){n.exports=r(N(),h0())})($i,function(e){return function(){var r=e,i=r.lib,s=i.WordArray,a=r.algo,o=a.SHA256,h=a.SHA224=o.extend({_doReset:function(){this._hash=new s.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var c=o._doFinalize.call(this);return c.sigBytes-=4,c}});r.SHA224=o._createHelper(h),r.HmacSHA224=o._createHmacHelper(h)}(),e.SHA224})}(Ee)),Ee.exports}var ye={exports:{}},ji=ye.exports,q0;function kr(){return q0||(q0=1,function(n,t){(function(e,r,i){n.exports=r(N(),Ye())})(ji,function(e){return function(){var r=e,i=r.lib,s=i.Hasher,a=r.x64,o=a.Word,h=a.WordArray,c=r.algo;function u(){return o.create.apply(o,arguments)}var d=[u(1116352408,3609767458),u(1899447441,602891725),u(3049323471,3964484399),u(3921009573,2173295548),u(961987163,4081628472),u(1508970993,3053834265),u(2453635748,2937671579),u(2870763221,3664609560),u(3624381080,2734883394),u(310598401,1164996542),u(607225278,1323610764),u(1426881987,3590304994),u(1925078388,4068182383),u(2162078206,991336113),u(2614888103,633803317),u(3248222580,3479774868),u(3835390401,2666613458),u(4022224774,944711139),u(264347078,2341262773),u(604807628,2007800933),u(770255983,1495990901),u(1249150122,1856431235),u(1555081692,3175218132),u(1996064986,2198950837),u(2554220882,3999719339),u(2821834349,766784016),u(2952996808,2566594879),u(3210313671,3203337956),u(3336571891,1034457026),u(3584528711,2466948901),u(113926993,3758326383),u(338241895,168717936),u(666307205,1188179964),u(773529912,1546045734),u(1294757372,1522805485),u(1396182291,2643833823),u(1695183700,2343527390),u(1986661051,1014477480),u(2177026350,1206759142),u(2456956037,344077627),u(2730485921,1290863460),u(2820302411,3158454273),u(3259730800,3505952657),u(3345764771,106217008),u(3516065817,3606008344),u(3600352804,1432725776),u(4094571909,1467031594),u(275423344,851169720),u(430227734,3100823752),u(506948616,1363258195),u(659060556,3750685593),u(883997877,3785050280),u(958139571,3318307427),u(1322822218,3812723403),u(1537002063,2003034995),u(1747873779,3602036899),u(1955562222,1575990012),u(2024104815,1125592928),u(2227730452,2716904306),u(2361852424,442776044),u(2428436474,593698344),u(2756734187,3733110249),u(3204031479,2999351573),u(3329325298,3815920427),u(3391569614,3928383900),u(3515267271,566280711),u(3940187606,3454069534),u(4118630271,4000239992),u(116418474,1914138554),u(174292421,2731055270),u(289380356,3203993006),u(460393269,320620315),u(685471733,587496836),u(852142971,1086792851),u(1017036298,365543100),u(1126000580,2618297676),u(1288033470,3409855158),u(1501505948,4234509866),u(1607167915,987167468),u(1816402316,1246189591)],f=[];(function(){for(var l=0;l<80;l++)f[l]=u()})();var x=c.SHA512=s.extend({_doReset:function(){this._hash=new h.init([new o.init(1779033703,4089235720),new o.init(3144134277,2227873595),new o.init(1013904242,4271175723),new o.init(2773480762,1595750129),new o.init(1359893119,2917565137),new o.init(2600822924,725511199),new o.init(528734635,4215389547),new o.init(1541459225,327033209)])},_doProcessBlock:function(l,g){for(var E=this._hash.words,B=E[0],v=E[1],p=E[2],y=E[3],A=E[4],m=E[5],b=E[6],w=E[7],O=B.high,D=B.low,C=v.high,T=v.low,S=p.high,I=p.low,M=y.high,L=y.low,U=A.high,q=A.low,$=m.high,W=m.low,_=b.high,k=b.low,P=w.high,R=w.low,j=O,X=D,et=C,V=T,Vt=S,Ft=I,Ge=M,zt=L,ct=U,it=q,Zt=$,Nt=W,Gt=_,qt=k,Qe=P,Wt=R,ht=0;ht<80;ht++){var st,lt,Qt=f[ht];if(ht<16)lt=Qt.high=l[g+ht*2]|0,st=Qt.low=l[g+ht*2+1]|0;else{var l0=f[ht-15],St=l0.high,Ut=l0.low,Wr=(St>>>1|Ut<<31)^(St>>>8|Ut<<24)^St>>>7,d0=(Ut>>>1|St<<31)^(Ut>>>8|St<<24)^(Ut>>>7|St<<25),v0=f[ht-2],_t=v0.high,$t=v0.low,Ur=(_t>>>19|$t<<13)^(_t<<3|$t>>>29)^_t>>>6,p0=($t>>>19|_t<<13)^($t<<3|_t>>>29)^($t>>>6|_t<<26),g0=f[ht-7],$r=g0.high,Xr=g0.low,E0=f[ht-16],jr=E0.high,y0=E0.low;st=d0+Xr,lt=Wr+$r+(st>>>0<d0>>>0?1:0),st=st+p0,lt=lt+Ur+(st>>>0<p0>>>0?1:0),st=st+y0,lt=lt+jr+(st>>>0<y0>>>0?1:0),Qt.high=lt,Qt.low=st}var Yr=ct&Zt^~ct&Gt,m0=it&Nt^~it&qt,Kr=j&et^j&Vt^et&Vt,Zr=X&V^X&Ft^V&Ft,Gr=(j>>>28|X<<4)^(j<<30|X>>>2)^(j<<25|X>>>7),B0=(X>>>28|j<<4)^(X<<30|j>>>2)^(X<<25|j>>>7),Qr=(ct>>>14|it<<18)^(ct>>>18|it<<14)^(ct<<23|it>>>9),Jr=(it>>>14|ct<<18)^(it>>>18|ct<<14)^(it<<23|ct>>>9),D0=d[ht],ti=D0.high,C0=D0.low,nt=Wt+Jr,dt=Qe+Qr+(nt>>>0<Wt>>>0?1:0),nt=nt+m0,dt=dt+Yr+(nt>>>0<m0>>>0?1:0),nt=nt+C0,dt=dt+ti+(nt>>>0<C0>>>0?1:0),nt=nt+st,dt=dt+lt+(nt>>>0<st>>>0?1:0),A0=B0+Zr,ei=Gr+Kr+(A0>>>0<B0>>>0?1:0);Qe=Gt,Wt=qt,Gt=Zt,qt=Nt,Zt=ct,Nt=it,it=zt+nt|0,ct=Ge+dt+(it>>>0<zt>>>0?1:0)|0,Ge=Vt,zt=Ft,Vt=et,Ft=V,et=j,V=X,X=nt+A0|0,j=dt+ei+(X>>>0<nt>>>0?1:0)|0}D=B.low=D+X,B.high=O+j+(D>>>0<X>>>0?1:0),T=v.low=T+V,v.high=C+et+(T>>>0<V>>>0?1:0),I=p.low=I+Ft,p.high=S+Vt+(I>>>0<Ft>>>0?1:0),L=y.low=L+zt,y.high=M+Ge+(L>>>0<zt>>>0?1:0),q=A.low=q+it,A.high=U+ct+(q>>>0<it>>>0?1:0),W=m.low=W+Nt,m.high=$+Zt+(W>>>0<Nt>>>0?1:0),k=b.low=k+qt,b.high=_+Gt+(k>>>0<qt>>>0?1:0),R=w.low=R+Wt,w.high=P+Qe+(R>>>0<Wt>>>0?1:0)},_doFinalize:function(){var l=this._data,g=l.words,E=this._nDataBytes*8,B=l.sigBytes*8;g[B>>>5]|=128<<24-B%32,g[(B+128>>>10<<5)+30]=Math.floor(E/4294967296),g[(B+128>>>10<<5)+31]=E,l.sigBytes=g.length*4,this._process();var v=this._hash.toX32();return v},clone:function(){var l=s.clone.call(this);return l._hash=this._hash.clone(),l},blockSize:1024/32});r.SHA512=s._createHelper(x),r.HmacSHA512=s._createHmacHelper(x)}(),e.SHA512})}(ye)),ye.exports}var me={exports:{}},Yi=me.exports,W0;function Ki(){return W0||(W0=1,function(n,t){(function(e,r,i){n.exports=r(N(),Ye(),kr())})(Yi,function(e){return function(){var r=e,i=r.x64,s=i.Word,a=i.WordArray,o=r.algo,h=o.SHA512,c=o.SHA384=h.extend({_doReset:function(){this._hash=new a.init([new s.init(3418070365,3238371032),new s.init(1654270250,914150663),new s.init(2438529370,812702999),new s.init(355462360,4144912697),new s.init(1731405415,4290775857),new s.init(2394180231,1750603025),new s.init(3675008525,1694076839),new s.init(1203062813,3204075428)])},_doFinalize:function(){var u=h._doFinalize.call(this);return u.sigBytes-=16,u}});r.SHA384=h._createHelper(c),r.HmacSHA384=h._createHmacHelper(c)}(),e.SHA384})}(me)),me.exports}var Be={exports:{}},Zi=Be.exports,U0;function Gi(){return U0||(U0=1,function(n,t){(function(e,r,i){n.exports=r(N(),Ye())})(Zi,function(e){return function(r){var i=e,s=i.lib,a=s.WordArray,o=s.Hasher,h=i.x64,c=h.Word,u=i.algo,d=[],f=[],x=[];(function(){for(var E=1,B=0,v=0;v<24;v++){d[E+5*B]=(v+1)*(v+2)/2%64;var p=B%5,y=(2*E+3*B)%5;E=p,B=y}for(var E=0;E<5;E++)for(var B=0;B<5;B++)f[E+5*B]=B+(2*E+3*B)%5*5;for(var A=1,m=0;m<24;m++){for(var b=0,w=0,O=0;O<7;O++){if(A&1){var D=(1<<O)-1;D<32?w^=1<<D:b^=1<<D-32}A&128?A=A<<1^113:A<<=1}x[m]=c.create(b,w)}})();var l=[];(function(){for(var E=0;E<25;E++)l[E]=c.create()})();var g=u.SHA3=o.extend({cfg:o.cfg.extend({outputLength:512}),_doReset:function(){for(var E=this._state=[],B=0;B<25;B++)E[B]=new c.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(E,B){for(var v=this._state,p=this.blockSize/2,y=0;y<p;y++){var A=E[B+2*y],m=E[B+2*y+1];A=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360,m=(m<<8|m>>>24)&16711935|(m<<24|m>>>8)&4278255360;var b=v[y];b.high^=m,b.low^=A}for(var w=0;w<24;w++){for(var O=0;O<5;O++){for(var D=0,C=0,T=0;T<5;T++){var b=v[O+5*T];D^=b.high,C^=b.low}var S=l[O];S.high=D,S.low=C}for(var O=0;O<5;O++)for(var I=l[(O+4)%5],M=l[(O+1)%5],L=M.high,U=M.low,D=I.high^(L<<1|U>>>31),C=I.low^(U<<1|L>>>31),T=0;T<5;T++){var b=v[O+5*T];b.high^=D,b.low^=C}for(var q=1;q<25;q++){var D,C,b=v[q],$=b.high,W=b.low,_=d[q];_<32?(D=$<<_|W>>>32-_,C=W<<_|$>>>32-_):(D=W<<_-32|$>>>64-_,C=$<<_-32|W>>>64-_);var k=l[f[q]];k.high=D,k.low=C}var P=l[0],R=v[0];P.high=R.high,P.low=R.low;for(var O=0;O<5;O++)for(var T=0;T<5;T++){var q=O+5*T,b=v[q],j=l[q],X=l[(O+1)%5+5*T],et=l[(O+2)%5+5*T];b.high=j.high^~X.high&et.high,b.low=j.low^~X.low&et.low}var b=v[0],V=x[w];b.high^=V.high,b.low^=V.low}},_doFinalize:function(){var E=this._data,B=E.words;this._nDataBytes*8;var v=E.sigBytes*8,p=this.blockSize*32;B[v>>>5]|=1<<24-v%32,B[(r.ceil((v+1)/p)*p>>>5)-1]|=128,E.sigBytes=B.length*4,this._process();for(var y=this._state,A=this.cfg.outputLength/8,m=A/8,b=[],w=0;w<m;w++){var O=y[w],D=O.high,C=O.low;D=(D<<8|D>>>24)&16711935|(D<<24|D>>>8)&4278255360,C=(C<<8|C>>>24)&16711935|(C<<24|C>>>8)&4278255360,b.push(C),b.push(D)}return new a.init(b,A)},clone:function(){for(var E=o.clone.call(this),B=E._state=this._state.slice(0),v=0;v<25;v++)B[v]=B[v].clone();return E}});i.SHA3=o._createHelper(g),i.HmacSHA3=o._createHmacHelper(g)}(Math),e.SHA3})}(Be)),Be.exports}var De={exports:{}},Qi=De.exports,$0;function Ji(){return $0||($0=1,function(n,t){(function(e,r){n.exports=r(N())})(Qi,function(e){/** @preserve
			(c) 2012 by Cédric Mesnil. All rights reserved.

			Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

			    - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
			    - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

			THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
			*/return function(r){var i=e,s=i.lib,a=s.WordArray,o=s.Hasher,h=i.algo,c=a.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),u=a.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),d=a.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),f=a.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),x=a.create([0,1518500249,1859775393,2400959708,2840853838]),l=a.create([1352829926,1548603684,1836072691,2053994217,0]),g=h.RIPEMD160=o.extend({_doReset:function(){this._hash=a.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(m,b){for(var w=0;w<16;w++){var O=b+w,D=m[O];m[O]=(D<<8|D>>>24)&16711935|(D<<24|D>>>8)&4278255360}var C=this._hash.words,T=x.words,S=l.words,I=c.words,M=u.words,L=d.words,U=f.words,q,$,W,_,k,P,R,j,X,et;P=q=C[0],R=$=C[1],j=W=C[2],X=_=C[3],et=k=C[4];for(var V,w=0;w<80;w+=1)V=q+m[b+I[w]]|0,w<16?V+=E($,W,_)+T[0]:w<32?V+=B($,W,_)+T[1]:w<48?V+=v($,W,_)+T[2]:w<64?V+=p($,W,_)+T[3]:V+=y($,W,_)+T[4],V=V|0,V=A(V,L[w]),V=V+k|0,q=k,k=_,_=A(W,10),W=$,$=V,V=P+m[b+M[w]]|0,w<16?V+=y(R,j,X)+S[0]:w<32?V+=p(R,j,X)+S[1]:w<48?V+=v(R,j,X)+S[2]:w<64?V+=B(R,j,X)+S[3]:V+=E(R,j,X)+S[4],V=V|0,V=A(V,U[w]),V=V+et|0,P=et,et=X,X=A(j,10),j=R,R=V;V=C[1]+W+X|0,C[1]=C[2]+_+et|0,C[2]=C[3]+k+P|0,C[3]=C[4]+q+R|0,C[4]=C[0]+$+j|0,C[0]=V},_doFinalize:function(){var m=this._data,b=m.words,w=this._nDataBytes*8,O=m.sigBytes*8;b[O>>>5]|=128<<24-O%32,b[(O+64>>>9<<4)+14]=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360,m.sigBytes=(b.length+1)*4,this._process();for(var D=this._hash,C=D.words,T=0;T<5;T++){var S=C[T];C[T]=(S<<8|S>>>24)&16711935|(S<<24|S>>>8)&4278255360}return D},clone:function(){var m=o.clone.call(this);return m._hash=this._hash.clone(),m}});function E(m,b,w){return m^b^w}function B(m,b,w){return m&b|~m&w}function v(m,b,w){return(m|~b)^w}function p(m,b,w){return m&w|b&~w}function y(m,b,w){return m^(b|~w)}function A(m,b){return m<<b|m>>>32-b}i.RIPEMD160=o._createHelper(g),i.HmacRIPEMD160=o._createHmacHelper(g)}(),e.RIPEMD160})}(De)),De.exports}var Ce={exports:{}},tn=Ce.exports,X0;function u0(){return X0||(X0=1,function(n,t){(function(e,r){n.exports=r(N())})(tn,function(e){(function(){var r=e,i=r.lib,s=i.Base,a=r.enc,o=a.Utf8,h=r.algo;h.HMAC=s.extend({init:function(c,u){c=this._hasher=new c.init,typeof u=="string"&&(u=o.parse(u));var d=c.blockSize,f=d*4;u.sigBytes>f&&(u=c.finalize(u)),u.clamp();for(var x=this._oKey=u.clone(),l=this._iKey=u.clone(),g=x.words,E=l.words,B=0;B<d;B++)g[B]^=1549556828,E[B]^=909522486;x.sigBytes=l.sigBytes=f,this.reset()},reset:function(){var c=this._hasher;c.reset(),c.update(this._iKey)},update:function(c){return this._hasher.update(c),this},finalize:function(c){var u=this._hasher,d=u.finalize(c);u.reset();var f=u.finalize(this._oKey.clone().concat(d));return f}})})()})}(Ce)),Ce.exports}var Ae={exports:{}},en=Ae.exports,j0;function rn(){return j0||(j0=1,function(n,t){(function(e,r,i){n.exports=r(N(),h0(),u0())})(en,function(e){return function(){var r=e,i=r.lib,s=i.Base,a=i.WordArray,o=r.algo,h=o.SHA256,c=o.HMAC,u=o.PBKDF2=s.extend({cfg:s.extend({keySize:128/32,hasher:h,iterations:25e4}),init:function(d){this.cfg=this.cfg.extend(d)},compute:function(d,f){for(var x=this.cfg,l=c.create(x.hasher,d),g=a.create(),E=a.create([1]),B=g.words,v=E.words,p=x.keySize,y=x.iterations;B.length<p;){var A=l.update(f).finalize(E);l.reset();for(var m=A.words,b=m.length,w=A,O=1;O<y;O++){w=l.finalize(w),l.reset();for(var D=w.words,C=0;C<b;C++)m[C]^=D[C]}g.concat(A),v[0]++}return g.sigBytes=p*4,g}});r.PBKDF2=function(d,f,x){return u.create(x).compute(d,f)}}(),e.PBKDF2})}(Ae)),Ae.exports}var be={exports:{}},nn=be.exports,Y0;function Bt(){return Y0||(Y0=1,function(n,t){(function(e,r,i){n.exports=r(N(),Rr(),u0())})(nn,function(e){return function(){var r=e,i=r.lib,s=i.Base,a=i.WordArray,o=r.algo,h=o.MD5,c=o.EvpKDF=s.extend({cfg:s.extend({keySize:128/32,hasher:h,iterations:1}),init:function(u){this.cfg=this.cfg.extend(u)},compute:function(u,d){for(var f,x=this.cfg,l=x.hasher.create(),g=a.create(),E=g.words,B=x.keySize,v=x.iterations;E.length<B;){f&&l.update(f),f=l.update(u).finalize(d),l.reset();for(var p=1;p<v;p++)f=l.finalize(f),l.reset();g.concat(f)}return g.sigBytes=B*4,g}});r.EvpKDF=function(u,d,f){return c.create(f).compute(u,d)}}(),e.EvpKDF})}(be)),be.exports}var we={exports:{}},sn=we.exports,K0;function G(){return K0||(K0=1,function(n,t){(function(e,r,i){n.exports=r(N(),Bt())})(sn,function(e){e.lib.Cipher||function(r){var i=e,s=i.lib,a=s.Base,o=s.WordArray,h=s.BufferedBlockAlgorithm,c=i.enc;c.Utf8;var u=c.Base64,d=i.algo,f=d.EvpKDF,x=s.Cipher=h.extend({cfg:a.extend(),createEncryptor:function(D,C){return this.create(this._ENC_XFORM_MODE,D,C)},createDecryptor:function(D,C){return this.create(this._DEC_XFORM_MODE,D,C)},init:function(D,C,T){this.cfg=this.cfg.extend(T),this._xformMode=D,this._key=C,this.reset()},reset:function(){h.reset.call(this),this._doReset()},process:function(D){return this._append(D),this._process()},finalize:function(D){D&&this._append(D);var C=this._doFinalize();return C},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function D(C){return typeof C=="string"?O:m}return function(C){return{encrypt:function(T,S,I){return D(S).encrypt(C,T,S,I)},decrypt:function(T,S,I){return D(S).decrypt(C,T,S,I)}}}}()});s.StreamCipher=x.extend({_doFinalize:function(){var D=this._process(!0);return D},blockSize:1});var l=i.mode={},g=s.BlockCipherMode=a.extend({createEncryptor:function(D,C){return this.Encryptor.create(D,C)},createDecryptor:function(D,C){return this.Decryptor.create(D,C)},init:function(D,C){this._cipher=D,this._iv=C}}),E=l.CBC=function(){var D=g.extend();D.Encryptor=D.extend({processBlock:function(T,S){var I=this._cipher,M=I.blockSize;C.call(this,T,S,M),I.encryptBlock(T,S),this._prevBlock=T.slice(S,S+M)}}),D.Decryptor=D.extend({processBlock:function(T,S){var I=this._cipher,M=I.blockSize,L=T.slice(S,S+M);I.decryptBlock(T,S),C.call(this,T,S,M),this._prevBlock=L}});function C(T,S,I){var M,L=this._iv;L?(M=L,this._iv=r):M=this._prevBlock;for(var U=0;U<I;U++)T[S+U]^=M[U]}return D}(),B=i.pad={},v=B.Pkcs7={pad:function(D,C){for(var T=C*4,S=T-D.sigBytes%T,I=S<<24|S<<16|S<<8|S,M=[],L=0;L<S;L+=4)M.push(I);var U=o.create(M,S);D.concat(U)},unpad:function(D){var C=D.words[D.sigBytes-1>>>2]&255;D.sigBytes-=C}};s.BlockCipher=x.extend({cfg:x.cfg.extend({mode:E,padding:v}),reset:function(){var D;x.reset.call(this);var C=this.cfg,T=C.iv,S=C.mode;this._xformMode==this._ENC_XFORM_MODE?D=S.createEncryptor:(D=S.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==D?this._mode.init(this,T&&T.words):(this._mode=D.call(S,this,T&&T.words),this._mode.__creator=D)},_doProcessBlock:function(D,C){this._mode.processBlock(D,C)},_doFinalize:function(){var D,C=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(C.pad(this._data,this.blockSize),D=this._process(!0)):(D=this._process(!0),C.unpad(D)),D},blockSize:128/32});var p=s.CipherParams=a.extend({init:function(D){this.mixIn(D)},toString:function(D){return(D||this.formatter).stringify(this)}}),y=i.format={},A=y.OpenSSL={stringify:function(D){var C,T=D.ciphertext,S=D.salt;return S?C=o.create([1398893684,1701076831]).concat(S).concat(T):C=T,C.toString(u)},parse:function(D){var C,T=u.parse(D),S=T.words;return S[0]==1398893684&&S[1]==1701076831&&(C=o.create(S.slice(2,4)),S.splice(0,4),T.sigBytes-=16),p.create({ciphertext:T,salt:C})}},m=s.SerializableCipher=a.extend({cfg:a.extend({format:A}),encrypt:function(D,C,T,S){S=this.cfg.extend(S);var I=D.createEncryptor(T,S),M=I.finalize(C),L=I.cfg;return p.create({ciphertext:M,key:T,iv:L.iv,algorithm:D,mode:L.mode,padding:L.padding,blockSize:D.blockSize,formatter:S.format})},decrypt:function(D,C,T,S){S=this.cfg.extend(S),C=this._parse(C,S.format);var I=D.createDecryptor(T,S).finalize(C.ciphertext);return I},_parse:function(D,C){return typeof D=="string"?C.parse(D,this):D}}),b=i.kdf={},w=b.OpenSSL={execute:function(D,C,T,S,I){if(S||(S=o.random(64/8)),I)var M=f.create({keySize:C+T,hasher:I}).compute(D,S);else var M=f.create({keySize:C+T}).compute(D,S);var L=o.create(M.words.slice(C),T*4);return M.sigBytes=C*4,p.create({key:M,iv:L,salt:S})}},O=s.PasswordBasedCipher=m.extend({cfg:m.cfg.extend({kdf:w}),encrypt:function(D,C,T,S){S=this.cfg.extend(S);var I=S.kdf.execute(T,D.keySize,D.ivSize,S.salt,S.hasher);S.iv=I.iv;var M=m.encrypt.call(this,D,C,I.key,S);return M.mixIn(I),M},decrypt:function(D,C,T,S){S=this.cfg.extend(S),C=this._parse(C,S.format);var I=S.kdf.execute(T,D.keySize,D.ivSize,C.salt,S.hasher);S.iv=I.iv;var M=m.decrypt.call(this,D,C,I.key,S);return M}})}()})}(we)),we.exports}var Fe={exports:{}},on=Fe.exports,Z0;function an(){return Z0||(Z0=1,function(n,t){(function(e,r,i){n.exports=r(N(),G())})(on,function(e){return e.mode.CFB=function(){var r=e.lib.BlockCipherMode.extend();r.Encryptor=r.extend({processBlock:function(s,a){var o=this._cipher,h=o.blockSize;i.call(this,s,a,h,o),this._prevBlock=s.slice(a,a+h)}}),r.Decryptor=r.extend({processBlock:function(s,a){var o=this._cipher,h=o.blockSize,c=s.slice(a,a+h);i.call(this,s,a,h,o),this._prevBlock=c}});function i(s,a,o,h){var c,u=this._iv;u?(c=u.slice(0),this._iv=void 0):c=this._prevBlock,h.encryptBlock(c,0);for(var d=0;d<o;d++)s[a+d]^=c[d]}return r}(),e.mode.CFB})}(Fe)),Fe.exports}var Se={exports:{}},cn=Se.exports,G0;function hn(){return G0||(G0=1,function(n,t){(function(e,r,i){n.exports=r(N(),G())})(cn,function(e){return e.mode.CTR=function(){var r=e.lib.BlockCipherMode.extend(),i=r.Encryptor=r.extend({processBlock:function(s,a){var o=this._cipher,h=o.blockSize,c=this._iv,u=this._counter;c&&(u=this._counter=c.slice(0),this._iv=void 0);var d=u.slice(0);o.encryptBlock(d,0),u[h-1]=u[h-1]+1|0;for(var f=0;f<h;f++)s[a+f]^=d[f]}});return r.Decryptor=i,r}(),e.mode.CTR})}(Se)),Se.exports}var _e={exports:{}},un=_e.exports,Q0;function fn(){return Q0||(Q0=1,function(n,t){(function(e,r,i){n.exports=r(N(),G())})(un,function(e){/** @preserve
 * Counter block mode compatible with  Dr Brian Gladman fileenc.c
 * derived from CryptoJS.mode.CTR
 * Jan Hruby jhruby.web@gmail.com
 */return e.mode.CTRGladman=function(){var r=e.lib.BlockCipherMode.extend();function i(o){if((o>>24&255)===255){var h=o>>16&255,c=o>>8&255,u=o&255;h===255?(h=0,c===255?(c=0,u===255?u=0:++u):++c):++h,o=0,o+=h<<16,o+=c<<8,o+=u}else o+=1<<24;return o}function s(o){return(o[0]=i(o[0]))===0&&(o[1]=i(o[1])),o}var a=r.Encryptor=r.extend({processBlock:function(o,h){var c=this._cipher,u=c.blockSize,d=this._iv,f=this._counter;d&&(f=this._counter=d.slice(0),this._iv=void 0),s(f);var x=f.slice(0);c.encryptBlock(x,0);for(var l=0;l<u;l++)o[h+l]^=x[l]}});return r.Decryptor=a,r}(),e.mode.CTRGladman})}(_e)),_e.exports}var Te={exports:{}},xn=Te.exports,J0;function ln(){return J0||(J0=1,function(n,t){(function(e,r,i){n.exports=r(N(),G())})(xn,function(e){return e.mode.OFB=function(){var r=e.lib.BlockCipherMode.extend(),i=r.Encryptor=r.extend({processBlock:function(s,a){var o=this._cipher,h=o.blockSize,c=this._iv,u=this._keystream;c&&(u=this._keystream=c.slice(0),this._iv=void 0),o.encryptBlock(u,0);for(var d=0;d<h;d++)s[a+d]^=u[d]}});return r.Decryptor=i,r}(),e.mode.OFB})}(Te)),Te.exports}var Re={exports:{}},dn=Re.exports,tr;function vn(){return tr||(tr=1,function(n,t){(function(e,r,i){n.exports=r(N(),G())})(dn,function(e){return e.mode.ECB=function(){var r=e.lib.BlockCipherMode.extend();return r.Encryptor=r.extend({processBlock:function(i,s){this._cipher.encryptBlock(i,s)}}),r.Decryptor=r.extend({processBlock:function(i,s){this._cipher.decryptBlock(i,s)}}),r}(),e.mode.ECB})}(Re)),Re.exports}var ke={exports:{}},pn=ke.exports,er;function gn(){return er||(er=1,function(n,t){(function(e,r,i){n.exports=r(N(),G())})(pn,function(e){return e.pad.AnsiX923={pad:function(r,i){var s=r.sigBytes,a=i*4,o=a-s%a,h=s+o-1;r.clamp(),r.words[h>>>2]|=o<<24-h%4*8,r.sigBytes+=o},unpad:function(r){var i=r.words[r.sigBytes-1>>>2]&255;r.sigBytes-=i}},e.pad.Ansix923})}(ke)),ke.exports}var Oe={exports:{}},En=Oe.exports,rr;function yn(){return rr||(rr=1,function(n,t){(function(e,r,i){n.exports=r(N(),G())})(En,function(e){return e.pad.Iso10126={pad:function(r,i){var s=i*4,a=s-r.sigBytes%s;r.concat(e.lib.WordArray.random(a-1)).concat(e.lib.WordArray.create([a<<24],1))},unpad:function(r){var i=r.words[r.sigBytes-1>>>2]&255;r.sigBytes-=i}},e.pad.Iso10126})}(Oe)),Oe.exports}var Pe={exports:{}},mn=Pe.exports,ir;function Bn(){return ir||(ir=1,function(n,t){(function(e,r,i){n.exports=r(N(),G())})(mn,function(e){return e.pad.Iso97971={pad:function(r,i){r.concat(e.lib.WordArray.create([2147483648],1)),e.pad.ZeroPadding.pad(r,i)},unpad:function(r){e.pad.ZeroPadding.unpad(r),r.sigBytes--}},e.pad.Iso97971})}(Pe)),Pe.exports}var Ie={exports:{}},Dn=Ie.exports,nr;function Cn(){return nr||(nr=1,function(n,t){(function(e,r,i){n.exports=r(N(),G())})(Dn,function(e){return e.pad.ZeroPadding={pad:function(r,i){var s=i*4;r.clamp(),r.sigBytes+=s-(r.sigBytes%s||s)},unpad:function(r){for(var i=r.words,s=r.sigBytes-1,s=r.sigBytes-1;s>=0;s--)if(i[s>>>2]>>>24-s%4*8&255){r.sigBytes=s+1;break}}},e.pad.ZeroPadding})}(Ie)),Ie.exports}var Me={exports:{}},An=Me.exports,sr;function bn(){return sr||(sr=1,function(n,t){(function(e,r,i){n.exports=r(N(),G())})(An,function(e){return e.pad.NoPadding={pad:function(){},unpad:function(){}},e.pad.NoPadding})}(Me)),Me.exports}var He={exports:{}},wn=He.exports,or;function Fn(){return or||(or=1,function(n,t){(function(e,r,i){n.exports=r(N(),G())})(wn,function(e){return function(r){var i=e,s=i.lib,a=s.CipherParams,o=i.enc,h=o.Hex,c=i.format;c.Hex={stringify:function(u){return u.ciphertext.toString(h)},parse:function(u){var d=h.parse(u);return a.create({ciphertext:d})}}}(),e.format.Hex})}(He)),He.exports}var Le={exports:{}},Sn=Le.exports,ar;function _n(){return ar||(ar=1,function(n,t){(function(e,r,i){n.exports=r(N(),bt(),wt(),Bt(),G())})(Sn,function(e){return function(){var r=e,i=r.lib,s=i.BlockCipher,a=r.algo,o=[],h=[],c=[],u=[],d=[],f=[],x=[],l=[],g=[],E=[];(function(){for(var p=[],y=0;y<256;y++)y<128?p[y]=y<<1:p[y]=y<<1^283;for(var A=0,m=0,y=0;y<256;y++){var b=m^m<<1^m<<2^m<<3^m<<4;b=b>>>8^b&255^99,o[A]=b,h[b]=A;var w=p[A],O=p[w],D=p[O],C=p[b]*257^b*16843008;c[A]=C<<24|C>>>8,u[A]=C<<16|C>>>16,d[A]=C<<8|C>>>24,f[A]=C;var C=D*16843009^O*65537^w*257^A*16843008;x[b]=C<<24|C>>>8,l[b]=C<<16|C>>>16,g[b]=C<<8|C>>>24,E[b]=C,A?(A=w^p[p[p[D^w]]],m^=p[p[m]]):A=m=1}})();var B=[0,1,2,4,8,16,32,64,128,27,54],v=a.AES=s.extend({_doReset:function(){var p;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var y=this._keyPriorReset=this._key,A=y.words,m=y.sigBytes/4,b=this._nRounds=m+6,w=(b+1)*4,O=this._keySchedule=[],D=0;D<w;D++)D<m?O[D]=A[D]:(p=O[D-1],D%m?m>6&&D%m==4&&(p=o[p>>>24]<<24|o[p>>>16&255]<<16|o[p>>>8&255]<<8|o[p&255]):(p=p<<8|p>>>24,p=o[p>>>24]<<24|o[p>>>16&255]<<16|o[p>>>8&255]<<8|o[p&255],p^=B[D/m|0]<<24),O[D]=O[D-m]^p);for(var C=this._invKeySchedule=[],T=0;T<w;T++){var D=w-T;if(T%4)var p=O[D];else var p=O[D-4];T<4||D<=4?C[T]=p:C[T]=x[o[p>>>24]]^l[o[p>>>16&255]]^g[o[p>>>8&255]]^E[o[p&255]]}}},encryptBlock:function(p,y){this._doCryptBlock(p,y,this._keySchedule,c,u,d,f,o)},decryptBlock:function(p,y){var A=p[y+1];p[y+1]=p[y+3],p[y+3]=A,this._doCryptBlock(p,y,this._invKeySchedule,x,l,g,E,h);var A=p[y+1];p[y+1]=p[y+3],p[y+3]=A},_doCryptBlock:function(p,y,A,m,b,w,O,D){for(var C=this._nRounds,T=p[y]^A[0],S=p[y+1]^A[1],I=p[y+2]^A[2],M=p[y+3]^A[3],L=4,U=1;U<C;U++){var q=m[T>>>24]^b[S>>>16&255]^w[I>>>8&255]^O[M&255]^A[L++],$=m[S>>>24]^b[I>>>16&255]^w[M>>>8&255]^O[T&255]^A[L++],W=m[I>>>24]^b[M>>>16&255]^w[T>>>8&255]^O[S&255]^A[L++],_=m[M>>>24]^b[T>>>16&255]^w[S>>>8&255]^O[I&255]^A[L++];T=q,S=$,I=W,M=_}var q=(D[T>>>24]<<24|D[S>>>16&255]<<16|D[I>>>8&255]<<8|D[M&255])^A[L++],$=(D[S>>>24]<<24|D[I>>>16&255]<<16|D[M>>>8&255]<<8|D[T&255])^A[L++],W=(D[I>>>24]<<24|D[M>>>16&255]<<16|D[T>>>8&255]<<8|D[S&255])^A[L++],_=(D[M>>>24]<<24|D[T>>>16&255]<<16|D[S>>>8&255]<<8|D[I&255])^A[L++];p[y]=q,p[y+1]=$,p[y+2]=W,p[y+3]=_},keySize:256/32});r.AES=s._createHelper(v)}(),e.AES})}(Le)),Le.exports}var Ve={exports:{}},Tn=Ve.exports,cr;function Rn(){return cr||(cr=1,function(n,t){(function(e,r,i){n.exports=r(N(),bt(),wt(),Bt(),G())})(Tn,function(e){return function(){var r=e,i=r.lib,s=i.WordArray,a=i.BlockCipher,o=r.algo,h=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],c=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],u=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],d=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],f=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],x=o.DES=a.extend({_doReset:function(){for(var B=this._key,v=B.words,p=[],y=0;y<56;y++){var A=h[y]-1;p[y]=v[A>>>5]>>>31-A%32&1}for(var m=this._subKeys=[],b=0;b<16;b++){for(var w=m[b]=[],O=u[b],y=0;y<24;y++)w[y/6|0]|=p[(c[y]-1+O)%28]<<31-y%6,w[4+(y/6|0)]|=p[28+(c[y+24]-1+O)%28]<<31-y%6;w[0]=w[0]<<1|w[0]>>>31;for(var y=1;y<7;y++)w[y]=w[y]>>>(y-1)*4+3;w[7]=w[7]<<5|w[7]>>>27}for(var D=this._invSubKeys=[],y=0;y<16;y++)D[y]=m[15-y]},encryptBlock:function(B,v){this._doCryptBlock(B,v,this._subKeys)},decryptBlock:function(B,v){this._doCryptBlock(B,v,this._invSubKeys)},_doCryptBlock:function(B,v,p){this._lBlock=B[v],this._rBlock=B[v+1],l.call(this,4,252645135),l.call(this,16,65535),g.call(this,2,858993459),g.call(this,8,16711935),l.call(this,1,1431655765);for(var y=0;y<16;y++){for(var A=p[y],m=this._lBlock,b=this._rBlock,w=0,O=0;O<8;O++)w|=d[O][((b^A[O])&f[O])>>>0];this._lBlock=b,this._rBlock=m^w}var D=this._lBlock;this._lBlock=this._rBlock,this._rBlock=D,l.call(this,1,1431655765),g.call(this,8,16711935),g.call(this,2,858993459),l.call(this,16,65535),l.call(this,4,252645135),B[v]=this._lBlock,B[v+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function l(B,v){var p=(this._lBlock>>>B^this._rBlock)&v;this._rBlock^=p,this._lBlock^=p<<B}function g(B,v){var p=(this._rBlock>>>B^this._lBlock)&v;this._lBlock^=p,this._rBlock^=p<<B}r.DES=a._createHelper(x);var E=o.TripleDES=a.extend({_doReset:function(){var B=this._key,v=B.words;if(v.length!==2&&v.length!==4&&v.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var p=v.slice(0,2),y=v.length<4?v.slice(0,2):v.slice(2,4),A=v.length<6?v.slice(0,2):v.slice(4,6);this._des1=x.createEncryptor(s.create(p)),this._des2=x.createEncryptor(s.create(y)),this._des3=x.createEncryptor(s.create(A))},encryptBlock:function(B,v){this._des1.encryptBlock(B,v),this._des2.decryptBlock(B,v),this._des3.encryptBlock(B,v)},decryptBlock:function(B,v){this._des3.decryptBlock(B,v),this._des2.encryptBlock(B,v),this._des1.decryptBlock(B,v)},keySize:192/32,ivSize:64/32,blockSize:64/32});r.TripleDES=a._createHelper(E)}(),e.TripleDES})}(Ve)),Ve.exports}var ze={exports:{}},kn=ze.exports,hr;function On(){return hr||(hr=1,function(n,t){(function(e,r,i){n.exports=r(N(),bt(),wt(),Bt(),G())})(kn,function(e){return function(){var r=e,i=r.lib,s=i.StreamCipher,a=r.algo,o=a.RC4=s.extend({_doReset:function(){for(var u=this._key,d=u.words,f=u.sigBytes,x=this._S=[],l=0;l<256;l++)x[l]=l;for(var l=0,g=0;l<256;l++){var E=l%f,B=d[E>>>2]>>>24-E%4*8&255;g=(g+x[l]+B)%256;var v=x[l];x[l]=x[g],x[g]=v}this._i=this._j=0},_doProcessBlock:function(u,d){u[d]^=h.call(this)},keySize:256/32,ivSize:0});function h(){for(var u=this._S,d=this._i,f=this._j,x=0,l=0;l<4;l++){d=(d+1)%256,f=(f+u[d])%256;var g=u[d];u[d]=u[f],u[f]=g,x|=u[(u[d]+u[f])%256]<<24-l*8}return this._i=d,this._j=f,x}r.RC4=s._createHelper(o);var c=a.RC4Drop=o.extend({cfg:o.cfg.extend({drop:192}),_doReset:function(){o._doReset.call(this);for(var u=this.cfg.drop;u>0;u--)h.call(this)}});r.RC4Drop=s._createHelper(c)}(),e.RC4})}(ze)),ze.exports}var Ne={exports:{}},Pn=Ne.exports,ur;function In(){return ur||(ur=1,function(n,t){(function(e,r,i){n.exports=r(N(),bt(),wt(),Bt(),G())})(Pn,function(e){return function(){var r=e,i=r.lib,s=i.StreamCipher,a=r.algo,o=[],h=[],c=[],u=a.Rabbit=s.extend({_doReset:function(){for(var f=this._key.words,x=this.cfg.iv,l=0;l<4;l++)f[l]=(f[l]<<8|f[l]>>>24)&16711935|(f[l]<<24|f[l]>>>8)&4278255360;var g=this._X=[f[0],f[3]<<16|f[2]>>>16,f[1],f[0]<<16|f[3]>>>16,f[2],f[1]<<16|f[0]>>>16,f[3],f[2]<<16|f[1]>>>16],E=this._C=[f[2]<<16|f[2]>>>16,f[0]&4294901760|f[1]&65535,f[3]<<16|f[3]>>>16,f[1]&4294901760|f[2]&65535,f[0]<<16|f[0]>>>16,f[2]&4294901760|f[3]&65535,f[1]<<16|f[1]>>>16,f[3]&4294901760|f[0]&65535];this._b=0;for(var l=0;l<4;l++)d.call(this);for(var l=0;l<8;l++)E[l]^=g[l+4&7];if(x){var B=x.words,v=B[0],p=B[1],y=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360,A=(p<<8|p>>>24)&16711935|(p<<24|p>>>8)&4278255360,m=y>>>16|A&4294901760,b=A<<16|y&65535;E[0]^=y,E[1]^=m,E[2]^=A,E[3]^=b,E[4]^=y,E[5]^=m,E[6]^=A,E[7]^=b;for(var l=0;l<4;l++)d.call(this)}},_doProcessBlock:function(f,x){var l=this._X;d.call(this),o[0]=l[0]^l[5]>>>16^l[3]<<16,o[1]=l[2]^l[7]>>>16^l[5]<<16,o[2]=l[4]^l[1]>>>16^l[7]<<16,o[3]=l[6]^l[3]>>>16^l[1]<<16;for(var g=0;g<4;g++)o[g]=(o[g]<<8|o[g]>>>24)&16711935|(o[g]<<24|o[g]>>>8)&4278255360,f[x+g]^=o[g]},blockSize:128/32,ivSize:64/32});function d(){for(var f=this._X,x=this._C,l=0;l<8;l++)h[l]=x[l];x[0]=x[0]+1295307597+this._b|0,x[1]=x[1]+3545052371+(x[0]>>>0<h[0]>>>0?1:0)|0,x[2]=x[2]+886263092+(x[1]>>>0<h[1]>>>0?1:0)|0,x[3]=x[3]+1295307597+(x[2]>>>0<h[2]>>>0?1:0)|0,x[4]=x[4]+3545052371+(x[3]>>>0<h[3]>>>0?1:0)|0,x[5]=x[5]+886263092+(x[4]>>>0<h[4]>>>0?1:0)|0,x[6]=x[6]+1295307597+(x[5]>>>0<h[5]>>>0?1:0)|0,x[7]=x[7]+3545052371+(x[6]>>>0<h[6]>>>0?1:0)|0,this._b=x[7]>>>0<h[7]>>>0?1:0;for(var l=0;l<8;l++){var g=f[l]+x[l],E=g&65535,B=g>>>16,v=((E*E>>>17)+E*B>>>15)+B*B,p=((g&4294901760)*g|0)+((g&65535)*g|0);c[l]=v^p}f[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,f[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,f[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,f[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,f[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,f[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,f[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,f[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}r.Rabbit=s._createHelper(u)}(),e.Rabbit})}(Ne)),Ne.exports}var qe={exports:{}},Mn=qe.exports,fr;function Hn(){return fr||(fr=1,function(n,t){(function(e,r,i){n.exports=r(N(),bt(),wt(),Bt(),G())})(Mn,function(e){return function(){var r=e,i=r.lib,s=i.StreamCipher,a=r.algo,o=[],h=[],c=[],u=a.RabbitLegacy=s.extend({_doReset:function(){var f=this._key.words,x=this.cfg.iv,l=this._X=[f[0],f[3]<<16|f[2]>>>16,f[1],f[0]<<16|f[3]>>>16,f[2],f[1]<<16|f[0]>>>16,f[3],f[2]<<16|f[1]>>>16],g=this._C=[f[2]<<16|f[2]>>>16,f[0]&4294901760|f[1]&65535,f[3]<<16|f[3]>>>16,f[1]&4294901760|f[2]&65535,f[0]<<16|f[0]>>>16,f[2]&4294901760|f[3]&65535,f[1]<<16|f[1]>>>16,f[3]&4294901760|f[0]&65535];this._b=0;for(var E=0;E<4;E++)d.call(this);for(var E=0;E<8;E++)g[E]^=l[E+4&7];if(x){var B=x.words,v=B[0],p=B[1],y=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360,A=(p<<8|p>>>24)&16711935|(p<<24|p>>>8)&4278255360,m=y>>>16|A&4294901760,b=A<<16|y&65535;g[0]^=y,g[1]^=m,g[2]^=A,g[3]^=b,g[4]^=y,g[5]^=m,g[6]^=A,g[7]^=b;for(var E=0;E<4;E++)d.call(this)}},_doProcessBlock:function(f,x){var l=this._X;d.call(this),o[0]=l[0]^l[5]>>>16^l[3]<<16,o[1]=l[2]^l[7]>>>16^l[5]<<16,o[2]=l[4]^l[1]>>>16^l[7]<<16,o[3]=l[6]^l[3]>>>16^l[1]<<16;for(var g=0;g<4;g++)o[g]=(o[g]<<8|o[g]>>>24)&16711935|(o[g]<<24|o[g]>>>8)&4278255360,f[x+g]^=o[g]},blockSize:128/32,ivSize:64/32});function d(){for(var f=this._X,x=this._C,l=0;l<8;l++)h[l]=x[l];x[0]=x[0]+1295307597+this._b|0,x[1]=x[1]+3545052371+(x[0]>>>0<h[0]>>>0?1:0)|0,x[2]=x[2]+886263092+(x[1]>>>0<h[1]>>>0?1:0)|0,x[3]=x[3]+1295307597+(x[2]>>>0<h[2]>>>0?1:0)|0,x[4]=x[4]+3545052371+(x[3]>>>0<h[3]>>>0?1:0)|0,x[5]=x[5]+886263092+(x[4]>>>0<h[4]>>>0?1:0)|0,x[6]=x[6]+1295307597+(x[5]>>>0<h[5]>>>0?1:0)|0,x[7]=x[7]+3545052371+(x[6]>>>0<h[6]>>>0?1:0)|0,this._b=x[7]>>>0<h[7]>>>0?1:0;for(var l=0;l<8;l++){var g=f[l]+x[l],E=g&65535,B=g>>>16,v=((E*E>>>17)+E*B>>>15)+B*B,p=((g&4294901760)*g|0)+((g&65535)*g|0);c[l]=v^p}f[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,f[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,f[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,f[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,f[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,f[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,f[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,f[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}r.RabbitLegacy=s._createHelper(u)}(),e.RabbitLegacy})}(qe)),qe.exports}var We={exports:{}},Ln=We.exports,xr;function Vn(){return xr||(xr=1,function(n,t){(function(e,r,i){n.exports=r(N(),bt(),wt(),Bt(),G())})(Ln,function(e){return function(){var r=e,i=r.lib,s=i.BlockCipher,a=r.algo;const o=16,h=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],c=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var u={pbox:[],sbox:[]};function d(E,B){let v=B>>24&255,p=B>>16&255,y=B>>8&255,A=B&255,m=E.sbox[0][v]+E.sbox[1][p];return m=m^E.sbox[2][y],m=m+E.sbox[3][A],m}function f(E,B,v){let p=B,y=v,A;for(let m=0;m<o;++m)p=p^E.pbox[m],y=d(E,p)^y,A=p,p=y,y=A;return A=p,p=y,y=A,y=y^E.pbox[o],p=p^E.pbox[o+1],{left:p,right:y}}function x(E,B,v){let p=B,y=v,A;for(let m=o+1;m>1;--m)p=p^E.pbox[m],y=d(E,p)^y,A=p,p=y,y=A;return A=p,p=y,y=A,y=y^E.pbox[1],p=p^E.pbox[0],{left:p,right:y}}function l(E,B,v){for(let b=0;b<4;b++){E.sbox[b]=[];for(let w=0;w<256;w++)E.sbox[b][w]=c[b][w]}let p=0;for(let b=0;b<o+2;b++)E.pbox[b]=h[b]^B[p],p++,p>=v&&(p=0);let y=0,A=0,m=0;for(let b=0;b<o+2;b+=2)m=f(E,y,A),y=m.left,A=m.right,E.pbox[b]=y,E.pbox[b+1]=A;for(let b=0;b<4;b++)for(let w=0;w<256;w+=2)m=f(E,y,A),y=m.left,A=m.right,E.sbox[b][w]=y,E.sbox[b][w+1]=A;return!0}var g=a.Blowfish=s.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var E=this._keyPriorReset=this._key,B=E.words,v=E.sigBytes/4;l(u,B,v)}},encryptBlock:function(E,B){var v=f(u,E[B],E[B+1]);E[B]=v.left,E[B+1]=v.right},decryptBlock:function(E,B){var v=x(u,E[B],E[B+1]);E[B]=v.left,E[B+1]=v.right},blockSize:64/32,keySize:128/32,ivSize:64/32});r.Blowfish=s._createHelper(g)}(),e.Blowfish})}(We)),We.exports}var zn=ce.exports,lr;function Nn(){return lr||(lr=1,function(n,t){(function(e,r,i){n.exports=r(N(),Ye(),Mi(),Li(),bt(),Ni(),wt(),Rr(),h0(),Xi(),kr(),Ki(),Gi(),Ji(),u0(),rn(),Bt(),G(),an(),hn(),fn(),ln(),vn(),gn(),yn(),Bn(),Cn(),bn(),Fn(),_n(),Rn(),On(),In(),Hn(),Vn())})(zn,function(e){return e})}(ce)),ce.exports}var ot=Nn(),Q=[];for(var t0=0;t0<256;++t0)Q.push((t0+256).toString(16).slice(1));function qn(n,t=0){return(Q[n[t+0]]+Q[n[t+1]]+Q[n[t+2]]+Q[n[t+3]]+"-"+Q[n[t+4]]+Q[n[t+5]]+"-"+Q[n[t+6]]+Q[n[t+7]]+"-"+Q[n[t+8]]+Q[n[t+9]]+"-"+Q[n[t+10]]+Q[n[t+11]]+Q[n[t+12]]+Q[n[t+13]]+Q[n[t+14]]+Q[n[t+15]]).toLowerCase()}var te,Wn=new Uint8Array(16);function Un(){if(!te&&(te=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!te))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return te(Wn)}var $n=typeof crypto!="undefined"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);const dr={randomUUID:$n};function Xn(n,t,e){if(dr.randomUUID&&!n)return dr.randomUUID();n=n||{};var r=n.random||(n.rng||Un)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,qn(r)}class Or{static set(t,e,r=!1){if(!e)return;const i=this.serialize(e)||"";t=r&&t?this.encrypt(t):t;const s=r?i&&this.encrypt(i):i;localStorage.setItem(t,s)}static get(t,e=!1){t=e&&t?this.encrypt(t):t;const r=localStorage.getItem(t);let i=e&&r?this.decrypt(r):r;try{i=JSON.parse(i||"")}catch(s){i=i||""}return i}static remove(t){if(!t)return;t=this.MIX_KEY_MAP[t]||t;const e=t&&this.encrypt(t);localStorage.getItem(e)&&localStorage.removeItem(e),localStorage.removeItem(t)}static clear(){localStorage.clear()}static removeList(t){for(let e of t)e=this.MIX_KEY_MAP[e]||e,this.remove(e)}static serialize(t){if(!t)return"";let e="";return J.isObject(t)||J.isArray(t)?e=Kt.stringify(t):e=String(t),e}static getKey(){const t=window.localStorage,e=this.MIX_KEY_MAP.encryptKey;let r=t.getItem(e)||"";return r||(r=Xn().replace(/-/g,""),t.setItem(e,r)),r}static encrypt(t){try{const e=this.getKey(),r=ot.enc.Utf8.parse(e),i=ot.enc.Utf8.parse(t);return ot.AES.encrypt(i,r,{iv:r,mode:ot.mode.CBC,padding:ot.pad.Pkcs7}).ciphertext.toString().toUpperCase()}catch(e){return t}}static decrypt(t){try{const e=this.getKey(),r=ot.enc.Utf8.parse(e),i=ot.enc.Hex.parse(t),s=ot.enc.Base64.stringify(i);return ot.AES.decrypt(s,r,{iv:r,mode:ot.mode.CBC,padding:ot.pad.Pkcs7}).toString(ot.enc.Utf8).toString()}catch(e){return t}}}Or.MIX_KEY_MAP={encryptKey:"jthrnemiya"};class jn{constructor(){this.eventMap=new Map}on(t,e,r=-1){if(typeof e!="function")throw new TypeError("The listener not a function");this.eventMap.has(t)||this.eventMap.set(t,[]);const s=this.eventMap.get(t);s&&(s.push({total:r,listener:e}),this.eventMap.set(t,s))}once(t,e,r=1){this.on(t,e,r)}removeListener(t){this.eventMap.has(t)&&this.eventMap.delete(t)}removeEventListener(t,e){if(this.eventMap.has(t)){const i=this.eventMap.get(t);if(i){const s=i.findIndex(a=>a.listener===e);s!==-1&&(i.splice(s,1),this.eventMap.set(t,i))}}}removeAllListener(){this.eventMap.clear()}emit(t,...e){if(!this.eventMap.has(t))return;const i=this.eventMap.get(t);i&&i.forEach((s,a)=>{(s.total===-1||s.total>=1||typeof s.listener=="function")&&s.listener.apply(this,e),s.total>=1&&(s.total=s.total-1,s.total===0&&(s.listener=()=>{}),i[a]=s,this.eventMap.set(t,i))})}}class Yn{static sendToChild(t,e){t&&t.contentWindow&&t.contentWindow.postMessage(Kt.stringify(e),"*")}static receiveFromChild(t,e){const r=i=>{i.source===t.contentWindow&&e(i)};return window.addEventListener("message",r),r}static removeFromChild(t){window.removeEventListener("message",t)}static sendToParent(t){window.parent?window.parent.postMessage(JSON.stringify(t),"*"):console.error("No parent window found.")}static receiveFromParent(t){window.addEventListener("message",function(e){e.source===window.parent&&t(e.data)})}}var It=(n=>(n[n.RESIZE=0]="RESIZE",n[n.OBSERVER=1]="OBSERVER",n[n.UNKNOWN=2]="UNKNOWN",n))(It||{});const Pr=function(n,t){const e=t||200;let r=null;return function(){const i=this,s=arguments;r&&clearTimeout(r),r=setTimeout(function(){n.apply(i,s)},e)}},Ir=function(n,t,e){let r=null,i;return function(){const s=+new Date,a=this,o=arguments;r&&clearTimeout(r),i||(i=s),s-i>=e?(n.apply(a,o),i=s):r=setTimeout(function(){n.apply(a,o)},t)}},Kn=(n,t)=>n.replace(/\${(.*?)}/g,(e,r)=>t[r]||e),Zn=(n,t=3)=>{try{return parseFloat(n.toFixed(t))}catch(e){return Math.round(n)}};function Gn(n){const t={};return n.forEach((e,r)=>{t[r]=e}),t}class Mr{constructor(){this.eleId="",this.element=null,this.resizeObserver=null,this.resizeMode=It.UNKNOWN,this.detectCount=0,this.maxDetectCount=20,this.detectTimer=null,this.onResize=()=>{},this.handleResize=this.handleResize.bind(this)}handleResize(){const t=this.element||document.body,{width:e=0,height:r=0}=(t==null?void 0:t.getBoundingClientRect())||{},i=this.getIsHorizontal();this.onResize({width:e,height:r,element:t,isHorizontal:i})}init(t,e,r=0){this.eleId=t,r!==0?this.onResize=Pr(e,r):this.onResize=e,this.element=document.getElementById(this.eleId),this.element?this.startObserverResize():(this.startListenerResize(),t&&t!=="body"&&this.startDetectTimer())}startDetectTimer(){this.detectTimer=setTimeout(()=>{if(this.detectCount>this.maxDetectCount){this.clearDetectTimer();return}if(this.element=document.getElementById(this.eleId),this.element){this.clearDetectTimer(),this.startObserverResize(),this.removeResizeListener();return}this.detectCount+=1,this.startDetectTimer()},500)}clearDetectTimer(){this.detectTimer&&(clearTimeout(this.detectTimer),this.detectTimer=null),this.detectCount=0}startListenerResize(){window.addEventListener("resize",this.handleResize),this.resizeMode=It.RESIZE}startObserverResize(){this.element&&(this.resizeObserver=new ResizeObserver(()=>{this.handleResize()}),this.resizeObserver.observe(this.element),this.resizeMode=It.OBSERVER)}destroy(){this.clearDetectTimer(),this.removeResizeListener(),this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null),this.eleId="",this.element=null}removeResizeListener(){this.resizeMode===It.RESIZE&&window.removeEventListener("resize",this.handleResize)}getIsHorizontal(){const{width:t,height:e}=window.screen,r=Math.min(t,e);return Math.abs(r-t)>10}}const Qn=new Mr;class Jn{constructor(){this.waitingQueue=[],this.isRunning=!1,this.taskCompletedCB=null}onTaskCompleted(t){this.taskCompletedCB=t}addTask(t){const e=this;return new Promise((r,i)=>{e.isRunning?e.waitingQueue.push({task:t,resolve:r,reject:i}):(e.isRunning=!0,e.execute(t,r,i))})}execute(t,e,r){t().then(i=>{e(i)}).catch(i=>r(i)).finally(()=>{if(this.waitingQueue.length){const i=this.waitingQueue.shift();i&&this.execute(i.task,i.resolve,i.reject)}else this.isRunning=!1,this.taskCompletedCB&&this.taskCompletedCB()})}isTaskEnded(){return!(this.waitingQueue.length||this.isRunning)}taskLength(){return this.waitingQueue.length}clear(){this.waitingQueue=[],this.isRunning=!1}}class ts{constructor(t=!1){this.waitingQueue=[],this.isLock=t,this.taskCompletedCB=null}onTaskCompleted(t){this.taskCompletedCB=t}addTask(t){this.waitingQueue.push({task:t}),this.isLock||this.execute()}execute(t){if(t){const e=t();if(this.isLock=!e,this.isLock){this.waitingQueue.unshift({task:t});return}}if(this.waitingQueue.length){const e=this.waitingQueue.shift();e&&this.execute(e.task)}else this.taskCompletedCB&&this.taskCompletedCB()}taskLength(){return this.waitingQueue.length}clear(){this.waitingQueue=[],this.isLock=!1}}class es{constructor(){this.items=[]}enqueue(t){this.items.push(t)}dequeue(){return this.items.shift()}dequeueAllByIndex(t){return this.items=this.items.slice(0,t),this.items}pop(){return this.items.pop()}front(){return this.items[0]}last(){const t=this.size()-1;return this.items[t]}get(t){return this.items[t]}getAll(){return this.items}isEmpty(){return this.items.length===0}size(){return this.items.length}clear(){this.items=[]}map(t){return this.items.map(e=>t(e)),this}each(t){return this.items.map(e=>t(e)),this}updateOne(t){const e=this.size();for(let r=0;r<e;r++){const i=this.items[r],[s,a]=t(i);if(s&&!J.isUndefined(a)){this.items[r]=a;break}}return this}find(t){const e=this.size();let r=null;for(let i=0;i<e;i++){const s=this.items[i];if(t(s)){r=s;break}}return r}findAll(t){const e=this.size(),r=[];for(let i=0;i<e;i++){const s=this.items[i];t(s)&&r.push(s)}return r}}class rs{constructor(){this.map=new Map}get size(){return this.map.size}set(t,e){this.map.set(t,e)}get(t){return this.map.get(t)}has(t){return this.map.has(t)}delete(t){this.map.delete(t)}clear(){this.map.clear()}keys(){return this.map.keys()}values(){return this.map.values()}entries(){return this.map.entries()}getFirst(){return this.map.values().next().value}getLast(){return Array.from(this.map.values()).pop()}copy(t){t.forEach((e,r)=>{this.map.set(r,e)})}forEach(t){this.map.forEach(t)}prepend(t,e){const r=new Map([[t,e],...this.map]);this.map=r}getList(){return Array.from(this.map.values())}}class is{constructor(t){this.canvas=t||document.createElement("canvas"),this.ctx=this.canvas.getContext("2d")}getCanvas(){return this.canvas}getVideoImage(t,e){this.drawFrame(t,e);const{imageType:r="image/png",compressLevel:i=.92}=e||{},s=this.canvas.toDataURL(r,i),{width:a,height:o}=this.canvas;return{dataURL:s,width:a,height:o}}drawFrame(t,e){if(!this.ctx||!t)return this;const{isMirror:r=!1,rotate:i=0}=e||{},s=i===1||i===3,{width:a,height:o}=this.canvas;this.ctx.clearRect(0,0,a,o);const h=t.videoWidth,c=t.videoHeight;this.canvas.width=h,this.canvas.height=c;let u=-this.canvas.width/2,d=-this.canvas.height/2;s&&(this.canvas.width=c,this.canvas.height=h,u=-h/2,d=-c/2);const f=this.canvas.width/2,x=this.canvas.height/2,l=Math.PI/2*i;return this.ctx.save(),this.ctx.translate(f,x),l&&this.ctx.rotate(l),r&&this.ctx.scale(-1,1),this.ctx.drawImage(t,u,d),this.ctx.restore(),this}}var f0=(n=>(n[n.nominal=0]="nominal",n[n.fair=1]="fair",n[n.serious=2]="serious",n[n.critical=3]="critical",n))(f0||{});class ns{constructor(t){this.interval=5e3,this.pressureState={source:"cpu",state:f0.nominal,time:0},this.logger=t,this.pressureChange=this.pressureChange.bind(this),this.init()}init(){_r.isSupportDevicePressure()&&(this.observer=new PressureObserver(this.pressureChange),this.observer.observe("cpu",{interval:this.interval}))}pressureChange(t){const e=t[0];if(e){const r=e.time-this.pressureState.time>2e4;if(e.state!==this.pressureState.state||r){const{source:i,state:s,time:a}=e;this.pressureState={source:i,state:s,time:a},this.logger.log("[DevicePressure]pressure change: ",this.pressureState)}}}destroy(){this.observer&&this.observer.disconnect()}}const Ke=class Ue{static padNumber(t,e=2,r="0"){return String(t).padStart(e,r)}static formatTime(t){const{date:e=new Date,format:r=Ue.DEFAULT_DATETIME_FORMAT,dateSeparator:i="-",timeSeparator:s=":",includeMilliseconds:a=!0}=t||{},o=(E,B=2)=>this.padNumber(E,B),h=e.getFullYear(),c=o(e.getMonth()+1),u=o(e.getDate()),d=o(e.getHours()),f=o(e.getMinutes()),x=o(e.getSeconds()),l=o(e.getMilliseconds(),3);let g="";switch(r.toLowerCase()){case"yyyy-mm-dd hh:mm:ss":g=`${h}${i}${c}${i}${u} ${d}${s}${f}${s}${x}`,a&&(g+=` ${l}`);break;case"yyyy-mm-dd":g=`${h}${i}${c}${i}${u}`;break;case"hh:mm:ss":g=`${d}${s}${f}${s}${x}`,a&&(g+=` ${l}`);break;case"yyyymmddhhmmss":g=`${h}${c}${u}${d}${f}${x}`,a&&(g+=`${l}`);break;default:throw new Error(`Unsupported format: ${r}`)}return g}static getCurrentDateTime(){return this.formatTime({format:Ue.DEFAULT_DATETIME_FORMAT})}static getCurrentTime(){return this.formatTime({format:Ue.DEFAULT_TIME_FORMAT})}static diff(t){const{startTime:e,endTime:r=new Date,unit:i="days",precision:s=1}=t,a=e instanceof Date?e.getTime():e,h=(r instanceof Date?r.getTime():r)-a;let c;switch(i){case"milliseconds":c=h;break;case"seconds":c=h/1e3;break;case"minutes":c=h/(1e3*60);break;case"hours":c=h/(1e3*60*60);break;case"days":default:c=h/(1e3*60*60*24);break}return Number(c.toFixed(s))}static formatTimestamp(t,e="YYYY-MM-DD HH:mm:ss"){const r=new Date(t);return this.formatTime({date:r,format:e})}static isValidDate(t){return t instanceof Date&&!isNaN(t.getTime())}};Ke.DEFAULT_DATETIME_FORMAT="YYYY-MM-DD HH:mm:ss";Ke.DEFAULT_DATE_FORMAT="YYYY-MM-DD";Ke.DEFAULT_TIME_FORMAT="HH:mm:ss";let ss=Ke;class Hr{constructor(){this.browser=null,this.eles=new Map,this.isInit=!1,this.fullscreenChangeCallback=this.fullscreenChangeCallback.bind(this)}getBrowser(){if(!this.browser){const t=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenchange","fullscreenEnabled"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitfullscreenchange","webkitFullscreenEnabled","webkitCancelFullScreen"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozfullscreenchange","mozFullScreenEnabled"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","MSFullscreenChange","msFullscreenEnabled"]],e=t.length;let r;const i={};for(let s=0;s<e;s++)if(r=t[s],r&&r[1]in document){r.forEach((a,o)=>{i[t[0][o]]=a});break}this.browser=i}return this.browser}is(){const t=this.getBrowser();return!!document[t.fullscreenElement]}ele(){const t=this.getBrowser();return document[t.fullscreenElement]}getEles(){return this.eles}init(t,e){this.eles.set(t,{ele:t,cb:e,isFullScreen:!1}),this.isInit||this.initEventListener()}fullscreenChangeCallback(t){const e=this.ele(),r=t.target;if(e===null)this.eles.forEach(i=>{i.isFullScreen=!1,i.cb(i)});else if(e!==null&&r!==e){const i=t.target;if(this.eles.has(i)){const s=this.eles.get(i);s.isFullScreen=!1,s.cb(s)}}else if(e!==null){const i=this.eles.get(r);i.isFullScreen=!0,this.eles.set(r,i),i.cb(i)}}initEventListener(){const t=this.getBrowser();document.addEventListener(t.fullscreenchange,this.fullscreenChangeCallback)}removeEventListener(){const t=this.getBrowser();document.removeEventListener(t.fullscreenchange,this.fullscreenChangeCallback)}clear(t){if(this.eles.has(t)){const e=this.eles.get(t);e.isFullScreen=!1,this.eles.size<=1&&(this.removeEventListener(),this.isInit=!1),this.eles.delete(t)}}clearAll(){this.removeEventListener(),this.eles=new Map,this.isInit=!1}request(t){if(this.eles.has(t)){const e=this.eles.get(t),r=this.getBrowser();e.ele[r.requestFullscreen]().catch(()=>{})}else this.init(t),this.request(t)}exit(t){if(this.eles.has(t)&&this.is()){const e=this.getBrowser();document[e.exitFullscreen]()}}}const os=new Hr;class At{constructor(t){this.initialWidth=0,this.initialHeight=0,this.initialX=0,this.initialY=0,this.scaleRatio=.05,this.resizeObserver=null;const{maxSize:e=3,minSize:r=.5}=t||{};this.maxSize=e,this.minSize=r,this.dragging=!1,this.scale=1,this.originScale=1,this.dragOffset={x:0,y:0},this.innerDOM=null,this.outerDOM=null,this.callbacks={},this.enableDrag=!0,this.enableZoom=!0,this.pageX=0,this.pageY=0,this.pageX2=0,this.pageY2=0,this.onResizeChange=Ir(this.getInitialRect,500,500),this.onMouseMove=this.handleMouseMove.bind(this),this.onMouseDown=this.handleMouseDown.bind(this),this.onMouseUp=this.handleMouseUp.bind(this),this.onMouseWheel=this.handleMouseWheel.bind(this),this.onTouchStart=this.handleTouchStart.bind(this),this.onMouseLeave=this.handleMouseLeave.bind(this)}static getInstance(t){return At.instance||(At.instance=new At(t)),At.instance}init(t,e,r){var i,s;return this.innerDOM=t,this.outerDOM=e,this.enableDrag=(i=r==null?void 0:r.enableDrag)!=null?i:this.enableDrag,this.enableZoom=(s=r==null?void 0:r.enableZoom)!=null?s:this.enableZoom,this.getInitialRect(),this.enableDrag&&(this.outerDOM.addEventListener("mousedown",this.onMouseDown),this.outerDOM.addEventListener("mousemove",this.onMouseMove),this.outerDOM.addEventListener("mouseup",this.onMouseUp),this.outerDOM.addEventListener("mouseleave",this.onMouseLeave),this.outerDOM.addEventListener("wheel",this.onMouseWheel),this.outerDOM.addEventListener("touchstart",this.onTouchStart),this.outerDOM.addEventListener("touchmove",this.onMouseMove),this.outerDOM.addEventListener("touchend",this.onMouseUp)),this.resizeObserver=new ResizeObserver(()=>this.handleResize()),this.resizeObserver.observe(t),this.callbacks={onScaleChange:r==null?void 0:r.onScaleChange,onDragOffsetChange:r==null?void 0:r.onDragOffsetChange},this.scale=(r==null?void 0:r.scale)||1,this.dragOffset=(r==null?void 0:r.dragOffset)||{x:0,y:0},this}handleResize(){this.onResizeChange()}destroy(){var t;this.dragging=!1,this.scale=1,this.dragOffset={x:0,y:0},this.pageX=0,this.pageY=0,this.pageX2=0,this.pageY2=0,this.outerDOM&&this.innerDOM&&(this.outerDOM.removeEventListener("mousedown",this.onMouseDown),this.outerDOM.removeEventListener("mousemove",this.onMouseMove),this.outerDOM.removeEventListener("mouseup",this.onMouseUp),this.outerDOM.removeEventListener("mouseleave",this.onMouseLeave),this.outerDOM.removeEventListener("wheel",this.onMouseWheel),this.outerDOM.removeEventListener("touchstart",this.onTouchStart),this.outerDOM.removeEventListener("touchmove",this.onMouseMove),this.outerDOM.removeEventListener("touchend",this.onMouseUp),(t=this.resizeObserver)==null||t.disconnect()),this.innerDOM=null,this.outerDOM=null,this.callbacks={},this.enableDrag=!0,this.enableZoom=!0}handleMouseDown(t){this.scale!==1&&(this.dragging=!0);const{x:e,y:r}=this.dragOffset;this.pageX=t.clientX-e,this.pageY=t.clientY-r}handleTouchStart(t){const e=t.touches,r=e[0],i=e[1];this.dragging=!0,i?(this.pageX=r.pageX,this.pageY=r.pageY,this.pageX2=i.pageX,this.pageY2=i.pageY):(this.pageX=r.pageX-this.dragOffset.x,this.pageY=r.pageY-this.dragOffset.y),this.originScale=this.scale}handleMouseMove(t){if(!this.dragging)return;let e=t;if(t.touches){const r=t.touches;e=r[0];const i=r[1];if(i){const s=(h,c)=>Math.hypot(c.x-h.x,c.y-h.y),a=s({x:e.pageX,y:e.pageY},{x:i.pageX,y:i.pageY})/s({x:this.pageX,y:this.pageY},{x:this.pageX2,y:this.pageY2}),o=this.originScale*a;console.log("mouse move by events2::::",o),this.handleZoomScale(o)}}else if(this.dragging){const r=e.pageX-this.pageX,i=e.pageY-this.pageY;this.onDrag(r,i)}}handleMouseUp(){this.dragging=!1,this.pageX=0,this.pageY=0,this.pageX2=0,this.pageY2=0}getInitialRect(){if(!this.innerDOM||!this.outerDOM)return;const t=this.innerDOM.getBoundingClientRect(),e=this.outerDOM.getBoundingClientRect();return window.innerDOM=this.innerDOM,this.initialWidth=t.width/this.scale,this.initialHeight=t.height/this.scale,this.initialX=e.left,this.initialY=e.top,{width:this.initialWidth,height:this.initialHeight,x:this.initialX,y:this.initialY}}handleMouseWheel(t){var e,r,i,s;t.preventDefault();const{deltaX:a,deltaY:o,ctrlKey:h}=t;if(!o)return;const c=!h&&Math.abs(o)>30&&Math.abs(a)<3,u=h||c;let d=0;if(u){d=o<0?this.scaleRatio:-this.scaleRatio;const f=1+d;let x=this.scale*f;x=+Math.min(Math.max(this.minSize,x),this.maxSize).toFixed(2);const g=x/this.scale-1;this.scale=x;const E={x:g*this.initialWidth/2,y:g*this.initialHeight/2},B={x:t.clientX-this.initialX,y:t.clientY-this.initialY};let{x:v,y:p}=this.dragOffset;v-=g*(B.x-v)-E.x,p-=g*(B.y-p)-E.y,this.dragOffset={x:v,y:p},(r=(e=this.callbacks).onScaleChange)==null||r.call(e,this.scale),(s=(i=this.callbacks).onDragOffsetChange)==null||s.call(i,this.dragOffset)}else{const f=this.dragOffset.x-a,x=this.dragOffset.y-o;this.onDrag(f,x)}}updateZoomScale(t){var e,r,i,s;this.scale=t,this.dragOffset={x:0,y:0},(r=(e=this.callbacks).onScaleChange)==null||r.call(e,this.scale),(s=(i=this.callbacks).onDragOffsetChange)==null||s.call(i,this.dragOffset)}onDrag(t,e){var r,i;const{transX:s,transY:a}=this.calculateDragBoundary(this.innerDOM,this.outerDOM,t,e,this.scale);s!=null&&(t=s),a!=null&&(e=a),this.dragOffset={x:t,y:e},(i=(r=this.callbacks).onDragOffsetChange)==null||i.call(r,this.dragOffset)}calculateDragBoundary(t,e,r,i,s){const{clientWidth:a,clientHeight:o}=t||{},{clientWidth:h,clientHeight:c}=e||{};let u=r,d=i;const f=a*s,x=o*s,l=Math.max(0,(f-h)/2),g=Math.min(0,(h-f)/2),E=Math.max(0,(x-c)/2),B=Math.min(0,(c-x)/2);return f>h?u=Math.max(Math.min(u,l),g):u=Math.max(Math.min(u,h/2-f/2),-h/2+f/2),x>c?d=Math.max(Math.min(d,E),B):d=Math.max(Math.min(d,c/2-x/2),-c/2+x/2),{transX:u,transY:d}}handleZoomScale(t){var e,r,i,s;t=+Math.min(Math.max(this.minSize,t),this.maxSize).toFixed(2),t!==this.scale&&(this.scale=t,this.scale===1&&(this.dragOffset={x:0,y:0}),(r=(e=this.callbacks).onScaleChange)==null||r.call(e,this.scale),(s=(i=this.callbacks).onDragOffsetChange)==null||s.call(i,this.dragOffset))}handleMouseLeave(){this.dragging&&(this.dragging=!1,this.pageX=0,this.pageY=0,this.pageX2=0,this.pageY2=0)}}const as=At.getInstance();var e0=(n,t,e)=>new Promise((r,i)=>{var s=h=>{try{o(e.next(h))}catch(c){i(c)}},a=h=>{try{o(e.throw(h))}catch(c){i(c)}},o=h=>h.done?r(h.value):Promise.resolve(h.value).then(s,a);o((e=e.apply(n,t)).next())});const Lr=class Xt{static playPCM(t){return e0(this,arguments,function*(e,r=Xt.DEFAULT_SAMPLE_RATE){if(e.length===0)throw new Error("没有可播放的PCM数据");try{const i=new AudioContext,s=i.createBuffer(1,e.length,r);s.getChannelData(0).set(e);const a=i.createBufferSource();return a.buffer=s,a.connect(i.destination),a.start(),i}catch(i){throw new Error(`播放PCM数据失败: ${i.message}`)}})}static downloadPCMToFile(t,e="recorded_audio.wav"){return e0(this,null,function*(){if(t.length===0)throw new Error("没有可用的PCM数据");const r=Xt.encodePCMToWAV(t);Xt.downloadAudioFile(r,e)})}static encodePCMToWAV(t,e=Xt.DEFAULT_SAMPLE_RATE){if(t.length===0)throw new Error("PCM数据为空");const r=new ArrayBuffer(44+t.length*2),i=new DataView(r),s=(o,h,c)=>{for(let u=0;u<c.length;u++)o.setUint8(h+u,c.charCodeAt(u))},a=(o,h,c)=>{for(let u=0;u<c.length;u++,h+=2){const d=Math.max(-1,Math.min(1,c[u]));o.setInt16(h,d<0?d*32768:d*32767,!0)}};return s(i,0,"RIFF"),i.setUint32(4,36+t.length*2,!0),s(i,8,"WAVE"),s(i,12,"fmt "),i.setUint32(16,16,!0),i.setUint16(20,1,!0),i.setUint16(22,1,!0),i.setUint32(24,e,!0),i.setUint32(28,e*2,!0),i.setUint16(32,2,!0),i.setUint16(34,16,!0),s(i,36,"data"),i.setUint32(40,t.length*2,!0),a(i,44,t),new Blob([i],{type:"audio/wav"})}static downloadAudioFile(t,e){const r=URL.createObjectURL(t),i=document.createElement("a");i.style.display="none",i.href=r,i.download=e,document.body.appendChild(i),i.click(),URL.revokeObjectURL(r),document.body.removeChild(i)}static closeAudioContext(t){return e0(this,null,function*(){t&&t.state!=="closed"&&(yield t.close())})}};Lr.DEFAULT_SAMPLE_RATE=16e3;let cs=Lr;const hs=n=>{n=n.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");const e=new RegExp("[\\?&]"+n+"=([^&#]*)").exec(window.location.search);return e===null?"":decodeURIComponent(e[1])},us=n=>Object.entries(n).map(([t,e])=>`${t}=${e}`).join("&"),fs=n=>{try{const{origin:t,pathname:e}=new URL(n);return{baseUrl:t,pathname:e}}catch(t){return{}}};var xs="0123456789abcdefghijklmnopqrstuvwxyz";function xt(n){return xs.charAt(n)}function ls(n,t){return n&t}function ee(n,t){return n|t}function vr(n,t){return n^t}function pr(n,t){return n&~t}function ds(n){if(n==0)return-1;var t=0;return(n&65535)==0&&(n>>=16,t+=16),(n&255)==0&&(n>>=8,t+=8),(n&15)==0&&(n>>=4,t+=4),(n&3)==0&&(n>>=2,t+=2),(n&1)==0&&++t,t}function vs(n){for(var t=0;n!=0;)n&=n-1,++t;return t}var Ot="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Vr="=";function Yt(n){var t,e,r="";for(t=0;t+3<=n.length;t+=3)e=parseInt(n.substring(t,t+3),16),r+=Ot.charAt(e>>6)+Ot.charAt(e&63);for(t+1==n.length?(e=parseInt(n.substring(t,t+1),16),r+=Ot.charAt(e<<2)):t+2==n.length&&(e=parseInt(n.substring(t,t+2),16),r+=Ot.charAt(e>>2)+Ot.charAt((e&3)<<4));(r.length&3)>0;)r+=Vr;return r}function gr(n){var t="",e,r=0,i=0;for(e=0;e<n.length&&n.charAt(e)!=Vr;++e){var s=Ot.indexOf(n.charAt(e));s<0||(r==0?(t+=xt(s>>2),i=s&3,r=1):r==1?(t+=xt(i<<2|s>>4),i=s&15,r=2):r==2?(t+=xt(i),t+=xt(s>>2),i=s&3,r=3):(t+=xt(i<<2|s>>4),t+=xt(s&15),r=0))}return r==1&&(t+=xt(i<<2)),t}var Rt,ps={decode:function(n){var t;if(Rt===void 0){var e="0123456789ABCDEF",r=` \f
\r	 \u2028\u2029`;for(Rt={},t=0;t<16;++t)Rt[e.charAt(t)]=t;for(e=e.toLowerCase(),t=10;t<16;++t)Rt[e.charAt(t)]=t;for(t=0;t<r.length;++t)Rt[r.charAt(t)]=-1}var i=[],s=0,a=0;for(t=0;t<n.length;++t){var o=n.charAt(t);if(o=="=")break;if(o=Rt[o],o!=-1){if(o===void 0)throw new Error("Illegal character at offset "+t);s|=o,++a>=2?(i[i.length]=s,s=0,a=0):s<<=4}}if(a)throw new Error("Hex encoding incomplete: 4 bits missing");return i}},Ct,o0={decode:function(n){var t;if(Ct===void 0){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=`= \f
\r	 \u2028\u2029`;for(Ct=Object.create(null),t=0;t<64;++t)Ct[e.charAt(t)]=t;for(Ct["-"]=62,Ct._=63,t=0;t<r.length;++t)Ct[r.charAt(t)]=-1}var i=[],s=0,a=0;for(t=0;t<n.length;++t){var o=n.charAt(t);if(o=="=")break;if(o=Ct[o],o!=-1){if(o===void 0)throw new Error("Illegal character at offset "+t);s|=o,++a>=4?(i[i.length]=s>>16,i[i.length]=s>>8&255,i[i.length]=s&255,s=0,a=0):s<<=6}}switch(a){case 1:throw new Error("Base64 encoding incomplete: at least 2 bits missing");case 2:i[i.length]=s>>10;break;case 3:i[i.length]=s>>16,i[i.length]=s>>8&255;break}return i},re:/-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/,unarmor:function(n){var t=o0.re.exec(n);if(t)if(t[1])n=t[1];else if(t[2])n=t[2];else throw new Error("RegExp out of sync");return o0.decode(n)}},kt=1e13,jt=function(){function n(t){this.buf=[+t||0]}return n.prototype.mulAdd=function(t,e){var r=this.buf,i=r.length,s,a;for(s=0;s<i;++s)a=r[s]*t+e,a<kt?e=0:(e=0|a/kt,a-=e*kt),r[s]=a;e>0&&(r[s]=e)},n.prototype.sub=function(t){var e=this.buf,r=e.length,i,s;for(i=0;i<r;++i)s=e[i]-t,s<0?(s+=kt,t=1):t=0,e[i]=s;for(;e[e.length-1]===0;)e.pop()},n.prototype.toString=function(t){if((t||10)!=10)throw new Error("only base 10 is supported");for(var e=this.buf,r=e[e.length-1].toString(),i=e.length-2;i>=0;--i)r+=(kt+e[i]).toString().substring(1);return r},n.prototype.valueOf=function(){for(var t=this.buf,e=0,r=t.length-1;r>=0;--r)e=e*kt+t[r];return e},n.prototype.simplify=function(){var t=this.buf;return t.length==1?t[0]:this},n}(),zr="…",gs=/^(\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/,Es=/^(\d\d\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/;function Mt(n,t){return n.length>t&&(n=n.substring(0,t)+zr),n}var r0=function(){function n(t,e){this.hexDigits="0123456789ABCDEF",t instanceof n?(this.enc=t.enc,this.pos=t.pos):(this.enc=t,this.pos=e)}return n.prototype.get=function(t){if(t===void 0&&(t=this.pos++),t>=this.enc.length)throw new Error("Requesting byte offset ".concat(t," on a stream of length ").concat(this.enc.length));return typeof this.enc=="string"?this.enc.charCodeAt(t):this.enc[t]},n.prototype.hexByte=function(t){return this.hexDigits.charAt(t>>4&15)+this.hexDigits.charAt(t&15)},n.prototype.hexDump=function(t,e,r){for(var i="",s=t;s<e;++s)if(i+=this.hexByte(this.get(s)),r!==!0)switch(s&15){case 7:i+="  ";break;case 15:i+=`
`;break;default:i+=" "}return i},n.prototype.isASCII=function(t,e){for(var r=t;r<e;++r){var i=this.get(r);if(i<32||i>176)return!1}return!0},n.prototype.parseStringISO=function(t,e){for(var r="",i=t;i<e;++i)r+=String.fromCharCode(this.get(i));return r},n.prototype.parseStringUTF=function(t,e){for(var r="",i=t;i<e;){var s=this.get(i++);s<128?r+=String.fromCharCode(s):s>191&&s<224?r+=String.fromCharCode((s&31)<<6|this.get(i++)&63):r+=String.fromCharCode((s&15)<<12|(this.get(i++)&63)<<6|this.get(i++)&63)}return r},n.prototype.parseStringBMP=function(t,e){for(var r="",i,s,a=t;a<e;)i=this.get(a++),s=this.get(a++),r+=String.fromCharCode(i<<8|s);return r},n.prototype.parseTime=function(t,e,r){var i=this.parseStringISO(t,e),s=(r?gs:Es).exec(i);return s?(r&&(s[1]=+s[1],s[1]+=+s[1]<70?2e3:1900),i=s[1]+"-"+s[2]+"-"+s[3]+" "+s[4],s[5]&&(i+=":"+s[5],s[6]&&(i+=":"+s[6],s[7]&&(i+="."+s[7]))),s[8]&&(i+=" UTC",s[8]!="Z"&&(i+=s[8],s[9]&&(i+=":"+s[9]))),i):"Unrecognized time: "+i},n.prototype.parseInteger=function(t,e){for(var r=this.get(t),i=r>127,s=i?255:0,a,o="";r==s&&++t<e;)r=this.get(t);if(a=e-t,a===0)return i?-1:0;if(a>4){for(o=r,a<<=3;((+o^s)&128)==0;)o=+o<<1,--a;o="("+a+` bit)
`}i&&(r=r-256);for(var h=new jt(r),c=t+1;c<e;++c)h.mulAdd(256,this.get(c));return o+h.toString()},n.prototype.parseBitString=function(t,e,r){for(var i=this.get(t),s=(e-t-1<<3)-i,a="("+s+` bit)
`,o="",h=t+1;h<e;++h){for(var c=this.get(h),u=h==e-1?i:0,d=7;d>=u;--d)o+=c>>d&1?"1":"0";if(o.length>r)return a+Mt(o,r)}return a+o},n.prototype.parseOctetString=function(t,e,r){if(this.isASCII(t,e))return Mt(this.parseStringISO(t,e),r);var i=e-t,s="("+i+` byte)
`;r/=2,i>r&&(e=t+r);for(var a=t;a<e;++a)s+=this.hexByte(this.get(a));return i>r&&(s+=zr),s},n.prototype.parseOID=function(t,e,r){for(var i="",s=new jt,a=0,o=t;o<e;++o){var h=this.get(o);if(s.mulAdd(128,h&127),a+=7,!(h&128)){if(i==="")if(s=s.simplify(),s instanceof jt)s.sub(80),i="2."+s.toString();else{var c=s<80?s<40?0:1:2;i=c+"."+(s-c*40)}else i+="."+s.toString();if(i.length>r)return Mt(i,r);s=new jt,a=0}}return a>0&&(i+=".incomplete"),i},n}(),ys=function(){function n(t,e,r,i,s){if(!(i instanceof Er))throw new Error("Invalid tag value.");this.stream=t,this.header=e,this.length=r,this.tag=i,this.sub=s}return n.prototype.typeName=function(){switch(this.tag.tagClass){case 0:switch(this.tag.tagNumber){case 0:return"EOC";case 1:return"BOOLEAN";case 2:return"INTEGER";case 3:return"BIT_STRING";case 4:return"OCTET_STRING";case 5:return"NULL";case 6:return"OBJECT_IDENTIFIER";case 7:return"ObjectDescriptor";case 8:return"EXTERNAL";case 9:return"REAL";case 10:return"ENUMERATED";case 11:return"EMBEDDED_PDV";case 12:return"UTF8String";case 16:return"SEQUENCE";case 17:return"SET";case 18:return"NumericString";case 19:return"PrintableString";case 20:return"TeletexString";case 21:return"VideotexString";case 22:return"IA5String";case 23:return"UTCTime";case 24:return"GeneralizedTime";case 25:return"GraphicString";case 26:return"VisibleString";case 27:return"GeneralString";case 28:return"UniversalString";case 30:return"BMPString"}return"Universal_"+this.tag.tagNumber.toString();case 1:return"Application_"+this.tag.tagNumber.toString();case 2:return"["+this.tag.tagNumber.toString()+"]";case 3:return"Private_"+this.tag.tagNumber.toString()}},n.prototype.content=function(t){if(this.tag===void 0)return null;t===void 0&&(t=1/0);var e=this.posContent(),r=Math.abs(this.length);if(!this.tag.isUniversal())return this.sub!==null?"("+this.sub.length+" elem)":this.stream.parseOctetString(e,e+r,t);switch(this.tag.tagNumber){case 1:return this.stream.get(e)===0?"false":"true";case 2:return this.stream.parseInteger(e,e+r);case 3:return this.sub?"("+this.sub.length+" elem)":this.stream.parseBitString(e,e+r,t);case 4:return this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(e,e+r,t);case 6:return this.stream.parseOID(e,e+r,t);case 16:case 17:return this.sub!==null?"("+this.sub.length+" elem)":"(no elem)";case 12:return Mt(this.stream.parseStringUTF(e,e+r),t);case 18:case 19:case 20:case 21:case 22:case 26:return Mt(this.stream.parseStringISO(e,e+r),t);case 30:return Mt(this.stream.parseStringBMP(e,e+r),t);case 23:case 24:return this.stream.parseTime(e,e+r,this.tag.tagNumber==23)}return null},n.prototype.toString=function(){return this.typeName()+"@"+this.stream.pos+"[header:"+this.header+",length:"+this.length+",sub:"+(this.sub===null?"null":this.sub.length)+"]"},n.prototype.toPrettyString=function(t){t===void 0&&(t="");var e=t+this.typeName()+" @"+this.stream.pos;if(this.length>=0&&(e+="+"),e+=this.length,this.tag.tagConstructed?e+=" (constructed)":this.tag.isUniversal()&&(this.tag.tagNumber==3||this.tag.tagNumber==4)&&this.sub!==null&&(e+=" (encapsulates)"),e+=`
`,this.sub!==null){t+="  ";for(var r=0,i=this.sub.length;r<i;++r)e+=this.sub[r].toPrettyString(t)}return e},n.prototype.posStart=function(){return this.stream.pos},n.prototype.posContent=function(){return this.stream.pos+this.header},n.prototype.posEnd=function(){return this.stream.pos+this.header+Math.abs(this.length)},n.prototype.toHexString=function(){return this.stream.hexDump(this.posStart(),this.posEnd(),!0)},n.decodeLength=function(t){var e=t.get(),r=e&127;if(r==e)return r;if(r>6)throw new Error("Length over 48 bits not supported at position "+(t.pos-1));if(r===0)return null;e=0;for(var i=0;i<r;++i)e=e*256+t.get();return e},n.prototype.getHexStringValue=function(){var t=this.toHexString(),e=this.header*2,r=this.length*2;return t.substring(e,e+r)},n.decode=function(t){var e;t instanceof r0?e=t:e=new r0(t,0);var r=new r0(e),i=new Er(e),s=n.decodeLength(e),a=e.pos,o=a-r.pos,h=null,c=function(){var d=[];if(s!==null){for(var f=a+s;e.pos<f;)d[d.length]=n.decode(e);if(e.pos!=f)throw new Error("Content size is not correct for container starting at offset "+a)}else try{for(;;){var x=n.decode(e);if(x.tag.isEOC())break;d[d.length]=x}s=a-e.pos}catch(l){throw new Error("Exception while decoding undefined length content: "+l)}return d};if(i.tagConstructed)h=c();else if(i.isUniversal()&&(i.tagNumber==3||i.tagNumber==4))try{if(i.tagNumber==3&&e.get()!=0)throw new Error("BIT STRINGs with unused bits cannot encapsulate.");h=c();for(var u=0;u<h.length;++u)if(h[u].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch(d){h=null}if(h===null){if(s===null)throw new Error("We can't skip over an invalid tag with undefined length at offset "+a);e.pos=a+Math.abs(s)}return new n(r,o,s,i,h)},n}(),Er=function(){function n(t){var e=t.get();if(this.tagClass=e>>6,this.tagConstructed=(e&32)!==0,this.tagNumber=e&31,this.tagNumber==31){var r=new jt;do e=t.get(),r.mulAdd(128,e&127);while(e&128);this.tagNumber=r.simplify()}}return n.prototype.isUniversal=function(){return this.tagClass===0},n.prototype.isEOC=function(){return this.tagClass===0&&this.tagNumber===0},n}(),mt,ms=0xdeadbeefcafe,yr=(ms&16777215)==15715070,tt=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],Bs=(1<<26)/tt[tt.length-1],H=function(){function n(t,e,r){t!=null&&(typeof t=="number"?this.fromNumber(t,e,r):e==null&&typeof t!="string"?this.fromString(t,256):this.fromString(t,e))}return n.prototype.toString=function(t){if(this.s<0)return"-"+this.negate().toString(t);var e;if(t==16)e=4;else if(t==8)e=3;else if(t==2)e=1;else if(t==32)e=5;else if(t==4)e=2;else return this.toRadix(t);var r=(1<<e)-1,i,s=!1,a="",o=this.t,h=this.DB-o*this.DB%e;if(o-- >0)for(h<this.DB&&(i=this[o]>>h)>0&&(s=!0,a=xt(i));o>=0;)h<e?(i=(this[o]&(1<<h)-1)<<e-h,i|=this[--o]>>(h+=this.DB-e)):(i=this[o]>>(h-=e)&r,h<=0&&(h+=this.DB,--o)),i>0&&(s=!0),s&&(a+=xt(i));return s?a:"0"},n.prototype.negate=function(){var t=z();return n.ZERO.subTo(this,t),t},n.prototype.abs=function(){return this.s<0?this.negate():this},n.prototype.compareTo=function(t){var e=this.s-t.s;if(e!=0)return e;var r=this.t;if(e=r-t.t,e!=0)return this.s<0?-e:e;for(;--r>=0;)if((e=this[r]-t[r])!=0)return e;return 0},n.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+re(this[this.t-1]^this.s&this.DM)},n.prototype.mod=function(t){var e=z();return this.abs().divRemTo(t,null,e),this.s<0&&e.compareTo(n.ZERO)>0&&t.subTo(e,e),e},n.prototype.modPowInt=function(t,e){var r;return t<256||e.isEven()?r=new mr(e):r=new Br(e),this.exp(t,r)},n.prototype.clone=function(){var t=z();return this.copyTo(t),t},n.prototype.intValue=function(){if(this.s<0){if(this.t==1)return this[0]-this.DV;if(this.t==0)return-1}else{if(this.t==1)return this[0];if(this.t==0)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},n.prototype.byteValue=function(){return this.t==0?this.s:this[0]<<24>>24},n.prototype.shortValue=function(){return this.t==0?this.s:this[0]<<16>>16},n.prototype.signum=function(){return this.s<0?-1:this.t<=0||this.t==1&&this[0]<=0?0:1},n.prototype.toByteArray=function(){var t=this.t,e=[];e[0]=this.s;var r=this.DB-t*this.DB%8,i,s=0;if(t-- >0)for(r<this.DB&&(i=this[t]>>r)!=(this.s&this.DM)>>r&&(e[s++]=i|this.s<<this.DB-r);t>=0;)r<8?(i=(this[t]&(1<<r)-1)<<8-r,i|=this[--t]>>(r+=this.DB-8)):(i=this[t]>>(r-=8)&255,r<=0&&(r+=this.DB,--t)),(i&128)!=0&&(i|=-256),s==0&&(this.s&128)!=(i&128)&&++s,(s>0||i!=this.s)&&(e[s++]=i);return e},n.prototype.equals=function(t){return this.compareTo(t)==0},n.prototype.min=function(t){return this.compareTo(t)<0?this:t},n.prototype.max=function(t){return this.compareTo(t)>0?this:t},n.prototype.and=function(t){var e=z();return this.bitwiseTo(t,ls,e),e},n.prototype.or=function(t){var e=z();return this.bitwiseTo(t,ee,e),e},n.prototype.xor=function(t){var e=z();return this.bitwiseTo(t,vr,e),e},n.prototype.andNot=function(t){var e=z();return this.bitwiseTo(t,pr,e),e},n.prototype.not=function(){for(var t=z(),e=0;e<this.t;++e)t[e]=this.DM&~this[e];return t.t=this.t,t.s=~this.s,t},n.prototype.shiftLeft=function(t){var e=z();return t<0?this.rShiftTo(-t,e):this.lShiftTo(t,e),e},n.prototype.shiftRight=function(t){var e=z();return t<0?this.lShiftTo(-t,e):this.rShiftTo(t,e),e},n.prototype.getLowestSetBit=function(){for(var t=0;t<this.t;++t)if(this[t]!=0)return t*this.DB+ds(this[t]);return this.s<0?this.t*this.DB:-1},n.prototype.bitCount=function(){for(var t=0,e=this.s&this.DM,r=0;r<this.t;++r)t+=vs(this[r]^e);return t},n.prototype.testBit=function(t){var e=Math.floor(t/this.DB);return e>=this.t?this.s!=0:(this[e]&1<<t%this.DB)!=0},n.prototype.setBit=function(t){return this.changeBit(t,ee)},n.prototype.clearBit=function(t){return this.changeBit(t,pr)},n.prototype.flipBit=function(t){return this.changeBit(t,vr)},n.prototype.add=function(t){var e=z();return this.addTo(t,e),e},n.prototype.subtract=function(t){var e=z();return this.subTo(t,e),e},n.prototype.multiply=function(t){var e=z();return this.multiplyTo(t,e),e},n.prototype.divide=function(t){var e=z();return this.divRemTo(t,e,null),e},n.prototype.remainder=function(t){var e=z();return this.divRemTo(t,null,e),e},n.prototype.divideAndRemainder=function(t){var e=z(),r=z();return this.divRemTo(t,e,r),[e,r]},n.prototype.modPow=function(t,e){var r=t.bitLength(),i,s=gt(1),a;if(r<=0)return s;r<18?i=1:r<48?i=3:r<144?i=4:r<768?i=5:i=6,r<8?a=new mr(e):e.isEven()?a=new Cs(e):a=new Br(e);var o=[],h=3,c=i-1,u=(1<<i)-1;if(o[1]=a.convert(this),i>1){var d=z();for(a.sqrTo(o[1],d);h<=u;)o[h]=z(),a.mulTo(d,o[h-2],o[h]),h+=2}var f=t.t-1,x,l=!0,g=z(),E;for(r=re(t[f])-1;f>=0;){for(r>=c?x=t[f]>>r-c&u:(x=(t[f]&(1<<r+1)-1)<<c-r,f>0&&(x|=t[f-1]>>this.DB+r-c)),h=i;(x&1)==0;)x>>=1,--h;if((r-=h)<0&&(r+=this.DB,--f),l)o[x].copyTo(s),l=!1;else{for(;h>1;)a.sqrTo(s,g),a.sqrTo(g,s),h-=2;h>0?a.sqrTo(s,g):(E=s,s=g,g=E),a.mulTo(g,o[x],s)}for(;f>=0&&(t[f]&1<<r)==0;)a.sqrTo(s,g),E=s,s=g,g=E,--r<0&&(r=this.DB-1,--f)}return a.revert(s)},n.prototype.modInverse=function(t){var e=t.isEven();if(this.isEven()&&e||t.signum()==0)return n.ZERO;for(var r=t.clone(),i=this.clone(),s=gt(1),a=gt(0),o=gt(0),h=gt(1);r.signum()!=0;){for(;r.isEven();)r.rShiftTo(1,r),e?((!s.isEven()||!a.isEven())&&(s.addTo(this,s),a.subTo(t,a)),s.rShiftTo(1,s)):a.isEven()||a.subTo(t,a),a.rShiftTo(1,a);for(;i.isEven();)i.rShiftTo(1,i),e?((!o.isEven()||!h.isEven())&&(o.addTo(this,o),h.subTo(t,h)),o.rShiftTo(1,o)):h.isEven()||h.subTo(t,h),h.rShiftTo(1,h);r.compareTo(i)>=0?(r.subTo(i,r),e&&s.subTo(o,s),a.subTo(h,a)):(i.subTo(r,i),e&&o.subTo(s,o),h.subTo(a,h))}if(i.compareTo(n.ONE)!=0)return n.ZERO;if(h.compareTo(t)>=0)return h.subtract(t);if(h.signum()<0)h.addTo(t,h);else return h;return h.signum()<0?h.add(t):h},n.prototype.pow=function(t){return this.exp(t,new Ds)},n.prototype.gcd=function(t){var e=this.s<0?this.negate():this.clone(),r=t.s<0?t.negate():t.clone();if(e.compareTo(r)<0){var i=e;e=r,r=i}var s=e.getLowestSetBit(),a=r.getLowestSetBit();if(a<0)return e;for(s<a&&(a=s),a>0&&(e.rShiftTo(a,e),r.rShiftTo(a,r));e.signum()>0;)(s=e.getLowestSetBit())>0&&e.rShiftTo(s,e),(s=r.getLowestSetBit())>0&&r.rShiftTo(s,r),e.compareTo(r)>=0?(e.subTo(r,e),e.rShiftTo(1,e)):(r.subTo(e,r),r.rShiftTo(1,r));return a>0&&r.lShiftTo(a,r),r},n.prototype.isProbablePrime=function(t){var e,r=this.abs();if(r.t==1&&r[0]<=tt[tt.length-1]){for(e=0;e<tt.length;++e)if(r[0]==tt[e])return!0;return!1}if(r.isEven())return!1;for(e=1;e<tt.length;){for(var i=tt[e],s=e+1;s<tt.length&&i<Bs;)i*=tt[s++];for(i=r.modInt(i);e<s;)if(i%tt[e++]==0)return!1}return r.millerRabin(t)},n.prototype.copyTo=function(t){for(var e=this.t-1;e>=0;--e)t[e]=this[e];t.t=this.t,t.s=this.s},n.prototype.fromInt=function(t){this.t=1,this.s=t<0?-1:0,t>0?this[0]=t:t<-1?this[0]=t+this.DV:this.t=0},n.prototype.fromString=function(t,e){var r;if(e==16)r=4;else if(e==8)r=3;else if(e==256)r=8;else if(e==2)r=1;else if(e==32)r=5;else if(e==4)r=2;else{this.fromRadix(t,e);return}this.t=0,this.s=0;for(var i=t.length,s=!1,a=0;--i>=0;){var o=r==8?+t[i]&255:Cr(t,i);if(o<0){t.charAt(i)=="-"&&(s=!0);continue}s=!1,a==0?this[this.t++]=o:a+r>this.DB?(this[this.t-1]|=(o&(1<<this.DB-a)-1)<<a,this[this.t++]=o>>this.DB-a):this[this.t-1]|=o<<a,a+=r,a>=this.DB&&(a-=this.DB)}r==8&&(+t[0]&128)!=0&&(this.s=-1,a>0&&(this[this.t-1]|=(1<<this.DB-a)-1<<a)),this.clamp(),s&&n.ZERO.subTo(this,this)},n.prototype.clamp=function(){for(var t=this.s&this.DM;this.t>0&&this[this.t-1]==t;)--this.t},n.prototype.dlShiftTo=function(t,e){var r;for(r=this.t-1;r>=0;--r)e[r+t]=this[r];for(r=t-1;r>=0;--r)e[r]=0;e.t=this.t+t,e.s=this.s},n.prototype.drShiftTo=function(t,e){for(var r=t;r<this.t;++r)e[r-t]=this[r];e.t=Math.max(this.t-t,0),e.s=this.s},n.prototype.lShiftTo=function(t,e){for(var r=t%this.DB,i=this.DB-r,s=(1<<i)-1,a=Math.floor(t/this.DB),o=this.s<<r&this.DM,h=this.t-1;h>=0;--h)e[h+a+1]=this[h]>>i|o,o=(this[h]&s)<<r;for(var h=a-1;h>=0;--h)e[h]=0;e[a]=o,e.t=this.t+a+1,e.s=this.s,e.clamp()},n.prototype.rShiftTo=function(t,e){e.s=this.s;var r=Math.floor(t/this.DB);if(r>=this.t){e.t=0;return}var i=t%this.DB,s=this.DB-i,a=(1<<i)-1;e[0]=this[r]>>i;for(var o=r+1;o<this.t;++o)e[o-r-1]|=(this[o]&a)<<s,e[o-r]=this[o]>>i;i>0&&(e[this.t-r-1]|=(this.s&a)<<s),e.t=this.t-r,e.clamp()},n.prototype.subTo=function(t,e){for(var r=0,i=0,s=Math.min(t.t,this.t);r<s;)i+=this[r]-t[r],e[r++]=i&this.DM,i>>=this.DB;if(t.t<this.t){for(i-=t.s;r<this.t;)i+=this[r],e[r++]=i&this.DM,i>>=this.DB;i+=this.s}else{for(i+=this.s;r<t.t;)i-=t[r],e[r++]=i&this.DM,i>>=this.DB;i-=t.s}e.s=i<0?-1:0,i<-1?e[r++]=this.DV+i:i>0&&(e[r++]=i),e.t=r,e.clamp()},n.prototype.multiplyTo=function(t,e){var r=this.abs(),i=t.abs(),s=r.t;for(e.t=s+i.t;--s>=0;)e[s]=0;for(s=0;s<i.t;++s)e[s+r.t]=r.am(0,i[s],e,s,0,r.t);e.s=0,e.clamp(),this.s!=t.s&&n.ZERO.subTo(e,e)},n.prototype.squareTo=function(t){for(var e=this.abs(),r=t.t=2*e.t;--r>=0;)t[r]=0;for(r=0;r<e.t-1;++r){var i=e.am(r,e[r],t,2*r,0,1);(t[r+e.t]+=e.am(r+1,2*e[r],t,2*r+1,i,e.t-r-1))>=e.DV&&(t[r+e.t]-=e.DV,t[r+e.t+1]=1)}t.t>0&&(t[t.t-1]+=e.am(r,e[r],t,2*r,0,1)),t.s=0,t.clamp()},n.prototype.divRemTo=function(t,e,r){var i=t.abs();if(!(i.t<=0)){var s=this.abs();if(s.t<i.t){e!=null&&e.fromInt(0),r!=null&&this.copyTo(r);return}r==null&&(r=z());var a=z(),o=this.s,h=t.s,c=this.DB-re(i[i.t-1]);c>0?(i.lShiftTo(c,a),s.lShiftTo(c,r)):(i.copyTo(a),s.copyTo(r));var u=a.t,d=a[u-1];if(d!=0){var f=d*(1<<this.F1)+(u>1?a[u-2]>>this.F2:0),x=this.FV/f,l=(1<<this.F1)/f,g=1<<this.F2,E=r.t,B=E-u,v=e==null?z():e;for(a.dlShiftTo(B,v),r.compareTo(v)>=0&&(r[r.t++]=1,r.subTo(v,r)),n.ONE.dlShiftTo(u,v),v.subTo(a,a);a.t<u;)a[a.t++]=0;for(;--B>=0;){var p=r[--E]==d?this.DM:Math.floor(r[E]*x+(r[E-1]+g)*l);if((r[E]+=a.am(0,p,r,B,0,u))<p)for(a.dlShiftTo(B,v),r.subTo(v,r);r[E]<--p;)r.subTo(v,r)}e!=null&&(r.drShiftTo(u,e),o!=h&&n.ZERO.subTo(e,e)),r.t=u,r.clamp(),c>0&&r.rShiftTo(c,r),o<0&&n.ZERO.subTo(r,r)}}},n.prototype.invDigit=function(){if(this.t<1)return 0;var t=this[0];if((t&1)==0)return 0;var e=t&3;return e=e*(2-(t&15)*e)&15,e=e*(2-(t&255)*e)&255,e=e*(2-((t&65535)*e&65535))&65535,e=e*(2-t*e%this.DV)%this.DV,e>0?this.DV-e:-e},n.prototype.isEven=function(){return(this.t>0?this[0]&1:this.s)==0},n.prototype.exp=function(t,e){if(t>4294967295||t<1)return n.ONE;var r=z(),i=z(),s=e.convert(this),a=re(t)-1;for(s.copyTo(r);--a>=0;)if(e.sqrTo(r,i),(t&1<<a)>0)e.mulTo(i,s,r);else{var o=r;r=i,i=o}return e.revert(r)},n.prototype.chunkSize=function(t){return Math.floor(Math.LN2*this.DB/Math.log(t))},n.prototype.toRadix=function(t){if(t==null&&(t=10),this.signum()==0||t<2||t>36)return"0";var e=this.chunkSize(t),r=Math.pow(t,e),i=gt(r),s=z(),a=z(),o="";for(this.divRemTo(i,s,a);s.signum()>0;)o=(r+a.intValue()).toString(t).substring(1)+o,s.divRemTo(i,s,a);return a.intValue().toString(t)+o},n.prototype.fromRadix=function(t,e){this.fromInt(0),e==null&&(e=10);for(var r=this.chunkSize(e),i=Math.pow(e,r),s=!1,a=0,o=0,h=0;h<t.length;++h){var c=Cr(t,h);if(c<0){t.charAt(h)=="-"&&this.signum()==0&&(s=!0);continue}o=e*o+c,++a>=r&&(this.dMultiply(i),this.dAddOffset(o,0),a=0,o=0)}a>0&&(this.dMultiply(Math.pow(e,a)),this.dAddOffset(o,0)),s&&n.ZERO.subTo(this,this)},n.prototype.fromNumber=function(t,e,r){if(typeof e=="number")if(t<2)this.fromInt(1);else for(this.fromNumber(t,r),this.testBit(t-1)||this.bitwiseTo(n.ONE.shiftLeft(t-1),ee,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(e);)this.dAddOffset(2,0),this.bitLength()>t&&this.subTo(n.ONE.shiftLeft(t-1),this);else{var i=[],s=t&7;i.length=(t>>3)+1,e.nextBytes(i),s>0?i[0]&=(1<<s)-1:i[0]=0,this.fromString(i,256)}},n.prototype.bitwiseTo=function(t,e,r){var i,s,a=Math.min(t.t,this.t);for(i=0;i<a;++i)r[i]=e(this[i],t[i]);if(t.t<this.t){for(s=t.s&this.DM,i=a;i<this.t;++i)r[i]=e(this[i],s);r.t=this.t}else{for(s=this.s&this.DM,i=a;i<t.t;++i)r[i]=e(s,t[i]);r.t=t.t}r.s=e(this.s,t.s),r.clamp()},n.prototype.changeBit=function(t,e){var r=n.ONE.shiftLeft(t);return this.bitwiseTo(r,e,r),r},n.prototype.addTo=function(t,e){for(var r=0,i=0,s=Math.min(t.t,this.t);r<s;)i+=this[r]+t[r],e[r++]=i&this.DM,i>>=this.DB;if(t.t<this.t){for(i+=t.s;r<this.t;)i+=this[r],e[r++]=i&this.DM,i>>=this.DB;i+=this.s}else{for(i+=this.s;r<t.t;)i+=t[r],e[r++]=i&this.DM,i>>=this.DB;i+=t.s}e.s=i<0?-1:0,i>0?e[r++]=i:i<-1&&(e[r++]=this.DV+i),e.t=r,e.clamp()},n.prototype.dMultiply=function(t){this[this.t]=this.am(0,t-1,this,0,0,this.t),++this.t,this.clamp()},n.prototype.dAddOffset=function(t,e){if(t!=0){for(;this.t<=e;)this[this.t++]=0;for(this[e]+=t;this[e]>=this.DV;)this[e]-=this.DV,++e>=this.t&&(this[this.t++]=0),++this[e]}},n.prototype.multiplyLowerTo=function(t,e,r){var i=Math.min(this.t+t.t,e);for(r.s=0,r.t=i;i>0;)r[--i]=0;for(var s=r.t-this.t;i<s;++i)r[i+this.t]=this.am(0,t[i],r,i,0,this.t);for(var s=Math.min(t.t,e);i<s;++i)this.am(0,t[i],r,i,0,e-i);r.clamp()},n.prototype.multiplyUpperTo=function(t,e,r){--e;var i=r.t=this.t+t.t-e;for(r.s=0;--i>=0;)r[i]=0;for(i=Math.max(e-this.t,0);i<t.t;++i)r[this.t+i-e]=this.am(e-i,t[i],r,0,0,this.t+i-e);r.clamp(),r.drShiftTo(1,r)},n.prototype.modInt=function(t){if(t<=0)return 0;var e=this.DV%t,r=this.s<0?t-1:0;if(this.t>0)if(e==0)r=this[0]%t;else for(var i=this.t-1;i>=0;--i)r=(e*r+this[i])%t;return r},n.prototype.millerRabin=function(t){var e=this.subtract(n.ONE),r=e.getLowestSetBit();if(r<=0)return!1;var i=e.shiftRight(r);t=t+1>>1,t>tt.length&&(t=tt.length);for(var s=z(),a=0;a<t;++a){s.fromInt(tt[Math.floor(Math.random()*tt.length)]);var o=s.modPow(i,this);if(o.compareTo(n.ONE)!=0&&o.compareTo(e)!=0){for(var h=1;h++<r&&o.compareTo(e)!=0;)if(o=o.modPowInt(2,this),o.compareTo(n.ONE)==0)return!1;if(o.compareTo(e)!=0)return!1}}return!0},n.prototype.square=function(){var t=z();return this.squareTo(t),t},n.prototype.gcda=function(t,e){var r=this.s<0?this.negate():this.clone(),i=t.s<0?t.negate():t.clone();if(r.compareTo(i)<0){var s=r;r=i,i=s}var a=r.getLowestSetBit(),o=i.getLowestSetBit();if(o<0){e(r);return}a<o&&(o=a),o>0&&(r.rShiftTo(o,r),i.rShiftTo(o,i));var h=function(){(a=r.getLowestSetBit())>0&&r.rShiftTo(a,r),(a=i.getLowestSetBit())>0&&i.rShiftTo(a,i),r.compareTo(i)>=0?(r.subTo(i,r),r.rShiftTo(1,r)):(i.subTo(r,i),i.rShiftTo(1,i)),r.signum()>0?setTimeout(h,0):(o>0&&i.lShiftTo(o,i),setTimeout(function(){e(i)},0))};setTimeout(h,10)},n.prototype.fromNumberAsync=function(t,e,r,i){if(typeof e=="number")if(t<2)this.fromInt(1);else{this.fromNumber(t,r),this.testBit(t-1)||this.bitwiseTo(n.ONE.shiftLeft(t-1),ee,this),this.isEven()&&this.dAddOffset(1,0);var s=this,a=function(){s.dAddOffset(2,0),s.bitLength()>t&&s.subTo(n.ONE.shiftLeft(t-1),s),s.isProbablePrime(e)?setTimeout(function(){i()},0):setTimeout(a,0)};setTimeout(a,0)}else{var o=[],h=t&7;o.length=(t>>3)+1,e.nextBytes(o),h>0?o[0]&=(1<<h)-1:o[0]=0,this.fromString(o,256)}},n}(),Ds=function(){function n(){}return n.prototype.convert=function(t){return t},n.prototype.revert=function(t){return t},n.prototype.mulTo=function(t,e,r){t.multiplyTo(e,r)},n.prototype.sqrTo=function(t,e){t.squareTo(e)},n}(),mr=function(){function n(t){this.m=t}return n.prototype.convert=function(t){return t.s<0||t.compareTo(this.m)>=0?t.mod(this.m):t},n.prototype.revert=function(t){return t},n.prototype.reduce=function(t){t.divRemTo(this.m,null,t)},n.prototype.mulTo=function(t,e,r){t.multiplyTo(e,r),this.reduce(r)},n.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},n}(),Br=function(){function n(t){this.m=t,this.mp=t.invDigit(),this.mpl=this.mp&32767,this.mph=this.mp>>15,this.um=(1<<t.DB-15)-1,this.mt2=2*t.t}return n.prototype.convert=function(t){var e=z();return t.abs().dlShiftTo(this.m.t,e),e.divRemTo(this.m,null,e),t.s<0&&e.compareTo(H.ZERO)>0&&this.m.subTo(e,e),e},n.prototype.revert=function(t){var e=z();return t.copyTo(e),this.reduce(e),e},n.prototype.reduce=function(t){for(;t.t<=this.mt2;)t[t.t++]=0;for(var e=0;e<this.m.t;++e){var r=t[e]&32767,i=r*this.mpl+((r*this.mph+(t[e]>>15)*this.mpl&this.um)<<15)&t.DM;for(r=e+this.m.t,t[r]+=this.m.am(0,i,t,e,0,this.m.t);t[r]>=t.DV;)t[r]-=t.DV,t[++r]++}t.clamp(),t.drShiftTo(this.m.t,t),t.compareTo(this.m)>=0&&t.subTo(this.m,t)},n.prototype.mulTo=function(t,e,r){t.multiplyTo(e,r),this.reduce(r)},n.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},n}(),Cs=function(){function n(t){this.m=t,this.r2=z(),this.q3=z(),H.ONE.dlShiftTo(2*t.t,this.r2),this.mu=this.r2.divide(t)}return n.prototype.convert=function(t){if(t.s<0||t.t>2*this.m.t)return t.mod(this.m);if(t.compareTo(this.m)<0)return t;var e=z();return t.copyTo(e),this.reduce(e),e},n.prototype.revert=function(t){return t},n.prototype.reduce=function(t){for(t.drShiftTo(this.m.t-1,this.r2),t.t>this.m.t+1&&(t.t=this.m.t+1,t.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);t.compareTo(this.r2)<0;)t.dAddOffset(1,this.m.t+1);for(t.subTo(this.r2,t);t.compareTo(this.m)>=0;)t.subTo(this.m,t)},n.prototype.mulTo=function(t,e,r){t.multiplyTo(e,r),this.reduce(r)},n.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},n}();function z(){return new H(null)}function Y(n,t){return new H(n,t)}var Dr=typeof navigator!="undefined";Dr&&yr&&navigator.appName=="Microsoft Internet Explorer"?(H.prototype.am=function(t,e,r,i,s,a){for(var o=e&32767,h=e>>15;--a>=0;){var c=this[t]&32767,u=this[t++]>>15,d=h*c+u*o;c=o*c+((d&32767)<<15)+r[i]+(s&1073741823),s=(c>>>30)+(d>>>15)+h*u+(s>>>30),r[i++]=c&1073741823}return s},mt=30):Dr&&yr&&navigator.appName!="Netscape"?(H.prototype.am=function(t,e,r,i,s,a){for(;--a>=0;){var o=e*this[t++]+r[i]+s;s=Math.floor(o/67108864),r[i++]=o&67108863}return s},mt=26):(H.prototype.am=function(t,e,r,i,s,a){for(var o=e&16383,h=e>>14;--a>=0;){var c=this[t]&16383,u=this[t++]>>14,d=h*c+u*o;c=o*c+((d&16383)<<14)+r[i]+s,s=(c>>28)+(d>>14)+h*u,r[i++]=c&268435455}return s},mt=28);H.prototype.DB=mt;H.prototype.DM=(1<<mt)-1;H.prototype.DV=1<<mt;var x0=52;H.prototype.FV=Math.pow(2,x0);H.prototype.F1=x0-mt;H.prototype.F2=2*mt-x0;var Ze=[],Lt,at;Lt=48;for(at=0;at<=9;++at)Ze[Lt++]=at;Lt=97;for(at=10;at<36;++at)Ze[Lt++]=at;Lt=65;for(at=10;at<36;++at)Ze[Lt++]=at;function Cr(n,t){var e=Ze[n.charCodeAt(t)];return e==null?-1:e}function gt(n){var t=z();return t.fromInt(n),t}function re(n){var t=1,e;return(e=n>>>16)!=0&&(n=e,t+=16),(e=n>>8)!=0&&(n=e,t+=8),(e=n>>4)!=0&&(n=e,t+=4),(e=n>>2)!=0&&(n=e,t+=2),(e=n>>1)!=0&&(n=e,t+=1),t}H.ZERO=gt(0);H.ONE=gt(1);var As=function(){function n(){this.i=0,this.j=0,this.S=[]}return n.prototype.init=function(t){var e,r,i;for(e=0;e<256;++e)this.S[e]=e;for(r=0,e=0;e<256;++e)r=r+this.S[e]+t[e%t.length]&255,i=this.S[e],this.S[e]=this.S[r],this.S[r]=i;this.i=0,this.j=0},n.prototype.next=function(){var t;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,t=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=t,this.S[t+this.S[this.i]&255]},n}();function bs(){return new As}var Nr=256,ie,yt=null,ut;if(yt==null){yt=[],ut=0;var ne=void 0;if(typeof window!="undefined"&&self.crypto&&self.crypto.getRandomValues){var i0=new Uint32Array(256);for(self.crypto.getRandomValues(i0),ne=0;ne<i0.length;++ne)yt[ut++]=i0[ne]&255}var se=0,oe=function(n){if(se=se||0,se>=256||ut>=Nr){self.removeEventListener?self.removeEventListener("mousemove",oe,!1):self.detachEvent&&self.detachEvent("onmousemove",oe);return}try{var t=n.x+n.y;yt[ut++]=t&255,se+=1}catch(e){}};typeof window!="undefined"&&(self.addEventListener?self.addEventListener("mousemove",oe,!1):self.attachEvent&&self.attachEvent("onmousemove",oe))}function ws(){if(ie==null){for(ie=bs();ut<Nr;){var n=Math.floor(65536*Math.random());yt[ut++]=n&255}for(ie.init(yt),ut=0;ut<yt.length;++ut)yt[ut]=0;ut=0}return ie.next()}var Xe=function(){function n(){}return n.prototype.nextBytes=function(t){for(var e=0;e<t.length;++e)t[e]=ws()},n}();function a0(n){return Ss(Ms(Fs(n),n.length*8))}function Ar(n){for(var t="0123456789abcdef",e="",r=0;r<n.length;r++){var i=n.charCodeAt(r);e+=t.charAt(i>>>4&15)+t.charAt(i&15)}return e}function Fs(n){for(var t=Array(n.length>>2),e=0;e<t.length;e++)t[e]=0;for(var e=0;e<n.length*8;e+=8)t[e>>5]|=(n.charCodeAt(e/8)&255)<<24-e%32;return t}function Ss(n){for(var t="",e=0;e<n.length*32;e+=8)t+=String.fromCharCode(n[e>>5]>>>24-e%32&255);return t}function ft(n,t){return n>>>t|n<<32-t}function qr(n,t){return n>>>t}function _s(n,t,e){return n&t^~n&e}function Ts(n,t,e){return n&t^n&e^t&e}function Rs(n){return ft(n,2)^ft(n,13)^ft(n,22)}function ks(n){return ft(n,6)^ft(n,11)^ft(n,25)}function Os(n){return ft(n,7)^ft(n,18)^qr(n,3)}function Ps(n){return ft(n,17)^ft(n,19)^qr(n,10)}var Is=new Array(1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998);function Ms(n,t){var e=new Array(1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225),r=new Array(64),i,s,a,o,h,c,u,d,f,x,l,g;for(n[t>>5]|=128<<24-t%32,n[(t+64>>9<<4)+15]=t,f=0;f<n.length;f+=16){for(i=e[0],s=e[1],a=e[2],o=e[3],h=e[4],c=e[5],u=e[6],d=e[7],x=0;x<64;x++)x<16?r[x]=n[x+f]:r[x]=Z(Z(Z(Ps(r[x-2]),r[x-7]),Os(r[x-15])),r[x-16]),l=Z(Z(Z(Z(d,ks(h)),_s(h,c,u)),Is[x]),r[x]),g=Z(Rs(i),Ts(i,s,a)),d=u,u=c,c=h,h=Z(o,l),o=a,a=s,s=i,i=Z(l,g);e[0]=Z(i,e[0]),e[1]=Z(s,e[1]),e[2]=Z(a,e[2]),e[3]=Z(o,e[3]),e[4]=Z(h,e[4]),e[5]=Z(c,e[5]),e[6]=Z(u,e[6]),e[7]=Z(d,e[7])}return e}function Z(n,t){var e=(n&65535)+(t&65535),r=(n>>16)+(t>>16)+(e>>16);return r<<16|e&65535}function Hs(n,t){if(t<n.length+22)return console.error("Message too long for RSA"),null;for(var e=t-n.length-6,r="",i=0;i<e;i+=2)r+="ff";var s="0001"+r+"00"+n;return Y(s,16)}function Ls(n,t){if(t<n.length+11)return console.error("Message too long for RSA"),null;for(var e=[],r=n.length-1;r>=0&&t>0;){var i=n.charCodeAt(r--);i<128?e[--t]=i:i>127&&i<2048?(e[--t]=i&63|128,e[--t]=i>>6|192):(e[--t]=i&63|128,e[--t]=i>>6&63|128,e[--t]=i>>12|224)}e[--t]=0;for(var s=new Xe,a=[];t>2;){for(a[0]=0;a[0]==0;)s.nextBytes(a);e[--t]=a[0]}return e[--t]=2,e[--t]=0,new H(e)}function br(n,t,e){for(var r="",i=0;r.length<t;)r+=e(String.fromCharCode.apply(String,n.concat([(i&4278190080)>>24,(i&16711680)>>16,(i&65280)>>8,i&255]))),i+=1;return r}var Vs=32;function zs(n,t){var e=Vs,r=a0;if(n.length+2*e+2>t)throw"Message too long for RSA";var i="",s;for(s=0;s<t-n.length-2*e-2;s+=1)i+="\0";var a=r("")+i+""+n,o=new Array(e);new Xe().nextBytes(o);var h=br(o,a.length,r),c=[];for(s=0;s<a.length;s+=1)c[s]=a.charCodeAt(s)^h.charCodeAt(s);var u=br(c,o.length,r),d=[0];for(s=0;s<o.length;s+=1)d[s+1]=o[s]^u.charCodeAt(s);return new H(d.concat(c))}var Ns=function(){function n(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}return n.prototype.doPublic=function(t){return t.modPowInt(this.e,this.n)},n.prototype.doPrivate=function(t){if(this.p==null||this.q==null)return t.modPow(this.d,this.n);for(var e=t.mod(this.p).modPow(this.dmp1,this.p),r=t.mod(this.q).modPow(this.dmq1,this.q);e.compareTo(r)<0;)e=e.add(this.p);return e.subtract(r).multiply(this.coeff).mod(this.p).multiply(this.q).add(r)},n.prototype.setPublic=function(t,e){t!=null&&e!=null&&t.length>0&&e.length>0?(this.n=Y(t,16),this.e=parseInt(e,16)):console.error("Invalid RSA public key")},n.prototype.encrypt=function(t,e){typeof e=="undefined"&&(e=Ls);var r=this.n.bitLength()+7>>3,i=e(t,r);if(i==null)return null;var s=this.doPublic(i);if(s==null)return null;for(var a=s.toString(16),o=a.length,h=0;h<r*2-o;h++)a="0"+a;return a},n.prototype.setPrivate=function(t,e,r){t!=null&&e!=null&&t.length>0&&e.length>0?(this.n=Y(t,16),this.e=parseInt(e,16),this.d=Y(r,16)):console.error("Invalid RSA private key")},n.prototype.setPrivateEx=function(t,e,r,i,s,a,o,h){t!=null&&e!=null&&t.length>0&&e.length>0?(this.n=Y(t,16),this.e=parseInt(e,16),this.d=Y(r,16),this.p=Y(i,16),this.q=Y(s,16),this.dmp1=Y(a,16),this.dmq1=Y(o,16),this.coeff=Y(h,16)):console.error("Invalid RSA private key")},n.prototype.generate=function(t,e){var r=new Xe,i=t>>1;this.e=parseInt(e,16);for(var s=new H(e,16);;){for(;this.p=new H(t-i,1,r),!(this.p.subtract(H.ONE).gcd(s).compareTo(H.ONE)==0&&this.p.isProbablePrime(10)););for(;this.q=new H(i,1,r),!(this.q.subtract(H.ONE).gcd(s).compareTo(H.ONE)==0&&this.q.isProbablePrime(10)););if(this.p.compareTo(this.q)<=0){var a=this.p;this.p=this.q,this.q=a}var o=this.p.subtract(H.ONE),h=this.q.subtract(H.ONE),c=o.multiply(h);if(c.gcd(s).compareTo(H.ONE)==0){this.n=this.p.multiply(this.q),this.d=s.modInverse(c),this.dmp1=this.d.mod(o),this.dmq1=this.d.mod(h),this.coeff=this.q.modInverse(this.p);break}}},n.prototype.decrypt=function(t){var e=Y(t,16),r=this.doPrivate(e);return r==null?null:qs(r,this.n.bitLength()+7>>3)},n.prototype.generateAsync=function(t,e,r){var i=new Xe,s=t>>1;this.e=parseInt(e,16);var a=new H(e,16),o=this,h=function(){var c=function(){if(o.p.compareTo(o.q)<=0){var f=o.p;o.p=o.q,o.q=f}var x=o.p.subtract(H.ONE),l=o.q.subtract(H.ONE),g=x.multiply(l);g.gcd(a).compareTo(H.ONE)==0?(o.n=o.p.multiply(o.q),o.d=a.modInverse(g),o.dmp1=o.d.mod(x),o.dmq1=o.d.mod(l),o.coeff=o.q.modInverse(o.p),setTimeout(function(){r()},0)):setTimeout(h,0)},u=function(){o.q=z(),o.q.fromNumberAsync(s,1,i,function(){o.q.subtract(H.ONE).gcda(a,function(f){f.compareTo(H.ONE)==0&&o.q.isProbablePrime(10)?setTimeout(c,0):setTimeout(u,0)})})},d=function(){o.p=z(),o.p.fromNumberAsync(t-s,1,i,function(){o.p.subtract(H.ONE).gcda(a,function(f){f.compareTo(H.ONE)==0&&o.p.isProbablePrime(10)?setTimeout(u,0):setTimeout(d,0)})})};setTimeout(d,0)};setTimeout(h,0)},n.prototype.sign=function(t,e,r){var i=Ws(r),s=i+e(t).toString(),a=this.n.bitLength()/4,o=Hs(s,a);if(o==null)return null;var h=this.doPrivate(o);if(h==null)return null;for(var c=h.toString(16),u=c.length,d=0;d<a-u;d++)c="0"+c;return c},n.prototype.verify=function(t,e,r){var i=Y(e,16),s=this.doPublic(i);if(s==null)return null;var a=s.toString(16).replace(/^1f+00/,""),o=Us(a);return o==r(t).toString()},n}();function qs(n,t){for(var e=n.toByteArray(),r=0;r<e.length&&e[r]==0;)++r;if(e.length-r!=t-1||e[r]!=2)return null;for(++r;e[r]!=0;)if(++r>=e.length)return null;for(var i="";++r<e.length;){var s=e[r]&255;s<128?i+=String.fromCharCode(s):s>191&&s<224?(i+=String.fromCharCode((s&31)<<6|e[r+1]&63),++r):(i+=String.fromCharCode((s&15)<<12|(e[r+1]&63)<<6|e[r+2]&63),r+=2)}return i}var $e={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};function Ws(n){return $e[n]||""}function Us(n){for(var t in $e)if($e.hasOwnProperty(t)){var e=$e[t],r=e.length;if(n.substring(0,r)==e)return n.substring(r)}return n}function K(n,t,e){if(!t||!n)throw new Error("extend failed, please check that all dependencies are included.");var r=function(){};r.prototype=t.prototype,n.prototype=new r,n.prototype.constructor=n,n.superclass=t.prototype,t.prototype.constructor==Object.prototype.constructor&&(t.prototype.constructor=t)}/**
 * @fileOverview
 * @name asn1-1.0.js
 * @author Kenji Urushima kenji.urushima@gmail.com
 * @version asn1 1.0.13 (2017-Jun-02)
 * @since jsrsasign 2.1
 * @license <a href="https://kjur.github.io/jsrsasign/license/">MIT License</a>
 */var F={};(typeof F.asn1=="undefined"||!F.asn1)&&(F.asn1={});F.asn1.ASN1Util=new function(){this.integerToByteHex=function(n){var t=n.toString(16);return t.length%2==1&&(t="0"+t),t},this.bigIntToMinTwosComplementsHex=function(n){var t=n.toString(16);if(t.substring(0,1)!="-")t.length%2==1?t="0"+t:t.match(/^[0-7]/)||(t="00"+t);else{var e=t.substring(1),r=e.length;r%2==1?r+=1:t.match(/^[0-7]/)||(r+=2);for(var i="",s=0;s<r;s++)i+="f";var a=new H(i,16),o=a.xor(n).add(H.ONE);t=o.toString(16).replace(/^-/,"")}return t},this.getPEMStringFromHex=function(n,t){return hextopem(n,t)},this.newObject=function(n){var t=F,e=t.asn1,r=e.DERBoolean,i=e.DERInteger,s=e.DERBitString,a=e.DEROctetString,o=e.DERNull,h=e.DERObjectIdentifier,c=e.DEREnumerated,u=e.DERUTF8String,d=e.DERNumericString,f=e.DERPrintableString,x=e.DERTeletexString,l=e.DERIA5String,g=e.DERUTCTime,E=e.DERGeneralizedTime,B=e.DERSequence,v=e.DERSet,p=e.DERTaggedObject,y=e.ASN1Util.newObject,A=Object.keys(n);if(A.length!=1)throw"key of param shall be only one.";var m=A[0];if(":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+m+":")==-1)throw"undefined key: "+m;if(m=="bool")return new r(n[m]);if(m=="int")return new i(n[m]);if(m=="bitstr")return new s(n[m]);if(m=="octstr")return new a(n[m]);if(m=="null")return new o(n[m]);if(m=="oid")return new h(n[m]);if(m=="enum")return new c(n[m]);if(m=="utf8str")return new u(n[m]);if(m=="numstr")return new d(n[m]);if(m=="prnstr")return new f(n[m]);if(m=="telstr")return new x(n[m]);if(m=="ia5str")return new l(n[m]);if(m=="utctime")return new g(n[m]);if(m=="gentime")return new E(n[m]);if(m=="seq"){for(var b=n[m],w=[],O=0;O<b.length;O++){var D=y(b[O]);w.push(D)}return new B({array:w})}if(m=="set"){for(var b=n[m],w=[],O=0;O<b.length;O++){var D=y(b[O]);w.push(D)}return new v({array:w})}if(m=="tag"){var C=n[m];if(Object.prototype.toString.call(C)==="[object Array]"&&C.length==3){var T=y(C[2]);return new p({tag:C[0],explicit:C[1],obj:T})}else{var S={};if(C.explicit!==void 0&&(S.explicit=C.explicit),C.tag!==void 0&&(S.tag=C.tag),C.obj===void 0)throw"obj shall be specified for 'tag'.";return S.obj=y(C.obj),new p(S)}}},this.jsonToASN1HEX=function(n){var t=this.newObject(n);return t.getEncodedHex()}};F.asn1.ASN1Util.oidHexToInt=function(n){for(var i="",t=parseInt(n.substring(0,2),16),e=Math.floor(t/40),r=t%40,i=e+"."+r,s="",a=2;a<n.length;a+=2){var o=parseInt(n.substring(a,a+2),16),h=("00000000"+o.toString(2)).slice(-8);if(s=s+h.substring(1,8),h.substring(0,1)=="0"){var c=new H(s,2);i=i+"."+c.toString(10),s=""}}return i};F.asn1.ASN1Util.oidIntToHex=function(n){var t=function(o){var h=o.toString(16);return h.length==1&&(h="0"+h),h},e=function(o){var h="",c=new H(o,10),u=c.toString(2),d=7-u.length%7;d==7&&(d=0);for(var f="",x=0;x<d;x++)f+="0";u=f+u;for(var x=0;x<u.length-1;x+=7){var l=u.substring(x,x+7);x!=u.length-7&&(l="1"+l),h+=t(parseInt(l,2))}return h};if(!n.match(/^[0-9.]+$/))throw"malformed oid string: "+n;var r="",i=n.split("."),s=parseInt(i[0])*40+parseInt(i[1]);r+=t(s),i.splice(0,2);for(var a=0;a<i.length;a++)r+=e(i[a]);return r};F.asn1.ASN1Object=function(){var n="";this.getLengthHexFromValue=function(){if(typeof this.hV=="undefined"||this.hV==null)throw"this.hV is null or undefined.";if(this.hV.length%2==1)throw"value hex must be even length: n="+n.length+",v="+this.hV;var t=this.hV.length/2,e=t.toString(16);if(e.length%2==1&&(e="0"+e),t<128)return e;var r=e.length/2;if(r>15)throw"ASN.1 length too long to represent by 8x: n = "+t.toString(16);var i=128+r;return i.toString(16)+e},this.getEncodedHex=function(){return(this.hTLV==null||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getValueHex=function(){return this.getEncodedHex(),this.hV},this.getFreshValueHex=function(){return""}};F.asn1.DERAbstractString=function(n){F.asn1.DERAbstractString.superclass.constructor.call(this),this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=stohex(this.s)},this.setStringHex=function(t){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=t},this.getFreshValueHex=function(){return this.hV},typeof n!="undefined"&&(typeof n=="string"?this.setString(n):typeof n.str!="undefined"?this.setString(n.str):typeof n.hex!="undefined"&&this.setStringHex(n.hex))};K(F.asn1.DERAbstractString,F.asn1.ASN1Object);F.asn1.DERAbstractTime=function(n){F.asn1.DERAbstractTime.superclass.constructor.call(this),this.localDateToUTC=function(t){utc=t.getTime()+t.getTimezoneOffset()*6e4;var e=new Date(utc);return e},this.formatDate=function(t,e,r){var i=this.zeroPadding,s=this.localDateToUTC(t),a=String(s.getFullYear());e=="utc"&&(a=a.substring(2,4));var o=i(String(s.getMonth()+1),2),h=i(String(s.getDate()),2),c=i(String(s.getHours()),2),u=i(String(s.getMinutes()),2),d=i(String(s.getSeconds()),2),f=a+o+h+c+u+d;if(r===!0){var x=s.getMilliseconds();if(x!=0){var l=i(String(x),3);l=l.replace(/[0]+$/,""),f=f+"."+l}}return f+"Z"},this.zeroPadding=function(t,e){return t.length>=e?t:new Array(e-t.length+1).join("0")+t},this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=stohex(t)},this.setByDateValue=function(t,e,r,i,s,a){var o=new Date(Date.UTC(t,e-1,r,i,s,a,0));this.setByDate(o)},this.getFreshValueHex=function(){return this.hV}};K(F.asn1.DERAbstractTime,F.asn1.ASN1Object);F.asn1.DERAbstractStructured=function(n){F.asn1.DERAbstractString.superclass.constructor.call(this),this.setByASN1ObjectArray=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array=t},this.appendASN1Object=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array.push(t)},this.asn1Array=new Array,typeof n!="undefined"&&typeof n.array!="undefined"&&(this.asn1Array=n.array)};K(F.asn1.DERAbstractStructured,F.asn1.ASN1Object);F.asn1.DERBoolean=function(){F.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"};K(F.asn1.DERBoolean,F.asn1.ASN1Object);F.asn1.DERInteger=function(n){F.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=F.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var e=new H(String(t),10);this.setByBigInteger(e)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},typeof n!="undefined"&&(typeof n.bigint!="undefined"?this.setByBigInteger(n.bigint):typeof n.int!="undefined"?this.setByInteger(n.int):typeof n=="number"?this.setByInteger(n):typeof n.hex!="undefined"&&this.setValueHex(n.hex))};K(F.asn1.DERInteger,F.asn1.ASN1Object);F.asn1.DERBitString=function(n){if(n!==void 0&&typeof n.obj!="undefined"){var t=F.asn1.ASN1Util.newObject(n.obj);n.hex="00"+t.getEncodedHex()}F.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(e){this.hTLV=null,this.isModified=!0,this.hV=e},this.setUnusedBitsAndHexValue=function(e,r){if(e<0||7<e)throw"unused bits shall be from 0 to 7: u = "+e;var i="0"+e;this.hTLV=null,this.isModified=!0,this.hV=i+r},this.setByBinaryString=function(e){e=e.replace(/0+$/,"");var r=8-e.length%8;r==8&&(r=0);for(var i=0;i<=r;i++)e+="0";for(var s="",i=0;i<e.length-1;i+=8){var a=e.substring(i,i+8),o=parseInt(a,2).toString(16);o.length==1&&(o="0"+o),s+=o}this.hTLV=null,this.isModified=!0,this.hV="0"+r+s},this.setByBooleanArray=function(e){for(var r="",i=0;i<e.length;i++)e[i]==!0?r+="1":r+="0";this.setByBinaryString(r)},this.newFalseArray=function(e){for(var r=new Array(e),i=0;i<e;i++)r[i]=!1;return r},this.getFreshValueHex=function(){return this.hV},typeof n!="undefined"&&(typeof n=="string"&&n.toLowerCase().match(/^[0-9a-f]+$/)?this.setHexValueIncludingUnusedBits(n):typeof n.hex!="undefined"?this.setHexValueIncludingUnusedBits(n.hex):typeof n.bin!="undefined"?this.setByBinaryString(n.bin):typeof n.array!="undefined"&&this.setByBooleanArray(n.array))};K(F.asn1.DERBitString,F.asn1.ASN1Object);F.asn1.DEROctetString=function(n){if(n!==void 0&&typeof n.obj!="undefined"){var t=F.asn1.ASN1Util.newObject(n.obj);n.hex=t.getEncodedHex()}F.asn1.DEROctetString.superclass.constructor.call(this,n),this.hT="04"};K(F.asn1.DEROctetString,F.asn1.DERAbstractString);F.asn1.DERNull=function(){F.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"};K(F.asn1.DERNull,F.asn1.ASN1Object);F.asn1.DERObjectIdentifier=function(n){var t=function(r){var i=r.toString(16);return i.length==1&&(i="0"+i),i},e=function(r){var i="",s=new H(r,10),a=s.toString(2),o=7-a.length%7;o==7&&(o=0);for(var h="",c=0;c<o;c++)h+="0";a=h+a;for(var c=0;c<a.length-1;c+=7){var u=a.substring(c,c+7);c!=a.length-7&&(u="1"+u),i+=t(parseInt(u,2))}return i};F.asn1.DERObjectIdentifier.superclass.constructor.call(this),this.hT="06",this.setValueHex=function(r){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=r},this.setValueOidString=function(r){if(!r.match(/^[0-9.]+$/))throw"malformed oid string: "+r;var i="",s=r.split("."),a=parseInt(s[0])*40+parseInt(s[1]);i+=t(a),s.splice(0,2);for(var o=0;o<s.length;o++)i+=e(s[o]);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=i},this.setValueName=function(r){var i=F.asn1.x509.OID.name2oid(r);if(i!=="")this.setValueOidString(i);else throw"DERObjectIdentifier oidName undefined: "+r},this.getFreshValueHex=function(){return this.hV},n!==void 0&&(typeof n=="string"?n.match(/^[0-2].[0-9.]+$/)?this.setValueOidString(n):this.setValueName(n):n.oid!==void 0?this.setValueOidString(n.oid):n.hex!==void 0?this.setValueHex(n.hex):n.name!==void 0&&this.setValueName(n.name))};K(F.asn1.DERObjectIdentifier,F.asn1.ASN1Object);F.asn1.DEREnumerated=function(n){F.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=F.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var e=new H(String(t),10);this.setByBigInteger(e)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},typeof n!="undefined"&&(typeof n.int!="undefined"?this.setByInteger(n.int):typeof n=="number"?this.setByInteger(n):typeof n.hex!="undefined"&&this.setValueHex(n.hex))};K(F.asn1.DEREnumerated,F.asn1.ASN1Object);F.asn1.DERUTF8String=function(n){F.asn1.DERUTF8String.superclass.constructor.call(this,n),this.hT="0c"};K(F.asn1.DERUTF8String,F.asn1.DERAbstractString);F.asn1.DERNumericString=function(n){F.asn1.DERNumericString.superclass.constructor.call(this,n),this.hT="12"};K(F.asn1.DERNumericString,F.asn1.DERAbstractString);F.asn1.DERPrintableString=function(n){F.asn1.DERPrintableString.superclass.constructor.call(this,n),this.hT="13"};K(F.asn1.DERPrintableString,F.asn1.DERAbstractString);F.asn1.DERTeletexString=function(n){F.asn1.DERTeletexString.superclass.constructor.call(this,n),this.hT="14"};K(F.asn1.DERTeletexString,F.asn1.DERAbstractString);F.asn1.DERIA5String=function(n){F.asn1.DERIA5String.superclass.constructor.call(this,n),this.hT="16"};K(F.asn1.DERIA5String,F.asn1.DERAbstractString);F.asn1.DERUTCTime=function(n){F.asn1.DERUTCTime.superclass.constructor.call(this,n),this.hT="17",this.setByDate=function(t){this.hTLV=null,this.isModified=!0,this.date=t,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return typeof this.date=="undefined"&&typeof this.s=="undefined"&&(this.date=new Date,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)),this.hV},n!==void 0&&(n.str!==void 0?this.setString(n.str):typeof n=="string"&&n.match(/^[0-9]{12}Z$/)?this.setString(n):n.hex!==void 0?this.setStringHex(n.hex):n.date!==void 0&&this.setByDate(n.date))};K(F.asn1.DERUTCTime,F.asn1.DERAbstractTime);F.asn1.DERGeneralizedTime=function(n){F.asn1.DERGeneralizedTime.superclass.constructor.call(this,n),this.hT="18",this.withMillis=!1,this.setByDate=function(t){this.hTLV=null,this.isModified=!0,this.date=t,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return this.date===void 0&&this.s===void 0&&(this.date=new Date,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)),this.hV},n!==void 0&&(n.str!==void 0?this.setString(n.str):typeof n=="string"&&n.match(/^[0-9]{14}Z$/)?this.setString(n):n.hex!==void 0?this.setStringHex(n.hex):n.date!==void 0&&this.setByDate(n.date),n.millis===!0&&(this.withMillis=!0))};K(F.asn1.DERGeneralizedTime,F.asn1.DERAbstractTime);F.asn1.DERSequence=function(n){F.asn1.DERSequence.superclass.constructor.call(this,n),this.hT="30",this.getFreshValueHex=function(){for(var t="",e=0;e<this.asn1Array.length;e++){var r=this.asn1Array[e];t+=r.getEncodedHex()}return this.hV=t,this.hV}};K(F.asn1.DERSequence,F.asn1.DERAbstractStructured);F.asn1.DERSet=function(n){F.asn1.DERSet.superclass.constructor.call(this,n),this.hT="31",this.sortFlag=!0,this.getFreshValueHex=function(){for(var t=new Array,e=0;e<this.asn1Array.length;e++){var r=this.asn1Array[e];t.push(r.getEncodedHex())}return this.sortFlag==!0&&t.sort(),this.hV=t.join(""),this.hV},typeof n!="undefined"&&typeof n.sortflag!="undefined"&&n.sortflag==!1&&(this.sortFlag=!1)};K(F.asn1.DERSet,F.asn1.DERAbstractStructured);F.asn1.DERTaggedObject=function(n){F.asn1.DERTaggedObject.superclass.constructor.call(this),this.hT="a0",this.hV="",this.isExplicit=!0,this.asn1Object=null,this.setASN1Object=function(t,e,r){this.hT=e,this.isExplicit=t,this.asn1Object=r,this.isExplicit?(this.hV=this.asn1Object.getEncodedHex(),this.hTLV=null,this.isModified=!0):(this.hV=null,this.hTLV=r.getEncodedHex(),this.hTLV=this.hTLV.replace(/^../,e),this.isModified=!1)},this.getFreshValueHex=function(){return this.hV},typeof n!="undefined"&&(typeof n.tag!="undefined"&&(this.hT=n.tag),typeof n.explicit!="undefined"&&(this.isExplicit=n.explicit),typeof n.obj!="undefined"&&(this.asn1Object=n.obj,this.setASN1Object(this.isExplicit,this.hT,this.asn1Object)))};K(F.asn1.DERTaggedObject,F.asn1.ASN1Object);var $s=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(r[s]=i[s])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),wr=function(n){$s(t,n);function t(e){var r=n.call(this)||this;return e&&(typeof e=="string"?r.parseKey(e):(t.hasPrivateKeyProperty(e)||t.hasPublicKeyProperty(e))&&r.parsePropertiesFrom(e)),r}return t.prototype.parseKey=function(e){try{var r=0,i=0,s=/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/,a=s.test(e)?ps.decode(e):o0.unarmor(e),o=ys.decode(a);if(o.sub.length===3&&(o=o.sub[2].sub[0]),o.sub.length===9){r=o.sub[1].getHexStringValue(),this.n=Y(r,16),i=o.sub[2].getHexStringValue(),this.e=parseInt(i,16);var h=o.sub[3].getHexStringValue();this.d=Y(h,16);var c=o.sub[4].getHexStringValue();this.p=Y(c,16);var u=o.sub[5].getHexStringValue();this.q=Y(u,16);var d=o.sub[6].getHexStringValue();this.dmp1=Y(d,16);var f=o.sub[7].getHexStringValue();this.dmq1=Y(f,16);var x=o.sub[8].getHexStringValue();this.coeff=Y(x,16)}else if(o.sub.length===2)if(o.sub[0].sub){var l=o.sub[1],g=l.sub[0];r=g.sub[0].getHexStringValue(),this.n=Y(r,16),i=g.sub[1].getHexStringValue(),this.e=parseInt(i,16)}else r=o.sub[0].getHexStringValue(),this.n=Y(r,16),i=o.sub[1].getHexStringValue(),this.e=parseInt(i,16);else return!1;return!0}catch(E){return!1}},t.prototype.getPrivateBaseKey=function(){var e={array:[new F.asn1.DERInteger({int:0}),new F.asn1.DERInteger({bigint:this.n}),new F.asn1.DERInteger({int:this.e}),new F.asn1.DERInteger({bigint:this.d}),new F.asn1.DERInteger({bigint:this.p}),new F.asn1.DERInteger({bigint:this.q}),new F.asn1.DERInteger({bigint:this.dmp1}),new F.asn1.DERInteger({bigint:this.dmq1}),new F.asn1.DERInteger({bigint:this.coeff})]},r=new F.asn1.DERSequence(e);return r.getEncodedHex()},t.prototype.getPrivateBaseKeyB64=function(){return Yt(this.getPrivateBaseKey())},t.prototype.getPublicBaseKey=function(){var e=new F.asn1.DERSequence({array:[new F.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new F.asn1.DERNull]}),r=new F.asn1.DERSequence({array:[new F.asn1.DERInteger({bigint:this.n}),new F.asn1.DERInteger({int:this.e})]}),i=new F.asn1.DERBitString({hex:"00"+r.getEncodedHex()}),s=new F.asn1.DERSequence({array:[e,i]});return s.getEncodedHex()},t.prototype.getPublicBaseKeyB64=function(){return Yt(this.getPublicBaseKey())},t.wordwrap=function(e,r){if(r=r||64,!e)return e;var i="(.{1,"+r+`})( +|$
?)|(.{1,`+r+"})";return e.match(RegExp(i,"g")).join(`
`)},t.prototype.getPrivateKey=function(){var e=`-----BEGIN RSA PRIVATE KEY-----
`;return e+=t.wordwrap(this.getPrivateBaseKeyB64())+`
`,e+="-----END RSA PRIVATE KEY-----",e},t.prototype.getPublicKey=function(){var e=`-----BEGIN PUBLIC KEY-----
`;return e+=t.wordwrap(this.getPublicBaseKeyB64())+`
`,e+="-----END PUBLIC KEY-----",e},t.hasPublicKeyProperty=function(e){return e=e||{},e.hasOwnProperty("n")&&e.hasOwnProperty("e")},t.hasPrivateKeyProperty=function(e){return e=e||{},e.hasOwnProperty("n")&&e.hasOwnProperty("e")&&e.hasOwnProperty("d")&&e.hasOwnProperty("p")&&e.hasOwnProperty("q")&&e.hasOwnProperty("dmp1")&&e.hasOwnProperty("dmq1")&&e.hasOwnProperty("coeff")},t.prototype.parsePropertiesFrom=function(e){this.n=e.n,this.e=e.e,e.hasOwnProperty("d")&&(this.d=e.d,this.p=e.p,this.q=e.q,this.dmp1=e.dmp1,this.dmq1=e.dmq1,this.coeff=e.coeff)},t}(Ns),n0,Xs=typeof process!="undefined"?(n0=process.env)===null||n0===void 0?void 0:n0.npm_package_version:void 0,js=function(){function n(t){t===void 0&&(t={}),this.default_key_size=t.default_key_size?parseInt(t.default_key_size,10):1024,this.default_public_exponent=t.default_public_exponent||"010001",this.log=t.log||!1,this.key=t.key||null}return n.prototype.setKey=function(t){t?(this.log&&this.key&&console.warn("A key was already set, overriding existing."),this.key=new wr(t)):!this.key&&this.log&&console.error("A key was not set.")},n.prototype.setPrivateKey=function(t){this.setKey(t)},n.prototype.setPublicKey=function(t){this.setKey(t)},n.prototype.decrypt=function(t){try{return this.getKey().decrypt(gr(t))}catch(e){return!1}},n.prototype.encrypt=function(t){try{return Yt(this.getKey().encrypt(t))}catch(e){return!1}},n.prototype.encryptOAEP=function(t){try{return Yt(this.getKey().encrypt(t,zs))}catch(e){return!1}},n.prototype.sign=function(t,e,r){e===void 0&&(e=function(i){return i}),r===void 0&&(r="");try{return Yt(this.getKey().sign(t,e,r))}catch(i){return!1}},n.prototype.signSha256=function(t){return this.sign(t,function(e){return Ar(a0(e))},"sha256")},n.prototype.verify=function(t,e,r){r===void 0&&(r=function(i){return i});try{return this.getKey().verify(t,gr(e),r)}catch(i){return!1}},n.prototype.verifySha256=function(t,e){return this.verify(t,e,function(r){return Ar(a0(r))})},n.prototype.getKey=function(t){if(!this.key){if(this.key=new wr,t&&{}.toString.call(t)==="[object Function]"){this.key.generateAsync(this.default_key_size,this.default_public_exponent,t);return}this.key.generate(this.default_key_size,this.default_public_exponent)}return this.key},n.prototype.getPrivateKey=function(){return this.getKey().getPrivateKey()},n.prototype.getPrivateKeyB64=function(){return this.getKey().getPrivateBaseKeyB64()},n.prototype.getPublicKey=function(){return this.getKey().getPublicKey()},n.prototype.getPublicKeyB64=function(){return this.getKey().getPublicBaseKeyB64()},n.version=Xs,n}();class Ys{constructor(){this.b64map="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",this.b64pad="=",this.BI_RM="0123456789abcdefghijklmnopqrstuvwxyz",this.jsencrypt=new js}int2char(t){return this.BI_RM.charAt(t)}hex2b64(t){let e,r,i="";for(e=0;e+3<=t.length;e+=3)r=parseInt(t.substring(e,e+3),16),i+=this.b64map.charAt(r>>6)+this.b64map.charAt(r&63);for(e+1===t.length?(r=parseInt(t.substring(e,e+1),16),i+=this.b64map.charAt(r<<2)):e+2===t.length&&(r=parseInt(t.substring(e,e+2),16),i+=this.b64map.charAt(r>>2)+this.b64map.charAt((r&3)<<4));(i.length&3)>0;)i+=this.b64pad;return i}b64tohex(t){let e="",r,i=0,s=0;for(r=0;r<t.length&&t.charAt(r)!==this.b64pad;++r){const a=this.b64map.indexOf(t.charAt(r));a<0||(i===0?(e+=this.int2char(a>>2),s=a&3,i=1):i===1?(e+=this.int2char(s<<2|a>>4),s=a&15,i=2):i===2?(e+=this.int2char(s),e+=this.int2char(a>>2),s=a&3,i=3):(e+=this.int2char(s<<2|a>>4),e+=this.int2char(a&15),i=0))}return i===1&&(e+=this.int2char(s<<2)),e}setPublicKey(t){this.jsencrypt.setPublicKey(t)}setPrivateKey(t){this.jsencrypt.setPrivateKey(t)}getKey(){return this.jsencrypt.getKey()}getKeyBitLength(){try{const t=this.getKey();if(t&&t.n)return t.n.bitLength()}catch(t){}return 1024}encryptLong(t){try{const e=this.getKey(),r=this.getKeyBitLength()+7>>3,i=r-11,s=r*2;let a="";if(t.length>i)return(t.match(new RegExp(".{1,117}","g"))||[]).forEach(d=>{const f=e.encrypt(d);a+=f.padStart(s,"0")}),this.hex2b64(a);const o=e.encrypt(t);return this.hex2b64(o.padStart(s,"0"))}catch(e){return console.error("RSA encryptLong error:",e),""}}decryptLong(t){try{const e=this.getKey(),r=this.getKeyBitLength()+7>>3,i=this.b64tohex(t);if(i.length>r*2){let a="";return(i.match(new RegExp(".{1,256}","g"))||[]).forEach(c=>{const u=e.decrypt(c);a+=u}),a}return e.decrypt(i)}catch(e){return console.error("RSA decryptLong error:",e),""}}encrypt(t){return this.jsencrypt.encrypt(t)||""}decrypt(t){return this.jsencrypt.decrypt(t)||""}}exports.DetectStreamType=Pt;exports.PressureState=f0;exports.ResizeMode=It;exports.TYPEOF=J;exports.XYAsyncQueue=Jn;exports.XYBrowserDetector=Et;exports.XYDebounce=Pr;exports.XYDetector=_r;exports.XYDevicePressure=ns;exports.XYEmitter=jn;exports.XYEncryptLong=Ys;exports.XYFrameBridge=Yn;exports.XYFullScreen=Hr;exports.XYJson=Kt;exports.XYList=es;exports.XYMap=rs;exports.XYNoSleep=ii;exports.XYPcmUtils=cs;exports.XYResize=Mr;exports.XYSnapshot=is;exports.XYStore=Or;exports.XYStreamDetector=je;exports.XYSyncQueue=ts;exports.XYThrottle=Ir;exports.XYTime=ss;exports.XYValidator=Tr;exports.XYZoom=At;exports.buildQueryString=us;exports.fScreen=os;exports.getDecimal=Zn;exports.getParameterByName=hs;exports.mapToObj=Gn;exports.replacePlaceholders=Kn;exports.resize=Qn;exports.sleepAsync=Fr;exports.sleepSync=Sr;exports.splitUrl=fs;exports.validator=Fi;exports.zoom=as;
