cobrowse-sdk-js 2.22.2 → 2.22.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/dist/CobrowseIO.js +1 -1
- package/dist/CobrowseIO.umd.js +1 -1
- package/package.json +1 -1
package/dist/CobrowseIO.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! For license information please see CobrowseIO.js.LICENSE.txt */
|
|
2
|
-
!function(){var e={13606:function(e,t,r){"use strict";function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function o(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}Object.defineProperty(t,"__esModule",{value:!0}),t.EbmlElementId=void 0,t.getEbmlElementIdLength=u,t.getEbmlElementLevel=function(e){switch(e){case a.Ebml:case a.Segment:return 0;case a.Cluster:case a.Cues:case a.DocType:case a.DocTypeReadVersion:case a.DocTypeVersion:case a.EbmlMaxIdLength:case a.EbmlMaxSizeLength:case a.EbmlReadVersion:case a.EbmlVersion:case a.Info:case a.SeekHead:case a.Tracks:return 1;case a.CuePoint:case a.DateUTC:case a.Duration:case a.MuxingApp:case a.Position:case a.SegmentUID:case a.Seek:case a.SimpleBlock:case a.Timestamp:case a.TimestampScale:case a.Title:case a.TrackEntry:case a.WritingApp:return 2;case a.Audio:case a.CodecDecodeAll:case a.CodecID:case a.CodecName:case a.CodecPrivate:case a.CueTime:case a.CueTrackPositions:case a.DefaultDuration:case a.FlagDefault:case a.FlagEnabled:case a.FlagForced:case a.FlagLacing:case a.MaxBlockAdditionID:case a.MinCache:case a.SeekID:case a.SeekPosition:case a.SeekPreRoll:case a.TrackNumber:case a.TrackTimestampScale:case a.TrackType:case a.TrackUID:case a.Video:return 3;case a.Channels:case a.CueBlockNumber:case a.CueClusterPosition:case a.CueTrack:case a.FlagInterlaced:case a.PixelHeight:case a.PixelWidth:case a.SamplingFrequency:case a.Colour:return 4;case a.CueRefTime:return 5;case a.Void:return-1;default:throw Error("cannot determine level of unknown ebml element with id ".concat(e))}},t.getEbmlElementName=function(e){switch(e){case a.Ebml:return"EBML";case a.EbmlVersion:return"EBMLVersion";case a.EbmlReadVersion:return"EBMLReadVersion";case a.EbmlMaxIdLength:return"EBMLMaxIDLength";case a.EbmlMaxSizeLength:return"EBMLMaxSizeLength";case a.DocType:return"DocType";case a.DocTypeVersion:return"DocTypeVersion";case a.DocTypeReadVersion:return"DocTypeReadVersion";case a.Void:return"Void";case a.Segment:return"Segment";case a.SeekHead:return"SeekHead";case a.Seek:return"Seek";case a.SeekID:return"SeekID";case a.SeekPosition:return"SeekPosition";case a.Info:return"Info";case a.TimestampScale:return"TimestampScale";case a.Duration:return"Duration";case a.DateUTC:return"DateUTC";case a.Title:return"Title";case a.MuxingApp:return"MuxingApp";case a.WritingApp:return"WritinApp";case a.Cluster:return"Cluster";case a.Timestamp:return"Timestamp";case a.SimpleBlock:return"SimpleBlock";case a.SegmentUID:return"SegmentUID (unsupported by WebM)";case a.Tracks:return"Tracks";case a.TrackEntry:return"TrackEntry";case a.TrackNumber:return"TrackNumber";case a.TrackUID:return"TrackUID";case a.TrackType:return"TrackType";case a.FlagEnabled:return"FlagEnabled";case a.FlagDefault:return"FlagDefault";case a.FlagForced:return"FlagForced";case a.FlagLacing:return"FlagLacing";case a.MinCache:return"MinCache";case a.MaxBlockAdditionID:return"MaxBlockAdditionID";case a.CodecID:return"CodecID";case a.CodecDecodeAll:return"CodecDecodeAll";case a.SeekPreRoll:return"SeekPreRoll";case a.Video:return"Video";case a.FlagInterlaced:return"FlagInterlaced";case a.PixelWidth:return"PixelWidth";case a.PixelHeight:return"PixelHeight";case a.DefaultDuration:return"DefaultDuration";case a.TrackTimestampScale:return"TrackTimestampScale";case a.CodecName:return"CodecName";case a.CodecPrivate:return"CodecPrivate";case a.Audio:return"Audio";case a.SamplingFrequency:return"SamplingFrequency";case a.Channels:return"Channels";case a.Cues:return"Cues";case a.CuePoint:return"CuePoint";case a.CueTime:return"CueTime";case a.CueTrackPositions:return"CueTrackPositions";case a.CueTrack:return"CueTrack";case a.CueClusterPosition:return"CueClusterPosition";case a.CueRefTime:return"CueRefTime";case a.CueBlockNumber:return"CueBlockNumber";case a.Position:return"Position";case a.Colour:return"Colour";default:return""}},t.readEbmlElementId=function(e,t){var r=u(e.current);if(r>e.bytesAvailable)return!1;for(var n=e.current,o=0;o<r-1;++o)n=n<<8|e.nextUnsafe();return e.nextUnsafe(),e.checkBounds(),t.id=n,t.idLength=r,!0},r(69070);var a=o((function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}));function u(e){for(var t=7;t>3;t--)if(e&1<<t)return 8-t;throw Error("invalid ebml element id")}t.EbmlElementId=a,i(a,"Ebml",440786851),i(a,"EbmlVersion",17030),i(a,"EbmlReadVersion",17143),i(a,"EbmlMaxIdLength",17138),i(a,"EbmlMaxSizeLength",17139),i(a,"DocType",17026),i(a,"DocTypeVersion",17031),i(a,"DocTypeReadVersion",17029),i(a,"Void",236),i(a,"Segment",408125543),i(a,"SeekHead",290298740),i(a,"Seek",19899),i(a,"SeekID",21419),i(a,"SeekPosition",21420),i(a,"Info",357149030),i(a,"TimestampScale",2807729),i(a,"Duration",17545),i(a,"DateUTC",17505),i(a,"Title",31657),i(a,"MuxingApp",19840),i(a,"WritingApp",22337),i(a,"Cluster",524531317),i(a,"Timestamp",231),i(a,"SimpleBlock",163),i(a,"SegmentUID",29604),i(a,"Tracks",374648427),i(a,"TrackEntry",174),i(a,"TrackNumber",215),i(a,"TrackUID",29637),i(a,"TrackType",131),i(a,"FlagEnabled",185),i(a,"FlagDefault",136),i(a,"FlagForced",21930),i(a,"FlagLacing",156),i(a,"MinCache",28135),i(a,"MaxBlockAdditionID",21998),i(a,"CodecID",134),i(a,"CodecDecodeAll",170),i(a,"SeekPreRoll",22203),i(a,"Video",224),i(a,"FlagInterlaced",154),i(a,"PixelWidth",176),i(a,"PixelHeight",186),i(a,"DefaultDuration",2352003),i(a,"TrackTimestampScale",2306383),i(a,"CodecName",2459272),i(a,"CodecPrivate",25506),i(a,"Audio",225),i(a,"SamplingFrequency",181),i(a,"Channels",159),i(a,"Cues",475249515),i(a,"CuePoint",187),i(a,"CueTime",179),i(a,"CueTrackPositions",183),i(a,"CueTrack",247),i(a,"CueClusterPosition",241),i(a,"CueRefTime",150),i(a,"CueBlockNumber",21368),i(a,"Position",167),i(a,"Colour",21936)},3300:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EbmlElementType=void 0,t.getEbmlElementType=function(e){switch(e){case n.EbmlElementId.Segment:case n.EbmlElementId.Ebml:case n.EbmlElementId.SeekHead:case n.EbmlElementId.Seek:case n.EbmlElementId.Cluster:case n.EbmlElementId.Info:case n.EbmlElementId.Tracks:case n.EbmlElementId.TrackEntry:case n.EbmlElementId.Video:case n.EbmlElementId.Audio:case n.EbmlElementId.Cues:case n.EbmlElementId.CuePoint:case n.EbmlElementId.CueTrackPositions:case n.EbmlElementId.Colour:return u.Master;case n.EbmlElementId.EbmlVersion:case n.EbmlElementId.EbmlReadVersion:case n.EbmlElementId.EbmlMaxIdLength:case n.EbmlElementId.EbmlMaxSizeLength:case n.EbmlElementId.DocTypeVersion:case n.EbmlElementId.DocTypeReadVersion:case n.EbmlElementId.SeekPosition:case n.EbmlElementId.TimestampScale:case n.EbmlElementId.Timestamp:case n.EbmlElementId.TrackNumber:case n.EbmlElementId.TrackUID:case n.EbmlElementId.TrackType:case n.EbmlElementId.FlagEnabled:case n.EbmlElementId.FlagDefault:case n.EbmlElementId.FlagForced:case n.EbmlElementId.FlagLacing:case n.EbmlElementId.MinCache:case n.EbmlElementId.MaxBlockAdditionID:case n.EbmlElementId.CodecDecodeAll:case n.EbmlElementId.SeekPreRoll:case n.EbmlElementId.FlagInterlaced:case n.EbmlElementId.PixelWidth:case n.EbmlElementId.PixelHeight:case n.EbmlElementId.DefaultDuration:case n.EbmlElementId.Channels:case n.EbmlElementId.CueTime:case n.EbmlElementId.CueTrack:case n.EbmlElementId.CueClusterPosition:case n.EbmlElementId.CueRefTime:case n.EbmlElementId.CueBlockNumber:case n.EbmlElementId.Position:return u.UnsignedInteger;case n.EbmlElementId.DocType:case n.EbmlElementId.CodecID:return u.String;case n.EbmlElementId.Void:case n.EbmlElementId.SeekID:case n.EbmlElementId.SimpleBlock:case n.EbmlElementId.SegmentUID:case n.EbmlElementId.CodecPrivate:return u.Binary;case n.EbmlElementId.Duration:case n.EbmlElementId.TrackTimestampScale:case n.EbmlElementId.SamplingFrequency:return u.Float;case n.EbmlElementId.DateUTC:return u.Date;case n.EbmlElementId.Title:case n.EbmlElementId.MuxingApp:case n.EbmlElementId.WritingApp:case n.EbmlElementId.CodecName:return u.Utf8String;default:throw Error("cannot determine type of unknown ebml element with id ".concat(e))}},r(69070);var n=r(13606);function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function i(e,t,r){return t&&o(e.prototype,t),r&&o(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var u=i((function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}));t.EbmlElementType=u,a(u,"Unknown",0),a(u,"Master",1),a(u,"UnsignedInteger",2),a(u,"SignedInteger",3),a(u,"String",4),a(u,"Utf8String",5),a(u,"Binary",6),a(u,"Float",7),a(u,"Date",8)},61981:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.epochTimestampOffset=t.EbmlElement=void 0,t.getEbmlElementSizeLength=s,t.getEbmlElementValue=function(e,t){switch(e){case o.EbmlElementType.UnsignedInteger:case o.EbmlElementType.SignedInteger:return(0,i.readBigEndianNumber)(t);case o.EbmlElementType.String:return String.fromCharCode.apply(null,t);case o.EbmlElementType.Utf8String:case o.EbmlElementType.Float:throw new Error("cannot read value of element with type ".concat(e));case o.EbmlElementType.Date:return u+(0,i.readBigEndianNumber)(t);case o.EbmlElementType.Binary:return t}},t.readEbmlLementSize=function(e,t){var r=s(e.current);if(r>e.bytesAvailable)return!1;for(var n=e.current-(1<<8-r),o=0;o<r-1;++o)n=n<<8|e.nextUnsafe();return e.nextUnsafe(),e.checkBounds(),t.sizeLength=r,t.size=n===1<<8*r-1?-1:n,!0},r(68309),r(69070);var n=r(13606),o=r(3300),i=r(22706);function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var u=978307200;t.epochTimestampOffset=u;var c=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r;return t=e,(r=[{key:"elementSize",get:function(){return this.idLength+this.sizeLength+this.size}},{key:"id",get:function(){return this._id},set:function(e){this._id=e,this.name=(0,n.getEbmlElementName)(this._id),this.type=(0,o.getEbmlElementType)(this._id)}}])&&a(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function s(e){if(1==e)return 8;for(var t=7;t>0;t--)if(e&1<<t)return 8-t;throw Error("invalid ebml element size")}t.EbmlElement=c},81639:function(e,t,r){"use strict";r(69070),Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"MediaInfo",{enumerable:!0,get:function(){return u.MediaInfo}}),Object.defineProperty(t,"MediaPacket",{enumerable:!0,get:function(){return a.MediaPacket}}),Object.defineProperty(t,"MediaRecorderDemuxer",{enumerable:!0,get:function(){return n.MediaRecorderDemuxer}}),Object.defineProperty(t,"MediaRecorderDemuxerEvents",{enumerable:!0,get:function(){return o.MediaRecorderDemuxerEvents}}),Object.defineProperty(t,"createMediaRecorderDemuxer",{enumerable:!0,get:function(){return i.createMediaRecorderDemuxer}});var n=r(79285),o=r(52981),i=r(76202),a=r(94151),u=r(35504)},35504:function(e,t,r){"use strict";function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function o(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}r(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.MediaInfo=void 0;var i=o((function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.videoTrack={},this.audioTrack={}}));t.MediaInfo=i},94151:function(e,t,r){"use strict";function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function o(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}r(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.MediaPacket=void 0;var i=o((function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.data=t,this.ptsMs=r}));t.MediaPacket=i},52981:function(e,t,r){"use strict";function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function o(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}Object.defineProperty(t,"__esModule",{value:!0}),t.MediaRecorderDemuxerEvents=void 0,r(69070);var a=o((function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}));t.MediaRecorderDemuxerEvents=a,i(a,"Error","error"),i(a,"MediaInfo","media-info"),i(a,"MediaPacket","media-packet")},76202:function(e,t,r){"use strict";r(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.createMediaRecorderDemuxer=function(e,t){var r;return"undefined"!=typeof MediaRecorder==0?null:(("function"==typeof MediaRecorder.isTypeSupported==0||MediaRecorder.isTypeSupported("video/webm;codecs=h264"))&&(r=new n.WebmMediaRecorderDemuxer(new MediaRecorder(e,{mimeType:"video/webm;codecs=h264"}),t)),r)};var n=r(15102);r(52981)},79285:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}r(41539),r(12419),r(69070),r(47941),r(82526),r(57327),r(38880),r(54747),r(49337),r(33321),r(41817),r(32165),r(66992),r(78783),r(33948),r(72443),r(39341),r(73706),r(10408),r(68309),r(47042),Object.defineProperty(t,"__esModule",{value:!0}),t.defaultMediaRecorderOptions=t.MediaRecorderDemuxer=void 0,r(68304),r(30489);var o=r(35504),i=r(52981);function a(){a=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},u=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function f(e,t,r,n){var i=t&&t.prototype instanceof h?t:h,a=Object.create(i.prototype),u=new j(n||[]);return o(a,"_invoke",{value:O(e,r,u)}),a}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=f;var p={};function h(){}function v(){}function y(){}var m={};l(m,u,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(T([])));b&&b!==t&&r.call(b,u)&&(m=b);var w=y.prototype=h.prototype=Object.create(m);function E(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function i(o,a,u,c){var s=d(e[o],e,a);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==n(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){i("next",e,u,c)}),(function(e){i("throw",e,u,c)})):t.resolve(f).then((function(e){l.value=e,u(l)}),(function(e){return i("throw",e,u,c)}))}c(s.arg)}var a;o(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){i(e,r,t,n)}))}return a=a?a.then(n,n):n()}})}function O(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=S(a,r);if(u){if(u===p)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=d(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===p)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function S(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method))return p;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var n=d(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,p;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,p):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function T(e){if(e){var t=e[u];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:P}}function P(){return{value:void 0,done:!0}}return v.prototype=y,o(w,"constructor",{value:y,configurable:!0}),o(y,"constructor",{value:v,configurable:!0}),v.displayName=l(y,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,l(e,s,"GeneratorFunction")),e.prototype=Object.create(w),e},e.awrap=function(e){return{__await:e}},E(_.prototype),l(_.prototype,c,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new _(f(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(w),l(w,s,"Generator"),l(w,u,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=T,j.prototype={constructor:j,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),k(r),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:T(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},e}function u(e,t,r,n,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void r(e)}u.done?t(c):Promise.resolve(c).then(n,o)}function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach((function(t){l(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function l(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function f(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}function p(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}var v=r(17187),y={timerInterval:100,logCallback:null};t.defaultMediaRecorderOptions=y;var m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}(m,e);var t,r,n,c,l,v=(c=m,l=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=h(c);if(l){var r=h(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return p(this,e)});function m(e,t){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,m),(r=v.call(this)).options=t?s(s({},y),t):y,r.mediaRecorder=e,r.mediaInfo=new o.MediaInfo,r.mediaRecorder.addEventListener("dataavailable",function(){var e,t=(e=a().mark((function e(t){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r.addBlob(t.data);case 1:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){u(i,n,o,a,c,"next",e)}function c(e){u(i,n,o,a,c,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}()),r.mediaRecorder.addEventListener("error",(function(e){r.emit(i.MediaRecorderDemuxerEvents.Error,e.error)})),r}return t=m,n=[{key:"isSupported",value:function(e){return"undefined"!=typeof MediaRecorder&&"function"==typeof MediaRecorder.prototype.requestData&&"function"==typeof MediaRecorder.isTypeSupported&&MediaRecorder.isTypeSupported(e)}}],(r=[{key:"start",value:function(){var e=this;this.mediaRecorder.start(),"function"==typeof this.mediaRecorder.requestData?this.timer=window.setInterval((function(){e.mediaRecorder.requestData()}),this.options.timerInterval):this.timer=window.setTimeout((function(){e.mediaRecorder.stop()}),this.options.timerInterval)}},{key:"stop",value:function(){"recording"===this.mediaRecorder.state&&this.mediaRecorder.stop(),this.timer&&(clearInterval(this.timer),this.timer=null)}}])&&f(t.prototype,r),n&&f(t,n),Object.defineProperty(t,"prototype",{writable:!1}),m}(v);t.MediaRecorderDemuxer=m},15102:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}r(69070),r(68304),r(30489),r(12419),r(82526),r(41817),r(32165),r(78783),r(33948),r(72443),r(39341),r(73706),r(10408),r(54747),r(47042),Object.defineProperty(t,"__esModule",{value:!0}),t.webmVideoTrackType=t.webmAudioTrackType=t.WebmMediaRecorderDemuxer=void 0,r(41539),r(66992),r(82472),r(92990),r(18927),r(33105),r(35035),r(74345),r(7174),r(32846),r(44731),r(77209),r(96319),r(58867),r(37789),r(33739),r(29368),r(14483),r(12056),r(3462),r(30678),r(27462),r(33824),r(55021),r(12974),r(15016),r(92222),r(68309),r(19601),r(73210);var o=r(79285),i=r(13606),a=r(61981),u=r(22706),c=r(3300),s=r(52981),l=r(94151);function f(){f=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var i=t&&t.prototype instanceof h?t:h,a=Object.create(i.prototype),u=new j(n||[]);return o(a,"_invoke",{value:O(e,r,u)}),a}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var p={};function h(){}function v(){}function y(){}var m={};s(m,a,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(T([])));b&&b!==t&&r.call(b,a)&&(m=b);var w=y.prototype=h.prototype=Object.create(m);function E(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function i(o,a,u,c){var s=d(e[o],e,a);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==n(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){i("next",e,u,c)}),(function(e){i("throw",e,u,c)})):t.resolve(f).then((function(e){l.value=e,u(l)}),(function(e){return i("throw",e,u,c)}))}c(s.arg)}var a;o(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){i(e,r,t,n)}))}return a=a?a.then(n,n):n()}})}function O(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=S(a,r);if(u){if(u===p)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=d(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===p)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function S(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method))return p;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var n=d(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,p;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,p):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function T(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:P}}function P(){return{value:void 0,done:!0}}return v.prototype=y,o(w,"constructor",{value:y,configurable:!0}),o(y,"constructor",{value:v,configurable:!0}),v.displayName=s(y,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,s(e,c,"GeneratorFunction")),e.prototype=Object.create(w),e},e.awrap=function(e){return{__await:e}},E(_.prototype),s(_.prototype,u,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new _(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(w),s(w,c,"Generator"),s(w,a,(function(){return this})),s(w,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=T,j.prototype={constructor:j,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),k(r),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:T(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},e}function d(e,t,r,n,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void r(e)}u.done?t(c):Promise.resolve(c).then(n,o)}function p(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function h(e,t){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},h(e,t)}function v(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}function m(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function g(){var e=this;return new Promise((function(t){var r=new FileReader;r.onload=function(){t(r.result)},r.readAsArrayBuffer(e)}))}t.webmVideoTrackType=1,t.webmAudioTrackType=2;var b=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h(e,t)}(E,e);var t,r,n,o,m,b,w=(m=E,b=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=y(m);if(b){var r=y(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return v(this,e)});function E(e,t){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,E),(r=w.call(this,e,t)).state=E.stateParseElementId,r.currentEbmlElement=new a.EbmlElement,r.uint8ArrayAggregator=new u.Uint8ArrayAggregator,r.clusterTimestamp=0,r.timestampMsScale=1,r.ebmlElementStack=[],Blob.prototype.arrayBuffer=Blob.prototype.arrayBuffer||g,r}return t=E,r=[{key:"addBlob",value:(n=f().mark((function e(t){var r,n,o,d,p,h,v,y,m,g,b,w,_;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.t0=this.uint8ArrayAggregator,e.t1=Uint8Array,e.next=5,t.arrayBuffer();case 5:e.t2=e.sent,e.t3=new e.t1(e.t2),e.t0.addArray.call(e.t0,e.t3);case 8:if(!this.uint8ArrayAggregator.bytesAvailable){e.next=106;break}e.t4=this.state,e.next=e.t4===E.stateParseElementId?12:e.t4===E.stateParseElementLength?19:e.t4===E.stateParseElementValue?27:104;break;case 12:if(!(0,i.readEbmlElementId)(this.uint8ArrayAggregator,this.currentEbmlElement)){e.next=16;break}null==this.options.logCallback||this.options.logCallback("got new current ebml element (id: ".concat(this.currentEbmlElement.id,", name: ").concat(this.currentEbmlElement.name,")")),e.next=17;break;case 16:return e.abrupt("break",104);case 17:return this.state=E.stateParseElementLength,e.abrupt("break",104);case 19:if(!(0,a.readEbmlLementSize)(this.uint8ArrayAggregator,this.currentEbmlElement)){e.next=23;break}null==this.options.logCallback||this.options.logCallback("got size ".concat(this.currentEbmlElement.size," for current ebml element (id: ").concat(this.currentEbmlElement.id,", name: ").concat(this.currentEbmlElement.name,")")),e.next=24;break;case 23:return e.abrupt("break",104);case 24:return this.ebmlElementStack.length&&-1==this.currentEbmlElement.size&&(this.ebmlElementStack=[]),this.state=E.stateParseElementValue,e.abrupt("break",104);case 27:if(r=(0,c.getEbmlElementType)(this.currentEbmlElement.id),n=r!==c.EbmlElementType.Master||this.currentEbmlElement.id===i.EbmlElementId.Colour,r===c.EbmlElementType.Master&&-1!==this.currentEbmlElement.size&&this.ebmlElementStack.push({element:Object.assign(new a.EbmlElement,this.currentEbmlElement),bytesRemaining:this.currentEbmlElement.size}),this.currentEbmlElement.id!==i.EbmlElementId.CodecID){e.next=40;break}if(n=!1,null!=(o=this.uint8ArrayAggregator.extract(this.currentEbmlElement.size))){e.next=35;break}return e.abrupt("break",104);case 35:d=(0,a.getEbmlElementValue)(this.currentEbmlElement.type,o),1===this.currentTrackType?this.mediaInfo.videoTrack.codecName=d:2===this.currentTrackType&&(this.mediaInfo.audioTrack.codecName=d),null==this.options.logCallback||this.options.logCallback("got codec id ".concat(d)),e.next=91;break;case 40:if(this.currentEbmlElement.id!==i.EbmlElementId.CodecPrivate){e.next=47;break}if(n=!1,null!=this.uint8ArrayAggregator.extract(this.currentEbmlElement.size)){e.next=45;break}return e.abrupt("break",104);case 45:e.next=91;break;case 47:if(this.currentEbmlElement.id!==i.EbmlElementId.TimestampScale){e.next=57;break}if(n=!1,null!=(p=this.uint8ArrayAggregator.extract(this.currentEbmlElement.size))){e.next=52;break}return e.abrupt("break",104);case 52:this.mediaInfo.timestampScale=(0,a.getEbmlElementValue)(this.currentEbmlElement.type,p),this.timestampMsScale=this.mediaInfo.timestampScale/1e6,null==this.options.logCallback||this.options.logCallback("got timestamp scale ".concat(this.mediaInfo.timestampScale)),e.next=91;break;case 57:if(this.currentEbmlElement.id!==i.EbmlElementId.Timestamp){e.next=66;break}if(n=!1,null!=(h=this.uint8ArrayAggregator.extract(this.currentEbmlElement.size))){e.next=62;break}return e.abrupt("break",104);case 62:this.clusterTimestamp=(0,a.getEbmlElementValue)(this.currentEbmlElement.type,h),null==this.options.logCallback||this.options.logCallback("got cluser timestamp ".concat(this.clusterTimestamp)),e.next=91;break;case 66:if(this.currentEbmlElement.id!==i.EbmlElementId.TrackType){e.next=75;break}if(n=!1,null!=(v=this.uint8ArrayAggregator.extract(this.currentEbmlElement.size))){e.next=71;break}return e.abrupt("break",104);case 71:this.currentTrackType=(0,a.getEbmlElementValue)(this.currentEbmlElement.type,v),null==this.options.logCallback||this.options.logCallback("got track with type ".concat(this.currentTrackType)),e.next=91;break;case 75:if(this.currentEbmlElement.id!==i.EbmlElementId.SimpleBlock){e.next=91;break}if(n=!1,null!=(y=this.uint8ArrayAggregator.extract(this.currentEbmlElement.size))){e.next=80;break}return e.abrupt("break",104);case 80:(m=new u.Uint8ArrayAggregator).addArray(y),g={},(0,a.readEbmlLementSize)(m,g),b=(0,u.readBigEndianNumber)(m.extract(2)),m.current,m.next(),m.trim(),w=(this.clusterTimestamp+b)*this.timestampMsScale,this.emit(s.MediaRecorderDemuxerEvents.MediaPacket,new l.MediaPacket(m.array,w));case 91:if(n&&this.uint8ArrayAggregator.skip(this.currentEbmlElement.size),r===c.EbmlElementType.Master||!this.ebmlElementStack.length){e.next=102;break}this.ebmlElementStack[this.ebmlElementStack.length-1].bytesRemaining-=this.currentEbmlElement.elementSize;case 94:if(0!==this.ebmlElementStack[this.ebmlElementStack.length-1].bytesRemaining){e.next=100;break}_=this.ebmlElementStack.pop(),this.ebmlElementStack.length&&(this.ebmlElementStack[this.ebmlElementStack.length-1].bytesRemaining-=_.element.elementSize),_.element.id===i.EbmlElementId.Tracks&&this.emit(s.MediaRecorderDemuxerEvents.MediaInfo,this.mediaInfo),e.next=101;break;case 100:return e.abrupt("break",102);case 101:if(this.ebmlElementStack.length){e.next=94;break}case 102:return this.state=E.stateParseElementId,e.abrupt("break",104);case 104:e.next=8;break;case 106:this.uint8ArrayAggregator.trim(),e.next=113;break;case 109:e.prev=109,e.t5=e.catch(0),this.stop(),this.emit(s.MediaRecorderDemuxerEvents.Error,e.t5);case 113:case"end":return e.stop()}}),e,this,[[0,109]])})),o=function(){var e=this,t=arguments;return new Promise((function(r,o){var i=n.apply(e,t);function a(e){d(i,r,o,a,u,"next",e)}function u(e){d(i,r,o,a,u,"throw",e)}a(void 0)}))},function(e){return o.apply(this,arguments)})}],r&&p(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),E}(o.MediaRecorderDemuxer);t.WebmMediaRecorderDemuxer=b,m(b,"stateParseElementId",1),m(b,"stateParseElementLength",2),m(b,"stateParseElementValue",3)},22706:function(e,t,r){"use strict";function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}r(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.Uint8ArrayAggregator=void 0,t.readBigEndianNumber=function(e){var t=0;return e.forEach((function(e){t=t<<8|e})),t},r(41539),r(54747),r(47042),r(66992),r(82472),r(92990),r(18927),r(33105),r(35035),r(74345),r(7174),r(32846),r(44731),r(77209),r(96319),r(58867),r(37789),r(33739),r(29368),r(14483),r(12056),r(3462),r(30678),r(27462),r(33824),r(55021),r(12974),r(15016),r(92222);var o=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.array=null,this.current=null,this.offset=0}var t,r;return t=e,(r=[{key:"addArray",value:function(e){if(null!=e&&0!=e.length)if(this.bytesToSkip>=e.length)this.bytesToSkip-=e.length;else{if(this.bytesToSkip&&(e=e.slice(this.bytesToSkip)),this.array){var t=new Uint8Array(this.array.length-this.offset+e.length);t.set(this.offset?this.array.slice(this.offset):this.array,0),t.set(e,this.array.length-this.offset),this.array=t,this.offset=0}else this.array=e;this.current=this.array[0]}}},{key:"checkBounds",value:function(){if(this.offset===this.array.length)this.offset=0,this.current=null,this.array=null;else{if(!(this.offset<this.array.length))throw Error("invalid Uint8ArrayAggregator state, offset (".concat(this.offset,") is larger than bytes in the current array (").concat(this.array.length,")"));this.current=this.array[this.offset]}}},{key:"next",value:function(){return this.array?(this.offset++,this.checkBounds(),this.current):null}},{key:"nextUnsafe",value:function(){return this.offset++,this.current=this.array[this.offset],this.current}},{key:"bytesAvailable",get:function(){return this.array?this.array.length-this.offset:0}},{key:"trim",value:function(){if(this.array)if(this.offset<this.array.length)this.array=this.array.slice(this.offset),this.offset=0,this.current=this.array[0];else{if(this.offset>this.array.length)throw Error("invalid Uint8ArrayAggregator state, offset (".concat(this.offset,") is larger than bytes in the current array (").concat(this.array.length,")"));this.array=null,this.offset=0,this.current=null}}},{key:"extract",value:function(e){if(this.bytesAvailable>=e){var t=this.offset,r=this.array.slice(t,t+e);return this.offset+=e,this.current=this.array[this.offset],this.checkBounds(),r}return null}},{key:"skip",value:function(e){if(this.bytesAvailable>=e)return this.offset+=e,this.current=this.array[this.offset],void this.checkBounds();e-=this.bytesAvailable,this.array=null,this.offset=0,this.current=null,this.bytesToSkip=e}}])&&n(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.Uint8ArrayAggregator=o},89727:function(e,t,r){"use strict";r(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.GLOBAL_READY_MESSAGE=void 0,t.GLOBAL_READY_MESSAGE="trusted-origin-storage-ready"},73304:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach((function(t){f(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function u(){u=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function f(e,t,r,n){var i=t&&t.prototype instanceof h?t:h,a=Object.create(i.prototype),u=new j(n||[]);return o(a,"_invoke",{value:O(e,r,u)}),a}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=f;var p={};function h(){}function v(){}function y(){}var m={};l(m,a,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(T([])));b&&b!==t&&r.call(b,a)&&(m=b);var w=y.prototype=h.prototype=Object.create(m);function E(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function i(o,a,u,c){var s=d(e[o],e,a);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==n(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){i("next",e,u,c)}),(function(e){i("throw",e,u,c)})):t.resolve(f).then((function(e){l.value=e,u(l)}),(function(e){return i("throw",e,u,c)}))}c(s.arg)}var a;o(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){i(e,r,t,n)}))}return a=a?a.then(n,n):n()}})}function O(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=S(a,r);if(u){if(u===p)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=d(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===p)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function S(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method))return p;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var n=d(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,p;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,p):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function T(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:P}}function P(){return{value:void 0,done:!0}}return v.prototype=y,o(w,"constructor",{value:y,configurable:!0}),o(y,"constructor",{value:v,configurable:!0}),v.displayName=l(y,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,l(e,s,"GeneratorFunction")),e.prototype=Object.create(w),e},e.awrap=function(e){return{__await:e}},E(_.prototype),l(_.prototype,c,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new _(f(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(w),l(w,s,"Generator"),l(w,a,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=T,j.prototype={constructor:j,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),k(r),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:T(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},e}function c(e,t,r,n,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void r(e)}u.done?t(c):Promise.resolve(c).then(n,o)}function s(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){c(i,n,o,a,u,"next",e)}function u(e){c(i,n,o,a,u,"throw",e)}a(void 0)}))}}function l(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function f(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function d(e,t,r){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,r)}function p(e,t){return function(e,t){return t.get?t.get.call(e):t.value}(e,v(e,t,"get"))}function h(e,t,r){return function(e,t,r){if(t.set)t.set.call(e,r);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=r}}(e,v(e,t,"set"),r),r}function v(e,t,r){if(!t.has(e))throw new TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}r(82526),r(41817),r(32165),r(72443),r(39341),r(73706),r(10408),r(30489),r(54747),r(68309),r(68304),r(47042),r(47941),r(57327),r(38880),r(49337),r(33321),r(91038),r(74916),r(69070),r(43371),r(2707),r(41539),r(39714),r(69600),r(82772),r(40561),r(66992),r(78783),r(4129),r(33948),Object.defineProperty(t,"__esModule",{value:!0});var y=r(33059),m=r(29011),g=r(80861),b=r(85625),w=r(81154),E=r(99145),_=new WeakMap,O=new WeakMap,S=new WeakMap,x=function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),d(this,_,{writable:!0,value:void 0}),d(this,O,{writable:!0,value:void 0}),d(this,S,{writable:!0,value:void 0}),f(this,"storage",void 0),f(this,"timeout",void 0),h(this,S,Object.freeze(r.sort())),h(this,O,new y.default(t)),this.timeout=2500,h(this,_,[]),Object.defineProperty(this,"storage",{writable:!1,enumerable:!0,configurable:!1,value:(0,m.default)(this.request.bind(this))}),window.addEventListener("message",this.listen.bind(this))}var t,r,n,i;return t=e,r=[{key:"isCrossDomainSupported",get:function(){return p(this,O).isCrossDomainSupported}},{key:"ready",value:(i=s(u().mark((function e(){return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,p(this,O).ready();case 2:case"end":return e.stop()}}),e,this)}))),function(){return i.apply(this,arguments)})},{key:"destroy",value:function(){p(this,O).destroy()}},{key:"request",value:(n=s(u().mark((function e(t){var r=this;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.ready();case 2:if("string"!=typeof t.method||"string"!=typeof t.path){e.next=6;break}return e.next=5,new Promise((function(e,n){var o=a(a({},t),{},{trustedOrigins:p(r,S),id:(0,E.uuidHash)(Math.random().toString(),p(r,S).join(","))});r.addListener(e,n,o),p(r,O).postMessage(JSON.stringify(o))}));case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"listen",value:function(e){var t,r=this;e.source===(null===(t=p(this,O).iframe)||void 0===t?void 0:t.contentWindow)&&"string"==typeof e.data&&function(){var t,n=(0,w.default)(e.data),i=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return o(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,u=!0,c=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return u=e.done,e},e:function(e){c=!0,a=e},f:function(){try{u||null==r.return||r.return()}finally{if(c)throw a}}}}(p(r,_));try{var a=function(){var e=t.value;new Promise((function(t,r){try{e(n),t()}catch(e){r(e)}}))};for(i.s();!(t=i.n()).done;)a()}catch(e){i.e(e)}finally{i.f()}}()}},{key:"addListener",value:function(e,t,r){var n=this,o=null,i=function i(a){(0,b.default)(a,r)&&(n.removeListener(i),window.clearTimeout(o),(0,g.default)(a.body)?t(a.body):e(a))};p(this,_).push(i),o=window.setTimeout((function(){n.removeListener(i),t(new Error("Timeout: time of "+n.timeout.toString()+"ms exceeded"))}),this.timeout)}},{key:"removeListener",value:function(e){var t=p(this,_).indexOf(e);t>-1&&p(this,_).splice(t,1)}}],r&&l(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=x},95453:function(e,t,r){"use strict";function n(){n=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},u=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function f(e,t,r,n){var i=t&&t.prototype instanceof h?t:h,a=Object.create(i.prototype),u=new j(n||[]);return o(a,"_invoke",{value:O(e,r,u)}),a}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=f;var p={};function h(){}function v(){}function y(){}var m={};l(m,u,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(T([])));b&&b!==t&&r.call(b,u)&&(m=b);var w=y.prototype=h.prototype=Object.create(m);function E(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function n(o,i,u,c){var s=d(e[o],e,i);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==a(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){n("next",e,u,c)}),(function(e){n("throw",e,u,c)})):t.resolve(f).then((function(e){l.value=e,u(l)}),(function(e){return n("throw",e,u,c)}))}c(s.arg)}var i;o(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return i=i?i.then(o,o):o()}})}function O(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=S(a,r);if(u){if(u===p)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=d(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===p)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function S(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method))return p;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var n=d(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,p;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,p):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function T(e){if(e){var t=e[u];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:P}}function P(){return{value:void 0,done:!0}}return v.prototype=y,o(w,"constructor",{value:y,configurable:!0}),o(y,"constructor",{value:v,configurable:!0}),v.displayName=l(y,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,l(e,s,"GeneratorFunction")),e.prototype=Object.create(w),e},e.awrap=function(e){return{__await:e}},E(_.prototype),l(_.prototype,c,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new _(f(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(w),l(w,s,"Generator"),l(w,u,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=T,j.prototype={constructor:j,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),k(r),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:T(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},e}function o(e,t,r,n,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void r(e)}u.done?t(c):Promise.resolve(c).then(n,o)}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function u(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function c(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r(82526),r(41817),r(32165),r(66992),r(78783),r(33948),r(47042),r(68309),r(91038),r(74916),r(72443),r(39341),r(73706),r(10408),r(30489),r(54747),r(68304),r(69070),r(41539),r(36210),Object.defineProperty(t,"__esModule",{value:!0});var s=r(89727),l=r(97983),f=r(82401),d=r(81154),p=r(77005),h=r(61278),v=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),c(this,"storage",void 0),c(this,"operations",void 0),c(this,"listenWrap",void 0),this.storage=t,this.operations=new l.default}var t,r,v,y,m;return t=e,r=[{key:"engage",value:function(){var e=this;this.listenWrap=function(t){return e.listen(t)},this.operation("GET /storage",p.getStorageEntries.bind(this)).operation("GET /storage/:key",p.getStorageItem.bind(this)).operation("PUT /storage/:key",p.putStorageItem.bind(this)).operation("DELETE /storage/:key",p.deleteStorageItem.bind(this)).operation("DELETE /storage",p.deleteStorageEntries.bind(this)),window.addEventListener("message",this.listenWrap),window.parent.postMessage(JSON.stringify({name:s.GLOBAL_READY_MESSAGE,ready:!0,isCrossDomainSupported:this.storage.isCrossDomainSupported}),"*")}},{key:"operation",value:function(e,t){return this.operations.set(e,t),this}},{key:"dismiss",value:function(){this.operations.clear(),window.removeEventListener("message",this.listenWrap),delete this.listenWrap}},{key:"isTrusted",value:function(e,t){return Array.isArray(t)||(t=[]),t.some((function(t){return t===e}))}},{key:"listen",value:function(e){if("string"==typeof e.data){var t=(0,d.default)(e.data);if(this.isTrusted(e.origin,t.trustedOrigins)&&(0,f.default)(t)){var r=t.method+" "+t.path,n=this.operations.get(r),o={id:t.id,body:void 0};if("object"===a(n))try{o.body=n.call(this.storage,{origin:e.origin,params:n.params,request:t})}catch(e){o.body=this.objectifyError(e)}else o.body=this.objectifyError(new Error("Resource '"+r+"' not found."));window.parent.postMessage(JSON.stringify(o),e.origin)}}}},{key:"objectifyError",value:function(e){var t,r={__isCrossDomainError:!0},n=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return i(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,u=!0,c=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return u=e.done,e},e:function(e){c=!0,a=e},f:function(){try{u||null==r.return||r.return()}finally{if(c)throw a}}}}(Object.getOwnPropertyNames(e));try{for(n.s();!(t=n.n()).done;){var o=t.value;r[o]=e[o]}}catch(e){n.e(e)}finally{n.f()}return r}}],v=[{key:"engage",value:(y=n().mark((function t(){var r,o;return n().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,h.default.create();case 2:return r=t.sent,(o=new e(r)).engage(),t.abrupt("return",o);case 6:case"end":return t.stop()}}),t)})),m=function(){var e=this,t=arguments;return new Promise((function(r,n){var i=y.apply(e,t);function a(e){o(i,r,n,a,u,"next",e)}function u(e){o(i,r,n,a,u,"throw",e)}a(void 0)}))},function(){return m.apply(this,arguments)})}],r&&u(t.prototype,r),v&&u(t,v),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=v},33059:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(){o=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},a="function"==typeof Symbol?Symbol:{},u=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function f(e,t,r,n){var o=t&&t.prototype instanceof h?t:h,a=Object.create(o.prototype),u=new j(n||[]);return i(a,"_invoke",{value:O(e,r,u)}),a}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=f;var p={};function h(){}function v(){}function y(){}var m={};l(m,u,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(T([])));b&&b!==t&&r.call(b,u)&&(m=b);var w=y.prototype=h.prototype=Object.create(m);function E(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function o(i,a,u,c){var s=d(e[i],e,a);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==n(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,u,c)}),(function(e){o("throw",e,u,c)})):t.resolve(f).then((function(e){l.value=e,u(l)}),(function(e){return o("throw",e,u,c)}))}c(s.arg)}var a;i(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return a=a?a.then(n,n):n()}})}function O(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=S(a,r);if(u){if(u===p)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=d(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===p)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function S(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method))return p;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var n=d(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,p;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,p):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function T(e){if(e){var t=e[u];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:P}}function P(){return{value:void 0,done:!0}}return v.prototype=y,i(w,"constructor",{value:y,configurable:!0}),i(y,"constructor",{value:v,configurable:!0}),v.displayName=l(y,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,l(e,s,"GeneratorFunction")),e.prototype=Object.create(w),e},e.awrap=function(e){return{__await:e}},E(_.prototype),l(_.prototype,c,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new _(f(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(w),l(w,s,"Generator"),l(w,u,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=T,j.prototype={constructor:j,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),k(r),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:T(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},e}function i(e,t,r,n,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void r(e)}u.done?t(c):Promise.resolve(c).then(n,o)}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r(82526),r(41817),r(32165),r(66992),r(78783),r(33948),r(72443),r(39341),r(73706),r(10408),r(30489),r(54747),r(68304),r(47042),r(69070),r(68309),r(41539),Object.defineProperty(t,"__esModule",{value:!0});var c=r(89727),s=r(81154),l=r(93632),f=function(){function e(t){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),u(this,"_isCrossDomainSupported",void 0),u(this,"container",void 0),u(this,"iframe",void 0),u(this,"frameReady",void 0),u(this,"neverReady",void 0),this.frameReady=!1,this.neverReady=!1;var n=function e(t){if(t.source===r.iframe.contentWindow&&"string"==typeof t.data){var n=(0,s.default)(t.data);(null==n?void 0:n.name)===c.GLOBAL_READY_MESSAGE&&!0===(null==n?void 0:n.ready)&&(window.removeEventListener("message",e),r._isCrossDomainSupported=n.isCrossDomainSupported,r.frameReady=!0)}};window.addEventListener("message",n),setTimeout((function(){r.frameReady||(window.removeEventListener("message",n),r.neverReady=!0)}),1e4);var o=window.document.createElement("div");this.styler(o),this.container=o,this.makeIFrame(t);var i=function(){window.document.body.appendChild(o),r.container.appendChild(r.iframe)};"interactive"===window.document.readyState||"complete"===window.document.readyState?i():window.document.addEventListener("readystatechange",(function e(){"interactive"!==window.document.readyState&&"complete"!==window.document.readyState||(window.document.removeEventListener("readystatechange",e),i())}))}var t,r,n,f;return t=e,r=[{key:"isCrossDomainSupported",get:function(){return this._isCrossDomainSupported}},{key:"postMessage",value:function(e){void 0!==this.iframe&&this.iframe.contentWindow.postMessage(e,"*")}},{key:"destroy",value:function(){this.container.removeChild(this.iframe),delete this.iframe}},{key:"ready",value:(n=o().mark((function e(){var t,r=this,n=arguments;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=n.length>0&&void 0!==n[0]?n[0]:0,!this.neverReady&&!this.frameReady&&34!==t){e.next=3;break}return e.abrupt("return");case 3:return e.next=5,new Promise((function(e){setTimeout((function(){e(r.ready(t+1))}),300)}));case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e,this)})),f=function(){var e=this,t=arguments;return new Promise((function(r,o){var a=n.apply(e,t);function u(e){i(a,r,o,u,c,"next",e)}function c(e){i(a,r,o,u,c,"throw",e)}u(void 0)}))},function(){return f.apply(this,arguments)})},{key:"styler",value:function(e){var t={display:"none",position:"absolute",top:"-999px",left:"-999px"};for(var r in t)(0,l.default)(t,r)&&(e.style[r]=t[r])}},{key:"makeIFrame",value:function(e){this.iframe=window.document.createElement("iframe"),this.styler(this.iframe),this.iframe.sandbox.add("allow-scripts"),this.iframe.sandbox.add("allow-same-origin"),this.iframe.src=e}}],r&&a(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=f},29011:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(){o=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},a="function"==typeof Symbol?Symbol:{},u=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function f(e,t,r,n){var o=t&&t.prototype instanceof h?t:h,a=Object.create(o.prototype),u=new j(n||[]);return i(a,"_invoke",{value:O(e,r,u)}),a}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=f;var p={};function h(){}function v(){}function y(){}var m={};l(m,u,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(T([])));b&&b!==t&&r.call(b,u)&&(m=b);var w=y.prototype=h.prototype=Object.create(m);function E(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function o(i,a,u,c){var s=d(e[i],e,a);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==n(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,u,c)}),(function(e){o("throw",e,u,c)})):t.resolve(f).then((function(e){l.value=e,u(l)}),(function(e){return o("throw",e,u,c)}))}c(s.arg)}var a;i(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return a=a?a.then(n,n):n()}})}function O(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=S(a,r);if(u){if(u===p)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=d(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===p)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function S(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method))return p;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var n=d(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,p;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,p):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function T(e){if(e){var t=e[u];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:P}}function P(){return{value:void 0,done:!0}}return v.prototype=y,i(w,"constructor",{value:y,configurable:!0}),i(y,"constructor",{value:v,configurable:!0}),v.displayName=l(y,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,l(e,s,"GeneratorFunction")),e.prototype=Object.create(w),e},e.awrap=function(e){return{__await:e}},E(_.prototype),l(_.prototype,c,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new _(f(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(w),l(w,s,"Generator"),l(w,u,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=T,j.prototype={constructor:j,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),k(r),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:T(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},e}function i(e,t,r,n,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void r(e)}u.done?t(c):Promise.resolve(c).then(n,o)}function a(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var a=e.apply(t,r);function u(e){i(a,n,o,u,c,"next",e)}function c(e){i(a,n,o,u,c,"throw",e)}u(void 0)}))}}r(82526),r(41817),r(32165),r(78783),r(72443),r(39341),r(73706),r(10408),r(30489),r(54747),r(68309),r(68304),r(47042),r(69070),r(66992),r(41539),r(33948),Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return{clear:function(){return a(o().mark((function t(){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e({method:"DELETE",path:"/storage"});case 2:case"end":return t.stop()}}),t)})))()},entries:function(){return a(o().mark((function t(){var r;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e({method:"GET",path:"/storage"});case 2:return r=t.sent,t.abrupt("return",r.body.entries);case 4:case"end":return t.stop()}}),t)})))()},getItem:function(t){return a(o().mark((function r(){var n;return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,e({method:"GET",path:"/storage/".concat(t)});case 2:return n=r.sent,r.abrupt("return",n.body.value);case 4:case"end":return r.stop()}}),r)})))()},removeItem:function(t){return a(o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,e({method:"DELETE",path:"/storage/".concat(t)});case 2:case"end":return r.stop()}}),r)})))()},setItem:function(t,r){return a(o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,e({method:"PUT",path:"/storage/".concat(t),body:{value:r}});case 2:case"end":return n.stop()}}),n)})))()}}}},80861:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}r(82526),r(41817),r(41539),r(32165),r(66992),r(78783),r(33948),r(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return null!==e&&"object"===n(e)&&!0===e.__isCrossDomainError}},85625:function(e,t,r){"use strict";r(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return"string"==typeof e.id&&"string"==typeof t.id&&e.id===t.id}},57345:function(e,t,r){"use strict";r(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.TrustedOriginStorageServer=t.TrustedOriginStorageClient=void 0;var n=r(73304);Object.defineProperty(t,"TrustedOriginStorageClient",{enumerable:!0,get:function(){return n.default}});var o=r(95453);Object.defineProperty(t,"TrustedOriginStorageServer",{enumerable:!0,get:function(){return o.default}})},97983:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r(82526),r(41817),r(41539),r(32165),r(66992),r(78783),r(33948),r(69070),r(47941),r(24603),r(74916),r(39714),r(4723),r(92222),r(15306),Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),i(this,"operations",void 0),i(this,"routable",void 0),this.operations={},this.routable={}}var t,r;return t=e,(r=[{key:"get",value:function(e){return"function"==typeof this.operations[e]?{call:this.operations[e]}:this.getRoutable(e)}},{key:"set",value:function(e,t){this.operations[e]=t,this.setRoutable(e)}},{key:"clear",value:function(){for(var e=0,t=Object.keys(this.operations);e<t.length;e++){var r=t[e];this.operations[r]=void 0}for(var n=0,o=Object.keys(this.routable);n<o.length;n++){var i=o[n];this.routable[i]=void 0}this.operations={},this.routable={}}},{key:"isRoutable",value:function(e){var t=this.pathToRegExp(e),r=new RegExp(t,"g").exec(e);return(1!==r.length||r[0]!==e)&&t}},{key:"getRoutable",value:function(e){for(var t=Object.keys(this.routable),r=0;r<t.length;r+=1){var o=t[r],i=(0,this.routable[o])(e);if("object"===n(i))return{call:this.operations[o],params:i.params}}}},{key:"setRoutable",value:function(e){var t=this.isRoutable(e);!1!==t&&(this.routable[e]=this.match(t))}},{key:"pathToRegExp",value:function(e){return"^"+(e=e.replace(/\./g,"\\.").replace(/\//g,"/").replace(/\?/g,"\\?").replace(/\/+$/,"").replace(/\*+/g,".*").replace(/:([^\d|^/][a-zA-Z0-9_]*(?=(?:\/|\\.)|$))/g,(function(e,t){return"(?<".concat(t,">[^/]+?)")})).concat("(\\/|$)"))+"(\\?.*){0,1}$"}},{key:"match",value:function(e){return function(t){var r,n=new RegExp(e,"g").exec(t),o=Array.isArray(n);if(o)return{matches:o,params:null!==(r=null==n?void 0:n.groups)&&void 0!==r?r:void 0}}}}])&&o(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=a},77005:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}r(82526),r(41817),r(32165),r(78783),r(69070),r(66992),r(41539),r(33948),Object.defineProperty(t,"__esModule",{value:!0}),t.deleteStorageEntries=t.deleteStorageItem=t.putStorageItem=t.getStorageItem=t.getStorageEntries=void 0;var o=r(29975);t.getStorageEntries=function(e,t){var r=(0,o.default)(t.request.trustedOrigins);return{entries:e.entries(r)}},t.getStorageItem=function(e,t){if("object"===n(t.params)){var r=(0,o.default)(t.request.trustedOrigins);return{value:e.get(r,t.params.key)}}return{value:null}},t.putStorageItem=function(e,t){if("object"===n(t.params)&&"object"===n(t.request.body)){var r=(0,o.default)(t.request.trustedOrigins);return e.set(r,t.params.key,t.request.body.value),{key:t.params.key,value:t.request.body.value}}return{key:"undefined"}},t.deleteStorageItem=function(e,t){if("object"===n(t.params)){var r=(0,o.default)(t.request.trustedOrigins);e.delete(r,t.params.key)}},t.deleteStorageEntries=function(e,t){var r=(0,o.default)(t.request.trustedOrigins);e.clear(r)}},29975:function(e,t,r){"use strict";r(69070),r(69600),r(2707),Object.defineProperty(t,"__esModule",{value:!0});var n=r(99145);t.default=function(e){return(0,n.uuidHash)(e.sort().join(","),"db0ec212-8371-47d7-b44a-c2d50493194d")}},82401:function(e,t,r){"use strict";r(69070),r(26699),Object.defineProperty(t,"__esModule",{value:!0});var n=["DELETE","GET","POST","PUT"];t.default=function(e){return"string"==typeof e.id&&"string"==typeof e.method&&n.includes(e.method)&&"string"==typeof e.path&&void 0!==e.trustedOrigins&&Array.isArray(e.trustedOrigins)}},82375:function(e,t,r){"use strict";function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r(69070),r(47941),Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),o(this,"memory",void 0),o(this,"length",void 0),this.memory={},Object.defineProperty(this,"length",{get:function(){return Object.keys(this.memory).length}})}var t,r;return t=e,(r=[{key:"getItem",value:function(e){var t;return null!==(t=this.memory[e])&&void 0!==t?t:null}},{key:"setItem",value:function(e,t){this.memory[e]=t}},{key:"removeItem",value:function(e){delete this.memory[e]}},{key:"key",value:function(e){return Object.keys(this.memory)[e]}},{key:"clear",value:function(){this.memory={}}}])&&n(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=i},61278:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(){o=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},a="function"==typeof Symbol?Symbol:{},u=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function f(e,t,r,n){var o=t&&t.prototype instanceof h?t:h,a=Object.create(o.prototype),u=new j(n||[]);return i(a,"_invoke",{value:O(e,r,u)}),a}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=f;var p={};function h(){}function v(){}function y(){}var m={};l(m,u,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(T([])));b&&b!==t&&r.call(b,u)&&(m=b);var w=y.prototype=h.prototype=Object.create(m);function E(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function o(i,a,u,c){var s=d(e[i],e,a);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==n(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,u,c)}),(function(e){o("throw",e,u,c)})):t.resolve(f).then((function(e){l.value=e,u(l)}),(function(e){return o("throw",e,u,c)}))}c(s.arg)}var a;i(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return a=a?a.then(n,n):n()}})}function O(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=S(a,r);if(u){if(u===p)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=d(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===p)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function S(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method))return p;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var n=d(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,p;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,p):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function T(e){if(e){var t=e[u];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:P}}function P(){return{value:void 0,done:!0}}return v.prototype=y,i(w,"constructor",{value:y,configurable:!0}),i(y,"constructor",{value:v,configurable:!0}),v.displayName=l(y,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,l(e,s,"GeneratorFunction")),e.prototype=Object.create(w),e},e.awrap=function(e){return{__await:e}},E(_.prototype),l(_.prototype,c,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new _(f(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(w),l(w,s,"Generator"),l(w,u,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=T,j.prototype={constructor:j,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),k(r),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:T(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},e}function i(e,t,r,n,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void r(e)}u.done?t(c):Promise.resolve(c).then(n,o)}function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,u=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function c(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function s(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r(82526),r(41817),r(32165),r(47042),r(68309),r(91038),r(72443),r(39341),r(73706),r(10408),r(30489),r(68304),r(69070),r(26699),r(32023),r(74916),r(23123),r(66992),r(41539),r(70189),r(78783),r(33948),r(54747),Object.defineProperty(t,"__esModule",{value:!0});var l=r(87191),f=r(82375),d=function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),s(this,"storage",void 0),s(this,"isCrossDomainSupported",void 0),s(this,"sep",":||:"),s(this,"keyCache",void 0),this.storage=t,this.isCrossDomainSupported=r,this.initKeyCache()}var t,r,n,u,d;return t=e,r=[{key:"initKeyCache",value:function(){this.keyCache={};for(var e=this.storage.length,t=0;t<e;t+=1){var r=this.storage.key(t);if("string"==typeof r&&r.includes(this.sep)){var n=a(r.split(this.sep),2),o=n[0],i=n[1];this.getKeySet(o).add(i)}}}},{key:"compositeKey",value:function(e,t){return e+this.sep+t}},{key:"getKeySet",value:function(e){var t=this.keyCache[e];return void 0===t&&(t=new Set,this.keyCache[e]=t),t}},{key:"get",value:function(e,t){return this.storage.getItem(this.compositeKey(e,t))}},{key:"set",value:function(e,t,r){this.getKeySet(e).add(t),this.storage.setItem(this.compositeKey(e,t),r)}},{key:"delete",value:function(e,t){this.storage.removeItem(this.compositeKey(e,t))}},{key:"clear",value:function(e){var t=this,r=this.getKeySet(e);r.forEach((function(r){t.delete(e,r)})),r.clear()}},{key:"entries",value:function(e){var t=this,r=[];return this.getKeySet(e).forEach((function(n){r.push([n,t.get(e,n)])})),r}}],n=[{key:"create",value:(u=o().mark((function t(){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,l.default)("localStorage");case 2:if(!t.sent){t.next=6;break}t.t0=new e(window.localStorage,!0),t.next=7;break;case 6:t.t0=new e(new f.default,!1);case 7:return t.abrupt("return",t.t0);case 8:case"end":return t.stop()}}),t)})),d=function(){var e=this,t=arguments;return new Promise((function(r,n){var o=u.apply(e,t);function a(e){i(o,r,n,a,c,"next",e)}function c(e){i(o,r,n,a,c,"throw",e)}a(void 0)}))},function(){return d.apply(this,arguments)})}],r&&c(t.prototype,r),n&&c(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=d},93632:function(e,t,r){"use strict";r(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}},81154:function(e,t,r){"use strict";r(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t={};try{var r;return null!==(r=JSON.parse(e))&&void 0!==r?r:t}catch(e){}return t}},87191:function(e,t,r){"use strict";function n(){n=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},a="function"==typeof Symbol?Symbol:{},u=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function f(e,t,r,n){var o=t&&t.prototype instanceof h?t:h,a=Object.create(o.prototype),u=new j(n||[]);return i(a,"_invoke",{value:O(e,r,u)}),a}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=f;var p={};function h(){}function v(){}function y(){}var m={};l(m,u,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(T([])));b&&b!==t&&r.call(b,u)&&(m=b);var w=y.prototype=h.prototype=Object.create(m);function E(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function n(i,a,u,c){var s=d(e[i],e,a);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==o(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){n("next",e,u,c)}),(function(e){n("throw",e,u,c)})):t.resolve(f).then((function(e){l.value=e,u(l)}),(function(e){return n("throw",e,u,c)}))}c(s.arg)}var a;i(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return a=a?a.then(o,o):o()}})}function O(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=S(a,r);if(u){if(u===p)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=d(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===p)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function S(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method))return p;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var n=d(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,p;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,p):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function T(e){if(e){var t=e[u];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:P}}function P(){return{value:void 0,done:!0}}return v.prototype=y,i(w,"constructor",{value:y,configurable:!0}),i(y,"constructor",{value:v,configurable:!0}),v.displayName=l(y,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,l(e,s,"GeneratorFunction")),e.prototype=Object.create(w),e},e.awrap=function(e){return{__await:e}},E(_.prototype),l(_.prototype,c,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new _(f(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(w),l(w,s,"Generator"),l(w,u,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=T,j.prototype={constructor:j,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),k(r),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:T(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},e}function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function i(e,t,r,n,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void r(e)}u.done?t(c):Promise.resolve(c).then(n,o)}function a(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var a=e.apply(t,r);function u(e){i(a,n,o,u,c,"next",e)}function c(e){i(a,n,o,u,c,"throw",e)}u(void 0)}))}}function u(){return(u=a(n().mark((function e(t){var r,i,a;return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("function"!=typeof document.hasStorageAccess){e.next=6;break}return e.next=3,document.hasStorageAccess();case 3:e.t0=e.sent,e.next=7;break;case 6:e.t0=void 0;case 7:if(void 0===(i=e.t0)){e.next=10;break}return e.abrupt("return",i);case 10:return e.prev=10,r="string"==typeof t?window[t]:t,a="__storage_test__",r.setItem(a,a),r.removeItem(a),e.abrupt("return",!0);case 18:return e.prev=18,e.t1=e.catch(10),e.abrupt("return",e.t1 instanceof DOMException&&(22===e.t1.code||1014===e.t1.code||"QuotaExceededError"===e.t1.name||"NS_ERROR_DOM_QUOTA_REACHED"===e.t1.name)&&"object"===o(r)&&0!==r.length);case 21:case"end":return e.stop()}}),e,null,[[10,18]])})))).apply(this,arguments)}r(41539),r(82526),r(41817),r(32165),r(66992),r(78783),r(33948),r(72443),r(39341),r(73706),r(10408),r(30489),r(54747),r(68304),r(47042),r(69070),r(68309),Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return u.apply(this,arguments)}},99145:function(e,t,r){"use strict";function n(e,t){var r=(4194303&e)*(t|=0);return 0!=(4290772992&e)&&(r+=(4290772992&e)*t|0),0|r}r(69070),r(83112),r(41539),r(39714),r(66992),r(8255),r(92990),r(18927),r(33105),r(35035),r(74345),r(7174),r(32846),r(44731),r(77209),r(96319),r(58867),r(37789),r(33739),r(29368),r(14483),r(12056),r(3462),r(30678),r(27462),r(33824),r(55021),r(12974),r(15016),r(91058),r(74916),r(15306),r(69600),Object.defineProperty(t,"__esModule",{value:!0}),t.uuidHash=void 0,t.uuidHash=function(e,t){var r=function(e){for(var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=3735928559^r,i=1103547991^r,a=2207095982^r,u=1867964279^r,c=0;c<e.length;c++)o=n(o^(t=e.charCodeAt(c)),2654435761),i=n(i^t,1597334677),a=n(a^t,2654435761),u=n(u^t,1597334677);function s(e){return(e>>>0).toString(16).padStart(8,"0")}function l(e){for(var t=new Uint16Array(e.length),r=0;r<e.length;r++)t[r]=parseInt(e.charAt(r),16);return t}return o=n(o^o>>>16,2246822507)^n(i^i>>>13,3266489909),i=n(i^i>>>16,2246822507)^n(o^o>>>13,3266489909),a=n(a^a>>>16,2246822507)^n(u^u>>>13,3266489909),u=n(u^u>>>16,2246822507)^n(a^a>>>13,3266489909),l(s(i)+s(o)+s(u)+s(a))}(t+e),o=0;return[1e7,1e3,1e3,1e3,1e11].join("-").replace(/[01]/g,(function(e){var t=r[o].toString(16);return o+=1,t}))}},61043:function(e,t,r){"use strict";function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(69070);var o=function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._message=t,this._node=r}var t,r;return t=e,(r=[{key:"message",get:function(){return this._message}},{key:"node",get:function(){return this._node}}])&&n(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=o},19290:function(e,t,r){"use strict";function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(66992),r(41539),r(70189),r(78783),r(33948),r(38880),r(54747),r(69070);var o=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.onPropertySet=t,this._klasses=new Set}var t,r;return t=e,(r=[{key:"_trackObserver",value:function(e){e.__cbio_observers||(e.__cbio_observers=new Set),e.__cbio_observers.add(this)}},{key:"_untrackObserver",value:function(e){e.__cbio_observers&&e.__cbio_observers.delete(this)}},{key:"_tap",value:function(e,t){if(!e["__cbio_override_".concat(t)]){var r=Object.getOwnPropertyDescriptor(e.prototype,t);if(r){e["__cbio_override_".concat(t)]=!0;var n=r.set;r.set=function(r){var o=this;n.call(this,r),e.__cbio_observers&&e.__cbio_observers.forEach((function(e){e.onPropertySet(o,t,r)}))},Object.defineProperty(e.prototype,t,r)}}}},{key:"observe",value:function(e,t){this._klasses.add(e),this._trackObserver(e),this._tap(e,t)}},{key:"disconnect",value:function(){var e=this;this._klasses.forEach((function(t){return e._untrackObserver(t)})),this._klasses.clear()}}])&&n(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=o},71213:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}r(47941),r(82526),r(57327),r(38880),r(49337),r(33321),r(66992),r(78783),r(4129),r(33948),r(41817),r(32165),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(41539),r(54747),r(26833),r(21249),r(85827),r(69070);var o,i=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=u(t);if(r&&r.has(e))return r.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var c=i?Object.getOwnPropertyDescriptor(e,a):null;c&&(c.get||c.set)?Object.defineProperty(o,a,c):o[a]=e[a]}return o.default=e,r&&r.set(e,o),o}(r(53682)),a=(o=r(61043))&&o.__esModule?o:{default:o};function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(u=function(e){return e?r:t})(e)}function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach((function(t){l(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function l(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function f(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var d=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._id=t,this._dom={id:t,childNodes:[]},this._mapping={}}var t,r,n;return t=e,n=[{key:"createMapping",value:function(e){var t={};return(0,i.default)(e,(function(e){e.id?t[e.id]=e:console.warn("node missing id",e)})),t}},{key:"applyPatch",value:function(e,t){var r=this.createMapping(e),n={};t.forEach((function(e){if(e.id){var t=r[e.id]||{};r[e.id]=s(s({},t),e),n[e.id]=!0}else console.warn("diff missing id",e)})),Object.values(r).forEach((function(e){e.childNodes=(e.childNodes||[]).map((function(t){var n=t.id||t,o=r[n];if(!o)throw new a.default("denormalisation failed for child ".concat(n),e);return o}))}));var o=r[e.id],u=(0,i.depthFirstPostOrder)(o,(function(e,t){if(e.childNodes=t,t.map((function(e){return n[e.id]})).reduce((function(e,t){return e||t}),!1)){n[e.id]=!0;var o=s({},e);return r[e.id]=o,o}return e}));return{dom:u,mapping:this.createMapping(u)}}}],(r=[{key:"id",get:function(){return this._id}},{key:"document",get:function(){return this._dom}},{key:"node",value:function(e){return this._mapping[e]}},{key:"applyPatch",value:function(t){var r=e.applyPatch(this._dom,t),n=r.dom,o=r.mapping;return this._dom=n,this._mapping=o,this}}])&&f(t.prototype,r),n&&f(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=d},53682:function(e,t,r){"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function o(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach((function(t){i(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r(47941),r(82526),r(57327),r(41539),r(38880),r(54747),r(49337),r(33321),Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t,r){var n=t.childNodes,i=r(t,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];n=e}));return n&&n.length?o(o({},i),{},{childNodes:Array.from(n).map((function(t){return e(t,r)}))}):i},t.depthFirstPostOrder=function e(t,r){var n=Array.from(t.childNodes||[]).map((function(t){return e(t,r)}));return r(t,n)},r(21249),r(91038),r(78783),r(69070)},41514:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}r(66992),r(41539),r(78783),r(4129),r(33948),r(69070),r(38880),r(82526),r(41817),r(32165),Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"CompressionError",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"PropertyObserver",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"VirtualDOM",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"depthFirst",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"depthFirstPostOrder",{enumerable:!0,get:function(){return a.depthFirstPostOrder}}),Object.defineProperty(t,"isxdoc",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"parents",{enumerable:!0,get:function(){return c.default}});var o=f(r(61043)),i=f(r(71213)),a=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=l(t);if(r&&r.has(e))return r.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var u=i?Object.getOwnPropertyDescriptor(e,a):null;u&&(u.get||u.set)?Object.defineProperty(o,a,u):o[a]=e[a]}return o.default=e,r&&r.set(e,o),o}(r(53682)),u=f(r(49122)),c=f(r(51725)),s=f(r(19290));function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(l=function(e){return e?r:t})(e)}function f(e){return e&&e.__esModule?e:{default:e}}},49122:function(e,t,r){"use strict";function n(e){try{return!e.document&&!1}catch(e){return!0}}r(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return!!n(e)||!("IFRAME"!==e.tagName||!n(e.contentWindow))}},51725:function(e,t,r){"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}r(82526),r(41817),r(41539),r(32165),r(66992),r(78783),r(33948),r(91038),r(47042),r(68309),r(74916),r(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t,r){for(var o=[],i=t;i.parentNode&&i.parentNode!==r;)o.push(i.parentNode),i=i.parentNode;var a,u=i.defaultView&&i.defaultView.frameElement;return u?[].concat(o,[u],function(e){if(Array.isArray(e))return n(e)}(a=e(u))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(a)||function(e,t){if(e){if("string"==typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,t):void 0}}(a)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()):o},r(92222)},99796:function(e,t,r){"use strict";var n;r(74916),r(4723),r(91058),r(24603),r(39714),r(40561),r(15306),t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),this.useColors){var r="color: "+this.color;t.splice(1,0,r,"color: inherit");var n=0,o=0;t[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(n++,"%c"===e&&(o=n))})),t.splice(o,0,r)}},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){var e;try{e=t.storage.getItem("debug")}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e},t.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type&&!window.process.__nwjs)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(n=!1,function(){n||(n=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||function(){},e.exports=r(94701)(t),e.exports.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},94701:function(e,t,r){"use strict";function n(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}r(82526),r(41817),r(32165),r(66992),r(78783),r(33948),r(91038),r(68309),r(41539),r(54747),r(47941),r(9653),r(74916),r(15306),r(40561),r(69070),r(23123),r(24603),r(39714),r(47042),r(69600),r(92222),r(21249),e.exports=function(e){function t(e){var r,n,i,a=null;function u(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];if(u.enabled){var i=u,a=Number(new Date),c=a-(r||a);i.diff=c,i.prev=r,i.curr=a,r=a,n[0]=t.coerce(n[0]),"string"!=typeof n[0]&&n.unshift("%O");var s=0;n[0]=n[0].replace(/%([a-zA-Z%])/g,(function(e,r){if("%%"===e)return"%";s++;var o=t.formatters[r];if("function"==typeof o){var a=n[s];e=o.call(i,a),n.splice(s,1),s--}return e})),t.formatArgs.call(i,n);var l=i.log||t.log;l.apply(i,n)}}return u.namespace=e,u.useColors=t.useColors(),u.color=t.selectColor(e),u.extend=o,u.destroy=t.destroy,Object.defineProperty(u,"enabled",{enumerable:!0,configurable:!1,get:function(){return null!==a?a:(n!==t.namespaces&&(n=t.namespaces,i=t.enabled(e)),i)},set:function(e){a=e}}),"function"==typeof t.init&&t.init(u),u}function o(e,r){var n=t(this.namespace+(void 0===r?":":r)+e);return n.log=this.log,n}function i(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){var e=[].concat(n(t.names.map(i)),n(t.skips.map(i).map((function(e){return"-"+e})))).join(",");return t.enable(""),e},t.enable=function(e){var r;t.save(e),t.namespaces=e,t.names=[],t.skips=[];var n=("string"==typeof e?e:"").split(/[\s,]+/),o=n.length;for(r=0;r<o;r++)n[r]&&("-"===(e=n[r].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.slice(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){if("*"===e[e.length-1])return!0;var r,n;for(r=0,n=t.skips.length;r<n;r++)if(t.skips[r].test(e))return!1;for(r=0,n=t.names.length;r<n;r++)if(t.names[r].test(e))return!0;return!1},t.humanize=r(57824),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach((function(r){t[r]=e[r]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){for(var r=0,n=0;n<e.length;n++)r=(r<<5)-r+e.charCodeAt(n),r|=0;return t.colors[Math.abs(r)%t.colors.length]},t.enable(t.load()),t}},51178:function(e,t,r){"use strict";r(69070),r(68304),r(30489),r(12419),r(82526),r(41817),r(32165),r(72443),r(39341),r(73706),r(10408),r(54747),r(68309),r(47042),r(38880),r(49337),r(33321),Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.CobrowseIO=void 0,r(41539),r(57327),r(26699),r(32023),r(69826),r(47941),r(21249),r(66992),r(78783),r(33948),r(60285),r(41637),r(4129);var n=E(r(23493)),o=r(41514),i=r(17187),a=r(55064),u=r(58302),c=r(35161),s=r(6362),l=r(83042),f=E(r(41289)),d=r(77368),p=E(r(74011)),h=E(r(19356)),v=E(r(33191)),y=r(61640),m=r(79426),g=E(r(82175)),b=E(r(99796)),w=E(r(93677));function E(e){return e&&e.__esModule?e:{default:e}}function _(e){return _="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_(e)}function O(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function S(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?O(Object(r),!0).forEach((function(t){M(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):O(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function x(){x=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function s(e,t,r,o){var i=t&&t.prototype instanceof d?t:d,a=Object.create(i.prototype),u=new j(o||[]);return n(a,"_invoke",{value:E(e,r,u)}),a}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var f={};function d(){}function p(){}function h(){}var v={};c(v,i,(function(){return this}));var y=Object.getPrototypeOf,m=y&&y(y(T([])));m&&m!==t&&r.call(m,i)&&(v=m);var g=h.prototype=d.prototype=Object.create(v);function b(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function o(n,i,a,u){var c=l(e[n],e,i);if("throw"!==c.type){var s=c.arg,f=s.value;return f&&"object"==_(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,u)}),(function(e){o("throw",e,a,u)})):t.resolve(f).then((function(e){s.value=e,a(s)}),(function(e){return o("throw",e,a,u)}))}u(c.arg)}var i;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}})}function E(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=O(a,r);if(u){if(u===f)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function O(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method))return f;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,f;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function T(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:P}}function P(){return{value:void 0,done:!0}}return p.prototype=h,n(g,"constructor",{value:h,configurable:!0}),n(h,"constructor",{value:p,configurable:!0}),p.displayName=c(h,u,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,c(e,u,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},b(w.prototype),c(w.prototype,a,(function(){return this})),e.AsyncIterator=w,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new w(s(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(g),c(g,u,"Generator"),c(g,i,(function(){return this})),c(g,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=T,j.prototype={constructor:j,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),k(r),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:T(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},e}function k(e,t,r,n,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void r(e)}u.done?t(c):Promise.resolve(c).then(n,o)}function j(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){k(i,n,o,a,u,"next",e)}function u(e){k(i,n,o,a,u,"throw",e)}a(void 0)}))}}function T(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function P(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function L(e,t){return L=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},L(e,t)}function I(e,t){if(t&&("object"===_(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return A(e)}function A(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function C(e){return C=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},C(e)}function M(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function N(e,t,r){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,r)}function R(e,t){return function(e,t){return t.get?t.get.call(e):t.value}(e,F(e,t,"get"))}function D(e,t,r){return function(e,t,r){if(t.set)t.set.call(e,r);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=r}}(e,F(e,t,"set"),r),r}function F(e,t,r){if(!t.has(e))throw new TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}var U=(0,b.default)("cbio.CobrowseIO"),W=new WeakMap,z=new WeakMap,B=new WeakMap,G=new WeakMap,V=new WeakMap,Y=new WeakMap,H=new WeakMap,K=new WeakMap,q=new WeakMap,$=new WeakMap,X=new WeakMap,Q=new WeakMap,J=new WeakMap,Z=new WeakMap,ee=new WeakMap,te=new WeakMap,re=new WeakMap,ne=new WeakMap,oe=new WeakMap,ie=new WeakMap,ae=new WeakMap,ue=new WeakMap,ce=new WeakMap,se=new WeakMap,le=new WeakMap,fe=new WeakMap,de=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&L(e,t)}(k,e);var t,r,i,b,E,O=(b=k,E=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=C(b);if(E){var r=C(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return I(this,e)});function k(){var e,t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=r.sessionStorageFactory,u=void 0===i?function(e,t,r){var n=r.localStorage;return y.SessionStorage.create(e,t,{localStorage:n})}:i;return T(this,k),N(A(e=O.call(this)),W,{writable:!0,value:new a.ActivityDetection}),N(A(e),z,{writable:!0,value:void 0}),N(A(e),B,{writable:!0,value:void 0}),N(A(e),G,{writable:!0,value:void 0}),N(A(e),V,{writable:!0,value:new m.LocalSessionStorage}),N(A(e),Y,{writable:!0,value:void 0}),N(A(e),H,{writable:!0,value:void 0}),N(A(e),K,{writable:!0,value:{}}),N(A(e),q,{writable:!0,value:new s.SessionCapabilities(c.Device.info.capabilities)}),N(A(e),$,{writable:!0,value:new c.Device(A(e))}),N(A(e),X,{writable:!0,value:new l.ConsentDialog}),N(A(e),Q,{writable:!0,value:new l.ConsentDialog}),N(A(e),J,{writable:!0,value:new l.ConsentDialog}),N(A(e),Z,{writable:!0,value:void 0}),N(A(e),ee,{writable:!0,value:void 0}),N(A(e),te,{writable:!0,value:{}}),N(A(e),re,{writable:!0,value:void 0}),M(A(e),"start",j(x().mark((function t(){var r,n,i=arguments;return x().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=i.length>0&&void 0!==i[0]?i[0]:{},U("start()",r,"in",document),D(A(e),te,r),!v.default.isHeadless()||r.allowHeadless){t.next=6;break}return console.warn("CobrowseIO: Not starting Cobrowse in a headless browser"),t.abrupt("return");case 6:if(window.self===window.top){t.next=18;break}if(!r.allowIFrameStart){t.next=11;break}a.WindowTracking.setTracksIframes(!0),t.next=18;break;case 11:if(!(0,o.isxdoc)(window.parent)){t.next=16;break}return U("Starting Cobrowse in Iframe bridge mode with trusted origins:",h.default.trustedOrigins,"for",document),t.abrupt("return");case 16:return U("Not starting Cobrowse for same-origin iframe",document),t.abrupt("return");case 18:if(e.license){t.next=21;break}return console.error("CobrowseIO.license must be set before calling start"),t.abrupt("return");case 21:if(R(A(e),G)){t.next=36;break}return f.default.initialize(),a.WindowTracking.start(),(0,p.default)(k.version).catch((function(){})),D(A(e),H,R(A(e),Y).call(A(e),e.trustedOrigins,e.api,{localStorage:R(A(e),V)})),console.log("CobrowseIO started",k.version),D(A(e),G,!0),!1!==r.register&&(R(A(e),W).on("active",(function(){return R(A(e),$).runRegistrationLoop()})),R(A(e),W).on("inactive",(function(){return R(A(e),$).pauseRegistrationLoop()}))),R(A(e),W).start(),U("attempting to restore session after start"),t.next=33,R(A(e),ne).call(A(e));case 33:D(A(e),B,null),null!==(n=e.currentSession)&&void 0!==n&&n.isActive()||e.hideSessionControls(),window.addEventListener("focus",R(A(e),ne),{capture:!0});case 36:case"end":return t.stop()}}),t)})))),M(A(e),"stop",j(x().mark((function t(){return x().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.currentSession||e.currentSession.isEnded()){t.next=3;break}return t.next=3,e.currentSession.end().catch((function(e){console.warn("CobrowseIO: Failed to end session on stop",e)}));case 3:return window.removeEventListener("focus",R(A(e),ne),{capture:!0}),R(A(e),ie).call(A(e),null),a.WindowTracking.stop(),R(A(e),W).stop(),t.next=9,R(A(e),$).destroy();case 9:return t.next=11,R(A(e),H)&&R(A(e),H).destroy();case 11:return D(A(e),H,void 0),D(A(e),G,!1),t.abrupt("return",A(e));case 14:case"end":return t.stop()}}),t)})))),N(A(e),ne,{writable:!0,value:(t=j(x().mark((function t(){var r;return x().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,R(A(e),H).load(A(e));case 2:if(!(r=t.sent)){t.next=14;break}if(t.prev=4,r.state()){t.next=8;break}return t.next=8,r.fetch();case 8:R(A(e),ie).call(A(e),r,{invalidateFrames:!0}),t.next=14;break;case 11:t.prev=11,t.t0=t.catch(4),console.warn("CobrowseIO: Failed to fetch restored session",t.t0);case 14:return t.abrupt("return",null);case 15:case"end":return t.stop()}}),t,null,[[4,11]])}))),function(){return t.apply(this,arguments)})}),N(A(e),oe,{writable:!0,value:function(){R(A(e),$).bannerMessage()&&l.Toast.show(R(A(e),$).bannerMessage())}}),N(A(e),ie,{writable:!0,value:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.invalidateFrames,o=void 0!==n&&n;if(U("setting current session",t),t&&R(A(e),z)){var i=R(A(e),z).session;if(i.id()===t.id())return}R(A(e),X).hide(),R(A(e),Q).hide(),R(A(e),J).hide();var a=function(e,t){return h.default.broadcastToChildren("control",[e,t])};R(A(e),z)&&(R(A(e),z).session.off("updated",R(A(e),ae)),R(A(e),z).session.off("ended",R(A(e),ue)),R(A(e),z).session.off("control",a),R(A(e),z).destroy(),D(A(e),z,null)),t&&(D(A(e),z,new s.SessionContext(t,A(e),R(A(e),H))),t.state()&&R(A(e),ae).call(A(e),t),t.on("updated",R(A(e),ae)),t.once("ended",R(A(e),ue)),t.on("control",a),o&&R(A(e),z).invalidateFrames())}}),N(A(e),ae,{writable:!0,value:function(t){t.fullDevice()||R(A(e),J).hide(),"requested"!==t.remoteControl()&&R(A(e),Q).hide(),t.isAuthorizing()||R(A(e),X).hide(),R(A(e),oe).call(A(e),t),e.emit("session.updated",t)}}),N(A(e),ue,{writable:!0,value:function(t){e.emit("session.ended",t),R(A(e),ie).call(A(e),null)}}),N(A(e),ce,{writable:!0,value:void 0}),M(A(e),"hideSessionControls",(function(){l.SessionStateOverlay.hide()})),N(A(e),se,{writable:!0,value:(0,d.protect)(A(e),"getCapabilities",(function(){return R(A(e),q)}))}),N(A(e),le,{writable:!0,value:(0,n.default)((function(){var t;R(A(e),$).hasPendingUpdates()&&R(A(e),G)&&!1!==(null===(t=R(A(e),te))||void 0===t?void 0:t.register)&&R(A(e),$).updateRegistration().catch((function(e){console.warn("CobrowseIO: updating customData failed",e)}))}),8e3,{leading:!0,trailing:!0})}),M(A(e),"confirmRemoteControl",j(x().mark((function t(){return x().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",R(A(e),Q).show(g.default.tr("REMOTE_CONTROL_REQUEST_TITLE"),g.default.tr("REMOTE_CONTROL_REQUEST_DESCRIPTION")));case 1:case"end":return t.stop()}}),t)})))),M(A(e),"confirmFullDevice",j(x().mark((function t(){return x().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",R(A(e),J).show(g.default.tr("FULL_DEVICE_REQUEST_TITLE"),g.default.tr("FULL_DEVICE_REQUEST_DESCRIPTION")));case 1:case"end":return t.stop()}}),t)})))),M(A(e),"confirmSession",j(x().mark((function t(){return x().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",R(A(e),X).show(g.default.tr("SESSION_REQUEST_TITLE"),g.default.tr("SESSION_REQUEST_DESCRIPTION")));case 1:case"end":return t.stop()}}),t)})))),M(A(e),"getSession",function(){var t=j(x().mark((function t(r){var n;return x().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(R(A(e),G)){t.next=2;break}throw new Error("CobrowseIO not started. Call CobrowseIO.start()");case 2:if(!e.currentSession||e.currentSession.id()!==r&&e.currentSession.code()!==r){t.next=4;break}return t.abrupt("return",e.currentSession.fetch());case 4:return n=new s.Session(A(e)).updateResource({id:r}),R(A(e),ie).call(A(e),n),t.next=8,n.fetch();case 8:return e.emit("session.loaded",n),t.abrupt("return",n);case 10:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()),M(A(e),"createSession",j(x().mark((function t(){var r;return x().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(R(A(e),G)){t.next=2;break}throw new Error("CobrowseIO not started. Call CobrowseIO.start()");case 2:if(!e.currentSession||!e.currentSession.isActive()&&!e.currentSession.isAuthorizing()){t.next=4;break}throw new Error("Already in a session");case 4:return r=new s.Session(A(e)),R(A(e),ie).call(A(e),r),t.next=8,r.update({custom_data:e.customData,device:c.Device.info});case 8:return e.emit("session.loaded",r),t.abrupt("return",r);case 10:case"end":return t.stop()}}),t)})))),M(A(e),"createSessionCode",j(x().mark((function t(){var r;return x().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.createSession();case 2:return r=t.sent,t.abrupt("return",r.code());case 4:case"end":return t.stop()}}),t)})))),M(A(e),"client",j(x().mark((function t(){return x().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",A(e));case 1:case"end":return t.stop()}}),t)})))),N(A(e),fe,{writable:!0,value:function(t){t&&["license","api","customData","showSessionControls","hideSessionControls","confirmSession","confirmRemoteControl","confirmFullDevice","trustedOrigins","redactedViews","unredactedViews","ignoredViews","capabilities"].forEach((function(r){t[r]&&(e[r]=t[r])}))}}),U("interface constructed in",document),D(A(e),Y,u),e.api="https://api.cobrowse.io",R(A(e),fe).call(A(e),window&&window.CobrowseIO),D(A(e),B,R(A(e),V).load(A(e))),R(A(e),$).on("register",R(A(e),oe)),R(A(e),$).on("notification",(function(t){var r=t["cobrowseio-code"];r&&e.getSession(r).catch((function(e){console.warn("CobrowseIO: session fetch failed:",e)}))})),e}return t=k,i=[{key:"version",get:function(){return c.Device.info.sdk_version}}],(r=[{key:"deviceId",value:function(){return c.Device.deviceId()}},{key:"currentSession",get:function(){return R(this,z)?R(this,z).session:R(this,B)}},{key:"showSessionControls",get:function(){return R(this,ce)?R(this,ce):l.SessionStateOverlay.show},set:function(e){D(this,ce,e),l.SessionStateOverlay.hide(),this.currentSession&&this.currentSession.isActive()&&R(this,ce).call(this)}},{key:"license",get:function(){return u.RESTResource.getHeader("X-CobrowseLicense")},set:function(e){if(R(this,G)&&this.license!==e)throw new Error("Cannot change license once Cobrowse is started");u.RESTResource.setHeader("X-CobrowseLicense",e)}},{key:"api",get:function(){return u.RESTResource.api},set:function(e){if(R(this,G)&&u.RESTResource.api!==e)throw new Error("Cannot change API once Cobrowse is started");u.RESTResource.api=e}},{key:"redactedViews",get:function(){return R(this,Z)},set:function(e){if(R(this,G))throw new Error("Cannot set redacted views after Cobrowse is started");D(this,Z,e)}},{key:"unredactedViews",get:function(){return R(this,ee)},set:function(e){if(R(this,G))throw new Error("Cannot set unredacted views after Cobrowse is started");D(this,ee,e)}},{key:"ignoredViews",get:function(){return R(this,re)},set:function(e){if(R(this,G))throw new Error("Cannot set ignored views after Cobrowse is started");D(this,re,e),w.default.setIgnoredViews(e)}},{key:"capabilities",get:function(){return R(this,q).toArray()},set:function(e){if(R(this,G))throw new Error("Cannot set capabilities after Cobrowse is started");if(!Array.isArray(e))throw new Error("Capabilities should be an array");D(this,q,new s.SessionCapabilities(e.filter((function(e){return!!c.Device.info.capabilities.includes(e)||(console.warn("Capability '".concat(e,"' not supported. Ignoring...")),!1)}))))}},{key:"customData",get:function(){return S(S({},R(this,$).customData),R(this,K))},set:function(e){if("object"!==_(e))throw new Error("Custom data must be an object");if(D(this,K,S(S({},R(this,K)),e)),R(this,G)&&setTimeout(R(this,le),0),this.currentSession&&this.currentSession.isActive()){var t=this.currentSession.resource.custom_data;if(!Object.keys(e).find((function(r){return t[r]!==e[r]})))return void U("no changes to session custom data");this.currentSession.update({custom_data:e}).catch((function(){console.warn("CobrowseIO: failed to update custom data on active session")}))}}},{key:"trustedOrigins",get:function(){return h.default.trustedOrigins},set:function(e){var t=e.map((function(e){try{return new URL(e).origin}catch(t){return console.warn("CobrowseIO: Invalid URL in trustedOrigins:",e),null}})).filter((function(e){return e}));h.default.trustedOrigins=t}},{key:"version",get:function(){return k.version}}])&&P(t.prototype,r),i&&P(t,i),Object.defineProperty(t,"prototype",{writable:!1}),k}(i.EventEmitter);t.CobrowseIO=de,u.RESTResource.setHeader("Content-Type","application/json"),u.RESTResource.setHeader("X-CobrowsePlatform","web"),u.RESTResource.setHeader("X-CobrowseSDKVersion",de.version),u.RESTResource.setHeader("X-CobrowseDevice",c.Device.deviceId()),u.RESTResource.setHeader("X-CobrowseAPIVersion","1.2.0");var pe=new de;t.default=pe},21974:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}r(69070),r(82526),r(41817),r(32165),r(66992),r(78783),r(33948),r(72443),r(39341),r(73706),r(10408),r(30489),r(54747),r(68309),r(68304),r(47042),t.Z=function(){try{var e=window.CXBus.registerPlugin("CobrowseIOExtension");window.oCobrowseIOExtension=e,e.subscribe("WebChatService.started",(function(t){try{s("CobrowseIOExtension.WebChatService.started",t),function(e){document.getElementsByClassName("cx-menu")[0].innerHTML+='<li role="none"><div class="cx-menu-item cx-cobrowseio cx-icon" role="button" data-icon="cobrowseio" tabindex="0" aria-label="Start Co-browse Opens the Co-browse session" title="Start Co-browse" style="display: block/;"><svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" viewBox="0 0 100 100" focusable="false" role="img" aria-hidden="true" alt="" data-gcb-service-node="true"><g class="cx-svg-icon-tone1" data-gcb-service-node="true"><path d="M11.5000001,3 L85.4166665,3 L87.6666668,3 C90.2624998,3 97,3.75367965 97,8.36940835 L97,30.4776335 L4.16666671,30.4776335 L4.16666671,70.4963922 C4.16666671,78.8021647 9.0333332,80.6810966 11.3333336,80.6810966 L88.6666664,80.6810966 C90.9625002,80.6810966 92.8333333,78.8021647 92.8333333,76.4963922 L92.8333333,41.8470419 L97,41.8470419 L97,79.5093796 C97,84.1251081 93.2624998,84.8787879 91.6666668,84.8787879 L8.3333332,84.8787879 C3.73750015,84.8787879 1,81.1251081 0,75.5093796 L0,8.36940835 C3,3.75367965 2.73750015,3 8.3333332,3 L8.5000001,3 Z M18.0297398,7.03030303 L5.9962825,7.03030303 C5.79033476,7.03030303 3.99999999,8.59607987 3.99999999,10.5175565 L3.999999,26.1125541 L93,26.1125541 L93,10.5175565 C93,8.59607987 91.2056692,7.03030303 89.0037175,7.03030303 L81.9702602,7.03030303 L18.0297398,7.03030303 Z M42.3451929,54.7727663 L42.3451929,68.6904309 L35,68.6904309 L35,47.7138693 C35,44.657411 37.4676761,42.1818182 40.5082059,42.1818182 L61.3971055,42.1818182 L61.3971055,49.5560425 L47.5394308,49.5560425 L66.3971054,67.9373646 L61.202867,73.154089 L42.3451929,54.7727663 Z" id="Fill-1-Copy""></path></g></svg></div></li>',document.getElementsByClassName("cx-cobrowseio")[0].onclick=function(){return function(e){return l.apply(this,arguments)}(e)}}(e),function(e){e.command("WebChatService.updateUserData",{cobrowse_device_id:o.default.deviceId()}).done((function(e){s("CobrowseIOExtension.WebChWebChatService.updateUserData succeeded",e)})).fail((function(e){s("CobrowseIOExtension.WebChWebChatService.updateUserData failed",e)}))}(e);var r={cobrowse_device_id:o.default.deviceId()};t&&t.data&&(t.data.data&&t.data.data.conversationId&&(r.genesys_conversation_id=t.data.data.conversationId),t.data.userId&&"deprecated"!==t.data.userId&&(r.genesys_user_id=t.data.userId),t.data.sessionID&&"deprecated"!==t.data.sessionID&&(r.genesys_session_id=t.data.sessionID)),o.default.customData=r}catch(e){s("Error during CobrowseIOExtension.WebChatService.started",e)}})),e.subscribe("WebChatService.agentConnected",(function(e){s("CobrowseIOExtension.WebChatService.agentConnected",e)})),e.subscribe("WebChatService.clientConnected",(function(e){s("CobrowseIOExtension.WebChatService.clientConnected",e)})),e.subscribe("WebChatService.restored",(function(e){s("CobrowseIOExtension.WebChatService.restored",e)})),e.subscribe("WebChat.started",(function(e){try{if(s("CobrowseIOExtension.WebChat.started",e),e&&e.data&&e.data.form){s("e.data.form",e.data.form);var t=e.data.form||{};t.device_name=e.data.form.firstname?"".concat(e.data.form.firstname,"'s device"):"WebChat User's Device",o.default.customData=t}}catch(e){s("Error during CobrowseIOExtension.WebChat.started",e)}})),e.republish("ready"),e.ready()}catch(e){console.error("Error syncing Cobrowse.io with Genesys, please contact hello@cobrowse.io for help!"),console.warn(e)}},r(41539),r(92222);var o=i(r(51178));function i(e){return e&&e.__esModule?e:{default:e}}function a(){a=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},u=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function f(e,t,r,n){var i=t&&t.prototype instanceof h?t:h,a=Object.create(i.prototype),u=new j(n||[]);return o(a,"_invoke",{value:O(e,r,u)}),a}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=f;var p={};function h(){}function v(){}function y(){}var m={};l(m,u,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(T([])));b&&b!==t&&r.call(b,u)&&(m=b);var w=y.prototype=h.prototype=Object.create(m);function E(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function i(o,a,u,c){var s=d(e[o],e,a);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==n(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){i("next",e,u,c)}),(function(e){i("throw",e,u,c)})):t.resolve(f).then((function(e){l.value=e,u(l)}),(function(e){return i("throw",e,u,c)}))}c(s.arg)}var a;o(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){i(e,r,t,n)}))}return a=a?a.then(n,n):n()}})}function O(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=S(a,r);if(u){if(u===p)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=d(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===p)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function S(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method))return p;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var n=d(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,p;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,p):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function T(e){if(e){var t=e[u];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:P}}function P(){return{value:void 0,done:!0}}return v.prototype=y,o(w,"constructor",{value:y,configurable:!0}),o(y,"constructor",{value:v,configurable:!0}),v.displayName=l(y,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,l(e,s,"GeneratorFunction")),e.prototype=Object.create(w),e},e.awrap=function(e){return{__await:e}},E(_.prototype),l(_.prototype,c,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new _(f(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(w),l(w,s,"Generator"),l(w,u,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=T,j.prototype={constructor:j,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),k(r),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:T(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},e}function u(e,t,r,n,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void r(e)}u.done?t(c):Promise.resolve(c).then(n,o)}function c(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){u(i,n,o,a,c,"next",e)}function c(e){u(i,n,o,a,c,"throw",e)}a(void 0)}))}}var s=(0,i(r(99796)).default)("cbio.Integrations.Genesys");function l(){return(l=c(a().mark((function e(t){var r;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return s("Requesting cobrowse"),e.next=3,o.default.createSessionCode();case 3:r=e.sent,s("Generated session code: ".concat(r)),t.command("WebChatService.sendFilteredMessage",{message:"Customer requests Cobrowse session with code: ".concat(r.substr(0,3)," ").concat(r.substr(3)),regex:/Customer requests Cobrowse session with code:.*/}).done((function(e){s("CobrowseIOExtension.WebChatService sent filtered message successfully",e)})).fail((function(e){s("CobrowseIOExtension.WebChatService failed to send filtered message",e)}));case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},41289:function(e,t,r){"use strict";var n;function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(69070);var i=(0,((n=r(99796))&&n.__esModule?n:{default:n}).default)("cbio.Integrations"),a=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"watchProperty",value:function(e,t,r){e[t]?(i("".concat(t," already exists")),r()):(i("".concat(t," not set yet... monitoring"),e),Object.defineProperty(e,t,{configurable:!0,set:function(n){i("CobrowseIO detected",t),Object.defineProperty(e,t,{configurable:!0,writable:!0,value:n}),setTimeout(r,0)}}))}},{key:"initialize",value:function(){var e=this;i("Initializing integrations"),this.watchProperty(window,"CXBus",(function(){return r(21974).Z()})),this.watchProperty(window,"Intercom",(function(){return r(34775).Z()})),this.watchProperty(window,"$zopim",(function(){return r(23478).z2()})),this.watchProperty(window,"zE",(function(){"messenger"===window.zE.widget?r(23478).dQ():e.watchProperty(window.zE,"identify",(function(){return r(23478).Bt()}))})),this.watchProperty(window,"embedded_svc",(function(){return e.watchProperty(window.embedded_svc,"liveAgentAPI",(function(){r(38738).Z()}))}))}}],null&&o(t.prototype,null),n&&o(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=a},34775:function(e,t,r){"use strict";r(69070),t.Z=function(){try{if(!window.Intercom||"function"!=typeof window.Intercom)throw new Error("expected window.Intercom to be a function");a("Initializing intercom integration"),u(),window.Intercom("onShow",(0,n.default)(u,12e4,{trailing:!1}))}catch(e){console.error("Error syncing Cobrowse.io with Intercom, please contact hello@cobrowse.io for help!"),console.warn(e)}};var n=i(r(23493)),o=i(r(51178));function i(e){return e&&e.__esModule?e:{default:e}}var a=(0,i(r(99796)).default)("cbio.Integrations.Intercom");function u(){a("Updating intercom integration"),window.intercomSettings||(window.intercomSettings={}),window.intercomSettings.CobrowseID=o.default.deviceId(),window.Intercom("update",{CobrowseID:o.default.deviceId()})}},38738:function(e,t,r){"use strict";r(69070),t.Z=function(){try{if("object"!==i(window.embedded_svc))throw new Error("expected window.embedded_svc to a be an object");if(window.embedded_svc&&!window.embedded_svc.liveAgentAPI)throw new Error("expected liveAgentAPI on embedded_svc");a("Initializing salesforce integration"),window.embedded_svc.addEventHandler("onChatRequestSuccess",(function(e){e&&e.liveAgentSessionKey&&(n.default.customData={salesforce_liveAgentSessionKey:e.liveAgentSessionKey})})),window.embedded_svc.addEventHandler("onChatEndedByAgent",(function(){n.default.currentSession&&n.default.currentSession.end()})),window.embedded_svc.addEventHandler("onChatEndedByChasitor",(function(){n.default.currentSession&&n.default.currentSession.end()}))}catch(e){console.error("Error syncing Cobrowse.io with Salesforce Chat, please contact hello@cobrowse.io for help!"),console.warn(e)}},r(82526),r(41817),r(41539),r(32165),r(66992),r(78783),r(33948);var n=o(r(51178));function o(e){return e&&e.__esModule?e:{default:e}}function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}var a=(0,o(r(99796)).default)("cbio.Integrations.Salesforce")},23478:function(e,t,r){"use strict";r(69070),t.Bt=function(){try{!function(){if(!window.zE||!window.zE.identify)throw new Error("missing window.zE or window.zE.identify");s();var e=window.zE.identify;window.zE.identify=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return a("identify",r[0]),e.apply(void 0,r)}}()}catch(e){console.error("Error syncing Cobrowse.io with Zendesk (classic), please contact hello@cobrowse.io for help!"),console.warn(e)}},t.dQ=function(){try{"true"===sessionStorage.getItem("ZD-widgetOpen")?h().then(l):window.zE("messenger:on","open",(function(){h().then(l)}))}catch(e){console.error("Error syncing Cobrowse.io with Zendesk (messenger), please contact hello@cobrowse.io for help!"),console.warn(e)}},t.z2=function(){try{if("function"!=typeof window.$zopim)throw new Error("expected window.$zopim to a be a function");window.$zopim((function(){i("Initializing zendesk integration"),window.$zopim.livechat.addTags("cobrowseio_deviceid_".concat(n.default.deviceId())),n.default.customData={cobrowseio_deviceid:n.default.deviceId()}}))}catch(e){console.error("Error syncing Cobrowse.io with Zendesk Chat, please contact hello@cobrowse.io for help!"),console.warn(e)}},r(68309),r(47941),r(69826),r(41539),r(74916),r(4723);var n=o(r(51178));function o(e){return e&&e.__esModule?e:{default:e}}var i=(0,o(r(99796)).default)("cbio.Integrations.Zendesk");function a(e,t){var r={};"identify"===e&&t?(t.name&&(r.user_name=t.name),t.email&&(r.user_email=t.email),t.organization&&(r.user_organization=t.organization)):"prefill"===e&&t?(t.name&&t.name.value&&(r.user_name=t.name.value),t.email&&t.email.value&&(r.user_email=t.email.value),t.phone&&t.phone.value&&(r.user_phone=t.phone.value)):"logout"===e&&(r={user_name:null,user_email:null,user_organization:null,user_phone:null}),c(r)}function u(e,t){var r={};"identify"===e&&t?r={zendesk_web_user_id:t.appUserId}:"logoutUser"===e&&(r={user_name:null,user_email:null,user_organization:null,user_phone:null,zendesk_web_user_id:null,zendesk_user_id:null,zendesk_ticket_id:null}),c(r)}function c(e){Object.keys(e).length&&(n.default.customData=e)}function s(){var e=window.zE;for(var t in window.zE=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];console.log(r);var o=r[0],i=r[1],c=r[2];return"webWidget"===o&&a(i,c),"messenger"===o&&u(i,c),e.apply(void 0,r)},e)window.zE[t]=e[t]}function l(){s();var e=f();if(!e)throw new Error("Missing client ID (ZD-buid)");var t=d(e);if(!t)throw new Error("Instance ID could not be found");u("identify",{appUserId:p(t)})}function f(){return localStorage.getItem("ZD-buid")}function d(e){var t,r;return null===(t=Object.keys(localStorage).find((function(t){return t.match(/\w+\.clientId/)&&localStorage[t]===e})))||void 0===t||null===(r=t.split("."))||void 0===r?void 0:r[0]}function p(e){return localStorage.getItem("".concat(e,".appUserId"))}function h(){return new Promise((function e(t,r){var n=p(d(f()));n?t(n):setTimeout(e,2e3,t,r)}))}},55978:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}r(69070),r(68304),r(30489),r(12419),r(82526),r(41817),r(32165),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(66992),r(41539),r(78783),r(4129),r(33948);var o=r(17187),i=a(r(23493));function a(e){return e&&e.__esModule?e:{default:e}}function u(e,t){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},u(e,t)}function c(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return s(e)}function s(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function l(e){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},l(e)}function f(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function d(e,t,r){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,r)}function p(e,t){return function(e,t){return t.get?t.get.call(e):t.value}(e,v(e,t,"get"))}function h(e,t,r){return function(e,t,r){if(t.set)t.set.call(e,r);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=r}}(e,v(e,t,"set"),r),r}function v(e,t,r){if(!t.has(e))throw new TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}var y=(0,a(r(99796)).default)("cbio.ActivityDetection"),m=new WeakMap,g=new WeakMap,b=new WeakMap,w=new WeakMap,E=new WeakMap,_=new WeakMap,O=new WeakMap,S=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u(e,t)}(a,e);var t,r,n,o=(r=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=l(r);if(n){var o=l(this).constructor;e=Reflect.construct(t,arguments,o)}else e=t.apply(this,arguments);return c(this,e)});function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),d(s(t=o.call(this)),m,{writable:!0,value:!1}),d(s(t),g,{writable:!0,value:!1}),d(s(t),b,{writable:!0,value:null}),d(s(t),w,{writable:!0,value:9e5}),f(s(t),"start",(function(){p(s(t),m)||(h(s(t),m,!0),y("started"),document.addEventListener("mouseenter",p(s(t),E),{capture:!0,passive:!0}),document.addEventListener("mouseleave",p(s(t),E),{capture:!0,passive:!0}),document.addEventListener("mousemove",p(s(t),E),{capture:!0,passive:!0}),document.addEventListener("touchstart",p(s(t),E),{capture:!0,passive:!0}),document.addEventListener("touchend",p(s(t),E),{capture:!0,passive:!0}),document.addEventListener("touchmove",p(s(t),E),{capture:!0,passive:!0}),document.addEventListener("visibilitychange",p(s(t),E),{capture:!0}),p(s(t),E).call(s(t)))})),f(s(t),"stop",(function(){h(s(t),g,!1),h(s(t),m,!1),y("stopped"),clearTimeout(p(s(t),b)),t.removeAllListeners(),document.removeEventListener("mouseenter",p(s(t),E),{capture:!0,passive:!0}),document.removeEventListener("mouseleave",p(s(t),E),{capture:!0,passive:!0}),document.removeEventListener("mousemove",p(s(t),E),{capture:!0,passive:!0}),document.removeEventListener("touchstart",p(s(t),E),{capture:!0,passive:!0}),document.removeEventListener("touchend",p(s(t),E),{capture:!0,passive:!0}),document.removeEventListener("touchmove",p(s(t),E),{capture:!0,passive:!0}),document.removeEventListener("visibilitychange",p(s(t),E),{capture:!0})})),f(s(t),"isActive",(function(){return p(s(t),g)})),d(s(t),E,{writable:!0,value:(0,i.default)((function(){p(s(t),_).call(s(t)),clearTimeout(p(s(t),b)),h(s(t),b,setTimeout(p(s(t),O),p(s(t),w))),t.emit("activity")}),500,{trailing:!1})}),d(s(t),_,{writable:!0,value:function(){p(s(t),g)||(document.hidden?y("window is hidden, not becoming active"):(h(s(t),g,!0),y("became active"),t.emit("active")))}}),d(s(t),O,{writable:!0,value:function(){p(s(t),g)&&(h(s(t),g,!1),y("became inactive"),t.emit("inactive"))}}),e&&h(s(t),w,e),t}return t=a,Object.defineProperty(t,"prototype",{writable:!1}),t}(o.EventEmitter);t.default=S},12650:function(e,t,r){"use strict";r(47941),r(82526),r(57327),r(41539),r(38880),r(54747),r(49337),r(33321),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(69070);var n,o=(n=r(23493))&&n.__esModule?n:{default:n};function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach((function(t){s(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function u(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function c(e,t,r){return t&&u(e.prototype,t),r&&u(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function s(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var l=new(c((function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),s(this,"_mousePosition",{x:-1,y:-1}),s(this,"_mouseIsDown",!1),s(this,"_mouseIsIn",!1),s(this,"track",(function(e){e.addEventListener("mousedown",t._onMouseDown,{capture:!0,passive:!0}),e.addEventListener("mouseup",t._onMouseUp,{capture:!0,passive:!0}),e.addEventListener("mouseenter",t._onMouseEnter,{capture:!0,passive:!0}),e.addEventListener("mouseleave",t._onMouseLeave,{capture:!0,passive:!0}),e.addEventListener("mousemove",t._onMouseMove,{capture:!0,passive:!0})})),s(this,"untrack",(function(e){e.removeEventListener("mousedown",t._onMouseDown,{capture:!0,passive:!0}),e.removeEventListener("mouseup",t._onMouseUp,{capture:!0,passive:!0}),e.removeEventListener("mouseenter",t._onMouseEnter,{capture:!0,passive:!0}),e.removeEventListener("mouseleave",t._onMouseLeave,{capture:!0,passive:!0}),e.removeEventListener("mousemove",t._onMouseMove,{capture:!0,passive:!0})})),s(this,"isDown",(function(){return t._mouseIsDown})),s(this,"setDown",(function(e){t._mouseIsDown=e,t.onChange&&t.onChange(t.state())})),s(this,"isIn",(function(){return t._mouseIsIn>0})),s(this,"position",(function(){return t._mousePosition})),s(this,"setPosition",(function(e,r,n){if(n){var o=n.getBoundingClientRect();e+=Math.round(o.left),r+=Math.round(o.top)}t._mousePosition={x:e,y:r},t.onChange&&t.onChange(t.state())})),s(this,"state",(function(){return a(a({},t.position()),{},{down:t.isDown(),in:t.isIn()})})),s(this,"_onMouseDown",(function(e){e.isTrusted&&t.setDown(!0)})),s(this,"_onMouseUp",(function(e){e.isTrusted&&t.setDown(!1)})),s(this,"_onMouseEnter",(function(e){e.isTrusted&&(t._mouseIsIn+=1)})),s(this,"_onMouseLeave",(function(e){e.isTrusted&&e.target===e.currentTarget&&(t._mouseIsIn-=1)})),s(this,"_onMouseMove",(0,o.default)((function(e){if(e.isTrusted){var r=e.clientX,n=e.clientY,o=e.view&&e.view.frameElement;t.setPosition(r,n,o)}}),100))})));t.default=l},1094:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}r(69070),r(68304),r(30489),r(12419),r(82526),r(41817),r(32165),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(92222),r(66992),r(41539),r(78783),r(4129),r(33948);var o=r(17187),i=r(21614),a=u(r(95901));function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}function f(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return d(e)}function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}function h(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function v(e,t,r){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,r)}function y(e,t,r){return function(e,t,r){if(t.set)t.set.call(e,r);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=r}}(e,g(e,t,"set"),r),r}function m(e,t){return function(e,t){return t.get?t.get.call(e):t.value}(e,g(e,t,"get"))}function g(e,t,r){if(!t.has(e))throw new TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}var b=(0,u(r(99796)).default)("cbio.WindowTracking"),w="_cobrowse_window_id",E=new WeakMap,_=new WeakMap,O=new WeakMap,S=new WeakMap,x=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(g,e);var t,r,n,o,u=(n=g,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=p(n);if(o){var r=p(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return f(this,e)});function g(){var e;c(this,g);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return v(d(e=u.call.apply(u,[this].concat(r))),E,{writable:!0,value:(0,i.v4)()}),v(d(e),_,{writable:!0,value:!1}),v(d(e),O,{writable:!0,value:!1}),h(d(e),"start",(function(){m(d(e),O)||(y(d(e),O,!0),b("started"),m(d(e),S).call(d(e)),document.addEventListener("visibilitychange",m(d(e),S),{capture:!0}),document.addEventListener("mouseover",m(d(e),S),{capture:!0}))})),h(d(e),"stop",(function(){b("stopped"),e.removeAllListeners(),y(d(e),O,!1),document.removeEventListener("visibilitychange",m(d(e),S),{capture:!0}),document.removeEventListener("mouseover",m(d(e),S),{capture:!0})})),h(d(e),"isActive",(function(){return(0,a.default)().getItem(w)===e.id})),h(d(e),"setTracksIframes",(function(t){y(d(e),_,t),m(d(e),S).call(d(e))})),h(d(e),"shouldTrack",(function(){return!document.hidden&&(!(window.self!==window.top)||m(d(e),_))})),h(d(e),"makeActive",(function(){e.isActive()||(b("making active",window),(0,a.default)().setItem(w,e.id),e.emit("activate",window))})),h(d(e),"resignActive",(function(){e.isActive()&&(b("resigning active",window),(0,a.default)().setItem(w,null))})),v(d(e),S,{writable:!0,value:function(){e.shouldTrack()&&e.makeActive(),e.emit("updated")}}),e}return t=g,(r=[{key:"id",get:function(){return m(this,E)}}])&&s(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),g}(o.EventEmitter),k=new x;t.default=k},55064:function(e,t,r){"use strict";r(69070),Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ActivityDetection",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(t,"MouseTracking",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"WindowTracking",{enumerable:!0,get:function(){return i.default}});var n=a(r(55978)),o=a(r(12650)),i=a(r(1094));function a(e){return e&&e.__esModule?e:{default:e}}},97725:function(e,t,r){"use strict";r(69070),r(68304),r(30489),r(74819),r(38880),r(12419),r(82526),r(41817),r(32165),r(72443),r(39341),r(73706),r(10408),r(54747),r(68309),r(47042),Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.RegistrationPath=t.DeviceIdPath=void 0,r(41539),r(39714),r(66992),r(78783),r(33948),r(60285),r(41637),r(69826),r(47941),r(92222),r(74916),r(4129);var n=r(21614),o=r(58302),i=s(r(2260)),a=s(r(95901)),u=s(r(53440)),c=s(r(99421));function s(e){return e&&e.__esModule?e:{default:e}}function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function f(){f=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function s(e,t,r,o){var i=t&&t.prototype instanceof h?t:h,a=Object.create(i.prototype),u=new j(o||[]);return n(a,"_invoke",{value:O(e,r,u)}),a}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var p={};function h(){}function v(){}function y(){}var m={};c(m,i,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(T([])));b&&b!==t&&r.call(b,i)&&(m=b);var w=y.prototype=h.prototype=Object.create(m);function E(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function o(n,i,a,u){var c=d(e[n],e,i);if("throw"!==c.type){var s=c.arg,f=s.value;return f&&"object"==l(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,u)}),(function(e){o("throw",e,a,u)})):t.resolve(f).then((function(e){s.value=e,a(s)}),(function(e){return o("throw",e,a,u)}))}u(c.arg)}var i;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}})}function O(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=S(a,r);if(u){if(u===p)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=d(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===p)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function S(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method))return p;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var n=d(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,p;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,p):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function T(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:P}}function P(){return{value:void 0,done:!0}}return v.prototype=y,n(w,"constructor",{value:y,configurable:!0}),n(y,"constructor",{value:v,configurable:!0}),v.displayName=c(y,u,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,c(e,u,"GeneratorFunction")),e.prototype=Object.create(w),e},e.awrap=function(e){return{__await:e}},E(_.prototype),c(_.prototype,a,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new _(s(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(w),c(w,u,"Generator"),c(w,i,(function(){return this})),c(w,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=T,j.prototype={constructor:j,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),k(r),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:T(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},e}function d(e,t,r,n,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void r(e)}u.done?t(c):Promise.resolve(c).then(n,o)}function p(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){d(i,n,o,a,u,"next",e)}function u(e){d(i,n,o,a,u,"throw",e)}a(void 0)}))}}function h(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function v(e,t){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},v(e,t)}function y(e,t){if(t&&("object"===l(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return m(e)}function m(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g(){return g="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=b(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(arguments.length<3?e:r):o.value}},g.apply(this,arguments)}function b(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=w(e)););return e}function w(e){return w=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},w(e)}function E(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _(e,t,r){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,r)}function O(e,t){return function(e,t){return t.get?t.get.call(e):t.value}(e,x(e,t,"get"))}function S(e,t,r){return function(e,t,r){if(t.set)t.set.call(e,r);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=r}}(e,x(e,t,"set"),r),r}function x(e,t,r){if(!t.has(e))throw new TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}var k=(0,s(r(99796)).default)("cbio.Device"),j="_cobrowse_device_id";t.DeviceIdPath=j;var T="_cobrowse_device_registration";t.RegistrationPath=T;var P=new WeakMap,L=new WeakMap,I=new WeakMap,A=new WeakMap,C=new WeakMap,M=new WeakMap,N=new WeakMap,R=new WeakMap,D=new WeakMap,F=new WeakMap,U=new WeakMap,W=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&v(e,t)}(x,e);var t,r,o,s,d,b=(s=x,d=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=w(s);if(d){var r=w(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return y(this,e)});function x(e){var t,r;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,x),_(m(r=b.call(this)),P,{writable:!0,value:void 0}),_(m(r),L,{writable:!0,value:void 0}),_(m(r),I,{writable:!0,value:void 0}),_(m(r),A,{writable:!0,value:!1}),_(m(r),C,{writable:!0,value:void 0}),E(m(r),"url",(function(){return new URL("api/1/devices/".concat(r.id()),x.api).toString()})),E(m(r),"reset",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];k("resetting device"),clearTimeout(O(m(r),I)),S(m(r),I,null),e||(0,a.default)().removeItem(T),O(m(r),P)&&(O(m(r),P).close(),S(m(r),P,null))})),E(m(r),"destroy",p(f().mark((function e(){return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return k("destroying device"),r.reset(),e.abrupt("return",g((t=m(r),w(x.prototype)),"destroy",t).call(t));case 3:case"end":return e.stop()}}),e)})))),E(m(r),"hasPendingUpdates",(function(){var e=r.field("custom_data")||{},t=O(m(r),C).customData||{};return!!Object.keys(t).find((function(r){return e[r]!==t[r]}))})),_(m(r),M,{writable:!0,value:function(){if(!O(m(r),C).license)throw new Error("License required to generate storage key");return"".concat(O(m(r),C).license,":").concat(x.api)}}),E(m(r),"_saveRegistration",(function(){var e=r.field("next_registration")||3600,t=(new Date).getTime();"number"!=typeof Date.now()&&console.error("Unexpected type returned for Date.now(), expecting number got ".concat(l(Date.now()))),"number"!=typeof t&&console.error("Unexpected type for getTime() of Date, expecting number got ".concat(l(t)));var n={notification_url:r.field("notification_url"),notification_token:r.field("notification_token"),custom_data:r.field("custom_data"),next_registration_time:t+1e3*e};return r.cache({next_registration_time:n.next_registration_time}),(0,a.default)(O(m(r),M).call(m(r))).setItem(T,n),m(r)})),E(m(r),"_loadRegistration",(function(){if(!O(m(r),A)){S(m(r),A,!0);var e=(0,a.default)(O(m(r),M).call(m(r))).getItem(T);e&&(k("restoring registration",e),r.cache(e))}})),E(m(r),"updateRegistration",function(){var e=p(f().mark((function e(t){return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!O(m(r),L).limit()){e.next=2;break}throw new Error("Cobrowse update rate limit exceeded. Maybe you're updating custom data too often?");case 2:return k("updating registration"),e.next=5,r.update({device:x.info,custom_data:O(m(r),C).customData},t);case 5:return O(m(r),U).call(m(r)),r._saveRegistration(),r.emit("register"),e.abrupt("return",m(r));case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),E(m(r),"runRegistrationLoop",p(f().mark((function e(){return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(k("starting registrations"),r._loadRegistration(),r.reset(!0),!(r.hasPendingUpdates()||r.nextRegistration()<=0)){e.next=6;break}return e.next=6,r.updateRegistration().catch((function(){}));case 6:O(m(r),U).call(m(r)),O(m(r),N).call(m(r));case 8:case"end":return e.stop()}}),e)})))),E(m(r),"pauseRegistrationLoop",p(f().mark((function e(){return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:k("pausing registrations"),r.reset(!0);case 2:case"end":return e.stop()}}),e)})))),E(m(r),"nextRegistration",(function(){return(r.field("next_registration_time")||0)-(new Date).getTime()})),E(m(r),"bannerMessage",(function(){return r.field("banner_message")||!1})),E(m(r),"_nextUpdate",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return Math.max(Math.min(6e4*e,36e5),r.nextRegistration())})),_(m(r),N,{writable:!0,value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(O(m(r),I))console.error("CobrowseIO: tried to schedule registration while already scheduled");else{var t=r._nextUpdate(e);S(m(r),I,setTimeout(p(f().mark((function t(){return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(O(m(r),I)){t.next=2;break}return t.abrupt("return",console.error("Registration loop cancelled"));case 2:return t.prev=2,t.next=5,r.updateRegistration();case 5:return S(m(r),I,!1),t.abrupt("return",O(m(r),N).call(m(r)));case 9:return t.prev=9,t.t0=t.catch(2),console.warn("CobrowseIO: registration failed",t.t0),S(m(r),I,!1),t.abrupt("return",O(m(r),N).call(m(r),e+1));case 14:case"end":return t.stop()}}),t,null,[[2,9]])}))),Math.max(1e3,t)))}}}),_(m(r),R,{writable:!0,value:function(){var e=r.field("notification_url"),t=r.field("notification_token");return(0,u.default)(e,t)}}),_(m(r),D,{writable:!0,value:function(){O(m(r),P)||(S(m(r),P,new i.default({getUrl:O(m(r),R)})),O(m(r),P).setMaxReconnectDelay(6e4),O(m(r),P).on("error",(function(e){e&&console.warn("CobrowseIO notification socket error:",e)})),O(m(r),P).on("event",(function(e,t){"notification"===e?r.emit("notification",t):"probe"===e&&O(m(r),P).send("alive",t)})),O(m(r),P).on("open",(function(){O(m(r),P).send("filter",{events:["probe","notification"]})})))}}),_(m(r),F,{writable:!0,value:function(){O(m(r),P)&&(console.log("CobrowseIO: Closing socket"),O(m(r),P).close(),S(m(r),P,null))}}),_(m(r),U,{writable:!0,value:function(){var e=r.field("notification_url"),t=r.field("notification_token");e&&t?O(m(r),D).call(m(r)):O(m(r),F).call(m(r))}}),k("constructed"),!e)throw new Error("Device delegate is required");return S(m(r),C,e),S(m(r),L,new c.default(10,12e4)),r}return t=x,o=[{key:"deviceCredentials",value:function(){var e=(0,a.default)().getItem(j)||{};return"string"==typeof e&&(e={id:e}),"object"!==l(e)&&(e={}),e.id||(e.id=(0,n.v4)()),e.token||(e.token=(0,n.v4)()),(0,a.default)().setItem(j,e),e}},{key:"deviceId",value:function(){return this.deviceCredentials().id}},{key:"deviceToken",value:function(){return this.deviceCredentials().token}},{key:"info",get:function(){var e=["pointer","scroll","select","keypress","drawing","laser","cursor"];return/Android|webOS|iPhone|iPad|iPod|Opera Mini/i.test(window.navigator.userAgent)||e.push("full_device"),{platform:"web",device:window.navigator.userAgent,device_locale:window.navigator.language,device_timezone:window.Intl.DateTimeFormat().resolvedOptions().timeZone,os_version:window.navigator.platform,app_id:window.location.origin,app_name:window.document.title,app_build_configuration:"release",sdk_version:"2.22.2",capabilities:e}}}],(r=[{key:"id",value:function(){return x.deviceId()}},{key:"customData",get:function(){return this.field("custom_data")||{}}}])&&h(t.prototype,r),o&&h(t,o),Object.defineProperty(t,"prototype",{writable:!1}),x}(o.RESTResource);t.default=W},35161:function(e,t,r){"use strict";r(69070),Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Device",{enumerable:!0,get:function(){return o.default}});var n,o=(n=r(97725))&&n.__esModule?n:{default:n}},8128:function(e,t,r){"use strict";r(47941),r(82526),r(57327),r(38880),r(49337),r(33321),r(47042),r(91038),r(74916),r(41817),r(32165),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(41539),r(54747),r(26699),r(32023),r(68309),r(66992),r(70189),r(78783),r(33948),r(69070);var n,o=r(41514),i=r(55064),a=(n=r(18755))&&n.__esModule?n:{default:n};function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach((function(t){d(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function l(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function f(e,t,r){return t&&l(e.prototype,t),r&&l(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function d(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var p=f((function e(t){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),d(this,"_init",(function(){r._propertyWatcher||(r._propertyWatcher=new o.PropertyObserver(r._onPropertySet),a.default.on("stylechange",r._onStyleSheetChange),a.default.on("navigate",r._onNavigation))})),d(this,"observe",(function(e){if(!r._observing.has(e)){r._init(),e.addEventListener("scroll",r._onEvent,{capture:!0,passive:!0}),e.addEventListener("focus",r._onFocusChange,{capture:!0,passive:!0}),e.addEventListener("blur",r._onFocusChange,{capture:!0,passive:!0}),e.addEventListener("change",r._onInputEvent,{capture:!0,passive:!0}),e.addEventListener("keydown",r._onInputEvent,{capture:!0,passive:!0}),e.addEventListener("keyup",r._onInputEvent,{capture:!0,passive:!0}),e.addEventListener("keypress",r._onInputEvent,{capture:!0,passive:!0}),e.addEventListener("selectionchange",r._onSelectionEvent,{capture:!0,passive:!0}),e.addEventListener("select",r._onSelectionEvent,{capture:!0,passive:!0}),i.MouseTracking.track(e),r._observing.add(e);var t=(e.ownerDocument||e).defaultView;t&&!r._windows.has(t)&&(r._windows.add(t),a.default.tap(t),r._propertyWatcher.observe(t.HTMLInputElement,"value"),r._propertyWatcher.observe(t.HTMLInputElement,"checked"),r._propertyWatcher.observe(t.HTMLTextAreaElement,"value"),r._propertyWatcher.observe(t.ShadowRoot,"adoptedStyleSheets"),r._propertyWatcher.observe(t.Document,"adoptedStyleSheets"),t.addEventListener&&(t.addEventListener("hashchange",r._onEvent,{capture:!0,passive:!0}),t.addEventListener("resize",r._onEvent,{capture:!0,passive:!0})))}})),d(this,"disconnect",(function(){r._observing.forEach((function(e){e.removeEventListener("scroll",r._onEvent,{capture:!0,passive:!0}),e.removeEventListener("focus",r._onFocusChange,{capture:!0,passive:!0}),e.removeEventListener("blur",r._onFocusChange,{capture:!0,passive:!0}),e.removeEventListener("change",r._onInputEvent,{capture:!0,passive:!0}),e.removeEventListener("keydown",r._onInputEvent,{capture:!0,passive:!0}),e.removeEventListener("keyup",r._onInputEvent,{capture:!0,passive:!0}),e.removeEventListener("keypress",r._onInputEvent,{capture:!0,passive:!0}),e.removeEventListener("selectionchange",r._onSelectionEvent,{capture:!0,passive:!0}),e.removeEventListener("select",r._onSelectionEvent,{capture:!0,passive:!0}),i.MouseTracking.untrack(e)})),r._observing.clear(),r._windows.forEach((function(e){a.default.untap(e),e&&!(0,o.isxdoc)(e)&&e.removeEventListener&&(e.removeEventListener("hashchange",r._onEvent,{capture:!0,passive:!0}),e.removeEventListener("resize",r._onEvent,{capture:!0,passive:!0}))})),r._windows.clear(),r._propertyWatcher&&(r._propertyWatcher.disconnect(),r._propertyWatcher=null,a.default.off("stylechange",r._onStyleSheetChange),a.default.off("navigate",r._onNavigation))})),d(this,"_target",(function(e){return e.target&&e.target.document||e.target})),d(this,"_onEvent",(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r._onModification(r._target(e),s(s({},t),{},{type:e.type}))})),d(this,"_onSelectionEvent",(function(e){var t,n,o=null!==(t=e.target.ownerDocument)&&void 0!==t?t:e.target;o.__last_agent_selection_ts>Date.now()-100||("selectionchange"===e.type&&(["INPUT","TEXTAREA"].includes(null===(n=o.activeElement)||void 0===n?void 0:n.tagName)?(o.activeElement.__cobrowse_user_selection_timestamp=Date.now(),r._onModification(o.activeElement,{type:e.type})):(e.target.__cobrowse_user_selection_timestamp=Date.now(),r._onModification(e.target,{type:e.type}))),"select"===e.type&&(e.target.__cobrowse_user_selection_timestamp=Date.now(),r._onModification(e.target,{type:e.type})))})),d(this,"_onStyleSheetChange",(function(e){e.ownerNode&&r._onModification(e.ownerNode,{type:"stylesheet"});var t,n=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){c=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(c)throw i}}}}(r._observing);try{for(n.s();!(t=n.n()).done;){var o,i=t.value;null!==(o=i.adoptedStyleSheets)&&void 0!==o&&o.includes(e)&&r._onModification(i,{type:"adoptedstylesheet"})}}catch(e){n.e(e)}finally{n.f()}})),d(this,"_onNavigation",(function(e){r._onModification(e.document,{type:"navigation"})})),d(this,"_onFocusChange",(function(e){r._onModification(e.target,{type:e.type}),e.target.ownerDocument&&r._onModification(e.target.ownerDocument,{type:e.type})})),d(this,"_onInputEvent",(function(e){"SELECT"===e.target.tagName||"TEXTAREA"===e.target.tagName?r._onModification(r._target(e),{recursive:!0,type:e.type}):"INPUT"===e.target.tagName&&("radio"===e.target.type?(e.target.closest("form")||e.target.ownerDocument).querySelectorAll("input[type=radio][name=".concat(e.target.name,"]")).forEach((function(t){return r._onModification(t,{type:e.type})})):r._onModification(r._target(e),{recursive:!0,type:e.type}))})),d(this,"_onPropertySet",(function(e){r._onModification(e,{type:"property"})})),this._onModification=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return setTimeout((function(){return t.apply(void 0,r)}),0)},this._observing=new Set,this._windows=new Set}));t.default=p},40638:function(e,t,r){"use strict";r(82526),r(38880),r(49337),r(33321),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(57327),r(41539),r(21249),r(47941),r(85827),r(26833),r(54747),r(69070);var n,o=(n=r(64063))&&n.__esModule?n:{default:n},i=r(41514);function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach((function(t){l(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function c(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function s(e,t,r){return t&&c(e.prototype,t),r&&c(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function l(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var f=s((function e(t){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),l(this,"_difference",(function(e,t){return t?Object.keys(e).map((function(r){return!(0,o.default)(e[r],t[r])&&l({},r,e[r])})).filter((function(e){return e})).reduce((function(e,t){return u(u({},e),t)}),{}):u({},e)})),l(this,"compress",(function(){return Object.values(r.modified).map((function(e){var t=r.state.node(e.id),n=r._difference(e,t),o=u({id:e.id},n);return 1!==Object.keys(o).length&&o})).filter((function(e){return e}))})),l(this,"mark",(function(){return r.state.applyPatch(Object.values(r.modified)),r.modified={},r})),l(this,"_flatten",(function(e){return e.childNodes?u(u({},e),{},{childNodes:e.childNodes.map((function(e){return{id:e.id}}))}):e})),l(this,"push",(function(e){return e&&e.modified?(e.modified.filter((function(e){return e})).forEach((function(e){(0,i.depthFirst)(e,(function(e){r.modified[e.id]=u(u({},r.modified[e.id]),r._flatten(e))}))})),r):(console.error("invalid patch",e),r)})),l(this,"reset",(function(e){return r.state=new i.VirtualDOM(r._id),r.modified={},e&&r.push({_t:"reset",modified:[e]}),r})),this._id=t,this.reset()}));t.default=f},33375:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}r(68304),r(30489),r(12419),r(47941),r(82526),r(38880),r(49337),r(33321),r(41817),r(32165),r(91038),r(68309),r(74916),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(66992),r(41539),r(70189),r(78783),r(33948),r(54747),r(47042),r(39714),r(92222),r(57327),r(21249),r(69070);var o=r(17187),i=r(41514),a=r(28541),u=r(67743),c=l(r(8128)),s=l(r(19356));function l(e){return e&&e.__esModule?e:{default:e}}function f(e){return function(e){if(Array.isArray(e))return p(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||d(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e,t){if(e){if("string"==typeof e)return p(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?p(e,t):void 0}}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function h(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function v(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?h(Object(r),!0).forEach((function(t){w(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function y(e,t){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},y(e,t)}function m(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return g(e)}function g(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function b(e){return b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},b(e)}function w(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var E=(0,l(r(99796)).default)("cbio.PatchStream"),_=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&y(e,t)}(l,e);var t,r,n,o=(r=l,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=b(r);if(n){var o=b(this).constructor;e=Reflect.construct(t,arguments,o)}else e=t.apply(this,arguments);return m(this,e)});function l(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),w(g(t=o.call(this)),"start",(function(){E("starting patch stream for",t._root),t._documents=new Set,t._redacted=new Set,t._iframeBridge.on("iframe_patched",t._onXDocIframeUpdate),t._canvasUpdateInterval=setInterval(t._updateCanvasContent,2e3),t._observe(t._root)})),w(g(t),"forceUpdate",(function(){E("forcing entire state update from",t._root),t.emit("patch",{_t:"pre-force",flush:!0,modified:[v(v({},u.NodeSerializer.serialize(t._root)),{},{scroll:void 0,childNodes:[v(v({},u.NodeSerializer.serialize(t._root.documentElement)),{},{childNodes:[u.NodeTree.depthFirst(t._root.head,u.NodeSerializer.serialize)]})]})]}),t.emit("patch",{_t:"forced",modified:[u.NodeTree.depthFirst(t._root,u.NodeSerializer.serialize)]})})),w(g(t),"stop",(function(){E("stopping patch stream for",t._root),t._mutationObserver.disconnect(),t._eventObserver.disconnect(),t._iframeBridge.removeListener("iframe_patched",t._onXDocIframeUpdate),clearInterval(t._canvasUpdateInterval),t._documents&&t._documents.clear(),t._documents=null})),w(g(t),"destroy",(function(){E("destroying patch stream for",t._root),t.stop(),t.removeAllListeners(),u.NodeTree.depthFirst(t._root,t._untrack),t._mutationObserver=null,t._eventObserver=null,t._iframeBridge=null,t._redacted=null,t._root=null})),w(g(t),"_updateCanvasContent",(function(){t._documents.forEach((function(e){(0,i.isxdoc)(e)||e.nodeType!==window.Node.DOCUMENT_FRAGMENT_NODE&&[].slice.call(e.getElementsByTagName("canvas")).forEach((function(e){t.emit("patch",{_t:"canvas",modified:[u.NodeSerializer.serialize(e)]})}))}))})),w(g(t),"_track",(function(e){if(u.NodeUtils.isDOMNode(e)){u.NodeTracker.track(e);var r=t._redacted.has(e),n=a.NodeRedaction.isNodeRedacted(e);r&&!n?t._redacted.delete(e):!r&&n&&t._redacted.add(e),e.nodeType===window.Node.DOCUMENT_NODE&&t._observe(e),e.nodeType===window.Node.DOCUMENT_FRAGMENT_NODE&&"[object Object]"!==e.toString()&&t._observe(e),"IFRAME"===e.tagName&&((0,i.isxdoc)(e)&&t._iframeBridge.sync(e),e.removeEventListener("load",t._onIframeLoad),e.addEventListener("load",t._onIframeLoad))}})),w(g(t),"_untrack",(function(e){u.NodeTracker.forget(e),t._redacted&&t._redacted.delete(e),u.NodeUtils.isDOMNode(e)&&"IFRAME"===e.tagName&&e.removeEventListener("load",t._onIframeLoad)})),w(g(t),"_observe",(function(e){if(e.nodeType!==window.Node.DOCUMENT_NODE&&e.nodeType!==window.Node.DOCUMENT_FRAGMENT_NODE)throw new Error("CobrowseIO: observed a non-document or fragment node (type=".concat(e.nodeType,")"));if(!t._documents.has(e)){E("starting observation of",e),t._documents.add(e),E("doing initial node tracking on observe for",e),u.NodeTree.depthFirst(e,t._track),t._eventObserver.observe(e);try{t._mutationObserver.observe(e,{attributes:!0,childList:!0,subtree:!0,characterData:!0})}catch(t){console.error("CobrowseIO failed to start mutation observer for",e)}}})),w(g(t),"_onXDocIframeUpdate",(function(e){E("xdoc iframe updated",e),a.NodeRedaction.isRedacted(e)||u.NodeTree.isIgnored(e)||t.emit("patch",{_t:"xdociframeupdate",modified:[u.NodeTree.depthFirst(e,u.NodeSerializer.serialize)]})})),w(g(t),"_onIframeLoad",(function(e){var r=e.target;E("iframe loaded",r),a.NodeRedaction.isRedacted(r)||((0,i.isxdoc)(r)?t._iframeBridge.sync(r):t._observe(r.contentWindow.document),u.NodeTree.isIgnored(r)||t.emit("patch",{_t:"iframeupdate",modified:[u.NodeTree.depthFirst(r,u.NodeSerializer.serialize)]}))})),w(g(t),"_onEventMutation",(function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t._onDOMChange(t._mutationObserver.takeRecords()),"TEXTAREA"===e.tagName&&u.NodeTree.depthFirst(e,t._track),u.NodeTracker.get(e)&&!a.NodeRedaction.isRedacted(e)&&!u.NodeTree.isIgnored(e)){var n=r.recursive?u.NodeTree.depthFirst(e,u.NodeSerializer.serialize):u.NodeSerializer.serialize(e);t.emit("patch",{_t:"eventmutation:".concat(r.type),modified:[n]})}})),w(g(t),"_discoverNodes",(function(e,r,n){for(var o=e.addedNodes?[].slice.call(e.addedNodes):[],i=a.NodeRedaction.notifyChanges([e]),c=0,s=[e.target].concat(f(i.modified));c<s.length;c++){var l=s[c];r.has(l)||(n.add(l),t._redacted.has(l)&&!a.NodeRedaction.isNodeRedacted(l)&&o.push(l))}var p,h=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=d(e))){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw i}}}}(o);try{for(h.s();!(p=h.n()).done;){var v=p.value;u.NodeTree.depthFirst(v,(function(e){n.add(e),r.delete(e)}))}}catch(e){h.e(e)}finally{h.f()}e.removedNodes&&[].slice.call(e.removedNodes).forEach((function(e){u.NodeTree.depthFirst(e,(function(e){n.delete(e),r.add(e)}))}))})),w(g(t),"_getModifications",(function(e){var r=new Set,n=new Set;return e.forEach((function(e){("characterData"===e.type||n.has(e.target)||u.NodeTracker.get(e.target))&&t._discoverNodes(e,r,n)})),r.forEach((function(e){return t._untrack(e)})),n.forEach((function(e){return t._track(e)})),n})),w(g(t),"_onDOMChange",(function(e){var r=t._getModifications(e);E("DOM changed",r);var n=f(r).map((function(e){return u.NodeSerializer.serialize(e)})).filter((function(e){return e}));E("DOM changes serialized",n),t.emit("patch",{_t:"domchange",modified:n})})),t._root=e,t._mutationObserver=new MutationObserver(t._onDOMChange),t._eventObserver=new c.default(t._onEventMutation),t._iframeBridge=s.default,t}return t=l,Object.defineProperty(t,"prototype",{writable:!1}),t}(o.EventEmitter);t.default=_},35493:function(e,t,r){"use strict";r(69070),Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"PatchCompressor",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"PatchStream",{enumerable:!0,get:function(){return n.default}});var n=i(r(33375)),o=i(r(40638));function i(e){return e&&e.__esModule?e:{default:e}}},46604:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(69070);var n=u(r(23493)),o=r(35493),i=r(67743),a=r(55064);function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function s(e,t,r){return t&&c(e.prototype,t),r&&c(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function l(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var f=(0,u(r(99796)).default)("cbio.DOMFrameSource"),d=s((function e(t){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),l(this,"_throttleCompressAndEmitFrame",(0,n.default)((function(){return r._compressAndEmitFrame()}),110)),l(this,"_compressAndEmitFrame",(function(){if(r._compression&&document&&i.NodeTracker.get(document)){var e=r._compression.compress();e.length&&r._onUpdate({document_id:i.NodeTracker.get(document),patch:e})&&r._compression.mark()}})),l(this,"capturingWillStart",(function(){if(f("capturingWillStart for DOMFrameSource in",document),r._sendInterval)throw new Error("DOMFrameSource already running");r._compression||(r._compression=new o.PatchCompressor(i.NodeTracker.track(document))),r._patchStream||(r._patchStream=new o.PatchStream(document)),a.WindowTracking.on("activate",r.reset),r._patchStream.on("patch",(function(e){r._compression.push(e),e.flush?r._compressAndEmitFrame():r._throttleCompressAndEmitFrame()})),r._sendInterval=setInterval((function(){return r._compressAndEmitFrame()}),500),r._patchStream.start()})),l(this,"capturingWillStop",(function(){f("capturingWillStop for DOMFrameSource in",document),a.WindowTracking.removeListener("activate",r.reset),r._sendInterval&&(clearInterval(r._sendInterval),r._sendInterval=null),r._patchStream&&(r._patchStream.destroy(),r._patchStream=null),r._compression&&(r._compression.reset(),r._compression=null)})),l(this,"reset",(function(){f("resetting DOMFrameSource in",document),r._compression.reset(),r._patchStream.forceUpdate()})),l(this,"destroy",(function(){f("destroying DOMFrameSource in",document),r.capturingWillStop(),r._onUpdate=null})),f("DOMFrameSource constructed in",document),this._onUpdate=t}));t.default=d},54773:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}var o;function i(){i=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},a="function"==typeof Symbol?Symbol:{},u=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function f(e,t,r,n){var i=t&&t.prototype instanceof h?t:h,a=Object.create(i.prototype),u=new j(n||[]);return o(a,"_invoke",{value:O(e,r,u)}),a}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=f;var p={};function h(){}function v(){}function y(){}var m={};l(m,u,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(T([])));b&&b!==t&&r.call(b,u)&&(m=b);var w=y.prototype=h.prototype=Object.create(m);function E(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function i(o,a,u,c){var s=d(e[o],e,a);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==n(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){i("next",e,u,c)}),(function(e){i("throw",e,u,c)})):t.resolve(f).then((function(e){l.value=e,u(l)}),(function(e){return i("throw",e,u,c)}))}c(s.arg)}var a;o(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){i(e,r,t,n)}))}return a=a?a.then(n,n):n()}})}function O(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=S(a,r);if(u){if(u===p)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=d(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===p)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function S(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method))return p;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var n=d(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,p;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,p):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function T(e){if(e){var t=e[u];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:P}}function P(){return{value:void 0,done:!0}}return v.prototype=y,o(w,"constructor",{value:y,configurable:!0}),o(y,"constructor",{value:v,configurable:!0}),v.displayName=l(y,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,l(e,s,"GeneratorFunction")),e.prototype=Object.create(w),e},e.awrap=function(e){return{__await:e}},E(_.prototype),l(_.prototype,c,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new _(f(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(w),l(w,s,"Generator"),l(w,u,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=T,j.prototype={constructor:j,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),k(r),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:T(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},e}function a(e,t,r,n,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void r(e)}u.done?t(c):Promise.resolve(c).then(n,o)}function u(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function u(e){a(i,n,o,u,c,"next",e)}function c(e){a(i,n,o,u,c,"throw",e)}u(void 0)}))}}function c(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function s(e,t,r){return t&&c(e.prototype,t),r&&c(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function l(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r(41539),r(82526),r(41817),r(32165),r(66992),r(78783),r(33948),r(72443),r(39341),r(73706),r(10408),r(30489),r(54747),r(68309),r(68304),r(47042),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(69070);var f=(0,((o=r(99796))&&o.__esModule?o:{default:o}).default)("cbio.FrameLoop"),d=s((function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),l(this,"isRunning",(function(){return t._running})),l(this,"setSource",function(){var e=u(i().mark((function e(r){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r.constructor!==(t.source&&t.source.constructor)){e.next=3;break}return f("frame source type not changed"),e.abrupt("return");case 3:if(!t.isRunning()){e.next=17;break}return t.source&&t.source.capturingWillStop(),t.source=r,e.prev=6,e.next=9,t.source.capturingWillStart();case 9:t.invalidateFrame(),e.next=15;break;case 12:e.prev=12,e.t0=e.catch(6),console.error(e.t0);case 15:e.next=18;break;case 17:t.source=r;case 18:case"end":return e.stop()}}),e,null,[[6,12]])})));return function(t){return e.apply(this,arguments)}}()),l(this,"getSource",(function(){return t.source})),l(this,"start",u(i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:f("starting frame loop in",document),t.isRunning()||(t._running=!0,t.source.capturingWillStart());case 2:case"end":return e.stop()}}),e)})))),l(this,"stop",(function(){t.isRunning()&&(t.source.capturingWillStop(),t._running=!1)})),l(this,"invalidateFrame",(function(){if(!t.isRunning())throw new Error("FrameLoop was destroyed");f("invalidate frame in",document),t.source&&t.source.reset()})),l(this,"destroy",(function(){f("destroying frame loop in",document),t.stop(),t.source&&(t.source.destroy(),t.source=null)})),f("FrameLoop constructed in",document),this._running=!1}));t.default=d},75904:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}r(69070),r(82526),r(41817),r(32165),r(72443),r(39341),r(73706),r(10408),r(30489),r(68309),r(68304),r(47042),r(91038),r(74916),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(66992),r(41539),r(82472),r(92990),r(18927),r(33105),r(35035),r(74345),r(7174),r(32846),r(44731),r(77209),r(96319),r(58867),r(37789),r(33739),r(29368),r(14483),r(12056),r(3462),r(30678),r(27462),r(33824),r(55021),r(12974),r(15016),r(54747),r(78783),r(4129),r(33948);var o,i=r(81639);function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function u(){u=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function f(e,t,r,n){var i=t&&t.prototype instanceof h?t:h,a=Object.create(i.prototype),u=new j(n||[]);return o(a,"_invoke",{value:O(e,r,u)}),a}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=f;var p={};function h(){}function v(){}function y(){}var m={};l(m,a,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(T([])));b&&b!==t&&r.call(b,a)&&(m=b);var w=y.prototype=h.prototype=Object.create(m);function E(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function i(o,a,u,c){var s=d(e[o],e,a);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==n(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){i("next",e,u,c)}),(function(e){i("throw",e,u,c)})):t.resolve(f).then((function(e){l.value=e,u(l)}),(function(e){return i("throw",e,u,c)}))}c(s.arg)}var a;o(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){i(e,r,t,n)}))}return a=a?a.then(n,n):n()}})}function O(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=S(a,r);if(u){if(u===p)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=d(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===p)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function S(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method))return p;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var n=d(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,p;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,p):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function T(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:P}}function P(){return{value:void 0,done:!0}}return v.prototype=y,o(w,"constructor",{value:y,configurable:!0}),o(y,"constructor",{value:v,configurable:!0}),v.displayName=l(y,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,l(e,s,"GeneratorFunction")),e.prototype=Object.create(w),e},e.awrap=function(e){return{__await:e}},E(_.prototype),l(_.prototype,c,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new _(f(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(w),l(w,s,"Generator"),l(w,a,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=T,j.prototype={constructor:j,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),k(r),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:T(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},e}function c(e,t,r,n,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void r(e)}u.done?t(c):Promise.resolve(c).then(n,o)}function s(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){c(i,n,o,a,u,"next",e)}function u(e){c(i,n,o,a,u,"throw",e)}a(void 0)}))}}function l(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function f(e,t,r){return t&&l(e.prototype,t),r&&l(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function d(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function p(e,t,r){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,r)}function h(e,t){return function(e,t){return t.get?t.get.call(e):t.value}(e,y(e,t,"get"))}function v(e,t,r){return function(e,t,r){if(t.set)t.set.call(e,r);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=r}}(e,y(e,t,"set"),r),r}function y(e,t,r){if(!t.has(e))throw new TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}var m=(0,((o=r(99796))&&o.__esModule?o:{default:o}).default)("cbio.MediaStreamFrameSource"),g=new WeakMap,b=new WeakMap,w=new WeakMap,E=new WeakMap,_=new WeakMap,O=new WeakMap,S=new WeakMap,x=new WeakMap,k=new WeakMap,j=new WeakMap,T=f((function e(t){var r,n,o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),p(this,g,{writable:!0,value:void 0}),p(this,b,{writable:!0,value:void 0}),p(this,w,{writable:!0,value:void 0}),p(this,E,{writable:!0,value:void 0}),p(this,_,{writable:!0,value:void 0}),p(this,O,{writable:!0,value:void 0}),p(this,S,{writable:!0,value:[]}),p(this,x,{writable:!0,value:function(){var e=h(o,E).scale();h(o,w).width=h(o,b).videoWidth*e,h(o,w).height=h(o,b).videoHeight*e,h(o,w).getContext("2d").drawImage(h(o,b),0,0,h(o,w).width,h(o,w).height);var t="image/jpeg";h(o,w).toBlob(function(){var e=s(u().mark((function e(r){var n;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.t0=Uint8Array,e.next=3,new Response(r).arrayBuffer();case 3:e.t1=e.sent,n=new e.t0(e.t1),h(o,E).handleFrame(n,t,1);case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),t,.5)}}),p(this,k,{writable:!0,value:(r=s(u().mark((function e(t){return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return h(o,b).srcObject=t,e.next=3,h(o,b).play();case 3:v(o,_,setInterval(h(o,x),100));case 4:case"end":return e.stop()}}),e)}))),function(e){return r.apply(this,arguments)})}),p(this,j,{writable:!0,value:(n=s(u().mark((function e(t){return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i.MediaRecorderDemuxer.isSupported("video/webm;codecs=h264")){e.next=3;break}return m("MediaRecorderDemuxer not supported, falling back to canvas"),e.abrupt("return",h(o,k).call(o,t));case 3:if(v(o,O,(0,i.createMediaRecorderDemuxer)(t)),h(o,O)){e.next=7;break}return m("failed to create MediaRecorderDemuxer, falling back to canvas"),e.abrupt("return",h(o,k).call(o,t));case 7:return m("using MediaRecorderDemuxer"),h(o,O).on("media-packet",(function(e){var t,r=e.data;null!==h(o,O)&&(0===r[0]&&0===r[1]&&0===r[2]&&1===r[3]?t=r[4]:0===r[0]&&0===r[1]&&1===r[2]&&(t=r[3]),7==(31&t)&&v(o,S,[]),h(o,S).push(r),h(o,E).handleFrame(r,"video/avc",1/0))})),e.abrupt("return",h(o,O).start());case 10:case"end":return e.stop()}}),e)}))),function(e){return n.apply(this,arguments)})}),d(this,"capturingWillStart",s(u().mark((function e(){var t,r,n;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(m("capturingWillStart for MediaStreamFrameSource"),!h(o,_)){e.next=3;break}throw new Error("already running");case 3:return e.next=5,h(o,E).requestPermission();case 5:if(e.sent){e.next=7;break}return e.abrupt("return");case 7:return e.prev=7,e.next=10,navigator.mediaDevices.getDisplayMedia({video:{cursor:"always",width:{ideal:1400},height:{ideal:1e3},frameRate:{max:10}},audio:!1});case 10:if(t=e.sent,r=t.getVideoTracks(),s=1,n=function(e){if(Array.isArray(e))return e}(c=r)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,u=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}}(c,s)||function(e,t){if(e){if("string"==typeof e)return a(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(e,t):void 0}}(c,s)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),(i=o,u=g,function(e,t){if(t.set)return"__destrObj"in t||(t.__destrObj={set value(r){t.set.call(e,r)}}),t.__destrObj;if(!t.writable)throw new TypeError("attempted to set read only private field");return t}(i,y(i,u,"set"))).value=n[0],h(o,g)){e.next=16;break}throw new Error("failed to get display media track");case 16:h(o,g).onended=function(){m("track ended"),v(o,g,null),h(o,E).captureEnded(),o.destroy()},h(o,j).call(o,t),h(o,E).captureStarted(),e.next=24;break;case 21:e.prev=21,e.t0=e.catch(7),h(o,E).captureEnded(e.t0);case 24:case"end":return e.stop()}var i,u,c,s}),e,null,[[7,21]])})))),d(this,"capturingWillStop",(function(){m("capturingWillStop for MediaStreamFrameSource"),h(o,O)&&(h(o,O).stop(),v(o,O,null)),h(o,g)&&(h(o,g).stop(),v(o,g,null),h(o,E).captureEnded()),h(o,_)&&(clearInterval(h(o,_)),v(o,_,null))})),d(this,"reset",(function(){m("resetting MediaStreamFrameSource"),h(o,S).forEach((function(e){h(o,E).handleFrame(e,"video/avc",1/0)}))})),d(this,"destroy",(function(){m("destroying MediaStreamFrameSource"),o.capturingWillStop(),v(o,E,null),v(o,b,null),v(o,w,null)})),m("MediaStreamFrameSource constructed"),v(this,E,t),v(this,b,document.createElement("video")),v(this,w,document.createElement("canvas"))}));t.default=T},17297:function(e,t,r){"use strict";r(69070),Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"DOMFrameSource",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"FrameLoop",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(t,"MediaStreamFrameSource",{enumerable:!0,get:function(){return i.default}});var n=a(r(54773)),o=a(r(46604)),i=a(r(75904));function a(e){return e&&e.__esModule?e:{default:e}}},22833:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}r(69070),r(68304),r(30489),r(12419),r(82526),r(41817),r(32165),r(91038),r(68309),r(74916),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(69826),r(41539),r(47042),r(54747),r(66992),r(78783),r(4129),r(33948);var o,i=r(17187);function a(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function c(e,t){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},c(e,t)}function s(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return l(e)}function l(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}function d(e,t,r){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,r)}function p(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function h(e,t){return function(e,t){return t.get?t.get.call(e):t.value}(e,v(e,t,"get"))}function v(e,t,r){if(!t.has(e))throw new TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}var y=(0,((o=r(99796))&&o.__esModule?o:{default:o}).default)("cbio.IFrameBridge"),m=new WeakMap,g=new WeakMap,b=new WeakMap,w=new WeakMap,E=new WeakMap,_=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&c(e,t)}(i,e);var t,r,n,o=(r=i,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=f(r);if(n){var o=f(this).constructor;e=Reflect.construct(t,arguments,o)}else e=t.apply(this,arguments);return s(this,e)});function i(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),p(l(e=o.call(this)),"trustedOrigins",[]),d(l(e),m,{writable:!0,value:void 0}),d(l(e),g,{writable:!0,value:function(e){if(!e.data)return!1;var t=e.data,r=t.cobrowseio,n=t.event;return!!r&&!!n}}),d(l(e),b,{writable:!0,value:function(t){var r=t.origin;return!!a(e.trustedOrigins).find((function(e){return e===r}))}}),d(l(e),w,{writable:!0,value:function(e){return[].slice.call(document.getElementsByTagName("iframe")).find((function(t){return t.contentWindow===e.source}))}}),d(l(e),E,{writable:!0,value:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"*";e.postMessage({cobrowseio:!0,event:t,data:r},n)}}),p(l(e),"sendToParent",(function(t,r){return h(l(e),m)?a(e.trustedOrigins).find((function(t){return t===h(l(e),m)}))?void h(l(e),E).call(l(e),window.parent,t,r,h(l(e),m)):y("not sending as parent origin is not trusted",h(l(e),m),e.trustedOrigins):y("not sending as parent origin is unknown")})),p(l(e),"broadcastToChildren",(function(t,r){[].slice.call(document.getElementsByTagName("iframe")).forEach((function(n){h(l(e),E).call(l(e),n.contentWindow,t,r)}))})),p(l(e),"sync",(function(t){y("iframe available",t,"issuing sync"),h(l(e),E).call(l(e),t.contentWindow,"sync")})),y("iframe bridge constructed in",document),window.addEventListener("message",(function(t){if(!h(l(e),g).call(l(e),t))return y("ignoring message, not a cobrowse message",t.data);var r,n,o,i=h(l(e),b).call(l(e),t),a=t.data,u=a.event,c=a.data;i&&t.source===window.parent&&(r=l(e),n=m,o=t.origin,function(e,t,r){if(t.set)t.set.call(e,r);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=r}}(r,v(r,n,"set"),o),e.broadcastToChildren(u,c)),e.emit(u,c,{trusted:i,iframe:h(l(e),w).call(l(e),t)})})),e}return t=i,Object.defineProperty(t,"prototype",{writable:!1}),t}(i.EventEmitter);t.default=_},19356:function(e,t,r){"use strict";r(82526),r(41817),r(41539),r(32165),r(66992),r(78783),r(33948),r(91038),r(47042),r(68309),r(74916),r(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(41514),o=c(r(22833)),i=r(55064),a=r(17297),u=r(31362);function c(e){return e&&e.__esModule?e:{default:e}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var l=(0,c(r(99796)).default)("cbio.iframes"),f=new o.default,d=null;f.on("patch",(function(e,t){var r=t.iframe;if(l("Received patch event in",document),r){var o=e.document_id,i=r.__vdom;i&&i.document.id!==e.document_id&&(i=null),i||(i=new n.VirtualDOM(o)),i.applyPatch(e.patch),r.__vdom=i,f.emit("iframe_patched",r)}})),f.on("mouse",(function(e,t){var r=t.iframe;l("Received mouse event in",document),r&&(i.MouseTracking.setPosition(e.x,e.y,r),i.MouseTracking.setDown(e.down))})),f.on("control",(function(e,t){var r,n=t.trusted;if(l("Received control event in",document),!n)return l("Ignoring untrusted control event");u.ControlEvents.applyEvent.apply(u.ControlEvents,function(e){if(Array.isArray(e))return s(e)}(r=e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(e,t):void 0}}(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())})),f.on("sync",(function(e,t){var r=t.trusted;if(l("Received sync event in",document),!r)return l("Ignoring untrusted sync event");d||(l("Creating new frame loop in",document),(d=new a.FrameLoop).setSource(new a.DOMFrameSource((function(e){return f.sendToParent("patch",e),!0}))),d.start()),l("Invalidating frame in",document),d.invalidateFrame(),i.MouseTracking.onChange=function(e){return f.sendToParent("mouse",e)},i.MouseTracking.track(window)}));var p=f;t.default=p},82175:function(e,t,r){"use strict";r(47042),r(41539),r(68309),r(91038),r(78783),r(74916),r(82526),r(41817),r(32165),r(66992),r(33948),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(69070);var n=i(r(4496)),o=i(r(12191));function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function u(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var c={en:n.default,fr:o.default},s=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.language=t}var t,r,n;return t=e,n=[{key:"getLocale",value:function(){var t,r=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return a(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,u=!0,c=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return u=e.done,e},e:function(e){c=!0,i=e},f:function(){try{u||null==r.return||r.return()}finally{if(c)throw i}}}}(navigator.languages);try{for(r.s();!(t=r.n()).done;){var n=t.value;if(c[n])return new e(n)}}catch(e){r.e(e)}finally{r.f()}return new e("en")}},{key:"tr",value:function(e){return this.getLocale().translate(e)}}],(r=[{key:"translate",value:function(e){return c[this.language][e]||c.en[e]||e}}])&&u(t.prototype,r),n&&u(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=s},4496:function(e,t,r){"use strict";r(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={DENY:"Deny",ALLOW:"Allow",END_SESSION:"End Cobrowse Session",REMOTE_CONTROL_REQUEST_TITLE:"Remote Control Request",REMOTE_CONTROL_REQUEST_DESCRIPTION:"A support agent would like to control this page. Do you want to allow this?",FULL_DEVICE_REQUEST_TITLE:"Screen Capture Request",FULL_DEVICE_REQUEST_DESCRIPTION:"A support agent would like to view your entire screen. Do you want to allow this?",SESSION_REQUEST_TITLE:"Support Request",SESSION_REQUEST_DESCRIPTION:"A support agent would like to temporarily use this web page with you. Do you want to allow this?"}},12191:function(e,t,r){"use strict";r(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={DENY:"Refuser",ALLOW:"Autoriser",END_SESSION:"Terminer la session de Cobrowse",REMOTE_CONTROL_REQUEST_TITLE:"Demande de commande à distance",REMOTE_CONTROL_REQUEST_DESCRIPTION:"Un agent du soutien souhaiterait avoir le contrôle de cette page. Donnez-vous votre autorisation ?",FULL_DEVICE_REQUEST_TITLE:"Demande de capture d'écran",FULL_DEVICE_REQUEST_DESCRIPTION:"Un agent de soutien souhaiterait voir l'intégralité de votre écran. Donnez-vous votre autorisation ?",SESSION_REQUEST_TITLE:"Demande de soutien",SESSION_REQUEST_DESCRIPTION:"Un agent de soutien souhaiterait temporairement utiliser cette page Web avec vous. Donnez-vous votre autorisation ?"}},51930:function(e,t,r){"use strict";r(82526),r(41817),r(32165),r(66992),r(33948),r(68309),r(47941),r(57327),r(38880),r(49337),r(33321),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(74916),r(41539),r(54747),r(91038),r(78783),r(85827),r(26699),r(47042),r(92222),r(69826),r(21249),r(69070);var n=r(41514),o=r(28541),i=s(r(69770)),a=s(r(95667)),u=s(r(93677)),c=s(r(76683));function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach((function(t){y(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function d(e){return function(e){if(Array.isArray(e))return p(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return p(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?p(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function h(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function v(e,t,r){return t&&h(e.prototype,t),r&&h(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function y(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var m=v((function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),y(this,"isLocalResource",(function(e){return!!(/^https?:\/\/localhost/.test(e)||/^https?:\/\/127.0.0.1/.test(e)||/^file:\/\//.test(e)||/^blob:/.test(e)||/^ionic:/.test(e))})),y(this,"_serializeAttributes",(function(e,t){if(e.nodeType===window.Node.ELEMENT_NODE&&e.attributes){var r={};Array.from(e.attributes||[]).forEach((function(t){"href"===t.nodeName||"src"===t.nodeName?r[t.nodeName]="string"==typeof e[t.nodeName]?e[t.nodeName]:t.nodeValue:r[t.nodeName]=t.nodeValue})),t.attributes=r}})),y(this,"_serializeSelection",(function(e,t){var r,n=null,a=e.getSelection();if(a&&"Range"===a.type&&!a.isCollapsed&&a.rangeCount>0)try{n=d(Array(a.rangeCount)).reduce((function(e,t,r){var n=a.getRangeAt(r),u=n.startOffset,c=n.endOffset,s=o.NodeRedaction.getRedactedBy(n.startContainer),l=o.NodeRedaction.getRedactedBy(n.endContainer),f=i.default.get(null!=s?s:n.startContainer),d=i.default.get(null!=l?l:n.endContainer);return e.push({start:f,end:d,startOffset:s?0:u,endOffset:l?0:c}),e}),[])}catch(e){console.warn("CobrowseIO: Could not serialize text selection",e)}else["INPUT","TEXTAREA"].includes(null===(r=e.activeElement)||void 0===r?void 0:r.tagName)&&e.activeElement.selectionStart!==e.activeElement.selectionEnd&&(n=!1);t.selection=n})),y(this,"_serializeDocument",(function(e,r){var n,o;e.nodeType===window.Node.DOCUMENT_NODE&&(r.url=e.location&&e.location.href,r.size={width:null===(n=e.documentElement)||void 0===n?void 0:n.clientWidth,height:null===(o=e.documentElement)||void 0===o?void 0:o.clientHeight},r.focus=i.default.get(e.activeElement),t._serializeSelection(e,r))})),y(this,"_serializeInput",(function(e,t){if("INPUT"===e.tagName||"TEXTAREA"===e.tagName||"OPTION"===e.tagName){t.value=e.value,"radio"!==e.type&&"checkbox"!==e.type||void 0===e.checked||(t.checked=e.checked),t.selection=null;try{var r=e.selectionStart,n=e.selectionEnd,o=e.selectionDirection;r!==n&&e===e.ownerDocument.activeElement&&(t.selection={start:r,end:n,direction:o})}catch(t){console.warn("Failed to serialise text selection for the input",e)}}})),y(this,"_serializeOption",(function(e,t){"OPTION"===e.tagName&&(t.selected=e.selected)})),y(this,"_serializeCSSSheet",(function(e){try{if(e.media&&e.media.length&&!window.matchMedia(e.media).matches)return""}catch(t){console.warn("CobrowseIO: Media detection for sheet failed:",t,"sheet",e)}return[].slice.call(e.cssRules).reduce((function(e,t){try{return e+t.cssText}catch(t){return e}}),"")})),y(this,"_serializeShadowRoot",(function(e,r){try{if(e.nodeType===window.Node.DOCUMENT_FRAGMENT_NODE){var n=[];d(e.adoptedStyleSheets||[]).forEach((function(e){n=n.concat([].slice.call(e.cssRules))})),r.css=t._serializeCSSSheet({cssRules:n})}}catch(t){console.warn("CobrowseIO: ShadowRoot serialize failed:",t.message,"for",e)}})),y(this,"_serializeCSS",(function(e,r){try{var n;("STYLE"===(null===(n=e.tagName)||void 0===n?void 0:n.toUpperCase())||"LINK"===e.tagName&&"stylesheet"===e.rel&&t.isLocalResource(e.href))&&e.sheet&&(r.css=t._serializeCSSSheet(e.sheet))}catch(t){console.warn("CobrowseIO: CSS serialize failed:",t.message,"for",e)}})),y(this,"_serializeCanvas",(function(e,t){if("CANVAS"===e.tagName&&!o.NodeRedaction.isRedacted(e))try{t.data=c.default.fromCanvas(e)}catch(t){e._cb_serialize_warned||(console.warn("Cobrowse failed to serialize canvas",e,"due to error",t),e._cb_serialize_warned=!0)}})),y(this,"_serializeImage",(function(e,r){if("IMG"===e.tagName&&!o.NodeRedaction.isRedacted(e)&&t.isLocalResource(e.src))try{r.attributes.src=c.default.fromImage(e)}catch(t){console.warn("CobrowseIO: Failed to serialize image",e)}})),y(this,"_serializeScroll",(function(e,t){var r,o;(0,n.isxdoc)(e)||(e.nodeType===window.Node.DOCUMENT_NODE?t.scroll={x:(null===(r=e.defaultView)||void 0===r?void 0:r.pageXOffset)||0,y:(null===(o=e.defaultView)||void 0===o?void 0:o.pageYOffset)||0}:(e.scrollWidth>e.clientWidth||e.scrollHeight>e.clientHeight)&&(t.scroll={x:e.scrollLeft||0,y:e.scrollTop||0}))})),y(this,"_serializeRedaction",(function(e,r,n){if(n.redactionState){delete r.value;var o=t._getSize(e);if(e instanceof Element){var i=window.getComputedStyle(e),a="inline"===i.display&&o.height>0?"inline-block":i.display;r.attributes=r.attributes&&{class:r.attributes.class,style:"".concat(r.attributes.style||"","; display: ").concat(a," !important;flex-basis: unset !important;")}}else 3===e.nodeType&&(r.nodeType=1,r.tagName="SPAN",r.attributes={style:o.height>0?"display: inline-block !important":void 0});r.redaction={height:"".concat(o.height,"px"),width:"".concat(o.width,"px")}}else r.redaction=void 0})),y(this,"_getSize",(function(e){if(e instanceof Element)return e.getBoundingClientRect();if(e instanceof Node){var t=document.createRange();return t.selectNodeContents(e),t.getBoundingClientRect()}return{height:0,width:0}})),y(this,"_serialize",(function(e,r){if(!i.default.get(e))throw console.error("node missing id",e,e.parentNode),new Error("node missing id",e);if(!a.default.isDOMNode(e))return e;if(!e.nodeType)throw new Error("node missing type",e);var n={id:i.default.get(e),nodeType:e.nodeType};return t._serializeShadowRoot(e,n),t._serializeAttributes(e,n),t._serializeImage(e,n),t._serializeDocument(e,n),t._serializeScroll(e,n),t._serializeInput(e,n),t._serializeOption(e,n),t._serializeCSS(e,n),t._serializeCanvas(e,n),t._serializeRedaction(e,n,r),e.tagName&&(n.tagName=e.tagName),e.nodeValue&&(n.content=e.nodeValue),n})),y(this,"serialize",(function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},c=o.NodeRedaction.getRedactionState(e);c&&r([]);var s="indirect"===c||[e].concat(d((0,n.parents)(e))).find((function(e){return u.default.isIgnored(e)}));return s?null:f(f({},t._serialize(e,{redactionState:c})),{},{childNodes:"direct"===c?[]:u.default.children(e).map((function(e){return a.default.isDOMNode(e)?{id:i.default.get(e)}:f({},e)}))})}))})),g=new m;t.default=g},69770:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(66992),r(51532),r(41539),r(78783),r(33948),r(92222),r(69070);var n=i(r(60453)),o=i(r(95667));function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function c(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var s=new(u((function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),c(this,"_idMap",new Map),c(this,"_nodeMap",new Map),c(this,"_currentId",0),c(this,"_nextId",(function(){return t._currentId+=1,t._currentId})),c(this,"track",(function(e){if(!e)return null;if(!o.default.isDOMNode(e))return e.id;if(!t.get(e)){var r=e.nodeType===window.Node.DOCUMENT_NODE?(0,n.default)(5):"".concat(t.track(document),"-").concat(t._nextId());t._idMap.set(r,e),t._nodeMap.set(e,r)}return t._nodeMap.get(e)})),c(this,"get",(function(e){return e?o.default.isDOMNode(e)?t._nodeMap.get(e)||null:e.id:null})),c(this,"getById",(function(e){return e&&t._idMap.get(e)||null})),c(this,"forget",(function(e){t._idMap.delete(t.get(e)),t._nodeMap.delete(e)}))})));t.default=s},93677:function(e,t,r){"use strict";r(69070),r(82526),r(41817),r(32165),r(47042),r(68309),r(74916),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(26699),r(32023),r(57327),r(41539),r(92222),r(91038),r(78783),r(66992),r(4129),r(33948);var n=r(41514),o=i(r(95667));function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function u(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function c(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function s(e,t){return function(e,t){return t.get?t.get.call(e):t.value}(e,l(e,t,"get"))}function l(e,t,r){if(!t.has(e))throw new TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}var f=(0,i(r(99796)).default)("cbio.NodeTree"),d=new WeakMap,p=new(function(){function e(){var t,r,i,u=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),i={writable:!0,value:".__cbio_ignored"},function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t=this,r=d),r.set(t,i),c(this,"isIgnored",(function(e){var t;if(e&&e.matches&&e.matches(s(u,d)))return f("ignoring",e,"because child of classes"),!0;if([window.Node.COMMENT_NODE,window.Node.CDATA_SECTION_NODE,window.Node.ENTITY_REFERENCE_NODE,window.Node.ENTITY_NODE,window.Node.PROCESSING_INSTRUCTION_NODE,window.Node.NOTATION_NODE,window.Node.DOCUMENT_TYPE_NODE].includes(e.nodeType))return f("ignoring",e,"because of nodeType"),!0;if("SCRIPT"===e.tagName)return f("ignoring",e,"because of SCRIPT"),!0;var r=e.parentNode||e.defaultView&&e.defaultView.frameElement;return!(!r||"STYLE"!==(null===(t=r.tagName)||void 0===t?void 0:t.toUpperCase())||(f("ignoring",e,"because child of STYLE"),0))})),c(this,"children",(function(e){return o.default.isDOMNode(e)?"IFRAME"===e.tagName&&(0,n.isxdoc)(e)?e.__vdom?[e.__vdom.document]:[]:"IFRAME"!==e.tagName||(0,n.isxdoc)(e)?e.shadowRoot?[e.shadowRoot].concat((t=Array.from(e.childNodes),function(e){if(Array.isArray(e))return a(e)}(t)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return a(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())).filter((function(e){return!u.isIgnored(e)})):Array.from(e.childNodes).filter((function(e){return!u.isIgnored(e)})):[e.contentWindow.document].filter((function(e){return!u.isIgnored(e)})):e.childNodes;var t})),c(this,"depthFirst",(function(e,t){return(0,n.depthFirst)(e,(function(e,r){return r(u.children(e)),t(e,r)}))}))}var t,r;return t=e,(r=[{key:"setIgnoredViews",value:function(e){if(Array.isArray(e))return t=this,r=d,n=".__cbio_ignored,".concat(e),function(e,t,r){if(t.set)t.set.call(e,r);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=r}}(t,l(t,r,"set"),n),void f("set ignored view selectors",s(this,d));var t,r,n;f("not updating #ignoredViews due to arg to being an array",e)}}])&&u(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}());t.default=p},95667:function(e,t,r){"use strict";function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function o(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(69070);var i=new(o((function e(){var t,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),r=function(e){return!!e&&!(!e.childNodes||"function"!=typeof e.appendChild||void 0===e.nodeType)},(t="isDOMNode")in this?Object.defineProperty(this,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):this[t]=r})));t.default=i},67743:function(e,t,r){"use strict";r(69070),Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"NodeSerializer",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"NodeTracker",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(t,"NodeTree",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"NodeUtils",{enumerable:!0,get:function(){return o.default}});var n=u(r(69770)),o=u(r(95667)),i=u(r(93677)),a=u(r(51930));function u(e){return e&&e.__esModule?e:{default:e}}},72966:function(e,t,r){"use strict";r(69070),r(47042),r(68309),r(74916),r(82526),r(41817),r(32165),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(69600),r(66992),r(41539),r(70189),r(78783),r(33948),r(91038),r(4129),r(38478),r(69826);var n,o=r(41514);function i(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=a(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,u=!0,c=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return u=e.done,e},e:function(e){c=!0,i=e},f:function(){try{u||null==r.return||r.return()}finally{if(c)throw i}}}}function a(e,t){if(e){if("string"==typeof e)return u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function c(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function s(e,t){d(e,t),t.add(e)}function l(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function f(e,t,r){d(e,t),t.set(e,r)}function d(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function p(e,t){return function(e,t){return t.get?t.get.call(e):t.value}(e,y(e,t,"get"))}function h(e,t,r){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return r}function v(e,t,r){return function(e,t,r){if(t.set)t.set.call(e,r);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=r}}(e,y(e,t,"set"),r),r}function y(e,t,r){if(!t.has(e))throw new TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}var m=(0,((n=r(99796))&&n.__esModule?n:{default:n}).default)("cbio.NodeRedaction"),g=new WeakMap,b=new WeakMap,w=new WeakSet,E=new WeakSet,_=new WeakSet,O=new WeakSet;function S(e){return!!e&&("OBJECT"===e.tagName?(m("redacted",e,"because of OBJECT"),!0):"EMBED"===e.tagName?(m("redacted",e,"because of EMBED"),!0):null)}function x(e){var t,r=this;return(t=(0,o.parents)(e),function(e){if(Array.isArray(e))return u(e)}(t)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||a(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).find((function(e){return h(r,O,k).call(r,e)}))}function k(e){return!!(p(this,b)&&e.matches&&e.matches(p(this,b)))&&(m("redacted",e,"because of selectors"),!0)}var j=new(function(){function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),s(this,O),s(this,_),s(this,E),s(this,w),f(this,g,{writable:!0,value:void 0}),f(this,b,{writable:!0,value:void 0}),l(this,"setIndex",(function(e){v(t,g,e)})),l(this,"setSelectors",(function(e){v(t,b,e.join(","))})),l(this,"getRedactionState",(function(e){var r=t.getRedactedBy(e);return!!r&&(r===e?"direct":"indirect")})),l(this,"getRedactedBy",(function(e){var r=h(t,w,S).call(t,e);if(null!==r)return r?e:null;var n=h(t,_,x).call(t,e);return n||(p(t,g)&&p(t,g).getRedactedBy(e)||(h(t,O,k).call(t,e)?e:null))})),l(this,"isNodeRedacted",(function(e){return"direct"===t.getRedactionState(e)})),l(this,"isRedacted",(function(e){var r=h(t,w,S).call(t,e);return null!==r?r:h(t,O,k).call(t,e)||!!t.getRedactionState(e)}))}var t,r;return t=e,(r=[{key:"notifyChanges",value:function(e){var t,r=new Set,n=i(e);try{for(n.s();!(t=n.n()).done;){var o=t.value,a=this.getRedactedBy(o.target);a&&a!==o.target&&r.add(a)}}catch(e){n.e(e)}finally{n.f()}var u,c=i((p(this,g)&&p(this,g).notifyChanges(e)||{modified:[]}).modified);try{for(c.s();!(u=c.n()).done;){var s=u.value;r.add(s)}}catch(e){c.e(e)}finally{c.f()}return{modified:Array.from(r)}}}])&&c(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}());t.default=j},80981:function(e,t,r){"use strict";r(69070),r(82526),r(41817),r(32165),r(91038),r(47042),r(68309),r(74916),Object.defineProperty(t,"__esModule",{value:!0}),t.RedactionIndex=void 0,r(66992),r(41539),r(70189),r(78783),r(33948),r(92222),r(57327),r(86535),r(99244),r(4129),r(38478),r(69826),r(69600);var n,o=(n=r(93677))&&n.__esModule?n:{default:n};function i(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=u(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){c=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(c)throw i}}}}function a(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||u(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){if(e){if("string"==typeof e)return c(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?c(e,t):void 0}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function f(e,t){p(e,t),t.add(e)}function d(e,t,r){p(e,t),t.set(e,r)}function p(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function h(e,t){return function(e,t){return t.get?t.get.call(e):t.value}(e,m(e,t,"get"))}function v(e,t,r){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return r}function y(e,t,r){return function(e,t,r){if(t.set)t.set.call(e,r);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=r}}(e,m(e,t,"set"),r),r}function m(e,t,r){if(!t.has(e))throw new TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}var g=new WeakMap,b=new WeakMap,w=new WeakMap,E=new WeakSet,_=new WeakSet,O=new WeakSet,S=new WeakSet,x=new WeakSet,k=new WeakSet,j=new WeakSet,T=new WeakSet,P=new WeakSet,L=new WeakSet,I=new WeakSet,A=new WeakSet,C=function(){function e(){var t,r,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},c=u.document,l=void 0===c?window.document:c;if(s(this,e),f(this,A),f(this,I),f(this,L),f(this,P),f(this,T),f(this,j),f(this,k),f(this,x),f(this,S),f(this,O),f(this,_),f(this,E),d(this,g,{writable:!0,value:void 0}),d(this,b,{writable:!0,value:void 0}),d(this,w,{writable:!0,value:new Set}),n.length>0&&y(this,g,(t=v(this,A,V)).call.apply(t,[this].concat(a(n)))),o.length>0&&y(this,b,(r=v(this,A,V)).call.apply(r,[this].concat(a(o)))),v(this,_,N).call(this)){var p,m=i(v(this,P,z).call(this,l));try{for(m.s();!(p=m.n()).done;){var C=p.value;h(this,w).add(C)}}catch(e){m.e(e)}finally{m.f()}}}var t,r;return t=e,(r=[{key:"getRedactedBy",value:function(e){if(!v(this,_,N).call(this))return null;if(v(this,S,D).call(this,e)||v(this,T,W).call(this,e))return null;var t=v(this,k,F).call(this,e);return t?v(this,T,W).call(this,e.parentNode)?e:t:v(this,O,R).call(this,e)?e:null}},{key:"notifyChanges",value:function(e){var t=this;if(!v(this,_,N).call(this))return{modified:[]};var r,n=new Set,u=i(e);try{for(u.s();!(r=u.n()).done;){var c=r.value;if(!o.default.isIgnored(c.target)){var s=v(this,P,z).call(this,c.target),l=s.length>0;if("attributes"===c.type){var f,d=i(s);try{for(d.s();!(f=d.n()).done;){var p=f.value;n.add(p)}}catch(e){d.e(e)}finally{d.f()}var y=v(this,S,D).call(this,c.target);h(this,w).has(c.target)!==!!y&&(n.add(c.target.parentNode),y?h(this,w).add(c.target):h(this,w).delete(c.target))}else if("childList"===c.type){var m,g=a(c.addedNodes).filter((function(e){return!o.default.isIgnored(e)})),b=a(c.removedNodes).filter((function(e){return!o.default.isIgnored(e)})),O=g.filter((function(e){return v(t,S,D).call(t,e)})).concat(g.flatMap((function(e){return a(v(t,P,z).call(t,e))}))),x=b.filter((function(e){return v(t,S,D).call(t,e)})).concat(b.flatMap((function(e){return a(v(t,P,z).call(t,e))}))),k=i(O);try{for(k.s();!(m=k.n()).done;){var j=m.value;h(this,w).add(j)}}catch(e){k.e(e)}finally{k.f()}var T,L=i(x);try{for(L.s();!(T=L.n()).done;){var I=T.value;h(this,w).delete(I)}}catch(e){L.e(e)}finally{L.f()}if(!n.has(c.target)){var A=l&&O.length>0,C=!l&&x.length>0;(A||C)&&n.add(c.target)}}}}}catch(e){u.e(e)}finally{u.f()}return{modified:v(this,E,M).call(this,n).filter((function(e){return!o.default.isIgnored(e)}))}}}])&&l(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function M(e){var t=this,r=new Set(a(e).flatMap((function(e){return[e].concat(a(v(t,L,B).call(t,e)))})));return a(r).flatMap((function(e){return a(e.childNodes||[])}))}function N(){return!!h(this,g)}function R(e){return h(this,g)&&e.matches&&e.matches(h(this,g))}function D(e){return h(this,b)&&e.matches&&e.matches(h(this,b))}function F(e){var t=this,r=v(this,j,U).call(this,e);return r?v(this,L,B).call(this,e,r).find((function(e){return v(t,T,W).call(t,e.parentNode)}))||r:null}function U(e){var t=e&&e.parentNode&&e.parentNode.closest&&e.parentNode.closest(v(this,A,V).call(this));return t&&v(this,I,G).call(this,t,h(this,g))?t:null}function W(e){return h(this,b)&&"HTML"!==e.tagName&&e.querySelector&&e.querySelector(h(this,b))}function z(e){return h(this,b)&&e.querySelectorAll?e.querySelectorAll(h(this,b)):[]}function B(e,t){for(var r=[];e.parentNode&&e.parentNode!==t;)r.push(e.parentNode),e=e.parentNode;return r}function G(e,t){return e&&e.matches&&e.matches(t)}function V(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0===t.length?[h(this,g),h(this,b)]:t).filter((function(e){return e})).join(",")}t.RedactionIndex=C},28541:function(e,t,r){"use strict";r(69070),Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"NodeRedaction",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"RedactionIndex",{enumerable:!0,get:function(){return i.RedactionIndex}});var n,o=(n=r(72966))&&n.__esModule?n:{default:n},i=r(80981)},42585:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(38880),r(26699),r(32023),r(41539),r(54747),r(66992),r(70189),r(78783),r(33948),r(69070),r(48227);var n=a(r(27856)),o=r(67743),i=r(28541);function a(e){return e&&e.__esModule?e:{default:e}}function u(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function c(e,t,r){return t&&u(e.prototype,t),r&&u(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function s(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var l=(0,a(r(99796)).default)("cbio.ControlEvents"),f=new(c((function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),s(this,"_applyScroll",(function(e,t){var r=e.defaultView||e;r.scrollTo?r.scrollTo(t.x,t.y):(r.scrollTop=t.y,r.scrollLeft=t.x)})),s(this,"_updateCheckbox",(function(e,t){var r=t.checked;if(void 0!==r&&"INPUT"===e.tagName&&void 0!==e.checked){var n=Object.getOwnPropertyDescriptor(e.constructor.prototype,"checked");n&&n.set.call(e,r)}})),s(this,"_updateInnerHTML",(function(e,t){var r=t.innerHTML;void 0!==r&&(e.innerHTML=n.default.sanitize(r))})),s(this,"_updateValue",(function(e,t){var r=t.value;if(void 0!==r){var n=Object.getOwnPropertyDescriptor(e.constructor.prototype,"value");n&&n.set.call(e,r)}"TEXTAREA"===e.tagName&&o.NodeTracker.track(e.childNodes[0])})),s(this,"_updateTarget",(function(e,r){t._updateValue(e,r.target),t._updateCheckbox(e,r.target),t._updateInnerHTML(e,r.target)})),s(this,"_generateMouse",(function(e,t){return new MouseEvent(t.state,{clientX:t.x*window.innerWidth,clientY:t.y*window.innerHeight,bubbles:!0,cancelable:!0,composed:!0,view:e.ownerDocument&&e.ownerDocument.defaultView||window})})),s(this,"_generatePointer",(function(e,t){return new PointerEvent(t.state,{clientX:t.x*window.innerWidth,clientY:t.y*window.innerHeight,pointerId:t.pointerId,width:t.width,height:t.height,pressure:t.pressure,tangentialPressure:t.tangentialPressure,tiltX:t.tiltX,tiltY:t.tiltY,twist:t.twist,pointerType:t.pointerType,isPrimary:t.isPrimary,bubbles:!0,cancelable:!0,composed:!0,view:e.ownerDocument&&e.ownerDocument.defaultView||window})})),s(this,"_generateKeypress",(function(e,t){return new KeyboardEvent(t.state,{key:t.key,code:t.code,ctrlKey:t.ctrlKey,shiftKey:t.shiftKey,altKey:t.altKey,metaKey:t.metaKey,charCode:t.charCode,keyCode:t.keyCode,which:t.which,bubbles:!0,cancelable:!0,composed:!0,view:e.ownerDocument&&e.ownerDocument.defaultView||window})})),s(this,"_generateFocus",(function(e,t){return new FocusEvent(t.state,{bubbles:!1,cancelable:!1,composed:!0,view:e.ownerDocument&&e.ownerDocument.defaultView||window})})),s(this,"_generateChange",(function(e,t){return new CustomEvent(t.state,{bubbles:!0,cancelable:!1,composed:!0,view:e.ownerDocument&&e.ownerDocument.defaultView||window})})),s(this,"_generateInput",(function(e,t){return new CustomEvent(t.state,{bubbles:!0,cancelable:!1,composed:!0,view:e.ownerDocument&&e.ownerDocument.defaultView||window,inputType:t.inputType,data:t.data})})),s(this,"_generateSelection",(function(e,t){return new CustomEvent("selection",{bubbles:!0,cancelable:!1,composed:!0,view:e.ownerDocument&&e.ownerDocument.defaultView||window,selection:t.selection})})),s(this,"_generateEvent",(function(e,r,n){switch(n.state.includes("move")&&l("generate",n,"on",r),e){case"keypress":return t._generateKeypress(r,n);case"mouse":return t._generateMouse(r,n);case"pointer":return t._generatePointer(r,n);case"change":return t._generateChange(r,n);case"input":return t._generateInput(r,n);case"focus":return t._generateFocus(r,n);case"select":return t._generateSelection(r,n);default:return console.warn("CobrowseIO: unknown event type",e,n),null}})),s(this,"_setSelection",(function(e,t){var r=t.selection;if(!(e.__cobrowse_user_selection_timestamp>Date.now()-100)&&e.getSelection())try{r?(e.__last_agent_selection_ts=Date.now(),e.getSelection().removeAllRanges(),r.forEach((function(t){var r=t.start,n=t.startOffset,i=t.end,a=t.endOffset,u=document.createRange(),c=o.NodeTracker.getById(r),s=o.NodeTracker.getById(i);u.setStart(c,n),u.setEnd(s,a),e.getSelection().addRange(u)}))):e.getSelection().removeAllRanges()}catch(e){console.warn("Failed to apply selection",r,e)}})),s(this,"_setInputSelection",(function(e,t){var r=t.selection;if(!(e.ownerDocument.__cobrowse_user_selection_timestamp>Date.now()-100)&&["text","textarea","search","url"].includes(e.type))try{if(e.ownerDocument.__last_agent_selection_ts=Date.now(),r){var n=r.start,o=r.end,i=r.direction;e.focus(),e.setSelectionRange(n,o,i)}else e.getRootNode({composed:!0}).activeElement===e&&e.setSelectionRange(null,null)}catch(e){console.warn("Failed to select text",e)}})),s(this,"applyEvent",(function(e,r){if(!r.target)return null;var n=o.NodeTracker.getById(r.target.id);if(!n)return null;if(i.NodeRedaction.isRedacted(n))return null;try{var a;if("scroll"===e)return t._applyScroll(n,r);if(null!==(a=n._cobrowse_suppress_events)&&void 0!==a&&a.has(r.state))return n._cobrowse_suppress_events.delete(r.state),0===n._cobrowse_suppress_events.size&&delete n._cobrowse_suppress_events.size,null;var u=t._generateEvent(e,n,r);return u&&(n.dispatchEvent(u)?(["keydown","keypress","input"].includes(r.state)&&t._updateTarget(n,r),["selectionchange"].includes(r.state)&&t._setSelection(n,r),["select"].includes(r.state)&&t._setInputSelection(n,r)):"keydown"===r.state?n._cobrowse_suppress_events=new Set(["keypress","input"]):"keypress"===r.state&&(n._cobrowse_suppress_events=new Set(["input"]))),u}catch(t){return console.warn("Error while injecting event",e,t),null}}))})));t.default=f},31362:function(e,t,r){"use strict";r(69070),Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ControlEvents",{enumerable:!0,get:function(){return o.default}});var n,o=(n=r(42585))&&n.__esModule?n:{default:n}},47454:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}var o;function i(e,t){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},i(e,t)}function a(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}r(41539),r(12419),r(69070),r(82526),r(41817),r(32165),r(66992),r(78783),r(33948),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(68309),r(68304),r(30489);var c=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&i(e,t)}(c,e);var t,r,n,o=(r=c,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=u(r);if(n){var o=u(this).constructor;e=Reflect.construct(t,arguments,o)}else e=t.apply(this,arguments);return a(this,e)});function c(e,t,r){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),(n=o.call(this,t,r)).id=e,n.name="APIError",n}return t=c,Object.defineProperty(t,"prototype",{writable:!1}),t}(((o=r(29822))&&o.__esModule?o:{default:o}).default);t.default=c},29822:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function i(e){var t="function"==typeof Map?new Map:void 0;return i=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return a(e,arguments,s(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),c(n,e)},i(e)}function a(e,t,r){return a=u()?Reflect.construct.bind():function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&c(o,r.prototype),o},a.apply(null,arguments)}function u(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function c(e,t){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},c(e,t)}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}r(82772),r(41539),r(39714),r(12419),r(66992),r(51532),r(78783),r(33948),r(69070),r(82526),r(41817),r(32165),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(68309),r(68304),r(30489);var l=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&c(e,t)}(a,e);var t,r,n,i=(t=a,r=u(),function(){var e,n=s(t);if(r){var i=s(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return o(this,e)});function a(e,t){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(r=i.call(this,t)).status=e,r.name="HTTPError",r}return n=a,Object.defineProperty(n,"prototype",{writable:!1}),n}(i(Error));t.default=l},45388:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}r(68304),r(30489),r(12419),r(69070),r(82526),r(57327),r(38880),r(54747),r(49337),r(33321),r(41817),r(32165),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(41539),r(39714),r(47941),r(66992),r(78783),r(4129),r(33948),r(38478);var o=r(17187),i=u(r(66379)),a=u(r(47454));function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach((function(t){l(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function l(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function f(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}function p(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return h(e)}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},v(e)}function y(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function m(e,t){var r=function(e,t,r){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}(e,t);return function(e,t){return t.get?t.get.call(e):t.value}(e,r)}function g(e,t,r){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return r}var b=new WeakMap,w=new WeakSet,E=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}(c,e);var t,r,n,o,a,u=(o=c,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=v(o);if(a){var r=v(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return p(this,e)});function c(){var e,t,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),y(t=h(e=u.call(this)),r=w),r.add(t),function(e,t,r){y(e,t),t.set(e,{writable:!0,value:{}})}(h(e),b),e._resource={},e}return t=c,r=[{key:"resource",get:function(){return this._resource}},{key:"url",value:function(){throw new Error("url() must be implemented")}},{key:"id",value:function(){return this.field("id")}},{key:"field",value:function(e){return(this._resource||{})[e]}},{key:"cache",value:function(e){this._resource=s(s({},this._resource),e)}},{key:"fetch",value:function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(){var e=this;return fetch(this.url(),{headers:this.headers()}).then(g(this,w,_)).then((function(e){return e.json()})).then((function(t){return e.updateResource(t)}))}))},{key:"update",value:function(e){var t=this;return e&&Object.keys(e)&&(0,i.default)(this._resource,e)?this:fetch(this.url(),{method:this.id()?"PUT":"POST",headers:this.headers(),body:JSON.stringify(e)}).then(g(this,w,_)).then((function(e){return e.json()})).then((function(e){return t.updateResource(e)}))}},{key:"destroy",value:function(){var e=this;return fetch(this.url(),{method:"DELETE",headers:this.headers()}).then(g(this,w,_)).then((function(){return e.updateResource({})}))}},{key:"updateResource",value:function(e){return this._resource=e,this.emit("updated",this),this}},{key:"headers",value:function(){return s(s({},c.headers()),m(this,b))}},{key:"setHeader",value:function(e,t){m(this,b)[e]=t}},{key:"getHeader",value:function(e){return this.headers()[e]}}],n=[{key:"headers",value:function(){return this._globalHeaders}},{key:"setHeader",value:function(e,t){this._globalHeaders||(this._globalHeaders={}),this._globalHeaders[e]=t}},{key:"getHeader",value:function(e){return this._globalHeaders&&this._globalHeaders[e]}},{key:"api",get:function(){return this._api},set:function(e){this._api=e}}],r&&f(t.prototype,r),n&&f(t,n),Object.defineProperty(t,"prototype",{writable:!1}),c}(o.EventEmitter);function _(e){return e.status>=400?e.json().then((function(t){throw new a.default(t.id,e.status,t.message)})):e}t.default=E},58302:function(e,t,r){"use strict";r(69070),Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RESTResource",{enumerable:!0,get:function(){return o.default}});var n,o=(n=r(45388))&&n.__esModule?n:{default:n}},64914:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}r(69070),r(68304),r(30489),r(74819),r(38880),r(12419),r(47941),r(82526),r(57327),r(54747),r(49337),r(33321),r(41817),r(32165),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(41539),r(92222),r(69600),r(47042),r(39714),r(66992),r(78783),r(33948),r(60285),r(41637),r(4129);var o,i=r(21614),a=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=s(t);if(r&&r.has(e))return r.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var u=i?Object.getOwnPropertyDescriptor(e,a):null;u&&(u.get||u.set)?Object.defineProperty(o,a,u):o[a]=e[a]}return o.default=e,r&&r.set(e,o),o}(r(77368)),u=r(58302),c=r(35161);function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(s=function(e){return e?r:t})(e)}function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach((function(t){b(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function d(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}function h(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return v(e)}function v(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function y(){return y="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=m(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(arguments.length<3?e:r):o.value}},y.apply(this,arguments)}function m(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=g(e)););return e}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}function b(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function w(e,t,r){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,r)}function E(e,t){return function(e,t){return t.get?t.get.call(e):t.value}(e,O(e,t,"get"))}function _(e,t,r){return function(e,t,r){if(t.set)t.set.call(e,r);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=r}}(e,O(e,t,"set"),r),r}function O(e,t,r){if(!t.has(e))throw new TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}var S=(0,((o=r(99796))&&o.__esModule?o:{default:o}).default)("cbio.Session"),x=new WeakMap,k=new WeakMap,j=new WeakMap,T=new WeakMap,P=new WeakMap,L=new WeakMap,I=new WeakMap,A=new WeakMap,C=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}(s,e);var t,r,n,o,u=(n=s,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=g(n);if(o){var r=g(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return h(this,e)});function s(e){var t,r,n;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),w(v(n=u.call(this)),x,{writable:!0,value:void 0}),w(v(n),k,{writable:!0,value:void 0}),w(v(n),j,{writable:!0,value:function(e){n.setHeader("X-CobrowseDeviceToken",e)}}),w(v(n),T,{writable:!0,value:function(){return n.getHeader("X-CobrowseDeviceToken")}}),b(v(n),"activate",(function(){return S("activate session"),n.update({state:"active",device:c.Device.info,custom_data:E(v(n),x).customData})})),b(v(n),"end",(function(){return S("end session"),n.update({state:"ended"})})),b(v(n),"code",(function(){return n.field("code")})),b(v(n),"state",(function(){return n.field("state")})),b(v(n),"isActive",(function(){return"active"===n.state()})),b(v(n),"isAuthorizing",(function(){return"authorizing"===n.state()})),b(v(n),"isPending",(function(){return"pending"===n.state()})),b(v(n),"isEnded",(function(){return"ended"===n.state()})),b(v(n),"selectors",(function(){var e=n.field("redaction_selectors");return Array.isArray(e)?e:[]})),b(v(n),"agent",(function(){return n.field("agent")||!1})),b(v(n),"requireConsent",(function(){return n.field("require_consent")})),b(v(n),"fullDevice",(function(){return!0===n.field("full_device")||"on"===n.field("full_device")||"requested"===n.field("full_device")})),b(v(n),"setFullDevice",(function(e){return E(v(n),k).toggle(["laser","drawing","pointer","scroll","select","keypress","cursor"],"on"!==e),n.update({full_device:e})})),b(v(n),"update",(function(e){return y((t=v(n),g(s.prototype)),"update",t).call(t,f({capabilities:E(v(n),k).toArray()},e))})),b(v(n),"scale",(function(){return n.field("scale")||.5})),b(v(n),"remoteControl",(function(){return n.field("remote_control")||"on"})),b(v(n),"setRemoteControl",(function(e){return n.update({remote_control:e})})),b(v(n),"allowRemoteControl",(function(){return"on"===n.remoteControl()})),b(v(n),"updateResource",(function(e){var t=n.isEnded();return y((r=v(n),g(s.prototype)),"updateResource",r).call(r,e),n.isEnded()&&!t&&(n.emit("ended",v(n)),n.removeAllListeners()),v(n)})),w(v(n),P,{writable:!0,value:(0,a.protect)(v(n),"serialize",(function(){return f(f({},n.resource),{},{_locals:{token:E(v(n),T).call(v(n))}})}))}),w(v(n),L,{writable:!0,value:(0,a.protect)(v(n),"deserialize",(function(e){var t=e._locals||{};return delete e._locals,E(v(n),j).call(v(n),t.token),n.updateResource(e),v(n)}))}),w(v(n),I,{writable:!0,value:(0,a.protect)(v(n),"compress",(function(){return"".concat(n.resource.id,":").concat(E(v(n),T).call(v(n)))}))}),w(v(n),A,{writable:!0,value:(0,a.protect)(v(n),"decompress",(function(e){var t=e.split(":");return E(v(n),L).call(v(n),{_locals:{token:t[t.length-1]},id:t.slice(0,-1).join(":")}),v(n)}))}),!e)throw new Error("Session delegate is required");_(v(n),x,e),_(v(n),k,e[a.default].getCapabilities());var o=Math.ceil(Date.now()/36e5);return E(v(n),j).call(v(n),(0,i.v5)(o+"",c.Device.deviceToken())),n}return t=s,(r=[{key:"capabilities",get:function(){return E(this,k)}},{key:"url",value:function(){var e=this.id()||this.code();return new URL("api/1/sessions".concat(e?"/".concat(e):""),s.api).toString()}}])&&d(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),s}(u.RESTResource);t.default=C},41826:function(e,t,r){"use strict";r(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(43290),r(41539),r(26699),r(32023),r(85827),r(57327),r(47941),r(54747),r(66992),r(78783),r(4129),r(33948);var n=r(33403),o=r(95011);function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t){return function(e,t){return t.get?t.get.call(e):t.value}(e,c(e,t,"get"))}function c(e,t,r){if(!t.has(e))throw new TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}var s=new WeakMap,l=function(){function e(t){var r,n,o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),o={writable:!0,value:{}},function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(r=this,n=s),n.set(r,o),this.fill(t)}var t,r;return t=e,(r=[{key:"allowed",value:function(e){return this.toArray().some((function(t){return Array.isArray(e)?e.includes(t):e===t}))}},{key:"forbidden",value:function(e,t){return!this.allowed(e,t)}},{key:"allowsEvent",value:function(e){var t,r=(i(t={},o.SESSION_EVENT_TYPE_MOUSE,["mousedown","mouseup","click","dblclick","pointerdown","pointerup"].includes(e.state)?n.SESSION_CAPABILITY_TYPE_POINTER:n.SESSION_CAPABILITY_TYPE_CURSOR),i(t,o.SESSION_EVENT_TYPE_TOUCH,n.SESSION_CAPABILITY_TYPE_POINTER),i(t,o.SESSION_EVENT_TYPE_POINTER,n.SESSION_CAPABILITY_TYPE_POINTER),i(t,o.SESSION_EVENT_TYPE_FOCUS,[n.SESSION_CAPABILITY_TYPE_KEYPRESS,n.SESSION_CAPABILITY_TYPE_POINTER]),i(t,o.SESSION_EVENT_TYPE_KEYPRESS,n.SESSION_CAPABILITY_TYPE_KEYPRESS),i(t,o.SESSION_EVENT_TYPE_SCROLL,n.SESSION_CAPABILITY_TYPE_SCROLL),i(t,o.SESSION_EVENT_TYPE_CHANGE,[n.SESSION_CAPABILITY_TYPE_KEYPRESS,n.SESSION_CAPABILITY_TYPE_POINTER]),i(t,o.SESSION_EVENT_TYPE_INPUT,[n.SESSION_CAPABILITY_TYPE_KEYPRESS,n.SESSION_CAPABILITY_TYPE_POINTER]),i(t,o.SESSION_EVENT_TYPE_LASER,n.SESSION_CAPABILITY_TYPE_LASER),i(t,o.SESSION_EVENT_TYPE_DRAWING,n.SESSION_CAPABILITY_TYPE_DRAWING),i(t,o.SESSION_EVENT_TYPE_SELECT,n.SESSION_CAPABILITY_TYPE_SELECT),t)[e.type];return this.allowed(r)}},{key:"fill",value:function(e){return t=this,r=s,n=e.reduce((function(e,t){return e[t]=!0,e}),{}),function(e,t,r){if(t.set)t.set.call(e,r);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=r}}(t,c(t,r,"set"),n),this;var t,r,n}},{key:"all",value:function(){return u(this,s)}},{key:"toArray",value:function(){var e=this;return Object.keys(u(this,s)).filter((function(t){return u(e,s)[t]}))}},{key:"toggle",value:function(e,t){var r=this;return Array.isArray(e)||(e=[e]),e.filter((function(e){return e in u(r,s)})).forEach((function(e){u(r,s)[e]=t})),this}},{key:"allow",value:function(e){return this.toggle(e,!0)}},{key:"forbid",value:function(e){return this.toggle(e,!1)}}])&&a(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=l},33403:function(e,t,r){"use strict";r(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.SESSION_CAPABILITY_TYPE_SELECT=t.SESSION_CAPABILITY_TYPE_SCROLL=t.SESSION_CAPABILITY_TYPE_POINTER=t.SESSION_CAPABILITY_TYPE_LASER=t.SESSION_CAPABILITY_TYPE_KEYPRESS=t.SESSION_CAPABILITY_TYPE_FULL_DEVICE=t.SESSION_CAPABILITY_TYPE_DRAWING=t.SESSION_CAPABILITY_TYPE_CURSOR=void 0;var n="pointer";t.SESSION_CAPABILITY_TYPE_POINTER=n;var o="scroll";t.SESSION_CAPABILITY_TYPE_SCROLL=o;var i="select";t.SESSION_CAPABILITY_TYPE_SELECT=i;var a="keypress";t.SESSION_CAPABILITY_TYPE_KEYPRESS=a;var u="drawing";t.SESSION_CAPABILITY_TYPE_DRAWING=u;var c="laser";t.SESSION_CAPABILITY_TYPE_LASER=c;var s="full_device";t.SESSION_CAPABILITY_TYPE_FULL_DEVICE=s;var l="cursor";t.SESSION_CAPABILITY_TYPE_CURSOR=l;var f=[n,o,i,a,u,c,s,l];t.default=f},32001:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}r(69070),r(82526),r(41817),r(32165),r(72443),r(39341),r(73706),r(10408),r(30489),r(54747),r(68309),r(68304),r(47042),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(66992),r(41539),r(78783),r(4129),r(33948);var o=d(r(51713)),i=r(17297),a=r(55064),u=r(83042),c=r(31362),s=r(28541),l=d(r(99796)),f=r(33403);function d(e){return e&&e.__esModule?e:{default:e}}function p(){p=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var i=t&&t.prototype instanceof h?t:h,a=Object.create(i.prototype),u=new j(n||[]);return o(a,"_invoke",{value:O(e,r,u)}),a}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var d={};function h(){}function v(){}function y(){}var m={};s(m,a,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(T([])));b&&b!==t&&r.call(b,a)&&(m=b);var w=y.prototype=h.prototype=Object.create(m);function E(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function i(o,a,u,c){var s=f(e[o],e,a);if("throw"!==s.type){var l=s.arg,d=l.value;return d&&"object"==n(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){i("next",e,u,c)}),(function(e){i("throw",e,u,c)})):t.resolve(d).then((function(e){l.value=e,u(l)}),(function(e){return i("throw",e,u,c)}))}c(s.arg)}var a;o(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){i(e,r,t,n)}))}return a=a?a.then(n,n):n()}})}function O(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=S(a,r);if(u){if(u===d)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=f(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function S(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=f(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,d;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function T(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:P}}function P(){return{value:void 0,done:!0}}return v.prototype=y,o(w,"constructor",{value:y,configurable:!0}),o(y,"constructor",{value:v,configurable:!0}),v.displayName=s(y,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,s(e,c,"GeneratorFunction")),e.prototype=Object.create(w),e},e.awrap=function(e){return{__await:e}},E(_.prototype),s(_.prototype,u,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new _(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(w),s(w,c,"Generator"),s(w,a,(function(){return this})),s(w,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=T,j.prototype={constructor:j,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),k(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:T(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function h(e,t,r,n,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void r(e)}u.done?t(c):Promise.resolve(c).then(n,o)}function v(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){h(i,n,o,a,u,"next",e)}function u(e){h(i,n,o,a,u,"throw",e)}a(void 0)}))}}function y(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function m(e,t,r){return t&&y(e.prototype,t),r&&y(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function g(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function b(e,t,r){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,r)}function w(e,t){return function(e,t){return t.get?t.get.call(e):t.value}(e,_(e,t,"get"))}function E(e,t,r){return function(e,t,r){if(t.set)t.set.call(e,r);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=r}}(e,_(e,t,"set"),r),r}function _(e,t,r){if(!t.has(e))throw new TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}var O=(0,l.default)("cbio.SessionContext"),S=new WeakMap,x=new WeakMap,k=new WeakMap,j=new WeakMap,T=new WeakMap,P=new WeakMap,L=new WeakMap,I=new WeakMap,A=new WeakMap,C=new WeakMap,M=new WeakMap,N=new WeakMap,R=new WeakMap,D=new WeakMap,F=new WeakMap,U=new WeakMap,W=new WeakMap,z=new WeakMap,B=new WeakMap,G=new WeakMap,V=new WeakMap,Y=new WeakMap,H=new WeakMap,K=new WeakMap,q=new WeakMap,$=new WeakMap,X=m((function e(t,r,n){var l,d,h,y,m,_=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),b(this,S,{writable:!0,value:void 0}),b(this,x,{writable:!0,value:void 0}),b(this,k,{writable:!0,value:new i.FrameLoop}),b(this,j,{writable:!0,value:void 0}),b(this,T,{writable:!0,value:void 0}),b(this,P,{writable:!0,value:void 0}),g(this,"invalidateFrames",(function(){w(_,k).isRunning()&&w(_,k).invalidateFrame()})),g(this,"destroy",(function(){O("destroy session context"),w(_,z).call(_),w(_,S)&&w(_,S).close(),E(_,S,null),w(_,k)&&w(_,k).destroy(),E(_,k,null),a.WindowTracking.off("activate",w(_,V)),window.removeEventListener("focus",w(_,V),{capture:!0,passive:!0}),window.removeEventListener("hashchange",w(_,Y),{capture:!0,passive:!0}),a.MouseTracking.onChange===w(_,q)&&(a.MouseTracking.onChange=null),_.session&&(_.session.removeListener("update",w(_,W)),_.session.removeListener("ended",w(_,z)),_.session.removeListener("sync",w(_,L)),_.session.removeListener("drawing",w(_,A)),_.session.removeListener("laser",w(_,I)),_.session.removeListener("control",w(_,C))),document.removeEventListener("DOMContentLoaded",w(_,M),{once:!0}),w(_,B).call(_,null),_.session=null})),b(this,L,{writable:!0,value:function(e){var t=e.id;t&&w(_,j)===t||(E(_,j,t),w(_,k).invalidateFrame())}}),b(this,I,{writable:!0,value:function(e){_.session.capabilities.allowsEvent(e)&&a.WindowTracking.isActive()&&(_.session.fullDevice()||u.LaserOverlay.update(e))}}),b(this,A,{writable:!0,value:function(e){_.session.capabilities.allowsEvent(e)&&(e.image||u.AnnotationOverlay.hide(),a.WindowTracking.isActive()&&(_.session.fullDevice()||u.AnnotationOverlay.update(e)))}}),b(this,C,{writable:!0,value:function(e,t){if("focus"!==e||t.agent||a.WindowTracking.resignActive(),a.WindowTracking.isActive()&&!_.session.fullDevice()&&_.session.allowRemoteControl()){if(!_.session.capabilities.allowsEvent(t))return;u.RemoteCursor.update(e,t),c.ControlEvents.applyEvent(e,t)}}}),b(this,M,{writable:!0,value:function(e){_.session&&(e.isActive()?document.body?_.delegate.showSessionControls(e):document.addEventListener("DOMContentLoaded",w(_,M),{once:!0}):_.delegate.hideSessionControls(e))}}),b(this,N,{writable:!0,value:function(e){s.NodeRedaction.setIndex(new s.RedactionIndex(_.delegate.redactedViews,_.delegate.unredactedViews)),s.NodeRedaction.setSelectors(e.selectors())}}),b(this,R,{writable:!0,value:(l=v(p().mark((function e(t){var r;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.agent()&&!t.isActive()&&!t.isEnded()){e.next=2;break}return e.abrupt("return",null);case 2:if(t.requireConsent()){e.next=4;break}return e.abrupt("return",t.activate());case 4:if(!w(_,T)){e.next=6;break}return e.abrupt("return",null);case 6:return E(_,T,!0),e.prev=7,O("authorizing session"),e.next=11,t.update({state:"authorizing"});case 11:if(_.session){e.next=13;break}return e.abrupt("return",null);case 13:return e.next=15,_.delegate.confirmSession(t);case 15:if(r=e.sent,_.session){e.next=18;break}return e.abrupt("return",null);case 18:if(!1!==r){e.next=23;break}return O("user rejected session request"),e.abrupt("return",t.end());case 23:return O("session accepted"),e.abrupt("return",t.activate());case 25:e.next=33;break;case 27:if(e.prev=27,e.t0=e.catch(7),e.t0&&console.warn("CobrowseIO: error caught during confirmation",e.t0),!_.session){e.next=32;break}return e.abrupt("return",t.end());case 32:return e.abrupt("return",null);case 33:case"end":return e.stop()}}),e,null,[[7,27]])}))),function(e){return l.apply(this,arguments)})}),b(this,D,{writable:!0,value:(d=v(p().mark((function e(t){return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("requested"===t.remoteControl()){e.next=2;break}return e.abrupt("return",null);case 2:return e.prev=2,e.next=5,_.delegate.confirmRemoteControl();case 5:if(e.t0=e.sent,!1!==e.t0){e.next=11;break}return O("user rejeted remote control"),e.abrupt("return",t.update({remote_control:"rejected"}));case 11:return O("user accepted remote control"),e.abrupt("return",t.update({remote_control:"on"}));case 13:e.next=19;break;case 15:return e.prev=15,e.t1=e.catch(2),e.t1&&console.warn("CobrowseIO: error caught during confirmation",e.t1),e.abrupt("return",t.update({remote_control:"rejected"}));case 19:case"end":return e.stop()}}),e,null,[[2,15]])}))),function(e){return d.apply(this,arguments)})}),b(this,F,{writable:!0,value:(h=v(p().mark((function e(){var t;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a.WindowTracking.isActive()){e.next=2;break}return e.abrupt("return",!1);case 2:if(!_.session.capabilities.forbidden(f.SESSION_CAPABILITY_TYPE_FULL_DEVICE)){e.next=4;break}return e.abrupt("return");case 4:return e.prev=4,e.next=7,_.delegate.confirmFullDevice();case 7:if(t=e.sent,O("full device request",t),t){e.next=12;break}return e.next=12,_.session.setFullDevice("rejected");case 12:return e.abrupt("return",t);case 15:return e.prev=15,e.t0=e.catch(4),e.next=19,_.session.setFullDevice("off");case 19:return e.abrupt("return",!1);case 20:case"end":return e.stop()}}),e,null,[[4,15]])}))),function(){return h.apply(this,arguments)})}),b(this,U,{writable:!0,value:(y=v(p().mark((function e(t){var r;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.isEnded()&&w(_,k)){e.next=2;break}return e.abrupt("return",null);case 2:if(r=w(_,k).getSource(),!t.fullDevice()){e.next=10;break}if(!(r instanceof i.MediaStreamFrameSource)){e.next=6;break}return e.abrupt("return",O("already set to MediaStreamFrameSource"));case 6:return e.next=8,w(_,k).setSource(new i.MediaStreamFrameSource({handleFrame:w(_,K),scale:t.scale,captureStarted:function(){return t.setFullDevice("on")},captureEnded:function(e){e&&console.warn("Full device mode failed: ",e),t.setFullDevice(e?"rejected":"off")},requestPermission:w(_,F)}));case 8:e.next=13;break;case 10:if(!(r instanceof i.DOMFrameSource)){e.next=12;break}return e.abrupt("return",O("already set to DOMFrameSource"));case 12:return e.abrupt("return",w(_,k).setSource(new i.DOMFrameSource(w(_,H))));case 13:case"end":return e.stop()}}),e)}))),function(e){return y.apply(this,arguments)})}),b(this,W,{writable:!0,value:function(e){_.session?(w(_,R).call(_,e),w(_,M).call(_,e),w(_,N).call(_,e),w(_,D).call(_,e),w(_,U).call(_,e),w(_,B).call(_,e),e.isActive()&&w(_,$).call(_)):O("onSessionUpdated called after destroy()")}}),b(this,z,{writable:!0,value:function(){u.AnnotationOverlay.hide(),u.RemoteCursor.hide(),u.LaserOverlay.hide(),_.delegate.hideSessionControls(_.session),w(_,B).call(_,null)}}),b(this,B,{writable:!0,value:(m=v(p().mark((function e(t){var r;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,null===(r=w(_,P))||void 0===r?void 0:r.store(t);case 2:case"end":return e.stop()}}),e)}))),function(e){return m.apply(this,arguments)})}),b(this,G,{writable:!0,value:function(e,t){return!(!_.session||!_.session.isActive()||!_.session.fullDevice()&&!a.WindowTracking.isActive()||!w(_,S)||!w(_,S).stream||!w(_,S).stream.connected||!w(_,S).stream.bufferedAmount>100||(w(_,S).stream.send(e,t),0))}}),b(this,V,{writable:!0,value:function(){return w(_,G).call(_,"focus",{type:"Focus",timestamp:new Date})}}),b(this,Y,{writable:!0,value:function(){return w(_,G).call(_,"screen",{type:"Screen",timestamp:new Date,url:window.location.href,title:document.title})}}),b(this,H,{writable:!0,value:function(e){return E(_,x,(w(_,x)||0)+1),w(_,G).call(_,"frame",{type:"Frame",id:w(_,x),data:e,timestamp:new Date,mime_type:"application/x-cbio-vdom-patch"})}}),b(this,K,{writable:!0,value:function(e,t,r){w(_,S).stream.messageLag()>=r?O("dropped frame due to message lag",w(_,S).stream.messageLag()):(E(_,x,(w(_,x)||0)+1),w(_,G).call(_,"frame",{type:"Frame",id:w(_,x),data:e,timestamp:new Date,mime_type:t}))}}),b(this,q,{writable:!0,value:function(e){var t="mouseout";return e.in&&(t=e.down?"mousedown":"mouseup"),w(_,G).call(_,"mouse",{type:"Mouse",x:e.x/window.innerWidth,y:e.y/window.innerHeight,state:t,timestamp:new Date})}}),b(this,$,{writable:!0,value:function(){return w(_,k).isRunning()||(O("start frames"),w(_,k).start()),_}}),O("session context constructed"),this.session=t,this.delegate=r,E(this,P,n),E(this,S,new o.default(t)),a.WindowTracking.on("activate",w(this,V)),window.addEventListener("focus",w(this,V),{capture:!0,passive:!0}),window.addEventListener("hashchange",w(this,Y),{capture:!0,passive:!0}),a.MouseTracking.onChange=w(this,q),w(this,W).call(this,t),t.on("updated",w(this,W)),t.on("ended",w(this,z)),t.on("sync",w(this,L)),t.on("drawing",w(this,A)),t.on("laser",w(this,I)),t.on("control",w(this,C)),t.once("stream-open",(function(){return w(_,V).call(_)}))}));t.default=X},95011:function(e,t,r){"use strict";r(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.SESSION_EVENT_TYPE_TOUCH=t.SESSION_EVENT_TYPE_SELECT=t.SESSION_EVENT_TYPE_SCROLL=t.SESSION_EVENT_TYPE_POINTER=t.SESSION_EVENT_TYPE_MOUSE=t.SESSION_EVENT_TYPE_LASER=t.SESSION_EVENT_TYPE_KEYPRESS=t.SESSION_EVENT_TYPE_INPUT=t.SESSION_EVENT_TYPE_FOCUS=t.SESSION_EVENT_TYPE_DRAWING=t.SESSION_EVENT_TYPE_CHANGE=void 0,t.SESSION_EVENT_TYPE_MOUSE="Mouse",t.SESSION_EVENT_TYPE_TOUCH="Touch",t.SESSION_EVENT_TYPE_POINTER="Pointer",t.SESSION_EVENT_TYPE_FOCUS="Focus",t.SESSION_EVENT_TYPE_KEYPRESS="KeyPress",t.SESSION_EVENT_TYPE_SCROLL="Scroll",t.SESSION_EVENT_TYPE_CHANGE="Change",t.SESSION_EVENT_TYPE_INPUT="Input",t.SESSION_EVENT_TYPE_LASER="Laser",t.SESSION_EVENT_TYPE_DRAWING="Drawing",t.SESSION_EVENT_TYPE_SELECT="Select"},51713:function(e,t,r){"use strict";r(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(26699),r(92222),r(66992),r(41539),r(78783),r(4129),r(33948);var n=i(r(2260)),o=i(r(53440));function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function c(e,t,r){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,r)}function s(e,t){return function(e,t){return t.get?t.get.call(e):t.value}(e,f(e,t,"get"))}function l(e,t,r){return function(e,t,r){if(t.set)t.set.call(e,r);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=r}}(e,f(e,t,"set"),r),r}function f(e,t,r){if(!t.has(e))throw new TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}var d=new WeakMap,p=new WeakMap,h=new WeakMap,v=new WeakMap,y=new WeakMap,m=new WeakMap,g=function(){function e(t){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),c(this,d,{writable:!0,value:void 0}),c(this,p,{writable:!0,value:void 0}),c(this,h,{writable:!0,value:void 0}),u(this,"open",(function(){s(r,d).isEnded()||(s(r,y).call(r),s(r,m).call(r))})),u(this,"close",(function(){window.removeEventListener("visibilitychange",r.onVisibilityChange),s(r,d)&&(s(r,d).removeListener("updated",r.open),l(r,d,null)),s(r,h)&&(s(r,h).close(),l(r,h,null)),s(r,p)&&(s(r,p).close(),l(r,p,null))})),c(this,v,{writable:!0,value:function(e,t){var i=new n.default({getUrl:function(){return(0,o.default)(e,s(r,d).field(t))}});return i.on("error",(function(e){console.warn("CobrowseIO session socket error:",e)})),i}}),c(this,y,{writable:!0,value:function(){var e=s(r,d).field("control_url"),t=s(r,d).field("control_token");e&&t&&!s(r,p)&&(l(r,p,s(r,v).call(r,e,"control_token")),s(r,p).on("open",(function(){s(r,p).send("filter",{events:["session"]}),s(r,d).fetch().catch((function(e){console.warn("CobrowseIO failed fetching session state",e)}))})),s(r,p).on("event",(function(e,t){"session"===e&&s(r,d).updateResource(t)})))}}),c(this,m,{writable:!0,value:function(){var e=s(r,d).field("stream_url"),t=s(r,d).field("stream_token");if(e&&t&&!s(r,h)){l(r,h,s(r,v).call(r,e,"stream_token"));var n=["drawing","laser","url"],o=["touch","mouse","pointer","keypress","scroll","focus","input","change","select"];s(r,h).on("event",(function(e,t){"sync"===e?s(r,d).emit("sync",t):"probe"===e?s(r,h).send("alive",t):n.includes(e)?s(r,d).emit(e,t):o.includes(e)&&s(r,d).emit("control",e,t)})),s(r,h).on("open",(function(){s(r,h).send("filter",{events:[].concat(o,n,["sync","probe"])}),s(r,d).emit("stream-open")}))}}}),l(this,d,t),t.on("updated",this.open),this.open()}var t,r;return t=e,(r=[{key:"stream",get:function(){return s(this,h)}}])&&a(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=g},61640:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}r(69070),r(47042),r(91038),r(74916),r(82526),r(41817),r(32165),r(72443),r(39341),r(73706),r(10408),r(30489),r(54747),r(68304),Object.defineProperty(t,"__esModule",{value:!0}),t.SessionStorage=void 0,r(68309),r(66992),r(41539),r(70189),r(78783),r(33948),r(57327),r(92222),r(26699),r(32023),r(4129);var o,i=r(97054),a=r(4603);function u(e){return function(e){if(Array.isArray(e))return f(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||l(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(){c=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function f(e,t,r,n){var i=t&&t.prototype instanceof h?t:h,a=Object.create(i.prototype),u=new j(n||[]);return o(a,"_invoke",{value:O(e,r,u)}),a}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=f;var p={};function h(){}function v(){}function y(){}var m={};l(m,a,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(T([])));b&&b!==t&&r.call(b,a)&&(m=b);var w=y.prototype=h.prototype=Object.create(m);function E(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function i(o,a,u,c){var s=d(e[o],e,a);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==n(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){i("next",e,u,c)}),(function(e){i("throw",e,u,c)})):t.resolve(f).then((function(e){l.value=e,u(l)}),(function(e){return i("throw",e,u,c)}))}c(s.arg)}var a;o(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){i(e,r,t,n)}))}return a=a?a.then(n,n):n()}})}function O(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=S(a,r);if(u){if(u===p)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=d(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===p)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function S(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method))return p;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var n=d(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,p;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,p):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function T(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:P}}function P(){return{value:void 0,done:!0}}return v.prototype=y,o(w,"constructor",{value:y,configurable:!0}),o(y,"constructor",{value:v,configurable:!0}),v.displayName=l(y,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,l(e,s,"GeneratorFunction")),e.prototype=Object.create(w),e},e.awrap=function(e){return{__await:e}},E(_.prototype),l(_.prototype,u,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new _(f(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(w),l(w,s,"Generator"),l(w,a,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=T,j.prototype={constructor:j,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),k(r),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:T(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},e}function s(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=l(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw i}}}}function l(e,t){if(e){if("string"==typeof e)return f(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f(e,t):void 0}}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function d(e,t,r,n,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void r(e)}u.done?t(c):Promise.resolve(c).then(n,o)}function p(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){d(i,n,o,a,u,"next",e)}function u(e){d(i,n,o,a,u,"throw",e)}a(void 0)}))}}function h(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function v(e,t,r){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,r)}function y(e,t){return function(e,t){return t.get?t.get.call(e):t.value}(e,g(e,t,"get"))}function m(e,t,r){return function(e,t,r){if(t.set)t.set.call(e,r);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=r}}(e,g(e,t,"set"),r),r}function g(e,t,r){if(!t.has(e))throw new TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}var b=(0,((o=r(99796))&&o.__esModule?o:{default:o}).default)("cbio.sessionStorage"),w=new WeakMap,E=new WeakMap,_=new WeakMap,O=function(){function e(t){var r=t.load,n=void 0===r?[]:r,o=t.store,i=void 0===o?[]:o,a=t.retain,u=void 0===a?[]:a;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),v(this,w,{writable:!0,value:void 0}),v(this,E,{writable:!0,value:void 0}),v(this,_,{writable:!0,value:void 0}),m(this,w,n),m(this,E,i),m(this,_,u)}var t,r,n,o,l;return t=e,r=[{key:"load",value:(l=p(c().mark((function e(t){var r,n,o,i,a;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:b("loading session"),r=s(y(this,w)),e.prev=2,r.s();case 4:if((n=r.n()).done){e.next=21;break}return o=n.value,e.next=8,o.load(t);case 8:return i=e.sent,e.next=11,null==i?void 0:i.fetch();case 11:if(!(a=e.sent)){e.next=19;break}if(!a.isActive()){e.next=17;break}return e.abrupt("return",a);case 17:return e.next=19,o.store(null);case 19:e.next=4;break;case 21:e.next=26;break;case 23:e.prev=23,e.t0=e.catch(2),r.e(e.t0);case 26:return e.prev=26,r.f(),e.finish(26);case 29:return e.abrupt("return",null);case 30:case"end":return e.stop()}}),e,this,[[2,23,26,29]])}))),function(e){return l.apply(this,arguments)})},{key:"store",value:(o=p(c().mark((function e(t){var r,n,o;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:b("storing session"),r=s(y(this,E)),e.prev=2,r.s();case 4:if((n=r.n()).done){e.next=20;break}return o=n.value,e.prev=6,e.next=9,o.store(t);case 9:if(e.t0=e.sent,!0!==e.t0){e.next=13;break}return b("stopping store() chain early due to",o),e.abrupt("break",20);case 13:e.next=18;break;case 15:e.prev=15,e.t1=e.catch(6),console.error("Unexpected error storing session: ".concat(o.constructor.name),e.t1);case 18:e.next=4;break;case 20:e.next=25;break;case 22:e.prev=22,e.t2=e.catch(2),r.e(e.t2);case 25:return e.prev=25,r.f(),e.finish(25);case 28:case"end":return e.stop()}}),e,this,[[2,22,25,28],[6,15]])}))),function(e){return o.apply(this,arguments)})},{key:"destroy",value:function(){var e,t=this,r=s(new Set([].concat(u(y(this,w)),u(y(this,E))).filter((function(e){return!y(t,_).includes(e)}))));try{for(r.s();!(e=r.n()).done;)e.value.destroy()}catch(e){r.e(e)}finally{r.f()}m(this,w,null),m(this,E,null),m(this,_,null)}}],n=[{key:"create",value:function(t,r,n){var o=n.localStorage;if(t.length>1){var u=new i.ForwardingSessionStorage(t),c=new a.IframeSessionStorage(t,r);return new e({load:[u,o,c],store:[o,c,u],retain:[o]})}return new e({load:[o],store:[o],retain:[o]})}}],r&&h(t.prototype,r),n&&h(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.SessionStorage=O},6362:function(e,t,r){"use strict";r(69070),Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Session",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(t,"SessionCapabilities",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"SessionContext",{enumerable:!0,get:function(){return o.default}});var n=a(r(64914)),o=a(r(32001)),i=a(r(41826));function a(e){return e&&e.__esModule?e:{default:e}}},2767:function(e,t,r){"use strict";r(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.ActiveSessionPath=void 0,t.ActiveSessionPath="_cobrowse_active_session"},97054:function(e,t,r){"use strict";r(69070),r(47042),r(68309),r(91038),r(74916),r(82526),r(41817),r(32165),Object.defineProperty(t,"__esModule",{value:!0}),t.ForwardingSessionStorage=void 0,t.extractActiveSession=_,r(66992),r(41539),r(78783),r(33948),r(60285),r(41637),r(4129),r(38478),r(92222),r(39714),r(82772);var n=a(r(77368)),o=a(r(64914)),i=r(2767);function a(e){return e&&e.__esModule?e:{default:e}}function u(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||s(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=s(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw i}}}}function s(e,t){if(e){if("string"==typeof e)return l(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?l(e,t):void 0}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function p(e,t){v(e,t),t.add(e)}function h(e,t,r){v(e,t),t.set(e,r)}function v(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function y(e,t,r){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return r}function m(e,t){return function(e,t){return t.get?t.get.call(e):t.value}(e,b(e,t,"get"))}function g(e,t,r){return function(e,t,r){if(t.set)t.set.call(e,r);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=r}}(e,b(e,t,"set"),r),r}function b(e,t,r){if(!t.has(e))throw new TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}var w=(0,a(r(99796)).default)("cbio.sessionStorage.ForwardingSessionStorage"),E=_();function _(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.window,r=void 0===t?window:t;try{var n=new URL(r.location.href),o=n.searchParams.get(i.ActiveSessionPath);return o?(w("found forwarded session that can be loaded",o),n.searchParams.delete(i.ActiveSessionPath),r.history.replaceState({},"",n)):w("no forwarded session to load",n),o}catch(e){console.warn("Failed to attempt to extract forwarded session",e)}}var O=new WeakMap,S=new WeakMap,x=new WeakMap,k=new WeakMap,j=new WeakMap,T=new WeakMap,P=new WeakMap,L=new WeakMap,I=new WeakSet,A=new WeakSet,C=new WeakSet,M=new WeakSet,N=new WeakSet,R=new WeakSet,D=new WeakSet,F=new WeakSet,U=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.window,o=void 0===n?window:n,i=r.HtmlFormElement,a=void 0===i?HTMLFormElement:i,u=r.activeSessionData,c=void 0===u?E:u;f(this,e),p(this,F),p(this,D),p(this,R),p(this,N),p(this,M),p(this,C),p(this,A),p(this,I),h(this,O,{writable:!0,value:void 0}),h(this,S,{writable:!0,value:void 0}),h(this,x,{writable:!0,value:void 0}),h(this,k,{writable:!0,value:void 0}),h(this,j,{writable:!0,value:void 0}),h(this,T,{writable:!0,value:void 0}),h(this,P,{writable:!0,value:void 0}),h(this,L,{writable:!0,value:void 0}),g(this,O,o),g(this,S,a),g(this,x,t||[]),g(this,k,c)}var t,r;return t=e,(r=[{key:"isSupported",value:function(){return w("isSupported?",!0),!0}},{key:"load",value:function(e){try{if(m(this,k))return w("loading session",m(this,k)),new o.default(e)[n.default].decompress(m(this,k));w("no session to load")}catch(e){w("failed to load forwarded session",e)}return null}},{key:"store",value:function(e){y(this,F,K).call(this,e)?(w("storing active session by binding forwarding hooks"),g(this,j,e),y(this,C,B).call(this)):(w("removing active session by unbinding forwarding hooks"),this.destroy())}},{key:"destroy",value:function(){y(this,M,G).call(this),g(this,j,void 0)}}])&&d(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function W(){var e=this;m(this,P)||(g(this,P,m(this,O).open),m(this,O).open=function(t){for(var r,n,o=arguments.length,i=new Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];return(r=m(e,P)).call.apply(r,[m(e,O),null!==(n=y(e,D,H).call(e,t))&&void 0!==n?n:t].concat(i))})}function z(){var e=this;if(!m(this,L)){g(this,L,m(this,S).prototype.submit);var t=function(t){var r,n;t.action=null!==(r=y(e,D,H).call(e,t.action))&&void 0!==r?r:t.action;for(var o=arguments.length,i=new Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];(n=m(e,L)).call.apply(n,[t].concat(i))};m(this,S).prototype.submit=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];t.apply(void 0,[this].concat(r))}}}function B(){var e=this;if(!m(this,T)){g(this,T,[["click",function(t){return y(e,N,V).call(e,t)}],["submit",function(t){return y(e,R,Y).call(e,t)}]]);var t,r=c(m(this,T));try{for(r.s();!(t=r.n()).done;){var n,o=t.value;(n=m(this,O).document).addEventListener.apply(n,u(o))}}catch(e){r.e(e)}finally{r.f()}}y(this,I,W).call(this),y(this,A,z).call(this)}function G(){if(m(this,T)){var e,t=c(m(this,T));try{for(t.s();!(e=t.n()).done;){var r,n=e.value;(r=m(this,O).document).removeEventListener.apply(r,u(n))}}catch(e){t.e(e)}finally{t.f()}g(this,T,void 0)}m(this,P)&&(m(this,O).open=m(this,P),g(this,P,void 0)),m(this,L)&&(m(this,S).prototype.submit=m(this,L),g(this,L,void 0))}function V(e){var t,r=y(this,D,H).call(this,null==e||null===(t=e.target)||void 0===t?void 0:t.href);r&&(e.target.href=r.toString())}function Y(e){var t,r=y(this,D,H).call(this,null==e||null===(t=e.target)||void 0===t?void 0:t.action);r&&(e.target.action=r.toString())}function H(e){if(!e)return w("not rewriting falsey url",e),null;if(!y(this,F,K).call(this))return w("not rewriting url due to non-active session",e),null;try{var t=new URL(e);return t.origin===m(this,O).location.origin?(w("not rewriting url because we are not changing origin",t.toString()),null):-1===m(this,x).indexOf(t.origin)?(w("not rewriting url due to non-trusted origin",t.toString()),null):(t.searchParams.set(i.ActiveSessionPath,m(this,j)[n.default].compress()),w("rewriting trusted url for an active session",{from:e,to:t.toString()}),"string"==typeof e?t.toString():t)}catch(e){return w("failed rewriting url",e),null}}function K(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:m(this,j);return null==e?void 0:e.isActive()}t.ForwardingSessionStorage=U},4603:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}r(69070),r(82526),r(41817),r(32165),r(72443),r(39341),r(73706),r(10408),r(30489),r(54747),r(68309),r(68304),r(47042),Object.defineProperty(t,"__esModule",{value:!0}),t.IframeSessionStorage=void 0,r(66992),r(41539),r(78783),r(33948),r(60285),r(41637),r(39714),r(4129);var o=c(r(77368)),i=r(57345),a=c(r(64914)),u=r(2767);function c(e){return e&&e.__esModule?e:{default:e}}function s(){s=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function f(e,t,r,n){var i=t&&t.prototype instanceof h?t:h,a=Object.create(i.prototype),u=new j(n||[]);return o(a,"_invoke",{value:O(e,r,u)}),a}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=f;var p={};function h(){}function v(){}function y(){}var m={};l(m,a,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(T([])));b&&b!==t&&r.call(b,a)&&(m=b);var w=y.prototype=h.prototype=Object.create(m);function E(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function i(o,a,u,c){var s=d(e[o],e,a);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==n(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){i("next",e,u,c)}),(function(e){i("throw",e,u,c)})):t.resolve(f).then((function(e){l.value=e,u(l)}),(function(e){return i("throw",e,u,c)}))}c(s.arg)}var a;o(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){i(e,r,t,n)}))}return a=a?a.then(n,n):n()}})}function O(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=S(a,r);if(u){if(u===p)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=d(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===p)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function S(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method))return p;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var n=d(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,p;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,p):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function T(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:P}}function P(){return{value:void 0,done:!0}}return v.prototype=y,o(w,"constructor",{value:y,configurable:!0}),o(y,"constructor",{value:v,configurable:!0}),v.displayName=l(y,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,l(e,c,"GeneratorFunction")),e.prototype=Object.create(w),e},e.awrap=function(e){return{__await:e}},E(_.prototype),l(_.prototype,u,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new _(f(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(w),l(w,c,"Generator"),l(w,a,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=T,j.prototype={constructor:j,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),k(r),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:T(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},e}function l(e,t,r,n,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void r(e)}u.done?t(c):Promise.resolve(c).then(n,o)}function f(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){l(i,n,o,a,u,"next",e)}function u(e){l(i,n,o,a,u,"throw",e)}a(void 0)}))}}function d(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function p(e,t){return function(e,t){return t.get?t.get.call(e):t.value}(e,v(e,t,"get"))}function h(e,t,r){return function(e,t,r){if(t.set)t.set.call(e,r);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=r}}(e,v(e,t,"set"),r),r}function v(e,t,r){if(!t.has(e))throw new TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}var y=(0,c(r(99796)).default)("cbio.sessionStorage.IframeSessionStorage"),m=new WeakMap,g=function(){function e(t,r){var n,o,a;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),a={writable:!0,value:void 0},function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=this,o=m),o.set(n,a);var u=new URL("apps/iframe_storage/server.html",r);h(this,m,new i.TrustedOriginStorageClient(u.toString(),t))}var t,r,n,c,l;return t=e,r=[{key:"isSupported",value:(l=f(s().mark((function e(){var t;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,p(this,m).ready();case 2:return t=p(this,m)&&p(this,m).isCrossDomainSupported,y("isSupported?",t),e.abrupt("return",t);case 5:case"end":return e.stop()}}),e,this)}))),function(){return l.apply(this,arguments)})},{key:"load",value:(c=f(s().mark((function e(t){var r;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.isSupported();case 2:if(e.sent){e.next=4;break}return e.abrupt("return",null);case 4:return e.next=6,p(this,m).storage.getItem(u.ActiveSessionPath);case 6:if(!(r=e.sent)){e.next=12;break}return y("loading session"),e.abrupt("return",new a.default(t)[o.default].deserialize(JSON.parse(r)));case 12:return y("no session to load"),e.abrupt("return",null);case 14:case"end":return e.stop()}}),e,this)}))),function(e){return c.apply(this,arguments)})},{key:"store",value:(n=f(s().mark((function e(t){var r;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.isSupported();case 2:if(e.sent){e.next=4;break}return e.abrupt("return",null);case 4:if(null==t||!t.isActive()){e.next=12;break}return y("storing active session"),r=JSON.stringify(t[o.default].serialize()),e.next=9,p(this,m).storage.setItem(u.ActiveSessionPath,r);case 9:return e.abrupt("return",!0);case 12:return y("deleting inactive session"),e.next=15,p(this,m).storage.removeItem(u.ActiveSessionPath);case 15:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"destroy",value:function(){var e;null===(e=p(this,m))||void 0===e||e.destroy(),h(this,m,void 0)}}],r&&d(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.IframeSessionStorage=g},79426:function(e,t,r){"use strict";r(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.LocalSessionStorage=void 0,r(66992),r(41539),r(78783),r(4129),r(33948);var n=u(r(77368)),o=u(r(95901)),i=u(r(64914)),a=r(2767);function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function s(e,t){return function(e,t){return t.get?t.get.call(e):t.value}(e,l(e,t,"get"))}function l(e,t,r){if(!t.has(e))throw new TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}var f=(0,u(r(99796)).default)("cbio.sessionStorage.LocalSessionStorage"),d=new WeakMap,p=function(){function e(){var t,r,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=this,r=d,n={writable:!0,value:(0,o.default)()},function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t,r),r.set(t,n)}var t,r;return t=e,(r=[{key:"isSupported",value:function(){return f("isSupported?",!0),!0}},{key:"load",value:function(e){var t=s(this,d).getItem(a.ActiveSessionPath);return t?(f("loading session"),new i.default(e)[n.default].deserialize(t)):(f("no session to load"),null)}},{key:"store",value:function(e){null!=e&&e.isActive()?(f("storing active session"),s(this,d).setItem(a.ActiveSessionPath,e[n.default].serialize())):(f("removing inactive session"),s(this,d).removeItem(a.ActiveSessionPath))}},{key:"destroy",value:function(){var e,t;t=void 0,function(e,t,r){if(t.set)t.set.call(e,r);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=r}}(e=this,l(e,d,"set"),t)}}])&&c(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.LocalSessionStorage=p},95901:function(e,t,r){"use strict";r(69070),Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o.default}});var n,o=(n=r(20059))&&n.__esModule?n:{default:n}},20059:function(e,t,r){"use strict";r(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return{setItem:function(t,r){u();var n=JSON.stringify({value:r,group:e});a()?window.localStorage.setItem(t,n):o.default.set(t,n),i[t]=n},getItem:function(t){try{var r;(r=a()?window.localStorage&&window.localStorage.getItem(t):o.default.get(t))||(r=i[t]);var n=JSON.parse(r),u=n.value,c=n.group;return e&&e!==c?null:u}catch(e){return null}},removeItem:function(e){a()&&window.localStorage.removeItem(e),o.default.remove(e),i[e]=void 0}}};var n,o=(n=r(10646))&&n.__esModule?n:{default:n},i={};function a(){try{var e="_cobrowse_test_item";return localStorage.setItem(e,e),localStorage.removeItem(e),!0}catch(e){return!1}}function u(){a()||u.done||(u.done=!0,console.warn("Warning: localStorage is not supported. Cobrowse falling back to cookie or in-memory storage and may not function as expected."))}},48487:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(66992),r(41539),r(82472),r(92990),r(18927),r(33105),r(35035),r(74345),r(7174),r(32846),r(44731),r(77209),r(96319),r(58867),r(37789),r(33739),r(29368),r(14483),r(12056),r(3462),r(30678),r(27462),r(33824),r(55021),r(12974),r(15016),r(92222),r(69070);var n=r(55064);function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function i(e,t,r){return t&&o(e.prototype,t),r&&o(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var u=new(i((function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),a(this,"el",(function(){return t._el||(t._el=document.createElement("img"),t._el.className="cbio_session_overlay",t._el.style.pointerEvents="none",t._el.style.width="10vw",t._el.style.height="100vh",t._el.style.position="fixed",t._el.style.zIndex="2147483647",t._el.style.top="0",t._el.style.left="0"),t._el})),a(this,"_arrayBufferToBase64",(function(e){for(var t="",r=new Uint8Array(e),n=r.byteLength,o=0;o<n;o+=1)t+=String.fromCharCode(r[o]);return window.btoa(t)})),a(this,"update",(function(e){if(n.WindowTracking.isActive())if(e.image){t.el().style.left="".concat(100*e.x,"%"),t.el().style.top="".concat(100*e.y,"%"),t.el().style.height="".concat(100*e.height,"%"),t.el().style.width="".concat(100*e.width,"%");var r="data:".concat(e.mime_type,";base64,").concat(t._arrayBufferToBase64(e.image));t.el().src=r,document.body&&!t.el().parentNode&&document.body.appendChild(t.el())}else t.hide()})),a(this,"hide",(function(){t.el().parentNode&&t.el().parentNode.removeChild(t.el())}))})));t.default=u},80881:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}r(82526),r(41817),r(32165),r(66992),r(78783),r(33948),r(72443),r(39341),r(73706),r(10408),r(30489),r(54747),r(68309),r(68304),r(47042),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(92222),r(41539),r(69070);var o,i=(o=r(82175))&&o.__esModule?o:{default:o};function a(){a=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},u=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function f(e,t,r,n){var i=t&&t.prototype instanceof h?t:h,a=Object.create(i.prototype),u=new j(n||[]);return o(a,"_invoke",{value:O(e,r,u)}),a}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=f;var p={};function h(){}function v(){}function y(){}var m={};l(m,u,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(T([])));b&&b!==t&&r.call(b,u)&&(m=b);var w=y.prototype=h.prototype=Object.create(m);function E(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function i(o,a,u,c){var s=d(e[o],e,a);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==n(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){i("next",e,u,c)}),(function(e){i("throw",e,u,c)})):t.resolve(f).then((function(e){l.value=e,u(l)}),(function(e){return i("throw",e,u,c)}))}c(s.arg)}var a;o(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){i(e,r,t,n)}))}return a=a?a.then(n,n):n()}})}function O(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=S(a,r);if(u){if(u===p)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=d(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===p)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function S(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method))return p;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var n=d(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,p;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,p):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function T(e){if(e){var t=e[u];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:P}}function P(){return{value:void 0,done:!0}}return v.prototype=y,o(w,"constructor",{value:y,configurable:!0}),o(y,"constructor",{value:v,configurable:!0}),v.displayName=l(y,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,l(e,s,"GeneratorFunction")),e.prototype=Object.create(w),e},e.awrap=function(e){return{__await:e}},E(_.prototype),l(_.prototype,c,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new _(f(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(w),l(w,s,"Generator"),l(w,u,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=T,j.prototype={constructor:j,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),k(r),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:T(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},e}function u(e,t,r,n,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void r(e)}u.done?t(c):Promise.resolve(c).then(n,o)}function c(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function s(e,t,r){return t&&c(e.prototype,t),r&&c(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function l(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var f=s((function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),l(this,"content",(function(e,t){return'\n <div class="cobrowse-dialog" style="color: #333; font-family:sans-serif; line-height:140%; position:fixed; padding:25px; background:white; border-radius:15px; z-index:2147483647; top:50px; left:50%; width:75%; max-width:350px; transform:translateX(-50%); box-shadow:0px 0px 15px #33333322; user-select: none;">\n <div style="text-align:center; margin-top:10px; margin-bottom:20px"><b>'.concat(e,"</b></div>\n <div>").concat(t,'</div>\n <div style=\'float:right; margin-top:40px; color:rgb(0, 122, 255);\'>\n <a class="cobrowse-button cobrowse-deny" style="cursor:pointer; padding:10px;">').concat(i.default.tr("DENY"),'</a>\n <a class="cobrowse-button cobrowse-allow" style="cursor:pointer; padding:10px; font-weight: bold;">').concat(i.default.tr("ALLOW"),"</a>\n </div>\n </div>\n ")})),l(this,"container",(function(){return t._container||(t._container=document.createElement("div"),t._container.style.background="rgba(50, 50, 50, 0.4)",t._container.style.position="fixed",t._container.style.zIndex="2147483647",t._container.style.bottom="0",t._container.style.top="0",t._container.style.left="0",t._container.style.right="0"),t._container})),l(this,"show",function(){var e,r=(e=a().mark((function e(r,n){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e){var o=t.container();t._container.innerHTML=t.content(r,n),o.querySelector(".cobrowse-allow").addEventListener("click",(function(){e(!0),t.hide()})),o.querySelector(".cobrowse-deny").addEventListener("click",(function(){e(!1),t.hide()})),document.body&&document.body.appendChild(o)})));case 1:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){u(i,n,o,a,c,"next",e)}function c(e){u(i,n,o,a,c,"throw",e)}a(void 0)}))});return function(e,t){return r.apply(this,arguments)}}()),l(this,"hide",(function(){t.container().parentNode&&t.container().parentNode.removeChild(t.container())}))}));t.default=f},29486:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(69070);var n=r(55064);function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function i(e,t,r){return t&&o(e.prototype,t),r&&o(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var u=new(i((function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),a(this,"el",(function(){return t._el||(t._el=document.createElement("div"),t._el.className="cbio_session_overlay",t._el.style.border="border: 1px solid white",t._el.style.borderRadius="15px",t._el.style.background="red",t._el.style.position="fixed",t._el.style.zIndex="2147483647",t._el.style.height="15px",t._el.style.width="15px",t._el.style.marginLeft="-7.5px",t._el.style.marginTop="-7.5px"),t._el})),a(this,"update",(function(e){n.WindowTracking.isActive()&&(document.body&&!t.el().parentNode&&document.body.appendChild(t.el()),"touchend"===e.state?t.hide():(t.el().style.left="".concat(100*e.x,"%"),t.el().style.top="".concat(100*e.y,"%")))})),a(this,"hide",(function(){t.el().parentNode&&t.el().parentNode.removeChild(t.el())}))})));t.default=u},9444:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(69070);var n=r(55064),o=r(67743);function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function a(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function u(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var c=new(a((function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),u(this,"el",(function(){return t._el||(t._el=document.createElementNS("http://www.w3.org/2000/svg","svg"),t._el.setAttribute("class","__cbio_ignored"),t._el.setAttribute("viewBox","0 0 320 512"),t._el.style.position="fixed",t._el.style.zIndex="2147483647",t._el.style.height="25px",t._el.style.width="25px",t._el.style.marginLeft="-7px",t._el.style.marginTop="-1px",t._el.style.opacity=.7,t._path=document.createElementNS("http://www.w3.org/2000/svg","path"),t._path.setAttribute("d","M302.189 329.126H196.105l55.831 135.993c3.889 9.428-.555 19.999-9.444 23.999l-49.165 21.427c-9.165 4-19.443-.571-23.332-9.714l-53.053-129.136-86.664 89.138C18.729 472.71 0 463.554 0 447.977V18.299C0 1.899 19.921-6.096 30.277 5.443l284.412 292.542c11.472 11.179 3.007 31.141-12.5 31.141z"),t._path.setAttribute("stroke","white"),t._path.setAttribute("stroke-width","40"),t._path.setAttribute("opacity",1),t._path.setAttribute("fill","blue"),t._el.appendChild(t._path)),t._el})),u(this,"_updatePosition",(function(e){var r,n,i,a,u=e.x,c=e.y;u*=null===(r=window.document)||void 0===r||null===(n=r.documentElement)||void 0===n?void 0:n.clientWidth,c*=null===(i=window.document)||void 0===i||null===(a=i.documentElement)||void 0===a?void 0:a.clientHeight;var s=o.NodeTracker.getById(e.target.id);if(s){var l=s.ownerDocument,f=l&&l.defaultView&&l.defaultView.frameElement;if(f){var d=f.getBoundingClientRect();u+=Math.round(d.left),c+=Math.round(d.top)}t.el().style.top="".concat(c,"px"),t.el().style.left="".concat(u,"px")}})),u(this,"update",(function(e,r){if("mouse"===e&&n.WindowTracking.isActive())switch(document.body&&!t.el().parentNode&&document.body.appendChild(t.el()),r.state){case"mousedown":t.el().style.opacity=1;break;case"mouseup":t.el().style.opacity=.7;break;case"mousemove":t._updatePosition(r)}})),u(this,"hide",(function(){t.el().parentNode&&t.el().parentNode.removeChild(t.el())}))})));t.default=c},71457:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(69070);var n=i(r(51178)),o=i(r(82175));function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function c(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var s=new(u((function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),c(this,"el",(function(){return t._el||(t._el=document.createElement("div"),t._el.className="__cbio_ignored cbio_session_controls",t._el.textContent=o.default.tr("END_SESSION"),t._el.style.fontFamily="sans-serif",t._el.style.padding="10px 13px",t._el.style.fontSize="13px",t._el.style.whiteSpace="nowrap",t._el.style.color="white",t._el.style.boxShadow="0px 2px 5px #33333344",t._el.style.cursor="pointer",t._el.style.borderRadius="30px",t._el.style.background="rgb(234, 91, 80)",t._el.style.position="fixed",t._el.style.zIndex="2147483647",t._el.style.bottom="20px",t._el.style.left="50%",t._el.style.transform="translateX(-50%)",t._el.style.userSelect="none",t._el.addEventListener("click",t._onEnd)),t._el})),c(this,"_onEnd",(function(){var e=n.default.currentSession;e&&e.isActive()&&e.end()})),c(this,"show",(function(){document.body&&!t.el().parentNode&&document.body.appendChild(t.el())})),c(this,"hide",(function(){t.el().parentNode&&t.el().parentNode.removeChild(t.el())}))})));t.default=s},73172:function(e,t,r){"use strict";function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function o(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(69070);var a=new(o((function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),i(this,"content",(function(e){return'\n <div style="color: white; font-family:sans-serif; margin-bottom: 10px; line-height:140%; padding:10px; font-size: 12px; font-weight: bold; background:#292d33; border-radius:5px; width:250px; box-shadow:0px 0px 15px #33333322;">\n '.concat(e,"\n </div>\n ")})),i(this,"container",(function(){var e=document.createElement("div");return e.style.position="fixed",e.style.zIndex="2147483647",e.style.color="#fff",e.style.top="20px",e.style.right="20px",e.style.transition="all 0.3s linear",e.style.opacity=0,e.style.pointerEvents="none",e})),i(this,"show",(function(e){var r=t.container();r.innerHTML=t.content(e),document.body&&document.body.appendChild(r),setTimeout((function(){r.style.opacity=1}),0),setTimeout((function(){r.style.opacity=0,setTimeout((function(){r.parentNode&&r.parentNode.removeChild(r)}),500)}),8e3)})),i(this,"hide",(function(){t.container().parentNode&&t.container().parentNode.removeChild(t.container())}))})));t.default=a},83042:function(e,t,r){"use strict";r(69070),Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"AnnotationOverlay",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(t,"ConsentDialog",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"LaserOverlay",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"RemoteCursor",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"SessionStateOverlay",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"Toast",{enumerable:!0,get:function(){return c.default}});var n=s(r(48487)),o=s(r(29486)),i=s(r(9444)),a=s(r(71457)),u=s(r(80881)),c=s(r(73172));function s(e){return e&&e.__esModule?e:{default:e}}},2260:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}r(69070),r(68304),r(30489),r(12419),r(82526),r(41817),r(32165),r(72443),r(39341),r(73706),r(10408),r(54747),r(68309),r(47042),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(66992),r(41539),r(82472),r(92990),r(18927),r(33105),r(35035),r(74345),r(7174),r(32846),r(44731),r(77209),r(96319),r(58867),r(37789),r(33739),r(29368),r(14483),r(12056),r(3462),r(30678),r(27462),r(33824),r(55021),r(12974),r(15016),r(78783),r(4129),r(33948);var o,i=r(5715),a=(o=r(99796))&&o.__esModule?o:{default:o},u=r(17187);function c(){c=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function f(e,t,r,n){var i=t&&t.prototype instanceof h?t:h,a=Object.create(i.prototype),u=new j(n||[]);return o(a,"_invoke",{value:O(e,r,u)}),a}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=f;var p={};function h(){}function v(){}function y(){}var m={};l(m,a,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(T([])));b&&b!==t&&r.call(b,a)&&(m=b);var w=y.prototype=h.prototype=Object.create(m);function E(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function i(o,a,u,c){var s=d(e[o],e,a);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==n(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){i("next",e,u,c)}),(function(e){i("throw",e,u,c)})):t.resolve(f).then((function(e){l.value=e,u(l)}),(function(e){return i("throw",e,u,c)}))}c(s.arg)}var a;o(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){i(e,r,t,n)}))}return a=a?a.then(n,n):n()}})}function O(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=S(a,r);if(u){if(u===p)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=d(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===p)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function S(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method))return p;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var n=d(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,p;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,p):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function T(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:P}}function P(){return{value:void 0,done:!0}}return v.prototype=y,o(w,"constructor",{value:y,configurable:!0}),o(y,"constructor",{value:v,configurable:!0}),v.displayName=l(y,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,l(e,s,"GeneratorFunction")),e.prototype=Object.create(w),e},e.awrap=function(e){return{__await:e}},E(_.prototype),l(_.prototype,u,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new _(f(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(w),l(w,s,"Generator"),l(w,a,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=T,j.prototype={constructor:j,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),k(r),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:T(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},e}function s(e,t,r,n,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void r(e)}u.done?t(c):Promise.resolve(c).then(n,o)}function l(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){s(i,n,o,a,u,"next",e)}function u(e){s(i,n,o,a,u,"throw",e)}a(void 0)}))}}function f(e,t,r){return f=m()?Reflect.construct.bind():function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&h(o,r.prototype),o},f.apply(null,arguments)}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function h(e,t){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},h(e,t)}function v(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return y(e)}function y(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}function b(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function w(e,t,r){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,r)}function E(e,t){return function(e,t){return t.get?t.get.call(e):t.value}(e,O(e,t,"get"))}function _(e,t,r){return function(e,t,r){if(t.set)t.set.call(e,r);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=r}}(e,O(e,t,"set"),r),r}function O(e,t,r){if(!t.has(e))throw new TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}var S=(0,a.default)("cbio.CBORSocket"),x=new WeakMap,k=new WeakMap,j=new WeakMap,T=new WeakMap,P=new WeakMap,L=new WeakMap,I=new WeakMap,A=new WeakMap,C=new WeakMap,M=new WeakMap,N=new WeakMap,R=new WeakMap,D=new WeakMap,F=new WeakMap,U=new WeakMap,W=new WeakMap,z=new WeakMap,B=new WeakMap,G=new WeakMap,V=new WeakMap,Y=new WeakMap,H=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h(e,t)}(u,e);var t,r,n,o,a=(t=u,r=m(),function(){var e,n=g(t);if(r){var o=g(this).constructor;e=Reflect.construct(n,arguments,o)}else e=n.apply(this,arguments);return v(this,e)});function u(e){var t,r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=n.socketFactory,s=void 0===o?function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return f(WebSocket,t)}:o;return d(this,u),w(y(t=a.call(this)),x,{writable:!0,value:void 0}),w(y(t),k,{writable:!0,value:!1}),w(y(t),j,{writable:!0,value:void 0}),w(y(t),T,{writable:!0,value:void 0}),w(y(t),P,{writable:!0,value:0}),w(y(t),L,{writable:!0,value:6e4}),w(y(t),I,{writable:!0,value:1e3+Math.floor(1e3*Math.random())}),w(y(t),A,{writable:!0,value:void 0}),w(y(t),C,{writable:!0,value:void 0}),w(y(t),M,{writable:!0,value:void 0}),w(y(t),N,{writable:!0,value:0}),w(y(t),R,{writable:!0,value:0}),w(y(t),D,{writable:!0,value:(r=l(c().mark((function e(){var r,n;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!E(y(t),T)){e.next=3;break}return console.error("Socket already exists"),e.abrupt("return");case 3:return S("creating ws"),e.next=6,E(y(t),x).getUrl();case 6:if(r=e.sent,!E(y(t),k)){e.next=9;break}return e.abrupt("return");case 9:if(!E(y(t),T)){e.next=11;break}return e.abrupt("return");case 11:(n=E(y(t),j).call(y(t),r)).binaryType="arraybuffer",n.addEventListener("open",E(y(t),F)),n.addEventListener("message",E(y(t),W)),n.addEventListener("close",E(y(t),G)),n.addEventListener("error",E(y(t),V)),_(y(t),T,n);case 18:case"end":return e.stop()}}),e)}))),function(){return r.apply(this,arguments)})}),w(y(t),F,{writable:!0,value:function(){S("ws opened"),t.emit("open"),clearTimeout(E(y(t),C)),_(y(t),C,setTimeout((function(){S("counting open as success"),_(y(t),P,0)}),5e3))}}),w(y(t),U,{writable:!0,value:function(e){_(y(t),R,e)}}),w(y(t),W,{writable:!0,value:function(e){try{var r=(0,i.decode)(new Uint8Array(e.data)),n=r.event,o=r.data,a=r.ack;return a?E(y(t),U).call(y(t),a):n?t.emit("event",n,o):console.error("Socket received message without event",e)}catch(t){return console.error("Error processing message",e.data,t.stack)}}}),w(y(t),z,{writable:!0,value:function(e){var r=1+.5*Math.random(),n=Math.floor(Math.pow(300*e,1.2)*r);return Math.min(Math.max(E(y(t),I),n),E(y(t),L))}}),w(y(t),B,{writable:!0,value:function(){if(E(y(t),k))S("reconnect skipped as socket was closed");else if(E(y(t),M))S("reconnect skipped as reconnect already scheduled");else{if(!1===navigator.onLine)return S("navigator offline"),void _(y(t),M,setTimeout((function(){_(y(t),M,null),E(y(t),B).call(y(t))}),1e3));var e=E(y(t),z).call(y(t),E(y(t),P));S("reconnecting in",e,"attempts",E(y(t),P)),_(y(t),M,setTimeout(l(c().mark((function e(){return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(_(y(t),M,null),!E(y(t),k)){e.next=5;break}console.warn("tried to reconnect after close"),e.next=8;break;case 5:return _(y(t),T,null),e.next=8,E(y(t),D).call(y(t)).catch(E(y(t),V));case 8:case"end":return e.stop()}}),e)}))),e)),_(y(t),P,E(y(t),P)+1)}}}),w(y(t),G,{writable:!0,value:function(){S("ws closed"),t.emit("close"),S("resetting message acks"),_(y(t),N,0),_(y(t),R,0),E(y(t),k)||E(y(t),B).call(y(t)),clearTimeout(E(y(t),C))}}),w(y(t),V,{writable:!0,value:function(e){t.emit("error",e)}}),w(y(t),Y,{writable:!0,value:function(){t.send("ping")}}),b(y(t),"messageLag",(function(){return E(y(t),R)?E(y(t),N)-E(y(t),R):0})),b(y(t),"setMaxReconnectDelay",(function(e){S("set max delay",e),_(y(t),L,e)})),b(y(t),"setMinReconnectDelay",(function(e){S("set min delay",e),_(y(t),I,e)})),b(y(t),"send",(function(e,r){if(!t.connected)return!1;_(y(t),N,E(y(t),N)+1);var n=Date.now(),o=(0,i.encode)(r?{event:e,id:E(y(t),N),data:r}:{event:e});return S("encoded","".concat(o.byteLength," bytes"),"in","".concat(Date.now()-n,"ms")),E(y(t),T).send(o),!0})),b(y(t),"close",(function(){if(S("close"),_(y(t),k,!0),E(y(t),T))try{var e;(e=E(y(t),T)).close.apply(e,arguments)}catch(e){S("error closing socket",e)}_(y(t),T,null),t.removeAllListeners(),clearTimeout(E(y(t),M)),clearInterval(E(y(t),A)),window.removeEventListener("unload",t.close)})),S("created cbor socket"),_(y(t),x,e),_(y(t),j,s),_(y(t),A,setInterval(E(y(t),Y),6e4)),window.addEventListener("unload",t.close),t.on("error",(function(e){return S("ws errored",e)})),E(y(t),D).call(y(t)).catch(E(y(t),V)),t}return n=u,(o=[{key:"bufferedAmount",get:function(){return E(this,T)?E(this,T).bufferedAmount:1/0}},{key:"connected",get:function(){return!!E(this,T)&&E(this,T).readyState===E(this,T).OPEN}}])&&p(n.prototype,o),Object.defineProperty(n,"prototype",{writable:!1}),u}(u.EventEmitter);t.default=H},76683:function(e,t,r){"use strict";function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(69070);var o=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r;return t=e,r=[{key:"fromImage",value:function(e){var t=document.createElement("canvas");return t.width=e.width,t.height=e.height,t.getContext("2d").drawImage(e,0,0,t.width,t.height),this.fromCanvas(t)}},{key:"fromCanvas",value:function(e){return e.toDataURL?e.toDataURL("image/webp",.3):null}}],null&&n(t.prototype,null),r&&n(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=o},99421:function(e,t,r){"use strict";function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(57327),r(41539),r(69070);var o=function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.rate=t,this.period=r,this._tracked=[]}var t,r;return t=e,(r=[{key:"limit",value:function(){var e=Date.now()-this.period;return this._tracked=this._tracked.filter((function(t){return t>e})),!(this._tracked.length<this.rate&&(this._tracked.push(Date.now()),1))}}])&&n(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=o},18755:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},o(e,t)}function i(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return a(e)}function a(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}function c(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r(68304),r(30489),r(12419),r(82526),r(41817),r(32165),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(66992),r(41539),r(70189),r(78783),r(33948),r(74916),r(15306),r(69070);var s=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&o(e,t)}(l,e);var t,r,n,s=(r=l,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=u(r);if(n){var o=u(this).constructor;e=Reflect.construct(t,arguments,o)}else e=t.apply(this,arguments);return i(this,e)});function l(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),c(a(e=s.call(this)),"windows",new Set),c(a(e),"tap",(function(t){if(!e.windows.has(t)){e.windows.add(t);var r=a(e),n=t.history.pushState.bind(t.history);t.history.pushState=function(){n.apply(void 0,arguments),r.emit("navigate",t)};var o=t.history.replaceState.bind(t.history);t.history.replaceState=function(){o.apply(void 0,arguments),r.emit("navigate",t)};var i=t.CSSStyleSheet.prototype.insertRule;t.CSSStyleSheet.prototype.insertRule=function(){var e=i.bind(this).apply(void 0,arguments);return r.emit("stylechange",this),e};var u=t.CSSStyleSheet.prototype.deleteRule;t.CSSStyleSheet.prototype.deleteRule=function(){var e=u.bind(this).apply(void 0,arguments);return r.emit("stylechange",this),e};var c=t.CSSStyleSheet.prototype.replace;t.CSSStyleSheet.prototype.replace=function(){var e=c.bind(this).apply(void 0,arguments);return r.emit("stylechange",this),e};var s=t.CSSStyleSheet.prototype.replaceSync;t.CSSStyleSheet.prototype.replaceSync=function(){var e=s.bind(this).apply(void 0,arguments);return r.emit("stylechange",this),e}}})),c(a(e),"untap",(function(){})),e.setMaxListeners(200),e}return t=l,Object.defineProperty(t,"prototype",{writable:!1}),t}(r(17187).EventEmitter),l=new s;t.default=l},74011:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}r(69070),r(82526),r(41817),r(32165),r(66992),r(78783),r(33948),r(72443),r(39341),r(73706),r(10408),r(30489),r(54747),r(68309),r(68304),r(47042),Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return c.apply(this,arguments)},r(41539);var o=r(67743);function i(){i=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},a="function"==typeof Symbol?Symbol:{},u=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function f(e,t,r,n){var i=t&&t.prototype instanceof h?t:h,a=Object.create(i.prototype),u=new j(n||[]);return o(a,"_invoke",{value:O(e,r,u)}),a}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=f;var p={};function h(){}function v(){}function y(){}var m={};l(m,u,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(T([])));b&&b!==t&&r.call(b,u)&&(m=b);var w=y.prototype=h.prototype=Object.create(m);function E(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function i(o,a,u,c){var s=d(e[o],e,a);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==n(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){i("next",e,u,c)}),(function(e){i("throw",e,u,c)})):t.resolve(f).then((function(e){l.value=e,u(l)}),(function(e){return i("throw",e,u,c)}))}c(s.arg)}var a;o(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){i(e,r,t,n)}))}return a=a?a.then(n,n):n()}})}function O(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=S(a,r);if(u){if(u===p)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=d(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===p)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function S(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method))return p;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var n=d(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,p;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,p):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function T(e){if(e){var t=e[u];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:P}}function P(){return{value:void 0,done:!0}}return v.prototype=y,o(w,"constructor",{value:y,configurable:!0}),o(y,"constructor",{value:v,configurable:!0}),v.displayName=l(y,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,l(e,s,"GeneratorFunction")),e.prototype=Object.create(w),e},e.awrap=function(e){return{__await:e}},E(_.prototype),l(_.prototype,c,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new _(f(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(w),l(w,s,"Generator"),l(w,u,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=T,j.prototype={constructor:j,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),k(r),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:T(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},e}function a(e,t,r,n,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void r(e)}u.done?t(c):Promise.resolve(c).then(n,o)}function u(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function u(e){a(i,n,o,u,c,"next",e)}function c(e){a(i,n,o,u,c,"throw",e)}u(void 0)}))}}function c(){return(c=u(i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:o.NodeSerializer.isLocalResource(window.location.href)&&console.warn("CobrowseIO: This page was loaded from a local address, Cobrowse may not work as expected due to inaccessible resources. We recommend using ngrok for testing development versions.");case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},53440:function(e,t,r){"use strict";r(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o.default,n=["X-CobrowseSDKVersion=".concat(r.version),"X-CobrowsePlatform=web","X-CobrowseDevice=".concat(r.deviceId()),"X-CobrowseLicense=".concat(r.license)].join("&"),i=new URL(e,r.api).toString(),a=i.replace("https://","wss://").replace("http://","ws://");return new URL("sockets/1/ws?access_token=".concat(t,"&").concat(n),a).toString()},r(69600),r(41539),r(39714),r(66992),r(78783),r(33948),r(60285),r(41637),r(74916),r(15306),r(92222);var n,o=(n=r(51178))&&n.__esModule?n:{default:n}},77368:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.protect=function(e,t,r){e[n]||Object.defineProperty(e,n,{enumerable:!1,value:{}});var o=e[n][t];return Object.getPrototypeOf(Object.getPrototypeOf(e))[t]=o,Object.defineProperty(e[n],t,{enumerable:!1,value:r,configurable:!0}),r},r(82526),r(41817),r(41539),r(69070),r(30489);var n=Symbol("protected"),o=n;t.default=o},60453:function(e,t,r){"use strict";r(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o,r="",n=e;n>0;n-=1)r+=t[Math.floor(Math.random()*t.length)];return r},r(92222);var n="abcdefghijklmnopqrstuvwxyz",o="".concat("0123456789").concat(n.toLowerCase()).concat(n.toUpperCase())},33191:function(e,t,r){"use strict";function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(26699),r(32023),r(69070);var o=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r;return t=e,r=[{key:"isHeadless",value:function(){return navigator.userAgent.toLowerCase().includes("headless")}}],null&&n(t.prototype,null),r&&n(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=o},19662:function(e,t,r){var n=r(60614),o=r(66330),i=TypeError;e.exports=function(e){if(n(e))return e;throw i(o(e)+" is not a function")}},39483:function(e,t,r){var n=r(4411),o=r(66330),i=TypeError;e.exports=function(e){if(n(e))return e;throw i(o(e)+" is not a constructor")}},96077:function(e,t,r){var n=r(60614),o=String,i=TypeError;e.exports=function(e){if("object"==typeof e||n(e))return e;throw i("Can't set "+o(e)+" as a prototype")}},51223:function(e,t,r){var n=r(5112),o=r(70030),i=r(3070).f,a=n("unscopables"),u=Array.prototype;null==u[a]&&i(u,a,{configurable:!0,value:o(null)}),e.exports=function(e){u[a][e]=!0}},31530:function(e,t,r){"use strict";var n=r(28710).charAt;e.exports=function(e,t,r){return t+(r?n(e,t).length:1)}},25787:function(e,t,r){var n=r(47976),o=TypeError;e.exports=function(e,t){if(n(t,e))return e;throw o("Incorrect invocation")}},19670:function(e,t,r){var n=r(70111),o=String,i=TypeError;e.exports=function(e){if(n(e))return e;throw i(o(e)+" is not an object")}},23013:function(e){e.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},7556:function(e,t,r){var n=r(47293);e.exports=n((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}))},90260:function(e,t,r){"use strict";var n,o,i,a=r(23013),u=r(19781),c=r(17854),s=r(60614),l=r(70111),f=r(92597),d=r(70648),p=r(66330),h=r(68880),v=r(98052),y=r(3070).f,m=r(47976),g=r(79518),b=r(27674),w=r(5112),E=r(69711),_=r(29909),O=_.enforce,S=_.get,x=c.Int8Array,k=x&&x.prototype,j=c.Uint8ClampedArray,T=j&&j.prototype,P=x&&g(x),L=k&&g(k),I=Object.prototype,A=c.TypeError,C=w("toStringTag"),M=E("TYPED_ARRAY_TAG"),N=a&&!!b&&"Opera"!==d(c.opera),R=!1,D={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},F={BigInt64Array:8,BigUint64Array:8},U=function(e){var t=g(e);if(l(t)){var r=S(t);return r&&f(r,"TypedArrayConstructor")?r.TypedArrayConstructor:U(t)}},W=function(e){if(!l(e))return!1;var t=d(e);return f(D,t)||f(F,t)};for(n in D)(i=(o=c[n])&&o.prototype)?O(i).TypedArrayConstructor=o:N=!1;for(n in F)(i=(o=c[n])&&o.prototype)&&(O(i).TypedArrayConstructor=o);if((!N||!s(P)||P===Function.prototype)&&(P=function(){throw A("Incorrect invocation")},N))for(n in D)c[n]&&b(c[n],P);if((!N||!L||L===I)&&(L=P.prototype,N))for(n in D)c[n]&&b(c[n].prototype,L);if(N&&g(T)!==L&&b(T,L),u&&!f(L,C))for(n in R=!0,y(L,C,{get:function(){return l(this)?this[M]:void 0}}),D)c[n]&&h(c[n],M,n);e.exports={NATIVE_ARRAY_BUFFER_VIEWS:N,TYPED_ARRAY_TAG:R&&M,aTypedArray:function(e){if(W(e))return e;throw A("Target is not a typed array")},aTypedArrayConstructor:function(e){if(s(e)&&(!b||m(P,e)))return e;throw A(p(e)+" is not a typed array constructor")},exportTypedArrayMethod:function(e,t,r,n){if(u){if(r)for(var o in D){var i=c[o];if(i&&f(i.prototype,e))try{delete i.prototype[e]}catch(r){try{i.prototype[e]=t}catch(e){}}}L[e]&&!r||v(L,e,r?t:N&&k[e]||t,n)}},exportTypedArrayStaticMethod:function(e,t,r){var n,o;if(u){if(b){if(r)for(n in D)if((o=c[n])&&f(o,e))try{delete o[e]}catch(e){}if(P[e]&&!r)return;try{return v(P,e,r?t:N&&P[e]||t)}catch(e){}}for(n in D)!(o=c[n])||o[e]&&!r||v(o,e,t)}},getTypedArrayConstructor:U,isView:function(e){if(!l(e))return!1;var t=d(e);return"DataView"===t||f(D,t)||f(F,t)},isTypedArray:W,TypedArray:P,TypedArrayPrototype:L}},13331:function(e,t,r){"use strict";var n=r(17854),o=r(1702),i=r(19781),a=r(23013),u=r(76530),c=r(68880),s=r(89190),l=r(47293),f=r(25787),d=r(19303),p=r(17466),h=r(57067),v=r(11179),y=r(79518),m=r(27674),g=r(8006).f,b=r(3070).f,w=r(21285),E=r(41589),_=r(58003),O=r(29909),S=u.PROPER,x=u.CONFIGURABLE,k=O.get,j=O.set,T="ArrayBuffer",P="Wrong index",L=n.ArrayBuffer,I=L,A=I&&I.prototype,C=n.DataView,M=C&&C.prototype,N=Object.prototype,R=n.Array,D=n.RangeError,F=o(w),U=o([].reverse),W=v.pack,z=v.unpack,B=function(e){return[255&e]},G=function(e){return[255&e,e>>8&255]},V=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},Y=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},H=function(e){return W(e,23,4)},K=function(e){return W(e,52,8)},q=function(e,t){b(e.prototype,t,{get:function(){return k(this)[t]}})},$=function(e,t,r,n){var o=h(r),i=k(e);if(o+t>i.byteLength)throw D(P);var a=k(i.buffer).bytes,u=o+i.byteOffset,c=E(a,u,u+t);return n?c:U(c)},X=function(e,t,r,n,o,i){var a=h(r),u=k(e);if(a+t>u.byteLength)throw D(P);for(var c=k(u.buffer).bytes,s=a+u.byteOffset,l=n(+o),f=0;f<t;f++)c[s+f]=l[i?f:t-f-1]};if(a){var Q=S&&L.name!==T;if(l((function(){L(1)}))&&l((function(){new L(-1)}))&&!l((function(){return new L,new L(1.5),new L(NaN),1!=L.length||Q&&!x})))Q&&x&&c(L,"name",T);else{(I=function(e){return f(this,A),new L(h(e))}).prototype=A;for(var J,Z=g(L),ee=0;Z.length>ee;)(J=Z[ee++])in I||c(I,J,L[J]);A.constructor=I}m&&y(M)!==N&&m(M,N);var te=new C(new I(2)),re=o(M.setInt8);te.setInt8(0,2147483648),te.setInt8(1,2147483649),!te.getInt8(0)&&te.getInt8(1)||s(M,{setInt8:function(e,t){re(this,e,t<<24>>24)},setUint8:function(e,t){re(this,e,t<<24>>24)}},{unsafe:!0})}else A=(I=function(e){f(this,A);var t=h(e);j(this,{bytes:F(R(t),0),byteLength:t}),i||(this.byteLength=t)}).prototype,M=(C=function(e,t,r){f(this,M),f(e,A);var n=k(e).byteLength,o=d(t);if(o<0||o>n)throw D("Wrong offset");if(o+(r=void 0===r?n-o:p(r))>n)throw D("Wrong length");j(this,{buffer:e,byteLength:r,byteOffset:o}),i||(this.buffer=e,this.byteLength=r,this.byteOffset=o)}).prototype,i&&(q(I,"byteLength"),q(C,"buffer"),q(C,"byteLength"),q(C,"byteOffset")),s(M,{getInt8:function(e){return $(this,1,e)[0]<<24>>24},getUint8:function(e){return $(this,1,e)[0]},getInt16:function(e){var t=$(this,2,e,arguments.length>1?arguments[1]:void 0);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=$(this,2,e,arguments.length>1?arguments[1]:void 0);return t[1]<<8|t[0]},getInt32:function(e){return Y($(this,4,e,arguments.length>1?arguments[1]:void 0))},getUint32:function(e){return Y($(this,4,e,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(e){return z($(this,4,e,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(e){return z($(this,8,e,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(e,t){X(this,1,e,B,t)},setUint8:function(e,t){X(this,1,e,B,t)},setInt16:function(e,t){X(this,2,e,G,t,arguments.length>2?arguments[2]:void 0)},setUint16:function(e,t){X(this,2,e,G,t,arguments.length>2?arguments[2]:void 0)},setInt32:function(e,t){X(this,4,e,V,t,arguments.length>2?arguments[2]:void 0)},setUint32:function(e,t){X(this,4,e,V,t,arguments.length>2?arguments[2]:void 0)},setFloat32:function(e,t){X(this,4,e,H,t,arguments.length>2?arguments[2]:void 0)},setFloat64:function(e,t){X(this,8,e,K,t,arguments.length>2?arguments[2]:void 0)}});_(I,T),_(C,"DataView"),e.exports={ArrayBuffer:I,DataView:C}},1048:function(e,t,r){"use strict";var n=r(47908),o=r(51400),i=r(26244),a=r(85117),u=Math.min;e.exports=[].copyWithin||function(e,t){var r=n(this),c=i(r),s=o(e,c),l=o(t,c),f=arguments.length>2?arguments[2]:void 0,d=u((void 0===f?c:o(f,c))-l,c-s),p=1;for(l<s&&s<l+d&&(p=-1,l+=d-1,s+=d-1);d-- >0;)l in r?r[s]=r[l]:a(r,s),s+=p,l+=p;return r}},21285:function(e,t,r){"use strict";var n=r(47908),o=r(51400),i=r(26244);e.exports=function(e){for(var t=n(this),r=i(t),a=arguments.length,u=o(a>1?arguments[1]:void 0,r),c=a>2?arguments[2]:void 0,s=void 0===c?r:o(c,r);s>u;)t[u++]=e;return t}},18533:function(e,t,r){"use strict";var n=r(42092).forEach,o=r(9341)("forEach");e.exports=o?[].forEach:function(e){return n(this,e,arguments.length>1?arguments[1]:void 0)}},97745:function(e,t,r){var n=r(26244);e.exports=function(e,t){for(var r=0,o=n(t),i=new e(o);o>r;)i[r]=t[r++];return i}},48457:function(e,t,r){"use strict";var n=r(49974),o=r(46916),i=r(47908),a=r(53411),u=r(97659),c=r(4411),s=r(26244),l=r(86135),f=r(18554),d=r(71246),p=Array;e.exports=function(e){var t=i(e),r=c(this),h=arguments.length,v=h>1?arguments[1]:void 0,y=void 0!==v;y&&(v=n(v,h>2?arguments[2]:void 0));var m,g,b,w,E,_,O=d(t),S=0;if(!O||this===p&&u(O))for(m=s(t),g=r?new this(m):p(m);m>S;S++)_=y?v(t[S],S):t[S],l(g,S,_);else for(E=(w=f(t,O)).next,g=r?new this:[];!(b=o(E,w)).done;S++)_=y?a(w,v,[b.value,S],!0):b.value,l(g,S,_);return g.length=S,g}},41318:function(e,t,r){var n=r(45656),o=r(51400),i=r(26244),a=function(e){return function(t,r,a){var u,c=n(t),s=i(c),l=o(a,s);if(e&&r!=r){for(;s>l;)if((u=c[l++])!=u)return!0}else for(;s>l;l++)if((e||l in c)&&c[l]===r)return e||l||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},42092:function(e,t,r){var n=r(49974),o=r(1702),i=r(68361),a=r(47908),u=r(26244),c=r(65417),s=o([].push),l=function(e){var t=1==e,r=2==e,o=3==e,l=4==e,f=6==e,d=7==e,p=5==e||f;return function(h,v,y,m){for(var g,b,w=a(h),E=i(w),_=n(v,y),O=u(E),S=0,x=m||c,k=t?x(h,O):r||d?x(h,0):void 0;O>S;S++)if((p||S in E)&&(b=_(g=E[S],S,w),e))if(t)k[S]=b;else if(b)switch(e){case 3:return!0;case 5:return g;case 6:return S;case 2:s(k,g)}else switch(e){case 4:return!1;case 7:s(k,g)}return f?-1:o||l?l:k}};e.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6),filterReject:l(7)}},86583:function(e,t,r){"use strict";var n=r(22104),o=r(45656),i=r(19303),a=r(26244),u=r(9341),c=Math.min,s=[].lastIndexOf,l=!!s&&1/[1].lastIndexOf(1,-0)<0,f=u("lastIndexOf"),d=l||!f;e.exports=d?function(e){if(l)return n(s,this,arguments)||0;var t=o(this),r=a(t),u=r-1;for(arguments.length>1&&(u=c(u,i(arguments[1]))),u<0&&(u=r+u);u>=0;u--)if(u in t&&t[u]===e)return u||0;return-1}:s},81194:function(e,t,r){var n=r(47293),o=r(5112),i=r(7392),a=o("species");e.exports=function(e){return i>=51||!n((function(){var t=[];return(t.constructor={})[a]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},9341:function(e,t,r){"use strict";var n=r(47293);e.exports=function(e,t){var r=[][e];return!!r&&n((function(){r.call(null,t||function(){return 1},1)}))}},53671:function(e,t,r){var n=r(19662),o=r(47908),i=r(68361),a=r(26244),u=TypeError,c=function(e){return function(t,r,c,s){n(r);var l=o(t),f=i(l),d=a(l),p=e?d-1:0,h=e?-1:1;if(c<2)for(;;){if(p in f){s=f[p],p+=h;break}if(p+=h,e?p<0:d<=p)throw u("Reduce of empty array with no initial value")}for(;e?p>=0:d>p;p+=h)p in f&&(s=r(s,f[p],p,l));return s}};e.exports={left:c(!1),right:c(!0)}},83658:function(e,t,r){"use strict";var n=r(19781),o=r(43157),i=TypeError,a=Object.getOwnPropertyDescriptor,u=n&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=u?function(e,t){if(o(e)&&!a(e,"length").writable)throw i("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},41589:function(e,t,r){var n=r(51400),o=r(26244),i=r(86135),a=Array,u=Math.max;e.exports=function(e,t,r){for(var c=o(e),s=n(t,c),l=n(void 0===r?c:r,c),f=a(u(l-s,0)),d=0;s<l;s++,d++)i(f,d,e[s]);return f.length=d,f}},50206:function(e,t,r){var n=r(1702);e.exports=n([].slice)},94362:function(e,t,r){var n=r(41589),o=Math.floor,i=function(e,t){var r=e.length,c=o(r/2);return r<8?a(e,t):u(e,i(n(e,0,c),t),i(n(e,c),t),t)},a=function(e,t){for(var r,n,o=e.length,i=1;i<o;){for(n=i,r=e[i];n&&t(e[n-1],r)>0;)e[n]=e[--n];n!==i++&&(e[n]=r)}return e},u=function(e,t,r,n){for(var o=t.length,i=r.length,a=0,u=0;a<o||u<i;)e[a+u]=a<o&&u<i?n(t[a],r[u])<=0?t[a++]:r[u++]:a<o?t[a++]:r[u++];return e};e.exports=i},77475:function(e,t,r){var n=r(43157),o=r(4411),i=r(70111),a=r(5112)("species"),u=Array;e.exports=function(e){var t;return n(e)&&(t=e.constructor,(o(t)&&(t===u||n(t.prototype))||i(t)&&null===(t=t[a]))&&(t=void 0)),void 0===t?u:t}},65417:function(e,t,r){var n=r(77475);e.exports=function(e,t){return new(n(e))(0===t?0:t)}},53411:function(e,t,r){var n=r(19670),o=r(99212);e.exports=function(e,t,r,i){try{return i?t(n(r)[0],r[1]):t(r)}catch(t){o(e,"throw",t)}}},17072:function(e,t,r){var n=r(5112)("iterator"),o=!1;try{var i=0,a={next:function(){return{done:!!i++}},return:function(){o=!0}};a[n]=function(){return this},Array.from(a,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!o)return!1;var r=!1;try{var i={};i[n]=function(){return{next:function(){return{done:r=!0}}}},e(i)}catch(e){}return r}},84326:function(e,t,r){var n=r(40084),o=n({}.toString),i=n("".slice);e.exports=function(e){return i(o(e),8,-1)}},70648:function(e,t,r){var n=r(51694),o=r(60614),i=r(84326),a=r(5112)("toStringTag"),u=Object,c="Arguments"==i(function(){return arguments}());e.exports=n?i:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=u(e),a))?r:c?i(t):"Object"==(n=i(t))&&o(t.callee)?"Arguments":n}},95631:function(e,t,r){"use strict";var n=r(3070).f,o=r(70030),i=r(89190),a=r(49974),u=r(25787),c=r(68554),s=r(20408),l=r(51656),f=r(76178),d=r(96340),p=r(19781),h=r(62423).fastKey,v=r(29909),y=v.set,m=v.getterFor;e.exports={getConstructor:function(e,t,r,l){var f=e((function(e,n){u(e,d),y(e,{type:t,index:o(null),first:void 0,last:void 0,size:0}),p||(e.size=0),c(n)||s(n,e[l],{that:e,AS_ENTRIES:r})})),d=f.prototype,v=m(t),g=function(e,t,r){var n,o,i=v(e),a=b(e,t);return a?a.value=r:(i.last=a={index:o=h(t,!0),key:t,value:r,previous:n=i.last,next:void 0,removed:!1},i.first||(i.first=a),n&&(n.next=a),p?i.size++:e.size++,"F"!==o&&(i.index[o]=a)),e},b=function(e,t){var r,n=v(e),o=h(t);if("F"!==o)return n.index[o];for(r=n.first;r;r=r.next)if(r.key==t)return r};return i(d,{clear:function(){for(var e=v(this),t=e.index,r=e.first;r;)r.removed=!0,r.previous&&(r.previous=r.previous.next=void 0),delete t[r.index],r=r.next;e.first=e.last=void 0,p?e.size=0:this.size=0},delete:function(e){var t=this,r=v(t),n=b(t,e);if(n){var o=n.next,i=n.previous;delete r.index[n.index],n.removed=!0,i&&(i.next=o),o&&(o.previous=i),r.first==n&&(r.first=o),r.last==n&&(r.last=i),p?r.size--:t.size--}return!!n},forEach:function(e){for(var t,r=v(this),n=a(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:r.first;)for(n(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!b(this,e)}}),i(d,r?{get:function(e){var t=b(this,e);return t&&t.value},set:function(e,t){return g(this,0===e?0:e,t)}}:{add:function(e){return g(this,e=0===e?0:e,e)}}),p&&n(d,"size",{get:function(){return v(this).size}}),f},setStrong:function(e,t,r){var n=t+" Iterator",o=m(t),i=m(n);l(e,t,(function(e,t){y(this,{type:n,target:e,state:o(e),kind:t,last:void 0})}),(function(){for(var e=i(this),t=e.kind,r=e.last;r&&r.removed;)r=r.previous;return e.target&&(e.last=r=r?r.next:e.state.first)?f("keys"==t?r.key:"values"==t?r.value:[r.key,r.value],!1):(e.target=void 0,f(void 0,!0))}),r?"entries":"values",!r,!0),d(t)}}},29320:function(e,t,r){"use strict";var n=r(1702),o=r(89190),i=r(62423).getWeakData,a=r(25787),u=r(19670),c=r(68554),s=r(70111),l=r(20408),f=r(42092),d=r(92597),p=r(29909),h=p.set,v=p.getterFor,y=f.find,m=f.findIndex,g=n([].splice),b=0,w=function(e){return e.frozen||(e.frozen=new E)},E=function(){this.entries=[]},_=function(e,t){return y(e.entries,(function(e){return e[0]===t}))};E.prototype={get:function(e){var t=_(this,e);if(t)return t[1]},has:function(e){return!!_(this,e)},set:function(e,t){var r=_(this,e);r?r[1]=t:this.entries.push([e,t])},delete:function(e){var t=m(this.entries,(function(t){return t[0]===e}));return~t&&g(this.entries,t,1),!!~t}},e.exports={getConstructor:function(e,t,r,n){var f=e((function(e,o){a(e,p),h(e,{type:t,id:b++,frozen:void 0}),c(o)||l(o,e[n],{that:e,AS_ENTRIES:r})})),p=f.prototype,y=v(t),m=function(e,t,r){var n=y(e),o=i(u(t),!0);return!0===o?w(n).set(t,r):o[n.id]=r,e};return o(p,{delete:function(e){var t=y(this);if(!s(e))return!1;var r=i(e);return!0===r?w(t).delete(e):r&&d(r,t.id)&&delete r[t.id]},has:function(e){var t=y(this);if(!s(e))return!1;var r=i(e);return!0===r?w(t).has(e):r&&d(r,t.id)}}),o(p,r?{get:function(e){var t=y(this);if(s(e)){var r=i(e);return!0===r?w(t).get(e):r?r[t.id]:void 0}},set:function(e,t){return m(this,e,t)}}:{add:function(e){return m(this,e,!0)}}),f}}},77710:function(e,t,r){"use strict";var n=r(82109),o=r(17854),i=r(1702),a=r(54705),u=r(98052),c=r(62423),s=r(20408),l=r(25787),f=r(60614),d=r(68554),p=r(70111),h=r(47293),v=r(17072),y=r(58003),m=r(79587);e.exports=function(e,t,r){var g=-1!==e.indexOf("Map"),b=-1!==e.indexOf("Weak"),w=g?"set":"add",E=o[e],_=E&&E.prototype,O=E,S={},x=function(e){var t=i(_[e]);u(_,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(b&&!p(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return b&&!p(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(b&&!p(e))&&t(this,0===e?0:e)}:function(e,r){return t(this,0===e?0:e,r),this})};if(a(e,!f(E)||!(b||_.forEach&&!h((function(){(new E).entries().next()})))))O=r.getConstructor(t,e,g,w),c.enable();else if(a(e,!0)){var k=new O,j=k[w](b?{}:-0,1)!=k,T=h((function(){k.has(1)})),P=v((function(e){new E(e)})),L=!b&&h((function(){for(var e=new E,t=5;t--;)e[w](t,t);return!e.has(-0)}));P||((O=t((function(e,t){l(e,_);var r=m(new E,e,O);return d(t)||s(t,r[w],{that:r,AS_ENTRIES:g}),r}))).prototype=_,_.constructor=O),(T||L)&&(x("delete"),x("has"),g&&x("get")),(L||j)&&x(w),b&&_.clear&&delete _.clear}return S[e]=O,n({global:!0,constructor:!0,forced:O!=E},S),y(O,e),b||r.setStrong(O,e,g),O}},99920:function(e,t,r){var n=r(92597),o=r(53887),i=r(31236),a=r(3070);e.exports=function(e,t,r){for(var u=o(t),c=a.f,s=i.f,l=0;l<u.length;l++){var f=u[l];n(e,f)||r&&n(r,f)||c(e,f,s(t,f))}}},84964:function(e,t,r){var n=r(5112)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[n]=!1,"/./"[e](t)}catch(e){}}return!1}},49920:function(e,t,r){var n=r(47293);e.exports=!n((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},76178:function(e){e.exports=function(e,t){return{value:e,done:t}}},68880:function(e,t,r){var n=r(19781),o=r(3070),i=r(79114);e.exports=n?function(e,t,r){return o.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},79114:function(e){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},86135:function(e,t,r){"use strict";var n=r(34948),o=r(3070),i=r(79114);e.exports=function(e,t,r){var a=n(t);a in e?o.f(e,a,i(0,r)):e[a]=r}},47045:function(e,t,r){var n=r(56339),o=r(3070);e.exports=function(e,t,r){return r.get&&n(r.get,t,{getter:!0}),r.set&&n(r.set,t,{setter:!0}),o.f(e,t,r)}},98052:function(e,t,r){var n=r(60614),o=r(3070),i=r(56339),a=r(13072);e.exports=function(e,t,r,u){u||(u={});var c=u.enumerable,s=void 0!==u.name?u.name:t;if(n(r)&&i(r,s,u),u.global)c?e[t]=r:a(t,r);else{try{u.unsafe?e[t]&&(c=!0):delete e[t]}catch(e){}c?e[t]=r:o.f(e,t,{value:r,enumerable:!1,configurable:!u.nonConfigurable,writable:!u.nonWritable})}return e}},89190:function(e,t,r){var n=r(98052);e.exports=function(e,t,r){for(var o in t)n(e,o,t[o],r);return e}},13072:function(e,t,r){var n=r(17854),o=Object.defineProperty;e.exports=function(e,t){try{o(n,e,{value:t,configurable:!0,writable:!0})}catch(r){n[e]=t}return t}},85117:function(e,t,r){"use strict";var n=r(66330),o=TypeError;e.exports=function(e,t){if(!delete e[t])throw o("Cannot delete property "+n(t)+" of "+n(e))}},19781:function(e,t,r){var n=r(47293);e.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},4154:function(e){var t="object"==typeof document&&document.all,r=void 0===t&&void 0!==t;e.exports={all:t,IS_HTMLDDA:r}},80317:function(e,t,r){var n=r(17854),o=r(70111),i=n.document,a=o(i)&&o(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},7207:function(e){var t=TypeError;e.exports=function(e){if(e>9007199254740991)throw t("Maximum allowed index exceeded");return e}},48324:function(e){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},98509:function(e,t,r){var n=r(80317)("span").classList,o=n&&n.constructor&&n.constructor.prototype;e.exports=o===Object.prototype?void 0:o},68886:function(e,t,r){var n=r(88113).match(/firefox\/(\d+)/i);e.exports=!!n&&+n[1]},30256:function(e,t,r){var n=r(88113);e.exports=/MSIE|Trident/.test(n)},35268:function(e,t,r){var n=r(84326),o=r(17854);e.exports="process"==n(o.process)},88113:function(e,t,r){var n=r(35005);e.exports=n("navigator","userAgent")||""},7392:function(e,t,r){var n,o,i=r(17854),a=r(88113),u=i.process,c=i.Deno,s=u&&u.versions||c&&c.version,l=s&&s.v8;l&&(o=(n=l.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!o&&a&&(!(n=a.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=a.match(/Chrome\/(\d+)/))&&(o=+n[1]),e.exports=o},98008:function(e,t,r){var n=r(88113).match(/AppleWebKit\/(\d+)\./);e.exports=!!n&&+n[1]},80748:function(e){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},82109:function(e,t,r){var n=r(17854),o=r(31236).f,i=r(68880),a=r(98052),u=r(13072),c=r(99920),s=r(54705);e.exports=function(e,t){var r,l,f,d,p,h=e.target,v=e.global,y=e.stat;if(r=v?n:y?n[h]||u(h,{}):(n[h]||{}).prototype)for(l in t){if(d=t[l],f=e.dontCallGetSet?(p=o(r,l))&&p.value:r[l],!s(v?l:h+(y?".":"#")+l,e.forced)&&void 0!==f){if(typeof d==typeof f)continue;c(d,f)}(e.sham||f&&f.sham)&&i(d,"sham",!0),a(r,l,d,e)}}},47293:function(e){e.exports=function(e){try{return!!e()}catch(e){return!0}}},27007:function(e,t,r){"use strict";r(74916);var n=r(1702),o=r(98052),i=r(22261),a=r(47293),u=r(5112),c=r(68880),s=u("species"),l=RegExp.prototype;e.exports=function(e,t,r,f){var d=u(e),p=!a((function(){var t={};return t[d]=function(){return 7},7!=""[e](t)})),h=p&&!a((function(){var t=!1,r=/a/;return"split"===e&&((r={}).constructor={},r.constructor[s]=function(){return r},r.flags="",r[d]=/./[d]),r.exec=function(){return t=!0,null},r[d](""),!t}));if(!p||!h||r){var v=n(/./[d]),y=t(d,""[e],(function(e,t,r,o,a){var u=n(e),c=t.exec;return c===i||c===l.exec?p&&!a?{done:!0,value:v(t,r,o)}:{done:!0,value:u(r,t,o)}:{done:!1}}));o(String.prototype,e,y[0]),o(l,d,y[1])}f&&c(l[d],"sham",!0)}},6790:function(e,t,r){"use strict";var n=r(43157),o=r(26244),i=r(7207),a=r(49974),u=function(e,t,r,c,s,l,f,d){for(var p,h,v=s,y=0,m=!!f&&a(f,d);y<c;)y in r&&(p=m?m(r[y],y,t):r[y],l>0&&n(p)?(h=o(p),v=u(e,t,p,h,v,l-1)-1):(i(v+1),e[v]=p),v++),y++;return v};e.exports=u},76677:function(e,t,r){var n=r(47293);e.exports=!n((function(){return Object.isExtensible(Object.preventExtensions({}))}))},22104:function(e,t,r){var n=r(34374),o=Function.prototype,i=o.apply,a=o.call;e.exports="object"==typeof Reflect&&Reflect.apply||(n?a.bind(i):function(){return a.apply(i,arguments)})},49974:function(e,t,r){var n=r(1702),o=r(19662),i=r(34374),a=n(n.bind);e.exports=function(e,t){return o(e),void 0===t?e:i?a(e,t):function(){return e.apply(t,arguments)}}},34374:function(e,t,r){var n=r(47293);e.exports=!n((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},27065:function(e,t,r){"use strict";var n=r(1702),o=r(19662),i=r(70111),a=r(92597),u=r(50206),c=r(34374),s=Function,l=n([].concat),f=n([].join),d={},p=function(e,t,r){if(!a(d,t)){for(var n=[],o=0;o<t;o++)n[o]="a["+o+"]";d[t]=s("C,a","return new C("+f(n,",")+")")}return d[t](e,r)};e.exports=c?s.bind:function(e){var t=o(this),r=t.prototype,n=u(arguments,1),a=function(){var r=l(n,u(arguments));return this instanceof a?p(t,r.length,r):t.apply(e,r)};return i(r)&&(a.prototype=r),a}},46916:function(e,t,r){var n=r(34374),o=Function.prototype.call;e.exports=n?o.bind(o):function(){return o.apply(o,arguments)}},76530:function(e,t,r){var n=r(19781),o=r(92597),i=Function.prototype,a=n&&Object.getOwnPropertyDescriptor,u=o(i,"name"),c=u&&"something"===function(){}.name,s=u&&(!n||n&&a(i,"name").configurable);e.exports={EXISTS:u,PROPER:c,CONFIGURABLE:s}},40084:function(e,t,r){var n=r(34374),o=Function.prototype,i=o.call,a=n&&o.bind.bind(i,i);e.exports=n?a:function(e){return function(){return i.apply(e,arguments)}}},1702:function(e,t,r){var n=r(84326),o=r(40084);e.exports=function(e){if("Function"===n(e))return o(e)}},35005:function(e,t,r){var n=r(17854),o=r(60614),i=function(e){return o(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?i(n[e]):n[e]&&n[e][t]}},71246:function(e,t,r){var n=r(70648),o=r(58173),i=r(68554),a=r(97497),u=r(5112)("iterator");e.exports=function(e){if(!i(e))return o(e,u)||o(e,"@@iterator")||a[n(e)]}},18554:function(e,t,r){var n=r(46916),o=r(19662),i=r(19670),a=r(66330),u=r(71246),c=TypeError;e.exports=function(e,t){var r=arguments.length<2?u(e):t;if(o(r))return i(n(r,e));throw c(a(e)+" is not iterable")}},58173:function(e,t,r){var n=r(19662),o=r(68554);e.exports=function(e,t){var r=e[t];return o(r)?void 0:n(r)}},10647:function(e,t,r){var n=r(1702),o=r(47908),i=Math.floor,a=n("".charAt),u=n("".replace),c=n("".slice),s=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,l=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,r,n,f,d){var p=r+e.length,h=n.length,v=l;return void 0!==f&&(f=o(f),v=s),u(d,v,(function(o,u){var s;switch(a(u,0)){case"$":return"$";case"&":return e;case"`":return c(t,0,r);case"'":return c(t,p);case"<":s=f[c(u,1,-1)];break;default:var l=+u;if(0===l)return o;if(l>h){var d=i(l/10);return 0===d?o:d<=h?void 0===n[d-1]?a(u,1):n[d-1]+a(u,1):o}s=n[l-1]}return void 0===s?"":s}))}},17854:function(e,t,r){var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r.g&&r.g)||function(){return this}()||Function("return this")()},92597:function(e,t,r){var n=r(1702),o=r(47908),i=n({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(o(e),t)}},3501:function(e){e.exports={}},60490:function(e,t,r){var n=r(35005);e.exports=n("document","documentElement")},64664:function(e,t,r){var n=r(19781),o=r(47293),i=r(80317);e.exports=!n&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},11179:function(e){var t=Array,r=Math.abs,n=Math.pow,o=Math.floor,i=Math.log,a=Math.LN2;e.exports={pack:function(e,u,c){var s,l,f,d=t(c),p=8*c-u-1,h=(1<<p)-1,v=h>>1,y=23===u?n(2,-24)-n(2,-77):0,m=e<0||0===e&&1/e<0?1:0,g=0;for((e=r(e))!=e||e===1/0?(l=e!=e?1:0,s=h):(s=o(i(e)/a),e*(f=n(2,-s))<1&&(s--,f*=2),(e+=s+v>=1?y/f:y*n(2,1-v))*f>=2&&(s++,f/=2),s+v>=h?(l=0,s=h):s+v>=1?(l=(e*f-1)*n(2,u),s+=v):(l=e*n(2,v-1)*n(2,u),s=0));u>=8;)d[g++]=255&l,l/=256,u-=8;for(s=s<<u|l,p+=u;p>0;)d[g++]=255&s,s/=256,p-=8;return d[--g]|=128*m,d},unpack:function(e,t){var r,o=e.length,i=8*o-t-1,a=(1<<i)-1,u=a>>1,c=i-7,s=o-1,l=e[s--],f=127&l;for(l>>=7;c>0;)f=256*f+e[s--],c-=8;for(r=f&(1<<-c)-1,f>>=-c,c+=t;c>0;)r=256*r+e[s--],c-=8;if(0===f)f=1-u;else{if(f===a)return r?NaN:l?-1/0:1/0;r+=n(2,t),f-=u}return(l?-1:1)*r*n(2,f-t)}}},68361:function(e,t,r){var n=r(1702),o=r(47293),i=r(84326),a=Object,u=n("".split);e.exports=o((function(){return!a("z").propertyIsEnumerable(0)}))?function(e){return"String"==i(e)?u(e,""):a(e)}:a},79587:function(e,t,r){var n=r(60614),o=r(70111),i=r(27674);e.exports=function(e,t,r){var a,u;return i&&n(a=t.constructor)&&a!==r&&o(u=a.prototype)&&u!==r.prototype&&i(e,u),e}},42788:function(e,t,r){var n=r(1702),o=r(60614),i=r(5465),a=n(Function.toString);o(i.inspectSource)||(i.inspectSource=function(e){return a(e)}),e.exports=i.inspectSource},62423:function(e,t,r){var n=r(82109),o=r(1702),i=r(3501),a=r(70111),u=r(92597),c=r(3070).f,s=r(8006),l=r(1156),f=r(52050),d=r(69711),p=r(76677),h=!1,v=d("meta"),y=0,m=function(e){c(e,v,{value:{objectID:"O"+y++,weakData:{}}})},g=e.exports={enable:function(){g.enable=function(){},h=!0;var e=s.f,t=o([].splice),r={};r[v]=1,e(r).length&&(s.f=function(r){for(var n=e(r),o=0,i=n.length;o<i;o++)if(n[o]===v){t(n,o,1);break}return n},n({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:l.f}))},fastKey:function(e,t){if(!a(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!u(e,v)){if(!f(e))return"F";if(!t)return"E";m(e)}return e[v].objectID},getWeakData:function(e,t){if(!u(e,v)){if(!f(e))return!0;if(!t)return!1;m(e)}return e[v].weakData},onFreeze:function(e){return p&&h&&f(e)&&!u(e,v)&&m(e),e}};i[v]=!0},29909:function(e,t,r){var n,o,i,a=r(94811),u=r(17854),c=r(70111),s=r(68880),l=r(92597),f=r(5465),d=r(6200),p=r(3501),h="Object already initialized",v=u.TypeError,y=u.WeakMap;if(a||f.state){var m=f.state||(f.state=new y);m.get=m.get,m.has=m.has,m.set=m.set,n=function(e,t){if(m.has(e))throw v(h);return t.facade=e,m.set(e,t),t},o=function(e){return m.get(e)||{}},i=function(e){return m.has(e)}}else{var g=d("state");p[g]=!0,n=function(e,t){if(l(e,g))throw v(h);return t.facade=e,s(e,g,t),t},o=function(e){return l(e,g)?e[g]:{}},i=function(e){return l(e,g)}}e.exports={set:n,get:o,has:i,enforce:function(e){return i(e)?o(e):n(e,{})},getterFor:function(e){return function(t){var r;if(!c(t)||(r=o(t)).type!==e)throw v("Incompatible receiver, "+e+" required");return r}}}},97659:function(e,t,r){var n=r(5112),o=r(97497),i=n("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||a[i]===e)}},43157:function(e,t,r){var n=r(84326);e.exports=Array.isArray||function(e){return"Array"==n(e)}},44067:function(e,t,r){var n=r(70648),o=r(1702)("".slice);e.exports=function(e){return"Big"===o(n(e),0,3)}},60614:function(e,t,r){var n=r(4154),o=n.all;e.exports=n.IS_HTMLDDA?function(e){return"function"==typeof e||e===o}:function(e){return"function"==typeof e}},4411:function(e,t,r){var n=r(1702),o=r(47293),i=r(60614),a=r(70648),u=r(35005),c=r(42788),s=function(){},l=[],f=u("Reflect","construct"),d=/^\s*(?:class|function)\b/,p=n(d.exec),h=!d.exec(s),v=function(e){if(!i(e))return!1;try{return f(s,l,e),!0}catch(e){return!1}},y=function(e){if(!i(e))return!1;switch(a(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return h||!!p(d,c(e))}catch(e){return!0}};y.sham=!0,e.exports=!f||o((function(){var e;return v(v.call)||!v(Object)||!v((function(){e=!0}))||e}))?y:v},45032:function(e,t,r){var n=r(92597);e.exports=function(e){return void 0!==e&&(n(e,"value")||n(e,"writable"))}},54705:function(e,t,r){var n=r(47293),o=r(60614),i=/#|\.prototype\./,a=function(e,t){var r=c[u(e)];return r==l||r!=s&&(o(t)?n(t):!!t)},u=a.normalize=function(e){return String(e).replace(i,".").toLowerCase()},c=a.data={},s=a.NATIVE="N",l=a.POLYFILL="P";e.exports=a},55988:function(e,t,r){var n=r(70111),o=Math.floor;e.exports=Number.isInteger||function(e){return!n(e)&&isFinite(e)&&o(e)===e}},68554:function(e){e.exports=function(e){return null==e}},70111:function(e,t,r){var n=r(60614),o=r(4154),i=o.all;e.exports=o.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:n(e)||e===i}:function(e){return"object"==typeof e?null!==e:n(e)}},31913:function(e){e.exports=!1},47850:function(e,t,r){var n=r(70111),o=r(84326),i=r(5112)("match");e.exports=function(e){var t;return n(e)&&(void 0!==(t=e[i])?!!t:"RegExp"==o(e))}},52190:function(e,t,r){var n=r(35005),o=r(60614),i=r(47976),a=r(43307),u=Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=n("Symbol");return o(t)&&i(t.prototype,u(e))}},20408:function(e,t,r){var n=r(49974),o=r(46916),i=r(19670),a=r(66330),u=r(97659),c=r(26244),s=r(47976),l=r(18554),f=r(71246),d=r(99212),p=TypeError,h=function(e,t){this.stopped=e,this.result=t},v=h.prototype;e.exports=function(e,t,r){var y,m,g,b,w,E,_,O=r&&r.that,S=!(!r||!r.AS_ENTRIES),x=!(!r||!r.IS_RECORD),k=!(!r||!r.IS_ITERATOR),j=!(!r||!r.INTERRUPTED),T=n(t,O),P=function(e){return y&&d(y,"normal",e),new h(!0,e)},L=function(e){return S?(i(e),j?T(e[0],e[1],P):T(e[0],e[1])):j?T(e,P):T(e)};if(x)y=e.iterator;else if(k)y=e;else{if(!(m=f(e)))throw p(a(e)+" is not iterable");if(u(m)){for(g=0,b=c(e);b>g;g++)if((w=L(e[g]))&&s(v,w))return w;return new h(!1)}y=l(e,m)}for(E=x?e.next:y.next;!(_=o(E,y)).done;){try{w=L(_.value)}catch(e){d(y,"throw",e)}if("object"==typeof w&&w&&s(v,w))return w}return new h(!1)}},99212:function(e,t,r){var n=r(46916),o=r(19670),i=r(58173);e.exports=function(e,t,r){var a,u;o(e);try{if(!(a=i(e,"return"))){if("throw"===t)throw r;return r}a=n(a,e)}catch(e){u=!0,a=e}if("throw"===t)throw r;if(u)throw a;return o(a),r}},63061:function(e,t,r){"use strict";var n=r(13383).IteratorPrototype,o=r(70030),i=r(79114),a=r(58003),u=r(97497),c=function(){return this};e.exports=function(e,t,r,s){var l=t+" Iterator";return e.prototype=o(n,{next:i(+!s,r)}),a(e,l,!1,!0),u[l]=c,e}},51656:function(e,t,r){"use strict";var n=r(82109),o=r(46916),i=r(31913),a=r(76530),u=r(60614),c=r(63061),s=r(79518),l=r(27674),f=r(58003),d=r(68880),p=r(98052),h=r(5112),v=r(97497),y=r(13383),m=a.PROPER,g=a.CONFIGURABLE,b=y.IteratorPrototype,w=y.BUGGY_SAFARI_ITERATORS,E=h("iterator"),_="keys",O="values",S="entries",x=function(){return this};e.exports=function(e,t,r,a,h,y,k){c(r,t,a);var j,T,P,L=function(e){if(e===h&&N)return N;if(!w&&e in C)return C[e];switch(e){case _:case O:case S:return function(){return new r(this,e)}}return function(){return new r(this)}},I=t+" Iterator",A=!1,C=e.prototype,M=C[E]||C["@@iterator"]||h&&C[h],N=!w&&M||L(h),R="Array"==t&&C.entries||M;if(R&&(j=s(R.call(new e)))!==Object.prototype&&j.next&&(i||s(j)===b||(l?l(j,b):u(j[E])||p(j,E,x)),f(j,I,!0,!0),i&&(v[I]=x)),m&&h==O&&M&&M.name!==O&&(!i&&g?d(C,"name",O):(A=!0,N=function(){return o(M,this)})),h)if(T={values:L(O),keys:y?N:L(_),entries:L(S)},k)for(P in T)(w||A||!(P in C))&&p(C,P,T[P]);else n({target:t,proto:!0,forced:w||A},T);return i&&!k||C[E]===N||p(C,E,N,{name:h}),v[t]=N,T}},13383:function(e,t,r){"use strict";var n,o,i,a=r(47293),u=r(60614),c=r(70111),s=r(70030),l=r(79518),f=r(98052),d=r(5112),p=r(31913),h=d("iterator"),v=!1;[].keys&&("next"in(i=[].keys())?(o=l(l(i)))!==Object.prototype&&(n=o):v=!0),!c(n)||a((function(){var e={};return n[h].call(e)!==e}))?n={}:p&&(n=s(n)),u(n[h])||f(n,h,(function(){return this})),e.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:v}},97497:function(e){e.exports={}},26244:function(e,t,r){var n=r(17466);e.exports=function(e){return n(e.length)}},56339:function(e,t,r){var n=r(47293),o=r(60614),i=r(92597),a=r(19781),u=r(76530).CONFIGURABLE,c=r(42788),s=r(29909),l=s.enforce,f=s.get,d=Object.defineProperty,p=a&&!n((function(){return 8!==d((function(){}),"length",{value:8}).length})),h=String(String).split("String"),v=e.exports=function(e,t,r){"Symbol("===String(t).slice(0,7)&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!i(e,"name")||u&&e.name!==t)&&(a?d(e,"name",{value:t,configurable:!0}):e.name=t),p&&r&&i(r,"arity")&&e.length!==r.arity&&d(e,"length",{value:r.arity});try{r&&i(r,"constructor")&&r.constructor?a&&d(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var n=l(e);return i(n,"source")||(n.source=h.join("string"==typeof t?t:"")),e};Function.prototype.toString=v((function(){return o(this)&&f(this).source||c(this)}),"toString")},74758:function(e){var t=Math.ceil,r=Math.floor;e.exports=Math.trunc||function(e){var n=+e;return(n>0?r:t)(n)}},3929:function(e,t,r){var n=r(47850),o=TypeError;e.exports=function(e){if(n(e))throw o("The method doesn't accept regular expressions");return e}},83009:function(e,t,r){var n=r(17854),o=r(47293),i=r(1702),a=r(41340),u=r(53111).trim,c=r(81361),s=n.parseInt,l=n.Symbol,f=l&&l.iterator,d=/^[+-]?0x/i,p=i(d.exec),h=8!==s(c+"08")||22!==s(c+"0x16")||f&&!o((function(){s(Object(f))}));e.exports=h?function(e,t){var r=u(a(e));return s(r,t>>>0||(p(d,r)?16:10))}:s},21574:function(e,t,r){"use strict";var n=r(19781),o=r(1702),i=r(46916),a=r(47293),u=r(81956),c=r(25181),s=r(55296),l=r(47908),f=r(68361),d=Object.assign,p=Object.defineProperty,h=o([].concat);e.exports=!d||a((function(){if(n&&1!==d({b:1},d(p({},"a",{enumerable:!0,get:function(){p(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},r=Symbol(),o="abcdefghijklmnopqrst";return e[r]=7,o.split("").forEach((function(e){t[e]=e})),7!=d({},e)[r]||u(d({},t)).join("")!=o}))?function(e,t){for(var r=l(e),o=arguments.length,a=1,d=c.f,p=s.f;o>a;)for(var v,y=f(arguments[a++]),m=d?h(u(y),d(y)):u(y),g=m.length,b=0;g>b;)v=m[b++],n&&!i(p,y,v)||(r[v]=y[v]);return r}:d},70030:function(e,t,r){var n,o=r(19670),i=r(36048),a=r(80748),u=r(3501),c=r(60490),s=r(80317),l=r(6200)("IE_PROTO"),f=function(){},d=function(e){return"<script>"+e+"<\/script>"},p=function(e){e.write(d("")),e.close();var t=e.parentWindow.Object;return e=null,t},h=function(){try{n=new ActiveXObject("htmlfile")}catch(e){}var e,t;h="undefined"!=typeof document?document.domain&&n?p(n):((t=s("iframe")).style.display="none",c.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(d("document.F=Object")),e.close(),e.F):p(n);for(var r=a.length;r--;)delete h.prototype[a[r]];return h()};u[l]=!0,e.exports=Object.create||function(e,t){var r;return null!==e?(f.prototype=o(e),r=new f,f.prototype=null,r[l]=e):r=h(),void 0===t?r:i.f(r,t)}},36048:function(e,t,r){var n=r(19781),o=r(3353),i=r(3070),a=r(19670),u=r(45656),c=r(81956);t.f=n&&!o?Object.defineProperties:function(e,t){a(e);for(var r,n=u(t),o=c(t),s=o.length,l=0;s>l;)i.f(e,r=o[l++],n[r]);return e}},3070:function(e,t,r){var n=r(19781),o=r(64664),i=r(3353),a=r(19670),u=r(34948),c=TypeError,s=Object.defineProperty,l=Object.getOwnPropertyDescriptor;t.f=n?i?function(e,t,r){if(a(e),t=u(t),a(r),"function"==typeof e&&"prototype"===t&&"value"in r&&"writable"in r&&!r.writable){var n=l(e,t);n&&n.writable&&(e[t]=r.value,r={configurable:"configurable"in r?r.configurable:n.configurable,enumerable:"enumerable"in r?r.enumerable:n.enumerable,writable:!1})}return s(e,t,r)}:s:function(e,t,r){if(a(e),t=u(t),a(r),o)try{return s(e,t,r)}catch(e){}if("get"in r||"set"in r)throw c("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},31236:function(e,t,r){var n=r(19781),o=r(46916),i=r(55296),a=r(79114),u=r(45656),c=r(34948),s=r(92597),l=r(64664),f=Object.getOwnPropertyDescriptor;t.f=n?f:function(e,t){if(e=u(e),t=c(t),l)try{return f(e,t)}catch(e){}if(s(e,t))return a(!o(i.f,e,t),e[t])}},1156:function(e,t,r){var n=r(84326),o=r(45656),i=r(8006).f,a=r(41589),u="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return u&&"Window"==n(e)?function(e){try{return i(e)}catch(e){return a(u)}}(e):i(o(e))}},8006:function(e,t,r){var n=r(16324),o=r(80748).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,o)}},25181:function(e,t){t.f=Object.getOwnPropertySymbols},79518:function(e,t,r){var n=r(92597),o=r(60614),i=r(47908),a=r(6200),u=r(49920),c=a("IE_PROTO"),s=Object,l=s.prototype;e.exports=u?s.getPrototypeOf:function(e){var t=i(e);if(n(t,c))return t[c];var r=t.constructor;return o(r)&&t instanceof r?r.prototype:t instanceof s?l:null}},52050:function(e,t,r){var n=r(47293),o=r(70111),i=r(84326),a=r(7556),u=Object.isExtensible,c=n((function(){u(1)}));e.exports=c||a?function(e){return!!o(e)&&(!a||"ArrayBuffer"!=i(e))&&(!u||u(e))}:u},47976:function(e,t,r){var n=r(1702);e.exports=n({}.isPrototypeOf)},16324:function(e,t,r){var n=r(1702),o=r(92597),i=r(45656),a=r(41318).indexOf,u=r(3501),c=n([].push);e.exports=function(e,t){var r,n=i(e),s=0,l=[];for(r in n)!o(u,r)&&o(n,r)&&c(l,r);for(;t.length>s;)o(n,r=t[s++])&&(~a(l,r)||c(l,r));return l}},81956:function(e,t,r){var n=r(16324),o=r(80748);e.exports=Object.keys||function(e){return n(e,o)}},55296:function(e,t){"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,o=n&&!r.call({1:2},1);t.f=o?function(e){var t=n(this,e);return!!t&&t.enumerable}:r},27674:function(e,t,r){var n=r(1702),o=r(19670),i=r(96077);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=n(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),t=r instanceof Array}catch(e){}return function(r,n){return o(r),i(n),t?e(r,n):r.__proto__=n,r}}():void 0)},44699:function(e,t,r){var n=r(19781),o=r(1702),i=r(81956),a=r(45656),u=o(r(55296).f),c=o([].push),s=function(e){return function(t){for(var r,o=a(t),s=i(o),l=s.length,f=0,d=[];l>f;)r=s[f++],n&&!u(o,r)||c(d,e?[r,o[r]]:o[r]);return d}};e.exports={entries:s(!0),values:s(!1)}},90288:function(e,t,r){"use strict";var n=r(51694),o=r(70648);e.exports=n?{}.toString:function(){return"[object "+o(this)+"]"}},92140:function(e,t,r){var n=r(46916),o=r(60614),i=r(70111),a=TypeError;e.exports=function(e,t){var r,u;if("string"===t&&o(r=e.toString)&&!i(u=n(r,e)))return u;if(o(r=e.valueOf)&&!i(u=n(r,e)))return u;if("string"!==t&&o(r=e.toString)&&!i(u=n(r,e)))return u;throw a("Can't convert object to primitive value")}},53887:function(e,t,r){var n=r(35005),o=r(1702),i=r(8006),a=r(25181),u=r(19670),c=o([].concat);e.exports=n("Reflect","ownKeys")||function(e){var t=i.f(u(e)),r=a.f;return r?c(t,r(e)):t}},40857:function(e,t,r){var n=r(17854);e.exports=n},2626:function(e,t,r){var n=r(3070).f;e.exports=function(e,t,r){r in e||n(e,r,{configurable:!0,get:function(){return t[r]},set:function(e){t[r]=e}})}},97651:function(e,t,r){var n=r(46916),o=r(19670),i=r(60614),a=r(84326),u=r(22261),c=TypeError;e.exports=function(e,t){var r=e.exec;if(i(r)){var s=n(r,e,t);return null!==s&&o(s),s}if("RegExp"===a(e))return n(u,e,t);throw c("RegExp#exec called on incompatible receiver")}},22261:function(e,t,r){"use strict";var n,o,i=r(46916),a=r(1702),u=r(41340),c=r(67066),s=r(52999),l=r(72309),f=r(70030),d=r(29909).get,p=r(9441),h=r(38173),v=l("native-string-replace",String.prototype.replace),y=RegExp.prototype.exec,m=y,g=a("".charAt),b=a("".indexOf),w=a("".replace),E=a("".slice),_=(o=/b*/g,i(y,n=/a/,"a"),i(y,o,"a"),0!==n.lastIndex||0!==o.lastIndex),O=s.BROKEN_CARET,S=void 0!==/()??/.exec("")[1];(_||S||O||p||h)&&(m=function(e){var t,r,n,o,a,s,l,p=this,h=d(p),x=u(e),k=h.raw;if(k)return k.lastIndex=p.lastIndex,t=i(m,k,x),p.lastIndex=k.lastIndex,t;var j=h.groups,T=O&&p.sticky,P=i(c,p),L=p.source,I=0,A=x;if(T&&(P=w(P,"y",""),-1===b(P,"g")&&(P+="g"),A=E(x,p.lastIndex),p.lastIndex>0&&(!p.multiline||p.multiline&&"\n"!==g(x,p.lastIndex-1))&&(L="(?: "+L+")",A=" "+A,I++),r=new RegExp("^(?:"+L+")",P)),S&&(r=new RegExp("^"+L+"$(?!\\s)",P)),_&&(n=p.lastIndex),o=i(y,T?r:p,A),T?o?(o.input=E(o.input,I),o[0]=E(o[0],I),o.index=p.lastIndex,p.lastIndex+=o[0].length):p.lastIndex=0:_&&o&&(p.lastIndex=p.global?o.index+o[0].length:n),S&&o&&o.length>1&&i(v,o[0],r,(function(){for(a=1;a<arguments.length-2;a++)void 0===arguments[a]&&(o[a]=void 0)})),o&&j)for(o.groups=s=f(null),a=0;a<j.length;a++)s[(l=j[a])[0]]=o[l[1]];return o}),e.exports=m},67066:function(e,t,r){"use strict";var n=r(19670);e.exports=function(){var e=n(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},34706:function(e,t,r){var n=r(46916),o=r(92597),i=r(47976),a=r(67066),u=RegExp.prototype;e.exports=function(e){var t=e.flags;return void 0!==t||"flags"in u||o(e,"flags")||!i(u,e)?t:n(a,e)}},52999:function(e,t,r){var n=r(47293),o=r(17854).RegExp,i=n((function(){var e=o("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),a=i||n((function(){return!o("a","y").sticky})),u=i||n((function(){var e=o("^r","gy");return e.lastIndex=2,null!=e.exec("str")}));e.exports={BROKEN_CARET:u,MISSED_STICKY:a,UNSUPPORTED_Y:i}},9441:function(e,t,r){var n=r(47293),o=r(17854).RegExp;e.exports=n((function(){var e=o(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)}))},38173:function(e,t,r){var n=r(47293),o=r(17854).RegExp;e.exports=n((function(){var e=o("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}))},84488:function(e,t,r){var n=r(68554),o=TypeError;e.exports=function(e){if(n(e))throw o("Can't call method on "+e);return e}},96340:function(e,t,r){"use strict";var n=r(35005),o=r(3070),i=r(5112),a=r(19781),u=i("species");e.exports=function(e){var t=n(e),r=o.f;a&&t&&!t[u]&&r(t,u,{configurable:!0,get:function(){return this}})}},58003:function(e,t,r){var n=r(3070).f,o=r(92597),i=r(5112)("toStringTag");e.exports=function(e,t,r){e&&!r&&(e=e.prototype),e&&!o(e,i)&&n(e,i,{configurable:!0,value:t})}},6200:function(e,t,r){var n=r(72309),o=r(69711),i=n("keys");e.exports=function(e){return i[e]||(i[e]=o(e))}},5465:function(e,t,r){var n=r(17854),o=r(13072),i="__core-js_shared__",a=n[i]||o(i,{});e.exports=a},72309:function(e,t,r){var n=r(31913),o=r(5465);(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.26.0",mode:n?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.26.0/LICENSE",source:"https://github.com/zloirock/core-js"})},36707:function(e,t,r){var n=r(19670),o=r(39483),i=r(68554),a=r(5112)("species");e.exports=function(e,t){var r,u=n(e).constructor;return void 0===u||i(r=n(u)[a])?t:o(r)}},28710:function(e,t,r){var n=r(1702),o=r(19303),i=r(41340),a=r(84488),u=n("".charAt),c=n("".charCodeAt),s=n("".slice),l=function(e){return function(t,r){var n,l,f=i(a(t)),d=o(r),p=f.length;return d<0||d>=p?e?"":void 0:(n=c(f,d))<55296||n>56319||d+1===p||(l=c(f,d+1))<56320||l>57343?e?u(f,d):n:e?s(f,d,d+2):l-56320+(n-55296<<10)+65536}};e.exports={codeAt:l(!1),charAt:l(!0)}},54986:function(e,t,r){var n=r(88113);e.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(n)},76650:function(e,t,r){var n=r(1702),o=r(17466),i=r(41340),a=r(38415),u=r(84488),c=n(a),s=n("".slice),l=Math.ceil,f=function(e){return function(t,r,n){var a,f,d=i(u(t)),p=o(r),h=d.length,v=void 0===n?" ":i(n);return p<=h||""==v?d:((f=c(v,l((a=p-h)/v.length))).length>a&&(f=s(f,0,a)),e?d+f:f+d)}};e.exports={start:f(!1),end:f(!0)}},33197:function(e,t,r){"use strict";var n=r(1702),o=2147483647,i=/[^\0-\u007E]/,a=/[.\u3002\uFF0E\uFF61]/g,u="Overflow: input needs wider integers to process",c=RangeError,s=n(a.exec),l=Math.floor,f=String.fromCharCode,d=n("".charCodeAt),p=n([].join),h=n([].push),v=n("".replace),y=n("".split),m=n("".toLowerCase),g=function(e){return e+22+75*(e<26)},b=function(e,t,r){var n=0;for(e=r?l(e/700):e>>1,e+=l(e/t);e>455;)e=l(e/35),n+=36;return l(n+36*e/(e+38))},w=function(e){var t=[];e=function(e){for(var t=[],r=0,n=e.length;r<n;){var o=d(e,r++);if(o>=55296&&o<=56319&&r<n){var i=d(e,r++);56320==(64512&i)?h(t,((1023&o)<<10)+(1023&i)+65536):(h(t,o),r--)}else h(t,o)}return t}(e);var r,n,i=e.length,a=128,s=0,v=72;for(r=0;r<e.length;r++)(n=e[r])<128&&h(t,f(n));var y=t.length,m=y;for(y&&h(t,"-");m<i;){var w=o;for(r=0;r<e.length;r++)(n=e[r])>=a&&n<w&&(w=n);var E=m+1;if(w-a>l((o-s)/E))throw c(u);for(s+=(w-a)*E,a=w,r=0;r<e.length;r++){if((n=e[r])<a&&++s>o)throw c(u);if(n==a){for(var _=s,O=36;;){var S=O<=v?1:O>=v+26?26:O-v;if(_<S)break;var x=_-S,k=36-S;h(t,f(g(S+x%k))),_=l(x/k),O+=36}h(t,f(g(_))),v=b(s,E,m==y),s=0,m++}}s++,a++}return p(t,"")};e.exports=function(e){var t,r,n=[],o=y(v(m(e),a,"."),".");for(t=0;t<o.length;t++)r=o[t],h(n,s(i,r)?"xn--"+w(r):r);return p(n,".")}},38415:function(e,t,r){"use strict";var n=r(19303),o=r(41340),i=r(84488),a=RangeError;e.exports=function(e){var t=o(i(this)),r="",u=n(e);if(u<0||u==1/0)throw a("Wrong number of repetitions");for(;u>0;(u>>>=1)&&(t+=t))1&u&&(r+=t);return r}},76091:function(e,t,r){var n=r(76530).PROPER,o=r(47293),i=r(81361);e.exports=function(e){return o((function(){return!!i[e]()||"
"!=="
"[e]()||n&&i[e].name!==e}))}},53111:function(e,t,r){var n=r(1702),o=r(84488),i=r(41340),a=r(81361),u=n("".replace),c="["+a+"]",s=RegExp("^"+c+c+"*"),l=RegExp(c+c+"*$"),f=function(e){return function(t){var r=i(o(t));return 1&e&&(r=u(r,s,"")),2&e&&(r=u(r,l,"")),r}};e.exports={start:f(1),end:f(2),trim:f(3)}},36293:function(e,t,r){var n=r(7392),o=r(47293);e.exports=!!Object.getOwnPropertySymbols&&!o((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},56532:function(e,t,r){var n=r(46916),o=r(35005),i=r(5112),a=r(98052);e.exports=function(){var e=o("Symbol"),t=e&&e.prototype,r=t&&t.valueOf,u=i("toPrimitive");t&&!t[u]&&a(t,u,(function(e){return n(r,this)}),{arity:1})}},2015:function(e,t,r){var n=r(36293);e.exports=n&&!!Symbol.for&&!!Symbol.keyFor},50863:function(e,t,r){var n=r(1702);e.exports=n(1..valueOf)},51400:function(e,t,r){var n=r(19303),o=Math.max,i=Math.min;e.exports=function(e,t){var r=n(e);return r<0?o(r+t,0):i(r,t)}},64599:function(e,t,r){var n=r(57593),o=TypeError;e.exports=function(e){var t=n(e,"number");if("number"==typeof t)throw o("Can't convert number to bigint");return BigInt(t)}},57067:function(e,t,r){var n=r(19303),o=r(17466),i=RangeError;e.exports=function(e){if(void 0===e)return 0;var t=n(e),r=o(t);if(t!==r)throw i("Wrong length or index");return r}},45656:function(e,t,r){var n=r(68361),o=r(84488);e.exports=function(e){return n(o(e))}},19303:function(e,t,r){var n=r(74758);e.exports=function(e){var t=+e;return t!=t||0===t?0:n(t)}},17466:function(e,t,r){var n=r(19303),o=Math.min;e.exports=function(e){return e>0?o(n(e),9007199254740991):0}},47908:function(e,t,r){var n=r(84488),o=Object;e.exports=function(e){return o(n(e))}},84590:function(e,t,r){var n=r(73002),o=RangeError;e.exports=function(e,t){var r=n(e);if(r%t)throw o("Wrong offset");return r}},73002:function(e,t,r){var n=r(19303),o=RangeError;e.exports=function(e){var t=n(e);if(t<0)throw o("The argument can't be less than 0");return t}},57593:function(e,t,r){var n=r(46916),o=r(70111),i=r(52190),a=r(58173),u=r(92140),c=r(5112),s=TypeError,l=c("toPrimitive");e.exports=function(e,t){if(!o(e)||i(e))return e;var r,c=a(e,l);if(c){if(void 0===t&&(t="default"),r=n(c,e,t),!o(r)||i(r))return r;throw s("Can't convert object to primitive value")}return void 0===t&&(t="number"),u(e,t)}},34948:function(e,t,r){var n=r(57593),o=r(52190);e.exports=function(e){var t=n(e,"string");return o(t)?t:t+""}},51694:function(e,t,r){var n={};n[r(5112)("toStringTag")]="z",e.exports="[object z]"===String(n)},41340:function(e,t,r){var n=r(70648),o=String;e.exports=function(e){if("Symbol"===n(e))throw TypeError("Cannot convert a Symbol value to a string");return o(e)}},66330:function(e){var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},19843:function(e,t,r){"use strict";var n=r(82109),o=r(17854),i=r(46916),a=r(19781),u=r(63832),c=r(90260),s=r(13331),l=r(25787),f=r(79114),d=r(68880),p=r(55988),h=r(17466),v=r(57067),y=r(84590),m=r(34948),g=r(92597),b=r(70648),w=r(70111),E=r(52190),_=r(70030),O=r(47976),S=r(27674),x=r(8006).f,k=r(97321),j=r(42092).forEach,T=r(96340),P=r(3070),L=r(31236),I=r(29909),A=r(79587),C=I.get,M=I.set,N=I.enforce,R=P.f,D=L.f,F=Math.round,U=o.RangeError,W=s.ArrayBuffer,z=W.prototype,B=s.DataView,G=c.NATIVE_ARRAY_BUFFER_VIEWS,V=c.TYPED_ARRAY_TAG,Y=c.TypedArray,H=c.TypedArrayPrototype,K=c.aTypedArrayConstructor,q=c.isTypedArray,$="BYTES_PER_ELEMENT",X="Wrong length",Q=function(e,t){K(e);for(var r=0,n=t.length,o=new e(n);n>r;)o[r]=t[r++];return o},J=function(e,t){R(e,t,{get:function(){return C(this)[t]}})},Z=function(e){var t;return O(z,e)||"ArrayBuffer"==(t=b(e))||"SharedArrayBuffer"==t},ee=function(e,t){return q(e)&&!E(t)&&t in e&&p(+t)&&t>=0},te=function(e,t){return t=m(t),ee(e,t)?f(2,e[t]):D(e,t)},re=function(e,t,r){return t=m(t),!(ee(e,t)&&w(r)&&g(r,"value"))||g(r,"get")||g(r,"set")||r.configurable||g(r,"writable")&&!r.writable||g(r,"enumerable")&&!r.enumerable?R(e,t,r):(e[t]=r.value,e)};a?(G||(L.f=te,P.f=re,J(H,"buffer"),J(H,"byteOffset"),J(H,"byteLength"),J(H,"length")),n({target:"Object",stat:!0,forced:!G},{getOwnPropertyDescriptor:te,defineProperty:re}),e.exports=function(e,t,r){var a=e.match(/\d+$/)[0]/8,c=e+(r?"Clamped":"")+"Array",s="get"+e,f="set"+e,p=o[c],m=p,g=m&&m.prototype,b={},E=function(e,t){R(e,t,{get:function(){return function(e,t){var r=C(e);return r.view[s](t*a+r.byteOffset,!0)}(this,t)},set:function(e){return function(e,t,n){var o=C(e);r&&(n=(n=F(n))<0?0:n>255?255:255&n),o.view[f](t*a+o.byteOffset,n,!0)}(this,t,e)},enumerable:!0})};G?u&&(m=t((function(e,t,r,n){return l(e,g),A(w(t)?Z(t)?void 0!==n?new p(t,y(r,a),n):void 0!==r?new p(t,y(r,a)):new p(t):q(t)?Q(m,t):i(k,m,t):new p(v(t)),e,m)})),S&&S(m,Y),j(x(p),(function(e){e in m||d(m,e,p[e])})),m.prototype=g):(m=t((function(e,t,r,n){l(e,g);var o,u,c,s=0,f=0;if(w(t)){if(!Z(t))return q(t)?Q(m,t):i(k,m,t);o=t,f=y(r,a);var d=t.byteLength;if(void 0===n){if(d%a)throw U(X);if((u=d-f)<0)throw U(X)}else if((u=h(n)*a)+f>d)throw U(X);c=u/a}else c=v(t),o=new W(u=c*a);for(M(e,{buffer:o,byteOffset:f,byteLength:u,length:c,view:new B(o)});s<c;)E(e,s++)})),S&&S(m,Y),g=m.prototype=_(H)),g.constructor!==m&&d(g,"constructor",m),N(g).TypedArrayConstructor=m,V&&d(g,V,c);var O=m!=p;b[c]=m,n({global:!0,constructor:!0,forced:O,sham:!G},b),$ in m||d(m,$,a),$ in g||d(g,$,a),T(c)}):e.exports=function(){}},63832:function(e,t,r){var n=r(17854),o=r(47293),i=r(17072),a=r(90260).NATIVE_ARRAY_BUFFER_VIEWS,u=n.ArrayBuffer,c=n.Int8Array;e.exports=!a||!o((function(){c(1)}))||!o((function(){new c(-1)}))||!i((function(e){new c,new c(null),new c(1.5),new c(e)}),!0)||o((function(){return 1!==new c(new u(2),1,void 0).length}))},43074:function(e,t,r){var n=r(97745),o=r(66304);e.exports=function(e,t){return n(o(e),t)}},97321:function(e,t,r){var n=r(49974),o=r(46916),i=r(39483),a=r(47908),u=r(26244),c=r(18554),s=r(71246),l=r(97659),f=r(44067),d=r(90260).aTypedArrayConstructor,p=r(64599);e.exports=function(e){var t,r,h,v,y,m,g,b,w=i(this),E=a(e),_=arguments.length,O=_>1?arguments[1]:void 0,S=void 0!==O,x=s(E);if(x&&!l(x))for(b=(g=c(E,x)).next,E=[];!(m=o(b,g)).done;)E.push(m.value);for(S&&_>2&&(O=n(O,arguments[2])),r=u(E),h=new(d(w))(r),v=f(h),t=0;r>t;t++)y=S?O(E[t],t):E[t],h[t]=v?p(y):+y;return h}},66304:function(e,t,r){var n=r(90260),o=r(36707),i=n.aTypedArrayConstructor,a=n.getTypedArrayConstructor;e.exports=function(e){return i(o(e,a(e)))}},69711:function(e,t,r){var n=r(1702),o=0,i=Math.random(),a=n(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++o+i,36)}},85143:function(e,t,r){var n=r(47293),o=r(5112),i=r(31913),a=o("iterator");e.exports=!n((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,r="";return e.pathname="c%20d",t.forEach((function(e,n){t.delete("b"),r+=n+e})),i&&!e.toJSON||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[a]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==r||"x"!==new URL("http://x",void 0).host}))},43307:function(e,t,r){var n=r(36293);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},3353:function(e,t,r){var n=r(19781),o=r(47293);e.exports=n&&o((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},48053:function(e){var t=TypeError;e.exports=function(e,r){if(e<r)throw t("Not enough arguments");return e}},94811:function(e,t,r){var n=r(17854),o=r(60614),i=n.WeakMap;e.exports=o(i)&&/native code/.test(String(i))},26800:function(e,t,r){var n=r(40857),o=r(92597),i=r(6061),a=r(3070).f;e.exports=function(e){var t=n.Symbol||(n.Symbol={});o(t,e)||a(t,e,{value:i.f(e)})}},6061:function(e,t,r){var n=r(5112);t.f=n},5112:function(e,t,r){var n=r(17854),o=r(72309),i=r(92597),a=r(69711),u=r(36293),c=r(43307),s=o("wks"),l=n.Symbol,f=l&&l.for,d=c?l:l&&l.withoutSetter||a;e.exports=function(e){if(!i(s,e)||!u&&"string"!=typeof s[e]){var t="Symbol."+e;u&&i(l,e)?s[e]=l[e]:s[e]=c&&f?f(t):d(t)}return s[e]}},81361:function(e){e.exports="\t\n\v\f\r \u2028\u2029\ufeff"},92222:function(e,t,r){"use strict";var n=r(82109),o=r(47293),i=r(43157),a=r(70111),u=r(47908),c=r(26244),s=r(7207),l=r(86135),f=r(65417),d=r(81194),p=r(5112),h=r(7392),v=p("isConcatSpreadable"),y=h>=51||!o((function(){var e=[];return e[v]=!1,e.concat()[0]!==e})),m=d("concat"),g=function(e){if(!a(e))return!1;var t=e[v];return void 0!==t?!!t:i(e)};n({target:"Array",proto:!0,arity:1,forced:!y||!m},{concat:function(e){var t,r,n,o,i,a=u(this),d=f(a,0),p=0;for(t=-1,n=arguments.length;t<n;t++)if(g(i=-1===t?a:arguments[t]))for(o=c(i),s(p+o),r=0;r<o;r++,p++)r in i&&l(d,p,i[r]);else s(p+1),l(d,p++,i);return d.length=p,d}})},43290:function(e,t,r){var n=r(82109),o=r(21285),i=r(51223);n({target:"Array",proto:!0},{fill:o}),i("fill")},57327:function(e,t,r){"use strict";var n=r(82109),o=r(42092).filter;n({target:"Array",proto:!0,forced:!r(81194)("filter")},{filter:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},69826:function(e,t,r){"use strict";var n=r(82109),o=r(42092).find,i=r(51223),a="find",u=!0;a in[]&&Array(1).find((function(){u=!1})),n({target:"Array",proto:!0,forced:u},{find:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),i(a)},86535:function(e,t,r){"use strict";var n=r(82109),o=r(6790),i=r(19662),a=r(47908),u=r(26244),c=r(65417);n({target:"Array",proto:!0},{flatMap:function(e){var t,r=a(this),n=u(r);return i(e),(t=c(r,0)).length=o(t,r,r,n,0,1,e,arguments.length>1?arguments[1]:void 0),t}})},91038:function(e,t,r){var n=r(82109),o=r(48457);n({target:"Array",stat:!0,forced:!r(17072)((function(e){Array.from(e)}))},{from:o})},26699:function(e,t,r){"use strict";var n=r(82109),o=r(41318).includes,i=r(47293),a=r(51223);n({target:"Array",proto:!0,forced:i((function(){return!Array(1).includes()}))},{includes:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),a("includes")},82772:function(e,t,r){"use strict";var n=r(82109),o=r(1702),i=r(41318).indexOf,a=r(9341),u=o([].indexOf),c=!!u&&1/u([1],1,-0)<0,s=a("indexOf");n({target:"Array",proto:!0,forced:c||!s},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return c?u(this,e,t)||0:i(this,e,t)}})},66992:function(e,t,r){"use strict";var n=r(45656),o=r(51223),i=r(97497),a=r(29909),u=r(3070).f,c=r(51656),s=r(76178),l=r(31913),f=r(19781),d="Array Iterator",p=a.set,h=a.getterFor(d);e.exports=c(Array,"Array",(function(e,t){p(this,{type:d,target:n(e),index:0,kind:t})}),(function(){var e=h(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,s(void 0,!0)):s("keys"==r?n:"values"==r?t[n]:[n,t[n]],!1)}),"values");var v=i.Arguments=i.Array;if(o("keys"),o("values"),o("entries"),!l&&f&&"values"!==v.name)try{u(v,"name",{value:"values"})}catch(e){}},69600:function(e,t,r){"use strict";var n=r(82109),o=r(1702),i=r(68361),a=r(45656),u=r(9341),c=o([].join),s=i!=Object,l=u("join",",");n({target:"Array",proto:!0,forced:s||!l},{join:function(e){return c(a(this),void 0===e?",":e)}})},21249:function(e,t,r){"use strict";var n=r(82109),o=r(42092).map;n({target:"Array",proto:!0,forced:!r(81194)("map")},{map:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},85827:function(e,t,r){"use strict";var n=r(82109),o=r(53671).left,i=r(9341),a=r(7392),u=r(35268);n({target:"Array",proto:!0,forced:!i("reduce")||!u&&a>79&&a<83},{reduce:function(e){var t=arguments.length;return o(this,e,t,t>1?arguments[1]:void 0)}})},47042:function(e,t,r){"use strict";var n=r(82109),o=r(43157),i=r(4411),a=r(70111),u=r(51400),c=r(26244),s=r(45656),l=r(86135),f=r(5112),d=r(81194),p=r(50206),h=d("slice"),v=f("species"),y=Array,m=Math.max;n({target:"Array",proto:!0,forced:!h},{slice:function(e,t){var r,n,f,d=s(this),h=c(d),g=u(e,h),b=u(void 0===t?h:t,h);if(o(d)&&(r=d.constructor,(i(r)&&(r===y||o(r.prototype))||a(r)&&null===(r=r[v]))&&(r=void 0),r===y||void 0===r))return p(d,g,b);for(n=new(void 0===r?y:r)(m(b-g,0)),f=0;g<b;g++,f++)g in d&&l(n,f,d[g]);return n.length=f,n}})},2707:function(e,t,r){"use strict";var n=r(82109),o=r(1702),i=r(19662),a=r(47908),u=r(26244),c=r(85117),s=r(41340),l=r(47293),f=r(94362),d=r(9341),p=r(68886),h=r(30256),v=r(7392),y=r(98008),m=[],g=o(m.sort),b=o(m.push),w=l((function(){m.sort(void 0)})),E=l((function(){m.sort(null)})),_=d("sort"),O=!l((function(){if(v)return v<70;if(!(p&&p>3)){if(h)return!0;if(y)return y<603;var e,t,r,n,o="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:r=3;break;case 68:case 71:r=4;break;default:r=2}for(n=0;n<47;n++)m.push({k:t+n,v:r})}for(m.sort((function(e,t){return t.v-e.v})),n=0;n<m.length;n++)t=m[n].k.charAt(0),o.charAt(o.length-1)!==t&&(o+=t);return"DGBEFHACIJK"!==o}}));n({target:"Array",proto:!0,forced:w||!E||!_||!O},{sort:function(e){void 0!==e&&i(e);var t=a(this);if(O)return void 0===e?g(t):g(t,e);var r,n,o=[],l=u(t);for(n=0;n<l;n++)n in t&&b(o,t[n]);for(f(o,function(e){return function(t,r){return void 0===r?-1:void 0===t?1:void 0!==e?+e(t,r)||0:s(t)>s(r)?1:-1}}(e)),r=u(o),n=0;n<r;)t[n]=o[n++];for(;n<l;)c(t,n++);return t}})},40561:function(e,t,r){"use strict";var n=r(82109),o=r(47908),i=r(51400),a=r(19303),u=r(26244),c=r(83658),s=r(7207),l=r(65417),f=r(86135),d=r(85117),p=r(81194)("splice"),h=Math.max,v=Math.min;n({target:"Array",proto:!0,forced:!p},{splice:function(e,t){var r,n,p,y,m,g,b=o(this),w=u(b),E=i(e,w),_=arguments.length;for(0===_?r=n=0:1===_?(r=0,n=w-E):(r=_-2,n=v(h(a(t),0),w-E)),s(w+r-n),p=l(b,n),y=0;y<n;y++)(m=E+y)in b&&f(p,y,b[m]);if(p.length=n,r<n){for(y=E;y<w-n;y++)g=y+r,(m=y+n)in b?b[g]=b[m]:d(b,g);for(y=w;y>w-n+r;y--)d(b,y-1)}else if(r>n)for(y=w-n;y>E;y--)g=y+r-1,(m=y+n-1)in b?b[g]=b[m]:d(b,g);for(y=0;y<r;y++)b[y+E]=arguments[y+2];return c(b,w-n+r),p}})},99244:function(e,t,r){r(51223)("flatMap")},68309:function(e,t,r){var n=r(19781),o=r(76530).EXISTS,i=r(1702),a=r(3070).f,u=Function.prototype,c=i(u.toString),s=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,l=i(s.exec);n&&!o&&a(u,"name",{configurable:!0,get:function(){try{return l(s,c(this))[1]}catch(e){return""}}})},38862:function(e,t,r){var n=r(82109),o=r(35005),i=r(22104),a=r(46916),u=r(1702),c=r(47293),s=r(43157),l=r(60614),f=r(70111),d=r(52190),p=r(50206),h=r(36293),v=o("JSON","stringify"),y=u(/./.exec),m=u("".charAt),g=u("".charCodeAt),b=u("".replace),w=u(1..toString),E=/[\uD800-\uDFFF]/g,_=/^[\uD800-\uDBFF]$/,O=/^[\uDC00-\uDFFF]$/,S=!h||c((function(){var e=o("Symbol")();return"[null]"!=v([e])||"{}"!=v({a:e})||"{}"!=v(Object(e))})),x=c((function(){return'"\\udf06\\ud834"'!==v("\udf06\ud834")||'"\\udead"'!==v("\udead")})),k=function(e,t){var r=p(arguments),n=t;if((f(t)||void 0!==e)&&!d(e))return s(t)||(t=function(e,t){if(l(n)&&(t=a(n,this,e,t)),!d(t))return t}),r[1]=t,i(v,null,r)},j=function(e,t,r){var n=m(r,t-1),o=m(r,t+1);return y(_,e)&&!y(O,o)||y(O,e)&&!y(_,n)?"\\u"+w(g(e,0),16):e};v&&n({target:"JSON",stat:!0,arity:3,forced:S||x},{stringify:function(e,t,r){var n=p(arguments),o=i(S?k:v,null,n);return x&&"string"==typeof o?b(o,E,j):o}})},73706:function(e,t,r){var n=r(17854);r(58003)(n.JSON,"JSON",!0)},69098:function(e,t,r){"use strict";r(77710)("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),r(95631))},51532:function(e,t,r){r(69098)},10408:function(e,t,r){r(58003)(Math,"Math",!0)},9653:function(e,t,r){"use strict";var n=r(19781),o=r(17854),i=r(1702),a=r(54705),u=r(98052),c=r(92597),s=r(79587),l=r(47976),f=r(52190),d=r(57593),p=r(47293),h=r(8006).f,v=r(31236).f,y=r(3070).f,m=r(50863),g=r(53111).trim,b="Number",w=o.Number,E=w.prototype,_=o.TypeError,O=i("".slice),S=i("".charCodeAt),x=function(e){var t=d(e,"number");return"bigint"==typeof t?t:k(t)},k=function(e){var t,r,n,o,i,a,u,c,s=d(e,"number");if(f(s))throw _("Cannot convert a Symbol value to a number");if("string"==typeof s&&s.length>2)if(s=g(s),43===(t=S(s,0))||45===t){if(88===(r=S(s,2))||120===r)return NaN}else if(48===t){switch(S(s,1)){case 66:case 98:n=2,o=49;break;case 79:case 111:n=8,o=55;break;default:return+s}for(a=(i=O(s,2)).length,u=0;u<a;u++)if((c=S(i,u))<48||c>o)return NaN;return parseInt(i,n)}return+s};if(a(b,!w(" 0o1")||!w("0b1")||w("+0x1"))){for(var j,T=function(e){var t=arguments.length<1?0:w(x(e)),r=this;return l(E,r)&&p((function(){m(r)}))?s(Object(t),r,T):t},P=n?h(w):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),L=0;P.length>L;L++)c(w,j=P[L])&&!c(T,j)&&y(T,j,v(w,j));T.prototype=E,E.constructor=T,u(o,b,T,{constructor:!0})}},19601:function(e,t,r){var n=r(82109),o=r(21574);n({target:"Object",stat:!0,arity:2,forced:Object.assign!==o},{assign:o})},33321:function(e,t,r){var n=r(82109),o=r(19781),i=r(36048).f;n({target:"Object",stat:!0,forced:Object.defineProperties!==i,sham:!o},{defineProperties:i})},69070:function(e,t,r){var n=r(82109),o=r(19781),i=r(3070).f;n({target:"Object",stat:!0,forced:Object.defineProperty!==i,sham:!o},{defineProperty:i})},43371:function(e,t,r){var n=r(82109),o=r(76677),i=r(47293),a=r(70111),u=r(62423).onFreeze,c=Object.freeze;n({target:"Object",stat:!0,forced:i((function(){c(1)})),sham:!o},{freeze:function(e){return c&&a(e)?c(u(e)):e}})},38880:function(e,t,r){var n=r(82109),o=r(47293),i=r(45656),a=r(31236).f,u=r(19781),c=o((function(){a(1)}));n({target:"Object",stat:!0,forced:!u||c,sham:!u},{getOwnPropertyDescriptor:function(e,t){return a(i(e),t)}})},49337:function(e,t,r){var n=r(82109),o=r(19781),i=r(53887),a=r(45656),u=r(31236),c=r(86135);n({target:"Object",stat:!0,sham:!o},{getOwnPropertyDescriptors:function(e){for(var t,r,n=a(e),o=u.f,s=i(n),l={},f=0;s.length>f;)void 0!==(r=o(n,t=s[f++]))&&c(l,t,r);return l}})},36210:function(e,t,r){var n=r(82109),o=r(47293),i=r(1156).f;n({target:"Object",stat:!0,forced:o((function(){return!Object.getOwnPropertyNames(1)}))},{getOwnPropertyNames:i})},29660:function(e,t,r){var n=r(82109),o=r(36293),i=r(47293),a=r(25181),u=r(47908);n({target:"Object",stat:!0,forced:!o||i((function(){a.f(1)}))},{getOwnPropertySymbols:function(e){var t=a.f;return t?t(u(e)):[]}})},30489:function(e,t,r){var n=r(82109),o=r(47293),i=r(47908),a=r(79518),u=r(49920);n({target:"Object",stat:!0,forced:o((function(){a(1)})),sham:!u},{getPrototypeOf:function(e){return a(i(e))}})},47941:function(e,t,r){var n=r(82109),o=r(47908),i=r(81956);n({target:"Object",stat:!0,forced:r(47293)((function(){i(1)}))},{keys:function(e){return i(o(e))}})},68304:function(e,t,r){r(82109)({target:"Object",stat:!0},{setPrototypeOf:r(27674)})},41539:function(e,t,r){var n=r(51694),o=r(98052),i=r(90288);n||o(Object.prototype,"toString",i,{unsafe:!0})},26833:function(e,t,r){var n=r(82109),o=r(44699).values;n({target:"Object",stat:!0},{values:function(e){return o(e)}})},91058:function(e,t,r){var n=r(82109),o=r(83009);n({global:!0,forced:parseInt!=o},{parseInt:o})},12419:function(e,t,r){var n=r(82109),o=r(35005),i=r(22104),a=r(27065),u=r(39483),c=r(19670),s=r(70111),l=r(70030),f=r(47293),d=o("Reflect","construct"),p=Object.prototype,h=[].push,v=f((function(){function e(){}return!(d((function(){}),[],e)instanceof e)})),y=!f((function(){d((function(){}))})),m=v||y;n({target:"Reflect",stat:!0,forced:m,sham:m},{construct:function(e,t){u(e),c(t);var r=arguments.length<3?e:u(arguments[2]);if(y&&!v)return d(e,t,r);if(e==r){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var n=[null];return i(h,n,t),new(i(a,e,n))}var o=r.prototype,f=l(s(o)?o:p),m=i(e,f,t);return s(m)?m:f}})},74819:function(e,t,r){var n=r(82109),o=r(46916),i=r(70111),a=r(19670),u=r(45032),c=r(31236),s=r(79518);n({target:"Reflect",stat:!0},{get:function e(t,r){var n,l,f=arguments.length<3?t:arguments[2];return a(t)===f?t[r]:(n=c.f(t,r))?u(n)?n.value:void 0===n.get?void 0:o(n.get,f):i(l=s(t))?e(l,r,f):void 0}})},24603:function(e,t,r){var n=r(19781),o=r(17854),i=r(1702),a=r(54705),u=r(79587),c=r(68880),s=r(8006).f,l=r(47976),f=r(47850),d=r(41340),p=r(34706),h=r(52999),v=r(2626),y=r(98052),m=r(47293),g=r(92597),b=r(29909).enforce,w=r(96340),E=r(5112),_=r(9441),O=r(38173),S=E("match"),x=o.RegExp,k=x.prototype,j=o.SyntaxError,T=i(k.exec),P=i("".charAt),L=i("".replace),I=i("".indexOf),A=i("".slice),C=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,M=/a/g,N=/a/g,R=new x(M)!==M,D=h.MISSED_STICKY,F=h.UNSUPPORTED_Y;if(a("RegExp",n&&(!R||D||_||O||m((function(){return N[S]=!1,x(M)!=M||x(N)==N||"/a/i"!=x(M,"i")}))))){for(var U=function(e,t){var r,n,o,i,a,s,h=l(k,this),v=f(e),y=void 0===t,m=[],w=e;if(!h&&v&&y&&e.constructor===U)return e;if((v||l(k,e))&&(e=e.source,y&&(t=p(w))),e=void 0===e?"":d(e),t=void 0===t?"":d(t),w=e,_&&"dotAll"in M&&(n=!!t&&I(t,"s")>-1)&&(t=L(t,/s/g,"")),r=t,D&&"sticky"in M&&(o=!!t&&I(t,"y")>-1)&&F&&(t=L(t,/y/g,"")),O&&(i=function(e){for(var t,r=e.length,n=0,o="",i=[],a={},u=!1,c=!1,s=0,l="";n<=r;n++){if("\\"===(t=P(e,n)))t+=P(e,++n);else if("]"===t)u=!1;else if(!u)switch(!0){case"["===t:u=!0;break;case"("===t:T(C,A(e,n+1))&&(n+=2,c=!0),o+=t,s++;continue;case">"===t&&c:if(""===l||g(a,l))throw new j("Invalid capture group name");a[l]=!0,i[i.length]=[l,s],c=!1,l="";continue}c?l+=t:o+=t}return[o,i]}(e),e=i[0],m=i[1]),a=u(x(e,t),h?this:k,U),(n||o||m.length)&&(s=b(a),n&&(s.dotAll=!0,s.raw=U(function(e){for(var t,r=e.length,n=0,o="",i=!1;n<=r;n++)"\\"!==(t=P(e,n))?i||"."!==t?("["===t?i=!0:"]"===t&&(i=!1),o+=t):o+="[\\s\\S]":o+=t+P(e,++n);return o}(e),r)),o&&(s.sticky=!0),m.length&&(s.groups=m)),e!==w)try{c(a,"source",""===w?"(?:)":w)}catch(e){}return a},W=s(x),z=0;W.length>z;)v(U,x,W[z++]);k.constructor=U,U.prototype=k,y(o,"RegExp",U,{constructor:!0})}w("RegExp")},74916:function(e,t,r){"use strict";var n=r(82109),o=r(22261);n({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},39714:function(e,t,r){"use strict";var n=r(76530).PROPER,o=r(98052),i=r(19670),a=r(41340),u=r(47293),c=r(34706),s="toString",l=RegExp.prototype.toString,f=u((function(){return"/a/b"!=l.call({source:"a",flags:"b"})})),d=n&&l.name!=s;(f||d)&&o(RegExp.prototype,s,(function(){var e=i(this);return"/"+a(e.source)+"/"+a(c(e))}),{unsafe:!0})},37227:function(e,t,r){"use strict";r(77710)("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),r(95631))},70189:function(e,t,r){r(37227)},32023:function(e,t,r){"use strict";var n=r(82109),o=r(1702),i=r(3929),a=r(84488),u=r(41340),c=r(84964),s=o("".indexOf);n({target:"String",proto:!0,forced:!c("includes")},{includes:function(e){return!!~s(u(a(this)),u(i(e)),arguments.length>1?arguments[1]:void 0)}})},78783:function(e,t,r){"use strict";var n=r(28710).charAt,o=r(41340),i=r(29909),a=r(51656),u=r(76178),c="String Iterator",s=i.set,l=i.getterFor(c);a(String,"String",(function(e){s(this,{type:c,string:o(e),index:0})}),(function(){var e,t=l(this),r=t.string,o=t.index;return o>=r.length?u(void 0,!0):(e=n(r,o),t.index+=e.length,u(e,!1))}))},4723:function(e,t,r){"use strict";var n=r(46916),o=r(27007),i=r(19670),a=r(68554),u=r(17466),c=r(41340),s=r(84488),l=r(58173),f=r(31530),d=r(97651);o("match",(function(e,t,r){return[function(t){var r=s(this),o=a(t)?void 0:l(t,e);return o?n(o,t,r):new RegExp(t)[e](c(r))},function(e){var n=i(this),o=c(e),a=r(t,n,o);if(a.done)return a.value;if(!n.global)return d(n,o);var s=n.unicode;n.lastIndex=0;for(var l,p=[],h=0;null!==(l=d(n,o));){var v=c(l[0]);p[h]=v,""===v&&(n.lastIndex=f(o,u(n.lastIndex),s)),h++}return 0===h?null:p}]}))},83112:function(e,t,r){"use strict";var n=r(82109),o=r(76650).start;n({target:"String",proto:!0,forced:r(54986)},{padStart:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},15306:function(e,t,r){"use strict";var n=r(22104),o=r(46916),i=r(1702),a=r(27007),u=r(47293),c=r(19670),s=r(60614),l=r(68554),f=r(19303),d=r(17466),p=r(41340),h=r(84488),v=r(31530),y=r(58173),m=r(10647),g=r(97651),b=r(5112)("replace"),w=Math.max,E=Math.min,_=i([].concat),O=i([].push),S=i("".indexOf),x=i("".slice),k="$0"==="a".replace(/./,"$0"),j=!!/./[b]&&""===/./[b]("a","$0");a("replace",(function(e,t,r){var i=j?"$":"$0";return[function(e,r){var n=h(this),i=l(e)?void 0:y(e,b);return i?o(i,e,n,r):o(t,p(n),e,r)},function(e,o){var a=c(this),u=p(e);if("string"==typeof o&&-1===S(o,i)&&-1===S(o,"$<")){var l=r(t,a,u,o);if(l.done)return l.value}var h=s(o);h||(o=p(o));var y=a.global;if(y){var b=a.unicode;a.lastIndex=0}for(var k=[];;){var j=g(a,u);if(null===j)break;if(O(k,j),!y)break;""===p(j[0])&&(a.lastIndex=v(u,d(a.lastIndex),b))}for(var T,P="",L=0,I=0;I<k.length;I++){for(var A=p((j=k[I])[0]),C=w(E(f(j.index),u.length),0),M=[],N=1;N<j.length;N++)O(M,void 0===(T=j[N])?T:String(T));var R=j.groups;if(h){var D=_([A],M,C,u);void 0!==R&&O(D,R);var F=p(n(o,void 0,D))}else F=m(A,u,C,M,R,o);C>=L&&(P+=x(u,L,C)+F,L=C+A.length)}return P+x(u,L)}]}),!!u((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!k||j)},23123:function(e,t,r){"use strict";var n=r(22104),o=r(46916),i=r(1702),a=r(27007),u=r(19670),c=r(68554),s=r(47850),l=r(84488),f=r(36707),d=r(31530),p=r(17466),h=r(41340),v=r(58173),y=r(41589),m=r(97651),g=r(22261),b=r(52999),w=r(47293),E=b.UNSUPPORTED_Y,_=4294967295,O=Math.min,S=[].push,x=i(/./.exec),k=i(S),j=i("".slice),T=!w((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var r="ab".split(e);return 2!==r.length||"a"!==r[0]||"b"!==r[1]}));a("split",(function(e,t,r){var i;return i="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,r){var i=h(l(this)),a=void 0===r?_:r>>>0;if(0===a)return[];if(void 0===e)return[i];if(!s(e))return o(t,i,e,a);for(var u,c,f,d=[],p=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),v=0,m=new RegExp(e.source,p+"g");(u=o(g,m,i))&&!((c=m.lastIndex)>v&&(k(d,j(i,v,u.index)),u.length>1&&u.index<i.length&&n(S,d,y(u,1)),f=u[0].length,v=c,d.length>=a));)m.lastIndex===u.index&&m.lastIndex++;return v===i.length?!f&&x(m,"")||k(d,""):k(d,j(i,v)),d.length>a?y(d,0,a):d}:"0".split(void 0,0).length?function(e,r){return void 0===e&&0===r?[]:o(t,this,e,r)}:t,[function(t,r){var n=l(this),a=c(t)?void 0:v(t,e);return a?o(a,t,n,r):o(i,h(n),t,r)},function(e,n){var o=u(this),a=h(e),c=r(i,o,a,n,i!==t);if(c.done)return c.value;var s=f(o,RegExp),l=o.unicode,v=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(E?"g":"y"),y=new s(E?"^(?:"+o.source+")":o,v),g=void 0===n?_:n>>>0;if(0===g)return[];if(0===a.length)return null===m(y,a)?[a]:[];for(var b=0,w=0,S=[];w<a.length;){y.lastIndex=E?0:w;var x,T=m(y,E?j(a,w):a);if(null===T||(x=O(p(y.lastIndex+(E?w:0)),a.length))===b)w=d(a,w,l);else{if(k(S,j(a,b,w)),S.length===g)return S;for(var P=1;P<=T.length-1;P++)if(k(S,T[P]),S.length===g)return S;w=b=x}}return k(S,j(a,b)),S}]}),!T,E)},73210:function(e,t,r){"use strict";var n=r(82109),o=r(53111).trim;n({target:"String",proto:!0,forced:r(76091)("trim")},{trim:function(){return o(this)}})},72443:function(e,t,r){r(26800)("asyncIterator")},4032:function(e,t,r){"use strict";var n=r(82109),o=r(17854),i=r(46916),a=r(1702),u=r(31913),c=r(19781),s=r(36293),l=r(47293),f=r(92597),d=r(47976),p=r(19670),h=r(45656),v=r(34948),y=r(41340),m=r(79114),g=r(70030),b=r(81956),w=r(8006),E=r(1156),_=r(25181),O=r(31236),S=r(3070),x=r(36048),k=r(55296),j=r(98052),T=r(72309),P=r(6200),L=r(3501),I=r(69711),A=r(5112),C=r(6061),M=r(26800),N=r(56532),R=r(58003),D=r(29909),F=r(42092).forEach,U=P("hidden"),W="Symbol",z=D.set,B=D.getterFor(W),G=Object.prototype,V=o.Symbol,Y=V&&V.prototype,H=o.TypeError,K=o.QObject,q=O.f,$=S.f,X=E.f,Q=k.f,J=a([].push),Z=T("symbols"),ee=T("op-symbols"),te=T("wks"),re=!K||!K.prototype||!K.prototype.findChild,ne=c&&l((function(){return 7!=g($({},"a",{get:function(){return $(this,"a",{value:7}).a}})).a}))?function(e,t,r){var n=q(G,t);n&&delete G[t],$(e,t,r),n&&e!==G&&$(G,t,n)}:$,oe=function(e,t){var r=Z[e]=g(Y);return z(r,{type:W,tag:e,description:t}),c||(r.description=t),r},ie=function(e,t,r){e===G&&ie(ee,t,r),p(e);var n=v(t);return p(r),f(Z,n)?(r.enumerable?(f(e,U)&&e[U][n]&&(e[U][n]=!1),r=g(r,{enumerable:m(0,!1)})):(f(e,U)||$(e,U,m(1,{})),e[U][n]=!0),ne(e,n,r)):$(e,n,r)},ae=function(e,t){p(e);var r=h(t),n=b(r).concat(le(r));return F(n,(function(t){c&&!i(ue,r,t)||ie(e,t,r[t])})),e},ue=function(e){var t=v(e),r=i(Q,this,t);return!(this===G&&f(Z,t)&&!f(ee,t))&&(!(r||!f(this,t)||!f(Z,t)||f(this,U)&&this[U][t])||r)},ce=function(e,t){var r=h(e),n=v(t);if(r!==G||!f(Z,n)||f(ee,n)){var o=q(r,n);return!o||!f(Z,n)||f(r,U)&&r[U][n]||(o.enumerable=!0),o}},se=function(e){var t=X(h(e)),r=[];return F(t,(function(e){f(Z,e)||f(L,e)||J(r,e)})),r},le=function(e){var t=e===G,r=X(t?ee:h(e)),n=[];return F(r,(function(e){!f(Z,e)||t&&!f(G,e)||J(n,Z[e])})),n};s||(V=function(){if(d(Y,this))throw H("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?y(arguments[0]):void 0,t=I(e),r=function(e){this===G&&i(r,ee,e),f(this,U)&&f(this[U],t)&&(this[U][t]=!1),ne(this,t,m(1,e))};return c&&re&&ne(G,t,{configurable:!0,set:r}),oe(t,e)},j(Y=V.prototype,"toString",(function(){return B(this).tag})),j(V,"withoutSetter",(function(e){return oe(I(e),e)})),k.f=ue,S.f=ie,x.f=ae,O.f=ce,w.f=E.f=se,_.f=le,C.f=function(e){return oe(A(e),e)},c&&($(Y,"description",{configurable:!0,get:function(){return B(this).description}}),u||j(G,"propertyIsEnumerable",ue,{unsafe:!0}))),n({global:!0,constructor:!0,wrap:!0,forced:!s,sham:!s},{Symbol:V}),F(b(te),(function(e){M(e)})),n({target:W,stat:!0,forced:!s},{useSetter:function(){re=!0},useSimple:function(){re=!1}}),n({target:"Object",stat:!0,forced:!s,sham:!c},{create:function(e,t){return void 0===t?g(e):ae(g(e),t)},defineProperty:ie,defineProperties:ae,getOwnPropertyDescriptor:ce}),n({target:"Object",stat:!0,forced:!s},{getOwnPropertyNames:se}),N(),R(V,W),L[U]=!0},41817:function(e,t,r){"use strict";var n=r(82109),o=r(19781),i=r(17854),a=r(1702),u=r(92597),c=r(60614),s=r(47976),l=r(41340),f=r(3070).f,d=r(99920),p=i.Symbol,h=p&&p.prototype;if(o&&c(p)&&(!("description"in h)||void 0!==p().description)){var v={},y=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:l(arguments[0]),t=s(h,this)?new p(e):void 0===e?p():p(e);return""===e&&(v[t]=!0),t};d(y,p),y.prototype=h,h.constructor=y;var m="Symbol(test)"==String(p("test")),g=a(h.valueOf),b=a(h.toString),w=/^Symbol\((.*)\)[^)]+$/,E=a("".replace),_=a("".slice);f(h,"description",{configurable:!0,get:function(){var e=g(this);if(u(v,e))return"";var t=b(e),r=m?_(t,7,-1):E(t,w,"$1");return""===r?void 0:r}}),n({global:!0,constructor:!0,forced:!0},{Symbol:y})}},40763:function(e,t,r){var n=r(82109),o=r(35005),i=r(92597),a=r(41340),u=r(72309),c=r(2015),s=u("string-to-symbol-registry"),l=u("symbol-to-string-registry");n({target:"Symbol",stat:!0,forced:!c},{for:function(e){var t=a(e);if(i(s,t))return s[t];var r=o("Symbol")(t);return s[t]=r,l[r]=t,r}})},32165:function(e,t,r){r(26800)("iterator")},82526:function(e,t,r){r(4032),r(40763),r(26620),r(38862),r(29660)},26620:function(e,t,r){var n=r(82109),o=r(92597),i=r(52190),a=r(66330),u=r(72309),c=r(2015),s=u("symbol-to-string-registry");n({target:"Symbol",stat:!0,forced:!c},{keyFor:function(e){if(!i(e))throw TypeError(a(e)+" is not a symbol");if(o(s,e))return s[e]}})},39341:function(e,t,r){var n=r(35005),o=r(26800),i=r(58003);o("toStringTag"),i(n("Symbol"),"Symbol")},92990:function(e,t,r){"use strict";var n=r(1702),o=r(90260),i=n(r(1048)),a=o.aTypedArray;(0,o.exportTypedArrayMethod)("copyWithin",(function(e,t){return i(a(this),e,t,arguments.length>2?arguments[2]:void 0)}))},18927:function(e,t,r){"use strict";var n=r(90260),o=r(42092).every,i=n.aTypedArray;(0,n.exportTypedArrayMethod)("every",(function(e){return o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},33105:function(e,t,r){"use strict";var n=r(90260),o=r(21285),i=r(64599),a=r(70648),u=r(46916),c=r(1702),s=r(47293),l=n.aTypedArray,f=n.exportTypedArrayMethod,d=c("".slice);f("fill",(function(e){var t=arguments.length;l(this);var r="Big"===d(a(this),0,3)?i(e):+e;return u(o,this,r,t>1?arguments[1]:void 0,t>2?arguments[2]:void 0)}),s((function(){var e=0;return new Int8Array(2).fill({valueOf:function(){return e++}}),1!==e})))},35035:function(e,t,r){"use strict";var n=r(90260),o=r(42092).filter,i=r(43074),a=n.aTypedArray;(0,n.exportTypedArrayMethod)("filter",(function(e){var t=o(a(this),e,arguments.length>1?arguments[1]:void 0);return i(this,t)}))},7174:function(e,t,r){"use strict";var n=r(90260),o=r(42092).findIndex,i=n.aTypedArray;(0,n.exportTypedArrayMethod)("findIndex",(function(e){return o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},74345:function(e,t,r){"use strict";var n=r(90260),o=r(42092).find,i=n.aTypedArray;(0,n.exportTypedArrayMethod)("find",(function(e){return o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},32846:function(e,t,r){"use strict";var n=r(90260),o=r(42092).forEach,i=n.aTypedArray;(0,n.exportTypedArrayMethod)("forEach",(function(e){o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},44731:function(e,t,r){"use strict";var n=r(90260),o=r(41318).includes,i=n.aTypedArray;(0,n.exportTypedArrayMethod)("includes",(function(e){return o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},77209:function(e,t,r){"use strict";var n=r(90260),o=r(41318).indexOf,i=n.aTypedArray;(0,n.exportTypedArrayMethod)("indexOf",(function(e){return o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},96319:function(e,t,r){"use strict";var n=r(17854),o=r(47293),i=r(1702),a=r(90260),u=r(66992),c=r(5112)("iterator"),s=n.Uint8Array,l=i(u.values),f=i(u.keys),d=i(u.entries),p=a.aTypedArray,h=a.exportTypedArrayMethod,v=s&&s.prototype,y=!o((function(){v[c].call([1])})),m=!!v&&v.values&&v[c]===v.values&&"values"===v.values.name,g=function(){return l(p(this))};h("entries",(function(){return d(p(this))}),y),h("keys",(function(){return f(p(this))}),y),h("values",g,y||!m,{name:"values"}),h(c,g,y||!m,{name:"values"})},58867:function(e,t,r){"use strict";var n=r(90260),o=r(1702),i=n.aTypedArray,a=n.exportTypedArrayMethod,u=o([].join);a("join",(function(e){return u(i(this),e)}))},37789:function(e,t,r){"use strict";var n=r(90260),o=r(22104),i=r(86583),a=n.aTypedArray;(0,n.exportTypedArrayMethod)("lastIndexOf",(function(e){var t=arguments.length;return o(i,a(this),t>1?[e,arguments[1]]:[e])}))},33739:function(e,t,r){"use strict";var n=r(90260),o=r(42092).map,i=r(66304),a=n.aTypedArray;(0,n.exportTypedArrayMethod)("map",(function(e){return o(a(this),e,arguments.length>1?arguments[1]:void 0,(function(e,t){return new(i(e))(t)}))}))},14483:function(e,t,r){"use strict";var n=r(90260),o=r(53671).right,i=n.aTypedArray;(0,n.exportTypedArrayMethod)("reduceRight",(function(e){var t=arguments.length;return o(i(this),e,t,t>1?arguments[1]:void 0)}))},29368:function(e,t,r){"use strict";var n=r(90260),o=r(53671).left,i=n.aTypedArray;(0,n.exportTypedArrayMethod)("reduce",(function(e){var t=arguments.length;return o(i(this),e,t,t>1?arguments[1]:void 0)}))},12056:function(e,t,r){"use strict";var n=r(90260),o=n.aTypedArray,i=n.exportTypedArrayMethod,a=Math.floor;i("reverse",(function(){for(var e,t=this,r=o(t).length,n=a(r/2),i=0;i<n;)e=t[i],t[i++]=t[--r],t[r]=e;return t}))},3462:function(e,t,r){"use strict";var n=r(17854),o=r(46916),i=r(90260),a=r(26244),u=r(84590),c=r(47908),s=r(47293),l=n.RangeError,f=n.Int8Array,d=f&&f.prototype,p=d&&d.set,h=i.aTypedArray,v=i.exportTypedArrayMethod,y=!s((function(){var e=new Uint8ClampedArray(2);return o(p,e,{length:1,0:3},1),3!==e[1]})),m=y&&i.NATIVE_ARRAY_BUFFER_VIEWS&&s((function(){var e=new f(2);return e.set(1),e.set("2",1),0!==e[0]||2!==e[1]}));v("set",(function(e){h(this);var t=u(arguments.length>1?arguments[1]:void 0,1),r=c(e);if(y)return o(p,this,r,t);var n=this.length,i=a(r),s=0;if(i+t>n)throw l("Wrong length");for(;s<i;)this[t+s]=r[s++]}),!y||m)},30678:function(e,t,r){"use strict";var n=r(90260),o=r(66304),i=r(47293),a=r(50206),u=n.aTypedArray;(0,n.exportTypedArrayMethod)("slice",(function(e,t){for(var r=a(u(this),e,t),n=o(this),i=0,c=r.length,s=new n(c);c>i;)s[i]=r[i++];return s}),i((function(){new Int8Array(1).slice()})))},27462:function(e,t,r){"use strict";var n=r(90260),o=r(42092).some,i=n.aTypedArray;(0,n.exportTypedArrayMethod)("some",(function(e){return o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},33824:function(e,t,r){"use strict";var n=r(17854),o=r(1702),i=r(47293),a=r(19662),u=r(94362),c=r(90260),s=r(68886),l=r(30256),f=r(7392),d=r(98008),p=c.aTypedArray,h=c.exportTypedArrayMethod,v=n.Uint16Array,y=v&&o(v.prototype.sort),m=!(!y||i((function(){y(new v(2),null)}))&&i((function(){y(new v(2),{})}))),g=!!y&&!i((function(){if(f)return f<74;if(s)return s<67;if(l)return!0;if(d)return d<602;var e,t,r=new v(516),n=Array(516);for(e=0;e<516;e++)t=e%4,r[e]=515-e,n[e]=e-2*t+3;for(y(r,(function(e,t){return(e/4|0)-(t/4|0)})),e=0;e<516;e++)if(r[e]!==n[e])return!0}));h("sort",(function(e){return void 0!==e&&a(e),g?y(this,e):u(p(this),function(e){return function(t,r){return void 0!==e?+e(t,r)||0:r!=r?-1:t!=t?1:0===t&&0===r?1/t>0&&1/r<0?1:-1:t>r}}(e))}),!g||m)},55021:function(e,t,r){"use strict";var n=r(90260),o=r(17466),i=r(51400),a=r(66304),u=n.aTypedArray;(0,n.exportTypedArrayMethod)("subarray",(function(e,t){var r=u(this),n=r.length,c=i(e,n);return new(a(r))(r.buffer,r.byteOffset+c*r.BYTES_PER_ELEMENT,o((void 0===t?n:i(t,n))-c))}))},12974:function(e,t,r){"use strict";var n=r(17854),o=r(22104),i=r(90260),a=r(47293),u=r(50206),c=n.Int8Array,s=i.aTypedArray,l=i.exportTypedArrayMethod,f=[].toLocaleString,d=!!c&&a((function(){f.call(new c(1))}));l("toLocaleString",(function(){return o(f,d?u(s(this)):s(this),u(arguments))}),a((function(){return[1,2].toLocaleString()!=new c([1,2]).toLocaleString()}))||!a((function(){c.prototype.toLocaleString.call([1,2])})))},15016:function(e,t,r){"use strict";var n=r(90260).exportTypedArrayMethod,o=r(47293),i=r(17854),a=r(1702),u=i.Uint8Array,c=u&&u.prototype||{},s=[].toString,l=a([].join);o((function(){s.call({})}))&&(s=function(){return l(this)});var f=c.toString!=s;n("toString",s,f)},8255:function(e,t,r){r(19843)("Uint16",(function(e){return function(t,r,n){return e(this,t,r,n)}}))},82472:function(e,t,r){r(19843)("Uint8",(function(e){return function(t,r,n){return e(this,t,r,n)}}))},41202:function(e,t,r){"use strict";var n,o=r(17854),i=r(1702),a=r(89190),u=r(62423),c=r(77710),s=r(29320),l=r(70111),f=r(52050),d=r(29909).enforce,p=r(94811),h=!o.ActiveXObject&&"ActiveXObject"in o,v=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},y=c("WeakMap",v,s);if(p&&h){n=s.getConstructor(v,"WeakMap",!0),u.enable();var m=y.prototype,g=i(m.delete),b=i(m.has),w=i(m.get),E=i(m.set);a(m,{delete:function(e){if(l(e)&&!f(e)){var t=d(this);return t.frozen||(t.frozen=new n),g(this,e)||t.frozen.delete(e)}return g(this,e)},has:function(e){if(l(e)&&!f(e)){var t=d(this);return t.frozen||(t.frozen=new n),b(this,e)||t.frozen.has(e)}return b(this,e)},get:function(e){if(l(e)&&!f(e)){var t=d(this);return t.frozen||(t.frozen=new n),b(this,e)?w(this,e):t.frozen.get(e)}return w(this,e)},set:function(e,t){if(l(e)&&!f(e)){var r=d(this);r.frozen||(r.frozen=new n),b(this,e)?E(this,e,t):r.frozen.set(e,t)}else E(this,e,t);return this}})}},4129:function(e,t,r){r(41202)},72098:function(e,t,r){"use strict";r(77710)("WeakSet",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),r(29320))},38478:function(e,t,r){r(72098)},54747:function(e,t,r){var n=r(17854),o=r(48324),i=r(98509),a=r(18533),u=r(68880),c=function(e){if(e&&e.forEach!==a)try{u(e,"forEach",a)}catch(t){e.forEach=a}};for(var s in o)o[s]&&c(n[s]&&n[s].prototype);c(i)},33948:function(e,t,r){var n=r(17854),o=r(48324),i=r(98509),a=r(66992),u=r(68880),c=r(5112),s=c("iterator"),l=c("toStringTag"),f=a.values,d=function(e,t){if(e){if(e[s]!==f)try{u(e,s,f)}catch(t){e[s]=f}if(e[l]||u(e,l,t),o[t])for(var r in a)if(e[r]!==a[r])try{u(e,r,a[r])}catch(t){e[r]=a[r]}}};for(var p in o)d(n[p]&&n[p].prototype,p);d(i,"DOMTokenList")},65556:function(e,t,r){"use strict";r(66992);var n=r(82109),o=r(17854),i=r(46916),a=r(1702),u=r(19781),c=r(85143),s=r(98052),l=r(89190),f=r(58003),d=r(63061),p=r(29909),h=r(25787),v=r(60614),y=r(92597),m=r(49974),g=r(70648),b=r(19670),w=r(70111),E=r(41340),_=r(70030),O=r(79114),S=r(18554),x=r(71246),k=r(48053),j=r(5112),T=r(94362),P=j("iterator"),L="URLSearchParams",I="URLSearchParamsIterator",A=p.set,C=p.getterFor(L),M=p.getterFor(I),N=Object.getOwnPropertyDescriptor,R=function(e){if(!u)return o[e];var t=N(o,e);return t&&t.value},D=R("fetch"),F=R("Request"),U=R("Headers"),W=F&&F.prototype,z=U&&U.prototype,B=o.RegExp,G=o.TypeError,V=o.decodeURIComponent,Y=o.encodeURIComponent,H=a("".charAt),K=a([].join),q=a([].push),$=a("".replace),X=a([].shift),Q=a([].splice),J=a("".split),Z=a("".slice),ee=/\+/g,te=Array(4),re=function(e){return te[e-1]||(te[e-1]=B("((?:%[\\da-f]{2}){"+e+"})","gi"))},ne=function(e){try{return V(e)}catch(t){return e}},oe=function(e){var t=$(e,ee," "),r=4;try{return V(t)}catch(e){for(;r;)t=$(t,re(r--),ne);return t}},ie=/[!'()~]|%20/g,ae={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},ue=function(e){return ae[e]},ce=function(e){return $(Y(e),ie,ue)},se=d((function(e,t){A(this,{type:I,iterator:S(C(e).entries),kind:t})}),"Iterator",(function(){var e=M(this),t=e.kind,r=e.iterator.next(),n=r.value;return r.done||(r.value="keys"===t?n.key:"values"===t?n.value:[n.key,n.value]),r}),!0),le=function(e){this.entries=[],this.url=null,void 0!==e&&(w(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===H(e,0)?Z(e,1):e:E(e)))};le.prototype={type:L,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,r,n,o,a,u,c,s=x(e);if(s)for(r=(t=S(e,s)).next;!(n=i(r,t)).done;){if(a=(o=S(b(n.value))).next,(u=i(a,o)).done||(c=i(a,o)).done||!i(a,o).done)throw G("Expected sequence with length 2");q(this.entries,{key:E(u.value),value:E(c.value)})}else for(var l in e)y(e,l)&&q(this.entries,{key:l,value:E(e[l])})},parseQuery:function(e){if(e)for(var t,r,n=J(e,"&"),o=0;o<n.length;)(t=n[o++]).length&&(r=J(t,"="),q(this.entries,{key:oe(X(r)),value:oe(K(r,"="))}))},serialize:function(){for(var e,t=this.entries,r=[],n=0;n<t.length;)e=t[n++],q(r,ce(e.key)+"="+ce(e.value));return K(r,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var fe=function(){h(this,de);var e=arguments.length>0?arguments[0]:void 0;A(this,new le(e))},de=fe.prototype;if(l(de,{append:function(e,t){k(arguments.length,2);var r=C(this);q(r.entries,{key:E(e),value:E(t)}),r.updateURL()},delete:function(e){k(arguments.length,1);for(var t=C(this),r=t.entries,n=E(e),o=0;o<r.length;)r[o].key===n?Q(r,o,1):o++;t.updateURL()},get:function(e){k(arguments.length,1);for(var t=C(this).entries,r=E(e),n=0;n<t.length;n++)if(t[n].key===r)return t[n].value;return null},getAll:function(e){k(arguments.length,1);for(var t=C(this).entries,r=E(e),n=[],o=0;o<t.length;o++)t[o].key===r&&q(n,t[o].value);return n},has:function(e){k(arguments.length,1);for(var t=C(this).entries,r=E(e),n=0;n<t.length;)if(t[n++].key===r)return!0;return!1},set:function(e,t){k(arguments.length,1);for(var r,n=C(this),o=n.entries,i=!1,a=E(e),u=E(t),c=0;c<o.length;c++)(r=o[c]).key===a&&(i?Q(o,c--,1):(i=!0,r.value=u));i||q(o,{key:a,value:u}),n.updateURL()},sort:function(){var e=C(this);T(e.entries,(function(e,t){return e.key>t.key?1:-1})),e.updateURL()},forEach:function(e){for(var t,r=C(this).entries,n=m(e,arguments.length>1?arguments[1]:void 0),o=0;o<r.length;)n((t=r[o++]).value,t.key,this)},keys:function(){return new se(this,"keys")},values:function(){return new se(this,"values")},entries:function(){return new se(this,"entries")}},{enumerable:!0}),s(de,P,de.entries,{name:"entries"}),s(de,"toString",(function(){return C(this).serialize()}),{enumerable:!0}),f(fe,L),n({global:!0,constructor:!0,forced:!c},{URLSearchParams:fe}),!c&&v(U)){var pe=a(z.has),he=a(z.set),ve=function(e){if(w(e)){var t,r=e.body;if(g(r)===L)return t=e.headers?new U(e.headers):new U,pe(t,"content-type")||he(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),_(e,{body:O(0,E(r)),headers:O(0,t)})}return e};if(v(D)&&n({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return D(e,arguments.length>1?ve(arguments[1]):{})}}),v(F)){var ye=function(e){return h(this,W),new F(e,arguments.length>1?ve(arguments[1]):{})};W.constructor=ye,ye.prototype=W,n({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:ye})}}e.exports={URLSearchParams:fe,getState:C}},41637:function(e,t,r){r(65556)},68789:function(e,t,r){"use strict";r(78783);var n,o=r(82109),i=r(19781),a=r(85143),u=r(17854),c=r(49974),s=r(1702),l=r(98052),f=r(47045),d=r(25787),p=r(92597),h=r(21574),v=r(48457),y=r(41589),m=r(28710).codeAt,g=r(33197),b=r(41340),w=r(58003),E=r(48053),_=r(65556),O=r(29909),S=O.set,x=O.getterFor("URL"),k=_.URLSearchParams,j=_.getState,T=u.URL,P=u.TypeError,L=u.parseInt,I=Math.floor,A=Math.pow,C=s("".charAt),M=s(/./.exec),N=s([].join),R=s(1..toString),D=s([].pop),F=s([].push),U=s("".replace),W=s([].shift),z=s("".split),B=s("".slice),G=s("".toLowerCase),V=s([].unshift),Y="Invalid scheme",H="Invalid host",K="Invalid port",q=/[a-z]/i,$=/[\d+-.a-z]/i,X=/\d/,Q=/^0x/i,J=/^[0-7]+$/,Z=/^\d+$/,ee=/^[\da-f]+$/i,te=/[\0\t\n\r #%/:<>?@[\\\]^|]/,re=/[\0\t\n\r #/:<>?@[\\\]^|]/,ne=/^[\u0000-\u0020]+|[\u0000-\u0020]+$/g,oe=/[\t\n\r]/g,ie=function(e){var t,r,n,o;if("number"==typeof e){for(t=[],r=0;r<4;r++)V(t,e%256),e=I(e/256);return N(t,".")}if("object"==typeof e){for(t="",n=function(e){for(var t=null,r=1,n=null,o=0,i=0;i<8;i++)0!==e[i]?(o>r&&(t=n,r=o),n=null,o=0):(null===n&&(n=i),++o);return o>r&&(t=n,r=o),t}(e),r=0;r<8;r++)o&&0===e[r]||(o&&(o=!1),n===r?(t+=r?":":"::",o=!0):(t+=R(e[r],16),r<7&&(t+=":")));return"["+t+"]"}return e},ae={},ue=h({},ae,{" ":1,'"':1,"<":1,">":1,"`":1}),ce=h({},ue,{"#":1,"?":1,"{":1,"}":1}),se=h({},ce,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),le=function(e,t){var r=m(e,0);return r>32&&r<127&&!p(t,e)?e:encodeURIComponent(e)},fe={ftp:21,file:null,http:80,https:443,ws:80,wss:443},de=function(e,t){var r;return 2==e.length&&M(q,C(e,0))&&(":"==(r=C(e,1))||!t&&"|"==r)},pe=function(e){var t;return e.length>1&&de(B(e,0,2))&&(2==e.length||"/"===(t=C(e,2))||"\\"===t||"?"===t||"#"===t)},he=function(e){return"."===e||"%2e"===G(e)},ve={},ye={},me={},ge={},be={},we={},Ee={},_e={},Oe={},Se={},xe={},ke={},je={},Te={},Pe={},Le={},Ie={},Ae={},Ce={},Me={},Ne={},Re=function(e,t,r){var n,o,i,a=b(e);if(t){if(o=this.parse(a))throw P(o);this.searchParams=null}else{if(void 0!==r&&(n=new Re(r,!0)),o=this.parse(a,null,n))throw P(o);(i=j(new k)).bindURL(this),this.searchParams=i}};Re.prototype={type:"URL",parse:function(e,t,r){var o,i,a,u,c,s=this,l=t||ve,f=0,d="",h=!1,m=!1,g=!1;for(e=b(e),t||(s.scheme="",s.username="",s.password="",s.host=null,s.port=null,s.path=[],s.query=null,s.fragment=null,s.cannotBeABaseURL=!1,e=U(e,ne,"")),e=U(e,oe,""),o=v(e);f<=o.length;){switch(i=o[f],l){case ve:if(!i||!M(q,i)){if(t)return Y;l=me;continue}d+=G(i),l=ye;break;case ye:if(i&&(M($,i)||"+"==i||"-"==i||"."==i))d+=G(i);else{if(":"!=i){if(t)return Y;d="",l=me,f=0;continue}if(t&&(s.isSpecial()!=p(fe,d)||"file"==d&&(s.includesCredentials()||null!==s.port)||"file"==s.scheme&&!s.host))return;if(s.scheme=d,t)return void(s.isSpecial()&&fe[s.scheme]==s.port&&(s.port=null));d="","file"==s.scheme?l=Te:s.isSpecial()&&r&&r.scheme==s.scheme?l=ge:s.isSpecial()?l=_e:"/"==o[f+1]?(l=be,f++):(s.cannotBeABaseURL=!0,F(s.path,""),l=Ce)}break;case me:if(!r||r.cannotBeABaseURL&&"#"!=i)return Y;if(r.cannotBeABaseURL&&"#"==i){s.scheme=r.scheme,s.path=y(r.path),s.query=r.query,s.fragment="",s.cannotBeABaseURL=!0,l=Ne;break}l="file"==r.scheme?Te:we;continue;case ge:if("/"!=i||"/"!=o[f+1]){l=we;continue}l=Oe,f++;break;case be:if("/"==i){l=Se;break}l=Ae;continue;case we:if(s.scheme=r.scheme,i==n)s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,s.path=y(r.path),s.query=r.query;else if("/"==i||"\\"==i&&s.isSpecial())l=Ee;else if("?"==i)s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,s.path=y(r.path),s.query="",l=Me;else{if("#"!=i){s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,s.path=y(r.path),s.path.length--,l=Ae;continue}s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,s.path=y(r.path),s.query=r.query,s.fragment="",l=Ne}break;case Ee:if(!s.isSpecial()||"/"!=i&&"\\"!=i){if("/"!=i){s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,l=Ae;continue}l=Se}else l=Oe;break;case _e:if(l=Oe,"/"!=i||"/"!=C(d,f+1))continue;f++;break;case Oe:if("/"!=i&&"\\"!=i){l=Se;continue}break;case Se:if("@"==i){h&&(d="%40"+d),h=!0,a=v(d);for(var w=0;w<a.length;w++){var E=a[w];if(":"!=E||g){var _=le(E,se);g?s.password+=_:s.username+=_}else g=!0}d=""}else if(i==n||"/"==i||"?"==i||"#"==i||"\\"==i&&s.isSpecial()){if(h&&""==d)return"Invalid authority";f-=v(d).length+1,d="",l=xe}else d+=i;break;case xe:case ke:if(t&&"file"==s.scheme){l=Le;continue}if(":"!=i||m){if(i==n||"/"==i||"?"==i||"#"==i||"\\"==i&&s.isSpecial()){if(s.isSpecial()&&""==d)return H;if(t&&""==d&&(s.includesCredentials()||null!==s.port))return;if(u=s.parseHost(d))return u;if(d="",l=Ie,t)return;continue}"["==i?m=!0:"]"==i&&(m=!1),d+=i}else{if(""==d)return H;if(u=s.parseHost(d))return u;if(d="",l=je,t==ke)return}break;case je:if(!M(X,i)){if(i==n||"/"==i||"?"==i||"#"==i||"\\"==i&&s.isSpecial()||t){if(""!=d){var O=L(d,10);if(O>65535)return K;s.port=s.isSpecial()&&O===fe[s.scheme]?null:O,d=""}if(t)return;l=Ie;continue}return K}d+=i;break;case Te:if(s.scheme="file","/"==i||"\\"==i)l=Pe;else{if(!r||"file"!=r.scheme){l=Ae;continue}if(i==n)s.host=r.host,s.path=y(r.path),s.query=r.query;else if("?"==i)s.host=r.host,s.path=y(r.path),s.query="",l=Me;else{if("#"!=i){pe(N(y(o,f),""))||(s.host=r.host,s.path=y(r.path),s.shortenPath()),l=Ae;continue}s.host=r.host,s.path=y(r.path),s.query=r.query,s.fragment="",l=Ne}}break;case Pe:if("/"==i||"\\"==i){l=Le;break}r&&"file"==r.scheme&&!pe(N(y(o,f),""))&&(de(r.path[0],!0)?F(s.path,r.path[0]):s.host=r.host),l=Ae;continue;case Le:if(i==n||"/"==i||"\\"==i||"?"==i||"#"==i){if(!t&&de(d))l=Ae;else if(""==d){if(s.host="",t)return;l=Ie}else{if(u=s.parseHost(d))return u;if("localhost"==s.host&&(s.host=""),t)return;d="",l=Ie}continue}d+=i;break;case Ie:if(s.isSpecial()){if(l=Ae,"/"!=i&&"\\"!=i)continue}else if(t||"?"!=i)if(t||"#"!=i){if(i!=n&&(l=Ae,"/"!=i))continue}else s.fragment="",l=Ne;else s.query="",l=Me;break;case Ae:if(i==n||"/"==i||"\\"==i&&s.isSpecial()||!t&&("?"==i||"#"==i)){if(".."===(c=G(c=d))||"%2e."===c||".%2e"===c||"%2e%2e"===c?(s.shortenPath(),"/"==i||"\\"==i&&s.isSpecial()||F(s.path,"")):he(d)?"/"==i||"\\"==i&&s.isSpecial()||F(s.path,""):("file"==s.scheme&&!s.path.length&&de(d)&&(s.host&&(s.host=""),d=C(d,0)+":"),F(s.path,d)),d="","file"==s.scheme&&(i==n||"?"==i||"#"==i))for(;s.path.length>1&&""===s.path[0];)W(s.path);"?"==i?(s.query="",l=Me):"#"==i&&(s.fragment="",l=Ne)}else d+=le(i,ce);break;case Ce:"?"==i?(s.query="",l=Me):"#"==i?(s.fragment="",l=Ne):i!=n&&(s.path[0]+=le(i,ae));break;case Me:t||"#"!=i?i!=n&&("'"==i&&s.isSpecial()?s.query+="%27":s.query+="#"==i?"%23":le(i,ae)):(s.fragment="",l=Ne);break;case Ne:i!=n&&(s.fragment+=le(i,ue))}f++}},parseHost:function(e){var t,r,n;if("["==C(e,0)){if("]"!=C(e,e.length-1))return H;if(t=function(e){var t,r,n,o,i,a,u,c=[0,0,0,0,0,0,0,0],s=0,l=null,f=0,d=function(){return C(e,f)};if(":"==d()){if(":"!=C(e,1))return;f+=2,l=++s}for(;d();){if(8==s)return;if(":"!=d()){for(t=r=0;r<4&&M(ee,d());)t=16*t+L(d(),16),f++,r++;if("."==d()){if(0==r)return;if(f-=r,s>6)return;for(n=0;d();){if(o=null,n>0){if(!("."==d()&&n<4))return;f++}if(!M(X,d()))return;for(;M(X,d());){if(i=L(d(),10),null===o)o=i;else{if(0==o)return;o=10*o+i}if(o>255)return;f++}c[s]=256*c[s]+o,2!=++n&&4!=n||s++}if(4!=n)return;break}if(":"==d()){if(f++,!d())return}else if(d())return;c[s++]=t}else{if(null!==l)return;f++,l=++s}}if(null!==l)for(a=s-l,s=7;0!=s&&a>0;)u=c[s],c[s--]=c[l+a-1],c[l+--a]=u;else if(8!=s)return;return c}(B(e,1,-1)),!t)return H;this.host=t}else if(this.isSpecial()){if(e=g(e),M(te,e))return H;if(t=function(e){var t,r,n,o,i,a,u,c=z(e,".");if(c.length&&""==c[c.length-1]&&c.length--,(t=c.length)>4)return e;for(r=[],n=0;n<t;n++){if(""==(o=c[n]))return e;if(i=10,o.length>1&&"0"==C(o,0)&&(i=M(Q,o)?16:8,o=B(o,8==i?1:2)),""===o)a=0;else{if(!M(10==i?Z:8==i?J:ee,o))return e;a=L(o,i)}F(r,a)}for(n=0;n<t;n++)if(a=r[n],n==t-1){if(a>=A(256,5-t))return null}else if(a>255)return null;for(u=D(r),n=0;n<r.length;n++)u+=r[n]*A(256,3-n);return u}(e),null===t)return H;this.host=t}else{if(M(re,e))return H;for(t="",r=v(e),n=0;n<r.length;n++)t+=le(r[n],ae);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"==this.scheme},includesCredentials:function(){return""!=this.username||""!=this.password},isSpecial:function(){return p(fe,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"==this.scheme&&1==t&&de(e[0],!0)||e.length--},serialize:function(){var e=this,t=e.scheme,r=e.username,n=e.password,o=e.host,i=e.port,a=e.path,u=e.query,c=e.fragment,s=t+":";return null!==o?(s+="//",e.includesCredentials()&&(s+=r+(n?":"+n:"")+"@"),s+=ie(o),null!==i&&(s+=":"+i)):"file"==t&&(s+="//"),s+=e.cannotBeABaseURL?a[0]:a.length?"/"+N(a,"/"):"",null!==u&&(s+="?"+u),null!==c&&(s+="#"+c),s},setHref:function(e){var t=this.parse(e);if(t)throw P(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"==e)try{return new De(e.path[0]).origin}catch(e){return"null"}return"file"!=e&&this.isSpecial()?e+"://"+ie(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(b(e)+":",ve)},getUsername:function(){return this.username},setUsername:function(e){var t=v(b(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var r=0;r<t.length;r++)this.username+=le(t[r],se)}},getPassword:function(){return this.password},setPassword:function(e){var t=v(b(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var r=0;r<t.length;r++)this.password+=le(t[r],se)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?ie(e):ie(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,xe)},getHostname:function(){var e=this.host;return null===e?"":ie(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,ke)},getPort:function(){var e=this.port;return null===e?"":b(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(""==(e=b(e))?this.port=null:this.parse(e,je))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+N(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,Ie))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){""==(e=b(e))?this.query=null:("?"==C(e,0)&&(e=B(e,1)),this.query="",this.parse(e,Me)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){""!=(e=b(e))?("#"==C(e,0)&&(e=B(e,1)),this.fragment="",this.parse(e,Ne)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var De=function(e){var t=d(this,Fe),r=E(arguments.length,1)>1?arguments[1]:void 0,n=S(t,new Re(e,!1,r));i||(t.href=n.serialize(),t.origin=n.getOrigin(),t.protocol=n.getProtocol(),t.username=n.getUsername(),t.password=n.getPassword(),t.host=n.getHost(),t.hostname=n.getHostname(),t.port=n.getPort(),t.pathname=n.getPathname(),t.search=n.getSearch(),t.searchParams=n.getSearchParams(),t.hash=n.getHash())},Fe=De.prototype,Ue=function(e,t){return{get:function(){return x(this)[e]()},set:t&&function(e){return x(this)[t](e)},configurable:!0,enumerable:!0}};if(i&&(f(Fe,"href",Ue("serialize","setHref")),f(Fe,"origin",Ue("getOrigin")),f(Fe,"protocol",Ue("getProtocol","setProtocol")),f(Fe,"username",Ue("getUsername","setUsername")),f(Fe,"password",Ue("getPassword","setPassword")),f(Fe,"host",Ue("getHost","setHost")),f(Fe,"hostname",Ue("getHostname","setHostname")),f(Fe,"port",Ue("getPort","setPort")),f(Fe,"pathname",Ue("getPathname","setPathname")),f(Fe,"search",Ue("getSearch","setSearch")),f(Fe,"searchParams",Ue("getSearchParams")),f(Fe,"hash",Ue("getHash","setHash"))),l(Fe,"toJSON",(function(){return x(this).serialize()}),{enumerable:!0}),l(Fe,"toString",(function(){return x(this).serialize()}),{enumerable:!0}),T){var We=T.createObjectURL,ze=T.revokeObjectURL;We&&l(De,"createObjectURL",c(We,T)),ze&&l(De,"revokeObjectURL",c(ze,T))}w(De,"URL"),o({global:!0,constructor:!0,forced:!a,sham:!i},{URL:De})},60285:function(e,t,r){r(68789)},27856:function(e){e.exports=function(){"use strict";function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(e,r){return t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},t(e,r)}function r(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function n(e,o,i){return n=r()?Reflect.construct:function(e,r,n){var o=[null];o.push.apply(o,r);var i=new(Function.bind.apply(e,o));return n&&t(i,n.prototype),i},n.apply(null,arguments)}function o(e){return function(e){if(Array.isArray(e))return i(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var a=Object.hasOwnProperty,u=Object.setPrototypeOf,c=Object.isFrozen,s=Object.getPrototypeOf,l=Object.getOwnPropertyDescriptor,f=Object.freeze,d=Object.seal,p=Object.create,h="undefined"!=typeof Reflect&&Reflect,v=h.apply,y=h.construct;v||(v=function(e,t,r){return e.apply(t,r)}),f||(f=function(e){return e}),d||(d=function(e){return e}),y||(y=function(e,t){return n(e,o(t))});var m,g=T(Array.prototype.forEach),b=T(Array.prototype.pop),w=T(Array.prototype.push),E=T(String.prototype.toLowerCase),_=T(String.prototype.match),O=T(String.prototype.replace),S=T(String.prototype.indexOf),x=T(String.prototype.trim),k=T(RegExp.prototype.test),j=(m=TypeError,function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return y(m,t)});function T(e){return function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return v(e,t,n)}}function P(e,t,r){r=r||E,u&&u(e,null);for(var n=t.length;n--;){var o=t[n];if("string"==typeof o){var i=r(o);i!==o&&(c(t)||(t[n]=i),o=i)}e[o]=!0}return e}function L(e){var t,r=p(null);for(t in e)v(a,e,[t])&&(r[t]=e[t]);return r}function I(e,t){for(;null!==e;){var r=l(e,t);if(r){if(r.get)return T(r.get);if("function"==typeof r.value)return T(r.value)}e=s(e)}return function(e){return console.warn("fallback value for",e),null}}var A=f(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),C=f(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),M=f(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),N=f(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),R=f(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),D=f(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),F=f(["#text"]),U=f(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),W=f(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),z=f(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),B=f(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),G=d(/\{\{[\w\W]*|[\w\W]*\}\}/gm),V=d(/<%[\w\W]*|[\w\W]*%>/gm),Y=d(/^data-[\-\w.\u00B7-\uFFFF]/),H=d(/^aria-[\-\w]+$/),K=d(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),q=d(/^(?:\w+script|data):/i),$=d(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),X=d(/^html$/i),Q=function(){return"undefined"==typeof window?null:window},J=function(t,r){if("object"!==e(t)||"function"!=typeof t.createPolicy)return null;var n=null,o="data-tt-policy-suffix";r.currentScript&&r.currentScript.hasAttribute(o)&&(n=r.currentScript.getAttribute(o));var i="dompurify"+(n?"#"+n:"");try{return t.createPolicy(i,{createHTML:function(e){return e},createScriptURL:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+i+" could not be created."),null}};return function t(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Q(),n=function(e){return t(e)};if(n.version="2.4.0",n.removed=[],!r||!r.document||9!==r.document.nodeType)return n.isSupported=!1,n;var i=r.document,a=r.document,u=r.DocumentFragment,c=r.HTMLTemplateElement,s=r.Node,l=r.Element,d=r.NodeFilter,p=r.NamedNodeMap,h=void 0===p?r.NamedNodeMap||r.MozNamedAttrMap:p,v=r.HTMLFormElement,y=r.DOMParser,m=r.trustedTypes,T=l.prototype,Z=I(T,"cloneNode"),ee=I(T,"nextSibling"),te=I(T,"childNodes"),re=I(T,"parentNode");if("function"==typeof c){var ne=a.createElement("template");ne.content&&ne.content.ownerDocument&&(a=ne.content.ownerDocument)}var oe=J(m,i),ie=oe?oe.createHTML(""):"",ae=a,ue=ae.implementation,ce=ae.createNodeIterator,se=ae.createDocumentFragment,le=ae.getElementsByTagName,fe=i.importNode,de={};try{de=L(a).documentMode?a.documentMode:{}}catch(e){}var pe={};n.isSupported="function"==typeof re&&ue&&void 0!==ue.createHTMLDocument&&9!==de;var he,ve,ye=G,me=V,ge=Y,be=H,we=q,Ee=$,_e=K,Oe=null,Se=P({},[].concat(o(A),o(C),o(M),o(R),o(F))),xe=null,ke=P({},[].concat(o(U),o(W),o(z),o(B))),je=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Te=null,Pe=null,Le=!0,Ie=!0,Ae=!1,Ce=!1,Me=!1,Ne=!1,Re=!1,De=!1,Fe=!1,Ue=!1,We=!0,ze=!1,Be="user-content-",Ge=!0,Ve=!1,Ye={},He=null,Ke=P({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),qe=null,$e=P({},["audio","video","img","source","image","track"]),Xe=null,Qe=P({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Je="http://www.w3.org/1998/Math/MathML",Ze="http://www.w3.org/2000/svg",et="http://www.w3.org/1999/xhtml",tt=et,rt=!1,nt=["application/xhtml+xml","text/html"],ot="text/html",it=null,at=a.createElement("form"),ut=function(e){return e instanceof RegExp||e instanceof Function},ct=function(t){it&&it===t||(t&&"object"===e(t)||(t={}),t=L(t),he=he=-1===nt.indexOf(t.PARSER_MEDIA_TYPE)?ot:t.PARSER_MEDIA_TYPE,ve="application/xhtml+xml"===he?function(e){return e}:E,Oe="ALLOWED_TAGS"in t?P({},t.ALLOWED_TAGS,ve):Se,xe="ALLOWED_ATTR"in t?P({},t.ALLOWED_ATTR,ve):ke,Xe="ADD_URI_SAFE_ATTR"in t?P(L(Qe),t.ADD_URI_SAFE_ATTR,ve):Qe,qe="ADD_DATA_URI_TAGS"in t?P(L($e),t.ADD_DATA_URI_TAGS,ve):$e,He="FORBID_CONTENTS"in t?P({},t.FORBID_CONTENTS,ve):Ke,Te="FORBID_TAGS"in t?P({},t.FORBID_TAGS,ve):{},Pe="FORBID_ATTR"in t?P({},t.FORBID_ATTR,ve):{},Ye="USE_PROFILES"in t&&t.USE_PROFILES,Le=!1!==t.ALLOW_ARIA_ATTR,Ie=!1!==t.ALLOW_DATA_ATTR,Ae=t.ALLOW_UNKNOWN_PROTOCOLS||!1,Ce=t.SAFE_FOR_TEMPLATES||!1,Me=t.WHOLE_DOCUMENT||!1,De=t.RETURN_DOM||!1,Fe=t.RETURN_DOM_FRAGMENT||!1,Ue=t.RETURN_TRUSTED_TYPE||!1,Re=t.FORCE_BODY||!1,We=!1!==t.SANITIZE_DOM,ze=t.SANITIZE_NAMED_PROPS||!1,Ge=!1!==t.KEEP_CONTENT,Ve=t.IN_PLACE||!1,_e=t.ALLOWED_URI_REGEXP||_e,tt=t.NAMESPACE||et,t.CUSTOM_ELEMENT_HANDLING&&ut(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(je.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&ut(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(je.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(je.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ce&&(Ie=!1),Fe&&(De=!0),Ye&&(Oe=P({},o(F)),xe=[],!0===Ye.html&&(P(Oe,A),P(xe,U)),!0===Ye.svg&&(P(Oe,C),P(xe,W),P(xe,B)),!0===Ye.svgFilters&&(P(Oe,M),P(xe,W),P(xe,B)),!0===Ye.mathMl&&(P(Oe,R),P(xe,z),P(xe,B))),t.ADD_TAGS&&(Oe===Se&&(Oe=L(Oe)),P(Oe,t.ADD_TAGS,ve)),t.ADD_ATTR&&(xe===ke&&(xe=L(xe)),P(xe,t.ADD_ATTR,ve)),t.ADD_URI_SAFE_ATTR&&P(Xe,t.ADD_URI_SAFE_ATTR,ve),t.FORBID_CONTENTS&&(He===Ke&&(He=L(He)),P(He,t.FORBID_CONTENTS,ve)),Ge&&(Oe["#text"]=!0),Me&&P(Oe,["html","head","body"]),Oe.table&&(P(Oe,["tbody"]),delete Te.tbody),f&&f(t),it=t)},st=P({},["mi","mo","mn","ms","mtext"]),lt=P({},["foreignobject","desc","title","annotation-xml"]),ft=P({},["title","style","font","a","script"]),dt=P({},C);P(dt,M),P(dt,N);var pt=P({},R);P(pt,D);var ht=function(e){var t=re(e);t&&t.tagName||(t={namespaceURI:et,tagName:"template"});var r=E(e.tagName),n=E(t.tagName);return e.namespaceURI===Ze?t.namespaceURI===et?"svg"===r:t.namespaceURI===Je?"svg"===r&&("annotation-xml"===n||st[n]):Boolean(dt[r]):e.namespaceURI===Je?t.namespaceURI===et?"math"===r:t.namespaceURI===Ze?"math"===r&<[n]:Boolean(pt[r]):e.namespaceURI===et&&!(t.namespaceURI===Ze&&!lt[n])&&!(t.namespaceURI===Je&&!st[n])&&!pt[r]&&(ft[r]||!dt[r])},vt=function(e){w(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=ie}catch(t){e.remove()}}},yt=function(e,t){try{w(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){w(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!xe[e])if(De||Fe)try{vt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},mt=function(e){var t,r;if(Re)e="<remove></remove>"+e;else{var n=_(e,/^[\r\n\t ]+/);r=n&&n[0]}"application/xhtml+xml"===he&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var o=oe?oe.createHTML(e):e;if(tt===et)try{t=(new y).parseFromString(o,he)}catch(e){}if(!t||!t.documentElement){t=ue.createDocument(tt,"template",null);try{t.documentElement.innerHTML=rt?"":o}catch(e){}}var i=t.body||t.documentElement;return e&&r&&i.insertBefore(a.createTextNode(r),i.childNodes[0]||null),tt===et?le.call(t,Me?"html":"body")[0]:Me?t.documentElement:i},gt=function(e){return ce.call(e.ownerDocument||e,e,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT,null,!1)},bt=function(e){return e instanceof v&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof h)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore)},wt=function(t){return"object"===e(s)?t instanceof s:t&&"object"===e(t)&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName},Et=function(e,t,r){pe[e]&&g(pe[e],(function(e){e.call(n,t,r,it)}))},_t=function(e){var t;if(Et("beforeSanitizeElements",e,null),bt(e))return vt(e),!0;if(k(/[\u0080-\uFFFF]/,e.nodeName))return vt(e),!0;var r=ve(e.nodeName);if(Et("uponSanitizeElement",e,{tagName:r,allowedTags:Oe}),e.hasChildNodes()&&!wt(e.firstElementChild)&&(!wt(e.content)||!wt(e.content.firstElementChild))&&k(/<[/\w]/g,e.innerHTML)&&k(/<[/\w]/g,e.textContent))return vt(e),!0;if("select"===r&&k(/<template/i,e.innerHTML))return vt(e),!0;if(!Oe[r]||Te[r]){if(!Te[r]&&St(r)){if(je.tagNameCheck instanceof RegExp&&k(je.tagNameCheck,r))return!1;if(je.tagNameCheck instanceof Function&&je.tagNameCheck(r))return!1}if(Ge&&!He[r]){var o=re(e)||e.parentNode,i=te(e)||e.childNodes;if(i&&o)for(var a=i.length-1;a>=0;--a)o.insertBefore(Z(i[a],!0),ee(e))}return vt(e),!0}return e instanceof l&&!ht(e)?(vt(e),!0):"noscript"!==r&&"noembed"!==r||!k(/<\/no(script|embed)/i,e.innerHTML)?(Ce&&3===e.nodeType&&(t=e.textContent,t=O(t,ye," "),t=O(t,me," "),e.textContent!==t&&(w(n.removed,{element:e.cloneNode()}),e.textContent=t)),Et("afterSanitizeElements",e,null),!1):(vt(e),!0)},Ot=function(e,t,r){if(We&&("id"===t||"name"===t)&&(r in a||r in at))return!1;if(Ie&&!Pe[t]&&k(ge,t));else if(Le&&k(be,t));else if(!xe[t]||Pe[t]){if(!(St(e)&&(je.tagNameCheck instanceof RegExp&&k(je.tagNameCheck,e)||je.tagNameCheck instanceof Function&&je.tagNameCheck(e))&&(je.attributeNameCheck instanceof RegExp&&k(je.attributeNameCheck,t)||je.attributeNameCheck instanceof Function&&je.attributeNameCheck(t))||"is"===t&&je.allowCustomizedBuiltInElements&&(je.tagNameCheck instanceof RegExp&&k(je.tagNameCheck,r)||je.tagNameCheck instanceof Function&&je.tagNameCheck(r))))return!1}else if(Xe[t]);else if(k(_e,O(r,Ee,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==S(r,"data:")||!qe[e])if(Ae&&!k(we,O(r,Ee,"")));else if(r)return!1;return!0},St=function(e){return e.indexOf("-")>0},xt=function(t){var r,o,i,a;Et("beforeSanitizeAttributes",t,null);var u=t.attributes;if(u){var c={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:xe};for(a=u.length;a--;){var s=r=u[a],l=s.name,f=s.namespaceURI;if(o="value"===l?r.value:x(r.value),i=ve(l),c.attrName=i,c.attrValue=o,c.keepAttr=!0,c.forceKeepAttr=void 0,Et("uponSanitizeAttribute",t,c),o=c.attrValue,!c.forceKeepAttr&&(yt(l,t),c.keepAttr))if(k(/\/>/i,o))yt(l,t);else{Ce&&(o=O(o,ye," "),o=O(o,me," "));var d=ve(t.nodeName);if(Ot(d,i,o)){if(!ze||"id"!==i&&"name"!==i||(yt(l,t),o=Be+o),oe&&"object"===e(m)&&"function"==typeof m.getAttributeType)if(f);else switch(m.getAttributeType(d,i)){case"TrustedHTML":o=oe.createHTML(o);break;case"TrustedScriptURL":o=oe.createScriptURL(o)}try{f?t.setAttributeNS(f,l,o):t.setAttribute(l,o),b(n.removed)}catch(e){}}}}Et("afterSanitizeAttributes",t,null)}},kt=function e(t){var r,n=gt(t);for(Et("beforeSanitizeShadowDOM",t,null);r=n.nextNode();)Et("uponSanitizeShadowNode",r,null),_t(r)||(r.content instanceof u&&e(r.content),xt(r));Et("afterSanitizeShadowDOM",t,null)};return n.sanitize=function(t){var o,a,c,l,f,d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((rt=!t)&&(t="\x3c!--\x3e"),"string"!=typeof t&&!wt(t)){if("function"!=typeof t.toString)throw j("toString is not a function");if("string"!=typeof(t=t.toString()))throw j("dirty is not a string, aborting")}if(!n.isSupported){if("object"===e(r.toStaticHTML)||"function"==typeof r.toStaticHTML){if("string"==typeof t)return r.toStaticHTML(t);if(wt(t))return r.toStaticHTML(t.outerHTML)}return t}if(Ne||ct(d),n.removed=[],"string"==typeof t&&(Ve=!1),Ve){if(t.nodeName){var p=ve(t.nodeName);if(!Oe[p]||Te[p])throw j("root node is forbidden and cannot be sanitized in-place")}}else if(t instanceof s)1===(a=(o=mt("\x3c!----\x3e")).ownerDocument.importNode(t,!0)).nodeType&&"BODY"===a.nodeName||"HTML"===a.nodeName?o=a:o.appendChild(a);else{if(!De&&!Ce&&!Me&&-1===t.indexOf("<"))return oe&&Ue?oe.createHTML(t):t;if(!(o=mt(t)))return De?null:Ue?ie:""}o&&Re&&vt(o.firstChild);for(var h=gt(Ve?t:o);c=h.nextNode();)3===c.nodeType&&c===l||_t(c)||(c.content instanceof u&&kt(c.content),xt(c),l=c);if(l=null,Ve)return t;if(De){if(Fe)for(f=se.call(o.ownerDocument);o.firstChild;)f.appendChild(o.firstChild);else f=o;return xe.shadowroot&&(f=fe.call(i,f,!0)),f}var v=Me?o.outerHTML:o.innerHTML;return Me&&Oe["!doctype"]&&o.ownerDocument&&o.ownerDocument.doctype&&o.ownerDocument.doctype.name&&k(X,o.ownerDocument.doctype.name)&&(v="<!DOCTYPE "+o.ownerDocument.doctype.name+">\n"+v),Ce&&(v=O(v,ye," "),v=O(v,me," ")),oe&&Ue?oe.createHTML(v):v},n.setConfig=function(e){ct(e),Ne=!0},n.clearConfig=function(){it=null,Ne=!1},n.isValidAttribute=function(e,t,r){it||ct({});var n=ve(e),o=ve(t);return Ot(n,o,r)},n.addHook=function(e,t){"function"==typeof t&&(pe[e]=pe[e]||[],w(pe[e],t))},n.removeHook=function(e){if(pe[e])return b(pe[e])},n.removeHooks=function(e){pe[e]&&(pe[e]=[])},n.removeAllHooks=function(){pe={}},n}()}()},21336:function(e){e.exports=function(e,t){if("object"==typeof t&&null!==t){var r,n=Object.getPrototypeOf(t);for(r in n)if(!(r in e)){var o=Object.getOwnPropertyDescriptor(n,r);o&&Object.defineProperty(e,r,o)}for(r in t)r in e||(e[r]=t[r])}}},42389:function(e,t,r){!function(e){try{new window.CustomEvent("event",{bubbles:!0,cancelable:!0})}catch(n){var t=window.CustomEvent||window.Event,r=function(t,r){r=r||{};var n=document.createEvent("CustomEvent");return n.initCustomEvent(t,void 0!==r.bubbles&&r.bubbles,void 0!==r.cancelable&&r.cancelable,void 0===r.detail?{}:r.detail),e(n,this),n};r.prototype=t.prototype,window.CustomEvent=r}}(r(21336))},29856:function(e,t,r){!function(e){try{new window.Event("event",{bubbles:!0,cancelable:!0})}catch(n){var t=window.Event,r=function(t,r){r=r||{};var n=document.createEvent("Event");return n.initEvent(t,void 0!==r.bubbles&&r.bubbles,void 0!==r.cancelable&&r.cancelable,void 0===r.detail?{}:r.detail),e(n,this),n};r.prototype=t.prototype,window.Event=r}}(r(21336))},70592:function(e,t,r){!function(e){try{new window.FocusEvent("event",{bubbles:!0,cancelable:!0})}catch(n){var t=window.FocusEvent||window.Event,r=function(t,r){r=r||{};var n=document.createEvent("FocusEvent");return n.initFocusEvent(t,void 0!==r.bubbles&&r.bubbles,void 0!==r.cancelable&&r.cancelable,void 0===r.view?window:r.view,void 0===r.detail?{}:r.detail,void 0===r.relatedTarget?null:r.relatedTarget),e(n,this),n};r.prototype=t.prototype,window.FocusEvent=r}}(r(21336))},65386:function(e,t,r){!function(e){try{new window.KeyboardEvent("event",{bubbles:!0,cancelable:!0})}catch(n){var t=window.KeyboardEvent||window.Event,r=function(t,r){r=r||{};var n=document.createEvent("KeyboardEvent");return n.initKeyboardEvent(t,void 0!==r.bubbles&&r.bubbles,void 0!==r.cancelable&&r.cancelable,void 0===r.view?window:r.view,void 0===r.key?"":r.key,void 0===r.location?0:r.location,(!0===r.ctrlKey?"Control ":"")+(!0===r.altKey?"Alt ":"")+(!0===r.shiftKey?"Shift ":"")+(!0===r.metaKey?"Meta ":""),void 0!==r.repeat&&r.repeat,void 0===r.locale?navigator.language:r.locale),n.keyCode=void 0===r.keyCode?0:r.keyCode,n.code=void 0===r.code?"":r.code,n.charCode=void 0===r.charCode?0:r.charCode,n.char=void 0===r.charCode?"":r.charCode,n.which=void 0===r.which?0:r.which,e(n,this),n};r.prototype=t.prototype,window.KeyboardEvent=r}}(r(21336))},65857:function(e,t,r){!function(e){try{new window.MouseEvent("event",{bubbles:!0,cancelable:!0})}catch(n){var t=window.MouseEvent||window.Event,r=function(t,r){r=r||{};var n=document.createEvent("MouseEvent");return n.initMouseEvent(t,void 0!==r.bubbles&&r.bubbles,void 0!==r.cancelable&&r.cancelable,void 0===r.view?window:r.view,void 0===r.detail?0:r.detail,void 0===r.screenX?0:r.screenX,void 0===r.screenY?0:r.screenY,void 0===r.clientX?0:r.clientX,void 0===r.clientY?0:r.clientY,void 0!==r.ctrlKey&&r.ctrlKey,void 0!==r.altKey&&r.altKey,void 0!==r.shiftKey&&r.shiftKey,void 0!==r.metaKey&&r.metaKey,void 0===r.button?0:r.button,void 0===r.relatedTarget?null:r.relatedTarget),n.buttons=void 0===r.buttons?0:r.buttons,n.region=void 0===r.region?null:r.region,e(n,this),n};r.prototype=t.prototype,window.MouseEvent=r}}(r(21336))},24932:function(e,t,r){!function(e){try{new window.PointerEvent("event",{bubbles:!0,cancelable:!0})}catch(o){var t=window.PointerEvent||window.Event,r=function(t,r){r=r||{};var n=document.createEvent("PointerEvent");return n.initPointerEvent(t,void 0!==r.bubbles&&r.bubbles,void 0!==r.cancelable&&r.cancelable,void 0===r.view?window:r.view,void 0===r.detail?0:r.detail,void 0===r.screenX?0:r.screenX,void 0===r.screenY?0:r.screenY,void 0===r.clientX?0:r.clientX,void 0===r.clientY?0:r.clientY,void 0!==r.ctrlKey&&r.ctrlKey,void 0!==r.altKey&&r.altKey,void 0!==r.shiftKey&&r.shiftKey,void 0!==r.metaKey&&r.metaKey,void 0===r.button?0:r.button,void 0===r.relatedTarget?null:r.relatedTarget,void 0===r.offsetX?0:r.offsetX,void 0===r.offsetY?0:r.offsetY,void 0===r.width?1:r.width,void 0===r.height?1:r.height,void 0===r.pressure?0:r.pressure,void 0===r.twist?0:r.twist,void 0===r.tiltX?0:r.tiltX,void 0===r.tiltY?0:r.tiltY,void 0===r.pointerId?0:r.pointerId,void 0===r.pointerType?"":r.pointerType,void 0===r.hwTimestamp?0:r.hwTimestamp,void 0!==r.isPrimary&&r.isPrimary),n.tangentialPressure=void 0===r.tangentialPressure?0:r.tangentialPressure,e(n,this),n};r.prototype=t.prototype;var n=Object.getOwnPropertyDescriptor(r.prototype,"rotation");n&&Object.defineProperty(r.prototype,"twist",n),window.PointerEvent=r}}(r(21336))},48227:function(e,t,r){r(29856),r(42389),r(65857),r(65386),r(70592),r(24932)},17187:function(e){"use strict";var t,r="object"==typeof Reflect?Reflect:null,n=r&&"function"==typeof r.apply?r.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};t=r&&"function"==typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var o=Number.isNaN||function(e){return e!=e};function i(){i.init.call(this)}e.exports=i,e.exports.once=function(e,t){return new Promise((function(r,n){function o(r){e.removeListener(t,i),n(r)}function i(){"function"==typeof e.removeListener&&e.removeListener("error",o),r([].slice.call(arguments))}v(e,t,i,{once:!0}),"error"!==t&&function(e,t,r){"function"==typeof e.on&&v(e,"error",t,{once:!0})}(e,o)}))},i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var a=10;function u(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function c(e){return void 0===e._maxListeners?i.defaultMaxListeners:e._maxListeners}function s(e,t,r,n){var o,i,a,s;if(u(r),void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),i=e._events),a=i[t]),void 0===a)a=i[t]=r,++e._eventsCount;else if("function"==typeof a?a=i[t]=n?[r,a]:[a,r]:n?a.unshift(r):a.push(r),(o=c(e))>0&&a.length>o&&!a.warned){a.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=a.length,s=l,console&&console.warn&&console.warn(s)}return e}function l(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function f(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},o=l.bind(n);return o.listener=r,n.wrapFn=o,o}function d(e,t,r){var n=e._events;if(void 0===n)return[];var o=n[t];return void 0===o?[]:"function"==typeof o?r?[o.listener||o]:[o]:r?function(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}(o):h(o,o.length)}function p(e){var t=this._events;if(void 0!==t){var r=t[e];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function h(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}function v(e,t,r,n){if("function"==typeof e.on)n.once?e.once(t,r):e.on(t,r);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function o(i){n.once&&e.removeEventListener(t,o),r(i)}))}}Object.defineProperty(i,"defaultMaxListeners",{enumerable:!0,get:function(){return a},set:function(e){if("number"!=typeof e||e<0||o(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");a=e}}),i.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},i.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||o(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},i.prototype.getMaxListeners=function(){return c(this)},i.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var o="error"===e,i=this._events;if(void 0!==i)o=o&&void 0===i.error;else if(!o)return!1;if(o){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var u=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw u.context=a,u}var c=i[e];if(void 0===c)return!1;if("function"==typeof c)n(c,this,t);else{var s=c.length,l=h(c,s);for(r=0;r<s;++r)n(l[r],this,t)}return!0},i.prototype.addListener=function(e,t){return s(this,e,t,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(e,t){return s(this,e,t,!0)},i.prototype.once=function(e,t){return u(t),this.on(e,f(this,e,t)),this},i.prototype.prependOnceListener=function(e,t){return u(t),this.prependListener(e,f(this,e,t)),this},i.prototype.removeListener=function(e,t){var r,n,o,i,a;if(u(t),void 0===(n=this._events))return this;if(void 0===(r=n[e]))return this;if(r===t||r.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete n[e],n.removeListener&&this.emit("removeListener",e,r.listener||t));else if("function"!=typeof r){for(o=-1,i=r.length-1;i>=0;i--)if(r[i]===t||r[i].listener===t){a=r[i].listener,o=i;break}if(o<0)return this;0===o?r.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(r,o),1===r.length&&(n[e]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",e,a||t)}return this},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(e){var t,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete r[e]),this;if(0===arguments.length){var o,i=Object.keys(r);for(n=0;n<i.length;++n)"removeListener"!==(o=i[n])&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=r[e]))this.removeListener(e,t);else if(void 0!==t)for(n=t.length-1;n>=0;n--)this.removeListener(e,t[n]);return this},i.prototype.listeners=function(e){return d(this,e,!0)},i.prototype.rawListeners=function(e){return d(this,e,!1)},i.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):p.call(e,t)},i.prototype.listenerCount=p,i.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},64063:function(e){"use strict";e.exports=function e(t,r){if(t===r)return!0;if(t&&r&&"object"==typeof t&&"object"==typeof r){if(t.constructor!==r.constructor)return!1;var n,o,i;if(Array.isArray(t)){if((n=t.length)!=r.length)return!1;for(o=n;0!=o--;)if(!e(t[o],r[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if((n=(i=Object.keys(t)).length)!==Object.keys(r).length)return!1;for(o=n;0!=o--;)if(!Object.prototype.hasOwnProperty.call(r,i[o]))return!1;for(o=n;0!=o--;){var a=i[o];if(!e(t[a],r[a]))return!1}return!0}return t!=t&&r!=r}},10646:function(e){e.exports=function(){"use strict";function e(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)e[n]=r[n]}return e}return function t(r,n){function o(t,o,i){if("undefined"!=typeof document){"number"==typeof(i=e({},n,i)).expires&&(i.expires=new Date(Date.now()+864e5*i.expires)),i.expires&&(i.expires=i.expires.toUTCString()),t=encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var u in i)i[u]&&(a+="; "+u,!0!==i[u]&&(a+="="+i[u].split(";")[0]));return document.cookie=t+"="+r.write(o,t)+a}}return Object.create({set:o,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var t=document.cookie?document.cookie.split("; "):[],n={},o=0;o<t.length;o++){var i=t[o].split("="),a=i.slice(1).join("=");try{var u=decodeURIComponent(i[0]);if(n[u]=r.read(a,u),e===u)break}catch(e){}}return e?n[e]:n}},remove:function(t,r){o(t,"",e({},r,{expires:-1}))},withAttributes:function(r){return t(this.converter,e({},this.attributes,r))},withConverter:function(r){return t(e({},this.converter,r),this.attributes)}},{attributes:{value:Object.freeze(n)},converter:{value:Object.freeze(r)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"})}()},18552:function(e,t,r){var n=r(10852)(r(55639),"DataView");e.exports=n},1989:function(e,t,r){var n=r(51789),o=r(80401),i=r(57667),a=r(21327),u=r(81866);function c(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}c.prototype.clear=n,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=a,c.prototype.set=u,e.exports=c},38407:function(e,t,r){var n=r(27040),o=r(14125),i=r(82117),a=r(67518),u=r(13399);function c(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}c.prototype.clear=n,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=a,c.prototype.set=u,e.exports=c},57071:function(e,t,r){var n=r(10852)(r(55639),"Map");e.exports=n},83369:function(e,t,r){var n=r(24785),o=r(11285),i=r(96e3),a=r(49916),u=r(95265);function c(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}c.prototype.clear=n,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=a,c.prototype.set=u,e.exports=c},53818:function(e,t,r){var n=r(10852)(r(55639),"Promise");e.exports=n},58525:function(e,t,r){var n=r(10852)(r(55639),"Set");e.exports=n},88668:function(e,t,r){var n=r(83369),o=r(90619),i=r(72385);function a(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new n;++t<r;)this.add(e[t])}a.prototype.add=a.prototype.push=o,a.prototype.has=i,e.exports=a},46384:function(e,t,r){var n=r(38407),o=r(37465),i=r(63779),a=r(67599),u=r(44758),c=r(34309);function s(e){var t=this.__data__=new n(e);this.size=t.size}s.prototype.clear=o,s.prototype.delete=i,s.prototype.get=a,s.prototype.has=u,s.prototype.set=c,e.exports=s},62705:function(e,t,r){var n=r(55639).Symbol;e.exports=n},11149:function(e,t,r){var n=r(55639).Uint8Array;e.exports=n},70577:function(e,t,r){var n=r(10852)(r(55639),"WeakMap");e.exports=n},34963:function(e){e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,o=0,i=[];++r<n;){var a=e[r];t(a,r,e)&&(i[o++]=a)}return i}},14636:function(e,t,r){var n=r(22545),o=r(35694),i=r(1469),a=r(44144),u=r(65776),c=r(36719),s=Object.prototype.hasOwnProperty;e.exports=function(e,t){var r=i(e),l=!r&&o(e),f=!r&&!l&&a(e),d=!r&&!l&&!f&&c(e),p=r||l||f||d,h=p?n(e.length,String):[],v=h.length;for(var y in e)!t&&!s.call(e,y)||p&&("length"==y||f&&("offset"==y||"parent"==y)||d&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||u(y,v))||h.push(y);return h}},62488:function(e){e.exports=function(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}},82908:function(e){e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}},18470:function(e,t,r){var n=r(77813);e.exports=function(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return-1}},68866:function(e,t,r){var n=r(62488),o=r(1469);e.exports=function(e,t,r){var i=t(e);return o(e)?i:n(i,r(e))}},44239:function(e,t,r){var n=r(62705),o=r(89607),i=r(2333),a=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):i(e)}},9454:function(e,t,r){var n=r(44239),o=r(37005);e.exports=function(e){return o(e)&&"[object Arguments]"==n(e)}},90939:function(e,t,r){var n=r(2492),o=r(37005);e.exports=function e(t,r,i,a,u){return t===r||(null==t||null==r||!o(t)&&!o(r)?t!=t&&r!=r:n(t,r,i,a,e,u))}},2492:function(e,t,r){var n=r(46384),o=r(67114),i=r(18351),a=r(16096),u=r(64160),c=r(1469),s=r(44144),l=r(36719),f="[object Arguments]",d="[object Array]",p="[object Object]",h=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,v,y,m){var g=c(e),b=c(t),w=g?d:u(e),E=b?d:u(t),_=(w=w==f?p:w)==p,O=(E=E==f?p:E)==p,S=w==E;if(S&&s(e)){if(!s(t))return!1;g=!0,_=!1}if(S&&!_)return m||(m=new n),g||l(e)?o(e,t,r,v,y,m):i(e,t,w,r,v,y,m);if(!(1&r)){var x=_&&h.call(e,"__wrapped__"),k=O&&h.call(t,"__wrapped__");if(x||k){var j=x?e.value():e,T=k?t.value():t;return m||(m=new n),y(j,T,r,v,m)}}return!!S&&(m||(m=new n),a(e,t,r,v,y,m))}},2958:function(e,t,r){var n=r(46384),o=r(90939);e.exports=function(e,t,r,i){var a=r.length,u=a,c=!i;if(null==e)return!u;for(e=Object(e);a--;){var s=r[a];if(c&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++a<u;){var l=(s=r[a])[0],f=e[l],d=s[1];if(c&&s[2]){if(void 0===f&&!(l in e))return!1}else{var p=new n;if(i)var h=i(f,d,l,e,t,p);if(!(void 0===h?o(d,f,3,i,p):h))return!1}}return!0}},28458:function(e,t,r){var n=r(23560),o=r(15346),i=r(13218),a=r(80346),u=/^\[object .+?Constructor\]$/,c=Function.prototype,s=Object.prototype,l=c.toString,f=s.hasOwnProperty,d=RegExp("^"+l.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||o(e))&&(n(e)?d:u).test(a(e))}},38749:function(e,t,r){var n=r(44239),o=r(41780),i=r(37005),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&o(e.length)&&!!a[n(e)]}},280:function(e,t,r){var n=r(25726),o=r(86916),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return o(e);var t=[];for(var r in Object(e))i.call(e,r)&&"constructor"!=r&&t.push(r);return t}},22545:function(e){e.exports=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}},27561:function(e,t,r){var n=r(67990),o=/^\s+/;e.exports=function(e){return e?e.slice(0,n(e)+1).replace(o,""):e}},7518:function(e){e.exports=function(e){return function(t){return e(t)}}},74757:function(e){e.exports=function(e,t){return e.has(t)}},14429:function(e,t,r){var n=r(55639)["__core-js_shared__"];e.exports=n},67114:function(e,t,r){var n=r(88668),o=r(82908),i=r(74757);e.exports=function(e,t,r,a,u,c){var s=1&r,l=e.length,f=t.length;if(l!=f&&!(s&&f>l))return!1;var d=c.get(e),p=c.get(t);if(d&&p)return d==t&&p==e;var h=-1,v=!0,y=2&r?new n:void 0;for(c.set(e,t),c.set(t,e);++h<l;){var m=e[h],g=t[h];if(a)var b=s?a(g,m,h,t,e,c):a(m,g,h,e,t,c);if(void 0!==b){if(b)continue;v=!1;break}if(y){if(!o(t,(function(e,t){if(!i(y,t)&&(m===e||u(m,e,r,a,c)))return y.push(t)}))){v=!1;break}}else if(m!==g&&!u(m,g,r,a,c)){v=!1;break}}return c.delete(e),c.delete(t),v}},18351:function(e,t,r){var n=r(62705),o=r(11149),i=r(77813),a=r(67114),u=r(68776),c=r(21814),s=n?n.prototype:void 0,l=s?s.valueOf:void 0;e.exports=function(e,t,r,n,s,f,d){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!f(new o(e),new o(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var p=u;case"[object Set]":var h=1&n;if(p||(p=c),e.size!=t.size&&!h)return!1;var v=d.get(e);if(v)return v==t;n|=2,d.set(e,t);var y=a(p(e),p(t),n,s,f,d);return d.delete(e),y;case"[object Symbol]":if(l)return l.call(e)==l.call(t)}return!1}},16096:function(e,t,r){var n=r(58234),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,i,a,u){var c=1&r,s=n(e),l=s.length;if(l!=n(t).length&&!c)return!1;for(var f=l;f--;){var d=s[f];if(!(c?d in t:o.call(t,d)))return!1}var p=u.get(e),h=u.get(t);if(p&&h)return p==t&&h==e;var v=!0;u.set(e,t),u.set(t,e);for(var y=c;++f<l;){var m=e[d=s[f]],g=t[d];if(i)var b=c?i(g,m,d,t,e,u):i(m,g,d,e,t,u);if(!(void 0===b?m===g||a(m,g,r,i,u):b)){v=!1;break}y||(y="constructor"==d)}if(v&&!y){var w=e.constructor,E=t.constructor;w==E||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof E&&E instanceof E||(v=!1)}return u.delete(e),u.delete(t),v}},31957:function(e,t,r){var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;e.exports=n},58234:function(e,t,r){var n=r(68866),o=r(99551),i=r(3674);e.exports=function(e){return n(e,i,o)}},45050:function(e,t,r){var n=r(37019);e.exports=function(e,t){var r=e.__data__;return n(t)?r["string"==typeof t?"string":"hash"]:r.map}},1499:function(e,t,r){var n=r(89162),o=r(3674);e.exports=function(e){for(var t=o(e),r=t.length;r--;){var i=t[r],a=e[i];t[r]=[i,a,n(a)]}return t}},10852:function(e,t,r){var n=r(28458),o=r(47801);e.exports=function(e,t){var r=o(e,t);return n(r)?r:void 0}},89607:function(e,t,r){var n=r(62705),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,u=n?n.toStringTag:void 0;e.exports=function(e){var t=i.call(e,u),r=e[u];try{e[u]=void 0;var n=!0}catch(e){}var o=a.call(e);return n&&(t?e[u]=r:delete e[u]),o}},99551:function(e,t,r){var n=r(34963),o=r(70479),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,u=a?function(e){return null==e?[]:(e=Object(e),n(a(e),(function(t){return i.call(e,t)})))}:o;e.exports=u},64160:function(e,t,r){var n=r(18552),o=r(57071),i=r(53818),a=r(58525),u=r(70577),c=r(44239),s=r(80346),l="[object Map]",f="[object Promise]",d="[object Set]",p="[object WeakMap]",h="[object DataView]",v=s(n),y=s(o),m=s(i),g=s(a),b=s(u),w=c;(n&&w(new n(new ArrayBuffer(1)))!=h||o&&w(new o)!=l||i&&w(i.resolve())!=f||a&&w(new a)!=d||u&&w(new u)!=p)&&(w=function(e){var t=c(e),r="[object Object]"==t?e.constructor:void 0,n=r?s(r):"";if(n)switch(n){case v:return h;case y:return l;case m:return f;case g:return d;case b:return p}return t}),e.exports=w},47801:function(e){e.exports=function(e,t){return null==e?void 0:e[t]}},51789:function(e,t,r){var n=r(94536);e.exports=function(){this.__data__=n?n(null):{},this.size=0}},80401:function(e){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},57667:function(e,t,r){var n=r(94536),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(n){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return o.call(t,e)?t[e]:void 0}},21327:function(e,t,r){var n=r(94536),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return n?void 0!==t[e]:o.call(t,e)}},81866:function(e,t,r){var n=r(94536);e.exports=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=n&&void 0===t?"__lodash_hash_undefined__":t,this}},65776:function(e){var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,r){var n=typeof e;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&t.test(e))&&e>-1&&e%1==0&&e<r}},37019:function(e){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},15346:function(e,t,r){var n,o=r(14429),i=(n=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";e.exports=function(e){return!!i&&i in e}},25726:function(e){var t=Object.prototype;e.exports=function(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||t)}},89162:function(e,t,r){var n=r(13218);e.exports=function(e){return e==e&&!n(e)}},27040:function(e){e.exports=function(){this.__data__=[],this.size=0}},14125:function(e,t,r){var n=r(18470),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,r=n(t,e);return!(r<0||(r==t.length-1?t.pop():o.call(t,r,1),--this.size,0))}},82117:function(e,t,r){var n=r(18470);e.exports=function(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}},67518:function(e,t,r){var n=r(18470);e.exports=function(e){return n(this.__data__,e)>-1}},13399:function(e,t,r){var n=r(18470);e.exports=function(e,t){var r=this.__data__,o=n(r,e);return o<0?(++this.size,r.push([e,t])):r[o][1]=t,this}},24785:function(e,t,r){var n=r(1989),o=r(38407),i=r(57071);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(i||o),string:new n}}},11285:function(e,t,r){var n=r(45050);e.exports=function(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}},96e3:function(e,t,r){var n=r(45050);e.exports=function(e){return n(this,e).get(e)}},49916:function(e,t,r){var n=r(45050);e.exports=function(e){return n(this,e).has(e)}},95265:function(e,t,r){var n=r(45050);e.exports=function(e,t){var r=n(this,e),o=r.size;return r.set(e,t),this.size+=r.size==o?0:1,this}},68776:function(e){e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r}},94536:function(e,t,r){var n=r(10852)(Object,"create");e.exports=n},86916:function(e,t,r){var n=r(5569)(Object.keys,Object);e.exports=n},31167:function(e,t,r){e=r.nmd(e);var n=r(31957),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o&&n.process,u=function(){try{return i&&i.require&&i.require("util").types||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=u},2333:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},5569:function(e){e.exports=function(e,t){return function(r){return e(t(r))}}},55639:function(e,t,r){var n=r(31957),o="object"==typeof self&&self&&self.Object===Object&&self,i=n||o||Function("return this")();e.exports=i},90619:function(e){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},72385:function(e){e.exports=function(e){return this.__data__.has(e)}},21814:function(e){e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}},37465:function(e,t,r){var n=r(38407);e.exports=function(){this.__data__=new n,this.size=0}},63779:function(e){e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},67599:function(e){e.exports=function(e){return this.__data__.get(e)}},44758:function(e){e.exports=function(e){return this.__data__.has(e)}},34309:function(e,t,r){var n=r(38407),o=r(57071),i=r(83369);e.exports=function(e,t){var r=this.__data__;if(r instanceof n){var a=r.__data__;if(!o||a.length<199)return a.push([e,t]),this.size=++r.size,this;r=this.__data__=new i(a)}return r.set(e,t),this.size=r.size,this}},80346:function(e){var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},67990:function(e){var t=/\s/;e.exports=function(e){for(var r=e.length;r--&&t.test(e.charAt(r)););return r}},23279:function(e,t,r){var n=r(13218),o=r(7771),i=r(14841),a=Math.max,u=Math.min;e.exports=function(e,t,r){var c,s,l,f,d,p,h=0,v=!1,y=!1,m=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function g(t){var r=c,n=s;return c=s=void 0,h=t,f=e.apply(n,r)}function b(e){return h=e,d=setTimeout(E,t),v?g(e):f}function w(e){var r=e-p;return void 0===p||r>=t||r<0||y&&e-h>=l}function E(){var e=o();if(w(e))return _(e);d=setTimeout(E,function(e){var r=t-(e-p);return y?u(r,l-(e-h)):r}(e))}function _(e){return d=void 0,m&&c?g(e):(c=s=void 0,f)}function O(){var e=o(),r=w(e);if(c=arguments,s=this,p=e,r){if(void 0===d)return b(p);if(y)return clearTimeout(d),d=setTimeout(E,t),g(p)}return void 0===d&&(d=setTimeout(E,t)),f}return t=i(t)||0,n(r)&&(v=!!r.leading,l=(y="maxWait"in r)?a(i(r.maxWait)||0,t):l,m="trailing"in r?!!r.trailing:m),O.cancel=function(){void 0!==d&&clearTimeout(d),h=0,c=p=s=d=void 0},O.flush=function(){return void 0===d?f:_(o())},O}},77813:function(e){e.exports=function(e,t){return e===t||e!=e&&t!=t}},35694:function(e,t,r){var n=r(9454),o=r(37005),i=Object.prototype,a=i.hasOwnProperty,u=i.propertyIsEnumerable,c=n(function(){return arguments}())?n:function(e){return o(e)&&a.call(e,"callee")&&!u.call(e,"callee")};e.exports=c},1469:function(e){var t=Array.isArray;e.exports=t},98612:function(e,t,r){var n=r(23560),o=r(41780);e.exports=function(e){return null!=e&&o(e.length)&&!n(e)}},44144:function(e,t,r){e=r.nmd(e);var n=r(55639),o=r(95062),i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,u=a&&a.exports===i?n.Buffer:void 0,c=(u?u.isBuffer:void 0)||o;e.exports=c},23560:function(e,t,r){var n=r(44239),o=r(13218);e.exports=function(e){if(!o(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},41780:function(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},66379:function(e,t,r){var n=r(2958),o=r(1499);e.exports=function(e,t){return e===t||n(e,t,o(t))}},13218:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},37005:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},33448:function(e,t,r){var n=r(44239),o=r(37005);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==n(e)}},36719:function(e,t,r){var n=r(38749),o=r(7518),i=r(31167),a=i&&i.isTypedArray,u=a?o(a):n;e.exports=u},3674:function(e,t,r){var n=r(14636),o=r(280),i=r(98612);e.exports=function(e){return i(e)?n(e):o(e)}},7771:function(e,t,r){var n=r(55639);e.exports=function(){return n.Date.now()}},70479:function(e){e.exports=function(){return[]}},95062:function(e){e.exports=function(){return!1}},23493:function(e,t,r){var n=r(23279),o=r(13218);e.exports=function(e,t,r){var i=!0,a=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return o(r)&&(i="leading"in r?!!r.leading:i,a="trailing"in r?!!r.trailing:a),n(e,t,{leading:i,maxWait:t,trailing:a})}},14841:function(e,t,r){var n=r(27561),o=r(13218),i=r(33448),a=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,c=/^0o[0-7]+$/i,s=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return NaN;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=n(e);var r=u.test(e);return r||c.test(e)?s(e.slice(2),r?2:8):a.test(e)?NaN:+e}},57824:function(e){var t=1e3,r=60*t,n=60*r,o=24*n;function i(e,t,r,n){var o=t>=1.5*r;return Math.round(e/r)+" "+n+(o?"s":"")}e.exports=function(e,a){a=a||{};var u,c,s=typeof e;if("string"===s&&e.length>0)return function(e){if(!((e=String(e)).length>100)){var i=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(i){var a=parseFloat(i[1]);switch((i[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*a;case"weeks":case"week":case"w":return 6048e5*a;case"days":case"day":case"d":return a*o;case"hours":case"hour":case"hrs":case"hr":case"h":return a*n;case"minutes":case"minute":case"mins":case"min":case"m":return a*r;case"seconds":case"second":case"secs":case"sec":case"s":return a*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return a;default:return}}}}(e);if("number"===s&&isFinite(e))return a.long?(u=e,(c=Math.abs(u))>=o?i(u,c,o,"day"):c>=n?i(u,c,n,"hour"):c>=r?i(u,c,r,"minute"):c>=t?i(u,c,t,"second"):u+" ms"):function(e){var i=Math.abs(e);return i>=o?Math.round(e/o)+"d":i>=n?Math.round(e/n)+"h":i>=r?Math.round(e/r)+"m":i>=t?Math.round(e/t)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},21614:function(e,t,r){"use strict";var n;r.r(t),r.d(t,{NIL:function(){return L},parse:function(){return y},stringify:function(){return d},v1:function(){return v},v3:function(){return x},v4:function(){return k},v5:function(){return P},validate:function(){return u},version:function(){return I}});var o=new Uint8Array(16);function i(){if(!n&&!(n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return n(o)}for(var a=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,u=function(e){return"string"==typeof e&&a.test(e)},c=[],s=0;s<256;++s)c.push((s+256).toString(16).substr(1));var l,f,d=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=(c[e[t+0]]+c[e[t+1]]+c[e[t+2]]+c[e[t+3]]+"-"+c[e[t+4]]+c[e[t+5]]+"-"+c[e[t+6]]+c[e[t+7]]+"-"+c[e[t+8]]+c[e[t+9]]+"-"+c[e[t+10]]+c[e[t+11]]+c[e[t+12]]+c[e[t+13]]+c[e[t+14]]+c[e[t+15]]).toLowerCase();if(!u(r))throw TypeError("Stringified UUID is invalid");return r},p=0,h=0,v=function(e,t,r){var n=t&&r||0,o=t||new Array(16),a=(e=e||{}).node||l,u=void 0!==e.clockseq?e.clockseq:f;if(null==a||null==u){var c=e.random||(e.rng||i)();null==a&&(a=l=[1|c[0],c[1],c[2],c[3],c[4],c[5]]),null==u&&(u=f=16383&(c[6]<<8|c[7]))}var s=void 0!==e.msecs?e.msecs:Date.now(),v=void 0!==e.nsecs?e.nsecs:h+1,y=s-p+(v-h)/1e4;if(y<0&&void 0===e.clockseq&&(u=u+1&16383),(y<0||s>p)&&void 0===e.nsecs&&(v=0),v>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");p=s,h=v,f=u;var m=(1e4*(268435455&(s+=122192928e5))+v)%4294967296;o[n++]=m>>>24&255,o[n++]=m>>>16&255,o[n++]=m>>>8&255,o[n++]=255&m;var g=s/4294967296*1e4&268435455;o[n++]=g>>>8&255,o[n++]=255&g,o[n++]=g>>>24&15|16,o[n++]=g>>>16&255,o[n++]=u>>>8|128,o[n++]=255&u;for(var b=0;b<6;++b)o[n+b]=a[b];return t||d(o)},y=function(e){if(!u(e))throw TypeError("Invalid UUID");var t,r=new Uint8Array(16);return r[0]=(t=parseInt(e.slice(0,8),16))>>>24,r[1]=t>>>16&255,r[2]=t>>>8&255,r[3]=255&t,r[4]=(t=parseInt(e.slice(9,13),16))>>>8,r[5]=255&t,r[6]=(t=parseInt(e.slice(14,18),16))>>>8,r[7]=255&t,r[8]=(t=parseInt(e.slice(19,23),16))>>>8,r[9]=255&t,r[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,r[11]=t/4294967296&255,r[12]=t>>>24&255,r[13]=t>>>16&255,r[14]=t>>>8&255,r[15]=255&t,r};function m(e,t,r){function n(e,n,o,i){if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));for(var t=[],r=0;r<e.length;++r)t.push(e.charCodeAt(r));return t}(e)),"string"==typeof n&&(n=y(n)),16!==n.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var a=new Uint8Array(16+e.length);if(a.set(n),a.set(e,n.length),(a=r(a))[6]=15&a[6]|t,a[8]=63&a[8]|128,o){i=i||0;for(var u=0;u<16;++u)o[i+u]=a[u];return o}return d(a)}try{n.name=e}catch(e){}return n.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",n.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",n}function g(e){return 14+(e+64>>>9<<4)+1}function b(e,t){var r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function w(e,t,r,n,o,i){return b((a=b(b(t,e),b(n,i)))<<(u=o)|a>>>32-u,r);var a,u}function E(e,t,r,n,o,i,a){return w(t&r|~t&n,e,t,o,i,a)}function _(e,t,r,n,o,i,a){return w(t&n|r&~n,e,t,o,i,a)}function O(e,t,r,n,o,i,a){return w(t^r^n,e,t,o,i,a)}function S(e,t,r,n,o,i,a){return w(r^(t|~n),e,t,o,i,a)}var x=m("v3",48,(function(e){if("string"==typeof e){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var r=0;r<t.length;++r)e[r]=t.charCodeAt(r)}return function(e){for(var t=[],r=32*e.length,n="0123456789abcdef",o=0;o<r;o+=8){var i=e[o>>5]>>>o%32&255,a=parseInt(n.charAt(i>>>4&15)+n.charAt(15&i),16);t.push(a)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[g(t)-1]=t;for(var r=1732584193,n=-271733879,o=-1732584194,i=271733878,a=0;a<e.length;a+=16){var u=r,c=n,s=o,l=i;r=E(r,n,o,i,e[a],7,-680876936),i=E(i,r,n,o,e[a+1],12,-389564586),o=E(o,i,r,n,e[a+2],17,606105819),n=E(n,o,i,r,e[a+3],22,-1044525330),r=E(r,n,o,i,e[a+4],7,-176418897),i=E(i,r,n,o,e[a+5],12,1200080426),o=E(o,i,r,n,e[a+6],17,-1473231341),n=E(n,o,i,r,e[a+7],22,-45705983),r=E(r,n,o,i,e[a+8],7,1770035416),i=E(i,r,n,o,e[a+9],12,-1958414417),o=E(o,i,r,n,e[a+10],17,-42063),n=E(n,o,i,r,e[a+11],22,-1990404162),r=E(r,n,o,i,e[a+12],7,1804603682),i=E(i,r,n,o,e[a+13],12,-40341101),o=E(o,i,r,n,e[a+14],17,-1502002290),r=_(r,n=E(n,o,i,r,e[a+15],22,1236535329),o,i,e[a+1],5,-165796510),i=_(i,r,n,o,e[a+6],9,-1069501632),o=_(o,i,r,n,e[a+11],14,643717713),n=_(n,o,i,r,e[a],20,-373897302),r=_(r,n,o,i,e[a+5],5,-701558691),i=_(i,r,n,o,e[a+10],9,38016083),o=_(o,i,r,n,e[a+15],14,-660478335),n=_(n,o,i,r,e[a+4],20,-405537848),r=_(r,n,o,i,e[a+9],5,568446438),i=_(i,r,n,o,e[a+14],9,-1019803690),o=_(o,i,r,n,e[a+3],14,-187363961),n=_(n,o,i,r,e[a+8],20,1163531501),r=_(r,n,o,i,e[a+13],5,-1444681467),i=_(i,r,n,o,e[a+2],9,-51403784),o=_(o,i,r,n,e[a+7],14,1735328473),r=O(r,n=_(n,o,i,r,e[a+12],20,-1926607734),o,i,e[a+5],4,-378558),i=O(i,r,n,o,e[a+8],11,-2022574463),o=O(o,i,r,n,e[a+11],16,1839030562),n=O(n,o,i,r,e[a+14],23,-35309556),r=O(r,n,o,i,e[a+1],4,-1530992060),i=O(i,r,n,o,e[a+4],11,1272893353),o=O(o,i,r,n,e[a+7],16,-155497632),n=O(n,o,i,r,e[a+10],23,-1094730640),r=O(r,n,o,i,e[a+13],4,681279174),i=O(i,r,n,o,e[a],11,-358537222),o=O(o,i,r,n,e[a+3],16,-722521979),n=O(n,o,i,r,e[a+6],23,76029189),r=O(r,n,o,i,e[a+9],4,-640364487),i=O(i,r,n,o,e[a+12],11,-421815835),o=O(o,i,r,n,e[a+15],16,530742520),r=S(r,n=O(n,o,i,r,e[a+2],23,-995338651),o,i,e[a],6,-198630844),i=S(i,r,n,o,e[a+7],10,1126891415),o=S(o,i,r,n,e[a+14],15,-1416354905),n=S(n,o,i,r,e[a+5],21,-57434055),r=S(r,n,o,i,e[a+12],6,1700485571),i=S(i,r,n,o,e[a+3],10,-1894986606),o=S(o,i,r,n,e[a+10],15,-1051523),n=S(n,o,i,r,e[a+1],21,-2054922799),r=S(r,n,o,i,e[a+8],6,1873313359),i=S(i,r,n,o,e[a+15],10,-30611744),o=S(o,i,r,n,e[a+6],15,-1560198380),n=S(n,o,i,r,e[a+13],21,1309151649),r=S(r,n,o,i,e[a+4],6,-145523070),i=S(i,r,n,o,e[a+11],10,-1120210379),o=S(o,i,r,n,e[a+2],15,718787259),n=S(n,o,i,r,e[a+9],21,-343485551),r=b(r,u),n=b(n,c),o=b(o,s),i=b(i,l)}return[r,n,o,i]}(function(e){if(0===e.length)return[];for(var t=8*e.length,r=new Uint32Array(g(t)),n=0;n<t;n+=8)r[n>>5]|=(255&e[n/8])<<n%32;return r}(e),8*e.length))})),k=function(e,t,r){var n=(e=e||{}).random||(e.rng||i)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){r=r||0;for(var o=0;o<16;++o)t[r+o]=n[o];return t}return d(n)};function j(e,t,r,n){switch(e){case 0:return t&r^~t&n;case 1:case 3:return t^r^n;case 2:return t&r^t&n^r&n}}function T(e,t){return e<<t|e>>>32-t}var P=m("v5",80,(function(e){var t=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){var n=unescape(encodeURIComponent(e));e=[];for(var o=0;o<n.length;++o)e.push(n.charCodeAt(o))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var i=e.length/4+2,a=Math.ceil(i/16),u=new Array(a),c=0;c<a;++c){for(var s=new Uint32Array(16),l=0;l<16;++l)s[l]=e[64*c+4*l]<<24|e[64*c+4*l+1]<<16|e[64*c+4*l+2]<<8|e[64*c+4*l+3];u[c]=s}u[a-1][14]=8*(e.length-1)/Math.pow(2,32),u[a-1][14]=Math.floor(u[a-1][14]),u[a-1][15]=8*(e.length-1)&4294967295;for(var f=0;f<a;++f){for(var d=new Uint32Array(80),p=0;p<16;++p)d[p]=u[f][p];for(var h=16;h<80;++h)d[h]=T(d[h-3]^d[h-8]^d[h-14]^d[h-16],1);for(var v=r[0],y=r[1],m=r[2],g=r[3],b=r[4],w=0;w<80;++w){var E=Math.floor(w/20),_=T(v,5)+j(E,y,m,g)+b+t[E]+d[w]>>>0;b=g,g=m,m=T(y,30)>>>0,y=v,v=_}r[0]=r[0]+v>>>0,r[1]=r[1]+y>>>0,r[2]=r[2]+m>>>0,r[3]=r[3]+g>>>0,r[4]=r[4]+b>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,255&r[0],r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,255&r[1],r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,255&r[2],r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,255&r[3],r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,255&r[4]]})),L="00000000-0000-0000-0000-000000000000",I=function(e){if(!u(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}},5715:function(e,t,r){"use strict";let n,o,i;r.r(t),r.d(t,{ALWAYS:function(){return Pe},DECIMAL_FIT:function(){return Ie},DECIMAL_ROUND:function(){return Le},Decoder:function(){return x},Encoder:function(){return ge},FLOAT32_OPTIONS:function(){return re},NEVER:function(){return Te},REUSE_BUFFER_MODE:function(){return Ae},Tag:function(){return F},addExtension:function(){return ke},clearSource:function(){return Q},decode:function(){return ee},decodeIter:function(){return Ne},decodeMultiple:function(){return te},encode:function(){return je},encodeIter:function(){return Me},isNativeAccelerationEnabled:function(){return A},roundFloat32:function(){return ne}});try{n=new TextDecoder}catch(e){}let a=0;const u=[],c={};let s,l,f,d,p,h,v,y=u,m=0,g={},b=0,w=0,E=[],_=[],O={useRecords:!1,mapsAsObjects:!0},S=!1;class x{constructor(e){if(e&&(!e.keyMap&&!e._keyMap||e.useRecords||(e.useRecords=!1,e.mapsAsObjects=!0),!1===e.useRecords&&void 0===e.mapsAsObjects&&(e.mapsAsObjects=!0),e.getStructures&&(e.getShared=e.getStructures),e.getShared&&!e.structures&&((e.structures=[]).uninitialized=!0),e.keyMap)){this.mapKey=new Map;for(let[t,r]of Object.entries(e.keyMap))this.mapKey.set(r,t)}Object.assign(this,e)}decodeKey(e){return this.keyMap&&this.mapKey.get(e)||e}encodeKey(e){return this.keyMap&&this.keyMap.hasOwnProperty(e)?this.keyMap[e]:e}encodeKeys(e){if(!this._keyMap)return e;let t=new Map;for(let[r,n]of Object.entries(e))t.set(this._keyMap.hasOwnProperty(r)?this._keyMap[r]:r,n);return t}decodeKeys(e){if(!this._keyMap||"Map"!=e.constructor.name)return e;if(!this._mapKey){this._mapKey=new Map;for(let[e,t]of Object.entries(this._keyMap))this._mapKey.set(t,e)}let t={};return e.forEach(((e,r)=>t[L(this._mapKey.has(r)?this._mapKey.get(r):r)]=e)),t}mapDecode(e,t){let r=this.decode(e);return this._keyMap&&"Array"===r.constructor.name?r.map((e=>this.decodeKeys(e))):r}decode(e,t){if(o)return X((()=>(Q(),this?this.decode(e,t):x.prototype.decode.call(O,e,t))));i=t>-1?t:e.length,a=0,m=0,w=0,l=null,y=u,f=null,o=e;try{h=e.dataView||(e.dataView=new DataView(e.buffer,e.byteOffset,e.byteLength))}catch(t){if(o=null,e instanceof Uint8Array)throw t;throw new Error("Source must be a Uint8Array or Buffer but was a "+(e&&"object"==typeof e?e.constructor.name:typeof e))}if(this instanceof x){if(g=this,p=this.sharedValues&&(this.pack?new Array(this.maxPrivatePackedValues||16).concat(this.sharedValues):this.sharedValues),this.structures)return s=this.structures,k();(!s||s.length>0)&&(s=[])}else g=O,(!s||s.length>0)&&(s=[]),p=null;return k()}decodeMultiple(e,t){let r,n=0;try{let o=e.length;S=!0;let i=this?this.decode(e,o):Z.decode(e,o);if(!t){for(r=[i];a<o;)n=a,r.push(k());return r}if(!1===t(i))return;for(;a<o;)if(n=a,!1===t(k()))return}catch(e){throw e.lastPosition=n,e.values=r,e}finally{S=!1,Q()}}}function k(){try{let e=j();if(f){if(a>=f.postBundlePosition){let e=new Error("Unexpected bundle position");throw e.incomplete=!0,e}a=f.postBundlePosition}if(a==i)s=null,o=null,d&&(d=null);else{if(a>i){let e=new Error("Unexpected end of CBOR data");throw e.incomplete=!0,e}if(!S)throw new Error("Data read, but end of buffer not reached")}return e}catch(e){throw Q(),(e instanceof RangeError||e.message.startsWith("Unexpected end of buffer"))&&(e.incomplete=!0),e}}function j(){let e=o[a++],t=e>>5;if(e&=31,e>23)switch(e){case 24:e=o[a++];break;case 25:if(7==t)return function(){let e=o[a++],t=o[a++],r=(127&e)>>2;if(31===r)return t||3&e?NaN:128&e?-1/0:1/0;if(0===r){let r=((3&e)<<8|t)/(1<<24);return 128&e?-r:r}return D[3]=128&e|56+(r>>1),D[2]=(7&e)<<5|t>>3,D[1]=t<<5,D[0]=0,R[0]}();e=h.getUint16(a),a+=2;break;case 26:if(7==t){let e=h.getFloat32(a);if(g.useFloat32>2){let t=J[(127&o[a])<<1|o[a+1]>>7];return a+=4,(t*e+(e>0?.5:-.5)>>0)/t}return a+=4,e}e=h.getUint32(a),a+=4;break;case 27:if(7==t){let e=h.getFloat64(a);return a+=8,e}if(t>1){if(h.getUint32(a)>0)throw new Error("JavaScript does not support arrays, maps, or strings with length over 4294967295");e=h.getUint32(a+4)}else g.int64AsNumber?(e=4294967296*h.getUint32(a),e+=h.getUint32(a+4)):e=h.getBigUint64(a);a+=8;break;case 31:switch(t){case 2:case 3:throw new Error("Indefinite length not supported for byte or text strings");case 4:let e,r=[],n=0;for(;(e=j())!=c;)r[n++]=e;return 4==t?r:3==t?r.join(""):Buffer.concat(r);case 5:let o;if(g.mapsAsObjects){let e={};if(g.keyMap)for(;(o=j())!=c;)e[L(g.decodeKey(o))]=j();else for(;(o=j())!=c;)e[L(o)]=j();return e}{v&&(g.mapsAsObjects=!0,v=!1);let e=new Map;if(g.keyMap)for(;(o=j())!=c;)e.set(g.decodeKey(o),j());else for(;(o=j())!=c;)e.set(o,j());return e}case 7:return c;default:throw new Error("Invalid major type for indefinite length "+t)}default:throw new Error("Unknown token "+e)}switch(t){case 0:return e;case 1:return~e;case 2:return r=e,g.copyBuffers?Uint8Array.prototype.slice.call(o,a,a+=r):o.subarray(a,a+=r);case 3:if(w>=a)return l.slice(a-b,(a+=e)-b);if(0==w&&i<140&&e<32){let t=e<16?N(e):function(e){let t=a,r=new Array(e);for(let n=0;n<e;n++){const e=o[a++];if((128&e)>0)return void(a=t);r[n]=e}return M.apply(String,r)}(e);if(null!=t)return t}return I(e);case 4:let t=new Array(e);for(let r=0;r<e;r++)t[r]=j();return t;case 5:if(g.mapsAsObjects){let t={};if(g.keyMap)for(let r=0;r<e;r++)t[L(g.decodeKey(j()))]=j();else for(let r=0;r<e;r++)t[L(j())]=j();return t}{v&&(g.mapsAsObjects=!0,v=!1);let t=new Map;if(g.keyMap)for(let r=0;r<e;r++)t.set(g.decodeKey(j()),j());else for(let r=0;r<e;r++)t.set(j(),j());return t}case 6:if(e>=57337){let t=s[8191&e];if(t)return t.read||(t.read=P(t)),t.read();if(e<65536){if(57343==e)return U(j());if(57342==e){let e=q(),t=j();for(let r=2;r<e;r++)U([t++,j()]);return j()}if(57337==e)return function(){let e=q(),t=a+j();for(let t=2;t<e;t++){let e=q();a+=e}let r=a;return a=t,f=[C(q()),C(q())],f.position0=0,f.position1=0,f.postBundlePosition=a,a=r,j()}();if(g.getShared&&($(),t=s[8191&e],t))return t.read||(t.read=P(t)),t.read()}}let n=E[e];if(n)return n.handlesRead?n(j):n(j());{let t=j();for(let r=0;r<_.length;r++){let n=_[r](e,t);if(void 0!==n)return n}return new F(t,e)}case 7:switch(e){case 20:return!1;case 21:return!0;case 22:return null;case 23:return;default:let t=(p||G())[e];if(void 0!==t)return t;throw new Error("Unknown token "+e)}default:if(isNaN(e)){let e=new Error("Unexpected end of CBOR data");throw e.incomplete=!0,e}throw new Error("Unknown CBOR token "+e)}var r}const T=/^[a-zA-Z_$][a-zA-Z\d_$]*$/;function P(e){return e.slowReads=0,function(){let e=o[a++];if(e&=31,e>23)switch(e){case 24:e=o[a++];break;case 25:e=h.getUint16(a),a+=2;break;case 26:e=h.getUint32(a),a+=4;break;default:throw new Error("Expected array header, but got "+o[a-1])}let t=this.compiledReader;for(;t;){if(t.propertyCount===e)return t(j);t=t.next}if(this.slowReads++>=3){let r=this.length==e?this:this.slice(0,e);return t=g.keyMap?new Function("r","return {"+r.map((e=>g.decodeKey(e))).map((e=>T.test(e)?L(e)+":r()":"["+JSON.stringify(e)+"]:r()")).join(",")+"}"):new Function("r","return {"+r.map((e=>T.test(e)?L(e)+":r()":"["+JSON.stringify(e)+"]:r()")).join(",")+"}"),this.compiledReader&&(t.next=this.compiledReader),t.propertyCount=e,this.compiledReader=t,t(j)}let r={};if(g.keyMap)for(let t=0;t<e;t++)r[L(g.decodeKey(this[t]))]=j();else for(let t=0;t<e;t++)r[L(this[t])]=j();return r}}function L(e){return"__proto__"===e?"__proto_":e}let I=C,A=!1;function C(e){let t;if(e<16&&(t=N(e)))return t;if(e>64&&n)return n.decode(o.subarray(a,a+=e));const r=a+e,i=[];for(t="";a<r;){const e=o[a++];if(0==(128&e))i.push(e);else if(192==(224&e)){const t=63&o[a++];i.push((31&e)<<6|t)}else if(224==(240&e)){const t=63&o[a++],r=63&o[a++];i.push((31&e)<<12|t<<6|r)}else if(240==(248&e)){let t=(7&e)<<18|(63&o[a++])<<12|(63&o[a++])<<6|63&o[a++];t>65535&&(t-=65536,i.push(t>>>10&1023|55296),t=56320|1023&t),i.push(t)}else i.push(e);i.length>=4096&&(t+=M.apply(String,i),i.length=0)}return i.length>0&&(t+=M.apply(String,i)),t}let M=String.fromCharCode;function N(e){if(e<4){if(e<2){if(0===e)return"";{let e=o[a++];return(128&e)>1?void(a-=1):M(e)}}{let t=o[a++],r=o[a++];if((128&t)>0||(128&r)>0)return void(a-=2);if(e<3)return M(t,r);let n=o[a++];return(128&n)>0?void(a-=3):M(t,r,n)}}{let t=o[a++],r=o[a++],n=o[a++],i=o[a++];if((128&t)>0||(128&r)>0||(128&n)>0||(128&i)>0)return void(a-=4);if(e<6){if(4===e)return M(t,r,n,i);{let e=o[a++];return(128&e)>0?void(a-=5):M(t,r,n,i,e)}}if(e<8){let u=o[a++],c=o[a++];if((128&u)>0||(128&c)>0)return void(a-=6);if(e<7)return M(t,r,n,i,u,c);let s=o[a++];return(128&s)>0?void(a-=7):M(t,r,n,i,u,c,s)}{let u=o[a++],c=o[a++],s=o[a++],l=o[a++];if((128&u)>0||(128&c)>0||(128&s)>0||(128&l)>0)return void(a-=8);if(e<10){if(8===e)return M(t,r,n,i,u,c,s,l);{let e=o[a++];return(128&e)>0?void(a-=9):M(t,r,n,i,u,c,s,l,e)}}if(e<12){let f=o[a++],d=o[a++];if((128&f)>0||(128&d)>0)return void(a-=10);if(e<11)return M(t,r,n,i,u,c,s,l,f,d);let p=o[a++];return(128&p)>0?void(a-=11):M(t,r,n,i,u,c,s,l,f,d,p)}{let f=o[a++],d=o[a++],p=o[a++],h=o[a++];if((128&f)>0||(128&d)>0||(128&p)>0||(128&h)>0)return void(a-=12);if(e<14){if(12===e)return M(t,r,n,i,u,c,s,l,f,d,p,h);{let e=o[a++];return(128&e)>0?void(a-=13):M(t,r,n,i,u,c,s,l,f,d,p,h,e)}}{let v=o[a++],y=o[a++];if((128&v)>0||(128&y)>0)return void(a-=14);if(e<15)return M(t,r,n,i,u,c,s,l,f,d,p,h,v,y);let m=o[a++];return(128&m)>0?void(a-=15):M(t,r,n,i,u,c,s,l,f,d,p,h,v,y,m)}}}}}let R=new Float32Array(1),D=new Uint8Array(R.buffer,0,4);new Array(4096);class F{constructor(e,t){this.value=e,this.tag=t}}E[0]=e=>new Date(e),E[1]=e=>new Date(Math.round(1e3*e)),E[2]=e=>{let t=BigInt(0);for(let r=0,n=e.byteLength;r<n;r++)t=BigInt(e[r])+t<<BigInt(8);return t},E[3]=e=>BigInt(-1)-E[2](e),E[4]=e=>+(e[1]+"e"+e[0]),E[5]=e=>e[1]*Math.exp(e[0]*Math.log(2));const U=e=>{let t=e[0]-57344,r=e[1],n=s[t];n&&n.isShared&&((s.restoreStructures||(s.restoreStructures=[]))[t]=n),s[t]=r,r.read=P(r);let o={};if(g.keyMap)for(let t=2,n=e.length;t<n;t++)o[L(g.decodeKey(r[t-2]))]=e[t];else for(let t=2,n=e.length;t<n;t++)o[L(r[t-2])]=e[t];return o};E[105]=U,E[14]=e=>f?f[0].slice(f.position0,f.position0+=e):new F(e,14),E[15]=e=>f?f[1].slice(f.position1,f.position1+=e):new F(e,15);let W={Error:Error,RegExp:RegExp};E[27]=e=>(W[e[0]]||Error)(e[1],e[2]);const z=e=>{if(132!=o[a++])throw new Error("Packed values structure must be followed by a 4 element array");let t=e();return p=p?t.concat(p.slice(t.length)):t,p.prefixes=e(),p.suffixes=e(),e()};function B(e,t){return"string"==typeof e?e+t:e instanceof Array?e.concat(t):Object.assign({},e,t)}function G(){if(!p){if(!g.getShared)throw new Error("No packed values available");$()}return p}z.handlesRead=!0,E[51]=z,E[6]=e=>{if(!p){if(!g.getShared)return new F(e,6);$()}if("number"==typeof e)return p[16+(e>=0?2*e:-2*e-1)];throw new Error("No support for non-integer packed references yet")},E[25]=e=>stringRefs[e],E[256]=e=>{stringRefs=[];try{return e()}finally{stringRefs=null}},E[256].handlesRead=!0,E[28]=e=>{d||(d=new Map,d.id=0);let t,r=d.id++;t=o[a]>>5==4?[]:{};let n={target:t};d.set(r,n);let i=e();return n.used?Object.assign(t,i):(n.target=i,i)},E[28].handlesRead=!0,E[29]=e=>{let t=d.get(e);return t.used=!0,t.target},E[258]=e=>new Set(e),(E[259]=e=>(g.mapsAsObjects&&(g.mapsAsObjects=!1,v=!0),e())).handlesRead=!0,_.push(((e,t)=>e>=225&&e<=255?B(G().prefixes[e-224],t):e>=28704&&e<=32767?B(G().prefixes[e-28672],t):e>=1879052288&&e<=2147483647?B(G().prefixes[e-1879048192],t):e>=216&&e<=223?B(t,G().suffixes[e-216]):e>=27647&&e<=28671?B(t,G().suffixes[e-27639]):e>=1811940352&&e<=1879048191?B(t,G().suffixes[e-1811939328]):1399353956==e?{packedValues:p,structures:s.slice(0),version:t}:55799==e?t:void 0));const V=1==new Uint8Array(new Uint16Array([1]).buffer)[0],Y=[Uint8Array,Uint8ClampedArray,Uint16Array,Uint32Array,"undefined"==typeof BigUint64Array?{name:"BigUint64Array"}:BigUint64Array,Int8Array,Int16Array,Int32Array,"undefined"==typeof BigInt64Array?{name:"BigInt64Array"}:BigInt64Array,Float32Array,Float64Array],H=[64,68,69,70,71,72,77,78,79,85,86];for(let e=0;e<Y.length;e++)K(Y[e],H[e]);function K(e,t){let r="get"+e.name.slice(0,-5);"function"!=typeof e&&(e=null);let n=e.BYTES_PER_ELEMENT;for(let o=0;o<2;o++){if(!o&&1==n)continue;let i=2==n?1:4==n?2:3;E[o?t:t-4]=1==n||o==V?r=>{if(!e)throw new Error("Could not find typed array for code "+t);return new e(Uint8Array.prototype.slice.call(r,0).buffer)}:n=>{if(!e)throw new Error("Could not find typed array for code "+t);let a=new DataView(n.buffer,n.byteOffset,n.byteLength),u=n.length>>i,c=new e(u),s=a[r];for(let e=0;e<u;e++)c[e]=s.call(a,e<<i,o);return c}}}function q(){let e=31&o[a++];if(e>23)switch(e){case 24:e=o[a++];break;case 25:e=h.getUint16(a),a+=2;break;case 26:e=h.getUint32(a),a+=4}return e}function $(){if(g.getShared){let e=X((()=>(o=null,g.getShared())))||{},t=e.structures||[];g.sharedVersion=e.version,p=g.sharedValues=e.packedValues,!0===s?g.structures=s=t:s.splice.apply(s,[0,t.length].concat(t))}}function X(e){let t=i,r=a,n=m,u=b,c=w,p=l,v=y,E=d,_=f,O=new Uint8Array(o.slice(0,i)),x=s,k=g,j=S,T=e();return i=t,a=r,m=n,b=u,w=c,l=p,y=v,d=E,f=_,o=O,S=j,s=x,g=k,h=new DataView(o.buffer,o.byteOffset,o.byteLength),T}function Q(){o=null,d=null,s=null}const J=new Array(147);for(let e=0;e<256;e++)J[e]=+("1e"+Math.floor(45.15-.30103*e));let Z=new x({useRecords:!1});const ee=Z.decode,te=Z.decodeMultiple,re={NEVER:0,ALWAYS:1,DECIMAL_ROUND:3,DECIMAL_FIT:4};function ne(e){R[0]=e;let t=J[(127&D[3])<<1|D[2]>>7];return(t*e+(e>0?.5:-.5)>>0)/t}let oe,ie,ae;try{oe=new TextEncoder}catch(e){}const ue="undefined"!=typeof Buffer,ce=ue?Buffer.allocUnsafeSlow:Uint8Array,se=ue?Buffer:Uint8Array,le=ue?4294967296:2144337920;let fe,de,pe,he=0,ve=null;const ye=/[\u0080-\uFFFF]/,me=Symbol("record-id");class ge extends x{constructor(e){let t,r,n,o,i;super(e),this.offset=0,e=e||{};let a=se.prototype.utf8Write?function(e,t,r){return fe.utf8Write(e,t,r)}:!(!oe||!oe.encodeInto)&&function(e,t){return oe.encodeInto(e,fe.subarray(t)).written},u=this,c=e.structures||e.saveStructures,s=e.maxSharedStructures;if(null==s&&(s=c?128:0),s>8190)throw new Error("Maximum maxSharedStructure is 8190");let l=e.sequential;l&&(s=0),this.structures||(this.structures=[]),this.saveStructures&&(this.saveShared=this.saveStructures);let f,d,p,h=e.sharedValues;if(h){p=Object.create(null);for(let e=0,t=h.length;e<t;e++)p[h[e]]=e}let v=[],y=0,m=0;this.mapEncode=function(e,t){return this._keyMap&&!this._mapped&&"Array"===e.constructor.name&&(e=e.map((e=>this.encodeKeys(e)))),this.encode(e,t)},this.encode=function(a,c){if(fe||(fe=new ce(8192),de=new DataView(fe.buffer,0,8192),he=0),pe=fe.length-10,pe-he<2048?(fe=new ce(fe.length),de=new DataView(fe.buffer,0,fe.length),pe=fe.length-10,he=0):c===Ae&&(he=he+7&2147483640),t=he,u.useSelfDescribedHeader&&(de.setUint32(he,3654940416),he+=3),i=u.structuredClone?new Map:null,u.bundleStrings&&"string"!=typeof a?(ve=[],ve.size=1/0):ve=null,r=u.structures,r){if(r.uninitialized){let e=u.getShared()||{};u.structures=r=e.structures||[],u.sharedVersion=e.version;let t=u.sharedValues=e.packedValues;if(t){p={};for(let e=0,r=t.length;e<r;e++)p[t[e]]=e}}let e=r.length;if(e>s&&!l&&(e=s),!r.transitions){r.transitions=Object.create(null);for(let t=0;t<e;t++){let e=r[t];if(!e)continue;let n,o=r.transitions;for(let r=0,i=e.length;r<i;r++){void 0===o[me]&&(o[me]=t);let i=e[r];n=o[i],n||(n=o[i]=Object.create(null)),o=n}o[me]=1048576|t}}l||(r.nextId=e)}if(n&&(n=!1),o=r||[],d=p,e.pack){let t=new Map;if(t.values=[],t.encoder=u,t.maxValues=e.maxPrivatePackedValues||(p?16:1/0),t.objectMap=p||!1,t.samplingPackedValues=f,Ee(a,t),t.values.length>0){fe[he++]=216,fe[he++]=51,we(4);let e=t.values;g(e),we(0),we(0),d=Object.create(p||null);for(let t=0,r=e.length;t<r;t++)d[e[t]]=t}}try{if(g(a),ve&&xe(t,g),u.offset=he,i&&i.idsToInsert){he+=2*i.idsToInsert.length,he>pe&&w(he),u.offset=he;let e=function(e,t){let r,n=2*t.length,o=e.length-n;t.sort(((e,t)=>e.offset>t.offset?1:-1));for(let r=0;r<t.length;r++){let n=t[r];n.id=r;for(let t of n.references)e[t++]=r>>8,e[t]=255&r}for(;r=t.pop();){let t=r.offset;e.copyWithin(t+n,t,o),n-=2;let i=t+n;e[i++]=216,e[i++]=28,o=t}return e}(fe.subarray(t,he),i.idsToInsert);return i=null,e}return c&Ae?(fe.start=t,fe.end=he,fe):fe.subarray(t,he)}finally{if(r)if(m<10&&m++,r.length>s&&(r.length=s),y>1e4)r.transitions=null,m=0,y=0,v.length>0&&(v=[]);else if(v.length>0&&!l){for(let e=0,t=v.length;e<t;e++)v[e][me]=void 0;v=[]}if(n&&u.saveShared){u.structures.length>s&&(u.structures=u.structures.slice(0,s));let e=fe.subarray(t,he);return!1===u.updateSharedData()?u.encode(a):e}c&Ce&&(he=t)}},this.findCommonStringsToPack=()=>(f=new Map,p||(p=Object.create(null)),e=>{let t=e&&e.threshold||4,r=this.pack?e.maxPrivatePackedValues||16:0;h||(h=this.sharedValues=[]);for(let[e,o]of f)o.count>t&&(p[e]=r++,h.push(e),n=!0);for(;this.saveShared&&!1===this.updateSharedData(););f=null});const g=r=>{he>pe&&(fe=w(he));var n,o=typeof r;if("string"===o){if(d){let t=d[r];if(t>=0)return void(t<16?fe[he++]=t+224:(fe[he++]=198,g(1&t?15-t>>1:t-16>>1)));if(f&&!e.pack){let e=f.get(r);e?e.count++:f.set(r,{count:1})}}let o,i=r.length;if(ve&&i>=4&&i<1024){if((ve.size+=i)>61440){let e,r=(ve[0]?3*ve[0].length+ve[1].length:0)+10;he+r>pe&&(fe=w(he+r)),fe[he++]=217,fe[he++]=223,fe[he++]=249,fe[he++]=ve.position?132:130,fe[he++]=26,e=he-t,he+=4,ve.position&&xe(t,g),ve=["",""],ve.size=0,ve.position=e}let e=ye.test(r);return ve[e?0:1]+=r,fe[he++]=e?206:207,void g(i)}o=i<32?1:i<256?2:i<65536?3:5;let u=3*i;if(he+u>pe&&(fe=w(he+u)),i<64||!a){let e,t,a,u=he+o;for(e=0;e<i;e++)t=r.charCodeAt(e),t<128?fe[u++]=t:t<2048?(fe[u++]=t>>6|192,fe[u++]=63&t|128):55296==(64512&t)&&56320==(64512&(a=r.charCodeAt(e+1)))?(t=65536+((1023&t)<<10)+(1023&a),e++,fe[u++]=t>>18|240,fe[u++]=t>>12&63|128,fe[u++]=t>>6&63|128,fe[u++]=63&t|128):(fe[u++]=t>>12|224,fe[u++]=t>>6&63|128,fe[u++]=63&t|128);n=u-he-o}else n=a(r,he+o,u);n<24?fe[he++]=96|n:n<256?(o<2&&fe.copyWithin(he+2,he+1,he+1+n),fe[he++]=120,fe[he++]=n):n<65536?(o<3&&fe.copyWithin(he+3,he+2,he+2+n),fe[he++]=121,fe[he++]=n>>8,fe[he++]=255&n):(o<5&&fe.copyWithin(he+5,he+3,he+3+n),fe[he++]=122,de.setUint32(he,n),he+=4),he+=n}else if("number"===o)if(r>>>0===r)r<24?fe[he++]=r:r<256?(fe[he++]=24,fe[he++]=r):r<65536?(fe[he++]=25,fe[he++]=r>>8,fe[he++]=255&r):(fe[he++]=26,de.setUint32(he,r),he+=4);else if(r>>0===r)r>=-24?fe[he++]=31-r:r>=-256?(fe[he++]=56,fe[he++]=~r):r>=-65536?(fe[he++]=57,de.setUint16(he,~r),he+=2):(fe[he++]=58,de.setUint32(he,~r),he+=4);else{let e;if((e=this.useFloat32)>0&&r<4294967296&&r>=-2147483648){let t;if(fe[he++]=250,de.setFloat32(he,r),e<4||(t=r*J[(127&fe[he])<<1|fe[he+1]>>7])>>0===t)return void(he+=4);he--}fe[he++]=251,de.setFloat64(he,r),he+=8}else if("object"===o)if(r){if(i){let e=i.get(r);if(e){if(fe[he++]=216,fe[he++]=29,fe[he++]=25,!e.references){let t=i.idsToInsert||(i.idsToInsert=[]);e.references=[],t.push(e)}return e.references.push(he-t),void(he+=2)}i.set(r,{offset:he-t})}let e=r.constructor;if(e===Object)b(r,!0);else if(e===Array){(n=r.length)<24?fe[he++]=128|n:we(n);for(let e=0;e<n;e++)g(r[e])}else if(e===Map)if((this.mapsAsObjects?!1!==this.useTag259ForMaps:this.useTag259ForMaps)&&(fe[he++]=217,fe[he++]=1,fe[he++]=3),(n=r.size)<24?fe[he++]=160|n:n<256?(fe[he++]=184,fe[he++]=n):n<65536?(fe[he++]=185,fe[he++]=n>>8,fe[he++]=255&n):(fe[he++]=186,de.setUint32(he,n),he+=4),u.keyMap)for(let[e,t]of r)g(u.encodeKey(e)),g(t);else for(let[e,t]of r)g(e),g(t);else{for(let e=0,t=ie.length;e<t;e++)if(r instanceof ae[e]){let t=ie[e],n=t.tag;return null==n&&(n=t.getTag&&t.getTag.call(this,r)),n<24?fe[he++]=192|n:n<256?(fe[he++]=216,fe[he++]=n):n<65536?(fe[he++]=217,fe[he++]=n>>8,fe[he++]=255&n):n>-1&&(fe[he++]=218,de.setUint32(he,n),he+=4),void t.encode.call(this,r,g,w)}if(r[Symbol.iterator]){fe[he++]=159;for(let e of r)g(e);return void(fe[he++]=255)}b(r,!r.hasOwnProperty)}}else fe[he++]=246;else if("boolean"===o)fe[he++]=r?245:244;else if("bigint"===o){if(r<BigInt(1)<<BigInt(64)&&r>=0)fe[he++]=27,de.setBigUint64(he,r);else if(r>-(BigInt(1)<<BigInt(64))&&r<0)fe[he++]=59,de.setBigUint64(he,-r-BigInt(1));else{if(!this.largeBigIntToFloat)throw new RangeError(r+" was too large to fit in CBOR 64-bit integer format, set largeBigIntToFloat to convert to float-64");fe[he++]=251,de.setFloat64(he,Number(r))}he+=8}else{if("undefined"!==o)throw new Error("Unknown type: "+o);fe[he++]=247}},b=!1===this.useRecords?this.variableMapSize?e=>{let t=Object.keys(e),r=Object.values(e),n=t.length;if(n<24?fe[he++]=160|n:n<256?(fe[he++]=184,fe[he++]=n):n<65536?(fe[he++]=185,fe[he++]=n>>8,fe[he++]=255&n):(fe[he++]=186,de.setUint32(he,n),he+=4),u.keyMap)for(let e=0;e<n;e++)g(encodeKey(t[e])),g(r[e]);else for(let e=0;e<n;e++)g(t[e]),g(r[e])}:(e,r)=>{fe[he++]=185;let n=he-t;he+=2;let o=0;if(u.keyMap)for(let t in e)(r||e.hasOwnProperty(t))&&(g(u.encodeKey(t)),g(e[t]),o++);else for(let t in e)(r||e.hasOwnProperty(t))&&(g(t),g(e[t]),o++);fe[n+++t]=o>>8,fe[n+t]=255&o}:(e,t)=>{let r,i,a,u=o.transitions||(o.transitions=Object.create(null)),c=0,l=0;if(this.keyMap){a=Object.keys(e).map((e=>this.encodeKey(e))),l=a.length;for(let e=0;e<l;e++){let t=a[e];r=u[t],r||(r=u[t]=Object.create(null),c++),u=r}}else for(let n in e)(t||e.hasOwnProperty(n))&&(r=u[n],r||(1048576&u[me]&&(i=65535&u[me]),r=u[n]=Object.create(null),c++),u=r,l++);let f=u[me];if(void 0!==f)f&=65535,fe[he++]=217,fe[he++]=f>>8|224,fe[he++]=255&f;else{if(a||(a=u.__keys__||(u.__keys__=Object.keys(e))),void 0===i?(f=o.nextId++,f||(f=0,o.nextId=1),f>=256&&(o.nextId=(f=s)+1)):f=i,o[f]=a,!(f<s)){u[me]=f,de.setUint32(he,3655335680),he+=3,c&&(y+=m*c),v.length>=256-s&&(v.shift()[me]=void 0),v.push(u),we(l+2),g(57344+f),g(a);for(let t of Object.values(e))g(t);return}fe[he++]=217,fe[he++]=f>>8|224,fe[he++]=255&f,u=o.transitions;for(let e=0;e<l;e++)(void 0===u[me]||1048576&u[me])&&(u[me]=f),u=u[a[e]];u[me]=1048576|f,n=!0}l<24?fe[he++]=128|l:we(l);for(let r in e)(t||e.hasOwnProperty(r))&&g(e[r])},w=e=>{let r;if(e>16777216){if(e-t>le)throw new Error("Encoded buffer would be larger than maximum buffer size");r=Math.min(le,4096*Math.round(Math.max((e-t)*(e>67108864?1.25:2),4194304)/4096))}else r=1+(Math.max(e-t<<2,fe.length-1)>>12)<<12;let n=new ce(r);return de=new DataView(n.buffer,0,r),fe.copy?fe.copy(n,0,t,e):n.set(fe.slice(t,e)),he-=t,t=0,pe=n.length-10,fe=n}}useBuffer(e){fe=e,de=new DataView(fe.buffer,fe.byteOffset,fe.byteLength),he=0}clearSharedData(){this.structures&&(this.structures=[]),this.sharedValues&&(this.sharedValues=void 0)}updateSharedData(){let e=this.sharedVersion||0;this.sharedVersion=e+1;let t=this.structures.slice(0),r=new be(t,this.sharedValues,this.sharedVersion),n=this.saveShared(r,(t=>(t&&t.version||0)==e));return!1===n?(r=this.getShared()||{},this.structures=r.structures||[],this.sharedValues=r.packedValues,this.sharedVersion=r.version,this.structures.nextId=this.structures.length):t.forEach(((e,t)=>this.structures[t]=e)),n}}class be{constructor(e,t,r){this.structures=e,this.packedValues=t,this.version=r}}function we(e){e<24?fe[he++]=128|e:e<256?(fe[he++]=152,fe[he++]=e):e<65536?(fe[he++]=153,fe[he++]=e>>8,fe[he++]=255&e):(fe[he++]=154,de.setUint32(he,e),he+=4)}function Ee(e,t){switch(typeof e){case"string":if(e.length>3){if(t.objectMap[e]>-1||t.values.length>=t.maxValues)return;let r=t.get(e);if(r)2==++r.count&&t.values.push(e);else if(t.set(e,{count:1}),t.samplingPackedValues){let r=t.samplingPackedValues.get(e);r?r.count++:t.samplingPackedValues.set(e,{count:1})}}break;case"object":if(e)if(e instanceof Array)for(let r=0,n=e.length;r<n;r++)Ee(e[r],t);else{let n=!t.encoder.useRecords;for(var r in e)e.hasOwnProperty(r)&&(n&&Ee(r,t),Ee(e[r],t))}break;case"function":console.log(e)}}const _e=1==new Uint8Array(new Uint16Array([1]).buffer)[0];function Oe(e,t){return!_e&&t>1&&(e-=4),{tag:e,encode:function(e,t){let r=e.byteLength,n=e.byteOffset||0,o=e.buffer||e;t(ue?Buffer.from(o,n,r):new Uint8Array(o,n,r))}}}function Se(e,t){let r=e.byteLength;r<24?fe[he++]=64+r:r<256?(fe[he++]=88,fe[he++]=r):r<65536?(fe[he++]=89,fe[he++]=r>>8,fe[he++]=255&r):(fe[he++]=90,de.setUint32(he,r),he+=4),he+r>=fe.length&&t(he+r),fe.set(e.buffer?e:new Uint8Array(e),he),he+=r}function xe(e,t){de.setUint32(ve.position+e,he-ve.position-e+1);let r=ve;ve=null,t(r[0]),t(r[1])}function ke(e){if(e.Class){if(!e.encode)throw new Error("Extension has no encode function");ae.unshift(e.Class),ie.unshift(e)}!function(e){E[e.tag]=e.decode}(e)}ae=[Date,Set,Error,RegExp,F,ArrayBuffer,Uint8Array,Uint8ClampedArray,Uint16Array,Uint32Array,"undefined"==typeof BigUint64Array?function(){}:BigUint64Array,Int8Array,Int16Array,Int32Array,"undefined"==typeof BigInt64Array?function(){}:BigInt64Array,Float32Array,Float64Array,be],ie=[{tag:1,encode(e,t){let r=e.getTime()/1e3;(this.useTimestamp32||0===e.getMilliseconds())&&r>=0&&r<4294967296?(fe[he++]=26,de.setUint32(he,r),he+=4):(fe[he++]=251,de.setFloat64(he,r),he+=8)}},{tag:258,encode(e,t){t(Array.from(e))}},{tag:27,encode(e,t){t([e.name,e.message])}},{tag:27,encode(e,t){t(["RegExp",e.source,e.flags])}},{getTag:e=>e.tag,encode(e,t){t(e.value)}},{encode(e,t,r){Se(e,r)}},{getTag(e){if(e.constructor===Uint8Array&&(this.tagUint8Array||ue&&!1!==this.tagUint8Array))return 64},encode(e,t,r){Se(e,r)}},Oe(68,1),Oe(69,2),Oe(70,4),Oe(71,8),Oe(72,1),Oe(77,2),Oe(78,4),Oe(79,8),Oe(85,4),Oe(86,8),{encode(e,t){let r=e.packedValues||[],n=e.structures||[];if(r.values.length>0){fe[he++]=216,fe[he++]=51,we(4);let e=r.values;t(e),we(0),we(0),packedObjectMap=Object.create(sharedPackedObjectMap||null);for(let t=0,r=e.length;t<r;t++)packedObjectMap[e[t]]=t}if(n){de.setUint32(he,3655335424),he+=3;let r=n.slice(0);r.unshift(57344),r.push(new F(e.version,1399353956)),t(r)}else t(new F(e.version,1399353956))}}];const je=new ge({useRecords:!1}).encode,{NEVER:Te,ALWAYS:Pe,DECIMAL_ROUND:Le,DECIMAL_FIT:Ie}=re,Ae=512,Ce=1024;function Me(e,t={}){if(e&&"object"==typeof e){if("function"==typeof e[Symbol.iterator])return function*(e,t){const r=new ge(t);for(const t of e)yield r.encode(t)}(e,t);if("function"==typeof e.then||"function"==typeof e[Symbol.asyncIterator])return async function*(e,t){const r=new ge(t);for await(const t of e)yield r.encode(t)}(e,t);throw new Error("first argument must be an Iterable, Async Iterable, Iterator, Async Iterator, or a Promise")}throw new Error("first argument must be an Iterable, Async Iterable, or a Promise for an Async Iterable")}function Ne(e,t={}){if(!e||"object"!=typeof e)throw new Error("first argument must be an Iterable, Async Iterable, Iterator, Async Iterator, or a promise");const r=new x(t);let n;const o=e=>{let t;n&&(e=Buffer.concat([n,e]),n=void 0);try{t=r.decodeMultiple(e)}catch(r){if(!r.incomplete)throw r;n=e.slice(r.lastPosition),t=r.values}return t};return"function"==typeof e[Symbol.iterator]?function*(){for(const t of e)yield*o(t)}():"function"==typeof e[Symbol.asyncIterator]?async function*(){for await(const t of e)yield*o(t)}():void 0}}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={id:n,loaded:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e};var n={};!function(){"use strict";var e=n;r(69070),e.default=void 0;var t,o=(t=r(51178))&&t.__esModule?t:{default:t},i=o.default;if(window.__cobrowse_io_loaded)throw o.default=function(){throw new Error('"CobrowseIO" is read-only.')}(),new Error("CobrowseIO already loaded. This usually means you included the snippet multiple times.");window.__cobrowse_io_loaded=!0;var a=i;e.default=a}(),CobrowseIO=n.default}();
|
|
2
|
+
!function(){var e={13606:function(e,t,r){"use strict";function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function o(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}Object.defineProperty(t,"__esModule",{value:!0}),t.EbmlElementId=void 0,t.getEbmlElementIdLength=u,t.getEbmlElementLevel=function(e){switch(e){case a.Ebml:case a.Segment:return 0;case a.Cluster:case a.Cues:case a.DocType:case a.DocTypeReadVersion:case a.DocTypeVersion:case a.EbmlMaxIdLength:case a.EbmlMaxSizeLength:case a.EbmlReadVersion:case a.EbmlVersion:case a.Info:case a.SeekHead:case a.Tracks:return 1;case a.CuePoint:case a.DateUTC:case a.Duration:case a.MuxingApp:case a.Position:case a.SegmentUID:case a.Seek:case a.SimpleBlock:case a.Timestamp:case a.TimestampScale:case a.Title:case a.TrackEntry:case a.WritingApp:return 2;case a.Audio:case a.CodecDecodeAll:case a.CodecID:case a.CodecName:case a.CodecPrivate:case a.CueTime:case a.CueTrackPositions:case a.DefaultDuration:case a.FlagDefault:case a.FlagEnabled:case a.FlagForced:case a.FlagLacing:case a.MaxBlockAdditionID:case a.MinCache:case a.SeekID:case a.SeekPosition:case a.SeekPreRoll:case a.TrackNumber:case a.TrackTimestampScale:case a.TrackType:case a.TrackUID:case a.Video:return 3;case a.Channels:case a.CueBlockNumber:case a.CueClusterPosition:case a.CueTrack:case a.FlagInterlaced:case a.PixelHeight:case a.PixelWidth:case a.SamplingFrequency:case a.Colour:return 4;case a.CueRefTime:return 5;case a.Void:return-1;default:throw Error("cannot determine level of unknown ebml element with id ".concat(e))}},t.getEbmlElementName=function(e){switch(e){case a.Ebml:return"EBML";case a.EbmlVersion:return"EBMLVersion";case a.EbmlReadVersion:return"EBMLReadVersion";case a.EbmlMaxIdLength:return"EBMLMaxIDLength";case a.EbmlMaxSizeLength:return"EBMLMaxSizeLength";case a.DocType:return"DocType";case a.DocTypeVersion:return"DocTypeVersion";case a.DocTypeReadVersion:return"DocTypeReadVersion";case a.Void:return"Void";case a.Segment:return"Segment";case a.SeekHead:return"SeekHead";case a.Seek:return"Seek";case a.SeekID:return"SeekID";case a.SeekPosition:return"SeekPosition";case a.Info:return"Info";case a.TimestampScale:return"TimestampScale";case a.Duration:return"Duration";case a.DateUTC:return"DateUTC";case a.Title:return"Title";case a.MuxingApp:return"MuxingApp";case a.WritingApp:return"WritinApp";case a.Cluster:return"Cluster";case a.Timestamp:return"Timestamp";case a.SimpleBlock:return"SimpleBlock";case a.SegmentUID:return"SegmentUID (unsupported by WebM)";case a.Tracks:return"Tracks";case a.TrackEntry:return"TrackEntry";case a.TrackNumber:return"TrackNumber";case a.TrackUID:return"TrackUID";case a.TrackType:return"TrackType";case a.FlagEnabled:return"FlagEnabled";case a.FlagDefault:return"FlagDefault";case a.FlagForced:return"FlagForced";case a.FlagLacing:return"FlagLacing";case a.MinCache:return"MinCache";case a.MaxBlockAdditionID:return"MaxBlockAdditionID";case a.CodecID:return"CodecID";case a.CodecDecodeAll:return"CodecDecodeAll";case a.SeekPreRoll:return"SeekPreRoll";case a.Video:return"Video";case a.FlagInterlaced:return"FlagInterlaced";case a.PixelWidth:return"PixelWidth";case a.PixelHeight:return"PixelHeight";case a.DefaultDuration:return"DefaultDuration";case a.TrackTimestampScale:return"TrackTimestampScale";case a.CodecName:return"CodecName";case a.CodecPrivate:return"CodecPrivate";case a.Audio:return"Audio";case a.SamplingFrequency:return"SamplingFrequency";case a.Channels:return"Channels";case a.Cues:return"Cues";case a.CuePoint:return"CuePoint";case a.CueTime:return"CueTime";case a.CueTrackPositions:return"CueTrackPositions";case a.CueTrack:return"CueTrack";case a.CueClusterPosition:return"CueClusterPosition";case a.CueRefTime:return"CueRefTime";case a.CueBlockNumber:return"CueBlockNumber";case a.Position:return"Position";case a.Colour:return"Colour";default:return""}},t.readEbmlElementId=function(e,t){var r=u(e.current);if(r>e.bytesAvailable)return!1;for(var n=e.current,o=0;o<r-1;++o)n=n<<8|e.nextUnsafe();return e.nextUnsafe(),e.checkBounds(),t.id=n,t.idLength=r,!0},r(69070);var a=o((function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}));function u(e){for(var t=7;t>3;t--)if(e&1<<t)return 8-t;throw Error("invalid ebml element id")}t.EbmlElementId=a,i(a,"Ebml",440786851),i(a,"EbmlVersion",17030),i(a,"EbmlReadVersion",17143),i(a,"EbmlMaxIdLength",17138),i(a,"EbmlMaxSizeLength",17139),i(a,"DocType",17026),i(a,"DocTypeVersion",17031),i(a,"DocTypeReadVersion",17029),i(a,"Void",236),i(a,"Segment",408125543),i(a,"SeekHead",290298740),i(a,"Seek",19899),i(a,"SeekID",21419),i(a,"SeekPosition",21420),i(a,"Info",357149030),i(a,"TimestampScale",2807729),i(a,"Duration",17545),i(a,"DateUTC",17505),i(a,"Title",31657),i(a,"MuxingApp",19840),i(a,"WritingApp",22337),i(a,"Cluster",524531317),i(a,"Timestamp",231),i(a,"SimpleBlock",163),i(a,"SegmentUID",29604),i(a,"Tracks",374648427),i(a,"TrackEntry",174),i(a,"TrackNumber",215),i(a,"TrackUID",29637),i(a,"TrackType",131),i(a,"FlagEnabled",185),i(a,"FlagDefault",136),i(a,"FlagForced",21930),i(a,"FlagLacing",156),i(a,"MinCache",28135),i(a,"MaxBlockAdditionID",21998),i(a,"CodecID",134),i(a,"CodecDecodeAll",170),i(a,"SeekPreRoll",22203),i(a,"Video",224),i(a,"FlagInterlaced",154),i(a,"PixelWidth",176),i(a,"PixelHeight",186),i(a,"DefaultDuration",2352003),i(a,"TrackTimestampScale",2306383),i(a,"CodecName",2459272),i(a,"CodecPrivate",25506),i(a,"Audio",225),i(a,"SamplingFrequency",181),i(a,"Channels",159),i(a,"Cues",475249515),i(a,"CuePoint",187),i(a,"CueTime",179),i(a,"CueTrackPositions",183),i(a,"CueTrack",247),i(a,"CueClusterPosition",241),i(a,"CueRefTime",150),i(a,"CueBlockNumber",21368),i(a,"Position",167),i(a,"Colour",21936)},3300:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EbmlElementType=void 0,t.getEbmlElementType=function(e){switch(e){case n.EbmlElementId.Segment:case n.EbmlElementId.Ebml:case n.EbmlElementId.SeekHead:case n.EbmlElementId.Seek:case n.EbmlElementId.Cluster:case n.EbmlElementId.Info:case n.EbmlElementId.Tracks:case n.EbmlElementId.TrackEntry:case n.EbmlElementId.Video:case n.EbmlElementId.Audio:case n.EbmlElementId.Cues:case n.EbmlElementId.CuePoint:case n.EbmlElementId.CueTrackPositions:case n.EbmlElementId.Colour:return u.Master;case n.EbmlElementId.EbmlVersion:case n.EbmlElementId.EbmlReadVersion:case n.EbmlElementId.EbmlMaxIdLength:case n.EbmlElementId.EbmlMaxSizeLength:case n.EbmlElementId.DocTypeVersion:case n.EbmlElementId.DocTypeReadVersion:case n.EbmlElementId.SeekPosition:case n.EbmlElementId.TimestampScale:case n.EbmlElementId.Timestamp:case n.EbmlElementId.TrackNumber:case n.EbmlElementId.TrackUID:case n.EbmlElementId.TrackType:case n.EbmlElementId.FlagEnabled:case n.EbmlElementId.FlagDefault:case n.EbmlElementId.FlagForced:case n.EbmlElementId.FlagLacing:case n.EbmlElementId.MinCache:case n.EbmlElementId.MaxBlockAdditionID:case n.EbmlElementId.CodecDecodeAll:case n.EbmlElementId.SeekPreRoll:case n.EbmlElementId.FlagInterlaced:case n.EbmlElementId.PixelWidth:case n.EbmlElementId.PixelHeight:case n.EbmlElementId.DefaultDuration:case n.EbmlElementId.Channels:case n.EbmlElementId.CueTime:case n.EbmlElementId.CueTrack:case n.EbmlElementId.CueClusterPosition:case n.EbmlElementId.CueRefTime:case n.EbmlElementId.CueBlockNumber:case n.EbmlElementId.Position:return u.UnsignedInteger;case n.EbmlElementId.DocType:case n.EbmlElementId.CodecID:return u.String;case n.EbmlElementId.Void:case n.EbmlElementId.SeekID:case n.EbmlElementId.SimpleBlock:case n.EbmlElementId.SegmentUID:case n.EbmlElementId.CodecPrivate:return u.Binary;case n.EbmlElementId.Duration:case n.EbmlElementId.TrackTimestampScale:case n.EbmlElementId.SamplingFrequency:return u.Float;case n.EbmlElementId.DateUTC:return u.Date;case n.EbmlElementId.Title:case n.EbmlElementId.MuxingApp:case n.EbmlElementId.WritingApp:case n.EbmlElementId.CodecName:return u.Utf8String;default:throw Error("cannot determine type of unknown ebml element with id ".concat(e))}},r(69070);var n=r(13606);function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function i(e,t,r){return t&&o(e.prototype,t),r&&o(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var u=i((function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}));t.EbmlElementType=u,a(u,"Unknown",0),a(u,"Master",1),a(u,"UnsignedInteger",2),a(u,"SignedInteger",3),a(u,"String",4),a(u,"Utf8String",5),a(u,"Binary",6),a(u,"Float",7),a(u,"Date",8)},61981:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.epochTimestampOffset=t.EbmlElement=void 0,t.getEbmlElementSizeLength=s,t.getEbmlElementValue=function(e,t){switch(e){case o.EbmlElementType.UnsignedInteger:case o.EbmlElementType.SignedInteger:return(0,i.readBigEndianNumber)(t);case o.EbmlElementType.String:return String.fromCharCode.apply(null,t);case o.EbmlElementType.Utf8String:case o.EbmlElementType.Float:throw new Error("cannot read value of element with type ".concat(e));case o.EbmlElementType.Date:return u+(0,i.readBigEndianNumber)(t);case o.EbmlElementType.Binary:return t}},t.readEbmlLementSize=function(e,t){var r=s(e.current);if(r>e.bytesAvailable)return!1;for(var n=e.current-(1<<8-r),o=0;o<r-1;++o)n=n<<8|e.nextUnsafe();return e.nextUnsafe(),e.checkBounds(),t.sizeLength=r,t.size=n===1<<8*r-1?-1:n,!0},r(68309),r(69070);var n=r(13606),o=r(3300),i=r(22706);function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var u=978307200;t.epochTimestampOffset=u;var c=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r;return t=e,(r=[{key:"elementSize",get:function(){return this.idLength+this.sizeLength+this.size}},{key:"id",get:function(){return this._id},set:function(e){this._id=e,this.name=(0,n.getEbmlElementName)(this._id),this.type=(0,o.getEbmlElementType)(this._id)}}])&&a(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function s(e){if(1==e)return 8;for(var t=7;t>0;t--)if(e&1<<t)return 8-t;throw Error("invalid ebml element size")}t.EbmlElement=c},81639:function(e,t,r){"use strict";r(69070),Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"MediaInfo",{enumerable:!0,get:function(){return u.MediaInfo}}),Object.defineProperty(t,"MediaPacket",{enumerable:!0,get:function(){return a.MediaPacket}}),Object.defineProperty(t,"MediaRecorderDemuxer",{enumerable:!0,get:function(){return n.MediaRecorderDemuxer}}),Object.defineProperty(t,"MediaRecorderDemuxerEvents",{enumerable:!0,get:function(){return o.MediaRecorderDemuxerEvents}}),Object.defineProperty(t,"createMediaRecorderDemuxer",{enumerable:!0,get:function(){return i.createMediaRecorderDemuxer}});var n=r(79285),o=r(52981),i=r(76202),a=r(94151),u=r(35504)},35504:function(e,t,r){"use strict";function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function o(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}r(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.MediaInfo=void 0;var i=o((function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.videoTrack={},this.audioTrack={}}));t.MediaInfo=i},94151:function(e,t,r){"use strict";function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function o(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}r(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.MediaPacket=void 0;var i=o((function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.data=t,this.ptsMs=r}));t.MediaPacket=i},52981:function(e,t,r){"use strict";function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function o(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}Object.defineProperty(t,"__esModule",{value:!0}),t.MediaRecorderDemuxerEvents=void 0,r(69070);var a=o((function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}));t.MediaRecorderDemuxerEvents=a,i(a,"Error","error"),i(a,"MediaInfo","media-info"),i(a,"MediaPacket","media-packet")},76202:function(e,t,r){"use strict";r(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.createMediaRecorderDemuxer=function(e,t){var r;return"undefined"!=typeof MediaRecorder==0?null:(("function"==typeof MediaRecorder.isTypeSupported==0||MediaRecorder.isTypeSupported("video/webm;codecs=h264"))&&(r=new n.WebmMediaRecorderDemuxer(new MediaRecorder(e,{mimeType:"video/webm;codecs=h264"}),t)),r)};var n=r(15102);r(52981)},79285:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}r(41539),r(12419),r(69070),r(47941),r(82526),r(57327),r(38880),r(54747),r(49337),r(33321),r(41817),r(32165),r(66992),r(78783),r(33948),r(72443),r(39341),r(73706),r(10408),r(68309),r(47042),Object.defineProperty(t,"__esModule",{value:!0}),t.defaultMediaRecorderOptions=t.MediaRecorderDemuxer=void 0,r(68304),r(30489);var o=r(35504),i=r(52981);function a(){a=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},u=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function f(e,t,r,n){var i=t&&t.prototype instanceof h?t:h,a=Object.create(i.prototype),u=new j(n||[]);return o(a,"_invoke",{value:O(e,r,u)}),a}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=f;var p={};function h(){}function v(){}function y(){}var m={};l(m,u,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(T([])));b&&b!==t&&r.call(b,u)&&(m=b);var w=y.prototype=h.prototype=Object.create(m);function E(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function i(o,a,u,c){var s=d(e[o],e,a);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==n(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){i("next",e,u,c)}),(function(e){i("throw",e,u,c)})):t.resolve(f).then((function(e){l.value=e,u(l)}),(function(e){return i("throw",e,u,c)}))}c(s.arg)}var a;o(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){i(e,r,t,n)}))}return a=a?a.then(n,n):n()}})}function O(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=S(a,r);if(u){if(u===p)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=d(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===p)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function S(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method))return p;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var n=d(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,p;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,p):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function T(e){if(e){var t=e[u];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:P}}function P(){return{value:void 0,done:!0}}return v.prototype=y,o(w,"constructor",{value:y,configurable:!0}),o(y,"constructor",{value:v,configurable:!0}),v.displayName=l(y,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,l(e,s,"GeneratorFunction")),e.prototype=Object.create(w),e},e.awrap=function(e){return{__await:e}},E(_.prototype),l(_.prototype,c,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new _(f(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(w),l(w,s,"Generator"),l(w,u,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=T,j.prototype={constructor:j,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),k(r),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:T(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},e}function u(e,t,r,n,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void r(e)}u.done?t(c):Promise.resolve(c).then(n,o)}function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach((function(t){l(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function l(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function f(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}function p(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}var v=r(17187),y={timerInterval:100,logCallback:null};t.defaultMediaRecorderOptions=y;var m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}(m,e);var t,r,n,c,l,v=(c=m,l=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=h(c);if(l){var r=h(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return p(this,e)});function m(e,t){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,m),(r=v.call(this)).options=t?s(s({},y),t):y,r.mediaRecorder=e,r.mediaInfo=new o.MediaInfo,r.mediaRecorder.addEventListener("dataavailable",function(){var e,t=(e=a().mark((function e(t){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r.addBlob(t.data);case 1:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){u(i,n,o,a,c,"next",e)}function c(e){u(i,n,o,a,c,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}()),r.mediaRecorder.addEventListener("error",(function(e){r.emit(i.MediaRecorderDemuxerEvents.Error,e.error)})),r}return t=m,n=[{key:"isSupported",value:function(e){return"undefined"!=typeof MediaRecorder&&"function"==typeof MediaRecorder.prototype.requestData&&"function"==typeof MediaRecorder.isTypeSupported&&MediaRecorder.isTypeSupported(e)}}],(r=[{key:"start",value:function(){var e=this;this.mediaRecorder.start(),"function"==typeof this.mediaRecorder.requestData?this.timer=window.setInterval((function(){e.mediaRecorder.requestData()}),this.options.timerInterval):this.timer=window.setTimeout((function(){e.mediaRecorder.stop()}),this.options.timerInterval)}},{key:"stop",value:function(){"recording"===this.mediaRecorder.state&&this.mediaRecorder.stop(),this.timer&&(clearInterval(this.timer),this.timer=null)}}])&&f(t.prototype,r),n&&f(t,n),Object.defineProperty(t,"prototype",{writable:!1}),m}(v);t.MediaRecorderDemuxer=m},15102:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}r(69070),r(68304),r(30489),r(12419),r(82526),r(41817),r(32165),r(78783),r(33948),r(72443),r(39341),r(73706),r(10408),r(54747),r(47042),Object.defineProperty(t,"__esModule",{value:!0}),t.webmVideoTrackType=t.webmAudioTrackType=t.WebmMediaRecorderDemuxer=void 0,r(41539),r(66992),r(82472),r(92990),r(18927),r(33105),r(35035),r(74345),r(7174),r(32846),r(44731),r(77209),r(96319),r(58867),r(37789),r(33739),r(29368),r(14483),r(12056),r(3462),r(30678),r(27462),r(33824),r(55021),r(12974),r(15016),r(92222),r(68309),r(19601),r(73210);var o=r(79285),i=r(13606),a=r(61981),u=r(22706),c=r(3300),s=r(52981),l=r(94151);function f(){f=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var i=t&&t.prototype instanceof h?t:h,a=Object.create(i.prototype),u=new j(n||[]);return o(a,"_invoke",{value:O(e,r,u)}),a}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var p={};function h(){}function v(){}function y(){}var m={};s(m,a,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(T([])));b&&b!==t&&r.call(b,a)&&(m=b);var w=y.prototype=h.prototype=Object.create(m);function E(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function i(o,a,u,c){var s=d(e[o],e,a);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==n(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){i("next",e,u,c)}),(function(e){i("throw",e,u,c)})):t.resolve(f).then((function(e){l.value=e,u(l)}),(function(e){return i("throw",e,u,c)}))}c(s.arg)}var a;o(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){i(e,r,t,n)}))}return a=a?a.then(n,n):n()}})}function O(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=S(a,r);if(u){if(u===p)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=d(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===p)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function S(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method))return p;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var n=d(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,p;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,p):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function T(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:P}}function P(){return{value:void 0,done:!0}}return v.prototype=y,o(w,"constructor",{value:y,configurable:!0}),o(y,"constructor",{value:v,configurable:!0}),v.displayName=s(y,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,s(e,c,"GeneratorFunction")),e.prototype=Object.create(w),e},e.awrap=function(e){return{__await:e}},E(_.prototype),s(_.prototype,u,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new _(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(w),s(w,c,"Generator"),s(w,a,(function(){return this})),s(w,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=T,j.prototype={constructor:j,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),k(r),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:T(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},e}function d(e,t,r,n,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void r(e)}u.done?t(c):Promise.resolve(c).then(n,o)}function p(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function h(e,t){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},h(e,t)}function v(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}function m(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function g(){var e=this;return new Promise((function(t){var r=new FileReader;r.onload=function(){t(r.result)},r.readAsArrayBuffer(e)}))}t.webmVideoTrackType=1,t.webmAudioTrackType=2;var b=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h(e,t)}(E,e);var t,r,n,o,m,b,w=(m=E,b=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=y(m);if(b){var r=y(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return v(this,e)});function E(e,t){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,E),(r=w.call(this,e,t)).state=E.stateParseElementId,r.currentEbmlElement=new a.EbmlElement,r.uint8ArrayAggregator=new u.Uint8ArrayAggregator,r.clusterTimestamp=0,r.timestampMsScale=1,r.ebmlElementStack=[],Blob.prototype.arrayBuffer=Blob.prototype.arrayBuffer||g,r}return t=E,r=[{key:"addBlob",value:(n=f().mark((function e(t){var r,n,o,d,p,h,v,y,m,g,b,w,_;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.t0=this.uint8ArrayAggregator,e.t1=Uint8Array,e.next=5,t.arrayBuffer();case 5:e.t2=e.sent,e.t3=new e.t1(e.t2),e.t0.addArray.call(e.t0,e.t3);case 8:if(!this.uint8ArrayAggregator.bytesAvailable){e.next=106;break}e.t4=this.state,e.next=e.t4===E.stateParseElementId?12:e.t4===E.stateParseElementLength?19:e.t4===E.stateParseElementValue?27:104;break;case 12:if(!(0,i.readEbmlElementId)(this.uint8ArrayAggregator,this.currentEbmlElement)){e.next=16;break}null==this.options.logCallback||this.options.logCallback("got new current ebml element (id: ".concat(this.currentEbmlElement.id,", name: ").concat(this.currentEbmlElement.name,")")),e.next=17;break;case 16:return e.abrupt("break",104);case 17:return this.state=E.stateParseElementLength,e.abrupt("break",104);case 19:if(!(0,a.readEbmlLementSize)(this.uint8ArrayAggregator,this.currentEbmlElement)){e.next=23;break}null==this.options.logCallback||this.options.logCallback("got size ".concat(this.currentEbmlElement.size," for current ebml element (id: ").concat(this.currentEbmlElement.id,", name: ").concat(this.currentEbmlElement.name,")")),e.next=24;break;case 23:return e.abrupt("break",104);case 24:return this.ebmlElementStack.length&&-1==this.currentEbmlElement.size&&(this.ebmlElementStack=[]),this.state=E.stateParseElementValue,e.abrupt("break",104);case 27:if(r=(0,c.getEbmlElementType)(this.currentEbmlElement.id),n=r!==c.EbmlElementType.Master||this.currentEbmlElement.id===i.EbmlElementId.Colour,r===c.EbmlElementType.Master&&-1!==this.currentEbmlElement.size&&this.ebmlElementStack.push({element:Object.assign(new a.EbmlElement,this.currentEbmlElement),bytesRemaining:this.currentEbmlElement.size}),this.currentEbmlElement.id!==i.EbmlElementId.CodecID){e.next=40;break}if(n=!1,null!=(o=this.uint8ArrayAggregator.extract(this.currentEbmlElement.size))){e.next=35;break}return e.abrupt("break",104);case 35:d=(0,a.getEbmlElementValue)(this.currentEbmlElement.type,o),1===this.currentTrackType?this.mediaInfo.videoTrack.codecName=d:2===this.currentTrackType&&(this.mediaInfo.audioTrack.codecName=d),null==this.options.logCallback||this.options.logCallback("got codec id ".concat(d)),e.next=91;break;case 40:if(this.currentEbmlElement.id!==i.EbmlElementId.CodecPrivate){e.next=47;break}if(n=!1,null!=this.uint8ArrayAggregator.extract(this.currentEbmlElement.size)){e.next=45;break}return e.abrupt("break",104);case 45:e.next=91;break;case 47:if(this.currentEbmlElement.id!==i.EbmlElementId.TimestampScale){e.next=57;break}if(n=!1,null!=(p=this.uint8ArrayAggregator.extract(this.currentEbmlElement.size))){e.next=52;break}return e.abrupt("break",104);case 52:this.mediaInfo.timestampScale=(0,a.getEbmlElementValue)(this.currentEbmlElement.type,p),this.timestampMsScale=this.mediaInfo.timestampScale/1e6,null==this.options.logCallback||this.options.logCallback("got timestamp scale ".concat(this.mediaInfo.timestampScale)),e.next=91;break;case 57:if(this.currentEbmlElement.id!==i.EbmlElementId.Timestamp){e.next=66;break}if(n=!1,null!=(h=this.uint8ArrayAggregator.extract(this.currentEbmlElement.size))){e.next=62;break}return e.abrupt("break",104);case 62:this.clusterTimestamp=(0,a.getEbmlElementValue)(this.currentEbmlElement.type,h),null==this.options.logCallback||this.options.logCallback("got cluser timestamp ".concat(this.clusterTimestamp)),e.next=91;break;case 66:if(this.currentEbmlElement.id!==i.EbmlElementId.TrackType){e.next=75;break}if(n=!1,null!=(v=this.uint8ArrayAggregator.extract(this.currentEbmlElement.size))){e.next=71;break}return e.abrupt("break",104);case 71:this.currentTrackType=(0,a.getEbmlElementValue)(this.currentEbmlElement.type,v),null==this.options.logCallback||this.options.logCallback("got track with type ".concat(this.currentTrackType)),e.next=91;break;case 75:if(this.currentEbmlElement.id!==i.EbmlElementId.SimpleBlock){e.next=91;break}if(n=!1,null!=(y=this.uint8ArrayAggregator.extract(this.currentEbmlElement.size))){e.next=80;break}return e.abrupt("break",104);case 80:(m=new u.Uint8ArrayAggregator).addArray(y),g={},(0,a.readEbmlLementSize)(m,g),b=(0,u.readBigEndianNumber)(m.extract(2)),m.current,m.next(),m.trim(),w=(this.clusterTimestamp+b)*this.timestampMsScale,this.emit(s.MediaRecorderDemuxerEvents.MediaPacket,new l.MediaPacket(m.array,w));case 91:if(n&&this.uint8ArrayAggregator.skip(this.currentEbmlElement.size),r===c.EbmlElementType.Master||!this.ebmlElementStack.length){e.next=102;break}this.ebmlElementStack[this.ebmlElementStack.length-1].bytesRemaining-=this.currentEbmlElement.elementSize;case 94:if(0!==this.ebmlElementStack[this.ebmlElementStack.length-1].bytesRemaining){e.next=100;break}_=this.ebmlElementStack.pop(),this.ebmlElementStack.length&&(this.ebmlElementStack[this.ebmlElementStack.length-1].bytesRemaining-=_.element.elementSize),_.element.id===i.EbmlElementId.Tracks&&this.emit(s.MediaRecorderDemuxerEvents.MediaInfo,this.mediaInfo),e.next=101;break;case 100:return e.abrupt("break",102);case 101:if(this.ebmlElementStack.length){e.next=94;break}case 102:return this.state=E.stateParseElementId,e.abrupt("break",104);case 104:e.next=8;break;case 106:this.uint8ArrayAggregator.trim(),e.next=113;break;case 109:e.prev=109,e.t5=e.catch(0),this.stop(),this.emit(s.MediaRecorderDemuxerEvents.Error,e.t5);case 113:case"end":return e.stop()}}),e,this,[[0,109]])})),o=function(){var e=this,t=arguments;return new Promise((function(r,o){var i=n.apply(e,t);function a(e){d(i,r,o,a,u,"next",e)}function u(e){d(i,r,o,a,u,"throw",e)}a(void 0)}))},function(e){return o.apply(this,arguments)})}],r&&p(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),E}(o.MediaRecorderDemuxer);t.WebmMediaRecorderDemuxer=b,m(b,"stateParseElementId",1),m(b,"stateParseElementLength",2),m(b,"stateParseElementValue",3)},22706:function(e,t,r){"use strict";function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}r(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.Uint8ArrayAggregator=void 0,t.readBigEndianNumber=function(e){var t=0;return e.forEach((function(e){t=t<<8|e})),t},r(41539),r(54747),r(47042),r(66992),r(82472),r(92990),r(18927),r(33105),r(35035),r(74345),r(7174),r(32846),r(44731),r(77209),r(96319),r(58867),r(37789),r(33739),r(29368),r(14483),r(12056),r(3462),r(30678),r(27462),r(33824),r(55021),r(12974),r(15016),r(92222);var o=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.array=null,this.current=null,this.offset=0}var t,r;return t=e,(r=[{key:"addArray",value:function(e){if(null!=e&&0!=e.length)if(this.bytesToSkip>=e.length)this.bytesToSkip-=e.length;else{if(this.bytesToSkip&&(e=e.slice(this.bytesToSkip)),this.array){var t=new Uint8Array(this.array.length-this.offset+e.length);t.set(this.offset?this.array.slice(this.offset):this.array,0),t.set(e,this.array.length-this.offset),this.array=t,this.offset=0}else this.array=e;this.current=this.array[0]}}},{key:"checkBounds",value:function(){if(this.offset===this.array.length)this.offset=0,this.current=null,this.array=null;else{if(!(this.offset<this.array.length))throw Error("invalid Uint8ArrayAggregator state, offset (".concat(this.offset,") is larger than bytes in the current array (").concat(this.array.length,")"));this.current=this.array[this.offset]}}},{key:"next",value:function(){return this.array?(this.offset++,this.checkBounds(),this.current):null}},{key:"nextUnsafe",value:function(){return this.offset++,this.current=this.array[this.offset],this.current}},{key:"bytesAvailable",get:function(){return this.array?this.array.length-this.offset:0}},{key:"trim",value:function(){if(this.array)if(this.offset<this.array.length)this.array=this.array.slice(this.offset),this.offset=0,this.current=this.array[0];else{if(this.offset>this.array.length)throw Error("invalid Uint8ArrayAggregator state, offset (".concat(this.offset,") is larger than bytes in the current array (").concat(this.array.length,")"));this.array=null,this.offset=0,this.current=null}}},{key:"extract",value:function(e){if(this.bytesAvailable>=e){var t=this.offset,r=this.array.slice(t,t+e);return this.offset+=e,this.current=this.array[this.offset],this.checkBounds(),r}return null}},{key:"skip",value:function(e){if(this.bytesAvailable>=e)return this.offset+=e,this.current=this.array[this.offset],void this.checkBounds();e-=this.bytesAvailable,this.array=null,this.offset=0,this.current=null,this.bytesToSkip=e}}])&&n(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.Uint8ArrayAggregator=o},89727:function(e,t,r){"use strict";r(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.GLOBAL_READY_MESSAGE=void 0,t.GLOBAL_READY_MESSAGE="trusted-origin-storage-ready"},73304:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach((function(t){f(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function u(){u=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function f(e,t,r,n){var i=t&&t.prototype instanceof h?t:h,a=Object.create(i.prototype),u=new j(n||[]);return o(a,"_invoke",{value:O(e,r,u)}),a}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=f;var p={};function h(){}function v(){}function y(){}var m={};l(m,a,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(T([])));b&&b!==t&&r.call(b,a)&&(m=b);var w=y.prototype=h.prototype=Object.create(m);function E(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function i(o,a,u,c){var s=d(e[o],e,a);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==n(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){i("next",e,u,c)}),(function(e){i("throw",e,u,c)})):t.resolve(f).then((function(e){l.value=e,u(l)}),(function(e){return i("throw",e,u,c)}))}c(s.arg)}var a;o(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){i(e,r,t,n)}))}return a=a?a.then(n,n):n()}})}function O(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=S(a,r);if(u){if(u===p)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=d(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===p)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function S(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method))return p;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var n=d(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,p;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,p):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function T(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:P}}function P(){return{value:void 0,done:!0}}return v.prototype=y,o(w,"constructor",{value:y,configurable:!0}),o(y,"constructor",{value:v,configurable:!0}),v.displayName=l(y,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,l(e,s,"GeneratorFunction")),e.prototype=Object.create(w),e},e.awrap=function(e){return{__await:e}},E(_.prototype),l(_.prototype,c,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new _(f(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(w),l(w,s,"Generator"),l(w,a,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=T,j.prototype={constructor:j,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),k(r),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:T(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},e}function c(e,t,r,n,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void r(e)}u.done?t(c):Promise.resolve(c).then(n,o)}function s(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){c(i,n,o,a,u,"next",e)}function u(e){c(i,n,o,a,u,"throw",e)}a(void 0)}))}}function l(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function f(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function d(e,t,r){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,r)}function p(e,t){return function(e,t){return t.get?t.get.call(e):t.value}(e,v(e,t,"get"))}function h(e,t,r){return function(e,t,r){if(t.set)t.set.call(e,r);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=r}}(e,v(e,t,"set"),r),r}function v(e,t,r){if(!t.has(e))throw new TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}r(82526),r(41817),r(32165),r(72443),r(39341),r(73706),r(10408),r(30489),r(54747),r(68309),r(68304),r(47042),r(47941),r(57327),r(38880),r(49337),r(33321),r(91038),r(74916),r(69070),r(43371),r(2707),r(41539),r(39714),r(69600),r(82772),r(40561),r(66992),r(78783),r(4129),r(33948),Object.defineProperty(t,"__esModule",{value:!0});var y=r(33059),m=r(29011),g=r(80861),b=r(85625),w=r(81154),E=r(99145),_=new WeakMap,O=new WeakMap,S=new WeakMap,x=function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),d(this,_,{writable:!0,value:void 0}),d(this,O,{writable:!0,value:void 0}),d(this,S,{writable:!0,value:void 0}),f(this,"storage",void 0),f(this,"timeout",void 0),h(this,S,Object.freeze(r.sort())),h(this,O,new y.default(t)),this.timeout=2500,h(this,_,[]),Object.defineProperty(this,"storage",{writable:!1,enumerable:!0,configurable:!1,value:(0,m.default)(this.request.bind(this))}),window.addEventListener("message",this.listen.bind(this))}var t,r,n,i;return t=e,r=[{key:"isCrossDomainSupported",get:function(){return p(this,O).isCrossDomainSupported}},{key:"ready",value:(i=s(u().mark((function e(){return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,p(this,O).ready();case 2:case"end":return e.stop()}}),e,this)}))),function(){return i.apply(this,arguments)})},{key:"destroy",value:function(){p(this,O).destroy()}},{key:"request",value:(n=s(u().mark((function e(t){var r=this;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.ready();case 2:if("string"!=typeof t.method||"string"!=typeof t.path){e.next=6;break}return e.next=5,new Promise((function(e,n){var o=a(a({},t),{},{trustedOrigins:p(r,S),id:(0,E.uuidHash)(Math.random().toString(),p(r,S).join(","))});r.addListener(e,n,o),p(r,O).postMessage(JSON.stringify(o))}));case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"listen",value:function(e){var t,r=this;e.source===(null===(t=p(this,O).iframe)||void 0===t?void 0:t.contentWindow)&&"string"==typeof e.data&&function(){var t,n=(0,w.default)(e.data),i=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return o(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,u=!0,c=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return u=e.done,e},e:function(e){c=!0,a=e},f:function(){try{u||null==r.return||r.return()}finally{if(c)throw a}}}}(p(r,_));try{var a=function(){var e=t.value;new Promise((function(t,r){try{e(n),t()}catch(e){r(e)}}))};for(i.s();!(t=i.n()).done;)a()}catch(e){i.e(e)}finally{i.f()}}()}},{key:"addListener",value:function(e,t,r){var n=this,o=null,i=function i(a){(0,b.default)(a,r)&&(n.removeListener(i),window.clearTimeout(o),(0,g.default)(a.body)?t(a.body):e(a))};p(this,_).push(i),o=window.setTimeout((function(){n.removeListener(i),t(new Error("Timeout: time of "+n.timeout.toString()+"ms exceeded"))}),this.timeout)}},{key:"removeListener",value:function(e){var t=p(this,_).indexOf(e);t>-1&&p(this,_).splice(t,1)}}],r&&l(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=x},95453:function(e,t,r){"use strict";function n(){n=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},u=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function f(e,t,r,n){var i=t&&t.prototype instanceof h?t:h,a=Object.create(i.prototype),u=new j(n||[]);return o(a,"_invoke",{value:O(e,r,u)}),a}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=f;var p={};function h(){}function v(){}function y(){}var m={};l(m,u,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(T([])));b&&b!==t&&r.call(b,u)&&(m=b);var w=y.prototype=h.prototype=Object.create(m);function E(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function n(o,i,u,c){var s=d(e[o],e,i);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==a(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){n("next",e,u,c)}),(function(e){n("throw",e,u,c)})):t.resolve(f).then((function(e){l.value=e,u(l)}),(function(e){return n("throw",e,u,c)}))}c(s.arg)}var i;o(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return i=i?i.then(o,o):o()}})}function O(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=S(a,r);if(u){if(u===p)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=d(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===p)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function S(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method))return p;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var n=d(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,p;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,p):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function T(e){if(e){var t=e[u];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:P}}function P(){return{value:void 0,done:!0}}return v.prototype=y,o(w,"constructor",{value:y,configurable:!0}),o(y,"constructor",{value:v,configurable:!0}),v.displayName=l(y,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,l(e,s,"GeneratorFunction")),e.prototype=Object.create(w),e},e.awrap=function(e){return{__await:e}},E(_.prototype),l(_.prototype,c,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new _(f(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(w),l(w,s,"Generator"),l(w,u,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=T,j.prototype={constructor:j,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),k(r),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:T(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},e}function o(e,t,r,n,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void r(e)}u.done?t(c):Promise.resolve(c).then(n,o)}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function u(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function c(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r(82526),r(41817),r(32165),r(66992),r(78783),r(33948),r(47042),r(68309),r(91038),r(74916),r(72443),r(39341),r(73706),r(10408),r(30489),r(54747),r(68304),r(69070),r(41539),r(36210),Object.defineProperty(t,"__esModule",{value:!0});var s=r(89727),l=r(97983),f=r(82401),d=r(81154),p=r(77005),h=r(61278),v=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),c(this,"storage",void 0),c(this,"operations",void 0),c(this,"listenWrap",void 0),this.storage=t,this.operations=new l.default}var t,r,v,y,m;return t=e,r=[{key:"engage",value:function(){var e=this;this.listenWrap=function(t){return e.listen(t)},this.operation("GET /storage",p.getStorageEntries.bind(this)).operation("GET /storage/:key",p.getStorageItem.bind(this)).operation("PUT /storage/:key",p.putStorageItem.bind(this)).operation("DELETE /storage/:key",p.deleteStorageItem.bind(this)).operation("DELETE /storage",p.deleteStorageEntries.bind(this)),window.addEventListener("message",this.listenWrap),window.parent.postMessage(JSON.stringify({name:s.GLOBAL_READY_MESSAGE,ready:!0,isCrossDomainSupported:this.storage.isCrossDomainSupported}),"*")}},{key:"operation",value:function(e,t){return this.operations.set(e,t),this}},{key:"dismiss",value:function(){this.operations.clear(),window.removeEventListener("message",this.listenWrap),delete this.listenWrap}},{key:"isTrusted",value:function(e,t){return Array.isArray(t)||(t=[]),t.some((function(t){return t===e}))}},{key:"listen",value:function(e){if("string"==typeof e.data){var t=(0,d.default)(e.data);if(this.isTrusted(e.origin,t.trustedOrigins)&&(0,f.default)(t)){var r=t.method+" "+t.path,n=this.operations.get(r),o={id:t.id,body:void 0};if("object"===a(n))try{o.body=n.call(this.storage,{origin:e.origin,params:n.params,request:t})}catch(e){o.body=this.objectifyError(e)}else o.body=this.objectifyError(new Error("Resource '"+r+"' not found."));window.parent.postMessage(JSON.stringify(o),e.origin)}}}},{key:"objectifyError",value:function(e){var t,r={__isCrossDomainError:!0},n=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return i(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,u=!0,c=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return u=e.done,e},e:function(e){c=!0,a=e},f:function(){try{u||null==r.return||r.return()}finally{if(c)throw a}}}}(Object.getOwnPropertyNames(e));try{for(n.s();!(t=n.n()).done;){var o=t.value;r[o]=e[o]}}catch(e){n.e(e)}finally{n.f()}return r}}],v=[{key:"engage",value:(y=n().mark((function t(){var r,o;return n().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,h.default.create();case 2:return r=t.sent,(o=new e(r)).engage(),t.abrupt("return",o);case 6:case"end":return t.stop()}}),t)})),m=function(){var e=this,t=arguments;return new Promise((function(r,n){var i=y.apply(e,t);function a(e){o(i,r,n,a,u,"next",e)}function u(e){o(i,r,n,a,u,"throw",e)}a(void 0)}))},function(){return m.apply(this,arguments)})}],r&&u(t.prototype,r),v&&u(t,v),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=v},33059:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(){o=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},a="function"==typeof Symbol?Symbol:{},u=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function f(e,t,r,n){var o=t&&t.prototype instanceof h?t:h,a=Object.create(o.prototype),u=new j(n||[]);return i(a,"_invoke",{value:O(e,r,u)}),a}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=f;var p={};function h(){}function v(){}function y(){}var m={};l(m,u,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(T([])));b&&b!==t&&r.call(b,u)&&(m=b);var w=y.prototype=h.prototype=Object.create(m);function E(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function o(i,a,u,c){var s=d(e[i],e,a);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==n(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,u,c)}),(function(e){o("throw",e,u,c)})):t.resolve(f).then((function(e){l.value=e,u(l)}),(function(e){return o("throw",e,u,c)}))}c(s.arg)}var a;i(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return a=a?a.then(n,n):n()}})}function O(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=S(a,r);if(u){if(u===p)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=d(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===p)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function S(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method))return p;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var n=d(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,p;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,p):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function T(e){if(e){var t=e[u];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:P}}function P(){return{value:void 0,done:!0}}return v.prototype=y,i(w,"constructor",{value:y,configurable:!0}),i(y,"constructor",{value:v,configurable:!0}),v.displayName=l(y,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,l(e,s,"GeneratorFunction")),e.prototype=Object.create(w),e},e.awrap=function(e){return{__await:e}},E(_.prototype),l(_.prototype,c,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new _(f(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(w),l(w,s,"Generator"),l(w,u,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=T,j.prototype={constructor:j,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),k(r),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:T(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},e}function i(e,t,r,n,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void r(e)}u.done?t(c):Promise.resolve(c).then(n,o)}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r(82526),r(41817),r(32165),r(66992),r(78783),r(33948),r(72443),r(39341),r(73706),r(10408),r(30489),r(54747),r(68304),r(47042),r(69070),r(68309),r(41539),Object.defineProperty(t,"__esModule",{value:!0});var c=r(89727),s=r(81154),l=r(93632),f=function(){function e(t){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),u(this,"_isCrossDomainSupported",void 0),u(this,"container",void 0),u(this,"iframe",void 0),u(this,"frameReady",void 0),u(this,"neverReady",void 0),this.frameReady=!1,this.neverReady=!1;var n=function e(t){if(t.source===r.iframe.contentWindow&&"string"==typeof t.data){var n=(0,s.default)(t.data);(null==n?void 0:n.name)===c.GLOBAL_READY_MESSAGE&&!0===(null==n?void 0:n.ready)&&(window.removeEventListener("message",e),r._isCrossDomainSupported=n.isCrossDomainSupported,r.frameReady=!0)}};window.addEventListener("message",n),setTimeout((function(){r.frameReady||(window.removeEventListener("message",n),r.neverReady=!0)}),1e4);var o=window.document.createElement("div");this.styler(o),this.container=o,this.makeIFrame(t);var i=function(){window.document.body.appendChild(o),r.container.appendChild(r.iframe)};"interactive"===window.document.readyState||"complete"===window.document.readyState?i():window.document.addEventListener("readystatechange",(function e(){"interactive"!==window.document.readyState&&"complete"!==window.document.readyState||(window.document.removeEventListener("readystatechange",e),i())}))}var t,r,n,f;return t=e,r=[{key:"isCrossDomainSupported",get:function(){return this._isCrossDomainSupported}},{key:"postMessage",value:function(e){void 0!==this.iframe&&this.iframe.contentWindow.postMessage(e,"*")}},{key:"destroy",value:function(){this.container.removeChild(this.iframe),delete this.iframe}},{key:"ready",value:(n=o().mark((function e(){var t,r=this,n=arguments;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=n.length>0&&void 0!==n[0]?n[0]:0,!this.neverReady&&!this.frameReady&&34!==t){e.next=3;break}return e.abrupt("return");case 3:return e.next=5,new Promise((function(e){setTimeout((function(){e(r.ready(t+1))}),300)}));case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e,this)})),f=function(){var e=this,t=arguments;return new Promise((function(r,o){var a=n.apply(e,t);function u(e){i(a,r,o,u,c,"next",e)}function c(e){i(a,r,o,u,c,"throw",e)}u(void 0)}))},function(){return f.apply(this,arguments)})},{key:"styler",value:function(e){var t={display:"none",position:"absolute",top:"-999px",left:"-999px"};for(var r in t)(0,l.default)(t,r)&&(e.style[r]=t[r])}},{key:"makeIFrame",value:function(e){this.iframe=window.document.createElement("iframe"),this.styler(this.iframe),this.iframe.sandbox.add("allow-scripts"),this.iframe.sandbox.add("allow-same-origin"),this.iframe.src=e}}],r&&a(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=f},29011:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(){o=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},a="function"==typeof Symbol?Symbol:{},u=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function f(e,t,r,n){var o=t&&t.prototype instanceof h?t:h,a=Object.create(o.prototype),u=new j(n||[]);return i(a,"_invoke",{value:O(e,r,u)}),a}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=f;var p={};function h(){}function v(){}function y(){}var m={};l(m,u,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(T([])));b&&b!==t&&r.call(b,u)&&(m=b);var w=y.prototype=h.prototype=Object.create(m);function E(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function o(i,a,u,c){var s=d(e[i],e,a);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==n(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,u,c)}),(function(e){o("throw",e,u,c)})):t.resolve(f).then((function(e){l.value=e,u(l)}),(function(e){return o("throw",e,u,c)}))}c(s.arg)}var a;i(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return a=a?a.then(n,n):n()}})}function O(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=S(a,r);if(u){if(u===p)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=d(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===p)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function S(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method))return p;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var n=d(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,p;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,p):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function T(e){if(e){var t=e[u];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:P}}function P(){return{value:void 0,done:!0}}return v.prototype=y,i(w,"constructor",{value:y,configurable:!0}),i(y,"constructor",{value:v,configurable:!0}),v.displayName=l(y,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,l(e,s,"GeneratorFunction")),e.prototype=Object.create(w),e},e.awrap=function(e){return{__await:e}},E(_.prototype),l(_.prototype,c,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new _(f(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(w),l(w,s,"Generator"),l(w,u,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=T,j.prototype={constructor:j,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),k(r),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:T(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},e}function i(e,t,r,n,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void r(e)}u.done?t(c):Promise.resolve(c).then(n,o)}function a(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var a=e.apply(t,r);function u(e){i(a,n,o,u,c,"next",e)}function c(e){i(a,n,o,u,c,"throw",e)}u(void 0)}))}}r(82526),r(41817),r(32165),r(78783),r(72443),r(39341),r(73706),r(10408),r(30489),r(54747),r(68309),r(68304),r(47042),r(69070),r(66992),r(41539),r(33948),Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return{clear:function(){return a(o().mark((function t(){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e({method:"DELETE",path:"/storage"});case 2:case"end":return t.stop()}}),t)})))()},entries:function(){return a(o().mark((function t(){var r;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e({method:"GET",path:"/storage"});case 2:return r=t.sent,t.abrupt("return",r.body.entries);case 4:case"end":return t.stop()}}),t)})))()},getItem:function(t){return a(o().mark((function r(){var n;return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,e({method:"GET",path:"/storage/".concat(t)});case 2:return n=r.sent,r.abrupt("return",n.body.value);case 4:case"end":return r.stop()}}),r)})))()},removeItem:function(t){return a(o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,e({method:"DELETE",path:"/storage/".concat(t)});case 2:case"end":return r.stop()}}),r)})))()},setItem:function(t,r){return a(o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,e({method:"PUT",path:"/storage/".concat(t),body:{value:r}});case 2:case"end":return n.stop()}}),n)})))()}}}},80861:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}r(82526),r(41817),r(41539),r(32165),r(66992),r(78783),r(33948),r(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return null!==e&&"object"===n(e)&&!0===e.__isCrossDomainError}},85625:function(e,t,r){"use strict";r(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return"string"==typeof e.id&&"string"==typeof t.id&&e.id===t.id}},57345:function(e,t,r){"use strict";r(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.TrustedOriginStorageServer=t.TrustedOriginStorageClient=void 0;var n=r(73304);Object.defineProperty(t,"TrustedOriginStorageClient",{enumerable:!0,get:function(){return n.default}});var o=r(95453);Object.defineProperty(t,"TrustedOriginStorageServer",{enumerable:!0,get:function(){return o.default}})},97983:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r(82526),r(41817),r(41539),r(32165),r(66992),r(78783),r(33948),r(69070),r(47941),r(24603),r(74916),r(39714),r(4723),r(92222),r(15306),Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),i(this,"operations",void 0),i(this,"routable",void 0),this.operations={},this.routable={}}var t,r;return t=e,(r=[{key:"get",value:function(e){return"function"==typeof this.operations[e]?{call:this.operations[e]}:this.getRoutable(e)}},{key:"set",value:function(e,t){this.operations[e]=t,this.setRoutable(e)}},{key:"clear",value:function(){for(var e=0,t=Object.keys(this.operations);e<t.length;e++){var r=t[e];this.operations[r]=void 0}for(var n=0,o=Object.keys(this.routable);n<o.length;n++){var i=o[n];this.routable[i]=void 0}this.operations={},this.routable={}}},{key:"isRoutable",value:function(e){var t=this.pathToRegExp(e),r=new RegExp(t,"g").exec(e);return(1!==r.length||r[0]!==e)&&t}},{key:"getRoutable",value:function(e){for(var t=Object.keys(this.routable),r=0;r<t.length;r+=1){var o=t[r],i=(0,this.routable[o])(e);if("object"===n(i))return{call:this.operations[o],params:i.params}}}},{key:"setRoutable",value:function(e){var t=this.isRoutable(e);!1!==t&&(this.routable[e]=this.match(t))}},{key:"pathToRegExp",value:function(e){return"^"+(e=e.replace(/\./g,"\\.").replace(/\//g,"/").replace(/\?/g,"\\?").replace(/\/+$/,"").replace(/\*+/g,".*").replace(/:([^\d|^/][a-zA-Z0-9_]*(?=(?:\/|\\.)|$))/g,(function(e,t){return"(?<".concat(t,">[^/]+?)")})).concat("(\\/|$)"))+"(\\?.*){0,1}$"}},{key:"match",value:function(e){return function(t){var r,n=new RegExp(e,"g").exec(t),o=Array.isArray(n);if(o)return{matches:o,params:null!==(r=null==n?void 0:n.groups)&&void 0!==r?r:void 0}}}}])&&o(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=a},77005:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}r(82526),r(41817),r(32165),r(78783),r(69070),r(66992),r(41539),r(33948),Object.defineProperty(t,"__esModule",{value:!0}),t.deleteStorageEntries=t.deleteStorageItem=t.putStorageItem=t.getStorageItem=t.getStorageEntries=void 0;var o=r(29975);t.getStorageEntries=function(e,t){var r=(0,o.default)(t.request.trustedOrigins);return{entries:e.entries(r)}},t.getStorageItem=function(e,t){if("object"===n(t.params)){var r=(0,o.default)(t.request.trustedOrigins);return{value:e.get(r,t.params.key)}}return{value:null}},t.putStorageItem=function(e,t){if("object"===n(t.params)&&"object"===n(t.request.body)){var r=(0,o.default)(t.request.trustedOrigins);return e.set(r,t.params.key,t.request.body.value),{key:t.params.key,value:t.request.body.value}}return{key:"undefined"}},t.deleteStorageItem=function(e,t){if("object"===n(t.params)){var r=(0,o.default)(t.request.trustedOrigins);e.delete(r,t.params.key)}},t.deleteStorageEntries=function(e,t){var r=(0,o.default)(t.request.trustedOrigins);e.clear(r)}},29975:function(e,t,r){"use strict";r(69070),r(69600),r(2707),Object.defineProperty(t,"__esModule",{value:!0});var n=r(99145);t.default=function(e){return(0,n.uuidHash)(e.sort().join(","),"db0ec212-8371-47d7-b44a-c2d50493194d")}},82401:function(e,t,r){"use strict";r(69070),r(26699),Object.defineProperty(t,"__esModule",{value:!0});var n=["DELETE","GET","POST","PUT"];t.default=function(e){return"string"==typeof e.id&&"string"==typeof e.method&&n.includes(e.method)&&"string"==typeof e.path&&void 0!==e.trustedOrigins&&Array.isArray(e.trustedOrigins)}},82375:function(e,t,r){"use strict";function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r(69070),r(47941),Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),o(this,"memory",void 0),o(this,"length",void 0),this.memory={},Object.defineProperty(this,"length",{get:function(){return Object.keys(this.memory).length}})}var t,r;return t=e,(r=[{key:"getItem",value:function(e){var t;return null!==(t=this.memory[e])&&void 0!==t?t:null}},{key:"setItem",value:function(e,t){this.memory[e]=t}},{key:"removeItem",value:function(e){delete this.memory[e]}},{key:"key",value:function(e){return Object.keys(this.memory)[e]}},{key:"clear",value:function(){this.memory={}}}])&&n(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=i},61278:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(){o=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},a="function"==typeof Symbol?Symbol:{},u=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function f(e,t,r,n){var o=t&&t.prototype instanceof h?t:h,a=Object.create(o.prototype),u=new j(n||[]);return i(a,"_invoke",{value:O(e,r,u)}),a}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=f;var p={};function h(){}function v(){}function y(){}var m={};l(m,u,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(T([])));b&&b!==t&&r.call(b,u)&&(m=b);var w=y.prototype=h.prototype=Object.create(m);function E(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function o(i,a,u,c){var s=d(e[i],e,a);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==n(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,u,c)}),(function(e){o("throw",e,u,c)})):t.resolve(f).then((function(e){l.value=e,u(l)}),(function(e){return o("throw",e,u,c)}))}c(s.arg)}var a;i(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return a=a?a.then(n,n):n()}})}function O(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=S(a,r);if(u){if(u===p)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=d(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===p)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function S(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method))return p;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var n=d(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,p;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,p):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function T(e){if(e){var t=e[u];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:P}}function P(){return{value:void 0,done:!0}}return v.prototype=y,i(w,"constructor",{value:y,configurable:!0}),i(y,"constructor",{value:v,configurable:!0}),v.displayName=l(y,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,l(e,s,"GeneratorFunction")),e.prototype=Object.create(w),e},e.awrap=function(e){return{__await:e}},E(_.prototype),l(_.prototype,c,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new _(f(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(w),l(w,s,"Generator"),l(w,u,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=T,j.prototype={constructor:j,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),k(r),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:T(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},e}function i(e,t,r,n,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void r(e)}u.done?t(c):Promise.resolve(c).then(n,o)}function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,u=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function c(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function s(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r(82526),r(41817),r(32165),r(47042),r(68309),r(91038),r(72443),r(39341),r(73706),r(10408),r(30489),r(68304),r(69070),r(26699),r(32023),r(74916),r(23123),r(66992),r(41539),r(70189),r(78783),r(33948),r(54747),Object.defineProperty(t,"__esModule",{value:!0});var l=r(87191),f=r(82375),d=function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),s(this,"storage",void 0),s(this,"isCrossDomainSupported",void 0),s(this,"sep",":||:"),s(this,"keyCache",void 0),this.storage=t,this.isCrossDomainSupported=r,this.initKeyCache()}var t,r,n,u,d;return t=e,r=[{key:"initKeyCache",value:function(){this.keyCache={};for(var e=this.storage.length,t=0;t<e;t+=1){var r=this.storage.key(t);if("string"==typeof r&&r.includes(this.sep)){var n=a(r.split(this.sep),2),o=n[0],i=n[1];this.getKeySet(o).add(i)}}}},{key:"compositeKey",value:function(e,t){return e+this.sep+t}},{key:"getKeySet",value:function(e){var t=this.keyCache[e];return void 0===t&&(t=new Set,this.keyCache[e]=t),t}},{key:"get",value:function(e,t){return this.storage.getItem(this.compositeKey(e,t))}},{key:"set",value:function(e,t,r){this.getKeySet(e).add(t),this.storage.setItem(this.compositeKey(e,t),r)}},{key:"delete",value:function(e,t){this.storage.removeItem(this.compositeKey(e,t))}},{key:"clear",value:function(e){var t=this,r=this.getKeySet(e);r.forEach((function(r){t.delete(e,r)})),r.clear()}},{key:"entries",value:function(e){var t=this,r=[];return this.getKeySet(e).forEach((function(n){r.push([n,t.get(e,n)])})),r}}],n=[{key:"create",value:(u=o().mark((function t(){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,l.default)("localStorage");case 2:if(!t.sent){t.next=6;break}t.t0=new e(window.localStorage,!0),t.next=7;break;case 6:t.t0=new e(new f.default,!1);case 7:return t.abrupt("return",t.t0);case 8:case"end":return t.stop()}}),t)})),d=function(){var e=this,t=arguments;return new Promise((function(r,n){var o=u.apply(e,t);function a(e){i(o,r,n,a,c,"next",e)}function c(e){i(o,r,n,a,c,"throw",e)}a(void 0)}))},function(){return d.apply(this,arguments)})}],r&&c(t.prototype,r),n&&c(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=d},93632:function(e,t,r){"use strict";r(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}},81154:function(e,t,r){"use strict";r(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t={};try{var r;return null!==(r=JSON.parse(e))&&void 0!==r?r:t}catch(e){}return t}},87191:function(e,t,r){"use strict";function n(){n=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},a="function"==typeof Symbol?Symbol:{},u=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function f(e,t,r,n){var o=t&&t.prototype instanceof h?t:h,a=Object.create(o.prototype),u=new j(n||[]);return i(a,"_invoke",{value:O(e,r,u)}),a}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=f;var p={};function h(){}function v(){}function y(){}var m={};l(m,u,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(T([])));b&&b!==t&&r.call(b,u)&&(m=b);var w=y.prototype=h.prototype=Object.create(m);function E(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function n(i,a,u,c){var s=d(e[i],e,a);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==o(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){n("next",e,u,c)}),(function(e){n("throw",e,u,c)})):t.resolve(f).then((function(e){l.value=e,u(l)}),(function(e){return n("throw",e,u,c)}))}c(s.arg)}var a;i(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return a=a?a.then(o,o):o()}})}function O(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=S(a,r);if(u){if(u===p)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=d(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===p)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function S(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method))return p;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var n=d(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,p;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,p):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function T(e){if(e){var t=e[u];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:P}}function P(){return{value:void 0,done:!0}}return v.prototype=y,i(w,"constructor",{value:y,configurable:!0}),i(y,"constructor",{value:v,configurable:!0}),v.displayName=l(y,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,l(e,s,"GeneratorFunction")),e.prototype=Object.create(w),e},e.awrap=function(e){return{__await:e}},E(_.prototype),l(_.prototype,c,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new _(f(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(w),l(w,s,"Generator"),l(w,u,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=T,j.prototype={constructor:j,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),k(r),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:T(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},e}function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function i(e,t,r,n,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void r(e)}u.done?t(c):Promise.resolve(c).then(n,o)}function a(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var a=e.apply(t,r);function u(e){i(a,n,o,u,c,"next",e)}function c(e){i(a,n,o,u,c,"throw",e)}u(void 0)}))}}function u(){return(u=a(n().mark((function e(t){var r,i,a;return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("function"!=typeof document.hasStorageAccess){e.next=6;break}return e.next=3,document.hasStorageAccess();case 3:e.t0=e.sent,e.next=7;break;case 6:e.t0=void 0;case 7:if(void 0===(i=e.t0)){e.next=10;break}return e.abrupt("return",i);case 10:return e.prev=10,r="string"==typeof t?window[t]:t,a="__storage_test__",r.setItem(a,a),r.removeItem(a),e.abrupt("return",!0);case 18:return e.prev=18,e.t1=e.catch(10),e.abrupt("return",e.t1 instanceof DOMException&&(22===e.t1.code||1014===e.t1.code||"QuotaExceededError"===e.t1.name||"NS_ERROR_DOM_QUOTA_REACHED"===e.t1.name)&&"object"===o(r)&&0!==r.length);case 21:case"end":return e.stop()}}),e,null,[[10,18]])})))).apply(this,arguments)}r(41539),r(82526),r(41817),r(32165),r(66992),r(78783),r(33948),r(72443),r(39341),r(73706),r(10408),r(30489),r(54747),r(68304),r(47042),r(69070),r(68309),Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return u.apply(this,arguments)}},99145:function(e,t,r){"use strict";function n(e,t){var r=(4194303&e)*(t|=0);return 0!=(4290772992&e)&&(r+=(4290772992&e)*t|0),0|r}r(69070),r(83112),r(41539),r(39714),r(66992),r(8255),r(92990),r(18927),r(33105),r(35035),r(74345),r(7174),r(32846),r(44731),r(77209),r(96319),r(58867),r(37789),r(33739),r(29368),r(14483),r(12056),r(3462),r(30678),r(27462),r(33824),r(55021),r(12974),r(15016),r(91058),r(74916),r(15306),r(69600),Object.defineProperty(t,"__esModule",{value:!0}),t.uuidHash=void 0,t.uuidHash=function(e,t){var r=function(e){for(var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=3735928559^r,i=1103547991^r,a=2207095982^r,u=1867964279^r,c=0;c<e.length;c++)o=n(o^(t=e.charCodeAt(c)),2654435761),i=n(i^t,1597334677),a=n(a^t,2654435761),u=n(u^t,1597334677);function s(e){return(e>>>0).toString(16).padStart(8,"0")}function l(e){for(var t=new Uint16Array(e.length),r=0;r<e.length;r++)t[r]=parseInt(e.charAt(r),16);return t}return o=n(o^o>>>16,2246822507)^n(i^i>>>13,3266489909),i=n(i^i>>>16,2246822507)^n(o^o>>>13,3266489909),a=n(a^a>>>16,2246822507)^n(u^u>>>13,3266489909),u=n(u^u>>>16,2246822507)^n(a^a>>>13,3266489909),l(s(i)+s(o)+s(u)+s(a))}(t+e),o=0;return[1e7,1e3,1e3,1e3,1e11].join("-").replace(/[01]/g,(function(e){var t=r[o].toString(16);return o+=1,t}))}},61043:function(e,t,r){"use strict";function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(69070);var o=function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._message=t,this._node=r}var t,r;return t=e,(r=[{key:"message",get:function(){return this._message}},{key:"node",get:function(){return this._node}}])&&n(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=o},19290:function(e,t,r){"use strict";function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(66992),r(41539),r(70189),r(78783),r(33948),r(38880),r(54747),r(69070);var o=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.onPropertySet=t,this._klasses=new Set}var t,r;return t=e,(r=[{key:"_trackObserver",value:function(e){e.__cbio_observers||(e.__cbio_observers=new Set),e.__cbio_observers.add(this)}},{key:"_untrackObserver",value:function(e){e.__cbio_observers&&e.__cbio_observers.delete(this)}},{key:"_tap",value:function(e,t){if(!e["__cbio_override_".concat(t)]){var r=Object.getOwnPropertyDescriptor(e.prototype,t);if(r){e["__cbio_override_".concat(t)]=!0;var n=r.set;r.set=function(r){var o=this;n.call(this,r),e.__cbio_observers&&e.__cbio_observers.forEach((function(e){e.onPropertySet(o,t,r)}))},Object.defineProperty(e.prototype,t,r)}}}},{key:"observe",value:function(e,t){this._klasses.add(e),this._trackObserver(e),this._tap(e,t)}},{key:"disconnect",value:function(){var e=this;this._klasses.forEach((function(t){return e._untrackObserver(t)})),this._klasses.clear()}}])&&n(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=o},71213:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}r(47941),r(82526),r(57327),r(38880),r(49337),r(33321),r(66992),r(78783),r(4129),r(33948),r(41817),r(32165),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(41539),r(54747),r(26833),r(21249),r(85827),r(69070);var o,i=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=u(t);if(r&&r.has(e))return r.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var c=i?Object.getOwnPropertyDescriptor(e,a):null;c&&(c.get||c.set)?Object.defineProperty(o,a,c):o[a]=e[a]}return o.default=e,r&&r.set(e,o),o}(r(53682)),a=(o=r(61043))&&o.__esModule?o:{default:o};function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(u=function(e){return e?r:t})(e)}function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach((function(t){l(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function l(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function f(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var d=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._id=t,this._dom={id:t,childNodes:[]},this._mapping={}}var t,r,n;return t=e,n=[{key:"createMapping",value:function(e){var t={};return(0,i.default)(e,(function(e){e.id?t[e.id]=e:console.warn("node missing id",e)})),t}},{key:"applyPatch",value:function(e,t){var r=this.createMapping(e),n={};t.forEach((function(e){if(e.id){var t=r[e.id]||{};r[e.id]=s(s({},t),e),n[e.id]=!0}else console.warn("diff missing id",e)})),Object.values(r).forEach((function(e){e.childNodes=(e.childNodes||[]).map((function(t){var n=t.id||t,o=r[n];if(!o)throw new a.default("denormalisation failed for child ".concat(n),e);return o}))}));var o=r[e.id],u=(0,i.depthFirstPostOrder)(o,(function(e,t){if(e.childNodes=t,t.map((function(e){return n[e.id]})).reduce((function(e,t){return e||t}),!1)){n[e.id]=!0;var o=s({},e);return r[e.id]=o,o}return e}));return{dom:u,mapping:this.createMapping(u)}}}],(r=[{key:"id",get:function(){return this._id}},{key:"document",get:function(){return this._dom}},{key:"node",value:function(e){return this._mapping[e]}},{key:"applyPatch",value:function(t){var r=e.applyPatch(this._dom,t),n=r.dom,o=r.mapping;return this._dom=n,this._mapping=o,this}}])&&f(t.prototype,r),n&&f(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=d},53682:function(e,t,r){"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function o(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach((function(t){i(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r(47941),r(82526),r(57327),r(41539),r(38880),r(54747),r(49337),r(33321),Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t,r){var n=t.childNodes,i=r(t,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];n=e}));return n&&n.length?o(o({},i),{},{childNodes:Array.from(n).map((function(t){return e(t,r)}))}):i},t.depthFirstPostOrder=function e(t,r){var n=Array.from(t.childNodes||[]).map((function(t){return e(t,r)}));return r(t,n)},r(21249),r(91038),r(78783),r(69070)},41514:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}r(66992),r(41539),r(78783),r(4129),r(33948),r(69070),r(38880),r(82526),r(41817),r(32165),Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"CompressionError",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"PropertyObserver",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"VirtualDOM",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"depthFirst",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"depthFirstPostOrder",{enumerable:!0,get:function(){return a.depthFirstPostOrder}}),Object.defineProperty(t,"isxdoc",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"parents",{enumerable:!0,get:function(){return c.default}});var o=f(r(61043)),i=f(r(71213)),a=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=l(t);if(r&&r.has(e))return r.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var u=i?Object.getOwnPropertyDescriptor(e,a):null;u&&(u.get||u.set)?Object.defineProperty(o,a,u):o[a]=e[a]}return o.default=e,r&&r.set(e,o),o}(r(53682)),u=f(r(49122)),c=f(r(51725)),s=f(r(19290));function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(l=function(e){return e?r:t})(e)}function f(e){return e&&e.__esModule?e:{default:e}}},49122:function(e,t,r){"use strict";function n(e){try{return!e.document&&!1}catch(e){return!0}}r(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return!!n(e)||!("IFRAME"!==e.tagName||!n(e.contentWindow))}},51725:function(e,t,r){"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}r(82526),r(41817),r(41539),r(32165),r(66992),r(78783),r(33948),r(91038),r(47042),r(68309),r(74916),r(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t,r){for(var o=[],i=t;i.parentNode&&i.parentNode!==r;)o.push(i.parentNode),i=i.parentNode;var a,u=i.defaultView&&i.defaultView.frameElement;return u?[].concat(o,[u],function(e){if(Array.isArray(e))return n(e)}(a=e(u))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(a)||function(e,t){if(e){if("string"==typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,t):void 0}}(a)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()):o},r(92222)},99796:function(e,t,r){"use strict";var n;r(74916),r(4723),r(91058),r(24603),r(39714),r(40561),r(15306),t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),this.useColors){var r="color: "+this.color;t.splice(1,0,r,"color: inherit");var n=0,o=0;t[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(n++,"%c"===e&&(o=n))})),t.splice(o,0,r)}},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){var e;try{e=t.storage.getItem("debug")}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e},t.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type&&!window.process.__nwjs)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(n=!1,function(){n||(n=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||function(){},e.exports=r(94701)(t),e.exports.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},94701:function(e,t,r){"use strict";function n(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}r(82526),r(41817),r(32165),r(66992),r(78783),r(33948),r(91038),r(68309),r(41539),r(54747),r(47941),r(9653),r(74916),r(15306),r(40561),r(69070),r(23123),r(24603),r(39714),r(47042),r(69600),r(92222),r(21249),e.exports=function(e){function t(e){var r,n,i,a=null;function u(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];if(u.enabled){var i=u,a=Number(new Date),c=a-(r||a);i.diff=c,i.prev=r,i.curr=a,r=a,n[0]=t.coerce(n[0]),"string"!=typeof n[0]&&n.unshift("%O");var s=0;n[0]=n[0].replace(/%([a-zA-Z%])/g,(function(e,r){if("%%"===e)return"%";s++;var o=t.formatters[r];if("function"==typeof o){var a=n[s];e=o.call(i,a),n.splice(s,1),s--}return e})),t.formatArgs.call(i,n);var l=i.log||t.log;l.apply(i,n)}}return u.namespace=e,u.useColors=t.useColors(),u.color=t.selectColor(e),u.extend=o,u.destroy=t.destroy,Object.defineProperty(u,"enabled",{enumerable:!0,configurable:!1,get:function(){return null!==a?a:(n!==t.namespaces&&(n=t.namespaces,i=t.enabled(e)),i)},set:function(e){a=e}}),"function"==typeof t.init&&t.init(u),u}function o(e,r){var n=t(this.namespace+(void 0===r?":":r)+e);return n.log=this.log,n}function i(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){var e=[].concat(n(t.names.map(i)),n(t.skips.map(i).map((function(e){return"-"+e})))).join(",");return t.enable(""),e},t.enable=function(e){var r;t.save(e),t.namespaces=e,t.names=[],t.skips=[];var n=("string"==typeof e?e:"").split(/[\s,]+/),o=n.length;for(r=0;r<o;r++)n[r]&&("-"===(e=n[r].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.slice(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){if("*"===e[e.length-1])return!0;var r,n;for(r=0,n=t.skips.length;r<n;r++)if(t.skips[r].test(e))return!1;for(r=0,n=t.names.length;r<n;r++)if(t.names[r].test(e))return!0;return!1},t.humanize=r(57824),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach((function(r){t[r]=e[r]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){for(var r=0,n=0;n<e.length;n++)r=(r<<5)-r+e.charCodeAt(n),r|=0;return t.colors[Math.abs(r)%t.colors.length]},t.enable(t.load()),t}},51178:function(e,t,r){"use strict";r(69070),r(68304),r(30489),r(12419),r(82526),r(41817),r(32165),r(72443),r(39341),r(73706),r(10408),r(54747),r(68309),r(47042),r(38880),r(49337),r(33321),Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.CobrowseIO=void 0,r(41539),r(57327),r(26699),r(32023),r(69826),r(47941),r(21249),r(66992),r(78783),r(33948),r(60285),r(41637),r(4129);var n=E(r(23493)),o=r(41514),i=r(17187),a=r(55064),u=r(58302),c=r(35161),s=r(6362),l=r(83042),f=E(r(41289)),d=r(77368),p=E(r(74011)),h=E(r(19356)),v=E(r(33191)),y=r(61640),m=r(79426),g=E(r(82175)),b=E(r(99796)),w=E(r(93677));function E(e){return e&&e.__esModule?e:{default:e}}function _(e){return _="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_(e)}function O(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function S(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?O(Object(r),!0).forEach((function(t){M(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):O(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function x(){x=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function s(e,t,r,o){var i=t&&t.prototype instanceof d?t:d,a=Object.create(i.prototype),u=new j(o||[]);return n(a,"_invoke",{value:E(e,r,u)}),a}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var f={};function d(){}function p(){}function h(){}var v={};c(v,i,(function(){return this}));var y=Object.getPrototypeOf,m=y&&y(y(T([])));m&&m!==t&&r.call(m,i)&&(v=m);var g=h.prototype=d.prototype=Object.create(v);function b(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function o(n,i,a,u){var c=l(e[n],e,i);if("throw"!==c.type){var s=c.arg,f=s.value;return f&&"object"==_(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,u)}),(function(e){o("throw",e,a,u)})):t.resolve(f).then((function(e){s.value=e,a(s)}),(function(e){return o("throw",e,a,u)}))}u(c.arg)}var i;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}})}function E(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=O(a,r);if(u){if(u===f)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function O(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method))return f;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,f;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function T(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:P}}function P(){return{value:void 0,done:!0}}return p.prototype=h,n(g,"constructor",{value:h,configurable:!0}),n(h,"constructor",{value:p,configurable:!0}),p.displayName=c(h,u,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,c(e,u,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},b(w.prototype),c(w.prototype,a,(function(){return this})),e.AsyncIterator=w,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new w(s(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(g),c(g,u,"Generator"),c(g,i,(function(){return this})),c(g,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=T,j.prototype={constructor:j,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),k(r),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:T(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},e}function k(e,t,r,n,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void r(e)}u.done?t(c):Promise.resolve(c).then(n,o)}function j(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){k(i,n,o,a,u,"next",e)}function u(e){k(i,n,o,a,u,"throw",e)}a(void 0)}))}}function T(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function P(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function L(e,t){return L=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},L(e,t)}function I(e,t){if(t&&("object"===_(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return A(e)}function A(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function C(e){return C=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},C(e)}function M(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function N(e,t,r){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,r)}function R(e,t){return function(e,t){return t.get?t.get.call(e):t.value}(e,F(e,t,"get"))}function D(e,t,r){return function(e,t,r){if(t.set)t.set.call(e,r);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=r}}(e,F(e,t,"set"),r),r}function F(e,t,r){if(!t.has(e))throw new TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}var U=(0,b.default)("cbio.CobrowseIO"),W=new WeakMap,z=new WeakMap,B=new WeakMap,G=new WeakMap,V=new WeakMap,Y=new WeakMap,H=new WeakMap,K=new WeakMap,q=new WeakMap,$=new WeakMap,X=new WeakMap,Q=new WeakMap,J=new WeakMap,Z=new WeakMap,ee=new WeakMap,te=new WeakMap,re=new WeakMap,ne=new WeakMap,oe=new WeakMap,ie=new WeakMap,ae=new WeakMap,ue=new WeakMap,ce=new WeakMap,se=new WeakMap,le=new WeakMap,fe=new WeakMap,de=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&L(e,t)}(k,e);var t,r,i,b,E,O=(b=k,E=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=C(b);if(E){var r=C(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return I(this,e)});function k(){var e,t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=r.sessionStorageFactory,u=void 0===i?function(e,t,r){var n=r.localStorage;return y.SessionStorage.create(e,t,{localStorage:n})}:i;return T(this,k),N(A(e=O.call(this)),W,{writable:!0,value:new a.ActivityDetection}),N(A(e),z,{writable:!0,value:void 0}),N(A(e),B,{writable:!0,value:void 0}),N(A(e),G,{writable:!0,value:void 0}),N(A(e),V,{writable:!0,value:new m.LocalSessionStorage}),N(A(e),Y,{writable:!0,value:void 0}),N(A(e),H,{writable:!0,value:void 0}),N(A(e),K,{writable:!0,value:{}}),N(A(e),q,{writable:!0,value:new s.SessionCapabilities(c.Device.info.capabilities)}),N(A(e),$,{writable:!0,value:new c.Device(A(e))}),N(A(e),X,{writable:!0,value:new l.ConsentDialog}),N(A(e),Q,{writable:!0,value:new l.ConsentDialog}),N(A(e),J,{writable:!0,value:new l.ConsentDialog}),N(A(e),Z,{writable:!0,value:void 0}),N(A(e),ee,{writable:!0,value:void 0}),N(A(e),te,{writable:!0,value:{}}),N(A(e),re,{writable:!0,value:void 0}),M(A(e),"start",j(x().mark((function t(){var r,n,i=arguments;return x().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=i.length>0&&void 0!==i[0]?i[0]:{},U("start()",r,"in",document),D(A(e),te,r),!v.default.isHeadless()||r.allowHeadless){t.next=6;break}return console.warn("CobrowseIO: Not starting Cobrowse in a headless browser"),t.abrupt("return");case 6:if(window.self===window.top){t.next=18;break}if(!r.allowIFrameStart){t.next=11;break}a.WindowTracking.setTracksIframes(!0),t.next=18;break;case 11:if(!(0,o.isxdoc)(window.parent)){t.next=16;break}return U("Starting Cobrowse in Iframe bridge mode with trusted origins:",h.default.trustedOrigins,"for",document),t.abrupt("return");case 16:return U("Not starting Cobrowse for same-origin iframe",document),t.abrupt("return");case 18:if(e.license){t.next=21;break}return console.error("CobrowseIO.license must be set before calling start"),t.abrupt("return");case 21:if(R(A(e),G)){t.next=36;break}return f.default.initialize(),a.WindowTracking.start(),(0,p.default)(k.version).catch((function(){})),D(A(e),H,R(A(e),Y).call(A(e),e.trustedOrigins,e.api,{localStorage:R(A(e),V)})),console.log("CobrowseIO started",k.version),D(A(e),G,!0),!1!==r.register&&(R(A(e),W).on("active",(function(){return R(A(e),$).runRegistrationLoop()})),R(A(e),W).on("inactive",(function(){return R(A(e),$).pauseRegistrationLoop()}))),R(A(e),W).start(),U("attempting to restore session after start"),t.next=33,R(A(e),ne).call(A(e));case 33:D(A(e),B,null),null!==(n=e.currentSession)&&void 0!==n&&n.isActive()||e.hideSessionControls(),window.addEventListener("focus",R(A(e),ne),{capture:!0});case 36:case"end":return t.stop()}}),t)})))),M(A(e),"stop",j(x().mark((function t(){return x().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.currentSession||e.currentSession.isEnded()){t.next=3;break}return t.next=3,e.currentSession.end().catch((function(e){console.warn("CobrowseIO: Failed to end session on stop",e)}));case 3:return window.removeEventListener("focus",R(A(e),ne),{capture:!0}),R(A(e),ie).call(A(e),null),a.WindowTracking.stop(),R(A(e),W).stop(),t.next=9,R(A(e),$).destroy();case 9:return t.next=11,R(A(e),H)&&R(A(e),H).destroy();case 11:return D(A(e),H,void 0),D(A(e),G,!1),t.abrupt("return",A(e));case 14:case"end":return t.stop()}}),t)})))),N(A(e),ne,{writable:!0,value:(t=j(x().mark((function t(){var r;return x().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,R(A(e),H).load(A(e));case 2:if(!(r=t.sent)){t.next=14;break}if(t.prev=4,r.state()){t.next=8;break}return t.next=8,r.fetch();case 8:R(A(e),ie).call(A(e),r,{invalidateFrames:!0}),t.next=14;break;case 11:t.prev=11,t.t0=t.catch(4),console.warn("CobrowseIO: Failed to fetch restored session",t.t0);case 14:return t.abrupt("return",null);case 15:case"end":return t.stop()}}),t,null,[[4,11]])}))),function(){return t.apply(this,arguments)})}),N(A(e),oe,{writable:!0,value:function(){R(A(e),$).bannerMessage()&&l.Toast.show(R(A(e),$).bannerMessage())}}),N(A(e),ie,{writable:!0,value:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.invalidateFrames,o=void 0!==n&&n;if(U("setting current session",t),t&&R(A(e),z)){var i=R(A(e),z).session;if(i.id()===t.id())return}R(A(e),X).hide(),R(A(e),Q).hide(),R(A(e),J).hide();var a=function(e,t){return h.default.broadcastToChildren("control",[e,t])};R(A(e),z)&&(R(A(e),z).session.off("updated",R(A(e),ae)),R(A(e),z).session.off("ended",R(A(e),ue)),R(A(e),z).session.off("control",a),R(A(e),z).destroy(),D(A(e),z,null)),t&&(D(A(e),z,new s.SessionContext(t,A(e),R(A(e),H))),t.state()&&R(A(e),ae).call(A(e),t),t.on("updated",R(A(e),ae)),t.once("ended",R(A(e),ue)),t.on("control",a),o&&R(A(e),z).invalidateFrames())}}),N(A(e),ae,{writable:!0,value:function(t){t.fullDevice()||R(A(e),J).hide(),"requested"!==t.remoteControl()&&R(A(e),Q).hide(),t.isAuthorizing()||R(A(e),X).hide(),R(A(e),oe).call(A(e),t),e.emit("session.updated",t)}}),N(A(e),ue,{writable:!0,value:function(t){e.emit("session.ended",t),R(A(e),ie).call(A(e),null)}}),N(A(e),ce,{writable:!0,value:void 0}),M(A(e),"hideSessionControls",(function(){l.SessionStateOverlay.hide()})),N(A(e),se,{writable:!0,value:(0,d.protect)(A(e),"getCapabilities",(function(){return R(A(e),q)}))}),N(A(e),le,{writable:!0,value:(0,n.default)((function(){var t;R(A(e),$).hasPendingUpdates()&&R(A(e),G)&&!1!==(null===(t=R(A(e),te))||void 0===t?void 0:t.register)&&R(A(e),$).updateRegistration().catch((function(e){console.warn("CobrowseIO: updating customData failed",e)}))}),8e3,{leading:!0,trailing:!0})}),M(A(e),"confirmRemoteControl",j(x().mark((function t(){return x().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",R(A(e),Q).show(g.default.tr("REMOTE_CONTROL_REQUEST_TITLE"),g.default.tr("REMOTE_CONTROL_REQUEST_DESCRIPTION")));case 1:case"end":return t.stop()}}),t)})))),M(A(e),"confirmFullDevice",j(x().mark((function t(){return x().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",R(A(e),J).show(g.default.tr("FULL_DEVICE_REQUEST_TITLE"),g.default.tr("FULL_DEVICE_REQUEST_DESCRIPTION")));case 1:case"end":return t.stop()}}),t)})))),M(A(e),"confirmSession",j(x().mark((function t(){return x().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",R(A(e),X).show(g.default.tr("SESSION_REQUEST_TITLE"),g.default.tr("SESSION_REQUEST_DESCRIPTION")));case 1:case"end":return t.stop()}}),t)})))),M(A(e),"getSession",function(){var t=j(x().mark((function t(r){var n;return x().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(R(A(e),G)){t.next=2;break}throw new Error("CobrowseIO not started. Call CobrowseIO.start()");case 2:if(!e.currentSession||e.currentSession.id()!==r&&e.currentSession.code()!==r){t.next=4;break}return t.abrupt("return",e.currentSession.fetch());case 4:return n=new s.Session(A(e)).updateResource({id:r}),R(A(e),ie).call(A(e),n),t.next=8,n.fetch();case 8:return e.emit("session.loaded",n),t.abrupt("return",n);case 10:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()),M(A(e),"createSession",j(x().mark((function t(){var r;return x().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(R(A(e),G)){t.next=2;break}throw new Error("CobrowseIO not started. Call CobrowseIO.start()");case 2:if(!e.currentSession||!e.currentSession.isActive()&&!e.currentSession.isAuthorizing()){t.next=4;break}throw new Error("Already in a session");case 4:return r=new s.Session(A(e)),R(A(e),ie).call(A(e),r),t.next=8,r.update({custom_data:e.customData,device:c.Device.info});case 8:return e.emit("session.loaded",r),t.abrupt("return",r);case 10:case"end":return t.stop()}}),t)})))),M(A(e),"createSessionCode",j(x().mark((function t(){var r;return x().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.createSession();case 2:return r=t.sent,t.abrupt("return",r.code());case 4:case"end":return t.stop()}}),t)})))),M(A(e),"client",j(x().mark((function t(){return x().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",A(e));case 1:case"end":return t.stop()}}),t)})))),N(A(e),fe,{writable:!0,value:function(t){t&&["license","api","customData","showSessionControls","hideSessionControls","confirmSession","confirmRemoteControl","confirmFullDevice","trustedOrigins","redactedViews","unredactedViews","ignoredViews","capabilities"].forEach((function(r){t[r]&&(e[r]=t[r])}))}}),U("interface constructed in",document),D(A(e),Y,u),e.api="https://api.cobrowse.io",R(A(e),fe).call(A(e),window&&window.CobrowseIO),D(A(e),B,R(A(e),V).load(A(e))),R(A(e),$).on("register",R(A(e),oe)),R(A(e),$).on("notification",(function(t){var r=t["cobrowseio-code"];r&&e.getSession(r).catch((function(e){console.warn("CobrowseIO: session fetch failed:",e)}))})),e}return t=k,i=[{key:"version",get:function(){return c.Device.info.sdk_version}}],(r=[{key:"deviceId",value:function(){return c.Device.deviceId()}},{key:"currentSession",get:function(){return R(this,z)?R(this,z).session:R(this,B)}},{key:"showSessionControls",get:function(){return R(this,ce)?R(this,ce):l.SessionStateOverlay.show},set:function(e){D(this,ce,e),l.SessionStateOverlay.hide(),this.currentSession&&this.currentSession.isActive()&&R(this,ce).call(this)}},{key:"license",get:function(){return u.RESTResource.getHeader("X-CobrowseLicense")},set:function(e){if(R(this,G)&&this.license!==e)throw new Error("Cannot change license once Cobrowse is started");u.RESTResource.setHeader("X-CobrowseLicense",e)}},{key:"api",get:function(){return u.RESTResource.api},set:function(e){if(R(this,G)&&u.RESTResource.api!==e)throw new Error("Cannot change API once Cobrowse is started");u.RESTResource.api=e}},{key:"redactedViews",get:function(){return R(this,Z)},set:function(e){if(R(this,G))throw new Error("Cannot set redacted views after Cobrowse is started");D(this,Z,e)}},{key:"unredactedViews",get:function(){return R(this,ee)},set:function(e){if(R(this,G))throw new Error("Cannot set unredacted views after Cobrowse is started");D(this,ee,e)}},{key:"ignoredViews",get:function(){return R(this,re)},set:function(e){if(R(this,G))throw new Error("Cannot set ignored views after Cobrowse is started");D(this,re,e),w.default.setIgnoredViews(e)}},{key:"capabilities",get:function(){return R(this,q).toArray()},set:function(e){if(R(this,G))throw new Error("Cannot set capabilities after Cobrowse is started");if(!Array.isArray(e))throw new Error("Capabilities should be an array");D(this,q,new s.SessionCapabilities(e.filter((function(e){return!!c.Device.info.capabilities.includes(e)||(console.warn("Capability '".concat(e,"' not supported. Ignoring...")),!1)}))))}},{key:"customData",get:function(){return S(S({},R(this,$).customData),R(this,K))},set:function(e){if("object"!==_(e))throw new Error("Custom data must be an object");if(D(this,K,S(S({},R(this,K)),e)),R(this,G)&&setTimeout(R(this,le),0),this.currentSession&&this.currentSession.isActive()){var t=this.currentSession.resource.custom_data;if(!Object.keys(e).find((function(r){return t[r]!==e[r]})))return void U("no changes to session custom data");this.currentSession.update({custom_data:e}).catch((function(){console.warn("CobrowseIO: failed to update custom data on active session")}))}}},{key:"trustedOrigins",get:function(){return h.default.trustedOrigins},set:function(e){var t=e.map((function(e){try{return new URL(e).origin}catch(t){return console.warn("CobrowseIO: Invalid URL in trustedOrigins:",e),null}})).filter((function(e){return e}));h.default.trustedOrigins=t}},{key:"version",get:function(){return k.version}}])&&P(t.prototype,r),i&&P(t,i),Object.defineProperty(t,"prototype",{writable:!1}),k}(i.EventEmitter);t.CobrowseIO=de,u.RESTResource.setHeader("Content-Type","application/json"),u.RESTResource.setHeader("X-CobrowsePlatform","web"),u.RESTResource.setHeader("X-CobrowseSDKVersion",de.version),u.RESTResource.setHeader("X-CobrowseDevice",c.Device.deviceId()),u.RESTResource.setHeader("X-CobrowseAPIVersion","1.2.0");var pe=new de;t.default=pe},21974:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}r(69070),r(82526),r(41817),r(32165),r(66992),r(78783),r(33948),r(72443),r(39341),r(73706),r(10408),r(30489),r(54747),r(68309),r(68304),r(47042),t.Z=function(){try{var e=window.CXBus.registerPlugin("CobrowseIOExtension");window.oCobrowseIOExtension=e,e.subscribe("WebChatService.started",(function(t){try{s("CobrowseIOExtension.WebChatService.started",t),function(e){document.getElementsByClassName("cx-menu")[0].innerHTML+='<li role="none"><div class="cx-menu-item cx-cobrowseio cx-icon" role="button" data-icon="cobrowseio" tabindex="0" aria-label="Start Co-browse Opens the Co-browse session" title="Start Co-browse" style="display: block/;"><svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" viewBox="0 0 100 100" focusable="false" role="img" aria-hidden="true" alt="" data-gcb-service-node="true"><g class="cx-svg-icon-tone1" data-gcb-service-node="true"><path d="M11.5000001,3 L85.4166665,3 L87.6666668,3 C90.2624998,3 97,3.75367965 97,8.36940835 L97,30.4776335 L4.16666671,30.4776335 L4.16666671,70.4963922 C4.16666671,78.8021647 9.0333332,80.6810966 11.3333336,80.6810966 L88.6666664,80.6810966 C90.9625002,80.6810966 92.8333333,78.8021647 92.8333333,76.4963922 L92.8333333,41.8470419 L97,41.8470419 L97,79.5093796 C97,84.1251081 93.2624998,84.8787879 91.6666668,84.8787879 L8.3333332,84.8787879 C3.73750015,84.8787879 1,81.1251081 0,75.5093796 L0,8.36940835 C3,3.75367965 2.73750015,3 8.3333332,3 L8.5000001,3 Z M18.0297398,7.03030303 L5.9962825,7.03030303 C5.79033476,7.03030303 3.99999999,8.59607987 3.99999999,10.5175565 L3.999999,26.1125541 L93,26.1125541 L93,10.5175565 C93,8.59607987 91.2056692,7.03030303 89.0037175,7.03030303 L81.9702602,7.03030303 L18.0297398,7.03030303 Z M42.3451929,54.7727663 L42.3451929,68.6904309 L35,68.6904309 L35,47.7138693 C35,44.657411 37.4676761,42.1818182 40.5082059,42.1818182 L61.3971055,42.1818182 L61.3971055,49.5560425 L47.5394308,49.5560425 L66.3971054,67.9373646 L61.202867,73.154089 L42.3451929,54.7727663 Z" id="Fill-1-Copy""></path></g></svg></div></li>',document.getElementsByClassName("cx-cobrowseio")[0].onclick=function(){return function(e){return l.apply(this,arguments)}(e)}}(e),function(e){e.command("WebChatService.updateUserData",{cobrowse_device_id:o.default.deviceId()}).done((function(e){s("CobrowseIOExtension.WebChWebChatService.updateUserData succeeded",e)})).fail((function(e){s("CobrowseIOExtension.WebChWebChatService.updateUserData failed",e)}))}(e);var r={cobrowse_device_id:o.default.deviceId()};t&&t.data&&(t.data.data&&t.data.data.conversationId&&(r.genesys_conversation_id=t.data.data.conversationId),t.data.userId&&"deprecated"!==t.data.userId&&(r.genesys_user_id=t.data.userId),t.data.sessionID&&"deprecated"!==t.data.sessionID&&(r.genesys_session_id=t.data.sessionID)),o.default.customData=r}catch(e){s("Error during CobrowseIOExtension.WebChatService.started",e)}})),e.subscribe("WebChatService.agentConnected",(function(e){s("CobrowseIOExtension.WebChatService.agentConnected",e)})),e.subscribe("WebChatService.clientConnected",(function(e){s("CobrowseIOExtension.WebChatService.clientConnected",e)})),e.subscribe("WebChatService.restored",(function(e){s("CobrowseIOExtension.WebChatService.restored",e)})),e.subscribe("WebChat.started",(function(e){try{if(s("CobrowseIOExtension.WebChat.started",e),e&&e.data&&e.data.form){s("e.data.form",e.data.form);var t=e.data.form||{};t.device_name=e.data.form.firstname?"".concat(e.data.form.firstname,"'s device"):"WebChat User's Device",o.default.customData=t}}catch(e){s("Error during CobrowseIOExtension.WebChat.started",e)}})),e.republish("ready"),e.ready()}catch(e){console.error("Error syncing Cobrowse.io with Genesys, please contact hello@cobrowse.io for help!"),console.warn(e)}},r(41539),r(92222);var o=i(r(51178));function i(e){return e&&e.__esModule?e:{default:e}}function a(){a=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},u=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function f(e,t,r,n){var i=t&&t.prototype instanceof h?t:h,a=Object.create(i.prototype),u=new j(n||[]);return o(a,"_invoke",{value:O(e,r,u)}),a}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=f;var p={};function h(){}function v(){}function y(){}var m={};l(m,u,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(T([])));b&&b!==t&&r.call(b,u)&&(m=b);var w=y.prototype=h.prototype=Object.create(m);function E(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function i(o,a,u,c){var s=d(e[o],e,a);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==n(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){i("next",e,u,c)}),(function(e){i("throw",e,u,c)})):t.resolve(f).then((function(e){l.value=e,u(l)}),(function(e){return i("throw",e,u,c)}))}c(s.arg)}var a;o(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){i(e,r,t,n)}))}return a=a?a.then(n,n):n()}})}function O(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=S(a,r);if(u){if(u===p)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=d(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===p)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function S(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method))return p;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var n=d(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,p;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,p):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function T(e){if(e){var t=e[u];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:P}}function P(){return{value:void 0,done:!0}}return v.prototype=y,o(w,"constructor",{value:y,configurable:!0}),o(y,"constructor",{value:v,configurable:!0}),v.displayName=l(y,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,l(e,s,"GeneratorFunction")),e.prototype=Object.create(w),e},e.awrap=function(e){return{__await:e}},E(_.prototype),l(_.prototype,c,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new _(f(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(w),l(w,s,"Generator"),l(w,u,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=T,j.prototype={constructor:j,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),k(r),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:T(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},e}function u(e,t,r,n,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void r(e)}u.done?t(c):Promise.resolve(c).then(n,o)}function c(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){u(i,n,o,a,c,"next",e)}function c(e){u(i,n,o,a,c,"throw",e)}a(void 0)}))}}var s=(0,i(r(99796)).default)("cbio.Integrations.Genesys");function l(){return(l=c(a().mark((function e(t){var r;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return s("Requesting cobrowse"),e.next=3,o.default.createSessionCode();case 3:r=e.sent,s("Generated session code: ".concat(r)),t.command("WebChatService.sendFilteredMessage",{message:"Customer requests Cobrowse session with code: ".concat(r.substr(0,3)," ").concat(r.substr(3)),regex:/Customer requests Cobrowse session with code:.*/}).done((function(e){s("CobrowseIOExtension.WebChatService sent filtered message successfully",e)})).fail((function(e){s("CobrowseIOExtension.WebChatService failed to send filtered message",e)}));case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},41289:function(e,t,r){"use strict";var n;function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(69070);var i=(0,((n=r(99796))&&n.__esModule?n:{default:n}).default)("cbio.Integrations"),a=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"watchProperty",value:function(e,t,r){e[t]?(i("".concat(t," already exists")),r()):(i("".concat(t," not set yet... monitoring"),e),Object.defineProperty(e,t,{configurable:!0,set:function(n){i("CobrowseIO detected",t),Object.defineProperty(e,t,{configurable:!0,writable:!0,value:n}),setTimeout(r,0)}}))}},{key:"initialize",value:function(){var e=this;i("Initializing integrations"),this.watchProperty(window,"CXBus",(function(){return r(21974).Z()})),this.watchProperty(window,"Intercom",(function(){return r(34775).Z()})),this.watchProperty(window,"$zopim",(function(){return r(23478).z2()})),this.watchProperty(window,"zE",(function(){"messenger"===window.zE.widget?r(23478).dQ():e.watchProperty(window.zE,"identify",(function(){return r(23478).Bt()}))})),this.watchProperty(window,"embedded_svc",(function(){return e.watchProperty(window.embedded_svc,"liveAgentAPI",(function(){r(38738).Z()}))}))}}],null&&o(t.prototype,null),n&&o(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=a},34775:function(e,t,r){"use strict";r(69070),t.Z=function(){try{if(!window.Intercom||"function"!=typeof window.Intercom)throw new Error("expected window.Intercom to be a function");a("Initializing intercom integration"),u(),window.Intercom("onShow",(0,n.default)(u,12e4,{trailing:!1}))}catch(e){console.error("Error syncing Cobrowse.io with Intercom, please contact hello@cobrowse.io for help!"),console.warn(e)}};var n=i(r(23493)),o=i(r(51178));function i(e){return e&&e.__esModule?e:{default:e}}var a=(0,i(r(99796)).default)("cbio.Integrations.Intercom");function u(){a("Updating intercom integration"),window.intercomSettings||(window.intercomSettings={}),window.intercomSettings.CobrowseID=o.default.deviceId(),window.Intercom("update",{CobrowseID:o.default.deviceId()})}},38738:function(e,t,r){"use strict";r(69070),t.Z=function(){try{if("object"!==i(window.embedded_svc))throw new Error("expected window.embedded_svc to a be an object");if(window.embedded_svc&&!window.embedded_svc.liveAgentAPI)throw new Error("expected liveAgentAPI on embedded_svc");a("Initializing salesforce integration"),window.embedded_svc.addEventHandler("onChatRequestSuccess",(function(e){e&&e.liveAgentSessionKey&&(n.default.customData={salesforce_liveAgentSessionKey:e.liveAgentSessionKey})})),window.embedded_svc.addEventHandler("onChatEndedByAgent",(function(){n.default.currentSession&&n.default.currentSession.end()})),window.embedded_svc.addEventHandler("onChatEndedByChasitor",(function(){n.default.currentSession&&n.default.currentSession.end()}))}catch(e){console.error("Error syncing Cobrowse.io with Salesforce Chat, please contact hello@cobrowse.io for help!"),console.warn(e)}},r(82526),r(41817),r(41539),r(32165),r(66992),r(78783),r(33948);var n=o(r(51178));function o(e){return e&&e.__esModule?e:{default:e}}function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}var a=(0,o(r(99796)).default)("cbio.Integrations.Salesforce")},23478:function(e,t,r){"use strict";r(69070),t.Bt=function(){try{!function(){if(!window.zE||!window.zE.identify)throw new Error("missing window.zE or window.zE.identify");s();var e=window.zE.identify;window.zE.identify=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return a("identify",r[0]),e.apply(void 0,r)}}()}catch(e){console.error("Error syncing Cobrowse.io with Zendesk (classic), please contact hello@cobrowse.io for help!"),console.warn(e)}},t.dQ=function(){try{"true"===sessionStorage.getItem("ZD-widgetOpen")?h().then(l):window.zE("messenger:on","open",(function(){h().then(l)}))}catch(e){console.error("Error syncing Cobrowse.io with Zendesk (messenger), please contact hello@cobrowse.io for help!"),console.warn(e)}},t.z2=function(){try{if("function"!=typeof window.$zopim)throw new Error("expected window.$zopim to a be a function");window.$zopim((function(){i("Initializing zendesk integration"),window.$zopim.livechat.addTags("cobrowseio_deviceid_".concat(n.default.deviceId())),n.default.customData={cobrowseio_deviceid:n.default.deviceId()}}))}catch(e){console.error("Error syncing Cobrowse.io with Zendesk Chat, please contact hello@cobrowse.io for help!"),console.warn(e)}},r(68309),r(47941),r(69826),r(41539),r(74916),r(4723);var n=o(r(51178));function o(e){return e&&e.__esModule?e:{default:e}}var i=(0,o(r(99796)).default)("cbio.Integrations.Zendesk");function a(e,t){var r={};"identify"===e&&t?(t.name&&(r.user_name=t.name),t.email&&(r.user_email=t.email),t.organization&&(r.user_organization=t.organization)):"prefill"===e&&t?(t.name&&t.name.value&&(r.user_name=t.name.value),t.email&&t.email.value&&(r.user_email=t.email.value),t.phone&&t.phone.value&&(r.user_phone=t.phone.value)):"logout"===e&&(r={user_name:null,user_email:null,user_organization:null,user_phone:null}),c(r)}function u(e,t){var r={};"identify"===e&&t?r={zendesk_web_user_id:t.appUserId}:"logoutUser"===e&&(r={user_name:null,user_email:null,user_organization:null,user_phone:null,zendesk_web_user_id:null,zendesk_user_id:null,zendesk_ticket_id:null}),c(r)}function c(e){Object.keys(e).length&&(n.default.customData=e)}function s(){var e=window.zE;for(var t in window.zE=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];console.log(r);var o=r[0],i=r[1],c=r[2];return"webWidget"===o&&a(i,c),"messenger"===o&&u(i,c),e.apply(void 0,r)},e)window.zE[t]=e[t]}function l(){s();var e=f();if(!e)throw new Error("Missing client ID (ZD-buid)");var t=d(e);if(!t)throw new Error("Instance ID could not be found");u("identify",{appUserId:p(t)})}function f(){return localStorage.getItem("ZD-buid")}function d(e){var t,r;return null===(t=Object.keys(localStorage).find((function(t){return t.match(/\w+\.clientId/)&&localStorage[t]===e})))||void 0===t||null===(r=t.split("."))||void 0===r?void 0:r[0]}function p(e){return localStorage.getItem("".concat(e,".appUserId"))}function h(){return new Promise((function e(t,r){var n=p(d(f()));n?t(n):setTimeout(e,2e3,t,r)}))}},55978:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}r(69070),r(68304),r(30489),r(12419),r(82526),r(41817),r(32165),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(66992),r(41539),r(78783),r(4129),r(33948);var o=r(17187),i=a(r(23493));function a(e){return e&&e.__esModule?e:{default:e}}function u(e,t){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},u(e,t)}function c(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return s(e)}function s(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function l(e){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},l(e)}function f(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function d(e,t,r){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,r)}function p(e,t){return function(e,t){return t.get?t.get.call(e):t.value}(e,v(e,t,"get"))}function h(e,t,r){return function(e,t,r){if(t.set)t.set.call(e,r);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=r}}(e,v(e,t,"set"),r),r}function v(e,t,r){if(!t.has(e))throw new TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}var y=(0,a(r(99796)).default)("cbio.ActivityDetection"),m=new WeakMap,g=new WeakMap,b=new WeakMap,w=new WeakMap,E=new WeakMap,_=new WeakMap,O=new WeakMap,S=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u(e,t)}(a,e);var t,r,n,o=(r=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=l(r);if(n){var o=l(this).constructor;e=Reflect.construct(t,arguments,o)}else e=t.apply(this,arguments);return c(this,e)});function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),d(s(t=o.call(this)),m,{writable:!0,value:!1}),d(s(t),g,{writable:!0,value:!1}),d(s(t),b,{writable:!0,value:null}),d(s(t),w,{writable:!0,value:9e5}),f(s(t),"start",(function(){p(s(t),m)||(h(s(t),m,!0),y("started"),document.addEventListener("mouseenter",p(s(t),E),{capture:!0,passive:!0}),document.addEventListener("mouseleave",p(s(t),E),{capture:!0,passive:!0}),document.addEventListener("mousemove",p(s(t),E),{capture:!0,passive:!0}),document.addEventListener("touchstart",p(s(t),E),{capture:!0,passive:!0}),document.addEventListener("touchend",p(s(t),E),{capture:!0,passive:!0}),document.addEventListener("touchmove",p(s(t),E),{capture:!0,passive:!0}),document.addEventListener("visibilitychange",p(s(t),E),{capture:!0}),p(s(t),E).call(s(t)))})),f(s(t),"stop",(function(){h(s(t),g,!1),h(s(t),m,!1),y("stopped"),clearTimeout(p(s(t),b)),t.removeAllListeners(),document.removeEventListener("mouseenter",p(s(t),E),{capture:!0,passive:!0}),document.removeEventListener("mouseleave",p(s(t),E),{capture:!0,passive:!0}),document.removeEventListener("mousemove",p(s(t),E),{capture:!0,passive:!0}),document.removeEventListener("touchstart",p(s(t),E),{capture:!0,passive:!0}),document.removeEventListener("touchend",p(s(t),E),{capture:!0,passive:!0}),document.removeEventListener("touchmove",p(s(t),E),{capture:!0,passive:!0}),document.removeEventListener("visibilitychange",p(s(t),E),{capture:!0})})),f(s(t),"isActive",(function(){return p(s(t),g)})),d(s(t),E,{writable:!0,value:(0,i.default)((function(){p(s(t),_).call(s(t)),clearTimeout(p(s(t),b)),h(s(t),b,setTimeout(p(s(t),O),p(s(t),w))),t.emit("activity")}),500,{trailing:!1})}),d(s(t),_,{writable:!0,value:function(){p(s(t),g)||(document.hidden?y("window is hidden, not becoming active"):(h(s(t),g,!0),y("became active"),t.emit("active")))}}),d(s(t),O,{writable:!0,value:function(){p(s(t),g)&&(h(s(t),g,!1),y("became inactive"),t.emit("inactive"))}}),e&&h(s(t),w,e),t}return t=a,Object.defineProperty(t,"prototype",{writable:!1}),t}(o.EventEmitter);t.default=S},12650:function(e,t,r){"use strict";r(47941),r(82526),r(57327),r(41539),r(38880),r(54747),r(49337),r(33321),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(69070);var n,o=(n=r(23493))&&n.__esModule?n:{default:n};function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach((function(t){s(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function u(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function c(e,t,r){return t&&u(e.prototype,t),r&&u(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function s(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var l=new(c((function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),s(this,"_mousePosition",{x:-1,y:-1}),s(this,"_mouseIsDown",!1),s(this,"_mouseIsIn",!1),s(this,"track",(function(e){e.addEventListener("mousedown",t._onMouseDown,{capture:!0,passive:!0}),e.addEventListener("mouseup",t._onMouseUp,{capture:!0,passive:!0}),e.addEventListener("mouseenter",t._onMouseEnter,{capture:!0,passive:!0}),e.addEventListener("mouseleave",t._onMouseLeave,{capture:!0,passive:!0}),e.addEventListener("mousemove",t._onMouseMove,{capture:!0,passive:!0})})),s(this,"untrack",(function(e){e.removeEventListener("mousedown",t._onMouseDown,{capture:!0,passive:!0}),e.removeEventListener("mouseup",t._onMouseUp,{capture:!0,passive:!0}),e.removeEventListener("mouseenter",t._onMouseEnter,{capture:!0,passive:!0}),e.removeEventListener("mouseleave",t._onMouseLeave,{capture:!0,passive:!0}),e.removeEventListener("mousemove",t._onMouseMove,{capture:!0,passive:!0})})),s(this,"isDown",(function(){return t._mouseIsDown})),s(this,"setDown",(function(e){t._mouseIsDown=e,t.onChange&&t.onChange(t.state())})),s(this,"isIn",(function(){return t._mouseIsIn>0})),s(this,"position",(function(){return t._mousePosition})),s(this,"setPosition",(function(e,r,n){if(n){var o=n.getBoundingClientRect();e+=Math.round(o.left),r+=Math.round(o.top)}t._mousePosition={x:e,y:r},t.onChange&&t.onChange(t.state())})),s(this,"state",(function(){return a(a({},t.position()),{},{down:t.isDown(),in:t.isIn()})})),s(this,"_onMouseDown",(function(e){e.isTrusted&&t.setDown(!0)})),s(this,"_onMouseUp",(function(e){e.isTrusted&&t.setDown(!1)})),s(this,"_onMouseEnter",(function(e){e.isTrusted&&(t._mouseIsIn+=1)})),s(this,"_onMouseLeave",(function(e){e.isTrusted&&e.target===e.currentTarget&&(t._mouseIsIn-=1)})),s(this,"_onMouseMove",(0,o.default)((function(e){if(e.isTrusted){var r=e.clientX,n=e.clientY,o=e.view&&e.view.frameElement;t.setPosition(r,n,o)}}),100))})));t.default=l},1094:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}r(69070),r(68304),r(30489),r(12419),r(82526),r(41817),r(32165),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(92222),r(66992),r(41539),r(78783),r(4129),r(33948);var o=r(17187),i=r(21614),a=u(r(95901));function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}function f(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return d(e)}function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}function h(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function v(e,t,r){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,r)}function y(e,t,r){return function(e,t,r){if(t.set)t.set.call(e,r);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=r}}(e,g(e,t,"set"),r),r}function m(e,t){return function(e,t){return t.get?t.get.call(e):t.value}(e,g(e,t,"get"))}function g(e,t,r){if(!t.has(e))throw new TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}var b=(0,u(r(99796)).default)("cbio.WindowTracking"),w="_cobrowse_window_id",E=new WeakMap,_=new WeakMap,O=new WeakMap,S=new WeakMap,x=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(g,e);var t,r,n,o,u=(n=g,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=p(n);if(o){var r=p(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return f(this,e)});function g(){var e;c(this,g);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return v(d(e=u.call.apply(u,[this].concat(r))),E,{writable:!0,value:(0,i.v4)()}),v(d(e),_,{writable:!0,value:!1}),v(d(e),O,{writable:!0,value:!1}),h(d(e),"start",(function(){m(d(e),O)||(y(d(e),O,!0),b("started"),m(d(e),S).call(d(e)),document.addEventListener("visibilitychange",m(d(e),S),{capture:!0}),document.addEventListener("mouseover",m(d(e),S),{capture:!0}))})),h(d(e),"stop",(function(){b("stopped"),e.removeAllListeners(),y(d(e),O,!1),document.removeEventListener("visibilitychange",m(d(e),S),{capture:!0}),document.removeEventListener("mouseover",m(d(e),S),{capture:!0})})),h(d(e),"isActive",(function(){return(0,a.default)().getItem(w)===e.id})),h(d(e),"setTracksIframes",(function(t){y(d(e),_,t),m(d(e),S).call(d(e))})),h(d(e),"shouldTrack",(function(){return!document.hidden&&(!(window.self!==window.top)||m(d(e),_))})),h(d(e),"makeActive",(function(){e.isActive()||(b("making active",window),(0,a.default)().setItem(w,e.id),e.emit("activate",window))})),h(d(e),"resignActive",(function(){e.isActive()&&(b("resigning active",window),(0,a.default)().setItem(w,null))})),v(d(e),S,{writable:!0,value:function(){e.shouldTrack()&&e.makeActive(),e.emit("updated")}}),e}return t=g,(r=[{key:"id",get:function(){return m(this,E)}}])&&s(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),g}(o.EventEmitter),k=new x;t.default=k},55064:function(e,t,r){"use strict";r(69070),Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ActivityDetection",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(t,"MouseTracking",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"WindowTracking",{enumerable:!0,get:function(){return i.default}});var n=a(r(55978)),o=a(r(12650)),i=a(r(1094));function a(e){return e&&e.__esModule?e:{default:e}}},97725:function(e,t,r){"use strict";r(69070),r(68304),r(30489),r(74819),r(38880),r(12419),r(82526),r(41817),r(32165),r(72443),r(39341),r(73706),r(10408),r(54747),r(68309),r(47042),Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.RegistrationPath=t.DeviceIdPath=void 0,r(41539),r(39714),r(66992),r(78783),r(33948),r(60285),r(41637),r(69826),r(47941),r(92222),r(74916),r(4129);var n=r(21614),o=r(58302),i=s(r(2260)),a=s(r(95901)),u=s(r(53440)),c=s(r(99421));function s(e){return e&&e.__esModule?e:{default:e}}function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function f(){f=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function s(e,t,r,o){var i=t&&t.prototype instanceof h?t:h,a=Object.create(i.prototype),u=new j(o||[]);return n(a,"_invoke",{value:O(e,r,u)}),a}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var p={};function h(){}function v(){}function y(){}var m={};c(m,i,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(T([])));b&&b!==t&&r.call(b,i)&&(m=b);var w=y.prototype=h.prototype=Object.create(m);function E(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function o(n,i,a,u){var c=d(e[n],e,i);if("throw"!==c.type){var s=c.arg,f=s.value;return f&&"object"==l(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,u)}),(function(e){o("throw",e,a,u)})):t.resolve(f).then((function(e){s.value=e,a(s)}),(function(e){return o("throw",e,a,u)}))}u(c.arg)}var i;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}})}function O(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=S(a,r);if(u){if(u===p)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=d(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===p)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function S(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method))return p;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var n=d(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,p;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,p):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function T(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:P}}function P(){return{value:void 0,done:!0}}return v.prototype=y,n(w,"constructor",{value:y,configurable:!0}),n(y,"constructor",{value:v,configurable:!0}),v.displayName=c(y,u,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,c(e,u,"GeneratorFunction")),e.prototype=Object.create(w),e},e.awrap=function(e){return{__await:e}},E(_.prototype),c(_.prototype,a,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new _(s(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(w),c(w,u,"Generator"),c(w,i,(function(){return this})),c(w,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=T,j.prototype={constructor:j,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),k(r),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:T(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},e}function d(e,t,r,n,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void r(e)}u.done?t(c):Promise.resolve(c).then(n,o)}function p(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){d(i,n,o,a,u,"next",e)}function u(e){d(i,n,o,a,u,"throw",e)}a(void 0)}))}}function h(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function v(e,t){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},v(e,t)}function y(e,t){if(t&&("object"===l(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return m(e)}function m(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g(){return g="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=b(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(arguments.length<3?e:r):o.value}},g.apply(this,arguments)}function b(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=w(e)););return e}function w(e){return w=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},w(e)}function E(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _(e,t,r){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,r)}function O(e,t){return function(e,t){return t.get?t.get.call(e):t.value}(e,x(e,t,"get"))}function S(e,t,r){return function(e,t,r){if(t.set)t.set.call(e,r);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=r}}(e,x(e,t,"set"),r),r}function x(e,t,r){if(!t.has(e))throw new TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}var k=(0,s(r(99796)).default)("cbio.Device"),j="_cobrowse_device_id";t.DeviceIdPath=j;var T="_cobrowse_device_registration";t.RegistrationPath=T;var P=new WeakMap,L=new WeakMap,I=new WeakMap,A=new WeakMap,C=new WeakMap,M=new WeakMap,N=new WeakMap,R=new WeakMap,D=new WeakMap,F=new WeakMap,U=new WeakMap,W=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&v(e,t)}(x,e);var t,r,o,s,d,b=(s=x,d=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=w(s);if(d){var r=w(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return y(this,e)});function x(e){var t,r;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,x),_(m(r=b.call(this)),P,{writable:!0,value:void 0}),_(m(r),L,{writable:!0,value:void 0}),_(m(r),I,{writable:!0,value:void 0}),_(m(r),A,{writable:!0,value:!1}),_(m(r),C,{writable:!0,value:void 0}),E(m(r),"url",(function(){return new URL("api/1/devices/".concat(r.id()),x.api).toString()})),E(m(r),"reset",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];k("resetting device"),clearTimeout(O(m(r),I)),S(m(r),I,null),e||(0,a.default)().removeItem(T),O(m(r),P)&&(O(m(r),P).close(),S(m(r),P,null))})),E(m(r),"destroy",p(f().mark((function e(){return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return k("destroying device"),r.reset(),e.abrupt("return",g((t=m(r),w(x.prototype)),"destroy",t).call(t));case 3:case"end":return e.stop()}}),e)})))),E(m(r),"hasPendingUpdates",(function(){var e=r.field("custom_data")||{},t=O(m(r),C).customData||{};return!!Object.keys(t).find((function(r){return e[r]!==t[r]}))})),_(m(r),M,{writable:!0,value:function(){if(!O(m(r),C).license)throw new Error("License required to generate storage key");return"".concat(O(m(r),C).license,":").concat(x.api)}}),E(m(r),"_saveRegistration",(function(){var e=r.field("next_registration")||3600,t=(new Date).getTime();"number"!=typeof Date.now()&&console.error("Unexpected type returned for Date.now(), expecting number got ".concat(l(Date.now()))),"number"!=typeof t&&console.error("Unexpected type for getTime() of Date, expecting number got ".concat(l(t)));var n={notification_url:r.field("notification_url"),notification_token:r.field("notification_token"),custom_data:r.field("custom_data"),next_registration_time:t+1e3*e};return r.cache({next_registration_time:n.next_registration_time}),(0,a.default)(O(m(r),M).call(m(r))).setItem(T,n),m(r)})),E(m(r),"_loadRegistration",(function(){if(!O(m(r),A)){S(m(r),A,!0);var e=(0,a.default)(O(m(r),M).call(m(r))).getItem(T);e&&(k("restoring registration",e),r.cache(e))}})),E(m(r),"updateRegistration",function(){var e=p(f().mark((function e(t){return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!O(m(r),L).limit()){e.next=2;break}throw new Error("Cobrowse update rate limit exceeded. Maybe you're updating custom data too often?");case 2:return k("updating registration"),e.next=5,r.update({device:x.info,custom_data:O(m(r),C).customData},t);case 5:return O(m(r),U).call(m(r)),r._saveRegistration(),r.emit("register"),e.abrupt("return",m(r));case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),E(m(r),"runRegistrationLoop",p(f().mark((function e(){return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(k("starting registrations"),r._loadRegistration(),r.reset(!0),!(r.hasPendingUpdates()||r.nextRegistration()<=0)){e.next=6;break}return e.next=6,r.updateRegistration().catch((function(){}));case 6:O(m(r),U).call(m(r)),O(m(r),N).call(m(r));case 8:case"end":return e.stop()}}),e)})))),E(m(r),"pauseRegistrationLoop",p(f().mark((function e(){return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:k("pausing registrations"),r.reset(!0);case 2:case"end":return e.stop()}}),e)})))),E(m(r),"nextRegistration",(function(){return(r.field("next_registration_time")||0)-(new Date).getTime()})),E(m(r),"bannerMessage",(function(){return r.field("banner_message")||!1})),E(m(r),"_nextUpdate",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return Math.max(Math.min(6e4*e,36e5),r.nextRegistration())})),_(m(r),N,{writable:!0,value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(O(m(r),I))console.error("CobrowseIO: tried to schedule registration while already scheduled");else{var t=r._nextUpdate(e);S(m(r),I,setTimeout(p(f().mark((function t(){return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(O(m(r),I)){t.next=2;break}return t.abrupt("return",console.error("Registration loop cancelled"));case 2:return t.prev=2,t.next=5,r.updateRegistration();case 5:return S(m(r),I,!1),t.abrupt("return",O(m(r),N).call(m(r)));case 9:return t.prev=9,t.t0=t.catch(2),console.warn("CobrowseIO: registration failed",t.t0),S(m(r),I,!1),t.abrupt("return",O(m(r),N).call(m(r),e+1));case 14:case"end":return t.stop()}}),t,null,[[2,9]])}))),Math.max(1e3,t)))}}}),_(m(r),R,{writable:!0,value:function(){var e=r.field("notification_url"),t=r.field("notification_token");return(0,u.default)(e,t)}}),_(m(r),D,{writable:!0,value:function(){O(m(r),P)||(S(m(r),P,new i.default({getUrl:O(m(r),R)})),O(m(r),P).setMaxReconnectDelay(6e4),O(m(r),P).on("error",(function(e){e&&console.warn("CobrowseIO notification socket error:",e)})),O(m(r),P).on("event",(function(e,t){"notification"===e?r.emit("notification",t):"probe"===e&&O(m(r),P).send("alive",t)})),O(m(r),P).on("open",(function(){O(m(r),P).send("filter",{events:["probe","notification"]})})))}}),_(m(r),F,{writable:!0,value:function(){O(m(r),P)&&(console.log("CobrowseIO: Closing socket"),O(m(r),P).close(),S(m(r),P,null))}}),_(m(r),U,{writable:!0,value:function(){var e=r.field("notification_url"),t=r.field("notification_token");e&&t?O(m(r),D).call(m(r)):O(m(r),F).call(m(r))}}),k("constructed"),!e)throw new Error("Device delegate is required");return S(m(r),C,e),S(m(r),L,new c.default(10,12e4)),r}return t=x,o=[{key:"deviceCredentials",value:function(){var e=(0,a.default)().getItem(j)||{};return"string"==typeof e&&(e={id:e}),"object"!==l(e)&&(e={}),e.id||(e.id=(0,n.v4)()),e.token||(e.token=(0,n.v4)()),(0,a.default)().setItem(j,e),e}},{key:"deviceId",value:function(){return this.deviceCredentials().id}},{key:"deviceToken",value:function(){return this.deviceCredentials().token}},{key:"info",get:function(){var e=["pointer","scroll","select","keypress","drawing","laser","cursor"];return/Android|webOS|iPhone|iPad|iPod|Opera Mini/i.test(window.navigator.userAgent)||e.push("full_device"),{platform:"web",device:window.navigator.userAgent,device_locale:window.navigator.language,device_timezone:window.Intl.DateTimeFormat().resolvedOptions().timeZone,os_version:window.navigator.platform,app_id:window.location.origin,app_name:window.document.title,app_build_configuration:"release",sdk_version:"2.22.3",capabilities:e}}}],(r=[{key:"id",value:function(){return x.deviceId()}},{key:"customData",get:function(){return this.field("custom_data")||{}}}])&&h(t.prototype,r),o&&h(t,o),Object.defineProperty(t,"prototype",{writable:!1}),x}(o.RESTResource);t.default=W},35161:function(e,t,r){"use strict";r(69070),Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Device",{enumerable:!0,get:function(){return o.default}});var n,o=(n=r(97725))&&n.__esModule?n:{default:n}},8128:function(e,t,r){"use strict";r(47941),r(82526),r(57327),r(38880),r(49337),r(33321),r(47042),r(91038),r(74916),r(41817),r(32165),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(41539),r(54747),r(26699),r(32023),r(68309),r(66992),r(70189),r(78783),r(33948),r(69070);var n,o=r(41514),i=r(55064),a=(n=r(18755))&&n.__esModule?n:{default:n};function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach((function(t){d(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function l(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function f(e,t,r){return t&&l(e.prototype,t),r&&l(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function d(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var p=f((function e(t){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),d(this,"_init",(function(){r._propertyWatcher||(r._propertyWatcher=new o.PropertyObserver(r._onPropertySet),a.default.on("stylechange",r._onStyleSheetChange),a.default.on("navigate",r._onNavigation))})),d(this,"observe",(function(e){if(!r._observing.has(e)){r._init(),e.addEventListener("scroll",r._onEvent,{capture:!0,passive:!0}),e.addEventListener("focus",r._onFocusChange,{capture:!0,passive:!0}),e.addEventListener("blur",r._onFocusChange,{capture:!0,passive:!0}),e.addEventListener("change",r._onInputEvent,{capture:!0,passive:!0}),e.addEventListener("keydown",r._onInputEvent,{capture:!0,passive:!0}),e.addEventListener("keyup",r._onInputEvent,{capture:!0,passive:!0}),e.addEventListener("keypress",r._onInputEvent,{capture:!0,passive:!0}),e.addEventListener("selectionchange",r._onSelectionEvent,{capture:!0,passive:!0}),e.addEventListener("select",r._onSelectionEvent,{capture:!0,passive:!0}),i.MouseTracking.track(e),r._observing.add(e);var t=(e.ownerDocument||e).defaultView;t&&!r._windows.has(t)&&(r._windows.add(t),a.default.tap(t),r._propertyWatcher.observe(t.HTMLInputElement,"value"),r._propertyWatcher.observe(t.HTMLInputElement,"checked"),r._propertyWatcher.observe(t.HTMLTextAreaElement,"value"),r._propertyWatcher.observe(t.ShadowRoot,"adoptedStyleSheets"),r._propertyWatcher.observe(t.Document,"adoptedStyleSheets"),t.addEventListener&&(t.addEventListener("hashchange",r._onEvent,{capture:!0,passive:!0}),t.addEventListener("resize",r._onEvent,{capture:!0,passive:!0})))}})),d(this,"disconnect",(function(){r._observing.forEach((function(e){e.removeEventListener("scroll",r._onEvent,{capture:!0,passive:!0}),e.removeEventListener("focus",r._onFocusChange,{capture:!0,passive:!0}),e.removeEventListener("blur",r._onFocusChange,{capture:!0,passive:!0}),e.removeEventListener("change",r._onInputEvent,{capture:!0,passive:!0}),e.removeEventListener("keydown",r._onInputEvent,{capture:!0,passive:!0}),e.removeEventListener("keyup",r._onInputEvent,{capture:!0,passive:!0}),e.removeEventListener("keypress",r._onInputEvent,{capture:!0,passive:!0}),e.removeEventListener("selectionchange",r._onSelectionEvent,{capture:!0,passive:!0}),e.removeEventListener("select",r._onSelectionEvent,{capture:!0,passive:!0}),i.MouseTracking.untrack(e)})),r._observing.clear(),r._windows.forEach((function(e){a.default.untap(e),e&&!(0,o.isxdoc)(e)&&e.removeEventListener&&(e.removeEventListener("hashchange",r._onEvent,{capture:!0,passive:!0}),e.removeEventListener("resize",r._onEvent,{capture:!0,passive:!0}))})),r._windows.clear(),r._propertyWatcher&&(r._propertyWatcher.disconnect(),r._propertyWatcher=null,a.default.off("stylechange",r._onStyleSheetChange),a.default.off("navigate",r._onNavigation))})),d(this,"_target",(function(e){return e.target&&e.target.document||e.target})),d(this,"_onEvent",(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r._onModification(r._target(e),s(s({},t),{},{type:e.type}))})),d(this,"_onSelectionEvent",(function(e){var t,n,o=null!==(t=e.target.ownerDocument)&&void 0!==t?t:e.target;o.__last_agent_selection_ts>Date.now()-100||("selectionchange"===e.type&&(["INPUT","TEXTAREA"].includes(null===(n=o.activeElement)||void 0===n?void 0:n.tagName)?(o.activeElement.__cobrowse_user_selection_timestamp=Date.now(),r._onModification(o.activeElement,{type:e.type})):(e.target.__cobrowse_user_selection_timestamp=Date.now(),r._onModification(e.target,{type:e.type}))),"select"===e.type&&(e.target.__cobrowse_user_selection_timestamp=Date.now(),r._onModification(e.target,{type:e.type})))})),d(this,"_onStyleSheetChange",(function(e){e.ownerNode&&r._onModification(e.ownerNode,{type:"stylesheet"});var t,n=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){c=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(c)throw i}}}}(r._observing);try{for(n.s();!(t=n.n()).done;){var o,i=t.value;null!==(o=i.adoptedStyleSheets)&&void 0!==o&&o.includes(e)&&r._onModification(i,{type:"adoptedstylesheet"})}}catch(e){n.e(e)}finally{n.f()}})),d(this,"_onNavigation",(function(e){r._onModification(e.document,{type:"navigation"})})),d(this,"_onFocusChange",(function(e){r._onModification(e.target,{type:e.type}),e.target.ownerDocument&&r._onModification(e.target.ownerDocument,{type:e.type})})),d(this,"_onInputEvent",(function(e){"SELECT"===e.target.tagName||"TEXTAREA"===e.target.tagName?r._onModification(r._target(e),{recursive:!0,type:e.type}):"INPUT"===e.target.tagName&&("radio"===e.target.type?(e.target.closest("form")||e.target.ownerDocument).querySelectorAll("input[type=radio][name=".concat(e.target.name,"]")).forEach((function(t){return r._onModification(t,{type:e.type})})):r._onModification(r._target(e),{recursive:!0,type:e.type}))})),d(this,"_onPropertySet",(function(e){r._onModification(e,{type:"property"})})),this._onModification=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return setTimeout((function(){return t.apply(void 0,r)}),0)},this._observing=new Set,this._windows=new Set}));t.default=p},40638:function(e,t,r){"use strict";r(82526),r(38880),r(49337),r(33321),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(57327),r(41539),r(21249),r(47941),r(85827),r(26833),r(54747),r(69070);var n,o=(n=r(64063))&&n.__esModule?n:{default:n},i=r(41514);function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach((function(t){l(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function c(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function s(e,t,r){return t&&c(e.prototype,t),r&&c(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function l(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var f=s((function e(t){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),l(this,"_difference",(function(e,t){return t?Object.keys(e).map((function(r){return!(0,o.default)(e[r],t[r])&&l({},r,e[r])})).filter((function(e){return e})).reduce((function(e,t){return u(u({},e),t)}),{}):u({},e)})),l(this,"compress",(function(){return Object.values(r.modified).map((function(e){var t=r.state.node(e.id),n=r._difference(e,t),o=u({id:e.id},n);return 1!==Object.keys(o).length&&o})).filter((function(e){return e}))})),l(this,"mark",(function(){return r.state.applyPatch(Object.values(r.modified)),r.modified={},r})),l(this,"_flatten",(function(e){return e.childNodes?u(u({},e),{},{childNodes:e.childNodes.map((function(e){return{id:e.id}}))}):e})),l(this,"push",(function(e){return e&&e.modified?(e.modified.filter((function(e){return e})).forEach((function(e){(0,i.depthFirst)(e,(function(e){r.modified[e.id]=u(u({},r.modified[e.id]),r._flatten(e))}))})),r):(console.error("invalid patch",e),r)})),l(this,"reset",(function(e){return r.state=new i.VirtualDOM(r._id),r.modified={},e&&r.push({_t:"reset",modified:[e]}),r})),this._id=t,this.reset()}));t.default=f},33375:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}r(68304),r(30489),r(12419),r(47941),r(82526),r(38880),r(49337),r(33321),r(41817),r(32165),r(91038),r(68309),r(74916),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(66992),r(41539),r(70189),r(78783),r(33948),r(54747),r(47042),r(39714),r(92222),r(57327),r(21249),r(69070);var o=r(17187),i=r(41514),a=r(28541),u=r(67743),c=l(r(8128)),s=l(r(19356));function l(e){return e&&e.__esModule?e:{default:e}}function f(e){return function(e){if(Array.isArray(e))return p(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||d(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e,t){if(e){if("string"==typeof e)return p(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?p(e,t):void 0}}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function h(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function v(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?h(Object(r),!0).forEach((function(t){w(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function y(e,t){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},y(e,t)}function m(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return g(e)}function g(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function b(e){return b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},b(e)}function w(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var E=(0,l(r(99796)).default)("cbio.PatchStream"),_=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&y(e,t)}(l,e);var t,r,n,o=(r=l,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=b(r);if(n){var o=b(this).constructor;e=Reflect.construct(t,arguments,o)}else e=t.apply(this,arguments);return m(this,e)});function l(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),w(g(t=o.call(this)),"start",(function(){E("starting patch stream for",t._root),t._documents=new Set,t._redacted=new Set,t._iframeBridge.on("iframe_patched",t._onXDocIframeUpdate),t._canvasUpdateInterval=setInterval(t._updateCanvasContent,2e3),t._observe(t._root)})),w(g(t),"forceUpdate",(function(){E("forcing entire state update from",t._root),t.emit("patch",{_t:"pre-force",flush:!0,modified:[v(v({},u.NodeSerializer.serialize(t._root)),{},{scroll:void 0,childNodes:[v(v({},u.NodeSerializer.serialize(t._root.documentElement)),{},{childNodes:[u.NodeTree.depthFirst(t._root.head,u.NodeSerializer.serialize)]})]})]}),t.emit("patch",{_t:"forced",modified:[u.NodeTree.depthFirst(t._root,u.NodeSerializer.serialize)]})})),w(g(t),"stop",(function(){E("stopping patch stream for",t._root),t._mutationObserver.disconnect(),t._eventObserver.disconnect(),t._iframeBridge.removeListener("iframe_patched",t._onXDocIframeUpdate),clearInterval(t._canvasUpdateInterval),t._documents&&t._documents.clear(),t._documents=null})),w(g(t),"destroy",(function(){E("destroying patch stream for",t._root),t.stop(),t.removeAllListeners(),u.NodeTree.depthFirst(t._root,t._untrack),t._mutationObserver=null,t._eventObserver=null,t._iframeBridge=null,t._redacted=null,t._root=null})),w(g(t),"_updateCanvasContent",(function(){t._documents.forEach((function(e){(0,i.isxdoc)(e)||e.nodeType!==window.Node.DOCUMENT_FRAGMENT_NODE&&[].slice.call(e.getElementsByTagName("canvas")).forEach((function(e){t.emit("patch",{_t:"canvas",modified:[u.NodeSerializer.serialize(e)]})}))}))})),w(g(t),"_track",(function(e){if(u.NodeUtils.isDOMNode(e)){u.NodeTracker.track(e);var r=t._redacted.has(e),n=a.NodeRedaction.isNodeRedacted(e);r&&!n?t._redacted.delete(e):!r&&n&&t._redacted.add(e),e.nodeType===window.Node.DOCUMENT_NODE&&t._observe(e),e.nodeType===window.Node.DOCUMENT_FRAGMENT_NODE&&"[object Object]"!==e.toString()&&t._observe(e),"IFRAME"===e.tagName&&((0,i.isxdoc)(e)&&t._iframeBridge.sync(e),e.removeEventListener("load",t._onIframeLoad),e.addEventListener("load",t._onIframeLoad))}})),w(g(t),"_untrack",(function(e){u.NodeTracker.forget(e),t._redacted&&t._redacted.delete(e),u.NodeUtils.isDOMNode(e)&&"IFRAME"===e.tagName&&e.removeEventListener("load",t._onIframeLoad)})),w(g(t),"_observe",(function(e){if(e.nodeType!==window.Node.DOCUMENT_NODE&&e.nodeType!==window.Node.DOCUMENT_FRAGMENT_NODE)throw new Error("CobrowseIO: observed a non-document or fragment node (type=".concat(e.nodeType,")"));if(!t._documents.has(e)){E("starting observation of",e),t._documents.add(e),E("doing initial node tracking on observe for",e),u.NodeTree.depthFirst(e,t._track),t._eventObserver.observe(e);try{t._mutationObserver.observe(e,{attributes:!0,childList:!0,subtree:!0,characterData:!0})}catch(t){console.error("CobrowseIO failed to start mutation observer for",e)}}})),w(g(t),"_onXDocIframeUpdate",(function(e){E("xdoc iframe updated",e),a.NodeRedaction.isRedacted(e)||u.NodeTree.isIgnored(e)||t.emit("patch",{_t:"xdociframeupdate",modified:[u.NodeTree.depthFirst(e,u.NodeSerializer.serialize)]})})),w(g(t),"_onIframeLoad",(function(e){var r=e.target;E("iframe loaded",r),a.NodeRedaction.isRedacted(r)||((0,i.isxdoc)(r)?t._iframeBridge.sync(r):t._observe(r.contentWindow.document),u.NodeTree.isIgnored(r)||t.emit("patch",{_t:"iframeupdate",modified:[u.NodeTree.depthFirst(r,u.NodeSerializer.serialize)]}))})),w(g(t),"_onEventMutation",(function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t._onDOMChange(t._mutationObserver.takeRecords()),"TEXTAREA"===e.tagName&&u.NodeTree.depthFirst(e,t._track),u.NodeTracker.get(e)&&!a.NodeRedaction.isRedacted(e)&&!u.NodeTree.isIgnored(e)){var n=r.recursive?u.NodeTree.depthFirst(e,u.NodeSerializer.serialize):u.NodeSerializer.serialize(e);t.emit("patch",{_t:"eventmutation:".concat(r.type),modified:[n]})}})),w(g(t),"_discoverNodes",(function(e,r,n){for(var o=e.addedNodes?[].slice.call(e.addedNodes):[],i=a.NodeRedaction.notifyChanges([e]),c=0,s=[e.target].concat(f(i.modified));c<s.length;c++){var l=s[c];r.has(l)||(n.add(l),t._redacted.has(l)&&!a.NodeRedaction.isNodeRedacted(l)&&o.push(l))}var p,h=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=d(e))){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw i}}}}(o);try{for(h.s();!(p=h.n()).done;){var v=p.value;u.NodeTree.depthFirst(v,(function(e){n.add(e),r.delete(e)}))}}catch(e){h.e(e)}finally{h.f()}e.removedNodes&&[].slice.call(e.removedNodes).forEach((function(e){u.NodeTree.depthFirst(e,(function(e){n.delete(e),r.add(e)}))}))})),w(g(t),"_getModifications",(function(e){var r=new Set,n=new Set;return e.forEach((function(e){("characterData"===e.type||n.has(e.target)||u.NodeTracker.get(e.target))&&t._discoverNodes(e,r,n)})),r.forEach((function(e){return t._untrack(e)})),n.forEach((function(e){return t._track(e)})),n})),w(g(t),"_onDOMChange",(function(e){var r=t._getModifications(e);E("DOM changed",r);var n=f(r).map((function(e){return u.NodeSerializer.serialize(e)})).filter((function(e){return e}));E("DOM changes serialized",n),t.emit("patch",{_t:"domchange",modified:n})})),t._root=e,t._mutationObserver=new MutationObserver(t._onDOMChange),t._eventObserver=new c.default(t._onEventMutation),t._iframeBridge=s.default,t}return t=l,Object.defineProperty(t,"prototype",{writable:!1}),t}(o.EventEmitter);t.default=_},35493:function(e,t,r){"use strict";r(69070),Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"PatchCompressor",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"PatchStream",{enumerable:!0,get:function(){return n.default}});var n=i(r(33375)),o=i(r(40638));function i(e){return e&&e.__esModule?e:{default:e}}},46604:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(69070);var n=u(r(23493)),o=r(35493),i=r(67743),a=r(55064);function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function s(e,t,r){return t&&c(e.prototype,t),r&&c(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function l(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var f=(0,u(r(99796)).default)("cbio.DOMFrameSource"),d=s((function e(t){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),l(this,"_throttleCompressAndEmitFrame",(0,n.default)((function(){return r._compressAndEmitFrame()}),110)),l(this,"_compressAndEmitFrame",(function(){if(r._compression&&document&&i.NodeTracker.get(document)){var e=r._compression.compress();e.length&&r._onUpdate({document_id:i.NodeTracker.get(document),patch:e})&&r._compression.mark()}})),l(this,"capturingWillStart",(function(){if(f("capturingWillStart for DOMFrameSource in",document),r._sendInterval)throw new Error("DOMFrameSource already running");r._compression||(r._compression=new o.PatchCompressor(i.NodeTracker.track(document))),r._patchStream||(r._patchStream=new o.PatchStream(document)),a.WindowTracking.on("activate",r.reset),r._patchStream.on("patch",(function(e){r._compression.push(e),e.flush?r._compressAndEmitFrame():r._throttleCompressAndEmitFrame()})),r._sendInterval=setInterval((function(){return r._compressAndEmitFrame()}),500),r._patchStream.start()})),l(this,"capturingWillStop",(function(){f("capturingWillStop for DOMFrameSource in",document),a.WindowTracking.removeListener("activate",r.reset),r._sendInterval&&(clearInterval(r._sendInterval),r._sendInterval=null),r._patchStream&&(r._patchStream.destroy(),r._patchStream=null),r._compression&&(r._compression.reset(),r._compression=null)})),l(this,"reset",(function(){f("resetting DOMFrameSource in",document),r._compression.reset(),r._patchStream.forceUpdate()})),l(this,"destroy",(function(){f("destroying DOMFrameSource in",document),r.capturingWillStop(),r._onUpdate=null})),f("DOMFrameSource constructed in",document),this._onUpdate=t}));t.default=d},54773:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}var o;function i(){i=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},a="function"==typeof Symbol?Symbol:{},u=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function f(e,t,r,n){var i=t&&t.prototype instanceof h?t:h,a=Object.create(i.prototype),u=new j(n||[]);return o(a,"_invoke",{value:O(e,r,u)}),a}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=f;var p={};function h(){}function v(){}function y(){}var m={};l(m,u,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(T([])));b&&b!==t&&r.call(b,u)&&(m=b);var w=y.prototype=h.prototype=Object.create(m);function E(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function i(o,a,u,c){var s=d(e[o],e,a);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==n(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){i("next",e,u,c)}),(function(e){i("throw",e,u,c)})):t.resolve(f).then((function(e){l.value=e,u(l)}),(function(e){return i("throw",e,u,c)}))}c(s.arg)}var a;o(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){i(e,r,t,n)}))}return a=a?a.then(n,n):n()}})}function O(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=S(a,r);if(u){if(u===p)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=d(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===p)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function S(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method))return p;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var n=d(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,p;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,p):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function T(e){if(e){var t=e[u];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:P}}function P(){return{value:void 0,done:!0}}return v.prototype=y,o(w,"constructor",{value:y,configurable:!0}),o(y,"constructor",{value:v,configurable:!0}),v.displayName=l(y,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,l(e,s,"GeneratorFunction")),e.prototype=Object.create(w),e},e.awrap=function(e){return{__await:e}},E(_.prototype),l(_.prototype,c,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new _(f(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(w),l(w,s,"Generator"),l(w,u,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=T,j.prototype={constructor:j,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),k(r),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:T(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},e}function a(e,t,r,n,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void r(e)}u.done?t(c):Promise.resolve(c).then(n,o)}function u(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function u(e){a(i,n,o,u,c,"next",e)}function c(e){a(i,n,o,u,c,"throw",e)}u(void 0)}))}}function c(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function s(e,t,r){return t&&c(e.prototype,t),r&&c(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function l(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r(41539),r(82526),r(41817),r(32165),r(66992),r(78783),r(33948),r(72443),r(39341),r(73706),r(10408),r(30489),r(54747),r(68309),r(68304),r(47042),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(69070);var f=(0,((o=r(99796))&&o.__esModule?o:{default:o}).default)("cbio.FrameLoop"),d=s((function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),l(this,"isRunning",(function(){return t._running})),l(this,"setSource",function(){var e=u(i().mark((function e(r){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r.constructor!==(t.source&&t.source.constructor)){e.next=3;break}return f("frame source type not changed"),e.abrupt("return");case 3:if(!t.isRunning()){e.next=17;break}return t.source&&t.source.capturingWillStop(),t.source=r,e.prev=6,e.next=9,t.source.capturingWillStart();case 9:t.invalidateFrame(),e.next=15;break;case 12:e.prev=12,e.t0=e.catch(6),console.error(e.t0);case 15:e.next=18;break;case 17:t.source=r;case 18:case"end":return e.stop()}}),e,null,[[6,12]])})));return function(t){return e.apply(this,arguments)}}()),l(this,"getSource",(function(){return t.source})),l(this,"start",u(i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:f("starting frame loop in",document),t.isRunning()||(t._running=!0,t.source.capturingWillStart());case 2:case"end":return e.stop()}}),e)})))),l(this,"stop",(function(){t.isRunning()&&(t.source.capturingWillStop(),t._running=!1)})),l(this,"invalidateFrame",(function(){if(!t.isRunning())throw new Error("FrameLoop was destroyed");f("invalidate frame in",document),t.source&&t.source.reset()})),l(this,"destroy",(function(){f("destroying frame loop in",document),t.stop(),t.source&&(t.source.destroy(),t.source=null)})),f("FrameLoop constructed in",document),this._running=!1}));t.default=d},75904:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}r(69070),r(82526),r(41817),r(32165),r(72443),r(39341),r(73706),r(10408),r(30489),r(68309),r(68304),r(47042),r(91038),r(74916),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(66992),r(41539),r(82472),r(92990),r(18927),r(33105),r(35035),r(74345),r(7174),r(32846),r(44731),r(77209),r(96319),r(58867),r(37789),r(33739),r(29368),r(14483),r(12056),r(3462),r(30678),r(27462),r(33824),r(55021),r(12974),r(15016),r(54747),r(78783),r(4129),r(33948);var o,i=r(81639);function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function u(){u=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function f(e,t,r,n){var i=t&&t.prototype instanceof h?t:h,a=Object.create(i.prototype),u=new j(n||[]);return o(a,"_invoke",{value:O(e,r,u)}),a}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=f;var p={};function h(){}function v(){}function y(){}var m={};l(m,a,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(T([])));b&&b!==t&&r.call(b,a)&&(m=b);var w=y.prototype=h.prototype=Object.create(m);function E(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function i(o,a,u,c){var s=d(e[o],e,a);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==n(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){i("next",e,u,c)}),(function(e){i("throw",e,u,c)})):t.resolve(f).then((function(e){l.value=e,u(l)}),(function(e){return i("throw",e,u,c)}))}c(s.arg)}var a;o(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){i(e,r,t,n)}))}return a=a?a.then(n,n):n()}})}function O(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=S(a,r);if(u){if(u===p)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=d(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===p)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function S(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method))return p;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var n=d(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,p;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,p):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function T(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:P}}function P(){return{value:void 0,done:!0}}return v.prototype=y,o(w,"constructor",{value:y,configurable:!0}),o(y,"constructor",{value:v,configurable:!0}),v.displayName=l(y,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,l(e,s,"GeneratorFunction")),e.prototype=Object.create(w),e},e.awrap=function(e){return{__await:e}},E(_.prototype),l(_.prototype,c,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new _(f(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(w),l(w,s,"Generator"),l(w,a,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=T,j.prototype={constructor:j,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),k(r),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:T(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},e}function c(e,t,r,n,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void r(e)}u.done?t(c):Promise.resolve(c).then(n,o)}function s(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){c(i,n,o,a,u,"next",e)}function u(e){c(i,n,o,a,u,"throw",e)}a(void 0)}))}}function l(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function f(e,t,r){return t&&l(e.prototype,t),r&&l(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function d(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function p(e,t,r){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,r)}function h(e,t){return function(e,t){return t.get?t.get.call(e):t.value}(e,y(e,t,"get"))}function v(e,t,r){return function(e,t,r){if(t.set)t.set.call(e,r);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=r}}(e,y(e,t,"set"),r),r}function y(e,t,r){if(!t.has(e))throw new TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}var m=(0,((o=r(99796))&&o.__esModule?o:{default:o}).default)("cbio.MediaStreamFrameSource"),g=new WeakMap,b=new WeakMap,w=new WeakMap,E=new WeakMap,_=new WeakMap,O=new WeakMap,S=new WeakMap,x=new WeakMap,k=new WeakMap,j=new WeakMap,T=f((function e(t){var r,n,o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),p(this,g,{writable:!0,value:void 0}),p(this,b,{writable:!0,value:void 0}),p(this,w,{writable:!0,value:void 0}),p(this,E,{writable:!0,value:void 0}),p(this,_,{writable:!0,value:void 0}),p(this,O,{writable:!0,value:void 0}),p(this,S,{writable:!0,value:[]}),p(this,x,{writable:!0,value:function(){var e=h(o,E).scale();h(o,w).width=h(o,b).videoWidth*e,h(o,w).height=h(o,b).videoHeight*e,h(o,w).getContext("2d").drawImage(h(o,b),0,0,h(o,w).width,h(o,w).height);var t="image/jpeg";h(o,w).toBlob(function(){var e=s(u().mark((function e(r){var n;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.t0=Uint8Array,e.next=3,new Response(r).arrayBuffer();case 3:e.t1=e.sent,n=new e.t0(e.t1),h(o,E).handleFrame(n,t,1);case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),t,.5)}}),p(this,k,{writable:!0,value:(r=s(u().mark((function e(t){return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return h(o,b).srcObject=t,e.next=3,h(o,b).play();case 3:v(o,_,setInterval(h(o,x),100));case 4:case"end":return e.stop()}}),e)}))),function(e){return r.apply(this,arguments)})}),p(this,j,{writable:!0,value:(n=s(u().mark((function e(t){return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i.MediaRecorderDemuxer.isSupported("video/webm;codecs=h264")){e.next=3;break}return m("MediaRecorderDemuxer not supported, falling back to canvas"),e.abrupt("return",h(o,k).call(o,t));case 3:if(v(o,O,(0,i.createMediaRecorderDemuxer)(t)),h(o,O)){e.next=7;break}return m("failed to create MediaRecorderDemuxer, falling back to canvas"),e.abrupt("return",h(o,k).call(o,t));case 7:return m("using MediaRecorderDemuxer"),h(o,O).on("media-packet",(function(e){var t,r=e.data;null!==h(o,O)&&(0===r[0]&&0===r[1]&&0===r[2]&&1===r[3]?t=r[4]:0===r[0]&&0===r[1]&&1===r[2]&&(t=r[3]),7==(31&t)&&v(o,S,[]),h(o,S).push(r),h(o,E).handleFrame(r,"video/avc",1/0))})),e.abrupt("return",h(o,O).start());case 10:case"end":return e.stop()}}),e)}))),function(e){return n.apply(this,arguments)})}),d(this,"capturingWillStart",s(u().mark((function e(){var t,r,n;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(m("capturingWillStart for MediaStreamFrameSource"),!h(o,_)){e.next=3;break}throw new Error("already running");case 3:return e.next=5,h(o,E).requestPermission();case 5:if(e.sent){e.next=7;break}return e.abrupt("return");case 7:return e.prev=7,e.next=10,navigator.mediaDevices.getDisplayMedia({video:{cursor:"always",width:{ideal:1400},height:{ideal:1e3},frameRate:{max:10}},audio:!1});case 10:if(t=e.sent,r=t.getVideoTracks(),s=1,n=function(e){if(Array.isArray(e))return e}(c=r)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,u=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}}(c,s)||function(e,t){if(e){if("string"==typeof e)return a(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(e,t):void 0}}(c,s)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),(i=o,u=g,function(e,t){if(t.set)return"__destrObj"in t||(t.__destrObj={set value(r){t.set.call(e,r)}}),t.__destrObj;if(!t.writable)throw new TypeError("attempted to set read only private field");return t}(i,y(i,u,"set"))).value=n[0],h(o,g)){e.next=16;break}throw new Error("failed to get display media track");case 16:h(o,g).onended=function(){m("track ended"),v(o,g,null),h(o,E).captureEnded(),o.destroy()},h(o,j).call(o,t),h(o,E).captureStarted(),e.next=24;break;case 21:e.prev=21,e.t0=e.catch(7),h(o,E).captureEnded(e.t0);case 24:case"end":return e.stop()}var i,u,c,s}),e,null,[[7,21]])})))),d(this,"capturingWillStop",(function(){m("capturingWillStop for MediaStreamFrameSource"),h(o,O)&&(h(o,O).stop(),v(o,O,null)),h(o,g)&&(h(o,g).stop(),v(o,g,null),h(o,E).captureEnded()),h(o,_)&&(clearInterval(h(o,_)),v(o,_,null))})),d(this,"reset",(function(){m("resetting MediaStreamFrameSource"),h(o,S).forEach((function(e){h(o,E).handleFrame(e,"video/avc",1/0)}))})),d(this,"destroy",(function(){m("destroying MediaStreamFrameSource"),o.capturingWillStop(),v(o,E,null),v(o,b,null),v(o,w,null)})),m("MediaStreamFrameSource constructed"),v(this,E,t),v(this,b,document.createElement("video")),v(this,w,document.createElement("canvas"))}));t.default=T},17297:function(e,t,r){"use strict";r(69070),Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"DOMFrameSource",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"FrameLoop",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(t,"MediaStreamFrameSource",{enumerable:!0,get:function(){return i.default}});var n=a(r(54773)),o=a(r(46604)),i=a(r(75904));function a(e){return e&&e.__esModule?e:{default:e}}},22833:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}r(69070),r(68304),r(30489),r(12419),r(82526),r(41817),r(32165),r(91038),r(68309),r(74916),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(69826),r(41539),r(47042),r(54747),r(66992),r(78783),r(4129),r(33948);var o,i=r(17187);function a(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function c(e,t){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},c(e,t)}function s(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return l(e)}function l(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}function d(e,t,r){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,r)}function p(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function h(e,t){return function(e,t){return t.get?t.get.call(e):t.value}(e,v(e,t,"get"))}function v(e,t,r){if(!t.has(e))throw new TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}var y=(0,((o=r(99796))&&o.__esModule?o:{default:o}).default)("cbio.IFrameBridge"),m=new WeakMap,g=new WeakMap,b=new WeakMap,w=new WeakMap,E=new WeakMap,_=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&c(e,t)}(i,e);var t,r,n,o=(r=i,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=f(r);if(n){var o=f(this).constructor;e=Reflect.construct(t,arguments,o)}else e=t.apply(this,arguments);return s(this,e)});function i(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),p(l(e=o.call(this)),"trustedOrigins",[]),d(l(e),m,{writable:!0,value:void 0}),d(l(e),g,{writable:!0,value:function(e){if(!e.data)return!1;var t=e.data,r=t.cobrowseio,n=t.event;return!!r&&!!n}}),d(l(e),b,{writable:!0,value:function(t){var r=t.origin;return!!a(e.trustedOrigins).find((function(e){return e===r}))}}),d(l(e),w,{writable:!0,value:function(e){return[].slice.call(document.getElementsByTagName("iframe")).find((function(t){return t.contentWindow===e.source}))}}),d(l(e),E,{writable:!0,value:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"*";e.postMessage({cobrowseio:!0,event:t,data:r},n)}}),p(l(e),"sendToParent",(function(t,r){return h(l(e),m)?a(e.trustedOrigins).find((function(t){return t===h(l(e),m)}))?void h(l(e),E).call(l(e),window.parent,t,r,h(l(e),m)):y("not sending as parent origin is not trusted",h(l(e),m),e.trustedOrigins):y("not sending as parent origin is unknown")})),p(l(e),"broadcastToChildren",(function(t,r){[].slice.call(document.getElementsByTagName("iframe")).forEach((function(n){h(l(e),E).call(l(e),n.contentWindow,t,r)}))})),p(l(e),"sync",(function(t){y("iframe available",t,"issuing sync"),h(l(e),E).call(l(e),t.contentWindow,"sync")})),y("iframe bridge constructed in",document),window.addEventListener("message",(function(t){if(!h(l(e),g).call(l(e),t))return y("ignoring message, not a cobrowse message",t.data);var r,n,o,i=h(l(e),b).call(l(e),t),a=t.data,u=a.event,c=a.data;i&&t.source===window.parent&&(r=l(e),n=m,o=t.origin,function(e,t,r){if(t.set)t.set.call(e,r);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=r}}(r,v(r,n,"set"),o),e.broadcastToChildren(u,c)),e.emit(u,c,{trusted:i,iframe:h(l(e),w).call(l(e),t)})})),e}return t=i,Object.defineProperty(t,"prototype",{writable:!1}),t}(i.EventEmitter);t.default=_},19356:function(e,t,r){"use strict";r(82526),r(41817),r(41539),r(32165),r(66992),r(78783),r(33948),r(91038),r(47042),r(68309),r(74916),r(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(41514),o=c(r(22833)),i=r(55064),a=r(17297),u=r(31362);function c(e){return e&&e.__esModule?e:{default:e}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var l=(0,c(r(99796)).default)("cbio.iframes"),f=new o.default,d=null;f.on("patch",(function(e,t){var r=t.iframe;if(l("Received patch event in",document),r){var o=e.document_id,i=r.__vdom;i&&i.document.id!==e.document_id&&(i=null),i||(i=new n.VirtualDOM(o)),i.applyPatch(e.patch),r.__vdom=i,f.emit("iframe_patched",r)}})),f.on("mouse",(function(e,t){var r=t.iframe;l("Received mouse event in",document),r&&(i.MouseTracking.setPosition(e.x,e.y,r),i.MouseTracking.setDown(e.down))})),f.on("control",(function(e,t){var r,n=t.trusted;if(l("Received control event in",document),!n)return l("Ignoring untrusted control event");u.ControlEvents.applyEvent.apply(u.ControlEvents,function(e){if(Array.isArray(e))return s(e)}(r=e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(e,t):void 0}}(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())})),f.on("sync",(function(e,t){var r=t.trusted;if(l("Received sync event in",document),!r)return l("Ignoring untrusted sync event");d||(l("Creating new frame loop in",document),(d=new a.FrameLoop).setSource(new a.DOMFrameSource((function(e){return f.sendToParent("patch",e),!0}))),d.start()),l("Invalidating frame in",document),d.invalidateFrame(),i.MouseTracking.onChange=function(e){return f.sendToParent("mouse",e)},i.MouseTracking.track(window)}));var p=f;t.default=p},82175:function(e,t,r){"use strict";r(47042),r(41539),r(68309),r(91038),r(78783),r(74916),r(82526),r(41817),r(32165),r(66992),r(33948),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(69070);var n=i(r(4496)),o=i(r(12191));function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function u(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var c={en:n.default,fr:o.default},s=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.language=t}var t,r,n;return t=e,n=[{key:"getLocale",value:function(){var t,r=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return a(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,u=!0,c=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return u=e.done,e},e:function(e){c=!0,i=e},f:function(){try{u||null==r.return||r.return()}finally{if(c)throw i}}}}(navigator.languages);try{for(r.s();!(t=r.n()).done;){var n=t.value;if(c[n])return new e(n)}}catch(e){r.e(e)}finally{r.f()}return new e("en")}},{key:"tr",value:function(e){return this.getLocale().translate(e)}}],(r=[{key:"translate",value:function(e){return c[this.language][e]||c.en[e]||e}}])&&u(t.prototype,r),n&&u(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=s},4496:function(e,t,r){"use strict";r(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={DENY:"Deny",ALLOW:"Allow",END_SESSION:"End Cobrowse Session",REMOTE_CONTROL_REQUEST_TITLE:"Remote Control Request",REMOTE_CONTROL_REQUEST_DESCRIPTION:"A support agent would like to control this page. Do you want to allow this?",FULL_DEVICE_REQUEST_TITLE:"Screen Capture Request",FULL_DEVICE_REQUEST_DESCRIPTION:"A support agent would like to view your entire screen. Do you want to allow this?",SESSION_REQUEST_TITLE:"Support Request",SESSION_REQUEST_DESCRIPTION:"A support agent would like to temporarily use this web page with you. Do you want to allow this?"}},12191:function(e,t,r){"use strict";r(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={DENY:"Refuser",ALLOW:"Autoriser",END_SESSION:"Terminer la session de Cobrowse",REMOTE_CONTROL_REQUEST_TITLE:"Demande de commande à distance",REMOTE_CONTROL_REQUEST_DESCRIPTION:"Un agent du soutien souhaiterait avoir le contrôle de cette page. Donnez-vous votre autorisation ?",FULL_DEVICE_REQUEST_TITLE:"Demande de capture d'écran",FULL_DEVICE_REQUEST_DESCRIPTION:"Un agent de soutien souhaiterait voir l'intégralité de votre écran. Donnez-vous votre autorisation ?",SESSION_REQUEST_TITLE:"Demande de soutien",SESSION_REQUEST_DESCRIPTION:"Un agent de soutien souhaiterait temporairement utiliser cette page Web avec vous. Donnez-vous votre autorisation ?"}},51930:function(e,t,r){"use strict";r(82526),r(41817),r(32165),r(66992),r(33948),r(68309),r(47941),r(57327),r(38880),r(49337),r(33321),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(74916),r(41539),r(54747),r(91038),r(78783),r(85827),r(26699),r(47042),r(92222),r(69826),r(21249),r(69070);var n=r(41514),o=r(28541),i=s(r(69770)),a=s(r(95667)),u=s(r(93677)),c=s(r(76683));function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach((function(t){y(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function d(e){return function(e){if(Array.isArray(e))return p(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return p(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?p(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function h(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function v(e,t,r){return t&&h(e.prototype,t),r&&h(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function y(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var m=v((function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),y(this,"isLocalResource",(function(e){return!!(/^https?:\/\/localhost/.test(e)||/^https?:\/\/127.0.0.1/.test(e)||/^file:\/\//.test(e)||/^blob:/.test(e)||/^ionic:/.test(e))})),y(this,"_serializeAttributes",(function(e,t){if(e.nodeType===window.Node.ELEMENT_NODE&&e.attributes){var r={};Array.from(e.attributes||[]).forEach((function(t){"href"===t.nodeName||"src"===t.nodeName?r[t.nodeName]="string"==typeof e[t.nodeName]?e[t.nodeName]:t.nodeValue:r[t.nodeName]=t.nodeValue})),t.attributes=r}})),y(this,"_serializeSelection",(function(e,t){var r,n=null,a=e.getSelection();if(a&&"Range"===a.type&&!a.isCollapsed&&a.rangeCount>0)try{n=d(Array(a.rangeCount)).reduce((function(e,t,r){var n=a.getRangeAt(r),u=n.startOffset,c=n.endOffset,s=o.NodeRedaction.getRedactedBy(n.startContainer),l=o.NodeRedaction.getRedactedBy(n.endContainer),f=i.default.get(null!=s?s:n.startContainer),d=i.default.get(null!=l?l:n.endContainer);return e.push({start:f,end:d,startOffset:s?0:u,endOffset:l?0:c}),e}),[])}catch(e){console.warn("CobrowseIO: Could not serialize text selection",e)}else["INPUT","TEXTAREA"].includes(null===(r=e.activeElement)||void 0===r?void 0:r.tagName)&&e.activeElement.selectionStart!==e.activeElement.selectionEnd&&(n=!1);t.selection=n})),y(this,"_serializeDocument",(function(e,r){var n,o;e.nodeType===window.Node.DOCUMENT_NODE&&(r.url=e.location&&e.location.href,r.size={width:null===(n=e.documentElement)||void 0===n?void 0:n.clientWidth,height:null===(o=e.documentElement)||void 0===o?void 0:o.clientHeight},r.focus=i.default.get(e.activeElement),t._serializeSelection(e,r))})),y(this,"_serializeInput",(function(e,t){if("INPUT"===e.tagName||"TEXTAREA"===e.tagName||"OPTION"===e.tagName){t.value=e.value,"radio"!==e.type&&"checkbox"!==e.type||void 0===e.checked||(t.checked=e.checked),t.selection=null;try{var r=e.selectionStart,n=e.selectionEnd,o=e.selectionDirection;r!==n&&e===e.ownerDocument.activeElement&&(t.selection={start:r,end:n,direction:o})}catch(t){console.warn("Failed to serialise text selection for the input",e)}}})),y(this,"_serializeOption",(function(e,t){"OPTION"===e.tagName&&(t.selected=e.selected)})),y(this,"_serializeCSSSheet",(function(e){try{if(e.media&&e.media.length&&!window.matchMedia(e.media).matches)return""}catch(t){console.warn("CobrowseIO: Media detection for sheet failed:",t,"sheet",e)}return[].slice.call(e.cssRules).reduce((function(e,t){try{return e+t.cssText}catch(t){return e}}),"")})),y(this,"_serializeShadowRoot",(function(e,r){try{if(e.nodeType===window.Node.DOCUMENT_FRAGMENT_NODE){var n=[];d(e.adoptedStyleSheets||[]).forEach((function(e){n=n.concat([].slice.call(e.cssRules))})),r.css=t._serializeCSSSheet({cssRules:n})}}catch(t){console.warn("CobrowseIO: ShadowRoot serialize failed:",t.message,"for",e)}})),y(this,"_serializeCSS",(function(e,r){try{var n;("STYLE"===(null===(n=e.tagName)||void 0===n?void 0:n.toUpperCase())||"LINK"===e.tagName&&"stylesheet"===e.rel&&t.isLocalResource(e.href))&&e.sheet&&(r.css=t._serializeCSSSheet(e.sheet))}catch(t){console.warn("CobrowseIO: CSS serialize failed:",t.message,"for",e)}})),y(this,"_serializeCanvas",(function(e,t){if("CANVAS"===e.tagName&&!o.NodeRedaction.isRedacted(e))try{t.data=c.default.fromCanvas(e)}catch(t){e._cb_serialize_warned||(console.warn("Cobrowse failed to serialize canvas",e,"due to error",t),e._cb_serialize_warned=!0)}})),y(this,"_serializeImage",(function(e,r){if("IMG"===e.tagName&&!o.NodeRedaction.isRedacted(e)&&t.isLocalResource(e.src))try{r.attributes.src=c.default.fromImage(e)}catch(t){console.warn("CobrowseIO: Failed to serialize image",e)}})),y(this,"_serializeScroll",(function(e,t){var r,o;(0,n.isxdoc)(e)||(e.nodeType===window.Node.DOCUMENT_NODE?t.scroll={x:(null===(r=e.defaultView)||void 0===r?void 0:r.pageXOffset)||0,y:(null===(o=e.defaultView)||void 0===o?void 0:o.pageYOffset)||0}:(e.scrollWidth>e.clientWidth||e.scrollHeight>e.clientHeight)&&(t.scroll={x:e.scrollLeft||0,y:e.scrollTop||0}))})),y(this,"_serializeRedaction",(function(e,r,n){if(n.redactionState){delete r.value;var o=t._getSize(e);if(e instanceof Element){var i=window.getComputedStyle(e),a="inline"===i.display&&o.height>0?"inline-block":i.display;r.attributes=r.attributes&&{class:r.attributes.class,style:"".concat(r.attributes.style||"","; display: ").concat(a," !important;flex-basis: unset !important;")}}else 3===e.nodeType&&(r.nodeType=1,r.tagName="SPAN",r.attributes={style:o.height>0?"display: inline-block !important":void 0});r.redaction={height:"".concat(o.height,"px"),width:"".concat(o.width,"px")}}else r.redaction=void 0})),y(this,"_getSize",(function(e){if(e instanceof Element)return e.getBoundingClientRect();if(e instanceof Node){var t=document.createRange();return t.selectNodeContents(e),t.getBoundingClientRect()}return{height:0,width:0}})),y(this,"_serialize",(function(e,r){if(!i.default.get(e))throw console.error("node missing id",e,e.parentNode),new Error("node missing id",e);if(!a.default.isDOMNode(e))return e;if(!e.nodeType)throw new Error("node missing type",e);var n={id:i.default.get(e),nodeType:e.nodeType};return t._serializeShadowRoot(e,n),t._serializeAttributes(e,n),t._serializeImage(e,n),t._serializeDocument(e,n),t._serializeScroll(e,n),t._serializeInput(e,n),t._serializeOption(e,n),t._serializeCSS(e,n),t._serializeCanvas(e,n),t._serializeRedaction(e,n,r),e.tagName&&(n.tagName=e.tagName),e.nodeValue&&(n.content=e.nodeValue),n})),y(this,"serialize",(function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},c=o.NodeRedaction.getRedactionState(e);c&&r([]);var s="indirect"===c||[e].concat(d((0,n.parents)(e))).find((function(e){return u.default.isIgnored(e)}));return s?null:f(f({},t._serialize(e,{redactionState:c})),{},{childNodes:"direct"===c?[]:u.default.children(e).map((function(e){return a.default.isDOMNode(e)?{id:i.default.get(e)}:f({},e)}))})}))})),g=new m;t.default=g},69770:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(66992),r(51532),r(41539),r(78783),r(33948),r(92222),r(69070);var n=i(r(60453)),o=i(r(95667));function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function c(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var s=new(u((function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),c(this,"_idMap",new Map),c(this,"_nodeMap",new Map),c(this,"_currentId",0),c(this,"_nextId",(function(){return t._currentId+=1,t._currentId})),c(this,"track",(function(e){if(!e)return null;if(!o.default.isDOMNode(e))return e.id;if(!t.get(e)){var r=e.nodeType===window.Node.DOCUMENT_NODE?(0,n.default)(5):"".concat(t.track(document),"-").concat(t._nextId());t._idMap.set(r,e),t._nodeMap.set(e,r)}return t._nodeMap.get(e)})),c(this,"get",(function(e){return e?o.default.isDOMNode(e)?t._nodeMap.get(e)||null:e.id:null})),c(this,"getById",(function(e){return e&&t._idMap.get(e)||null})),c(this,"forget",(function(e){t._idMap.delete(t.get(e)),t._nodeMap.delete(e)}))})));t.default=s},93677:function(e,t,r){"use strict";r(69070),r(82526),r(41817),r(32165),r(47042),r(74916),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(26699),r(32023),r(57327),r(41539),r(68309),r(91038),r(78783),r(92222),r(66992),r(4129),r(33948);var n=r(41514),o=i(r(95667));function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function u(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function c(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function s(e,t){return function(e,t){return t.get?t.get.call(e):t.value}(e,l(e,t,"get"))}function l(e,t,r){if(!t.has(e))throw new TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}var f=(0,i(r(99796)).default)("cbio.NodeTree"),d=new WeakMap,p=new(function(){function e(){var t,r,i,u=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),i={writable:!0,value:".__cbio_ignored"},function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t=this,r=d),r.set(t,i),c(this,"isIgnored",(function(e){var t;if(e&&e.matches&&e.matches(s(u,d)))return f("ignoring",e,"because child of classes"),!0;if([window.Node.COMMENT_NODE,window.Node.CDATA_SECTION_NODE,window.Node.ENTITY_REFERENCE_NODE,window.Node.ENTITY_NODE,window.Node.PROCESSING_INSTRUCTION_NODE,window.Node.NOTATION_NODE,window.Node.DOCUMENT_TYPE_NODE].includes(e.nodeType))return f("ignoring",e,"because of nodeType"),!0;if("SCRIPT"===e.tagName)return f("ignoring",e,"because of SCRIPT"),!0;var r=e.parentNode||e.defaultView&&e.defaultView.frameElement;return!(!r||"STYLE"!==(null===(t=r.tagName)||void 0===t?void 0:t.toUpperCase())||(f("ignoring",e,"because child of STYLE"),0))})),c(this,"children",(function(e){return o.default.isDOMNode(e)?"IFRAME"===e.tagName&&(0,n.isxdoc)(e)?e.__vdom?[e.__vdom.document]:[]:"IFRAME"!==e.tagName||(0,n.isxdoc)(e)?e.shadowRoot?"ShadowRoot"!==e.shadowRoot.constructor.name?Array.from(e.shadowRoot.childNodes).filter((function(e){return!u.isIgnored(e)})):[e.shadowRoot].concat((t=Array.from(e.childNodes),function(e){if(Array.isArray(e))return a(e)}(t)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return a(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())).filter((function(e){return!u.isIgnored(e)})):Array.from(e.childNodes).filter((function(e){return!u.isIgnored(e)})):[e.contentWindow.document].filter((function(e){return!u.isIgnored(e)})):e.childNodes;var t})),c(this,"depthFirst",(function(e,t){return(0,n.depthFirst)(e,(function(e,r){return r(u.children(e)),t(e,r)}))}))}var t,r;return t=e,(r=[{key:"setIgnoredViews",value:function(e){if(Array.isArray(e))return t=this,r=d,n=".__cbio_ignored,".concat(e),function(e,t,r){if(t.set)t.set.call(e,r);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=r}}(t,l(t,r,"set"),n),void f("set ignored view selectors",s(this,d));var t,r,n;f("not updating #ignoredViews due to arg to being an array",e)}}])&&u(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}());t.default=p},95667:function(e,t,r){"use strict";function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function o(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(69070);var i=new(o((function e(){var t,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),r=function(e){return!!e&&!(!e.childNodes||"function"!=typeof e.appendChild||void 0===e.nodeType)},(t="isDOMNode")in this?Object.defineProperty(this,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):this[t]=r})));t.default=i},67743:function(e,t,r){"use strict";r(69070),Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"NodeSerializer",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"NodeTracker",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(t,"NodeTree",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"NodeUtils",{enumerable:!0,get:function(){return o.default}});var n=u(r(69770)),o=u(r(95667)),i=u(r(93677)),a=u(r(51930));function u(e){return e&&e.__esModule?e:{default:e}}},72966:function(e,t,r){"use strict";r(69070),r(47042),r(68309),r(74916),r(82526),r(41817),r(32165),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(69600),r(66992),r(41539),r(70189),r(78783),r(33948),r(91038),r(4129),r(38478),r(69826);var n,o=r(41514);function i(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=a(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,u=!0,c=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return u=e.done,e},e:function(e){c=!0,i=e},f:function(){try{u||null==r.return||r.return()}finally{if(c)throw i}}}}function a(e,t){if(e){if("string"==typeof e)return u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function c(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function s(e,t){d(e,t),t.add(e)}function l(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function f(e,t,r){d(e,t),t.set(e,r)}function d(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function p(e,t){return function(e,t){return t.get?t.get.call(e):t.value}(e,y(e,t,"get"))}function h(e,t,r){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return r}function v(e,t,r){return function(e,t,r){if(t.set)t.set.call(e,r);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=r}}(e,y(e,t,"set"),r),r}function y(e,t,r){if(!t.has(e))throw new TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}var m=(0,((n=r(99796))&&n.__esModule?n:{default:n}).default)("cbio.NodeRedaction"),g=new WeakMap,b=new WeakMap,w=new WeakSet,E=new WeakSet,_=new WeakSet,O=new WeakSet;function S(e){return!!e&&("OBJECT"===e.tagName?(m("redacted",e,"because of OBJECT"),!0):"EMBED"===e.tagName?(m("redacted",e,"because of EMBED"),!0):null)}function x(e){var t,r=this;return(t=(0,o.parents)(e),function(e){if(Array.isArray(e))return u(e)}(t)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||a(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).find((function(e){return h(r,O,k).call(r,e)}))}function k(e){return!!(p(this,b)&&e.matches&&e.matches(p(this,b)))&&(m("redacted",e,"because of selectors"),!0)}var j=new(function(){function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),s(this,O),s(this,_),s(this,E),s(this,w),f(this,g,{writable:!0,value:void 0}),f(this,b,{writable:!0,value:void 0}),l(this,"setIndex",(function(e){v(t,g,e)})),l(this,"setSelectors",(function(e){v(t,b,e.join(","))})),l(this,"getRedactionState",(function(e){var r=t.getRedactedBy(e);return!!r&&(r===e?"direct":"indirect")})),l(this,"getRedactedBy",(function(e){var r=h(t,w,S).call(t,e);if(null!==r)return r?e:null;var n=h(t,_,x).call(t,e);return n||(p(t,g)&&p(t,g).getRedactedBy(e)||(h(t,O,k).call(t,e)?e:null))})),l(this,"isNodeRedacted",(function(e){return"direct"===t.getRedactionState(e)})),l(this,"isRedacted",(function(e){var r=h(t,w,S).call(t,e);return null!==r?r:h(t,O,k).call(t,e)||!!t.getRedactionState(e)}))}var t,r;return t=e,(r=[{key:"notifyChanges",value:function(e){var t,r=new Set,n=i(e);try{for(n.s();!(t=n.n()).done;){var o=t.value,a=this.getRedactedBy(o.target);a&&a!==o.target&&r.add(a)}}catch(e){n.e(e)}finally{n.f()}var u,c=i((p(this,g)&&p(this,g).notifyChanges(e)||{modified:[]}).modified);try{for(c.s();!(u=c.n()).done;){var s=u.value;r.add(s)}}catch(e){c.e(e)}finally{c.f()}return{modified:Array.from(r)}}}])&&c(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}());t.default=j},80981:function(e,t,r){"use strict";r(69070),r(82526),r(41817),r(32165),r(91038),r(47042),r(68309),r(74916),Object.defineProperty(t,"__esModule",{value:!0}),t.RedactionIndex=void 0,r(66992),r(41539),r(70189),r(78783),r(33948),r(92222),r(57327),r(86535),r(99244),r(4129),r(38478),r(69826),r(69600);var n,o=(n=r(93677))&&n.__esModule?n:{default:n};function i(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=u(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){c=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(c)throw i}}}}function a(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||u(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){if(e){if("string"==typeof e)return c(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?c(e,t):void 0}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function f(e,t){p(e,t),t.add(e)}function d(e,t,r){p(e,t),t.set(e,r)}function p(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function h(e,t){return function(e,t){return t.get?t.get.call(e):t.value}(e,m(e,t,"get"))}function v(e,t,r){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return r}function y(e,t,r){return function(e,t,r){if(t.set)t.set.call(e,r);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=r}}(e,m(e,t,"set"),r),r}function m(e,t,r){if(!t.has(e))throw new TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}var g=new WeakMap,b=new WeakMap,w=new WeakMap,E=new WeakSet,_=new WeakSet,O=new WeakSet,S=new WeakSet,x=new WeakSet,k=new WeakSet,j=new WeakSet,T=new WeakSet,P=new WeakSet,L=new WeakSet,I=new WeakSet,A=new WeakSet,C=function(){function e(){var t,r,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},c=u.document,l=void 0===c?window.document:c;if(s(this,e),f(this,A),f(this,I),f(this,L),f(this,P),f(this,T),f(this,j),f(this,k),f(this,x),f(this,S),f(this,O),f(this,_),f(this,E),d(this,g,{writable:!0,value:void 0}),d(this,b,{writable:!0,value:void 0}),d(this,w,{writable:!0,value:new Set}),n.length>0&&y(this,g,(t=v(this,A,V)).call.apply(t,[this].concat(a(n)))),o.length>0&&y(this,b,(r=v(this,A,V)).call.apply(r,[this].concat(a(o)))),v(this,_,N).call(this)){var p,m=i(v(this,P,z).call(this,l));try{for(m.s();!(p=m.n()).done;){var C=p.value;h(this,w).add(C)}}catch(e){m.e(e)}finally{m.f()}}}var t,r;return t=e,(r=[{key:"getRedactedBy",value:function(e){if(!v(this,_,N).call(this))return null;if(v(this,S,D).call(this,e)||v(this,T,W).call(this,e))return null;var t=v(this,k,F).call(this,e);return t?v(this,T,W).call(this,e.parentNode)?e:t:v(this,O,R).call(this,e)?e:null}},{key:"notifyChanges",value:function(e){var t=this;if(!v(this,_,N).call(this))return{modified:[]};var r,n=new Set,u=i(e);try{for(u.s();!(r=u.n()).done;){var c=r.value;if(!o.default.isIgnored(c.target)){var s=v(this,P,z).call(this,c.target),l=s.length>0;if("attributes"===c.type){var f,d=i(s);try{for(d.s();!(f=d.n()).done;){var p=f.value;n.add(p)}}catch(e){d.e(e)}finally{d.f()}var y=v(this,S,D).call(this,c.target);h(this,w).has(c.target)!==!!y&&(n.add(c.target.parentNode),y?h(this,w).add(c.target):h(this,w).delete(c.target))}else if("childList"===c.type){var m,g=a(c.addedNodes).filter((function(e){return!o.default.isIgnored(e)})),b=a(c.removedNodes).filter((function(e){return!o.default.isIgnored(e)})),O=g.filter((function(e){return v(t,S,D).call(t,e)})).concat(g.flatMap((function(e){return a(v(t,P,z).call(t,e))}))),x=b.filter((function(e){return v(t,S,D).call(t,e)})).concat(b.flatMap((function(e){return a(v(t,P,z).call(t,e))}))),k=i(O);try{for(k.s();!(m=k.n()).done;){var j=m.value;h(this,w).add(j)}}catch(e){k.e(e)}finally{k.f()}var T,L=i(x);try{for(L.s();!(T=L.n()).done;){var I=T.value;h(this,w).delete(I)}}catch(e){L.e(e)}finally{L.f()}if(!n.has(c.target)){var A=l&&O.length>0,C=!l&&x.length>0;(A||C)&&n.add(c.target)}}}}}catch(e){u.e(e)}finally{u.f()}return{modified:v(this,E,M).call(this,n).filter((function(e){return!o.default.isIgnored(e)}))}}}])&&l(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function M(e){var t=this,r=new Set(a(e).flatMap((function(e){return[e].concat(a(v(t,L,B).call(t,e)))})));return a(r).flatMap((function(e){return a(e.childNodes||[])}))}function N(){return!!h(this,g)}function R(e){return h(this,g)&&e.matches&&e.matches(h(this,g))}function D(e){return h(this,b)&&e.matches&&e.matches(h(this,b))}function F(e){var t=this,r=v(this,j,U).call(this,e);return r?v(this,L,B).call(this,e,r).find((function(e){return v(t,T,W).call(t,e.parentNode)}))||r:null}function U(e){var t=e&&e.parentNode&&e.parentNode.closest&&e.parentNode.closest(v(this,A,V).call(this));return t&&v(this,I,G).call(this,t,h(this,g))?t:null}function W(e){return h(this,b)&&"HTML"!==e.tagName&&e.querySelector&&e.querySelector(h(this,b))}function z(e){return h(this,b)&&e.querySelectorAll?e.querySelectorAll(h(this,b)):[]}function B(e,t){for(var r=[];e.parentNode&&e.parentNode!==t;)r.push(e.parentNode),e=e.parentNode;return r}function G(e,t){return e&&e.matches&&e.matches(t)}function V(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0===t.length?[h(this,g),h(this,b)]:t).filter((function(e){return e})).join(",")}t.RedactionIndex=C},28541:function(e,t,r){"use strict";r(69070),Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"NodeRedaction",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"RedactionIndex",{enumerable:!0,get:function(){return i.RedactionIndex}});var n,o=(n=r(72966))&&n.__esModule?n:{default:n},i=r(80981)},42585:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(38880),r(26699),r(32023),r(41539),r(54747),r(66992),r(70189),r(78783),r(33948),r(69070),r(48227);var n=a(r(27856)),o=r(67743),i=r(28541);function a(e){return e&&e.__esModule?e:{default:e}}function u(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function c(e,t,r){return t&&u(e.prototype,t),r&&u(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function s(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var l=(0,a(r(99796)).default)("cbio.ControlEvents"),f=new(c((function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),s(this,"_applyScroll",(function(e,t){var r=e.defaultView||e;r.scrollTo?r.scrollTo(t.x,t.y):(r.scrollTop=t.y,r.scrollLeft=t.x)})),s(this,"_updateCheckbox",(function(e,t){var r=t.checked;if(void 0!==r&&"INPUT"===e.tagName&&void 0!==e.checked){var n=Object.getOwnPropertyDescriptor(e.constructor.prototype,"checked");n&&n.set.call(e,r)}})),s(this,"_updateInnerHTML",(function(e,t){var r=t.innerHTML;void 0!==r&&(e.innerHTML=n.default.sanitize(r))})),s(this,"_updateValue",(function(e,t){var r=t.value;if(void 0!==r){var n=Object.getOwnPropertyDescriptor(e.constructor.prototype,"value");n&&n.set.call(e,r)}"TEXTAREA"===e.tagName&&o.NodeTracker.track(e.childNodes[0])})),s(this,"_updateTarget",(function(e,r){t._updateValue(e,r.target),t._updateCheckbox(e,r.target),t._updateInnerHTML(e,r.target)})),s(this,"_generateMouse",(function(e,t){return new MouseEvent(t.state,{clientX:t.x*window.innerWidth,clientY:t.y*window.innerHeight,bubbles:!0,cancelable:!0,composed:!0,view:e.ownerDocument&&e.ownerDocument.defaultView||window})})),s(this,"_generatePointer",(function(e,t){return new PointerEvent(t.state,{clientX:t.x*window.innerWidth,clientY:t.y*window.innerHeight,pointerId:t.pointerId,width:t.width,height:t.height,pressure:t.pressure,tangentialPressure:t.tangentialPressure,tiltX:t.tiltX,tiltY:t.tiltY,twist:t.twist,pointerType:t.pointerType,isPrimary:t.isPrimary,bubbles:!0,cancelable:!0,composed:!0,view:e.ownerDocument&&e.ownerDocument.defaultView||window})})),s(this,"_generateKeypress",(function(e,t){return new KeyboardEvent(t.state,{key:t.key,code:t.code,ctrlKey:t.ctrlKey,shiftKey:t.shiftKey,altKey:t.altKey,metaKey:t.metaKey,charCode:t.charCode,keyCode:t.keyCode,which:t.which,bubbles:!0,cancelable:!0,composed:!0,view:e.ownerDocument&&e.ownerDocument.defaultView||window})})),s(this,"_generateFocus",(function(e,t){return new FocusEvent(t.state,{bubbles:!1,cancelable:!1,composed:!0,view:e.ownerDocument&&e.ownerDocument.defaultView||window})})),s(this,"_generateChange",(function(e,t){return new CustomEvent(t.state,{bubbles:!0,cancelable:!1,composed:!0,view:e.ownerDocument&&e.ownerDocument.defaultView||window})})),s(this,"_generateInput",(function(e,t){return new CustomEvent(t.state,{bubbles:!0,cancelable:!1,composed:!0,view:e.ownerDocument&&e.ownerDocument.defaultView||window,inputType:t.inputType,data:t.data})})),s(this,"_generateSelection",(function(e,t){return new CustomEvent("selection",{bubbles:!0,cancelable:!1,composed:!0,view:e.ownerDocument&&e.ownerDocument.defaultView||window,selection:t.selection})})),s(this,"_generateEvent",(function(e,r,n){switch(n.state.includes("move")&&l("generate",n,"on",r),e){case"keypress":return t._generateKeypress(r,n);case"mouse":return t._generateMouse(r,n);case"pointer":return t._generatePointer(r,n);case"change":return t._generateChange(r,n);case"input":return t._generateInput(r,n);case"focus":return t._generateFocus(r,n);case"select":return t._generateSelection(r,n);default:return console.warn("CobrowseIO: unknown event type",e,n),null}})),s(this,"_setSelection",(function(e,t){var r=t.selection;if(!(e.__cobrowse_user_selection_timestamp>Date.now()-100)&&e.getSelection())try{r?(e.__last_agent_selection_ts=Date.now(),e.getSelection().removeAllRanges(),r.forEach((function(t){var r=t.start,n=t.startOffset,i=t.end,a=t.endOffset,u=document.createRange(),c=o.NodeTracker.getById(r),s=o.NodeTracker.getById(i);u.setStart(c,n),u.setEnd(s,a),e.getSelection().addRange(u)}))):e.getSelection().removeAllRanges()}catch(e){console.warn("Failed to apply selection",r,e)}})),s(this,"_setInputSelection",(function(e,t){var r=t.selection;if(!(e.ownerDocument.__cobrowse_user_selection_timestamp>Date.now()-100)&&["text","textarea","search","url"].includes(e.type))try{if(e.ownerDocument.__last_agent_selection_ts=Date.now(),r){var n=r.start,o=r.end,i=r.direction;e.focus(),e.setSelectionRange(n,o,i)}else e.getRootNode({composed:!0}).activeElement===e&&e.setSelectionRange(null,null)}catch(e){console.warn("Failed to select text",e)}})),s(this,"applyEvent",(function(e,r){if(!r.target)return null;var n=o.NodeTracker.getById(r.target.id);if(!n)return null;if(i.NodeRedaction.isRedacted(n))return null;try{var a;if("scroll"===e)return t._applyScroll(n,r);if(null!==(a=n._cobrowse_suppress_events)&&void 0!==a&&a.has(r.state))return n._cobrowse_suppress_events.delete(r.state),0===n._cobrowse_suppress_events.size&&delete n._cobrowse_suppress_events.size,null;var u=t._generateEvent(e,n,r);return u&&(n.dispatchEvent(u)?(["keydown","keypress","input"].includes(r.state)&&t._updateTarget(n,r),["selectionchange"].includes(r.state)&&t._setSelection(n,r),["select"].includes(r.state)&&t._setInputSelection(n,r)):"keydown"===r.state?n._cobrowse_suppress_events=new Set(["keypress","input"]):"keypress"===r.state&&(n._cobrowse_suppress_events=new Set(["input"]))),u}catch(t){return console.warn("Error while injecting event",e,t),null}}))})));t.default=f},31362:function(e,t,r){"use strict";r(69070),Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ControlEvents",{enumerable:!0,get:function(){return o.default}});var n,o=(n=r(42585))&&n.__esModule?n:{default:n}},47454:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}var o;function i(e,t){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},i(e,t)}function a(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}r(41539),r(12419),r(69070),r(82526),r(41817),r(32165),r(66992),r(78783),r(33948),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(68309),r(68304),r(30489);var c=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&i(e,t)}(c,e);var t,r,n,o=(r=c,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=u(r);if(n){var o=u(this).constructor;e=Reflect.construct(t,arguments,o)}else e=t.apply(this,arguments);return a(this,e)});function c(e,t,r){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),(n=o.call(this,t,r)).id=e,n.name="APIError",n}return t=c,Object.defineProperty(t,"prototype",{writable:!1}),t}(((o=r(29822))&&o.__esModule?o:{default:o}).default);t.default=c},29822:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function i(e){var t="function"==typeof Map?new Map:void 0;return i=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return a(e,arguments,s(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),c(n,e)},i(e)}function a(e,t,r){return a=u()?Reflect.construct.bind():function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&c(o,r.prototype),o},a.apply(null,arguments)}function u(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function c(e,t){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},c(e,t)}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}r(82772),r(41539),r(39714),r(12419),r(66992),r(51532),r(78783),r(33948),r(69070),r(82526),r(41817),r(32165),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(68309),r(68304),r(30489);var l=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&c(e,t)}(a,e);var t,r,n,i=(t=a,r=u(),function(){var e,n=s(t);if(r){var i=s(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return o(this,e)});function a(e,t){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(r=i.call(this,t)).status=e,r.name="HTTPError",r}return n=a,Object.defineProperty(n,"prototype",{writable:!1}),n}(i(Error));t.default=l},45388:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}r(68304),r(30489),r(12419),r(69070),r(82526),r(57327),r(38880),r(54747),r(49337),r(33321),r(41817),r(32165),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(41539),r(39714),r(47941),r(66992),r(78783),r(4129),r(33948),r(38478);var o=r(17187),i=u(r(66379)),a=u(r(47454));function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach((function(t){l(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function l(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function f(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}function p(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return h(e)}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},v(e)}function y(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function m(e,t){var r=function(e,t,r){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}(e,t);return function(e,t){return t.get?t.get.call(e):t.value}(e,r)}function g(e,t,r){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return r}var b=new WeakMap,w=new WeakSet,E=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}(c,e);var t,r,n,o,a,u=(o=c,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=v(o);if(a){var r=v(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return p(this,e)});function c(){var e,t,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),y(t=h(e=u.call(this)),r=w),r.add(t),function(e,t,r){y(e,t),t.set(e,{writable:!0,value:{}})}(h(e),b),e._resource={},e}return t=c,r=[{key:"resource",get:function(){return this._resource}},{key:"url",value:function(){throw new Error("url() must be implemented")}},{key:"id",value:function(){return this.field("id")}},{key:"field",value:function(e){return(this._resource||{})[e]}},{key:"cache",value:function(e){this._resource=s(s({},this._resource),e)}},{key:"fetch",value:function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(){var e=this;return fetch(this.url(),{headers:this.headers()}).then(g(this,w,_)).then((function(e){return e.json()})).then((function(t){return e.updateResource(t)}))}))},{key:"update",value:function(e){var t=this;return e&&Object.keys(e)&&(0,i.default)(this._resource,e)?this:fetch(this.url(),{method:this.id()?"PUT":"POST",headers:this.headers(),body:JSON.stringify(e)}).then(g(this,w,_)).then((function(e){return e.json()})).then((function(e){return t.updateResource(e)}))}},{key:"destroy",value:function(){var e=this;return fetch(this.url(),{method:"DELETE",headers:this.headers()}).then(g(this,w,_)).then((function(){return e.updateResource({})}))}},{key:"updateResource",value:function(e){return this._resource=e,this.emit("updated",this),this}},{key:"headers",value:function(){return s(s({},c.headers()),m(this,b))}},{key:"setHeader",value:function(e,t){m(this,b)[e]=t}},{key:"getHeader",value:function(e){return this.headers()[e]}}],n=[{key:"headers",value:function(){return this._globalHeaders}},{key:"setHeader",value:function(e,t){this._globalHeaders||(this._globalHeaders={}),this._globalHeaders[e]=t}},{key:"getHeader",value:function(e){return this._globalHeaders&&this._globalHeaders[e]}},{key:"api",get:function(){return this._api},set:function(e){this._api=e}}],r&&f(t.prototype,r),n&&f(t,n),Object.defineProperty(t,"prototype",{writable:!1}),c}(o.EventEmitter);function _(e){return e.status>=400?e.json().then((function(t){throw new a.default(t.id,e.status,t.message)})):e}t.default=E},58302:function(e,t,r){"use strict";r(69070),Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RESTResource",{enumerable:!0,get:function(){return o.default}});var n,o=(n=r(45388))&&n.__esModule?n:{default:n}},64914:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}r(69070),r(68304),r(30489),r(74819),r(38880),r(12419),r(47941),r(82526),r(57327),r(54747),r(49337),r(33321),r(41817),r(32165),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(41539),r(92222),r(69600),r(47042),r(39714),r(66992),r(78783),r(33948),r(60285),r(41637),r(4129);var o,i=r(21614),a=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=s(t);if(r&&r.has(e))return r.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var u=i?Object.getOwnPropertyDescriptor(e,a):null;u&&(u.get||u.set)?Object.defineProperty(o,a,u):o[a]=e[a]}return o.default=e,r&&r.set(e,o),o}(r(77368)),u=r(58302),c=r(35161);function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(s=function(e){return e?r:t})(e)}function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach((function(t){b(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function d(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}function h(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return v(e)}function v(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function y(){return y="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=m(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(arguments.length<3?e:r):o.value}},y.apply(this,arguments)}function m(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=g(e)););return e}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}function b(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function w(e,t,r){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,r)}function E(e,t){return function(e,t){return t.get?t.get.call(e):t.value}(e,O(e,t,"get"))}function _(e,t,r){return function(e,t,r){if(t.set)t.set.call(e,r);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=r}}(e,O(e,t,"set"),r),r}function O(e,t,r){if(!t.has(e))throw new TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}var S=(0,((o=r(99796))&&o.__esModule?o:{default:o}).default)("cbio.Session"),x=new WeakMap,k=new WeakMap,j=new WeakMap,T=new WeakMap,P=new WeakMap,L=new WeakMap,I=new WeakMap,A=new WeakMap,C=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}(s,e);var t,r,n,o,u=(n=s,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=g(n);if(o){var r=g(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return h(this,e)});function s(e){var t,r,n;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),w(v(n=u.call(this)),x,{writable:!0,value:void 0}),w(v(n),k,{writable:!0,value:void 0}),w(v(n),j,{writable:!0,value:function(e){n.setHeader("X-CobrowseDeviceToken",e)}}),w(v(n),T,{writable:!0,value:function(){return n.getHeader("X-CobrowseDeviceToken")}}),b(v(n),"activate",(function(){return S("activate session"),n.update({state:"active",device:c.Device.info,custom_data:E(v(n),x).customData})})),b(v(n),"end",(function(){return S("end session"),n.update({state:"ended"})})),b(v(n),"code",(function(){return n.field("code")})),b(v(n),"state",(function(){return n.field("state")})),b(v(n),"isActive",(function(){return"active"===n.state()})),b(v(n),"isAuthorizing",(function(){return"authorizing"===n.state()})),b(v(n),"isPending",(function(){return"pending"===n.state()})),b(v(n),"isEnded",(function(){return"ended"===n.state()})),b(v(n),"selectors",(function(){var e=n.field("redaction_selectors");return Array.isArray(e)?e:[]})),b(v(n),"agent",(function(){return n.field("agent")||!1})),b(v(n),"requireConsent",(function(){return n.field("require_consent")})),b(v(n),"fullDevice",(function(){return!0===n.field("full_device")||"on"===n.field("full_device")||"requested"===n.field("full_device")})),b(v(n),"setFullDevice",(function(e){return E(v(n),k).toggle(["laser","drawing","pointer","scroll","select","keypress","cursor"],"on"!==e),n.update({full_device:e})})),b(v(n),"update",(function(e){return y((t=v(n),g(s.prototype)),"update",t).call(t,f({capabilities:E(v(n),k).toArray()},e))})),b(v(n),"scale",(function(){return n.field("scale")||.5})),b(v(n),"remoteControl",(function(){return n.field("remote_control")||"on"})),b(v(n),"setRemoteControl",(function(e){return n.update({remote_control:e})})),b(v(n),"allowRemoteControl",(function(){return"on"===n.remoteControl()})),b(v(n),"updateResource",(function(e){var t=n.isEnded();return y((r=v(n),g(s.prototype)),"updateResource",r).call(r,e),n.isEnded()&&!t&&(n.emit("ended",v(n)),n.removeAllListeners()),v(n)})),w(v(n),P,{writable:!0,value:(0,a.protect)(v(n),"serialize",(function(){return f(f({},n.resource),{},{_locals:{token:E(v(n),T).call(v(n))}})}))}),w(v(n),L,{writable:!0,value:(0,a.protect)(v(n),"deserialize",(function(e){var t=e._locals||{};return delete e._locals,E(v(n),j).call(v(n),t.token),n.updateResource(e),v(n)}))}),w(v(n),I,{writable:!0,value:(0,a.protect)(v(n),"compress",(function(){return"".concat(n.resource.id,":").concat(E(v(n),T).call(v(n)))}))}),w(v(n),A,{writable:!0,value:(0,a.protect)(v(n),"decompress",(function(e){var t=e.split(":");return E(v(n),L).call(v(n),{_locals:{token:t[t.length-1]},id:t.slice(0,-1).join(":")}),v(n)}))}),!e)throw new Error("Session delegate is required");_(v(n),x,e),_(v(n),k,e[a.default].getCapabilities());var o=Math.ceil(Date.now()/36e5);return E(v(n),j).call(v(n),(0,i.v5)(o+"",c.Device.deviceToken())),n}return t=s,(r=[{key:"capabilities",get:function(){return E(this,k)}},{key:"url",value:function(){var e=this.id()||this.code();return new URL("api/1/sessions".concat(e?"/".concat(e):""),s.api).toString()}}])&&d(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),s}(u.RESTResource);t.default=C},41826:function(e,t,r){"use strict";r(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(43290),r(41539),r(26699),r(32023),r(85827),r(57327),r(47941),r(54747),r(66992),r(78783),r(4129),r(33948);var n=r(33403),o=r(95011);function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t){return function(e,t){return t.get?t.get.call(e):t.value}(e,c(e,t,"get"))}function c(e,t,r){if(!t.has(e))throw new TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}var s=new WeakMap,l=function(){function e(t){var r,n,o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),o={writable:!0,value:{}},function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(r=this,n=s),n.set(r,o),this.fill(t)}var t,r;return t=e,(r=[{key:"allowed",value:function(e){return this.toArray().some((function(t){return Array.isArray(e)?e.includes(t):e===t}))}},{key:"forbidden",value:function(e,t){return!this.allowed(e,t)}},{key:"allowsEvent",value:function(e){var t,r=(i(t={},o.SESSION_EVENT_TYPE_MOUSE,["mousedown","mouseup","click","dblclick","pointerdown","pointerup"].includes(e.state)?n.SESSION_CAPABILITY_TYPE_POINTER:n.SESSION_CAPABILITY_TYPE_CURSOR),i(t,o.SESSION_EVENT_TYPE_TOUCH,n.SESSION_CAPABILITY_TYPE_POINTER),i(t,o.SESSION_EVENT_TYPE_POINTER,n.SESSION_CAPABILITY_TYPE_POINTER),i(t,o.SESSION_EVENT_TYPE_FOCUS,[n.SESSION_CAPABILITY_TYPE_KEYPRESS,n.SESSION_CAPABILITY_TYPE_POINTER]),i(t,o.SESSION_EVENT_TYPE_KEYPRESS,n.SESSION_CAPABILITY_TYPE_KEYPRESS),i(t,o.SESSION_EVENT_TYPE_SCROLL,n.SESSION_CAPABILITY_TYPE_SCROLL),i(t,o.SESSION_EVENT_TYPE_CHANGE,[n.SESSION_CAPABILITY_TYPE_KEYPRESS,n.SESSION_CAPABILITY_TYPE_POINTER]),i(t,o.SESSION_EVENT_TYPE_INPUT,[n.SESSION_CAPABILITY_TYPE_KEYPRESS,n.SESSION_CAPABILITY_TYPE_POINTER]),i(t,o.SESSION_EVENT_TYPE_LASER,n.SESSION_CAPABILITY_TYPE_LASER),i(t,o.SESSION_EVENT_TYPE_DRAWING,n.SESSION_CAPABILITY_TYPE_DRAWING),i(t,o.SESSION_EVENT_TYPE_SELECT,n.SESSION_CAPABILITY_TYPE_SELECT),t)[e.type];return this.allowed(r)}},{key:"fill",value:function(e){return t=this,r=s,n=e.reduce((function(e,t){return e[t]=!0,e}),{}),function(e,t,r){if(t.set)t.set.call(e,r);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=r}}(t,c(t,r,"set"),n),this;var t,r,n}},{key:"all",value:function(){return u(this,s)}},{key:"toArray",value:function(){var e=this;return Object.keys(u(this,s)).filter((function(t){return u(e,s)[t]}))}},{key:"toggle",value:function(e,t){var r=this;return Array.isArray(e)||(e=[e]),e.filter((function(e){return e in u(r,s)})).forEach((function(e){u(r,s)[e]=t})),this}},{key:"allow",value:function(e){return this.toggle(e,!0)}},{key:"forbid",value:function(e){return this.toggle(e,!1)}}])&&a(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=l},33403:function(e,t,r){"use strict";r(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.SESSION_CAPABILITY_TYPE_SELECT=t.SESSION_CAPABILITY_TYPE_SCROLL=t.SESSION_CAPABILITY_TYPE_POINTER=t.SESSION_CAPABILITY_TYPE_LASER=t.SESSION_CAPABILITY_TYPE_KEYPRESS=t.SESSION_CAPABILITY_TYPE_FULL_DEVICE=t.SESSION_CAPABILITY_TYPE_DRAWING=t.SESSION_CAPABILITY_TYPE_CURSOR=void 0;var n="pointer";t.SESSION_CAPABILITY_TYPE_POINTER=n;var o="scroll";t.SESSION_CAPABILITY_TYPE_SCROLL=o;var i="select";t.SESSION_CAPABILITY_TYPE_SELECT=i;var a="keypress";t.SESSION_CAPABILITY_TYPE_KEYPRESS=a;var u="drawing";t.SESSION_CAPABILITY_TYPE_DRAWING=u;var c="laser";t.SESSION_CAPABILITY_TYPE_LASER=c;var s="full_device";t.SESSION_CAPABILITY_TYPE_FULL_DEVICE=s;var l="cursor";t.SESSION_CAPABILITY_TYPE_CURSOR=l;var f=[n,o,i,a,u,c,s,l];t.default=f},32001:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}r(69070),r(82526),r(41817),r(32165),r(72443),r(39341),r(73706),r(10408),r(30489),r(54747),r(68309),r(68304),r(47042),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(66992),r(41539),r(78783),r(4129),r(33948);var o=d(r(51713)),i=r(17297),a=r(55064),u=r(83042),c=r(31362),s=r(28541),l=d(r(99796)),f=r(33403);function d(e){return e&&e.__esModule?e:{default:e}}function p(){p=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var i=t&&t.prototype instanceof h?t:h,a=Object.create(i.prototype),u=new j(n||[]);return o(a,"_invoke",{value:O(e,r,u)}),a}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var d={};function h(){}function v(){}function y(){}var m={};s(m,a,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(T([])));b&&b!==t&&r.call(b,a)&&(m=b);var w=y.prototype=h.prototype=Object.create(m);function E(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function i(o,a,u,c){var s=f(e[o],e,a);if("throw"!==s.type){var l=s.arg,d=l.value;return d&&"object"==n(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){i("next",e,u,c)}),(function(e){i("throw",e,u,c)})):t.resolve(d).then((function(e){l.value=e,u(l)}),(function(e){return i("throw",e,u,c)}))}c(s.arg)}var a;o(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){i(e,r,t,n)}))}return a=a?a.then(n,n):n()}})}function O(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=S(a,r);if(u){if(u===d)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=f(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function S(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=f(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,d;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function T(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:P}}function P(){return{value:void 0,done:!0}}return v.prototype=y,o(w,"constructor",{value:y,configurable:!0}),o(y,"constructor",{value:v,configurable:!0}),v.displayName=s(y,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,s(e,c,"GeneratorFunction")),e.prototype=Object.create(w),e},e.awrap=function(e){return{__await:e}},E(_.prototype),s(_.prototype,u,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new _(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(w),s(w,c,"Generator"),s(w,a,(function(){return this})),s(w,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=T,j.prototype={constructor:j,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),k(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:T(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function h(e,t,r,n,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void r(e)}u.done?t(c):Promise.resolve(c).then(n,o)}function v(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){h(i,n,o,a,u,"next",e)}function u(e){h(i,n,o,a,u,"throw",e)}a(void 0)}))}}function y(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function m(e,t,r){return t&&y(e.prototype,t),r&&y(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function g(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function b(e,t,r){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,r)}function w(e,t){return function(e,t){return t.get?t.get.call(e):t.value}(e,_(e,t,"get"))}function E(e,t,r){return function(e,t,r){if(t.set)t.set.call(e,r);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=r}}(e,_(e,t,"set"),r),r}function _(e,t,r){if(!t.has(e))throw new TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}var O=(0,l.default)("cbio.SessionContext"),S=new WeakMap,x=new WeakMap,k=new WeakMap,j=new WeakMap,T=new WeakMap,P=new WeakMap,L=new WeakMap,I=new WeakMap,A=new WeakMap,C=new WeakMap,M=new WeakMap,N=new WeakMap,R=new WeakMap,D=new WeakMap,F=new WeakMap,U=new WeakMap,W=new WeakMap,z=new WeakMap,B=new WeakMap,G=new WeakMap,V=new WeakMap,Y=new WeakMap,H=new WeakMap,K=new WeakMap,q=new WeakMap,$=new WeakMap,X=m((function e(t,r,n){var l,d,h,y,m,_=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),b(this,S,{writable:!0,value:void 0}),b(this,x,{writable:!0,value:void 0}),b(this,k,{writable:!0,value:new i.FrameLoop}),b(this,j,{writable:!0,value:void 0}),b(this,T,{writable:!0,value:void 0}),b(this,P,{writable:!0,value:void 0}),g(this,"invalidateFrames",(function(){w(_,k).isRunning()&&w(_,k).invalidateFrame()})),g(this,"destroy",(function(){O("destroy session context"),w(_,z).call(_),w(_,S)&&w(_,S).close(),E(_,S,null),w(_,k)&&w(_,k).destroy(),E(_,k,null),a.WindowTracking.off("activate",w(_,V)),window.removeEventListener("focus",w(_,V),{capture:!0,passive:!0}),window.removeEventListener("hashchange",w(_,Y),{capture:!0,passive:!0}),a.MouseTracking.onChange===w(_,q)&&(a.MouseTracking.onChange=null),_.session&&(_.session.removeListener("update",w(_,W)),_.session.removeListener("ended",w(_,z)),_.session.removeListener("sync",w(_,L)),_.session.removeListener("drawing",w(_,A)),_.session.removeListener("laser",w(_,I)),_.session.removeListener("control",w(_,C))),document.removeEventListener("DOMContentLoaded",w(_,M),{once:!0}),w(_,B).call(_,null),_.session=null})),b(this,L,{writable:!0,value:function(e){var t=e.id;t&&w(_,j)===t||(E(_,j,t),w(_,k).invalidateFrame())}}),b(this,I,{writable:!0,value:function(e){_.session.capabilities.allowsEvent(e)&&a.WindowTracking.isActive()&&(_.session.fullDevice()||u.LaserOverlay.update(e))}}),b(this,A,{writable:!0,value:function(e){_.session.capabilities.allowsEvent(e)&&(e.image||u.AnnotationOverlay.hide(),a.WindowTracking.isActive()&&(_.session.fullDevice()||u.AnnotationOverlay.update(e)))}}),b(this,C,{writable:!0,value:function(e,t){if("focus"!==e||t.agent||a.WindowTracking.resignActive(),a.WindowTracking.isActive()&&!_.session.fullDevice()&&_.session.allowRemoteControl()){if(!_.session.capabilities.allowsEvent(t))return;u.RemoteCursor.update(e,t),c.ControlEvents.applyEvent(e,t)}}}),b(this,M,{writable:!0,value:function(e){_.session&&(e.isActive()?document.body?_.delegate.showSessionControls(e):document.addEventListener("DOMContentLoaded",w(_,M),{once:!0}):_.delegate.hideSessionControls(e))}}),b(this,N,{writable:!0,value:function(e){s.NodeRedaction.setIndex(new s.RedactionIndex(_.delegate.redactedViews,_.delegate.unredactedViews)),s.NodeRedaction.setSelectors(e.selectors())}}),b(this,R,{writable:!0,value:(l=v(p().mark((function e(t){var r;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.agent()&&!t.isActive()&&!t.isEnded()){e.next=2;break}return e.abrupt("return",null);case 2:if(t.requireConsent()){e.next=4;break}return e.abrupt("return",t.activate());case 4:if(!w(_,T)){e.next=6;break}return e.abrupt("return",null);case 6:return E(_,T,!0),e.prev=7,O("authorizing session"),e.next=11,t.update({state:"authorizing"});case 11:if(_.session){e.next=13;break}return e.abrupt("return",null);case 13:return e.next=15,_.delegate.confirmSession(t);case 15:if(r=e.sent,_.session){e.next=18;break}return e.abrupt("return",null);case 18:if(!1!==r){e.next=23;break}return O("user rejected session request"),e.abrupt("return",t.end());case 23:return O("session accepted"),e.abrupt("return",t.activate());case 25:e.next=33;break;case 27:if(e.prev=27,e.t0=e.catch(7),e.t0&&console.warn("CobrowseIO: error caught during confirmation",e.t0),!_.session){e.next=32;break}return e.abrupt("return",t.end());case 32:return e.abrupt("return",null);case 33:case"end":return e.stop()}}),e,null,[[7,27]])}))),function(e){return l.apply(this,arguments)})}),b(this,D,{writable:!0,value:(d=v(p().mark((function e(t){return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("requested"===t.remoteControl()){e.next=2;break}return e.abrupt("return",null);case 2:return e.prev=2,e.next=5,_.delegate.confirmRemoteControl();case 5:if(e.t0=e.sent,!1!==e.t0){e.next=11;break}return O("user rejeted remote control"),e.abrupt("return",t.update({remote_control:"rejected"}));case 11:return O("user accepted remote control"),e.abrupt("return",t.update({remote_control:"on"}));case 13:e.next=19;break;case 15:return e.prev=15,e.t1=e.catch(2),e.t1&&console.warn("CobrowseIO: error caught during confirmation",e.t1),e.abrupt("return",t.update({remote_control:"rejected"}));case 19:case"end":return e.stop()}}),e,null,[[2,15]])}))),function(e){return d.apply(this,arguments)})}),b(this,F,{writable:!0,value:(h=v(p().mark((function e(){var t;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a.WindowTracking.isActive()){e.next=2;break}return e.abrupt("return",!1);case 2:if(!_.session.capabilities.forbidden(f.SESSION_CAPABILITY_TYPE_FULL_DEVICE)){e.next=4;break}return e.abrupt("return");case 4:return e.prev=4,e.next=7,_.delegate.confirmFullDevice();case 7:if(t=e.sent,O("full device request",t),t){e.next=12;break}return e.next=12,_.session.setFullDevice("rejected");case 12:return e.abrupt("return",t);case 15:return e.prev=15,e.t0=e.catch(4),e.next=19,_.session.setFullDevice("off");case 19:return e.abrupt("return",!1);case 20:case"end":return e.stop()}}),e,null,[[4,15]])}))),function(){return h.apply(this,arguments)})}),b(this,U,{writable:!0,value:(y=v(p().mark((function e(t){var r;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.isEnded()&&w(_,k)){e.next=2;break}return e.abrupt("return",null);case 2:if(r=w(_,k).getSource(),!t.fullDevice()){e.next=10;break}if(!(r instanceof i.MediaStreamFrameSource)){e.next=6;break}return e.abrupt("return",O("already set to MediaStreamFrameSource"));case 6:return e.next=8,w(_,k).setSource(new i.MediaStreamFrameSource({handleFrame:w(_,K),scale:t.scale,captureStarted:function(){return t.setFullDevice("on")},captureEnded:function(e){e&&console.warn("Full device mode failed: ",e),t.setFullDevice(e?"rejected":"off")},requestPermission:w(_,F)}));case 8:e.next=13;break;case 10:if(!(r instanceof i.DOMFrameSource)){e.next=12;break}return e.abrupt("return",O("already set to DOMFrameSource"));case 12:return e.abrupt("return",w(_,k).setSource(new i.DOMFrameSource(w(_,H))));case 13:case"end":return e.stop()}}),e)}))),function(e){return y.apply(this,arguments)})}),b(this,W,{writable:!0,value:function(e){_.session?(w(_,R).call(_,e),w(_,M).call(_,e),w(_,N).call(_,e),w(_,D).call(_,e),w(_,U).call(_,e),w(_,B).call(_,e),e.isActive()&&w(_,$).call(_)):O("onSessionUpdated called after destroy()")}}),b(this,z,{writable:!0,value:function(){u.AnnotationOverlay.hide(),u.RemoteCursor.hide(),u.LaserOverlay.hide(),_.delegate.hideSessionControls(_.session),w(_,B).call(_,null)}}),b(this,B,{writable:!0,value:(m=v(p().mark((function e(t){var r;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,null===(r=w(_,P))||void 0===r?void 0:r.store(t);case 2:case"end":return e.stop()}}),e)}))),function(e){return m.apply(this,arguments)})}),b(this,G,{writable:!0,value:function(e,t){return!(!_.session||!_.session.isActive()||!_.session.fullDevice()&&!a.WindowTracking.isActive()||!w(_,S)||!w(_,S).stream||!w(_,S).stream.connected||!w(_,S).stream.bufferedAmount>100||(w(_,S).stream.send(e,t),0))}}),b(this,V,{writable:!0,value:function(){return w(_,G).call(_,"focus",{type:"Focus",timestamp:new Date})}}),b(this,Y,{writable:!0,value:function(){return w(_,G).call(_,"screen",{type:"Screen",timestamp:new Date,url:window.location.href,title:document.title})}}),b(this,H,{writable:!0,value:function(e){return E(_,x,(w(_,x)||0)+1),w(_,G).call(_,"frame",{type:"Frame",id:w(_,x),data:e,timestamp:new Date,mime_type:"application/x-cbio-vdom-patch"})}}),b(this,K,{writable:!0,value:function(e,t,r){w(_,S).stream.messageLag()>=r?O("dropped frame due to message lag",w(_,S).stream.messageLag()):(E(_,x,(w(_,x)||0)+1),w(_,G).call(_,"frame",{type:"Frame",id:w(_,x),data:e,timestamp:new Date,mime_type:t}))}}),b(this,q,{writable:!0,value:function(e){var t="mouseout";return e.in&&(t=e.down?"mousedown":"mouseup"),w(_,G).call(_,"mouse",{type:"Mouse",x:e.x/window.innerWidth,y:e.y/window.innerHeight,state:t,timestamp:new Date})}}),b(this,$,{writable:!0,value:function(){return w(_,k).isRunning()||(O("start frames"),w(_,k).start()),_}}),O("session context constructed"),this.session=t,this.delegate=r,E(this,P,n),E(this,S,new o.default(t)),a.WindowTracking.on("activate",w(this,V)),window.addEventListener("focus",w(this,V),{capture:!0,passive:!0}),window.addEventListener("hashchange",w(this,Y),{capture:!0,passive:!0}),a.MouseTracking.onChange=w(this,q),w(this,W).call(this,t),t.on("updated",w(this,W)),t.on("ended",w(this,z)),t.on("sync",w(this,L)),t.on("drawing",w(this,A)),t.on("laser",w(this,I)),t.on("control",w(this,C)),t.once("stream-open",(function(){return w(_,V).call(_)}))}));t.default=X},95011:function(e,t,r){"use strict";r(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.SESSION_EVENT_TYPE_TOUCH=t.SESSION_EVENT_TYPE_SELECT=t.SESSION_EVENT_TYPE_SCROLL=t.SESSION_EVENT_TYPE_POINTER=t.SESSION_EVENT_TYPE_MOUSE=t.SESSION_EVENT_TYPE_LASER=t.SESSION_EVENT_TYPE_KEYPRESS=t.SESSION_EVENT_TYPE_INPUT=t.SESSION_EVENT_TYPE_FOCUS=t.SESSION_EVENT_TYPE_DRAWING=t.SESSION_EVENT_TYPE_CHANGE=void 0,t.SESSION_EVENT_TYPE_MOUSE="Mouse",t.SESSION_EVENT_TYPE_TOUCH="Touch",t.SESSION_EVENT_TYPE_POINTER="Pointer",t.SESSION_EVENT_TYPE_FOCUS="Focus",t.SESSION_EVENT_TYPE_KEYPRESS="KeyPress",t.SESSION_EVENT_TYPE_SCROLL="Scroll",t.SESSION_EVENT_TYPE_CHANGE="Change",t.SESSION_EVENT_TYPE_INPUT="Input",t.SESSION_EVENT_TYPE_LASER="Laser",t.SESSION_EVENT_TYPE_DRAWING="Drawing",t.SESSION_EVENT_TYPE_SELECT="Select"},51713:function(e,t,r){"use strict";r(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(26699),r(92222),r(66992),r(41539),r(78783),r(4129),r(33948);var n=i(r(2260)),o=i(r(53440));function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function c(e,t,r){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,r)}function s(e,t){return function(e,t){return t.get?t.get.call(e):t.value}(e,f(e,t,"get"))}function l(e,t,r){return function(e,t,r){if(t.set)t.set.call(e,r);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=r}}(e,f(e,t,"set"),r),r}function f(e,t,r){if(!t.has(e))throw new TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}var d=new WeakMap,p=new WeakMap,h=new WeakMap,v=new WeakMap,y=new WeakMap,m=new WeakMap,g=function(){function e(t){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),c(this,d,{writable:!0,value:void 0}),c(this,p,{writable:!0,value:void 0}),c(this,h,{writable:!0,value:void 0}),u(this,"open",(function(){s(r,d).isEnded()||(s(r,y).call(r),s(r,m).call(r))})),u(this,"close",(function(){window.removeEventListener("visibilitychange",r.onVisibilityChange),s(r,d)&&(s(r,d).removeListener("updated",r.open),l(r,d,null)),s(r,h)&&(s(r,h).close(),l(r,h,null)),s(r,p)&&(s(r,p).close(),l(r,p,null))})),c(this,v,{writable:!0,value:function(e,t){var i=new n.default({getUrl:function(){return(0,o.default)(e,s(r,d).field(t))}});return i.on("error",(function(e){console.warn("CobrowseIO session socket error:",e)})),i}}),c(this,y,{writable:!0,value:function(){var e=s(r,d).field("control_url"),t=s(r,d).field("control_token");e&&t&&!s(r,p)&&(l(r,p,s(r,v).call(r,e,"control_token")),s(r,p).on("open",(function(){s(r,p).send("filter",{events:["session"]}),s(r,d).fetch().catch((function(e){console.warn("CobrowseIO failed fetching session state",e)}))})),s(r,p).on("event",(function(e,t){"session"===e&&s(r,d).updateResource(t)})))}}),c(this,m,{writable:!0,value:function(){var e=s(r,d).field("stream_url"),t=s(r,d).field("stream_token");if(e&&t&&!s(r,h)){l(r,h,s(r,v).call(r,e,"stream_token"));var n=["drawing","laser","url"],o=["touch","mouse","pointer","keypress","scroll","focus","input","change","select"];s(r,h).on("event",(function(e,t){"sync"===e?s(r,d).emit("sync",t):"probe"===e?s(r,h).send("alive",t):n.includes(e)?s(r,d).emit(e,t):o.includes(e)&&s(r,d).emit("control",e,t)})),s(r,h).on("open",(function(){s(r,h).send("filter",{events:[].concat(o,n,["sync","probe"])}),s(r,d).emit("stream-open")}))}}}),l(this,d,t),t.on("updated",this.open),this.open()}var t,r;return t=e,(r=[{key:"stream",get:function(){return s(this,h)}}])&&a(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=g},61640:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}r(69070),r(47042),r(91038),r(74916),r(82526),r(41817),r(32165),r(72443),r(39341),r(73706),r(10408),r(30489),r(54747),r(68304),Object.defineProperty(t,"__esModule",{value:!0}),t.SessionStorage=void 0,r(68309),r(66992),r(41539),r(70189),r(78783),r(33948),r(57327),r(92222),r(26699),r(32023),r(4129);var o,i=r(97054),a=r(4603);function u(e){return function(e){if(Array.isArray(e))return f(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||l(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(){c=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function f(e,t,r,n){var i=t&&t.prototype instanceof h?t:h,a=Object.create(i.prototype),u=new j(n||[]);return o(a,"_invoke",{value:O(e,r,u)}),a}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=f;var p={};function h(){}function v(){}function y(){}var m={};l(m,a,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(T([])));b&&b!==t&&r.call(b,a)&&(m=b);var w=y.prototype=h.prototype=Object.create(m);function E(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function i(o,a,u,c){var s=d(e[o],e,a);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==n(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){i("next",e,u,c)}),(function(e){i("throw",e,u,c)})):t.resolve(f).then((function(e){l.value=e,u(l)}),(function(e){return i("throw",e,u,c)}))}c(s.arg)}var a;o(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){i(e,r,t,n)}))}return a=a?a.then(n,n):n()}})}function O(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=S(a,r);if(u){if(u===p)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=d(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===p)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function S(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method))return p;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var n=d(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,p;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,p):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function T(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:P}}function P(){return{value:void 0,done:!0}}return v.prototype=y,o(w,"constructor",{value:y,configurable:!0}),o(y,"constructor",{value:v,configurable:!0}),v.displayName=l(y,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,l(e,s,"GeneratorFunction")),e.prototype=Object.create(w),e},e.awrap=function(e){return{__await:e}},E(_.prototype),l(_.prototype,u,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new _(f(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(w),l(w,s,"Generator"),l(w,a,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=T,j.prototype={constructor:j,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),k(r),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:T(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},e}function s(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=l(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw i}}}}function l(e,t){if(e){if("string"==typeof e)return f(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f(e,t):void 0}}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function d(e,t,r,n,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void r(e)}u.done?t(c):Promise.resolve(c).then(n,o)}function p(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){d(i,n,o,a,u,"next",e)}function u(e){d(i,n,o,a,u,"throw",e)}a(void 0)}))}}function h(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function v(e,t,r){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,r)}function y(e,t){return function(e,t){return t.get?t.get.call(e):t.value}(e,g(e,t,"get"))}function m(e,t,r){return function(e,t,r){if(t.set)t.set.call(e,r);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=r}}(e,g(e,t,"set"),r),r}function g(e,t,r){if(!t.has(e))throw new TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}var b=(0,((o=r(99796))&&o.__esModule?o:{default:o}).default)("cbio.sessionStorage"),w=new WeakMap,E=new WeakMap,_=new WeakMap,O=function(){function e(t){var r=t.load,n=void 0===r?[]:r,o=t.store,i=void 0===o?[]:o,a=t.retain,u=void 0===a?[]:a;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),v(this,w,{writable:!0,value:void 0}),v(this,E,{writable:!0,value:void 0}),v(this,_,{writable:!0,value:void 0}),m(this,w,n),m(this,E,i),m(this,_,u)}var t,r,n,o,l;return t=e,r=[{key:"load",value:(l=p(c().mark((function e(t){var r,n,o,i,a;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:b("loading session"),r=s(y(this,w)),e.prev=2,r.s();case 4:if((n=r.n()).done){e.next=21;break}return o=n.value,e.next=8,o.load(t);case 8:return i=e.sent,e.next=11,null==i?void 0:i.fetch();case 11:if(!(a=e.sent)){e.next=19;break}if(!a.isActive()){e.next=17;break}return e.abrupt("return",a);case 17:return e.next=19,o.store(null);case 19:e.next=4;break;case 21:e.next=26;break;case 23:e.prev=23,e.t0=e.catch(2),r.e(e.t0);case 26:return e.prev=26,r.f(),e.finish(26);case 29:return e.abrupt("return",null);case 30:case"end":return e.stop()}}),e,this,[[2,23,26,29]])}))),function(e){return l.apply(this,arguments)})},{key:"store",value:(o=p(c().mark((function e(t){var r,n,o;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:b("storing session"),r=s(y(this,E)),e.prev=2,r.s();case 4:if((n=r.n()).done){e.next=20;break}return o=n.value,e.prev=6,e.next=9,o.store(t);case 9:if(e.t0=e.sent,!0!==e.t0){e.next=13;break}return b("stopping store() chain early due to",o),e.abrupt("break",20);case 13:e.next=18;break;case 15:e.prev=15,e.t1=e.catch(6),console.error("Unexpected error storing session: ".concat(o.constructor.name),e.t1);case 18:e.next=4;break;case 20:e.next=25;break;case 22:e.prev=22,e.t2=e.catch(2),r.e(e.t2);case 25:return e.prev=25,r.f(),e.finish(25);case 28:case"end":return e.stop()}}),e,this,[[2,22,25,28],[6,15]])}))),function(e){return o.apply(this,arguments)})},{key:"destroy",value:function(){var e,t=this,r=s(new Set([].concat(u(y(this,w)),u(y(this,E))).filter((function(e){return!y(t,_).includes(e)}))));try{for(r.s();!(e=r.n()).done;)e.value.destroy()}catch(e){r.e(e)}finally{r.f()}m(this,w,null),m(this,E,null),m(this,_,null)}}],n=[{key:"create",value:function(t,r,n){var o=n.localStorage;if(t.length>1){var u=new i.ForwardingSessionStorage(t),c=new a.IframeSessionStorage(t,r);return new e({load:[u,o,c],store:[o,c,u],retain:[o]})}return new e({load:[o],store:[o],retain:[o]})}}],r&&h(t.prototype,r),n&&h(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.SessionStorage=O},6362:function(e,t,r){"use strict";r(69070),Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Session",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(t,"SessionCapabilities",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"SessionContext",{enumerable:!0,get:function(){return o.default}});var n=a(r(64914)),o=a(r(32001)),i=a(r(41826));function a(e){return e&&e.__esModule?e:{default:e}}},2767:function(e,t,r){"use strict";r(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.ActiveSessionPath=void 0,t.ActiveSessionPath="_cobrowse_active_session"},97054:function(e,t,r){"use strict";r(69070),r(47042),r(68309),r(91038),r(74916),r(82526),r(41817),r(32165),Object.defineProperty(t,"__esModule",{value:!0}),t.ForwardingSessionStorage=void 0,t.extractActiveSession=_,r(66992),r(41539),r(78783),r(33948),r(60285),r(41637),r(4129),r(38478),r(92222),r(39714),r(82772);var n=a(r(77368)),o=a(r(64914)),i=r(2767);function a(e){return e&&e.__esModule?e:{default:e}}function u(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||s(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=s(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw i}}}}function s(e,t){if(e){if("string"==typeof e)return l(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?l(e,t):void 0}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function p(e,t){v(e,t),t.add(e)}function h(e,t,r){v(e,t),t.set(e,r)}function v(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function y(e,t,r){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return r}function m(e,t){return function(e,t){return t.get?t.get.call(e):t.value}(e,b(e,t,"get"))}function g(e,t,r){return function(e,t,r){if(t.set)t.set.call(e,r);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=r}}(e,b(e,t,"set"),r),r}function b(e,t,r){if(!t.has(e))throw new TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}var w=(0,a(r(99796)).default)("cbio.sessionStorage.ForwardingSessionStorage"),E=_();function _(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.window,r=void 0===t?window:t;try{var n=new URL(r.location.href),o=n.searchParams.get(i.ActiveSessionPath);return o?(w("found forwarded session that can be loaded",o),n.searchParams.delete(i.ActiveSessionPath),r.history.replaceState({},"",n)):w("no forwarded session to load",n),o}catch(e){console.warn("Failed to attempt to extract forwarded session",e)}}var O=new WeakMap,S=new WeakMap,x=new WeakMap,k=new WeakMap,j=new WeakMap,T=new WeakMap,P=new WeakMap,L=new WeakMap,I=new WeakSet,A=new WeakSet,C=new WeakSet,M=new WeakSet,N=new WeakSet,R=new WeakSet,D=new WeakSet,F=new WeakSet,U=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.window,o=void 0===n?window:n,i=r.HtmlFormElement,a=void 0===i?HTMLFormElement:i,u=r.activeSessionData,c=void 0===u?E:u;f(this,e),p(this,F),p(this,D),p(this,R),p(this,N),p(this,M),p(this,C),p(this,A),p(this,I),h(this,O,{writable:!0,value:void 0}),h(this,S,{writable:!0,value:void 0}),h(this,x,{writable:!0,value:void 0}),h(this,k,{writable:!0,value:void 0}),h(this,j,{writable:!0,value:void 0}),h(this,T,{writable:!0,value:void 0}),h(this,P,{writable:!0,value:void 0}),h(this,L,{writable:!0,value:void 0}),g(this,O,o),g(this,S,a),g(this,x,t||[]),g(this,k,c)}var t,r;return t=e,(r=[{key:"isSupported",value:function(){return w("isSupported?",!0),!0}},{key:"load",value:function(e){try{if(m(this,k))return w("loading session",m(this,k)),new o.default(e)[n.default].decompress(m(this,k));w("no session to load")}catch(e){w("failed to load forwarded session",e)}return null}},{key:"store",value:function(e){y(this,F,K).call(this,e)?(w("storing active session by binding forwarding hooks"),g(this,j,e),y(this,C,B).call(this)):(w("removing active session by unbinding forwarding hooks"),this.destroy())}},{key:"destroy",value:function(){y(this,M,G).call(this),g(this,j,void 0)}}])&&d(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function W(){var e=this;m(this,P)||(g(this,P,m(this,O).open),m(this,O).open=function(t){for(var r,n,o=arguments.length,i=new Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];return(r=m(e,P)).call.apply(r,[m(e,O),null!==(n=y(e,D,H).call(e,t))&&void 0!==n?n:t].concat(i))})}function z(){var e=this;if(!m(this,L)){g(this,L,m(this,S).prototype.submit);var t=function(t){var r,n;t.action=null!==(r=y(e,D,H).call(e,t.action))&&void 0!==r?r:t.action;for(var o=arguments.length,i=new Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];(n=m(e,L)).call.apply(n,[t].concat(i))};m(this,S).prototype.submit=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];t.apply(void 0,[this].concat(r))}}}function B(){var e=this;if(!m(this,T)){g(this,T,[["click",function(t){return y(e,N,V).call(e,t)}],["submit",function(t){return y(e,R,Y).call(e,t)}]]);var t,r=c(m(this,T));try{for(r.s();!(t=r.n()).done;){var n,o=t.value;(n=m(this,O).document).addEventListener.apply(n,u(o))}}catch(e){r.e(e)}finally{r.f()}}y(this,I,W).call(this),y(this,A,z).call(this)}function G(){if(m(this,T)){var e,t=c(m(this,T));try{for(t.s();!(e=t.n()).done;){var r,n=e.value;(r=m(this,O).document).removeEventListener.apply(r,u(n))}}catch(e){t.e(e)}finally{t.f()}g(this,T,void 0)}m(this,P)&&(m(this,O).open=m(this,P),g(this,P,void 0)),m(this,L)&&(m(this,S).prototype.submit=m(this,L),g(this,L,void 0))}function V(e){var t,r=y(this,D,H).call(this,null==e||null===(t=e.target)||void 0===t?void 0:t.href);r&&(e.target.href=r.toString())}function Y(e){var t,r=y(this,D,H).call(this,null==e||null===(t=e.target)||void 0===t?void 0:t.action);r&&(e.target.action=r.toString())}function H(e){if(!e)return w("not rewriting falsey url",e),null;if(!y(this,F,K).call(this))return w("not rewriting url due to non-active session",e),null;try{var t=new URL(e);return t.origin===m(this,O).location.origin?(w("not rewriting url because we are not changing origin",t.toString()),null):-1===m(this,x).indexOf(t.origin)?(w("not rewriting url due to non-trusted origin",t.toString()),null):(t.searchParams.set(i.ActiveSessionPath,m(this,j)[n.default].compress()),w("rewriting trusted url for an active session",{from:e,to:t.toString()}),"string"==typeof e?t.toString():t)}catch(e){return w("failed rewriting url",e),null}}function K(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:m(this,j);return null==e?void 0:e.isActive()}t.ForwardingSessionStorage=U},4603:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}r(69070),r(82526),r(41817),r(32165),r(72443),r(39341),r(73706),r(10408),r(30489),r(54747),r(68309),r(68304),r(47042),Object.defineProperty(t,"__esModule",{value:!0}),t.IframeSessionStorage=void 0,r(66992),r(41539),r(78783),r(33948),r(60285),r(41637),r(39714),r(4129);var o=c(r(77368)),i=r(57345),a=c(r(64914)),u=r(2767);function c(e){return e&&e.__esModule?e:{default:e}}function s(){s=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function f(e,t,r,n){var i=t&&t.prototype instanceof h?t:h,a=Object.create(i.prototype),u=new j(n||[]);return o(a,"_invoke",{value:O(e,r,u)}),a}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=f;var p={};function h(){}function v(){}function y(){}var m={};l(m,a,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(T([])));b&&b!==t&&r.call(b,a)&&(m=b);var w=y.prototype=h.prototype=Object.create(m);function E(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function i(o,a,u,c){var s=d(e[o],e,a);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==n(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){i("next",e,u,c)}),(function(e){i("throw",e,u,c)})):t.resolve(f).then((function(e){l.value=e,u(l)}),(function(e){return i("throw",e,u,c)}))}c(s.arg)}var a;o(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){i(e,r,t,n)}))}return a=a?a.then(n,n):n()}})}function O(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=S(a,r);if(u){if(u===p)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=d(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===p)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function S(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method))return p;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var n=d(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,p;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,p):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function T(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:P}}function P(){return{value:void 0,done:!0}}return v.prototype=y,o(w,"constructor",{value:y,configurable:!0}),o(y,"constructor",{value:v,configurable:!0}),v.displayName=l(y,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,l(e,c,"GeneratorFunction")),e.prototype=Object.create(w),e},e.awrap=function(e){return{__await:e}},E(_.prototype),l(_.prototype,u,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new _(f(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(w),l(w,c,"Generator"),l(w,a,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=T,j.prototype={constructor:j,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),k(r),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:T(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},e}function l(e,t,r,n,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void r(e)}u.done?t(c):Promise.resolve(c).then(n,o)}function f(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){l(i,n,o,a,u,"next",e)}function u(e){l(i,n,o,a,u,"throw",e)}a(void 0)}))}}function d(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function p(e,t){return function(e,t){return t.get?t.get.call(e):t.value}(e,v(e,t,"get"))}function h(e,t,r){return function(e,t,r){if(t.set)t.set.call(e,r);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=r}}(e,v(e,t,"set"),r),r}function v(e,t,r){if(!t.has(e))throw new TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}var y=(0,c(r(99796)).default)("cbio.sessionStorage.IframeSessionStorage"),m=new WeakMap,g=function(){function e(t,r){var n,o,a;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),a={writable:!0,value:void 0},function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=this,o=m),o.set(n,a);var u=new URL("apps/iframe_storage/server.html",r);h(this,m,new i.TrustedOriginStorageClient(u.toString(),t))}var t,r,n,c,l;return t=e,r=[{key:"isSupported",value:(l=f(s().mark((function e(){var t;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,p(this,m).ready();case 2:return t=p(this,m)&&p(this,m).isCrossDomainSupported,y("isSupported?",t),e.abrupt("return",t);case 5:case"end":return e.stop()}}),e,this)}))),function(){return l.apply(this,arguments)})},{key:"load",value:(c=f(s().mark((function e(t){var r;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.isSupported();case 2:if(e.sent){e.next=4;break}return e.abrupt("return",null);case 4:return e.next=6,p(this,m).storage.getItem(u.ActiveSessionPath);case 6:if(!(r=e.sent)){e.next=12;break}return y("loading session"),e.abrupt("return",new a.default(t)[o.default].deserialize(JSON.parse(r)));case 12:return y("no session to load"),e.abrupt("return",null);case 14:case"end":return e.stop()}}),e,this)}))),function(e){return c.apply(this,arguments)})},{key:"store",value:(n=f(s().mark((function e(t){var r;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.isSupported();case 2:if(e.sent){e.next=4;break}return e.abrupt("return",null);case 4:if(null==t||!t.isActive()){e.next=12;break}return y("storing active session"),r=JSON.stringify(t[o.default].serialize()),e.next=9,p(this,m).storage.setItem(u.ActiveSessionPath,r);case 9:return e.abrupt("return",!0);case 12:return y("deleting inactive session"),e.next=15,p(this,m).storage.removeItem(u.ActiveSessionPath);case 15:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"destroy",value:function(){var e;null===(e=p(this,m))||void 0===e||e.destroy(),h(this,m,void 0)}}],r&&d(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.IframeSessionStorage=g},79426:function(e,t,r){"use strict";r(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.LocalSessionStorage=void 0,r(66992),r(41539),r(78783),r(4129),r(33948);var n=u(r(77368)),o=u(r(95901)),i=u(r(64914)),a=r(2767);function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function s(e,t){return function(e,t){return t.get?t.get.call(e):t.value}(e,l(e,t,"get"))}function l(e,t,r){if(!t.has(e))throw new TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}var f=(0,u(r(99796)).default)("cbio.sessionStorage.LocalSessionStorage"),d=new WeakMap,p=function(){function e(){var t,r,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=this,r=d,n={writable:!0,value:(0,o.default)()},function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t,r),r.set(t,n)}var t,r;return t=e,(r=[{key:"isSupported",value:function(){return f("isSupported?",!0),!0}},{key:"load",value:function(e){var t=s(this,d).getItem(a.ActiveSessionPath);return t?(f("loading session"),new i.default(e)[n.default].deserialize(t)):(f("no session to load"),null)}},{key:"store",value:function(e){null!=e&&e.isActive()?(f("storing active session"),s(this,d).setItem(a.ActiveSessionPath,e[n.default].serialize())):(f("removing inactive session"),s(this,d).removeItem(a.ActiveSessionPath))}},{key:"destroy",value:function(){var e,t;t=void 0,function(e,t,r){if(t.set)t.set.call(e,r);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=r}}(e=this,l(e,d,"set"),t)}}])&&c(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.LocalSessionStorage=p},95901:function(e,t,r){"use strict";r(69070),Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o.default}});var n,o=(n=r(20059))&&n.__esModule?n:{default:n}},20059:function(e,t,r){"use strict";r(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return{setItem:function(t,r){u();var n=JSON.stringify({value:r,group:e});a()?window.localStorage.setItem(t,n):o.default.set(t,n),i[t]=n},getItem:function(t){try{var r;(r=a()?window.localStorage&&window.localStorage.getItem(t):o.default.get(t))||(r=i[t]);var n=JSON.parse(r),u=n.value,c=n.group;return e&&e!==c?null:u}catch(e){return null}},removeItem:function(e){a()&&window.localStorage.removeItem(e),o.default.remove(e),i[e]=void 0}}};var n,o=(n=r(10646))&&n.__esModule?n:{default:n},i={};function a(){try{var e="_cobrowse_test_item";return localStorage.setItem(e,e),localStorage.removeItem(e),!0}catch(e){return!1}}function u(){a()||u.done||(u.done=!0,console.warn("Warning: localStorage is not supported. Cobrowse falling back to cookie or in-memory storage and may not function as expected."))}},48487:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(66992),r(41539),r(82472),r(92990),r(18927),r(33105),r(35035),r(74345),r(7174),r(32846),r(44731),r(77209),r(96319),r(58867),r(37789),r(33739),r(29368),r(14483),r(12056),r(3462),r(30678),r(27462),r(33824),r(55021),r(12974),r(15016),r(92222),r(69070);var n=r(55064);function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function i(e,t,r){return t&&o(e.prototype,t),r&&o(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var u=new(i((function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),a(this,"el",(function(){return t._el||(t._el=document.createElement("img"),t._el.className="cbio_session_overlay",t._el.style.pointerEvents="none",t._el.style.width="10vw",t._el.style.height="100vh",t._el.style.position="fixed",t._el.style.zIndex="2147483647",t._el.style.top="0",t._el.style.left="0"),t._el})),a(this,"_arrayBufferToBase64",(function(e){for(var t="",r=new Uint8Array(e),n=r.byteLength,o=0;o<n;o+=1)t+=String.fromCharCode(r[o]);return window.btoa(t)})),a(this,"update",(function(e){if(n.WindowTracking.isActive())if(e.image){t.el().style.left="".concat(100*e.x,"%"),t.el().style.top="".concat(100*e.y,"%"),t.el().style.height="".concat(100*e.height,"%"),t.el().style.width="".concat(100*e.width,"%");var r="data:".concat(e.mime_type,";base64,").concat(t._arrayBufferToBase64(e.image));t.el().src=r,document.body&&!t.el().parentNode&&document.body.appendChild(t.el())}else t.hide()})),a(this,"hide",(function(){t.el().parentNode&&t.el().parentNode.removeChild(t.el())}))})));t.default=u},80881:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}r(82526),r(41817),r(32165),r(66992),r(78783),r(33948),r(72443),r(39341),r(73706),r(10408),r(30489),r(54747),r(68309),r(68304),r(47042),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(92222),r(41539),r(69070);var o,i=(o=r(82175))&&o.__esModule?o:{default:o};function a(){a=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},u=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function f(e,t,r,n){var i=t&&t.prototype instanceof h?t:h,a=Object.create(i.prototype),u=new j(n||[]);return o(a,"_invoke",{value:O(e,r,u)}),a}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=f;var p={};function h(){}function v(){}function y(){}var m={};l(m,u,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(T([])));b&&b!==t&&r.call(b,u)&&(m=b);var w=y.prototype=h.prototype=Object.create(m);function E(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function i(o,a,u,c){var s=d(e[o],e,a);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==n(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){i("next",e,u,c)}),(function(e){i("throw",e,u,c)})):t.resolve(f).then((function(e){l.value=e,u(l)}),(function(e){return i("throw",e,u,c)}))}c(s.arg)}var a;o(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){i(e,r,t,n)}))}return a=a?a.then(n,n):n()}})}function O(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=S(a,r);if(u){if(u===p)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=d(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===p)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function S(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method))return p;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var n=d(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,p;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,p):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function T(e){if(e){var t=e[u];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:P}}function P(){return{value:void 0,done:!0}}return v.prototype=y,o(w,"constructor",{value:y,configurable:!0}),o(y,"constructor",{value:v,configurable:!0}),v.displayName=l(y,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,l(e,s,"GeneratorFunction")),e.prototype=Object.create(w),e},e.awrap=function(e){return{__await:e}},E(_.prototype),l(_.prototype,c,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new _(f(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(w),l(w,s,"Generator"),l(w,u,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=T,j.prototype={constructor:j,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),k(r),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:T(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},e}function u(e,t,r,n,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void r(e)}u.done?t(c):Promise.resolve(c).then(n,o)}function c(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function s(e,t,r){return t&&c(e.prototype,t),r&&c(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function l(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var f=s((function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),l(this,"content",(function(e,t){return'\n <div class="cobrowse-dialog" style="color: #333; font-family:sans-serif; line-height:140%; position:fixed; padding:25px; background:white; border-radius:15px; z-index:2147483647; top:50px; left:50%; width:75%; max-width:350px; transform:translateX(-50%); box-shadow:0px 0px 15px #33333322; user-select: none;">\n <div style="text-align:center; margin-top:10px; margin-bottom:20px"><b>'.concat(e,"</b></div>\n <div>").concat(t,'</div>\n <div style=\'float:right; margin-top:40px; color:rgb(0, 122, 255);\'>\n <a class="cobrowse-button cobrowse-deny" style="cursor:pointer; padding:10px;">').concat(i.default.tr("DENY"),'</a>\n <a class="cobrowse-button cobrowse-allow" style="cursor:pointer; padding:10px; font-weight: bold;">').concat(i.default.tr("ALLOW"),"</a>\n </div>\n </div>\n ")})),l(this,"container",(function(){return t._container||(t._container=document.createElement("div"),t._container.style.background="rgba(50, 50, 50, 0.4)",t._container.style.position="fixed",t._container.style.zIndex="2147483647",t._container.style.bottom="0",t._container.style.top="0",t._container.style.left="0",t._container.style.right="0"),t._container})),l(this,"show",function(){var e,r=(e=a().mark((function e(r,n){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e){var o=t.container();t._container.innerHTML=t.content(r,n),o.querySelector(".cobrowse-allow").addEventListener("click",(function(){e(!0),t.hide()})),o.querySelector(".cobrowse-deny").addEventListener("click",(function(){e(!1),t.hide()})),document.body&&document.body.appendChild(o)})));case 1:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){u(i,n,o,a,c,"next",e)}function c(e){u(i,n,o,a,c,"throw",e)}a(void 0)}))});return function(e,t){return r.apply(this,arguments)}}()),l(this,"hide",(function(){t.container().parentNode&&t.container().parentNode.removeChild(t.container())}))}));t.default=f},29486:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(69070);var n=r(55064);function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function i(e,t,r){return t&&o(e.prototype,t),r&&o(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var u=new(i((function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),a(this,"el",(function(){return t._el||(t._el=document.createElement("div"),t._el.className="cbio_session_overlay",t._el.style.border="border: 1px solid white",t._el.style.borderRadius="15px",t._el.style.background="red",t._el.style.position="fixed",t._el.style.zIndex="2147483647",t._el.style.height="15px",t._el.style.width="15px",t._el.style.marginLeft="-7.5px",t._el.style.marginTop="-7.5px"),t._el})),a(this,"update",(function(e){n.WindowTracking.isActive()&&(document.body&&!t.el().parentNode&&document.body.appendChild(t.el()),"touchend"===e.state?t.hide():(t.el().style.left="".concat(100*e.x,"%"),t.el().style.top="".concat(100*e.y,"%")))})),a(this,"hide",(function(){t.el().parentNode&&t.el().parentNode.removeChild(t.el())}))})));t.default=u},9444:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(69070);var n=r(55064),o=r(67743);function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function a(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function u(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var c=new(a((function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),u(this,"el",(function(){return t._el||(t._el=document.createElementNS("http://www.w3.org/2000/svg","svg"),t._el.setAttribute("class","__cbio_ignored"),t._el.setAttribute("viewBox","0 0 320 512"),t._el.style.position="fixed",t._el.style.zIndex="2147483647",t._el.style.height="25px",t._el.style.width="25px",t._el.style.marginLeft="-7px",t._el.style.marginTop="-1px",t._el.style.opacity=.7,t._path=document.createElementNS("http://www.w3.org/2000/svg","path"),t._path.setAttribute("d","M302.189 329.126H196.105l55.831 135.993c3.889 9.428-.555 19.999-9.444 23.999l-49.165 21.427c-9.165 4-19.443-.571-23.332-9.714l-53.053-129.136-86.664 89.138C18.729 472.71 0 463.554 0 447.977V18.299C0 1.899 19.921-6.096 30.277 5.443l284.412 292.542c11.472 11.179 3.007 31.141-12.5 31.141z"),t._path.setAttribute("stroke","white"),t._path.setAttribute("stroke-width","40"),t._path.setAttribute("opacity",1),t._path.setAttribute("fill","blue"),t._el.appendChild(t._path)),t._el})),u(this,"_updatePosition",(function(e){var r,n,i,a,u=e.x,c=e.y;u*=null===(r=window.document)||void 0===r||null===(n=r.documentElement)||void 0===n?void 0:n.clientWidth,c*=null===(i=window.document)||void 0===i||null===(a=i.documentElement)||void 0===a?void 0:a.clientHeight;var s=o.NodeTracker.getById(e.target.id);if(s){var l=s.ownerDocument,f=l&&l.defaultView&&l.defaultView.frameElement;if(f){var d=f.getBoundingClientRect();u+=Math.round(d.left),c+=Math.round(d.top)}t.el().style.top="".concat(c,"px"),t.el().style.left="".concat(u,"px")}})),u(this,"update",(function(e,r){if("mouse"===e&&n.WindowTracking.isActive())switch(document.body&&!t.el().parentNode&&document.body.appendChild(t.el()),r.state){case"mousedown":t.el().style.opacity=1;break;case"mouseup":t.el().style.opacity=.7;break;case"mousemove":t._updatePosition(r)}})),u(this,"hide",(function(){t.el().parentNode&&t.el().parentNode.removeChild(t.el())}))})));t.default=c},71457:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(69070);var n=i(r(51178)),o=i(r(82175));function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function c(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var s=new(u((function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),c(this,"el",(function(){return t._el||(t._el=document.createElement("div"),t._el.className="__cbio_ignored cbio_session_controls",t._el.textContent=o.default.tr("END_SESSION"),t._el.style.fontFamily="sans-serif",t._el.style.padding="10px 13px",t._el.style.fontSize="13px",t._el.style.whiteSpace="nowrap",t._el.style.color="white",t._el.style.boxShadow="0px 2px 5px #33333344",t._el.style.cursor="pointer",t._el.style.borderRadius="30px",t._el.style.background="rgb(234, 91, 80)",t._el.style.position="fixed",t._el.style.zIndex="2147483647",t._el.style.bottom="20px",t._el.style.left="50%",t._el.style.transform="translateX(-50%)",t._el.style.userSelect="none",t._el.addEventListener("click",t._onEnd)),t._el})),c(this,"_onEnd",(function(){var e=n.default.currentSession;e&&e.isActive()&&e.end()})),c(this,"show",(function(){document.body&&!t.el().parentNode&&document.body.appendChild(t.el())})),c(this,"hide",(function(){t.el().parentNode&&t.el().parentNode.removeChild(t.el())}))})));t.default=s},73172:function(e,t,r){"use strict";function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function o(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(69070);var a=new(o((function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),i(this,"content",(function(e){return'\n <div style="color: white; font-family:sans-serif; margin-bottom: 10px; line-height:140%; padding:10px; font-size: 12px; font-weight: bold; background:#292d33; border-radius:5px; width:250px; box-shadow:0px 0px 15px #33333322;">\n '.concat(e,"\n </div>\n ")})),i(this,"container",(function(){var e=document.createElement("div");return e.style.position="fixed",e.style.zIndex="2147483647",e.style.color="#fff",e.style.top="20px",e.style.right="20px",e.style.transition="all 0.3s linear",e.style.opacity=0,e.style.pointerEvents="none",e})),i(this,"show",(function(e){var r=t.container();r.innerHTML=t.content(e),document.body&&document.body.appendChild(r),setTimeout((function(){r.style.opacity=1}),0),setTimeout((function(){r.style.opacity=0,setTimeout((function(){r.parentNode&&r.parentNode.removeChild(r)}),500)}),8e3)})),i(this,"hide",(function(){t.container().parentNode&&t.container().parentNode.removeChild(t.container())}))})));t.default=a},83042:function(e,t,r){"use strict";r(69070),Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"AnnotationOverlay",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(t,"ConsentDialog",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"LaserOverlay",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"RemoteCursor",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"SessionStateOverlay",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"Toast",{enumerable:!0,get:function(){return c.default}});var n=s(r(48487)),o=s(r(29486)),i=s(r(9444)),a=s(r(71457)),u=s(r(80881)),c=s(r(73172));function s(e){return e&&e.__esModule?e:{default:e}}},2260:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}r(69070),r(68304),r(30489),r(12419),r(82526),r(41817),r(32165),r(72443),r(39341),r(73706),r(10408),r(54747),r(68309),r(47042),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(66992),r(41539),r(82472),r(92990),r(18927),r(33105),r(35035),r(74345),r(7174),r(32846),r(44731),r(77209),r(96319),r(58867),r(37789),r(33739),r(29368),r(14483),r(12056),r(3462),r(30678),r(27462),r(33824),r(55021),r(12974),r(15016),r(78783),r(4129),r(33948);var o,i=r(5715),a=(o=r(99796))&&o.__esModule?o:{default:o},u=r(17187);function c(){c=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function f(e,t,r,n){var i=t&&t.prototype instanceof h?t:h,a=Object.create(i.prototype),u=new j(n||[]);return o(a,"_invoke",{value:O(e,r,u)}),a}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=f;var p={};function h(){}function v(){}function y(){}var m={};l(m,a,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(T([])));b&&b!==t&&r.call(b,a)&&(m=b);var w=y.prototype=h.prototype=Object.create(m);function E(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function i(o,a,u,c){var s=d(e[o],e,a);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==n(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){i("next",e,u,c)}),(function(e){i("throw",e,u,c)})):t.resolve(f).then((function(e){l.value=e,u(l)}),(function(e){return i("throw",e,u,c)}))}c(s.arg)}var a;o(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){i(e,r,t,n)}))}return a=a?a.then(n,n):n()}})}function O(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=S(a,r);if(u){if(u===p)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=d(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===p)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function S(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method))return p;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var n=d(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,p;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,p):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function T(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:P}}function P(){return{value:void 0,done:!0}}return v.prototype=y,o(w,"constructor",{value:y,configurable:!0}),o(y,"constructor",{value:v,configurable:!0}),v.displayName=l(y,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,l(e,s,"GeneratorFunction")),e.prototype=Object.create(w),e},e.awrap=function(e){return{__await:e}},E(_.prototype),l(_.prototype,u,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new _(f(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(w),l(w,s,"Generator"),l(w,a,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=T,j.prototype={constructor:j,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),k(r),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:T(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},e}function s(e,t,r,n,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void r(e)}u.done?t(c):Promise.resolve(c).then(n,o)}function l(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){s(i,n,o,a,u,"next",e)}function u(e){s(i,n,o,a,u,"throw",e)}a(void 0)}))}}function f(e,t,r){return f=m()?Reflect.construct.bind():function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&h(o,r.prototype),o},f.apply(null,arguments)}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function h(e,t){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},h(e,t)}function v(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return y(e)}function y(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}function b(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function w(e,t,r){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,r)}function E(e,t){return function(e,t){return t.get?t.get.call(e):t.value}(e,O(e,t,"get"))}function _(e,t,r){return function(e,t,r){if(t.set)t.set.call(e,r);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=r}}(e,O(e,t,"set"),r),r}function O(e,t,r){if(!t.has(e))throw new TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}var S=(0,a.default)("cbio.CBORSocket"),x=new WeakMap,k=new WeakMap,j=new WeakMap,T=new WeakMap,P=new WeakMap,L=new WeakMap,I=new WeakMap,A=new WeakMap,C=new WeakMap,M=new WeakMap,N=new WeakMap,R=new WeakMap,D=new WeakMap,F=new WeakMap,U=new WeakMap,W=new WeakMap,z=new WeakMap,B=new WeakMap,G=new WeakMap,V=new WeakMap,Y=new WeakMap,H=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h(e,t)}(u,e);var t,r,n,o,a=(t=u,r=m(),function(){var e,n=g(t);if(r){var o=g(this).constructor;e=Reflect.construct(n,arguments,o)}else e=n.apply(this,arguments);return v(this,e)});function u(e){var t,r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=n.socketFactory,s=void 0===o?function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return f(WebSocket,t)}:o;return d(this,u),w(y(t=a.call(this)),x,{writable:!0,value:void 0}),w(y(t),k,{writable:!0,value:!1}),w(y(t),j,{writable:!0,value:void 0}),w(y(t),T,{writable:!0,value:void 0}),w(y(t),P,{writable:!0,value:0}),w(y(t),L,{writable:!0,value:6e4}),w(y(t),I,{writable:!0,value:1e3+Math.floor(1e3*Math.random())}),w(y(t),A,{writable:!0,value:void 0}),w(y(t),C,{writable:!0,value:void 0}),w(y(t),M,{writable:!0,value:void 0}),w(y(t),N,{writable:!0,value:0}),w(y(t),R,{writable:!0,value:0}),w(y(t),D,{writable:!0,value:(r=l(c().mark((function e(){var r,n;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!E(y(t),T)){e.next=3;break}return console.error("Socket already exists"),e.abrupt("return");case 3:return S("creating ws"),e.next=6,E(y(t),x).getUrl();case 6:if(r=e.sent,!E(y(t),k)){e.next=9;break}return e.abrupt("return");case 9:if(!E(y(t),T)){e.next=11;break}return e.abrupt("return");case 11:(n=E(y(t),j).call(y(t),r)).binaryType="arraybuffer",n.addEventListener("open",E(y(t),F)),n.addEventListener("message",E(y(t),W)),n.addEventListener("close",E(y(t),G)),n.addEventListener("error",E(y(t),V)),_(y(t),T,n);case 18:case"end":return e.stop()}}),e)}))),function(){return r.apply(this,arguments)})}),w(y(t),F,{writable:!0,value:function(){S("ws opened"),t.emit("open"),clearTimeout(E(y(t),C)),_(y(t),C,setTimeout((function(){S("counting open as success"),_(y(t),P,0)}),5e3))}}),w(y(t),U,{writable:!0,value:function(e){_(y(t),R,e)}}),w(y(t),W,{writable:!0,value:function(e){try{var r=(0,i.decode)(new Uint8Array(e.data)),n=r.event,o=r.data,a=r.ack;return a?E(y(t),U).call(y(t),a):n?t.emit("event",n,o):console.error("Socket received message without event",e)}catch(t){return console.error("Error processing message",e.data,t.stack)}}}),w(y(t),z,{writable:!0,value:function(e){var r=1+.5*Math.random(),n=Math.floor(Math.pow(300*e,1.2)*r);return Math.min(Math.max(E(y(t),I),n),E(y(t),L))}}),w(y(t),B,{writable:!0,value:function(){if(E(y(t),k))S("reconnect skipped as socket was closed");else if(E(y(t),M))S("reconnect skipped as reconnect already scheduled");else{if(!1===navigator.onLine)return S("navigator offline"),void _(y(t),M,setTimeout((function(){_(y(t),M,null),E(y(t),B).call(y(t))}),1e3));var e=E(y(t),z).call(y(t),E(y(t),P));S("reconnecting in",e,"attempts",E(y(t),P)),_(y(t),M,setTimeout(l(c().mark((function e(){return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(_(y(t),M,null),!E(y(t),k)){e.next=5;break}console.warn("tried to reconnect after close"),e.next=8;break;case 5:return _(y(t),T,null),e.next=8,E(y(t),D).call(y(t)).catch(E(y(t),V));case 8:case"end":return e.stop()}}),e)}))),e)),_(y(t),P,E(y(t),P)+1)}}}),w(y(t),G,{writable:!0,value:function(){S("ws closed"),t.emit("close"),S("resetting message acks"),_(y(t),N,0),_(y(t),R,0),E(y(t),k)||E(y(t),B).call(y(t)),clearTimeout(E(y(t),C))}}),w(y(t),V,{writable:!0,value:function(e){t.emit("error",e)}}),w(y(t),Y,{writable:!0,value:function(){t.send("ping")}}),b(y(t),"messageLag",(function(){return E(y(t),R)?E(y(t),N)-E(y(t),R):0})),b(y(t),"setMaxReconnectDelay",(function(e){S("set max delay",e),_(y(t),L,e)})),b(y(t),"setMinReconnectDelay",(function(e){S("set min delay",e),_(y(t),I,e)})),b(y(t),"send",(function(e,r){if(!t.connected)return!1;_(y(t),N,E(y(t),N)+1);var n=Date.now(),o=(0,i.encode)(r?{event:e,id:E(y(t),N),data:r}:{event:e});return S("encoded","".concat(o.byteLength," bytes"),"in","".concat(Date.now()-n,"ms")),E(y(t),T).send(o),!0})),b(y(t),"close",(function(){if(S("close"),_(y(t),k,!0),E(y(t),T))try{var e;(e=E(y(t),T)).close.apply(e,arguments)}catch(e){S("error closing socket",e)}_(y(t),T,null),t.removeAllListeners(),clearTimeout(E(y(t),M)),clearInterval(E(y(t),A)),window.removeEventListener("unload",t.close)})),S("created cbor socket"),_(y(t),x,e),_(y(t),j,s),_(y(t),A,setInterval(E(y(t),Y),6e4)),window.addEventListener("unload",t.close),t.on("error",(function(e){return S("ws errored",e)})),E(y(t),D).call(y(t)).catch(E(y(t),V)),t}return n=u,(o=[{key:"bufferedAmount",get:function(){return E(this,T)?E(this,T).bufferedAmount:1/0}},{key:"connected",get:function(){return!!E(this,T)&&E(this,T).readyState===E(this,T).OPEN}}])&&p(n.prototype,o),Object.defineProperty(n,"prototype",{writable:!1}),u}(u.EventEmitter);t.default=H},76683:function(e,t,r){"use strict";function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(69070);var o=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r;return t=e,r=[{key:"fromImage",value:function(e){var t=document.createElement("canvas");return t.width=e.width,t.height=e.height,t.getContext("2d").drawImage(e,0,0,t.width,t.height),this.fromCanvas(t)}},{key:"fromCanvas",value:function(e){return e.toDataURL?e.toDataURL("image/webp",.3):null}}],null&&n(t.prototype,null),r&&n(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=o},99421:function(e,t,r){"use strict";function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(57327),r(41539),r(69070);var o=function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.rate=t,this.period=r,this._tracked=[]}var t,r;return t=e,(r=[{key:"limit",value:function(){var e=Date.now()-this.period;return this._tracked=this._tracked.filter((function(t){return t>e})),!(this._tracked.length<this.rate&&(this._tracked.push(Date.now()),1))}}])&&n(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=o},18755:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},o(e,t)}function i(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return a(e)}function a(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}function c(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r(68304),r(30489),r(12419),r(82526),r(41817),r(32165),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(66992),r(41539),r(70189),r(78783),r(33948),r(74916),r(15306),r(69070);var s=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&o(e,t)}(l,e);var t,r,n,s=(r=l,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=u(r);if(n){var o=u(this).constructor;e=Reflect.construct(t,arguments,o)}else e=t.apply(this,arguments);return i(this,e)});function l(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),c(a(e=s.call(this)),"windows",new Set),c(a(e),"tap",(function(t){if(!e.windows.has(t)){e.windows.add(t);var r=a(e),n=t.history.pushState.bind(t.history);t.history.pushState=function(){n.apply(void 0,arguments),r.emit("navigate",t)};var o=t.history.replaceState.bind(t.history);t.history.replaceState=function(){o.apply(void 0,arguments),r.emit("navigate",t)};var i=t.CSSStyleSheet.prototype.insertRule;t.CSSStyleSheet.prototype.insertRule=function(){var e=i.bind(this).apply(void 0,arguments);return r.emit("stylechange",this),e};var u=t.CSSStyleSheet.prototype.deleteRule;t.CSSStyleSheet.prototype.deleteRule=function(){var e=u.bind(this).apply(void 0,arguments);return r.emit("stylechange",this),e};var c=t.CSSStyleSheet.prototype.replace;t.CSSStyleSheet.prototype.replace=function(){var e=c.bind(this).apply(void 0,arguments);return r.emit("stylechange",this),e};var s=t.CSSStyleSheet.prototype.replaceSync;t.CSSStyleSheet.prototype.replaceSync=function(){var e=s.bind(this).apply(void 0,arguments);return r.emit("stylechange",this),e}}})),c(a(e),"untap",(function(){})),e.setMaxListeners(200),e}return t=l,Object.defineProperty(t,"prototype",{writable:!1}),t}(r(17187).EventEmitter),l=new s;t.default=l},74011:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}r(69070),r(82526),r(41817),r(32165),r(66992),r(78783),r(33948),r(72443),r(39341),r(73706),r(10408),r(30489),r(54747),r(68309),r(68304),r(47042),Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return c.apply(this,arguments)},r(41539);var o=r(67743);function i(){i=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},a="function"==typeof Symbol?Symbol:{},u=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function f(e,t,r,n){var i=t&&t.prototype instanceof h?t:h,a=Object.create(i.prototype),u=new j(n||[]);return o(a,"_invoke",{value:O(e,r,u)}),a}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=f;var p={};function h(){}function v(){}function y(){}var m={};l(m,u,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(T([])));b&&b!==t&&r.call(b,u)&&(m=b);var w=y.prototype=h.prototype=Object.create(m);function E(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function i(o,a,u,c){var s=d(e[o],e,a);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==n(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){i("next",e,u,c)}),(function(e){i("throw",e,u,c)})):t.resolve(f).then((function(e){l.value=e,u(l)}),(function(e){return i("throw",e,u,c)}))}c(s.arg)}var a;o(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){i(e,r,t,n)}))}return a=a?a.then(n,n):n()}})}function O(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=S(a,r);if(u){if(u===p)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=d(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===p)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function S(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method))return p;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var n=d(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,p;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,p):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function T(e){if(e){var t=e[u];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:P}}function P(){return{value:void 0,done:!0}}return v.prototype=y,o(w,"constructor",{value:y,configurable:!0}),o(y,"constructor",{value:v,configurable:!0}),v.displayName=l(y,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,l(e,s,"GeneratorFunction")),e.prototype=Object.create(w),e},e.awrap=function(e){return{__await:e}},E(_.prototype),l(_.prototype,c,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new _(f(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(w),l(w,s,"Generator"),l(w,u,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=T,j.prototype={constructor:j,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),k(r),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:T(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},e}function a(e,t,r,n,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void r(e)}u.done?t(c):Promise.resolve(c).then(n,o)}function u(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function u(e){a(i,n,o,u,c,"next",e)}function c(e){a(i,n,o,u,c,"throw",e)}u(void 0)}))}}function c(){return(c=u(i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:o.NodeSerializer.isLocalResource(window.location.href)&&console.warn("CobrowseIO: This page was loaded from a local address, Cobrowse may not work as expected due to inaccessible resources. We recommend using ngrok for testing development versions.");case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},53440:function(e,t,r){"use strict";r(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o.default,n=["X-CobrowseSDKVersion=".concat(r.version),"X-CobrowsePlatform=web","X-CobrowseDevice=".concat(r.deviceId()),"X-CobrowseLicense=".concat(r.license)].join("&"),i=new URL(e,r.api).toString(),a=i.replace("https://","wss://").replace("http://","ws://");return new URL("sockets/1/ws?access_token=".concat(t,"&").concat(n),a).toString()},r(69600),r(41539),r(39714),r(66992),r(78783),r(33948),r(60285),r(41637),r(74916),r(15306),r(92222);var n,o=(n=r(51178))&&n.__esModule?n:{default:n}},77368:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.protect=function(e,t,r){e[n]||Object.defineProperty(e,n,{enumerable:!1,value:{}});var o=e[n][t];return Object.getPrototypeOf(Object.getPrototypeOf(e))[t]=o,Object.defineProperty(e[n],t,{enumerable:!1,value:r,configurable:!0}),r},r(82526),r(41817),r(41539),r(69070),r(30489);var n=Symbol("protected"),o=n;t.default=o},60453:function(e,t,r){"use strict";r(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o,r="",n=e;n>0;n-=1)r+=t[Math.floor(Math.random()*t.length)];return r},r(92222);var n="abcdefghijklmnopqrstuvwxyz",o="".concat("0123456789").concat(n.toLowerCase()).concat(n.toUpperCase())},33191:function(e,t,r){"use strict";function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(26699),r(32023),r(69070);var o=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r;return t=e,r=[{key:"isHeadless",value:function(){return navigator.userAgent.toLowerCase().includes("headless")}}],null&&n(t.prototype,null),r&&n(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=o},19662:function(e,t,r){var n=r(60614),o=r(66330),i=TypeError;e.exports=function(e){if(n(e))return e;throw i(o(e)+" is not a function")}},39483:function(e,t,r){var n=r(4411),o=r(66330),i=TypeError;e.exports=function(e){if(n(e))return e;throw i(o(e)+" is not a constructor")}},96077:function(e,t,r){var n=r(60614),o=String,i=TypeError;e.exports=function(e){if("object"==typeof e||n(e))return e;throw i("Can't set "+o(e)+" as a prototype")}},51223:function(e,t,r){var n=r(5112),o=r(70030),i=r(3070).f,a=n("unscopables"),u=Array.prototype;null==u[a]&&i(u,a,{configurable:!0,value:o(null)}),e.exports=function(e){u[a][e]=!0}},31530:function(e,t,r){"use strict";var n=r(28710).charAt;e.exports=function(e,t,r){return t+(r?n(e,t).length:1)}},25787:function(e,t,r){var n=r(47976),o=TypeError;e.exports=function(e,t){if(n(t,e))return e;throw o("Incorrect invocation")}},19670:function(e,t,r){var n=r(70111),o=String,i=TypeError;e.exports=function(e){if(n(e))return e;throw i(o(e)+" is not an object")}},23013:function(e){e.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},7556:function(e,t,r){var n=r(47293);e.exports=n((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}))},90260:function(e,t,r){"use strict";var n,o,i,a=r(23013),u=r(19781),c=r(17854),s=r(60614),l=r(70111),f=r(92597),d=r(70648),p=r(66330),h=r(68880),v=r(98052),y=r(3070).f,m=r(47976),g=r(79518),b=r(27674),w=r(5112),E=r(69711),_=r(29909),O=_.enforce,S=_.get,x=c.Int8Array,k=x&&x.prototype,j=c.Uint8ClampedArray,T=j&&j.prototype,P=x&&g(x),L=k&&g(k),I=Object.prototype,A=c.TypeError,C=w("toStringTag"),M=E("TYPED_ARRAY_TAG"),N=a&&!!b&&"Opera"!==d(c.opera),R=!1,D={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},F={BigInt64Array:8,BigUint64Array:8},U=function(e){var t=g(e);if(l(t)){var r=S(t);return r&&f(r,"TypedArrayConstructor")?r.TypedArrayConstructor:U(t)}},W=function(e){if(!l(e))return!1;var t=d(e);return f(D,t)||f(F,t)};for(n in D)(i=(o=c[n])&&o.prototype)?O(i).TypedArrayConstructor=o:N=!1;for(n in F)(i=(o=c[n])&&o.prototype)&&(O(i).TypedArrayConstructor=o);if((!N||!s(P)||P===Function.prototype)&&(P=function(){throw A("Incorrect invocation")},N))for(n in D)c[n]&&b(c[n],P);if((!N||!L||L===I)&&(L=P.prototype,N))for(n in D)c[n]&&b(c[n].prototype,L);if(N&&g(T)!==L&&b(T,L),u&&!f(L,C))for(n in R=!0,y(L,C,{get:function(){return l(this)?this[M]:void 0}}),D)c[n]&&h(c[n],M,n);e.exports={NATIVE_ARRAY_BUFFER_VIEWS:N,TYPED_ARRAY_TAG:R&&M,aTypedArray:function(e){if(W(e))return e;throw A("Target is not a typed array")},aTypedArrayConstructor:function(e){if(s(e)&&(!b||m(P,e)))return e;throw A(p(e)+" is not a typed array constructor")},exportTypedArrayMethod:function(e,t,r,n){if(u){if(r)for(var o in D){var i=c[o];if(i&&f(i.prototype,e))try{delete i.prototype[e]}catch(r){try{i.prototype[e]=t}catch(e){}}}L[e]&&!r||v(L,e,r?t:N&&k[e]||t,n)}},exportTypedArrayStaticMethod:function(e,t,r){var n,o;if(u){if(b){if(r)for(n in D)if((o=c[n])&&f(o,e))try{delete o[e]}catch(e){}if(P[e]&&!r)return;try{return v(P,e,r?t:N&&P[e]||t)}catch(e){}}for(n in D)!(o=c[n])||o[e]&&!r||v(o,e,t)}},getTypedArrayConstructor:U,isView:function(e){if(!l(e))return!1;var t=d(e);return"DataView"===t||f(D,t)||f(F,t)},isTypedArray:W,TypedArray:P,TypedArrayPrototype:L}},13331:function(e,t,r){"use strict";var n=r(17854),o=r(1702),i=r(19781),a=r(23013),u=r(76530),c=r(68880),s=r(89190),l=r(47293),f=r(25787),d=r(19303),p=r(17466),h=r(57067),v=r(11179),y=r(79518),m=r(27674),g=r(8006).f,b=r(3070).f,w=r(21285),E=r(41589),_=r(58003),O=r(29909),S=u.PROPER,x=u.CONFIGURABLE,k=O.get,j=O.set,T="ArrayBuffer",P="Wrong index",L=n.ArrayBuffer,I=L,A=I&&I.prototype,C=n.DataView,M=C&&C.prototype,N=Object.prototype,R=n.Array,D=n.RangeError,F=o(w),U=o([].reverse),W=v.pack,z=v.unpack,B=function(e){return[255&e]},G=function(e){return[255&e,e>>8&255]},V=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},Y=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},H=function(e){return W(e,23,4)},K=function(e){return W(e,52,8)},q=function(e,t){b(e.prototype,t,{get:function(){return k(this)[t]}})},$=function(e,t,r,n){var o=h(r),i=k(e);if(o+t>i.byteLength)throw D(P);var a=k(i.buffer).bytes,u=o+i.byteOffset,c=E(a,u,u+t);return n?c:U(c)},X=function(e,t,r,n,o,i){var a=h(r),u=k(e);if(a+t>u.byteLength)throw D(P);for(var c=k(u.buffer).bytes,s=a+u.byteOffset,l=n(+o),f=0;f<t;f++)c[s+f]=l[i?f:t-f-1]};if(a){var Q=S&&L.name!==T;if(l((function(){L(1)}))&&l((function(){new L(-1)}))&&!l((function(){return new L,new L(1.5),new L(NaN),1!=L.length||Q&&!x})))Q&&x&&c(L,"name",T);else{(I=function(e){return f(this,A),new L(h(e))}).prototype=A;for(var J,Z=g(L),ee=0;Z.length>ee;)(J=Z[ee++])in I||c(I,J,L[J]);A.constructor=I}m&&y(M)!==N&&m(M,N);var te=new C(new I(2)),re=o(M.setInt8);te.setInt8(0,2147483648),te.setInt8(1,2147483649),!te.getInt8(0)&&te.getInt8(1)||s(M,{setInt8:function(e,t){re(this,e,t<<24>>24)},setUint8:function(e,t){re(this,e,t<<24>>24)}},{unsafe:!0})}else A=(I=function(e){f(this,A);var t=h(e);j(this,{bytes:F(R(t),0),byteLength:t}),i||(this.byteLength=t)}).prototype,M=(C=function(e,t,r){f(this,M),f(e,A);var n=k(e).byteLength,o=d(t);if(o<0||o>n)throw D("Wrong offset");if(o+(r=void 0===r?n-o:p(r))>n)throw D("Wrong length");j(this,{buffer:e,byteLength:r,byteOffset:o}),i||(this.buffer=e,this.byteLength=r,this.byteOffset=o)}).prototype,i&&(q(I,"byteLength"),q(C,"buffer"),q(C,"byteLength"),q(C,"byteOffset")),s(M,{getInt8:function(e){return $(this,1,e)[0]<<24>>24},getUint8:function(e){return $(this,1,e)[0]},getInt16:function(e){var t=$(this,2,e,arguments.length>1?arguments[1]:void 0);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=$(this,2,e,arguments.length>1?arguments[1]:void 0);return t[1]<<8|t[0]},getInt32:function(e){return Y($(this,4,e,arguments.length>1?arguments[1]:void 0))},getUint32:function(e){return Y($(this,4,e,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(e){return z($(this,4,e,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(e){return z($(this,8,e,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(e,t){X(this,1,e,B,t)},setUint8:function(e,t){X(this,1,e,B,t)},setInt16:function(e,t){X(this,2,e,G,t,arguments.length>2?arguments[2]:void 0)},setUint16:function(e,t){X(this,2,e,G,t,arguments.length>2?arguments[2]:void 0)},setInt32:function(e,t){X(this,4,e,V,t,arguments.length>2?arguments[2]:void 0)},setUint32:function(e,t){X(this,4,e,V,t,arguments.length>2?arguments[2]:void 0)},setFloat32:function(e,t){X(this,4,e,H,t,arguments.length>2?arguments[2]:void 0)},setFloat64:function(e,t){X(this,8,e,K,t,arguments.length>2?arguments[2]:void 0)}});_(I,T),_(C,"DataView"),e.exports={ArrayBuffer:I,DataView:C}},1048:function(e,t,r){"use strict";var n=r(47908),o=r(51400),i=r(26244),a=r(85117),u=Math.min;e.exports=[].copyWithin||function(e,t){var r=n(this),c=i(r),s=o(e,c),l=o(t,c),f=arguments.length>2?arguments[2]:void 0,d=u((void 0===f?c:o(f,c))-l,c-s),p=1;for(l<s&&s<l+d&&(p=-1,l+=d-1,s+=d-1);d-- >0;)l in r?r[s]=r[l]:a(r,s),s+=p,l+=p;return r}},21285:function(e,t,r){"use strict";var n=r(47908),o=r(51400),i=r(26244);e.exports=function(e){for(var t=n(this),r=i(t),a=arguments.length,u=o(a>1?arguments[1]:void 0,r),c=a>2?arguments[2]:void 0,s=void 0===c?r:o(c,r);s>u;)t[u++]=e;return t}},18533:function(e,t,r){"use strict";var n=r(42092).forEach,o=r(9341)("forEach");e.exports=o?[].forEach:function(e){return n(this,e,arguments.length>1?arguments[1]:void 0)}},97745:function(e,t,r){var n=r(26244);e.exports=function(e,t){for(var r=0,o=n(t),i=new e(o);o>r;)i[r]=t[r++];return i}},48457:function(e,t,r){"use strict";var n=r(49974),o=r(46916),i=r(47908),a=r(53411),u=r(97659),c=r(4411),s=r(26244),l=r(86135),f=r(18554),d=r(71246),p=Array;e.exports=function(e){var t=i(e),r=c(this),h=arguments.length,v=h>1?arguments[1]:void 0,y=void 0!==v;y&&(v=n(v,h>2?arguments[2]:void 0));var m,g,b,w,E,_,O=d(t),S=0;if(!O||this===p&&u(O))for(m=s(t),g=r?new this(m):p(m);m>S;S++)_=y?v(t[S],S):t[S],l(g,S,_);else for(E=(w=f(t,O)).next,g=r?new this:[];!(b=o(E,w)).done;S++)_=y?a(w,v,[b.value,S],!0):b.value,l(g,S,_);return g.length=S,g}},41318:function(e,t,r){var n=r(45656),o=r(51400),i=r(26244),a=function(e){return function(t,r,a){var u,c=n(t),s=i(c),l=o(a,s);if(e&&r!=r){for(;s>l;)if((u=c[l++])!=u)return!0}else for(;s>l;l++)if((e||l in c)&&c[l]===r)return e||l||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},42092:function(e,t,r){var n=r(49974),o=r(1702),i=r(68361),a=r(47908),u=r(26244),c=r(65417),s=o([].push),l=function(e){var t=1==e,r=2==e,o=3==e,l=4==e,f=6==e,d=7==e,p=5==e||f;return function(h,v,y,m){for(var g,b,w=a(h),E=i(w),_=n(v,y),O=u(E),S=0,x=m||c,k=t?x(h,O):r||d?x(h,0):void 0;O>S;S++)if((p||S in E)&&(b=_(g=E[S],S,w),e))if(t)k[S]=b;else if(b)switch(e){case 3:return!0;case 5:return g;case 6:return S;case 2:s(k,g)}else switch(e){case 4:return!1;case 7:s(k,g)}return f?-1:o||l?l:k}};e.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6),filterReject:l(7)}},86583:function(e,t,r){"use strict";var n=r(22104),o=r(45656),i=r(19303),a=r(26244),u=r(9341),c=Math.min,s=[].lastIndexOf,l=!!s&&1/[1].lastIndexOf(1,-0)<0,f=u("lastIndexOf"),d=l||!f;e.exports=d?function(e){if(l)return n(s,this,arguments)||0;var t=o(this),r=a(t),u=r-1;for(arguments.length>1&&(u=c(u,i(arguments[1]))),u<0&&(u=r+u);u>=0;u--)if(u in t&&t[u]===e)return u||0;return-1}:s},81194:function(e,t,r){var n=r(47293),o=r(5112),i=r(7392),a=o("species");e.exports=function(e){return i>=51||!n((function(){var t=[];return(t.constructor={})[a]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},9341:function(e,t,r){"use strict";var n=r(47293);e.exports=function(e,t){var r=[][e];return!!r&&n((function(){r.call(null,t||function(){return 1},1)}))}},53671:function(e,t,r){var n=r(19662),o=r(47908),i=r(68361),a=r(26244),u=TypeError,c=function(e){return function(t,r,c,s){n(r);var l=o(t),f=i(l),d=a(l),p=e?d-1:0,h=e?-1:1;if(c<2)for(;;){if(p in f){s=f[p],p+=h;break}if(p+=h,e?p<0:d<=p)throw u("Reduce of empty array with no initial value")}for(;e?p>=0:d>p;p+=h)p in f&&(s=r(s,f[p],p,l));return s}};e.exports={left:c(!1),right:c(!0)}},83658:function(e,t,r){"use strict";var n=r(19781),o=r(43157),i=TypeError,a=Object.getOwnPropertyDescriptor,u=n&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=u?function(e,t){if(o(e)&&!a(e,"length").writable)throw i("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},41589:function(e,t,r){var n=r(51400),o=r(26244),i=r(86135),a=Array,u=Math.max;e.exports=function(e,t,r){for(var c=o(e),s=n(t,c),l=n(void 0===r?c:r,c),f=a(u(l-s,0)),d=0;s<l;s++,d++)i(f,d,e[s]);return f.length=d,f}},50206:function(e,t,r){var n=r(1702);e.exports=n([].slice)},94362:function(e,t,r){var n=r(41589),o=Math.floor,i=function(e,t){var r=e.length,c=o(r/2);return r<8?a(e,t):u(e,i(n(e,0,c),t),i(n(e,c),t),t)},a=function(e,t){for(var r,n,o=e.length,i=1;i<o;){for(n=i,r=e[i];n&&t(e[n-1],r)>0;)e[n]=e[--n];n!==i++&&(e[n]=r)}return e},u=function(e,t,r,n){for(var o=t.length,i=r.length,a=0,u=0;a<o||u<i;)e[a+u]=a<o&&u<i?n(t[a],r[u])<=0?t[a++]:r[u++]:a<o?t[a++]:r[u++];return e};e.exports=i},77475:function(e,t,r){var n=r(43157),o=r(4411),i=r(70111),a=r(5112)("species"),u=Array;e.exports=function(e){var t;return n(e)&&(t=e.constructor,(o(t)&&(t===u||n(t.prototype))||i(t)&&null===(t=t[a]))&&(t=void 0)),void 0===t?u:t}},65417:function(e,t,r){var n=r(77475);e.exports=function(e,t){return new(n(e))(0===t?0:t)}},53411:function(e,t,r){var n=r(19670),o=r(99212);e.exports=function(e,t,r,i){try{return i?t(n(r)[0],r[1]):t(r)}catch(t){o(e,"throw",t)}}},17072:function(e,t,r){var n=r(5112)("iterator"),o=!1;try{var i=0,a={next:function(){return{done:!!i++}},return:function(){o=!0}};a[n]=function(){return this},Array.from(a,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!o)return!1;var r=!1;try{var i={};i[n]=function(){return{next:function(){return{done:r=!0}}}},e(i)}catch(e){}return r}},84326:function(e,t,r){var n=r(40084),o=n({}.toString),i=n("".slice);e.exports=function(e){return i(o(e),8,-1)}},70648:function(e,t,r){var n=r(51694),o=r(60614),i=r(84326),a=r(5112)("toStringTag"),u=Object,c="Arguments"==i(function(){return arguments}());e.exports=n?i:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=u(e),a))?r:c?i(t):"Object"==(n=i(t))&&o(t.callee)?"Arguments":n}},95631:function(e,t,r){"use strict";var n=r(3070).f,o=r(70030),i=r(89190),a=r(49974),u=r(25787),c=r(68554),s=r(20408),l=r(51656),f=r(76178),d=r(96340),p=r(19781),h=r(62423).fastKey,v=r(29909),y=v.set,m=v.getterFor;e.exports={getConstructor:function(e,t,r,l){var f=e((function(e,n){u(e,d),y(e,{type:t,index:o(null),first:void 0,last:void 0,size:0}),p||(e.size=0),c(n)||s(n,e[l],{that:e,AS_ENTRIES:r})})),d=f.prototype,v=m(t),g=function(e,t,r){var n,o,i=v(e),a=b(e,t);return a?a.value=r:(i.last=a={index:o=h(t,!0),key:t,value:r,previous:n=i.last,next:void 0,removed:!1},i.first||(i.first=a),n&&(n.next=a),p?i.size++:e.size++,"F"!==o&&(i.index[o]=a)),e},b=function(e,t){var r,n=v(e),o=h(t);if("F"!==o)return n.index[o];for(r=n.first;r;r=r.next)if(r.key==t)return r};return i(d,{clear:function(){for(var e=v(this),t=e.index,r=e.first;r;)r.removed=!0,r.previous&&(r.previous=r.previous.next=void 0),delete t[r.index],r=r.next;e.first=e.last=void 0,p?e.size=0:this.size=0},delete:function(e){var t=this,r=v(t),n=b(t,e);if(n){var o=n.next,i=n.previous;delete r.index[n.index],n.removed=!0,i&&(i.next=o),o&&(o.previous=i),r.first==n&&(r.first=o),r.last==n&&(r.last=i),p?r.size--:t.size--}return!!n},forEach:function(e){for(var t,r=v(this),n=a(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:r.first;)for(n(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!b(this,e)}}),i(d,r?{get:function(e){var t=b(this,e);return t&&t.value},set:function(e,t){return g(this,0===e?0:e,t)}}:{add:function(e){return g(this,e=0===e?0:e,e)}}),p&&n(d,"size",{get:function(){return v(this).size}}),f},setStrong:function(e,t,r){var n=t+" Iterator",o=m(t),i=m(n);l(e,t,(function(e,t){y(this,{type:n,target:e,state:o(e),kind:t,last:void 0})}),(function(){for(var e=i(this),t=e.kind,r=e.last;r&&r.removed;)r=r.previous;return e.target&&(e.last=r=r?r.next:e.state.first)?f("keys"==t?r.key:"values"==t?r.value:[r.key,r.value],!1):(e.target=void 0,f(void 0,!0))}),r?"entries":"values",!r,!0),d(t)}}},29320:function(e,t,r){"use strict";var n=r(1702),o=r(89190),i=r(62423).getWeakData,a=r(25787),u=r(19670),c=r(68554),s=r(70111),l=r(20408),f=r(42092),d=r(92597),p=r(29909),h=p.set,v=p.getterFor,y=f.find,m=f.findIndex,g=n([].splice),b=0,w=function(e){return e.frozen||(e.frozen=new E)},E=function(){this.entries=[]},_=function(e,t){return y(e.entries,(function(e){return e[0]===t}))};E.prototype={get:function(e){var t=_(this,e);if(t)return t[1]},has:function(e){return!!_(this,e)},set:function(e,t){var r=_(this,e);r?r[1]=t:this.entries.push([e,t])},delete:function(e){var t=m(this.entries,(function(t){return t[0]===e}));return~t&&g(this.entries,t,1),!!~t}},e.exports={getConstructor:function(e,t,r,n){var f=e((function(e,o){a(e,p),h(e,{type:t,id:b++,frozen:void 0}),c(o)||l(o,e[n],{that:e,AS_ENTRIES:r})})),p=f.prototype,y=v(t),m=function(e,t,r){var n=y(e),o=i(u(t),!0);return!0===o?w(n).set(t,r):o[n.id]=r,e};return o(p,{delete:function(e){var t=y(this);if(!s(e))return!1;var r=i(e);return!0===r?w(t).delete(e):r&&d(r,t.id)&&delete r[t.id]},has:function(e){var t=y(this);if(!s(e))return!1;var r=i(e);return!0===r?w(t).has(e):r&&d(r,t.id)}}),o(p,r?{get:function(e){var t=y(this);if(s(e)){var r=i(e);return!0===r?w(t).get(e):r?r[t.id]:void 0}},set:function(e,t){return m(this,e,t)}}:{add:function(e){return m(this,e,!0)}}),f}}},77710:function(e,t,r){"use strict";var n=r(82109),o=r(17854),i=r(1702),a=r(54705),u=r(98052),c=r(62423),s=r(20408),l=r(25787),f=r(60614),d=r(68554),p=r(70111),h=r(47293),v=r(17072),y=r(58003),m=r(79587);e.exports=function(e,t,r){var g=-1!==e.indexOf("Map"),b=-1!==e.indexOf("Weak"),w=g?"set":"add",E=o[e],_=E&&E.prototype,O=E,S={},x=function(e){var t=i(_[e]);u(_,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(b&&!p(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return b&&!p(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(b&&!p(e))&&t(this,0===e?0:e)}:function(e,r){return t(this,0===e?0:e,r),this})};if(a(e,!f(E)||!(b||_.forEach&&!h((function(){(new E).entries().next()})))))O=r.getConstructor(t,e,g,w),c.enable();else if(a(e,!0)){var k=new O,j=k[w](b?{}:-0,1)!=k,T=h((function(){k.has(1)})),P=v((function(e){new E(e)})),L=!b&&h((function(){for(var e=new E,t=5;t--;)e[w](t,t);return!e.has(-0)}));P||((O=t((function(e,t){l(e,_);var r=m(new E,e,O);return d(t)||s(t,r[w],{that:r,AS_ENTRIES:g}),r}))).prototype=_,_.constructor=O),(T||L)&&(x("delete"),x("has"),g&&x("get")),(L||j)&&x(w),b&&_.clear&&delete _.clear}return S[e]=O,n({global:!0,constructor:!0,forced:O!=E},S),y(O,e),b||r.setStrong(O,e,g),O}},99920:function(e,t,r){var n=r(92597),o=r(53887),i=r(31236),a=r(3070);e.exports=function(e,t,r){for(var u=o(t),c=a.f,s=i.f,l=0;l<u.length;l++){var f=u[l];n(e,f)||r&&n(r,f)||c(e,f,s(t,f))}}},84964:function(e,t,r){var n=r(5112)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[n]=!1,"/./"[e](t)}catch(e){}}return!1}},49920:function(e,t,r){var n=r(47293);e.exports=!n((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},76178:function(e){e.exports=function(e,t){return{value:e,done:t}}},68880:function(e,t,r){var n=r(19781),o=r(3070),i=r(79114);e.exports=n?function(e,t,r){return o.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},79114:function(e){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},86135:function(e,t,r){"use strict";var n=r(34948),o=r(3070),i=r(79114);e.exports=function(e,t,r){var a=n(t);a in e?o.f(e,a,i(0,r)):e[a]=r}},47045:function(e,t,r){var n=r(56339),o=r(3070);e.exports=function(e,t,r){return r.get&&n(r.get,t,{getter:!0}),r.set&&n(r.set,t,{setter:!0}),o.f(e,t,r)}},98052:function(e,t,r){var n=r(60614),o=r(3070),i=r(56339),a=r(13072);e.exports=function(e,t,r,u){u||(u={});var c=u.enumerable,s=void 0!==u.name?u.name:t;if(n(r)&&i(r,s,u),u.global)c?e[t]=r:a(t,r);else{try{u.unsafe?e[t]&&(c=!0):delete e[t]}catch(e){}c?e[t]=r:o.f(e,t,{value:r,enumerable:!1,configurable:!u.nonConfigurable,writable:!u.nonWritable})}return e}},89190:function(e,t,r){var n=r(98052);e.exports=function(e,t,r){for(var o in t)n(e,o,t[o],r);return e}},13072:function(e,t,r){var n=r(17854),o=Object.defineProperty;e.exports=function(e,t){try{o(n,e,{value:t,configurable:!0,writable:!0})}catch(r){n[e]=t}return t}},85117:function(e,t,r){"use strict";var n=r(66330),o=TypeError;e.exports=function(e,t){if(!delete e[t])throw o("Cannot delete property "+n(t)+" of "+n(e))}},19781:function(e,t,r){var n=r(47293);e.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},4154:function(e){var t="object"==typeof document&&document.all,r=void 0===t&&void 0!==t;e.exports={all:t,IS_HTMLDDA:r}},80317:function(e,t,r){var n=r(17854),o=r(70111),i=n.document,a=o(i)&&o(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},7207:function(e){var t=TypeError;e.exports=function(e){if(e>9007199254740991)throw t("Maximum allowed index exceeded");return e}},48324:function(e){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},98509:function(e,t,r){var n=r(80317)("span").classList,o=n&&n.constructor&&n.constructor.prototype;e.exports=o===Object.prototype?void 0:o},68886:function(e,t,r){var n=r(88113).match(/firefox\/(\d+)/i);e.exports=!!n&&+n[1]},30256:function(e,t,r){var n=r(88113);e.exports=/MSIE|Trident/.test(n)},35268:function(e,t,r){var n=r(84326),o=r(17854);e.exports="process"==n(o.process)},88113:function(e,t,r){var n=r(35005);e.exports=n("navigator","userAgent")||""},7392:function(e,t,r){var n,o,i=r(17854),a=r(88113),u=i.process,c=i.Deno,s=u&&u.versions||c&&c.version,l=s&&s.v8;l&&(o=(n=l.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!o&&a&&(!(n=a.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=a.match(/Chrome\/(\d+)/))&&(o=+n[1]),e.exports=o},98008:function(e,t,r){var n=r(88113).match(/AppleWebKit\/(\d+)\./);e.exports=!!n&&+n[1]},80748:function(e){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},82109:function(e,t,r){var n=r(17854),o=r(31236).f,i=r(68880),a=r(98052),u=r(13072),c=r(99920),s=r(54705);e.exports=function(e,t){var r,l,f,d,p,h=e.target,v=e.global,y=e.stat;if(r=v?n:y?n[h]||u(h,{}):(n[h]||{}).prototype)for(l in t){if(d=t[l],f=e.dontCallGetSet?(p=o(r,l))&&p.value:r[l],!s(v?l:h+(y?".":"#")+l,e.forced)&&void 0!==f){if(typeof d==typeof f)continue;c(d,f)}(e.sham||f&&f.sham)&&i(d,"sham",!0),a(r,l,d,e)}}},47293:function(e){e.exports=function(e){try{return!!e()}catch(e){return!0}}},27007:function(e,t,r){"use strict";r(74916);var n=r(1702),o=r(98052),i=r(22261),a=r(47293),u=r(5112),c=r(68880),s=u("species"),l=RegExp.prototype;e.exports=function(e,t,r,f){var d=u(e),p=!a((function(){var t={};return t[d]=function(){return 7},7!=""[e](t)})),h=p&&!a((function(){var t=!1,r=/a/;return"split"===e&&((r={}).constructor={},r.constructor[s]=function(){return r},r.flags="",r[d]=/./[d]),r.exec=function(){return t=!0,null},r[d](""),!t}));if(!p||!h||r){var v=n(/./[d]),y=t(d,""[e],(function(e,t,r,o,a){var u=n(e),c=t.exec;return c===i||c===l.exec?p&&!a?{done:!0,value:v(t,r,o)}:{done:!0,value:u(r,t,o)}:{done:!1}}));o(String.prototype,e,y[0]),o(l,d,y[1])}f&&c(l[d],"sham",!0)}},6790:function(e,t,r){"use strict";var n=r(43157),o=r(26244),i=r(7207),a=r(49974),u=function(e,t,r,c,s,l,f,d){for(var p,h,v=s,y=0,m=!!f&&a(f,d);y<c;)y in r&&(p=m?m(r[y],y,t):r[y],l>0&&n(p)?(h=o(p),v=u(e,t,p,h,v,l-1)-1):(i(v+1),e[v]=p),v++),y++;return v};e.exports=u},76677:function(e,t,r){var n=r(47293);e.exports=!n((function(){return Object.isExtensible(Object.preventExtensions({}))}))},22104:function(e,t,r){var n=r(34374),o=Function.prototype,i=o.apply,a=o.call;e.exports="object"==typeof Reflect&&Reflect.apply||(n?a.bind(i):function(){return a.apply(i,arguments)})},49974:function(e,t,r){var n=r(1702),o=r(19662),i=r(34374),a=n(n.bind);e.exports=function(e,t){return o(e),void 0===t?e:i?a(e,t):function(){return e.apply(t,arguments)}}},34374:function(e,t,r){var n=r(47293);e.exports=!n((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},27065:function(e,t,r){"use strict";var n=r(1702),o=r(19662),i=r(70111),a=r(92597),u=r(50206),c=r(34374),s=Function,l=n([].concat),f=n([].join),d={},p=function(e,t,r){if(!a(d,t)){for(var n=[],o=0;o<t;o++)n[o]="a["+o+"]";d[t]=s("C,a","return new C("+f(n,",")+")")}return d[t](e,r)};e.exports=c?s.bind:function(e){var t=o(this),r=t.prototype,n=u(arguments,1),a=function(){var r=l(n,u(arguments));return this instanceof a?p(t,r.length,r):t.apply(e,r)};return i(r)&&(a.prototype=r),a}},46916:function(e,t,r){var n=r(34374),o=Function.prototype.call;e.exports=n?o.bind(o):function(){return o.apply(o,arguments)}},76530:function(e,t,r){var n=r(19781),o=r(92597),i=Function.prototype,a=n&&Object.getOwnPropertyDescriptor,u=o(i,"name"),c=u&&"something"===function(){}.name,s=u&&(!n||n&&a(i,"name").configurable);e.exports={EXISTS:u,PROPER:c,CONFIGURABLE:s}},40084:function(e,t,r){var n=r(34374),o=Function.prototype,i=o.call,a=n&&o.bind.bind(i,i);e.exports=n?a:function(e){return function(){return i.apply(e,arguments)}}},1702:function(e,t,r){var n=r(84326),o=r(40084);e.exports=function(e){if("Function"===n(e))return o(e)}},35005:function(e,t,r){var n=r(17854),o=r(60614),i=function(e){return o(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?i(n[e]):n[e]&&n[e][t]}},71246:function(e,t,r){var n=r(70648),o=r(58173),i=r(68554),a=r(97497),u=r(5112)("iterator");e.exports=function(e){if(!i(e))return o(e,u)||o(e,"@@iterator")||a[n(e)]}},18554:function(e,t,r){var n=r(46916),o=r(19662),i=r(19670),a=r(66330),u=r(71246),c=TypeError;e.exports=function(e,t){var r=arguments.length<2?u(e):t;if(o(r))return i(n(r,e));throw c(a(e)+" is not iterable")}},58173:function(e,t,r){var n=r(19662),o=r(68554);e.exports=function(e,t){var r=e[t];return o(r)?void 0:n(r)}},10647:function(e,t,r){var n=r(1702),o=r(47908),i=Math.floor,a=n("".charAt),u=n("".replace),c=n("".slice),s=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,l=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,r,n,f,d){var p=r+e.length,h=n.length,v=l;return void 0!==f&&(f=o(f),v=s),u(d,v,(function(o,u){var s;switch(a(u,0)){case"$":return"$";case"&":return e;case"`":return c(t,0,r);case"'":return c(t,p);case"<":s=f[c(u,1,-1)];break;default:var l=+u;if(0===l)return o;if(l>h){var d=i(l/10);return 0===d?o:d<=h?void 0===n[d-1]?a(u,1):n[d-1]+a(u,1):o}s=n[l-1]}return void 0===s?"":s}))}},17854:function(e,t,r){var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r.g&&r.g)||function(){return this}()||Function("return this")()},92597:function(e,t,r){var n=r(1702),o=r(47908),i=n({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(o(e),t)}},3501:function(e){e.exports={}},60490:function(e,t,r){var n=r(35005);e.exports=n("document","documentElement")},64664:function(e,t,r){var n=r(19781),o=r(47293),i=r(80317);e.exports=!n&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},11179:function(e){var t=Array,r=Math.abs,n=Math.pow,o=Math.floor,i=Math.log,a=Math.LN2;e.exports={pack:function(e,u,c){var s,l,f,d=t(c),p=8*c-u-1,h=(1<<p)-1,v=h>>1,y=23===u?n(2,-24)-n(2,-77):0,m=e<0||0===e&&1/e<0?1:0,g=0;for((e=r(e))!=e||e===1/0?(l=e!=e?1:0,s=h):(s=o(i(e)/a),e*(f=n(2,-s))<1&&(s--,f*=2),(e+=s+v>=1?y/f:y*n(2,1-v))*f>=2&&(s++,f/=2),s+v>=h?(l=0,s=h):s+v>=1?(l=(e*f-1)*n(2,u),s+=v):(l=e*n(2,v-1)*n(2,u),s=0));u>=8;)d[g++]=255&l,l/=256,u-=8;for(s=s<<u|l,p+=u;p>0;)d[g++]=255&s,s/=256,p-=8;return d[--g]|=128*m,d},unpack:function(e,t){var r,o=e.length,i=8*o-t-1,a=(1<<i)-1,u=a>>1,c=i-7,s=o-1,l=e[s--],f=127&l;for(l>>=7;c>0;)f=256*f+e[s--],c-=8;for(r=f&(1<<-c)-1,f>>=-c,c+=t;c>0;)r=256*r+e[s--],c-=8;if(0===f)f=1-u;else{if(f===a)return r?NaN:l?-1/0:1/0;r+=n(2,t),f-=u}return(l?-1:1)*r*n(2,f-t)}}},68361:function(e,t,r){var n=r(1702),o=r(47293),i=r(84326),a=Object,u=n("".split);e.exports=o((function(){return!a("z").propertyIsEnumerable(0)}))?function(e){return"String"==i(e)?u(e,""):a(e)}:a},79587:function(e,t,r){var n=r(60614),o=r(70111),i=r(27674);e.exports=function(e,t,r){var a,u;return i&&n(a=t.constructor)&&a!==r&&o(u=a.prototype)&&u!==r.prototype&&i(e,u),e}},42788:function(e,t,r){var n=r(1702),o=r(60614),i=r(5465),a=n(Function.toString);o(i.inspectSource)||(i.inspectSource=function(e){return a(e)}),e.exports=i.inspectSource},62423:function(e,t,r){var n=r(82109),o=r(1702),i=r(3501),a=r(70111),u=r(92597),c=r(3070).f,s=r(8006),l=r(1156),f=r(52050),d=r(69711),p=r(76677),h=!1,v=d("meta"),y=0,m=function(e){c(e,v,{value:{objectID:"O"+y++,weakData:{}}})},g=e.exports={enable:function(){g.enable=function(){},h=!0;var e=s.f,t=o([].splice),r={};r[v]=1,e(r).length&&(s.f=function(r){for(var n=e(r),o=0,i=n.length;o<i;o++)if(n[o]===v){t(n,o,1);break}return n},n({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:l.f}))},fastKey:function(e,t){if(!a(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!u(e,v)){if(!f(e))return"F";if(!t)return"E";m(e)}return e[v].objectID},getWeakData:function(e,t){if(!u(e,v)){if(!f(e))return!0;if(!t)return!1;m(e)}return e[v].weakData},onFreeze:function(e){return p&&h&&f(e)&&!u(e,v)&&m(e),e}};i[v]=!0},29909:function(e,t,r){var n,o,i,a=r(94811),u=r(17854),c=r(70111),s=r(68880),l=r(92597),f=r(5465),d=r(6200),p=r(3501),h="Object already initialized",v=u.TypeError,y=u.WeakMap;if(a||f.state){var m=f.state||(f.state=new y);m.get=m.get,m.has=m.has,m.set=m.set,n=function(e,t){if(m.has(e))throw v(h);return t.facade=e,m.set(e,t),t},o=function(e){return m.get(e)||{}},i=function(e){return m.has(e)}}else{var g=d("state");p[g]=!0,n=function(e,t){if(l(e,g))throw v(h);return t.facade=e,s(e,g,t),t},o=function(e){return l(e,g)?e[g]:{}},i=function(e){return l(e,g)}}e.exports={set:n,get:o,has:i,enforce:function(e){return i(e)?o(e):n(e,{})},getterFor:function(e){return function(t){var r;if(!c(t)||(r=o(t)).type!==e)throw v("Incompatible receiver, "+e+" required");return r}}}},97659:function(e,t,r){var n=r(5112),o=r(97497),i=n("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||a[i]===e)}},43157:function(e,t,r){var n=r(84326);e.exports=Array.isArray||function(e){return"Array"==n(e)}},44067:function(e,t,r){var n=r(70648),o=r(1702)("".slice);e.exports=function(e){return"Big"===o(n(e),0,3)}},60614:function(e,t,r){var n=r(4154),o=n.all;e.exports=n.IS_HTMLDDA?function(e){return"function"==typeof e||e===o}:function(e){return"function"==typeof e}},4411:function(e,t,r){var n=r(1702),o=r(47293),i=r(60614),a=r(70648),u=r(35005),c=r(42788),s=function(){},l=[],f=u("Reflect","construct"),d=/^\s*(?:class|function)\b/,p=n(d.exec),h=!d.exec(s),v=function(e){if(!i(e))return!1;try{return f(s,l,e),!0}catch(e){return!1}},y=function(e){if(!i(e))return!1;switch(a(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return h||!!p(d,c(e))}catch(e){return!0}};y.sham=!0,e.exports=!f||o((function(){var e;return v(v.call)||!v(Object)||!v((function(){e=!0}))||e}))?y:v},45032:function(e,t,r){var n=r(92597);e.exports=function(e){return void 0!==e&&(n(e,"value")||n(e,"writable"))}},54705:function(e,t,r){var n=r(47293),o=r(60614),i=/#|\.prototype\./,a=function(e,t){var r=c[u(e)];return r==l||r!=s&&(o(t)?n(t):!!t)},u=a.normalize=function(e){return String(e).replace(i,".").toLowerCase()},c=a.data={},s=a.NATIVE="N",l=a.POLYFILL="P";e.exports=a},55988:function(e,t,r){var n=r(70111),o=Math.floor;e.exports=Number.isInteger||function(e){return!n(e)&&isFinite(e)&&o(e)===e}},68554:function(e){e.exports=function(e){return null==e}},70111:function(e,t,r){var n=r(60614),o=r(4154),i=o.all;e.exports=o.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:n(e)||e===i}:function(e){return"object"==typeof e?null!==e:n(e)}},31913:function(e){e.exports=!1},47850:function(e,t,r){var n=r(70111),o=r(84326),i=r(5112)("match");e.exports=function(e){var t;return n(e)&&(void 0!==(t=e[i])?!!t:"RegExp"==o(e))}},52190:function(e,t,r){var n=r(35005),o=r(60614),i=r(47976),a=r(43307),u=Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=n("Symbol");return o(t)&&i(t.prototype,u(e))}},20408:function(e,t,r){var n=r(49974),o=r(46916),i=r(19670),a=r(66330),u=r(97659),c=r(26244),s=r(47976),l=r(18554),f=r(71246),d=r(99212),p=TypeError,h=function(e,t){this.stopped=e,this.result=t},v=h.prototype;e.exports=function(e,t,r){var y,m,g,b,w,E,_,O=r&&r.that,S=!(!r||!r.AS_ENTRIES),x=!(!r||!r.IS_RECORD),k=!(!r||!r.IS_ITERATOR),j=!(!r||!r.INTERRUPTED),T=n(t,O),P=function(e){return y&&d(y,"normal",e),new h(!0,e)},L=function(e){return S?(i(e),j?T(e[0],e[1],P):T(e[0],e[1])):j?T(e,P):T(e)};if(x)y=e.iterator;else if(k)y=e;else{if(!(m=f(e)))throw p(a(e)+" is not iterable");if(u(m)){for(g=0,b=c(e);b>g;g++)if((w=L(e[g]))&&s(v,w))return w;return new h(!1)}y=l(e,m)}for(E=x?e.next:y.next;!(_=o(E,y)).done;){try{w=L(_.value)}catch(e){d(y,"throw",e)}if("object"==typeof w&&w&&s(v,w))return w}return new h(!1)}},99212:function(e,t,r){var n=r(46916),o=r(19670),i=r(58173);e.exports=function(e,t,r){var a,u;o(e);try{if(!(a=i(e,"return"))){if("throw"===t)throw r;return r}a=n(a,e)}catch(e){u=!0,a=e}if("throw"===t)throw r;if(u)throw a;return o(a),r}},63061:function(e,t,r){"use strict";var n=r(13383).IteratorPrototype,o=r(70030),i=r(79114),a=r(58003),u=r(97497),c=function(){return this};e.exports=function(e,t,r,s){var l=t+" Iterator";return e.prototype=o(n,{next:i(+!s,r)}),a(e,l,!1,!0),u[l]=c,e}},51656:function(e,t,r){"use strict";var n=r(82109),o=r(46916),i=r(31913),a=r(76530),u=r(60614),c=r(63061),s=r(79518),l=r(27674),f=r(58003),d=r(68880),p=r(98052),h=r(5112),v=r(97497),y=r(13383),m=a.PROPER,g=a.CONFIGURABLE,b=y.IteratorPrototype,w=y.BUGGY_SAFARI_ITERATORS,E=h("iterator"),_="keys",O="values",S="entries",x=function(){return this};e.exports=function(e,t,r,a,h,y,k){c(r,t,a);var j,T,P,L=function(e){if(e===h&&N)return N;if(!w&&e in C)return C[e];switch(e){case _:case O:case S:return function(){return new r(this,e)}}return function(){return new r(this)}},I=t+" Iterator",A=!1,C=e.prototype,M=C[E]||C["@@iterator"]||h&&C[h],N=!w&&M||L(h),R="Array"==t&&C.entries||M;if(R&&(j=s(R.call(new e)))!==Object.prototype&&j.next&&(i||s(j)===b||(l?l(j,b):u(j[E])||p(j,E,x)),f(j,I,!0,!0),i&&(v[I]=x)),m&&h==O&&M&&M.name!==O&&(!i&&g?d(C,"name",O):(A=!0,N=function(){return o(M,this)})),h)if(T={values:L(O),keys:y?N:L(_),entries:L(S)},k)for(P in T)(w||A||!(P in C))&&p(C,P,T[P]);else n({target:t,proto:!0,forced:w||A},T);return i&&!k||C[E]===N||p(C,E,N,{name:h}),v[t]=N,T}},13383:function(e,t,r){"use strict";var n,o,i,a=r(47293),u=r(60614),c=r(70111),s=r(70030),l=r(79518),f=r(98052),d=r(5112),p=r(31913),h=d("iterator"),v=!1;[].keys&&("next"in(i=[].keys())?(o=l(l(i)))!==Object.prototype&&(n=o):v=!0),!c(n)||a((function(){var e={};return n[h].call(e)!==e}))?n={}:p&&(n=s(n)),u(n[h])||f(n,h,(function(){return this})),e.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:v}},97497:function(e){e.exports={}},26244:function(e,t,r){var n=r(17466);e.exports=function(e){return n(e.length)}},56339:function(e,t,r){var n=r(47293),o=r(60614),i=r(92597),a=r(19781),u=r(76530).CONFIGURABLE,c=r(42788),s=r(29909),l=s.enforce,f=s.get,d=Object.defineProperty,p=a&&!n((function(){return 8!==d((function(){}),"length",{value:8}).length})),h=String(String).split("String"),v=e.exports=function(e,t,r){"Symbol("===String(t).slice(0,7)&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!i(e,"name")||u&&e.name!==t)&&(a?d(e,"name",{value:t,configurable:!0}):e.name=t),p&&r&&i(r,"arity")&&e.length!==r.arity&&d(e,"length",{value:r.arity});try{r&&i(r,"constructor")&&r.constructor?a&&d(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var n=l(e);return i(n,"source")||(n.source=h.join("string"==typeof t?t:"")),e};Function.prototype.toString=v((function(){return o(this)&&f(this).source||c(this)}),"toString")},74758:function(e){var t=Math.ceil,r=Math.floor;e.exports=Math.trunc||function(e){var n=+e;return(n>0?r:t)(n)}},3929:function(e,t,r){var n=r(47850),o=TypeError;e.exports=function(e){if(n(e))throw o("The method doesn't accept regular expressions");return e}},83009:function(e,t,r){var n=r(17854),o=r(47293),i=r(1702),a=r(41340),u=r(53111).trim,c=r(81361),s=n.parseInt,l=n.Symbol,f=l&&l.iterator,d=/^[+-]?0x/i,p=i(d.exec),h=8!==s(c+"08")||22!==s(c+"0x16")||f&&!o((function(){s(Object(f))}));e.exports=h?function(e,t){var r=u(a(e));return s(r,t>>>0||(p(d,r)?16:10))}:s},21574:function(e,t,r){"use strict";var n=r(19781),o=r(1702),i=r(46916),a=r(47293),u=r(81956),c=r(25181),s=r(55296),l=r(47908),f=r(68361),d=Object.assign,p=Object.defineProperty,h=o([].concat);e.exports=!d||a((function(){if(n&&1!==d({b:1},d(p({},"a",{enumerable:!0,get:function(){p(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},r=Symbol(),o="abcdefghijklmnopqrst";return e[r]=7,o.split("").forEach((function(e){t[e]=e})),7!=d({},e)[r]||u(d({},t)).join("")!=o}))?function(e,t){for(var r=l(e),o=arguments.length,a=1,d=c.f,p=s.f;o>a;)for(var v,y=f(arguments[a++]),m=d?h(u(y),d(y)):u(y),g=m.length,b=0;g>b;)v=m[b++],n&&!i(p,y,v)||(r[v]=y[v]);return r}:d},70030:function(e,t,r){var n,o=r(19670),i=r(36048),a=r(80748),u=r(3501),c=r(60490),s=r(80317),l=r(6200)("IE_PROTO"),f=function(){},d=function(e){return"<script>"+e+"<\/script>"},p=function(e){e.write(d("")),e.close();var t=e.parentWindow.Object;return e=null,t},h=function(){try{n=new ActiveXObject("htmlfile")}catch(e){}var e,t;h="undefined"!=typeof document?document.domain&&n?p(n):((t=s("iframe")).style.display="none",c.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(d("document.F=Object")),e.close(),e.F):p(n);for(var r=a.length;r--;)delete h.prototype[a[r]];return h()};u[l]=!0,e.exports=Object.create||function(e,t){var r;return null!==e?(f.prototype=o(e),r=new f,f.prototype=null,r[l]=e):r=h(),void 0===t?r:i.f(r,t)}},36048:function(e,t,r){var n=r(19781),o=r(3353),i=r(3070),a=r(19670),u=r(45656),c=r(81956);t.f=n&&!o?Object.defineProperties:function(e,t){a(e);for(var r,n=u(t),o=c(t),s=o.length,l=0;s>l;)i.f(e,r=o[l++],n[r]);return e}},3070:function(e,t,r){var n=r(19781),o=r(64664),i=r(3353),a=r(19670),u=r(34948),c=TypeError,s=Object.defineProperty,l=Object.getOwnPropertyDescriptor;t.f=n?i?function(e,t,r){if(a(e),t=u(t),a(r),"function"==typeof e&&"prototype"===t&&"value"in r&&"writable"in r&&!r.writable){var n=l(e,t);n&&n.writable&&(e[t]=r.value,r={configurable:"configurable"in r?r.configurable:n.configurable,enumerable:"enumerable"in r?r.enumerable:n.enumerable,writable:!1})}return s(e,t,r)}:s:function(e,t,r){if(a(e),t=u(t),a(r),o)try{return s(e,t,r)}catch(e){}if("get"in r||"set"in r)throw c("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},31236:function(e,t,r){var n=r(19781),o=r(46916),i=r(55296),a=r(79114),u=r(45656),c=r(34948),s=r(92597),l=r(64664),f=Object.getOwnPropertyDescriptor;t.f=n?f:function(e,t){if(e=u(e),t=c(t),l)try{return f(e,t)}catch(e){}if(s(e,t))return a(!o(i.f,e,t),e[t])}},1156:function(e,t,r){var n=r(84326),o=r(45656),i=r(8006).f,a=r(41589),u="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return u&&"Window"==n(e)?function(e){try{return i(e)}catch(e){return a(u)}}(e):i(o(e))}},8006:function(e,t,r){var n=r(16324),o=r(80748).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,o)}},25181:function(e,t){t.f=Object.getOwnPropertySymbols},79518:function(e,t,r){var n=r(92597),o=r(60614),i=r(47908),a=r(6200),u=r(49920),c=a("IE_PROTO"),s=Object,l=s.prototype;e.exports=u?s.getPrototypeOf:function(e){var t=i(e);if(n(t,c))return t[c];var r=t.constructor;return o(r)&&t instanceof r?r.prototype:t instanceof s?l:null}},52050:function(e,t,r){var n=r(47293),o=r(70111),i=r(84326),a=r(7556),u=Object.isExtensible,c=n((function(){u(1)}));e.exports=c||a?function(e){return!!o(e)&&(!a||"ArrayBuffer"!=i(e))&&(!u||u(e))}:u},47976:function(e,t,r){var n=r(1702);e.exports=n({}.isPrototypeOf)},16324:function(e,t,r){var n=r(1702),o=r(92597),i=r(45656),a=r(41318).indexOf,u=r(3501),c=n([].push);e.exports=function(e,t){var r,n=i(e),s=0,l=[];for(r in n)!o(u,r)&&o(n,r)&&c(l,r);for(;t.length>s;)o(n,r=t[s++])&&(~a(l,r)||c(l,r));return l}},81956:function(e,t,r){var n=r(16324),o=r(80748);e.exports=Object.keys||function(e){return n(e,o)}},55296:function(e,t){"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,o=n&&!r.call({1:2},1);t.f=o?function(e){var t=n(this,e);return!!t&&t.enumerable}:r},27674:function(e,t,r){var n=r(1702),o=r(19670),i=r(96077);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=n(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),t=r instanceof Array}catch(e){}return function(r,n){return o(r),i(n),t?e(r,n):r.__proto__=n,r}}():void 0)},44699:function(e,t,r){var n=r(19781),o=r(1702),i=r(81956),a=r(45656),u=o(r(55296).f),c=o([].push),s=function(e){return function(t){for(var r,o=a(t),s=i(o),l=s.length,f=0,d=[];l>f;)r=s[f++],n&&!u(o,r)||c(d,e?[r,o[r]]:o[r]);return d}};e.exports={entries:s(!0),values:s(!1)}},90288:function(e,t,r){"use strict";var n=r(51694),o=r(70648);e.exports=n?{}.toString:function(){return"[object "+o(this)+"]"}},92140:function(e,t,r){var n=r(46916),o=r(60614),i=r(70111),a=TypeError;e.exports=function(e,t){var r,u;if("string"===t&&o(r=e.toString)&&!i(u=n(r,e)))return u;if(o(r=e.valueOf)&&!i(u=n(r,e)))return u;if("string"!==t&&o(r=e.toString)&&!i(u=n(r,e)))return u;throw a("Can't convert object to primitive value")}},53887:function(e,t,r){var n=r(35005),o=r(1702),i=r(8006),a=r(25181),u=r(19670),c=o([].concat);e.exports=n("Reflect","ownKeys")||function(e){var t=i.f(u(e)),r=a.f;return r?c(t,r(e)):t}},40857:function(e,t,r){var n=r(17854);e.exports=n},2626:function(e,t,r){var n=r(3070).f;e.exports=function(e,t,r){r in e||n(e,r,{configurable:!0,get:function(){return t[r]},set:function(e){t[r]=e}})}},97651:function(e,t,r){var n=r(46916),o=r(19670),i=r(60614),a=r(84326),u=r(22261),c=TypeError;e.exports=function(e,t){var r=e.exec;if(i(r)){var s=n(r,e,t);return null!==s&&o(s),s}if("RegExp"===a(e))return n(u,e,t);throw c("RegExp#exec called on incompatible receiver")}},22261:function(e,t,r){"use strict";var n,o,i=r(46916),a=r(1702),u=r(41340),c=r(67066),s=r(52999),l=r(72309),f=r(70030),d=r(29909).get,p=r(9441),h=r(38173),v=l("native-string-replace",String.prototype.replace),y=RegExp.prototype.exec,m=y,g=a("".charAt),b=a("".indexOf),w=a("".replace),E=a("".slice),_=(o=/b*/g,i(y,n=/a/,"a"),i(y,o,"a"),0!==n.lastIndex||0!==o.lastIndex),O=s.BROKEN_CARET,S=void 0!==/()??/.exec("")[1];(_||S||O||p||h)&&(m=function(e){var t,r,n,o,a,s,l,p=this,h=d(p),x=u(e),k=h.raw;if(k)return k.lastIndex=p.lastIndex,t=i(m,k,x),p.lastIndex=k.lastIndex,t;var j=h.groups,T=O&&p.sticky,P=i(c,p),L=p.source,I=0,A=x;if(T&&(P=w(P,"y",""),-1===b(P,"g")&&(P+="g"),A=E(x,p.lastIndex),p.lastIndex>0&&(!p.multiline||p.multiline&&"\n"!==g(x,p.lastIndex-1))&&(L="(?: "+L+")",A=" "+A,I++),r=new RegExp("^(?:"+L+")",P)),S&&(r=new RegExp("^"+L+"$(?!\\s)",P)),_&&(n=p.lastIndex),o=i(y,T?r:p,A),T?o?(o.input=E(o.input,I),o[0]=E(o[0],I),o.index=p.lastIndex,p.lastIndex+=o[0].length):p.lastIndex=0:_&&o&&(p.lastIndex=p.global?o.index+o[0].length:n),S&&o&&o.length>1&&i(v,o[0],r,(function(){for(a=1;a<arguments.length-2;a++)void 0===arguments[a]&&(o[a]=void 0)})),o&&j)for(o.groups=s=f(null),a=0;a<j.length;a++)s[(l=j[a])[0]]=o[l[1]];return o}),e.exports=m},67066:function(e,t,r){"use strict";var n=r(19670);e.exports=function(){var e=n(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},34706:function(e,t,r){var n=r(46916),o=r(92597),i=r(47976),a=r(67066),u=RegExp.prototype;e.exports=function(e){var t=e.flags;return void 0!==t||"flags"in u||o(e,"flags")||!i(u,e)?t:n(a,e)}},52999:function(e,t,r){var n=r(47293),o=r(17854).RegExp,i=n((function(){var e=o("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),a=i||n((function(){return!o("a","y").sticky})),u=i||n((function(){var e=o("^r","gy");return e.lastIndex=2,null!=e.exec("str")}));e.exports={BROKEN_CARET:u,MISSED_STICKY:a,UNSUPPORTED_Y:i}},9441:function(e,t,r){var n=r(47293),o=r(17854).RegExp;e.exports=n((function(){var e=o(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)}))},38173:function(e,t,r){var n=r(47293),o=r(17854).RegExp;e.exports=n((function(){var e=o("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}))},84488:function(e,t,r){var n=r(68554),o=TypeError;e.exports=function(e){if(n(e))throw o("Can't call method on "+e);return e}},96340:function(e,t,r){"use strict";var n=r(35005),o=r(3070),i=r(5112),a=r(19781),u=i("species");e.exports=function(e){var t=n(e),r=o.f;a&&t&&!t[u]&&r(t,u,{configurable:!0,get:function(){return this}})}},58003:function(e,t,r){var n=r(3070).f,o=r(92597),i=r(5112)("toStringTag");e.exports=function(e,t,r){e&&!r&&(e=e.prototype),e&&!o(e,i)&&n(e,i,{configurable:!0,value:t})}},6200:function(e,t,r){var n=r(72309),o=r(69711),i=n("keys");e.exports=function(e){return i[e]||(i[e]=o(e))}},5465:function(e,t,r){var n=r(17854),o=r(13072),i="__core-js_shared__",a=n[i]||o(i,{});e.exports=a},72309:function(e,t,r){var n=r(31913),o=r(5465);(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.26.0",mode:n?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.26.0/LICENSE",source:"https://github.com/zloirock/core-js"})},36707:function(e,t,r){var n=r(19670),o=r(39483),i=r(68554),a=r(5112)("species");e.exports=function(e,t){var r,u=n(e).constructor;return void 0===u||i(r=n(u)[a])?t:o(r)}},28710:function(e,t,r){var n=r(1702),o=r(19303),i=r(41340),a=r(84488),u=n("".charAt),c=n("".charCodeAt),s=n("".slice),l=function(e){return function(t,r){var n,l,f=i(a(t)),d=o(r),p=f.length;return d<0||d>=p?e?"":void 0:(n=c(f,d))<55296||n>56319||d+1===p||(l=c(f,d+1))<56320||l>57343?e?u(f,d):n:e?s(f,d,d+2):l-56320+(n-55296<<10)+65536}};e.exports={codeAt:l(!1),charAt:l(!0)}},54986:function(e,t,r){var n=r(88113);e.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(n)},76650:function(e,t,r){var n=r(1702),o=r(17466),i=r(41340),a=r(38415),u=r(84488),c=n(a),s=n("".slice),l=Math.ceil,f=function(e){return function(t,r,n){var a,f,d=i(u(t)),p=o(r),h=d.length,v=void 0===n?" ":i(n);return p<=h||""==v?d:((f=c(v,l((a=p-h)/v.length))).length>a&&(f=s(f,0,a)),e?d+f:f+d)}};e.exports={start:f(!1),end:f(!0)}},33197:function(e,t,r){"use strict";var n=r(1702),o=2147483647,i=/[^\0-\u007E]/,a=/[.\u3002\uFF0E\uFF61]/g,u="Overflow: input needs wider integers to process",c=RangeError,s=n(a.exec),l=Math.floor,f=String.fromCharCode,d=n("".charCodeAt),p=n([].join),h=n([].push),v=n("".replace),y=n("".split),m=n("".toLowerCase),g=function(e){return e+22+75*(e<26)},b=function(e,t,r){var n=0;for(e=r?l(e/700):e>>1,e+=l(e/t);e>455;)e=l(e/35),n+=36;return l(n+36*e/(e+38))},w=function(e){var t=[];e=function(e){for(var t=[],r=0,n=e.length;r<n;){var o=d(e,r++);if(o>=55296&&o<=56319&&r<n){var i=d(e,r++);56320==(64512&i)?h(t,((1023&o)<<10)+(1023&i)+65536):(h(t,o),r--)}else h(t,o)}return t}(e);var r,n,i=e.length,a=128,s=0,v=72;for(r=0;r<e.length;r++)(n=e[r])<128&&h(t,f(n));var y=t.length,m=y;for(y&&h(t,"-");m<i;){var w=o;for(r=0;r<e.length;r++)(n=e[r])>=a&&n<w&&(w=n);var E=m+1;if(w-a>l((o-s)/E))throw c(u);for(s+=(w-a)*E,a=w,r=0;r<e.length;r++){if((n=e[r])<a&&++s>o)throw c(u);if(n==a){for(var _=s,O=36;;){var S=O<=v?1:O>=v+26?26:O-v;if(_<S)break;var x=_-S,k=36-S;h(t,f(g(S+x%k))),_=l(x/k),O+=36}h(t,f(g(_))),v=b(s,E,m==y),s=0,m++}}s++,a++}return p(t,"")};e.exports=function(e){var t,r,n=[],o=y(v(m(e),a,"."),".");for(t=0;t<o.length;t++)r=o[t],h(n,s(i,r)?"xn--"+w(r):r);return p(n,".")}},38415:function(e,t,r){"use strict";var n=r(19303),o=r(41340),i=r(84488),a=RangeError;e.exports=function(e){var t=o(i(this)),r="",u=n(e);if(u<0||u==1/0)throw a("Wrong number of repetitions");for(;u>0;(u>>>=1)&&(t+=t))1&u&&(r+=t);return r}},76091:function(e,t,r){var n=r(76530).PROPER,o=r(47293),i=r(81361);e.exports=function(e){return o((function(){return!!i[e]()||"
"!=="
"[e]()||n&&i[e].name!==e}))}},53111:function(e,t,r){var n=r(1702),o=r(84488),i=r(41340),a=r(81361),u=n("".replace),c="["+a+"]",s=RegExp("^"+c+c+"*"),l=RegExp(c+c+"*$"),f=function(e){return function(t){var r=i(o(t));return 1&e&&(r=u(r,s,"")),2&e&&(r=u(r,l,"")),r}};e.exports={start:f(1),end:f(2),trim:f(3)}},36293:function(e,t,r){var n=r(7392),o=r(47293);e.exports=!!Object.getOwnPropertySymbols&&!o((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},56532:function(e,t,r){var n=r(46916),o=r(35005),i=r(5112),a=r(98052);e.exports=function(){var e=o("Symbol"),t=e&&e.prototype,r=t&&t.valueOf,u=i("toPrimitive");t&&!t[u]&&a(t,u,(function(e){return n(r,this)}),{arity:1})}},2015:function(e,t,r){var n=r(36293);e.exports=n&&!!Symbol.for&&!!Symbol.keyFor},50863:function(e,t,r){var n=r(1702);e.exports=n(1..valueOf)},51400:function(e,t,r){var n=r(19303),o=Math.max,i=Math.min;e.exports=function(e,t){var r=n(e);return r<0?o(r+t,0):i(r,t)}},64599:function(e,t,r){var n=r(57593),o=TypeError;e.exports=function(e){var t=n(e,"number");if("number"==typeof t)throw o("Can't convert number to bigint");return BigInt(t)}},57067:function(e,t,r){var n=r(19303),o=r(17466),i=RangeError;e.exports=function(e){if(void 0===e)return 0;var t=n(e),r=o(t);if(t!==r)throw i("Wrong length or index");return r}},45656:function(e,t,r){var n=r(68361),o=r(84488);e.exports=function(e){return n(o(e))}},19303:function(e,t,r){var n=r(74758);e.exports=function(e){var t=+e;return t!=t||0===t?0:n(t)}},17466:function(e,t,r){var n=r(19303),o=Math.min;e.exports=function(e){return e>0?o(n(e),9007199254740991):0}},47908:function(e,t,r){var n=r(84488),o=Object;e.exports=function(e){return o(n(e))}},84590:function(e,t,r){var n=r(73002),o=RangeError;e.exports=function(e,t){var r=n(e);if(r%t)throw o("Wrong offset");return r}},73002:function(e,t,r){var n=r(19303),o=RangeError;e.exports=function(e){var t=n(e);if(t<0)throw o("The argument can't be less than 0");return t}},57593:function(e,t,r){var n=r(46916),o=r(70111),i=r(52190),a=r(58173),u=r(92140),c=r(5112),s=TypeError,l=c("toPrimitive");e.exports=function(e,t){if(!o(e)||i(e))return e;var r,c=a(e,l);if(c){if(void 0===t&&(t="default"),r=n(c,e,t),!o(r)||i(r))return r;throw s("Can't convert object to primitive value")}return void 0===t&&(t="number"),u(e,t)}},34948:function(e,t,r){var n=r(57593),o=r(52190);e.exports=function(e){var t=n(e,"string");return o(t)?t:t+""}},51694:function(e,t,r){var n={};n[r(5112)("toStringTag")]="z",e.exports="[object z]"===String(n)},41340:function(e,t,r){var n=r(70648),o=String;e.exports=function(e){if("Symbol"===n(e))throw TypeError("Cannot convert a Symbol value to a string");return o(e)}},66330:function(e){var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},19843:function(e,t,r){"use strict";var n=r(82109),o=r(17854),i=r(46916),a=r(19781),u=r(63832),c=r(90260),s=r(13331),l=r(25787),f=r(79114),d=r(68880),p=r(55988),h=r(17466),v=r(57067),y=r(84590),m=r(34948),g=r(92597),b=r(70648),w=r(70111),E=r(52190),_=r(70030),O=r(47976),S=r(27674),x=r(8006).f,k=r(97321),j=r(42092).forEach,T=r(96340),P=r(3070),L=r(31236),I=r(29909),A=r(79587),C=I.get,M=I.set,N=I.enforce,R=P.f,D=L.f,F=Math.round,U=o.RangeError,W=s.ArrayBuffer,z=W.prototype,B=s.DataView,G=c.NATIVE_ARRAY_BUFFER_VIEWS,V=c.TYPED_ARRAY_TAG,Y=c.TypedArray,H=c.TypedArrayPrototype,K=c.aTypedArrayConstructor,q=c.isTypedArray,$="BYTES_PER_ELEMENT",X="Wrong length",Q=function(e,t){K(e);for(var r=0,n=t.length,o=new e(n);n>r;)o[r]=t[r++];return o},J=function(e,t){R(e,t,{get:function(){return C(this)[t]}})},Z=function(e){var t;return O(z,e)||"ArrayBuffer"==(t=b(e))||"SharedArrayBuffer"==t},ee=function(e,t){return q(e)&&!E(t)&&t in e&&p(+t)&&t>=0},te=function(e,t){return t=m(t),ee(e,t)?f(2,e[t]):D(e,t)},re=function(e,t,r){return t=m(t),!(ee(e,t)&&w(r)&&g(r,"value"))||g(r,"get")||g(r,"set")||r.configurable||g(r,"writable")&&!r.writable||g(r,"enumerable")&&!r.enumerable?R(e,t,r):(e[t]=r.value,e)};a?(G||(L.f=te,P.f=re,J(H,"buffer"),J(H,"byteOffset"),J(H,"byteLength"),J(H,"length")),n({target:"Object",stat:!0,forced:!G},{getOwnPropertyDescriptor:te,defineProperty:re}),e.exports=function(e,t,r){var a=e.match(/\d+$/)[0]/8,c=e+(r?"Clamped":"")+"Array",s="get"+e,f="set"+e,p=o[c],m=p,g=m&&m.prototype,b={},E=function(e,t){R(e,t,{get:function(){return function(e,t){var r=C(e);return r.view[s](t*a+r.byteOffset,!0)}(this,t)},set:function(e){return function(e,t,n){var o=C(e);r&&(n=(n=F(n))<0?0:n>255?255:255&n),o.view[f](t*a+o.byteOffset,n,!0)}(this,t,e)},enumerable:!0})};G?u&&(m=t((function(e,t,r,n){return l(e,g),A(w(t)?Z(t)?void 0!==n?new p(t,y(r,a),n):void 0!==r?new p(t,y(r,a)):new p(t):q(t)?Q(m,t):i(k,m,t):new p(v(t)),e,m)})),S&&S(m,Y),j(x(p),(function(e){e in m||d(m,e,p[e])})),m.prototype=g):(m=t((function(e,t,r,n){l(e,g);var o,u,c,s=0,f=0;if(w(t)){if(!Z(t))return q(t)?Q(m,t):i(k,m,t);o=t,f=y(r,a);var d=t.byteLength;if(void 0===n){if(d%a)throw U(X);if((u=d-f)<0)throw U(X)}else if((u=h(n)*a)+f>d)throw U(X);c=u/a}else c=v(t),o=new W(u=c*a);for(M(e,{buffer:o,byteOffset:f,byteLength:u,length:c,view:new B(o)});s<c;)E(e,s++)})),S&&S(m,Y),g=m.prototype=_(H)),g.constructor!==m&&d(g,"constructor",m),N(g).TypedArrayConstructor=m,V&&d(g,V,c);var O=m!=p;b[c]=m,n({global:!0,constructor:!0,forced:O,sham:!G},b),$ in m||d(m,$,a),$ in g||d(g,$,a),T(c)}):e.exports=function(){}},63832:function(e,t,r){var n=r(17854),o=r(47293),i=r(17072),a=r(90260).NATIVE_ARRAY_BUFFER_VIEWS,u=n.ArrayBuffer,c=n.Int8Array;e.exports=!a||!o((function(){c(1)}))||!o((function(){new c(-1)}))||!i((function(e){new c,new c(null),new c(1.5),new c(e)}),!0)||o((function(){return 1!==new c(new u(2),1,void 0).length}))},43074:function(e,t,r){var n=r(97745),o=r(66304);e.exports=function(e,t){return n(o(e),t)}},97321:function(e,t,r){var n=r(49974),o=r(46916),i=r(39483),a=r(47908),u=r(26244),c=r(18554),s=r(71246),l=r(97659),f=r(44067),d=r(90260).aTypedArrayConstructor,p=r(64599);e.exports=function(e){var t,r,h,v,y,m,g,b,w=i(this),E=a(e),_=arguments.length,O=_>1?arguments[1]:void 0,S=void 0!==O,x=s(E);if(x&&!l(x))for(b=(g=c(E,x)).next,E=[];!(m=o(b,g)).done;)E.push(m.value);for(S&&_>2&&(O=n(O,arguments[2])),r=u(E),h=new(d(w))(r),v=f(h),t=0;r>t;t++)y=S?O(E[t],t):E[t],h[t]=v?p(y):+y;return h}},66304:function(e,t,r){var n=r(90260),o=r(36707),i=n.aTypedArrayConstructor,a=n.getTypedArrayConstructor;e.exports=function(e){return i(o(e,a(e)))}},69711:function(e,t,r){var n=r(1702),o=0,i=Math.random(),a=n(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++o+i,36)}},85143:function(e,t,r){var n=r(47293),o=r(5112),i=r(31913),a=o("iterator");e.exports=!n((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,r="";return e.pathname="c%20d",t.forEach((function(e,n){t.delete("b"),r+=n+e})),i&&!e.toJSON||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[a]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==r||"x"!==new URL("http://x",void 0).host}))},43307:function(e,t,r){var n=r(36293);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},3353:function(e,t,r){var n=r(19781),o=r(47293);e.exports=n&&o((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},48053:function(e){var t=TypeError;e.exports=function(e,r){if(e<r)throw t("Not enough arguments");return e}},94811:function(e,t,r){var n=r(17854),o=r(60614),i=n.WeakMap;e.exports=o(i)&&/native code/.test(String(i))},26800:function(e,t,r){var n=r(40857),o=r(92597),i=r(6061),a=r(3070).f;e.exports=function(e){var t=n.Symbol||(n.Symbol={});o(t,e)||a(t,e,{value:i.f(e)})}},6061:function(e,t,r){var n=r(5112);t.f=n},5112:function(e,t,r){var n=r(17854),o=r(72309),i=r(92597),a=r(69711),u=r(36293),c=r(43307),s=o("wks"),l=n.Symbol,f=l&&l.for,d=c?l:l&&l.withoutSetter||a;e.exports=function(e){if(!i(s,e)||!u&&"string"!=typeof s[e]){var t="Symbol."+e;u&&i(l,e)?s[e]=l[e]:s[e]=c&&f?f(t):d(t)}return s[e]}},81361:function(e){e.exports="\t\n\v\f\r \u2028\u2029\ufeff"},92222:function(e,t,r){"use strict";var n=r(82109),o=r(47293),i=r(43157),a=r(70111),u=r(47908),c=r(26244),s=r(7207),l=r(86135),f=r(65417),d=r(81194),p=r(5112),h=r(7392),v=p("isConcatSpreadable"),y=h>=51||!o((function(){var e=[];return e[v]=!1,e.concat()[0]!==e})),m=d("concat"),g=function(e){if(!a(e))return!1;var t=e[v];return void 0!==t?!!t:i(e)};n({target:"Array",proto:!0,arity:1,forced:!y||!m},{concat:function(e){var t,r,n,o,i,a=u(this),d=f(a,0),p=0;for(t=-1,n=arguments.length;t<n;t++)if(g(i=-1===t?a:arguments[t]))for(o=c(i),s(p+o),r=0;r<o;r++,p++)r in i&&l(d,p,i[r]);else s(p+1),l(d,p++,i);return d.length=p,d}})},43290:function(e,t,r){var n=r(82109),o=r(21285),i=r(51223);n({target:"Array",proto:!0},{fill:o}),i("fill")},57327:function(e,t,r){"use strict";var n=r(82109),o=r(42092).filter;n({target:"Array",proto:!0,forced:!r(81194)("filter")},{filter:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},69826:function(e,t,r){"use strict";var n=r(82109),o=r(42092).find,i=r(51223),a="find",u=!0;a in[]&&Array(1).find((function(){u=!1})),n({target:"Array",proto:!0,forced:u},{find:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),i(a)},86535:function(e,t,r){"use strict";var n=r(82109),o=r(6790),i=r(19662),a=r(47908),u=r(26244),c=r(65417);n({target:"Array",proto:!0},{flatMap:function(e){var t,r=a(this),n=u(r);return i(e),(t=c(r,0)).length=o(t,r,r,n,0,1,e,arguments.length>1?arguments[1]:void 0),t}})},91038:function(e,t,r){var n=r(82109),o=r(48457);n({target:"Array",stat:!0,forced:!r(17072)((function(e){Array.from(e)}))},{from:o})},26699:function(e,t,r){"use strict";var n=r(82109),o=r(41318).includes,i=r(47293),a=r(51223);n({target:"Array",proto:!0,forced:i((function(){return!Array(1).includes()}))},{includes:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),a("includes")},82772:function(e,t,r){"use strict";var n=r(82109),o=r(1702),i=r(41318).indexOf,a=r(9341),u=o([].indexOf),c=!!u&&1/u([1],1,-0)<0,s=a("indexOf");n({target:"Array",proto:!0,forced:c||!s},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return c?u(this,e,t)||0:i(this,e,t)}})},66992:function(e,t,r){"use strict";var n=r(45656),o=r(51223),i=r(97497),a=r(29909),u=r(3070).f,c=r(51656),s=r(76178),l=r(31913),f=r(19781),d="Array Iterator",p=a.set,h=a.getterFor(d);e.exports=c(Array,"Array",(function(e,t){p(this,{type:d,target:n(e),index:0,kind:t})}),(function(){var e=h(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,s(void 0,!0)):s("keys"==r?n:"values"==r?t[n]:[n,t[n]],!1)}),"values");var v=i.Arguments=i.Array;if(o("keys"),o("values"),o("entries"),!l&&f&&"values"!==v.name)try{u(v,"name",{value:"values"})}catch(e){}},69600:function(e,t,r){"use strict";var n=r(82109),o=r(1702),i=r(68361),a=r(45656),u=r(9341),c=o([].join),s=i!=Object,l=u("join",",");n({target:"Array",proto:!0,forced:s||!l},{join:function(e){return c(a(this),void 0===e?",":e)}})},21249:function(e,t,r){"use strict";var n=r(82109),o=r(42092).map;n({target:"Array",proto:!0,forced:!r(81194)("map")},{map:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},85827:function(e,t,r){"use strict";var n=r(82109),o=r(53671).left,i=r(9341),a=r(7392),u=r(35268);n({target:"Array",proto:!0,forced:!i("reduce")||!u&&a>79&&a<83},{reduce:function(e){var t=arguments.length;return o(this,e,t,t>1?arguments[1]:void 0)}})},47042:function(e,t,r){"use strict";var n=r(82109),o=r(43157),i=r(4411),a=r(70111),u=r(51400),c=r(26244),s=r(45656),l=r(86135),f=r(5112),d=r(81194),p=r(50206),h=d("slice"),v=f("species"),y=Array,m=Math.max;n({target:"Array",proto:!0,forced:!h},{slice:function(e,t){var r,n,f,d=s(this),h=c(d),g=u(e,h),b=u(void 0===t?h:t,h);if(o(d)&&(r=d.constructor,(i(r)&&(r===y||o(r.prototype))||a(r)&&null===(r=r[v]))&&(r=void 0),r===y||void 0===r))return p(d,g,b);for(n=new(void 0===r?y:r)(m(b-g,0)),f=0;g<b;g++,f++)g in d&&l(n,f,d[g]);return n.length=f,n}})},2707:function(e,t,r){"use strict";var n=r(82109),o=r(1702),i=r(19662),a=r(47908),u=r(26244),c=r(85117),s=r(41340),l=r(47293),f=r(94362),d=r(9341),p=r(68886),h=r(30256),v=r(7392),y=r(98008),m=[],g=o(m.sort),b=o(m.push),w=l((function(){m.sort(void 0)})),E=l((function(){m.sort(null)})),_=d("sort"),O=!l((function(){if(v)return v<70;if(!(p&&p>3)){if(h)return!0;if(y)return y<603;var e,t,r,n,o="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:r=3;break;case 68:case 71:r=4;break;default:r=2}for(n=0;n<47;n++)m.push({k:t+n,v:r})}for(m.sort((function(e,t){return t.v-e.v})),n=0;n<m.length;n++)t=m[n].k.charAt(0),o.charAt(o.length-1)!==t&&(o+=t);return"DGBEFHACIJK"!==o}}));n({target:"Array",proto:!0,forced:w||!E||!_||!O},{sort:function(e){void 0!==e&&i(e);var t=a(this);if(O)return void 0===e?g(t):g(t,e);var r,n,o=[],l=u(t);for(n=0;n<l;n++)n in t&&b(o,t[n]);for(f(o,function(e){return function(t,r){return void 0===r?-1:void 0===t?1:void 0!==e?+e(t,r)||0:s(t)>s(r)?1:-1}}(e)),r=u(o),n=0;n<r;)t[n]=o[n++];for(;n<l;)c(t,n++);return t}})},40561:function(e,t,r){"use strict";var n=r(82109),o=r(47908),i=r(51400),a=r(19303),u=r(26244),c=r(83658),s=r(7207),l=r(65417),f=r(86135),d=r(85117),p=r(81194)("splice"),h=Math.max,v=Math.min;n({target:"Array",proto:!0,forced:!p},{splice:function(e,t){var r,n,p,y,m,g,b=o(this),w=u(b),E=i(e,w),_=arguments.length;for(0===_?r=n=0:1===_?(r=0,n=w-E):(r=_-2,n=v(h(a(t),0),w-E)),s(w+r-n),p=l(b,n),y=0;y<n;y++)(m=E+y)in b&&f(p,y,b[m]);if(p.length=n,r<n){for(y=E;y<w-n;y++)g=y+r,(m=y+n)in b?b[g]=b[m]:d(b,g);for(y=w;y>w-n+r;y--)d(b,y-1)}else if(r>n)for(y=w-n;y>E;y--)g=y+r-1,(m=y+n-1)in b?b[g]=b[m]:d(b,g);for(y=0;y<r;y++)b[y+E]=arguments[y+2];return c(b,w-n+r),p}})},99244:function(e,t,r){r(51223)("flatMap")},68309:function(e,t,r){var n=r(19781),o=r(76530).EXISTS,i=r(1702),a=r(3070).f,u=Function.prototype,c=i(u.toString),s=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,l=i(s.exec);n&&!o&&a(u,"name",{configurable:!0,get:function(){try{return l(s,c(this))[1]}catch(e){return""}}})},38862:function(e,t,r){var n=r(82109),o=r(35005),i=r(22104),a=r(46916),u=r(1702),c=r(47293),s=r(43157),l=r(60614),f=r(70111),d=r(52190),p=r(50206),h=r(36293),v=o("JSON","stringify"),y=u(/./.exec),m=u("".charAt),g=u("".charCodeAt),b=u("".replace),w=u(1..toString),E=/[\uD800-\uDFFF]/g,_=/^[\uD800-\uDBFF]$/,O=/^[\uDC00-\uDFFF]$/,S=!h||c((function(){var e=o("Symbol")();return"[null]"!=v([e])||"{}"!=v({a:e})||"{}"!=v(Object(e))})),x=c((function(){return'"\\udf06\\ud834"'!==v("\udf06\ud834")||'"\\udead"'!==v("\udead")})),k=function(e,t){var r=p(arguments),n=t;if((f(t)||void 0!==e)&&!d(e))return s(t)||(t=function(e,t){if(l(n)&&(t=a(n,this,e,t)),!d(t))return t}),r[1]=t,i(v,null,r)},j=function(e,t,r){var n=m(r,t-1),o=m(r,t+1);return y(_,e)&&!y(O,o)||y(O,e)&&!y(_,n)?"\\u"+w(g(e,0),16):e};v&&n({target:"JSON",stat:!0,arity:3,forced:S||x},{stringify:function(e,t,r){var n=p(arguments),o=i(S?k:v,null,n);return x&&"string"==typeof o?b(o,E,j):o}})},73706:function(e,t,r){var n=r(17854);r(58003)(n.JSON,"JSON",!0)},69098:function(e,t,r){"use strict";r(77710)("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),r(95631))},51532:function(e,t,r){r(69098)},10408:function(e,t,r){r(58003)(Math,"Math",!0)},9653:function(e,t,r){"use strict";var n=r(19781),o=r(17854),i=r(1702),a=r(54705),u=r(98052),c=r(92597),s=r(79587),l=r(47976),f=r(52190),d=r(57593),p=r(47293),h=r(8006).f,v=r(31236).f,y=r(3070).f,m=r(50863),g=r(53111).trim,b="Number",w=o.Number,E=w.prototype,_=o.TypeError,O=i("".slice),S=i("".charCodeAt),x=function(e){var t=d(e,"number");return"bigint"==typeof t?t:k(t)},k=function(e){var t,r,n,o,i,a,u,c,s=d(e,"number");if(f(s))throw _("Cannot convert a Symbol value to a number");if("string"==typeof s&&s.length>2)if(s=g(s),43===(t=S(s,0))||45===t){if(88===(r=S(s,2))||120===r)return NaN}else if(48===t){switch(S(s,1)){case 66:case 98:n=2,o=49;break;case 79:case 111:n=8,o=55;break;default:return+s}for(a=(i=O(s,2)).length,u=0;u<a;u++)if((c=S(i,u))<48||c>o)return NaN;return parseInt(i,n)}return+s};if(a(b,!w(" 0o1")||!w("0b1")||w("+0x1"))){for(var j,T=function(e){var t=arguments.length<1?0:w(x(e)),r=this;return l(E,r)&&p((function(){m(r)}))?s(Object(t),r,T):t},P=n?h(w):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),L=0;P.length>L;L++)c(w,j=P[L])&&!c(T,j)&&y(T,j,v(w,j));T.prototype=E,E.constructor=T,u(o,b,T,{constructor:!0})}},19601:function(e,t,r){var n=r(82109),o=r(21574);n({target:"Object",stat:!0,arity:2,forced:Object.assign!==o},{assign:o})},33321:function(e,t,r){var n=r(82109),o=r(19781),i=r(36048).f;n({target:"Object",stat:!0,forced:Object.defineProperties!==i,sham:!o},{defineProperties:i})},69070:function(e,t,r){var n=r(82109),o=r(19781),i=r(3070).f;n({target:"Object",stat:!0,forced:Object.defineProperty!==i,sham:!o},{defineProperty:i})},43371:function(e,t,r){var n=r(82109),o=r(76677),i=r(47293),a=r(70111),u=r(62423).onFreeze,c=Object.freeze;n({target:"Object",stat:!0,forced:i((function(){c(1)})),sham:!o},{freeze:function(e){return c&&a(e)?c(u(e)):e}})},38880:function(e,t,r){var n=r(82109),o=r(47293),i=r(45656),a=r(31236).f,u=r(19781),c=o((function(){a(1)}));n({target:"Object",stat:!0,forced:!u||c,sham:!u},{getOwnPropertyDescriptor:function(e,t){return a(i(e),t)}})},49337:function(e,t,r){var n=r(82109),o=r(19781),i=r(53887),a=r(45656),u=r(31236),c=r(86135);n({target:"Object",stat:!0,sham:!o},{getOwnPropertyDescriptors:function(e){for(var t,r,n=a(e),o=u.f,s=i(n),l={},f=0;s.length>f;)void 0!==(r=o(n,t=s[f++]))&&c(l,t,r);return l}})},36210:function(e,t,r){var n=r(82109),o=r(47293),i=r(1156).f;n({target:"Object",stat:!0,forced:o((function(){return!Object.getOwnPropertyNames(1)}))},{getOwnPropertyNames:i})},29660:function(e,t,r){var n=r(82109),o=r(36293),i=r(47293),a=r(25181),u=r(47908);n({target:"Object",stat:!0,forced:!o||i((function(){a.f(1)}))},{getOwnPropertySymbols:function(e){var t=a.f;return t?t(u(e)):[]}})},30489:function(e,t,r){var n=r(82109),o=r(47293),i=r(47908),a=r(79518),u=r(49920);n({target:"Object",stat:!0,forced:o((function(){a(1)})),sham:!u},{getPrototypeOf:function(e){return a(i(e))}})},47941:function(e,t,r){var n=r(82109),o=r(47908),i=r(81956);n({target:"Object",stat:!0,forced:r(47293)((function(){i(1)}))},{keys:function(e){return i(o(e))}})},68304:function(e,t,r){r(82109)({target:"Object",stat:!0},{setPrototypeOf:r(27674)})},41539:function(e,t,r){var n=r(51694),o=r(98052),i=r(90288);n||o(Object.prototype,"toString",i,{unsafe:!0})},26833:function(e,t,r){var n=r(82109),o=r(44699).values;n({target:"Object",stat:!0},{values:function(e){return o(e)}})},91058:function(e,t,r){var n=r(82109),o=r(83009);n({global:!0,forced:parseInt!=o},{parseInt:o})},12419:function(e,t,r){var n=r(82109),o=r(35005),i=r(22104),a=r(27065),u=r(39483),c=r(19670),s=r(70111),l=r(70030),f=r(47293),d=o("Reflect","construct"),p=Object.prototype,h=[].push,v=f((function(){function e(){}return!(d((function(){}),[],e)instanceof e)})),y=!f((function(){d((function(){}))})),m=v||y;n({target:"Reflect",stat:!0,forced:m,sham:m},{construct:function(e,t){u(e),c(t);var r=arguments.length<3?e:u(arguments[2]);if(y&&!v)return d(e,t,r);if(e==r){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var n=[null];return i(h,n,t),new(i(a,e,n))}var o=r.prototype,f=l(s(o)?o:p),m=i(e,f,t);return s(m)?m:f}})},74819:function(e,t,r){var n=r(82109),o=r(46916),i=r(70111),a=r(19670),u=r(45032),c=r(31236),s=r(79518);n({target:"Reflect",stat:!0},{get:function e(t,r){var n,l,f=arguments.length<3?t:arguments[2];return a(t)===f?t[r]:(n=c.f(t,r))?u(n)?n.value:void 0===n.get?void 0:o(n.get,f):i(l=s(t))?e(l,r,f):void 0}})},24603:function(e,t,r){var n=r(19781),o=r(17854),i=r(1702),a=r(54705),u=r(79587),c=r(68880),s=r(8006).f,l=r(47976),f=r(47850),d=r(41340),p=r(34706),h=r(52999),v=r(2626),y=r(98052),m=r(47293),g=r(92597),b=r(29909).enforce,w=r(96340),E=r(5112),_=r(9441),O=r(38173),S=E("match"),x=o.RegExp,k=x.prototype,j=o.SyntaxError,T=i(k.exec),P=i("".charAt),L=i("".replace),I=i("".indexOf),A=i("".slice),C=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,M=/a/g,N=/a/g,R=new x(M)!==M,D=h.MISSED_STICKY,F=h.UNSUPPORTED_Y;if(a("RegExp",n&&(!R||D||_||O||m((function(){return N[S]=!1,x(M)!=M||x(N)==N||"/a/i"!=x(M,"i")}))))){for(var U=function(e,t){var r,n,o,i,a,s,h=l(k,this),v=f(e),y=void 0===t,m=[],w=e;if(!h&&v&&y&&e.constructor===U)return e;if((v||l(k,e))&&(e=e.source,y&&(t=p(w))),e=void 0===e?"":d(e),t=void 0===t?"":d(t),w=e,_&&"dotAll"in M&&(n=!!t&&I(t,"s")>-1)&&(t=L(t,/s/g,"")),r=t,D&&"sticky"in M&&(o=!!t&&I(t,"y")>-1)&&F&&(t=L(t,/y/g,"")),O&&(i=function(e){for(var t,r=e.length,n=0,o="",i=[],a={},u=!1,c=!1,s=0,l="";n<=r;n++){if("\\"===(t=P(e,n)))t+=P(e,++n);else if("]"===t)u=!1;else if(!u)switch(!0){case"["===t:u=!0;break;case"("===t:T(C,A(e,n+1))&&(n+=2,c=!0),o+=t,s++;continue;case">"===t&&c:if(""===l||g(a,l))throw new j("Invalid capture group name");a[l]=!0,i[i.length]=[l,s],c=!1,l="";continue}c?l+=t:o+=t}return[o,i]}(e),e=i[0],m=i[1]),a=u(x(e,t),h?this:k,U),(n||o||m.length)&&(s=b(a),n&&(s.dotAll=!0,s.raw=U(function(e){for(var t,r=e.length,n=0,o="",i=!1;n<=r;n++)"\\"!==(t=P(e,n))?i||"."!==t?("["===t?i=!0:"]"===t&&(i=!1),o+=t):o+="[\\s\\S]":o+=t+P(e,++n);return o}(e),r)),o&&(s.sticky=!0),m.length&&(s.groups=m)),e!==w)try{c(a,"source",""===w?"(?:)":w)}catch(e){}return a},W=s(x),z=0;W.length>z;)v(U,x,W[z++]);k.constructor=U,U.prototype=k,y(o,"RegExp",U,{constructor:!0})}w("RegExp")},74916:function(e,t,r){"use strict";var n=r(82109),o=r(22261);n({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},39714:function(e,t,r){"use strict";var n=r(76530).PROPER,o=r(98052),i=r(19670),a=r(41340),u=r(47293),c=r(34706),s="toString",l=RegExp.prototype.toString,f=u((function(){return"/a/b"!=l.call({source:"a",flags:"b"})})),d=n&&l.name!=s;(f||d)&&o(RegExp.prototype,s,(function(){var e=i(this);return"/"+a(e.source)+"/"+a(c(e))}),{unsafe:!0})},37227:function(e,t,r){"use strict";r(77710)("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),r(95631))},70189:function(e,t,r){r(37227)},32023:function(e,t,r){"use strict";var n=r(82109),o=r(1702),i=r(3929),a=r(84488),u=r(41340),c=r(84964),s=o("".indexOf);n({target:"String",proto:!0,forced:!c("includes")},{includes:function(e){return!!~s(u(a(this)),u(i(e)),arguments.length>1?arguments[1]:void 0)}})},78783:function(e,t,r){"use strict";var n=r(28710).charAt,o=r(41340),i=r(29909),a=r(51656),u=r(76178),c="String Iterator",s=i.set,l=i.getterFor(c);a(String,"String",(function(e){s(this,{type:c,string:o(e),index:0})}),(function(){var e,t=l(this),r=t.string,o=t.index;return o>=r.length?u(void 0,!0):(e=n(r,o),t.index+=e.length,u(e,!1))}))},4723:function(e,t,r){"use strict";var n=r(46916),o=r(27007),i=r(19670),a=r(68554),u=r(17466),c=r(41340),s=r(84488),l=r(58173),f=r(31530),d=r(97651);o("match",(function(e,t,r){return[function(t){var r=s(this),o=a(t)?void 0:l(t,e);return o?n(o,t,r):new RegExp(t)[e](c(r))},function(e){var n=i(this),o=c(e),a=r(t,n,o);if(a.done)return a.value;if(!n.global)return d(n,o);var s=n.unicode;n.lastIndex=0;for(var l,p=[],h=0;null!==(l=d(n,o));){var v=c(l[0]);p[h]=v,""===v&&(n.lastIndex=f(o,u(n.lastIndex),s)),h++}return 0===h?null:p}]}))},83112:function(e,t,r){"use strict";var n=r(82109),o=r(76650).start;n({target:"String",proto:!0,forced:r(54986)},{padStart:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},15306:function(e,t,r){"use strict";var n=r(22104),o=r(46916),i=r(1702),a=r(27007),u=r(47293),c=r(19670),s=r(60614),l=r(68554),f=r(19303),d=r(17466),p=r(41340),h=r(84488),v=r(31530),y=r(58173),m=r(10647),g=r(97651),b=r(5112)("replace"),w=Math.max,E=Math.min,_=i([].concat),O=i([].push),S=i("".indexOf),x=i("".slice),k="$0"==="a".replace(/./,"$0"),j=!!/./[b]&&""===/./[b]("a","$0");a("replace",(function(e,t,r){var i=j?"$":"$0";return[function(e,r){var n=h(this),i=l(e)?void 0:y(e,b);return i?o(i,e,n,r):o(t,p(n),e,r)},function(e,o){var a=c(this),u=p(e);if("string"==typeof o&&-1===S(o,i)&&-1===S(o,"$<")){var l=r(t,a,u,o);if(l.done)return l.value}var h=s(o);h||(o=p(o));var y=a.global;if(y){var b=a.unicode;a.lastIndex=0}for(var k=[];;){var j=g(a,u);if(null===j)break;if(O(k,j),!y)break;""===p(j[0])&&(a.lastIndex=v(u,d(a.lastIndex),b))}for(var T,P="",L=0,I=0;I<k.length;I++){for(var A=p((j=k[I])[0]),C=w(E(f(j.index),u.length),0),M=[],N=1;N<j.length;N++)O(M,void 0===(T=j[N])?T:String(T));var R=j.groups;if(h){var D=_([A],M,C,u);void 0!==R&&O(D,R);var F=p(n(o,void 0,D))}else F=m(A,u,C,M,R,o);C>=L&&(P+=x(u,L,C)+F,L=C+A.length)}return P+x(u,L)}]}),!!u((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!k||j)},23123:function(e,t,r){"use strict";var n=r(22104),o=r(46916),i=r(1702),a=r(27007),u=r(19670),c=r(68554),s=r(47850),l=r(84488),f=r(36707),d=r(31530),p=r(17466),h=r(41340),v=r(58173),y=r(41589),m=r(97651),g=r(22261),b=r(52999),w=r(47293),E=b.UNSUPPORTED_Y,_=4294967295,O=Math.min,S=[].push,x=i(/./.exec),k=i(S),j=i("".slice),T=!w((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var r="ab".split(e);return 2!==r.length||"a"!==r[0]||"b"!==r[1]}));a("split",(function(e,t,r){var i;return i="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,r){var i=h(l(this)),a=void 0===r?_:r>>>0;if(0===a)return[];if(void 0===e)return[i];if(!s(e))return o(t,i,e,a);for(var u,c,f,d=[],p=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),v=0,m=new RegExp(e.source,p+"g");(u=o(g,m,i))&&!((c=m.lastIndex)>v&&(k(d,j(i,v,u.index)),u.length>1&&u.index<i.length&&n(S,d,y(u,1)),f=u[0].length,v=c,d.length>=a));)m.lastIndex===u.index&&m.lastIndex++;return v===i.length?!f&&x(m,"")||k(d,""):k(d,j(i,v)),d.length>a?y(d,0,a):d}:"0".split(void 0,0).length?function(e,r){return void 0===e&&0===r?[]:o(t,this,e,r)}:t,[function(t,r){var n=l(this),a=c(t)?void 0:v(t,e);return a?o(a,t,n,r):o(i,h(n),t,r)},function(e,n){var o=u(this),a=h(e),c=r(i,o,a,n,i!==t);if(c.done)return c.value;var s=f(o,RegExp),l=o.unicode,v=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(E?"g":"y"),y=new s(E?"^(?:"+o.source+")":o,v),g=void 0===n?_:n>>>0;if(0===g)return[];if(0===a.length)return null===m(y,a)?[a]:[];for(var b=0,w=0,S=[];w<a.length;){y.lastIndex=E?0:w;var x,T=m(y,E?j(a,w):a);if(null===T||(x=O(p(y.lastIndex+(E?w:0)),a.length))===b)w=d(a,w,l);else{if(k(S,j(a,b,w)),S.length===g)return S;for(var P=1;P<=T.length-1;P++)if(k(S,T[P]),S.length===g)return S;w=b=x}}return k(S,j(a,b)),S}]}),!T,E)},73210:function(e,t,r){"use strict";var n=r(82109),o=r(53111).trim;n({target:"String",proto:!0,forced:r(76091)("trim")},{trim:function(){return o(this)}})},72443:function(e,t,r){r(26800)("asyncIterator")},4032:function(e,t,r){"use strict";var n=r(82109),o=r(17854),i=r(46916),a=r(1702),u=r(31913),c=r(19781),s=r(36293),l=r(47293),f=r(92597),d=r(47976),p=r(19670),h=r(45656),v=r(34948),y=r(41340),m=r(79114),g=r(70030),b=r(81956),w=r(8006),E=r(1156),_=r(25181),O=r(31236),S=r(3070),x=r(36048),k=r(55296),j=r(98052),T=r(72309),P=r(6200),L=r(3501),I=r(69711),A=r(5112),C=r(6061),M=r(26800),N=r(56532),R=r(58003),D=r(29909),F=r(42092).forEach,U=P("hidden"),W="Symbol",z=D.set,B=D.getterFor(W),G=Object.prototype,V=o.Symbol,Y=V&&V.prototype,H=o.TypeError,K=o.QObject,q=O.f,$=S.f,X=E.f,Q=k.f,J=a([].push),Z=T("symbols"),ee=T("op-symbols"),te=T("wks"),re=!K||!K.prototype||!K.prototype.findChild,ne=c&&l((function(){return 7!=g($({},"a",{get:function(){return $(this,"a",{value:7}).a}})).a}))?function(e,t,r){var n=q(G,t);n&&delete G[t],$(e,t,r),n&&e!==G&&$(G,t,n)}:$,oe=function(e,t){var r=Z[e]=g(Y);return z(r,{type:W,tag:e,description:t}),c||(r.description=t),r},ie=function(e,t,r){e===G&&ie(ee,t,r),p(e);var n=v(t);return p(r),f(Z,n)?(r.enumerable?(f(e,U)&&e[U][n]&&(e[U][n]=!1),r=g(r,{enumerable:m(0,!1)})):(f(e,U)||$(e,U,m(1,{})),e[U][n]=!0),ne(e,n,r)):$(e,n,r)},ae=function(e,t){p(e);var r=h(t),n=b(r).concat(le(r));return F(n,(function(t){c&&!i(ue,r,t)||ie(e,t,r[t])})),e},ue=function(e){var t=v(e),r=i(Q,this,t);return!(this===G&&f(Z,t)&&!f(ee,t))&&(!(r||!f(this,t)||!f(Z,t)||f(this,U)&&this[U][t])||r)},ce=function(e,t){var r=h(e),n=v(t);if(r!==G||!f(Z,n)||f(ee,n)){var o=q(r,n);return!o||!f(Z,n)||f(r,U)&&r[U][n]||(o.enumerable=!0),o}},se=function(e){var t=X(h(e)),r=[];return F(t,(function(e){f(Z,e)||f(L,e)||J(r,e)})),r},le=function(e){var t=e===G,r=X(t?ee:h(e)),n=[];return F(r,(function(e){!f(Z,e)||t&&!f(G,e)||J(n,Z[e])})),n};s||(V=function(){if(d(Y,this))throw H("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?y(arguments[0]):void 0,t=I(e),r=function(e){this===G&&i(r,ee,e),f(this,U)&&f(this[U],t)&&(this[U][t]=!1),ne(this,t,m(1,e))};return c&&re&&ne(G,t,{configurable:!0,set:r}),oe(t,e)},j(Y=V.prototype,"toString",(function(){return B(this).tag})),j(V,"withoutSetter",(function(e){return oe(I(e),e)})),k.f=ue,S.f=ie,x.f=ae,O.f=ce,w.f=E.f=se,_.f=le,C.f=function(e){return oe(A(e),e)},c&&($(Y,"description",{configurable:!0,get:function(){return B(this).description}}),u||j(G,"propertyIsEnumerable",ue,{unsafe:!0}))),n({global:!0,constructor:!0,wrap:!0,forced:!s,sham:!s},{Symbol:V}),F(b(te),(function(e){M(e)})),n({target:W,stat:!0,forced:!s},{useSetter:function(){re=!0},useSimple:function(){re=!1}}),n({target:"Object",stat:!0,forced:!s,sham:!c},{create:function(e,t){return void 0===t?g(e):ae(g(e),t)},defineProperty:ie,defineProperties:ae,getOwnPropertyDescriptor:ce}),n({target:"Object",stat:!0,forced:!s},{getOwnPropertyNames:se}),N(),R(V,W),L[U]=!0},41817:function(e,t,r){"use strict";var n=r(82109),o=r(19781),i=r(17854),a=r(1702),u=r(92597),c=r(60614),s=r(47976),l=r(41340),f=r(3070).f,d=r(99920),p=i.Symbol,h=p&&p.prototype;if(o&&c(p)&&(!("description"in h)||void 0!==p().description)){var v={},y=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:l(arguments[0]),t=s(h,this)?new p(e):void 0===e?p():p(e);return""===e&&(v[t]=!0),t};d(y,p),y.prototype=h,h.constructor=y;var m="Symbol(test)"==String(p("test")),g=a(h.valueOf),b=a(h.toString),w=/^Symbol\((.*)\)[^)]+$/,E=a("".replace),_=a("".slice);f(h,"description",{configurable:!0,get:function(){var e=g(this);if(u(v,e))return"";var t=b(e),r=m?_(t,7,-1):E(t,w,"$1");return""===r?void 0:r}}),n({global:!0,constructor:!0,forced:!0},{Symbol:y})}},40763:function(e,t,r){var n=r(82109),o=r(35005),i=r(92597),a=r(41340),u=r(72309),c=r(2015),s=u("string-to-symbol-registry"),l=u("symbol-to-string-registry");n({target:"Symbol",stat:!0,forced:!c},{for:function(e){var t=a(e);if(i(s,t))return s[t];var r=o("Symbol")(t);return s[t]=r,l[r]=t,r}})},32165:function(e,t,r){r(26800)("iterator")},82526:function(e,t,r){r(4032),r(40763),r(26620),r(38862),r(29660)},26620:function(e,t,r){var n=r(82109),o=r(92597),i=r(52190),a=r(66330),u=r(72309),c=r(2015),s=u("symbol-to-string-registry");n({target:"Symbol",stat:!0,forced:!c},{keyFor:function(e){if(!i(e))throw TypeError(a(e)+" is not a symbol");if(o(s,e))return s[e]}})},39341:function(e,t,r){var n=r(35005),o=r(26800),i=r(58003);o("toStringTag"),i(n("Symbol"),"Symbol")},92990:function(e,t,r){"use strict";var n=r(1702),o=r(90260),i=n(r(1048)),a=o.aTypedArray;(0,o.exportTypedArrayMethod)("copyWithin",(function(e,t){return i(a(this),e,t,arguments.length>2?arguments[2]:void 0)}))},18927:function(e,t,r){"use strict";var n=r(90260),o=r(42092).every,i=n.aTypedArray;(0,n.exportTypedArrayMethod)("every",(function(e){return o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},33105:function(e,t,r){"use strict";var n=r(90260),o=r(21285),i=r(64599),a=r(70648),u=r(46916),c=r(1702),s=r(47293),l=n.aTypedArray,f=n.exportTypedArrayMethod,d=c("".slice);f("fill",(function(e){var t=arguments.length;l(this);var r="Big"===d(a(this),0,3)?i(e):+e;return u(o,this,r,t>1?arguments[1]:void 0,t>2?arguments[2]:void 0)}),s((function(){var e=0;return new Int8Array(2).fill({valueOf:function(){return e++}}),1!==e})))},35035:function(e,t,r){"use strict";var n=r(90260),o=r(42092).filter,i=r(43074),a=n.aTypedArray;(0,n.exportTypedArrayMethod)("filter",(function(e){var t=o(a(this),e,arguments.length>1?arguments[1]:void 0);return i(this,t)}))},7174:function(e,t,r){"use strict";var n=r(90260),o=r(42092).findIndex,i=n.aTypedArray;(0,n.exportTypedArrayMethod)("findIndex",(function(e){return o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},74345:function(e,t,r){"use strict";var n=r(90260),o=r(42092).find,i=n.aTypedArray;(0,n.exportTypedArrayMethod)("find",(function(e){return o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},32846:function(e,t,r){"use strict";var n=r(90260),o=r(42092).forEach,i=n.aTypedArray;(0,n.exportTypedArrayMethod)("forEach",(function(e){o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},44731:function(e,t,r){"use strict";var n=r(90260),o=r(41318).includes,i=n.aTypedArray;(0,n.exportTypedArrayMethod)("includes",(function(e){return o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},77209:function(e,t,r){"use strict";var n=r(90260),o=r(41318).indexOf,i=n.aTypedArray;(0,n.exportTypedArrayMethod)("indexOf",(function(e){return o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},96319:function(e,t,r){"use strict";var n=r(17854),o=r(47293),i=r(1702),a=r(90260),u=r(66992),c=r(5112)("iterator"),s=n.Uint8Array,l=i(u.values),f=i(u.keys),d=i(u.entries),p=a.aTypedArray,h=a.exportTypedArrayMethod,v=s&&s.prototype,y=!o((function(){v[c].call([1])})),m=!!v&&v.values&&v[c]===v.values&&"values"===v.values.name,g=function(){return l(p(this))};h("entries",(function(){return d(p(this))}),y),h("keys",(function(){return f(p(this))}),y),h("values",g,y||!m,{name:"values"}),h(c,g,y||!m,{name:"values"})},58867:function(e,t,r){"use strict";var n=r(90260),o=r(1702),i=n.aTypedArray,a=n.exportTypedArrayMethod,u=o([].join);a("join",(function(e){return u(i(this),e)}))},37789:function(e,t,r){"use strict";var n=r(90260),o=r(22104),i=r(86583),a=n.aTypedArray;(0,n.exportTypedArrayMethod)("lastIndexOf",(function(e){var t=arguments.length;return o(i,a(this),t>1?[e,arguments[1]]:[e])}))},33739:function(e,t,r){"use strict";var n=r(90260),o=r(42092).map,i=r(66304),a=n.aTypedArray;(0,n.exportTypedArrayMethod)("map",(function(e){return o(a(this),e,arguments.length>1?arguments[1]:void 0,(function(e,t){return new(i(e))(t)}))}))},14483:function(e,t,r){"use strict";var n=r(90260),o=r(53671).right,i=n.aTypedArray;(0,n.exportTypedArrayMethod)("reduceRight",(function(e){var t=arguments.length;return o(i(this),e,t,t>1?arguments[1]:void 0)}))},29368:function(e,t,r){"use strict";var n=r(90260),o=r(53671).left,i=n.aTypedArray;(0,n.exportTypedArrayMethod)("reduce",(function(e){var t=arguments.length;return o(i(this),e,t,t>1?arguments[1]:void 0)}))},12056:function(e,t,r){"use strict";var n=r(90260),o=n.aTypedArray,i=n.exportTypedArrayMethod,a=Math.floor;i("reverse",(function(){for(var e,t=this,r=o(t).length,n=a(r/2),i=0;i<n;)e=t[i],t[i++]=t[--r],t[r]=e;return t}))},3462:function(e,t,r){"use strict";var n=r(17854),o=r(46916),i=r(90260),a=r(26244),u=r(84590),c=r(47908),s=r(47293),l=n.RangeError,f=n.Int8Array,d=f&&f.prototype,p=d&&d.set,h=i.aTypedArray,v=i.exportTypedArrayMethod,y=!s((function(){var e=new Uint8ClampedArray(2);return o(p,e,{length:1,0:3},1),3!==e[1]})),m=y&&i.NATIVE_ARRAY_BUFFER_VIEWS&&s((function(){var e=new f(2);return e.set(1),e.set("2",1),0!==e[0]||2!==e[1]}));v("set",(function(e){h(this);var t=u(arguments.length>1?arguments[1]:void 0,1),r=c(e);if(y)return o(p,this,r,t);var n=this.length,i=a(r),s=0;if(i+t>n)throw l("Wrong length");for(;s<i;)this[t+s]=r[s++]}),!y||m)},30678:function(e,t,r){"use strict";var n=r(90260),o=r(66304),i=r(47293),a=r(50206),u=n.aTypedArray;(0,n.exportTypedArrayMethod)("slice",(function(e,t){for(var r=a(u(this),e,t),n=o(this),i=0,c=r.length,s=new n(c);c>i;)s[i]=r[i++];return s}),i((function(){new Int8Array(1).slice()})))},27462:function(e,t,r){"use strict";var n=r(90260),o=r(42092).some,i=n.aTypedArray;(0,n.exportTypedArrayMethod)("some",(function(e){return o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},33824:function(e,t,r){"use strict";var n=r(17854),o=r(1702),i=r(47293),a=r(19662),u=r(94362),c=r(90260),s=r(68886),l=r(30256),f=r(7392),d=r(98008),p=c.aTypedArray,h=c.exportTypedArrayMethod,v=n.Uint16Array,y=v&&o(v.prototype.sort),m=!(!y||i((function(){y(new v(2),null)}))&&i((function(){y(new v(2),{})}))),g=!!y&&!i((function(){if(f)return f<74;if(s)return s<67;if(l)return!0;if(d)return d<602;var e,t,r=new v(516),n=Array(516);for(e=0;e<516;e++)t=e%4,r[e]=515-e,n[e]=e-2*t+3;for(y(r,(function(e,t){return(e/4|0)-(t/4|0)})),e=0;e<516;e++)if(r[e]!==n[e])return!0}));h("sort",(function(e){return void 0!==e&&a(e),g?y(this,e):u(p(this),function(e){return function(t,r){return void 0!==e?+e(t,r)||0:r!=r?-1:t!=t?1:0===t&&0===r?1/t>0&&1/r<0?1:-1:t>r}}(e))}),!g||m)},55021:function(e,t,r){"use strict";var n=r(90260),o=r(17466),i=r(51400),a=r(66304),u=n.aTypedArray;(0,n.exportTypedArrayMethod)("subarray",(function(e,t){var r=u(this),n=r.length,c=i(e,n);return new(a(r))(r.buffer,r.byteOffset+c*r.BYTES_PER_ELEMENT,o((void 0===t?n:i(t,n))-c))}))},12974:function(e,t,r){"use strict";var n=r(17854),o=r(22104),i=r(90260),a=r(47293),u=r(50206),c=n.Int8Array,s=i.aTypedArray,l=i.exportTypedArrayMethod,f=[].toLocaleString,d=!!c&&a((function(){f.call(new c(1))}));l("toLocaleString",(function(){return o(f,d?u(s(this)):s(this),u(arguments))}),a((function(){return[1,2].toLocaleString()!=new c([1,2]).toLocaleString()}))||!a((function(){c.prototype.toLocaleString.call([1,2])})))},15016:function(e,t,r){"use strict";var n=r(90260).exportTypedArrayMethod,o=r(47293),i=r(17854),a=r(1702),u=i.Uint8Array,c=u&&u.prototype||{},s=[].toString,l=a([].join);o((function(){s.call({})}))&&(s=function(){return l(this)});var f=c.toString!=s;n("toString",s,f)},8255:function(e,t,r){r(19843)("Uint16",(function(e){return function(t,r,n){return e(this,t,r,n)}}))},82472:function(e,t,r){r(19843)("Uint8",(function(e){return function(t,r,n){return e(this,t,r,n)}}))},41202:function(e,t,r){"use strict";var n,o=r(17854),i=r(1702),a=r(89190),u=r(62423),c=r(77710),s=r(29320),l=r(70111),f=r(52050),d=r(29909).enforce,p=r(94811),h=!o.ActiveXObject&&"ActiveXObject"in o,v=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},y=c("WeakMap",v,s);if(p&&h){n=s.getConstructor(v,"WeakMap",!0),u.enable();var m=y.prototype,g=i(m.delete),b=i(m.has),w=i(m.get),E=i(m.set);a(m,{delete:function(e){if(l(e)&&!f(e)){var t=d(this);return t.frozen||(t.frozen=new n),g(this,e)||t.frozen.delete(e)}return g(this,e)},has:function(e){if(l(e)&&!f(e)){var t=d(this);return t.frozen||(t.frozen=new n),b(this,e)||t.frozen.has(e)}return b(this,e)},get:function(e){if(l(e)&&!f(e)){var t=d(this);return t.frozen||(t.frozen=new n),b(this,e)?w(this,e):t.frozen.get(e)}return w(this,e)},set:function(e,t){if(l(e)&&!f(e)){var r=d(this);r.frozen||(r.frozen=new n),b(this,e)?E(this,e,t):r.frozen.set(e,t)}else E(this,e,t);return this}})}},4129:function(e,t,r){r(41202)},72098:function(e,t,r){"use strict";r(77710)("WeakSet",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),r(29320))},38478:function(e,t,r){r(72098)},54747:function(e,t,r){var n=r(17854),o=r(48324),i=r(98509),a=r(18533),u=r(68880),c=function(e){if(e&&e.forEach!==a)try{u(e,"forEach",a)}catch(t){e.forEach=a}};for(var s in o)o[s]&&c(n[s]&&n[s].prototype);c(i)},33948:function(e,t,r){var n=r(17854),o=r(48324),i=r(98509),a=r(66992),u=r(68880),c=r(5112),s=c("iterator"),l=c("toStringTag"),f=a.values,d=function(e,t){if(e){if(e[s]!==f)try{u(e,s,f)}catch(t){e[s]=f}if(e[l]||u(e,l,t),o[t])for(var r in a)if(e[r]!==a[r])try{u(e,r,a[r])}catch(t){e[r]=a[r]}}};for(var p in o)d(n[p]&&n[p].prototype,p);d(i,"DOMTokenList")},65556:function(e,t,r){"use strict";r(66992);var n=r(82109),o=r(17854),i=r(46916),a=r(1702),u=r(19781),c=r(85143),s=r(98052),l=r(89190),f=r(58003),d=r(63061),p=r(29909),h=r(25787),v=r(60614),y=r(92597),m=r(49974),g=r(70648),b=r(19670),w=r(70111),E=r(41340),_=r(70030),O=r(79114),S=r(18554),x=r(71246),k=r(48053),j=r(5112),T=r(94362),P=j("iterator"),L="URLSearchParams",I="URLSearchParamsIterator",A=p.set,C=p.getterFor(L),M=p.getterFor(I),N=Object.getOwnPropertyDescriptor,R=function(e){if(!u)return o[e];var t=N(o,e);return t&&t.value},D=R("fetch"),F=R("Request"),U=R("Headers"),W=F&&F.prototype,z=U&&U.prototype,B=o.RegExp,G=o.TypeError,V=o.decodeURIComponent,Y=o.encodeURIComponent,H=a("".charAt),K=a([].join),q=a([].push),$=a("".replace),X=a([].shift),Q=a([].splice),J=a("".split),Z=a("".slice),ee=/\+/g,te=Array(4),re=function(e){return te[e-1]||(te[e-1]=B("((?:%[\\da-f]{2}){"+e+"})","gi"))},ne=function(e){try{return V(e)}catch(t){return e}},oe=function(e){var t=$(e,ee," "),r=4;try{return V(t)}catch(e){for(;r;)t=$(t,re(r--),ne);return t}},ie=/[!'()~]|%20/g,ae={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},ue=function(e){return ae[e]},ce=function(e){return $(Y(e),ie,ue)},se=d((function(e,t){A(this,{type:I,iterator:S(C(e).entries),kind:t})}),"Iterator",(function(){var e=M(this),t=e.kind,r=e.iterator.next(),n=r.value;return r.done||(r.value="keys"===t?n.key:"values"===t?n.value:[n.key,n.value]),r}),!0),le=function(e){this.entries=[],this.url=null,void 0!==e&&(w(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===H(e,0)?Z(e,1):e:E(e)))};le.prototype={type:L,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,r,n,o,a,u,c,s=x(e);if(s)for(r=(t=S(e,s)).next;!(n=i(r,t)).done;){if(a=(o=S(b(n.value))).next,(u=i(a,o)).done||(c=i(a,o)).done||!i(a,o).done)throw G("Expected sequence with length 2");q(this.entries,{key:E(u.value),value:E(c.value)})}else for(var l in e)y(e,l)&&q(this.entries,{key:l,value:E(e[l])})},parseQuery:function(e){if(e)for(var t,r,n=J(e,"&"),o=0;o<n.length;)(t=n[o++]).length&&(r=J(t,"="),q(this.entries,{key:oe(X(r)),value:oe(K(r,"="))}))},serialize:function(){for(var e,t=this.entries,r=[],n=0;n<t.length;)e=t[n++],q(r,ce(e.key)+"="+ce(e.value));return K(r,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var fe=function(){h(this,de);var e=arguments.length>0?arguments[0]:void 0;A(this,new le(e))},de=fe.prototype;if(l(de,{append:function(e,t){k(arguments.length,2);var r=C(this);q(r.entries,{key:E(e),value:E(t)}),r.updateURL()},delete:function(e){k(arguments.length,1);for(var t=C(this),r=t.entries,n=E(e),o=0;o<r.length;)r[o].key===n?Q(r,o,1):o++;t.updateURL()},get:function(e){k(arguments.length,1);for(var t=C(this).entries,r=E(e),n=0;n<t.length;n++)if(t[n].key===r)return t[n].value;return null},getAll:function(e){k(arguments.length,1);for(var t=C(this).entries,r=E(e),n=[],o=0;o<t.length;o++)t[o].key===r&&q(n,t[o].value);return n},has:function(e){k(arguments.length,1);for(var t=C(this).entries,r=E(e),n=0;n<t.length;)if(t[n++].key===r)return!0;return!1},set:function(e,t){k(arguments.length,1);for(var r,n=C(this),o=n.entries,i=!1,a=E(e),u=E(t),c=0;c<o.length;c++)(r=o[c]).key===a&&(i?Q(o,c--,1):(i=!0,r.value=u));i||q(o,{key:a,value:u}),n.updateURL()},sort:function(){var e=C(this);T(e.entries,(function(e,t){return e.key>t.key?1:-1})),e.updateURL()},forEach:function(e){for(var t,r=C(this).entries,n=m(e,arguments.length>1?arguments[1]:void 0),o=0;o<r.length;)n((t=r[o++]).value,t.key,this)},keys:function(){return new se(this,"keys")},values:function(){return new se(this,"values")},entries:function(){return new se(this,"entries")}},{enumerable:!0}),s(de,P,de.entries,{name:"entries"}),s(de,"toString",(function(){return C(this).serialize()}),{enumerable:!0}),f(fe,L),n({global:!0,constructor:!0,forced:!c},{URLSearchParams:fe}),!c&&v(U)){var pe=a(z.has),he=a(z.set),ve=function(e){if(w(e)){var t,r=e.body;if(g(r)===L)return t=e.headers?new U(e.headers):new U,pe(t,"content-type")||he(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),_(e,{body:O(0,E(r)),headers:O(0,t)})}return e};if(v(D)&&n({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return D(e,arguments.length>1?ve(arguments[1]):{})}}),v(F)){var ye=function(e){return h(this,W),new F(e,arguments.length>1?ve(arguments[1]):{})};W.constructor=ye,ye.prototype=W,n({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:ye})}}e.exports={URLSearchParams:fe,getState:C}},41637:function(e,t,r){r(65556)},68789:function(e,t,r){"use strict";r(78783);var n,o=r(82109),i=r(19781),a=r(85143),u=r(17854),c=r(49974),s=r(1702),l=r(98052),f=r(47045),d=r(25787),p=r(92597),h=r(21574),v=r(48457),y=r(41589),m=r(28710).codeAt,g=r(33197),b=r(41340),w=r(58003),E=r(48053),_=r(65556),O=r(29909),S=O.set,x=O.getterFor("URL"),k=_.URLSearchParams,j=_.getState,T=u.URL,P=u.TypeError,L=u.parseInt,I=Math.floor,A=Math.pow,C=s("".charAt),M=s(/./.exec),N=s([].join),R=s(1..toString),D=s([].pop),F=s([].push),U=s("".replace),W=s([].shift),z=s("".split),B=s("".slice),G=s("".toLowerCase),V=s([].unshift),Y="Invalid scheme",H="Invalid host",K="Invalid port",q=/[a-z]/i,$=/[\d+-.a-z]/i,X=/\d/,Q=/^0x/i,J=/^[0-7]+$/,Z=/^\d+$/,ee=/^[\da-f]+$/i,te=/[\0\t\n\r #%/:<>?@[\\\]^|]/,re=/[\0\t\n\r #/:<>?@[\\\]^|]/,ne=/^[\u0000-\u0020]+|[\u0000-\u0020]+$/g,oe=/[\t\n\r]/g,ie=function(e){var t,r,n,o;if("number"==typeof e){for(t=[],r=0;r<4;r++)V(t,e%256),e=I(e/256);return N(t,".")}if("object"==typeof e){for(t="",n=function(e){for(var t=null,r=1,n=null,o=0,i=0;i<8;i++)0!==e[i]?(o>r&&(t=n,r=o),n=null,o=0):(null===n&&(n=i),++o);return o>r&&(t=n,r=o),t}(e),r=0;r<8;r++)o&&0===e[r]||(o&&(o=!1),n===r?(t+=r?":":"::",o=!0):(t+=R(e[r],16),r<7&&(t+=":")));return"["+t+"]"}return e},ae={},ue=h({},ae,{" ":1,'"':1,"<":1,">":1,"`":1}),ce=h({},ue,{"#":1,"?":1,"{":1,"}":1}),se=h({},ce,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),le=function(e,t){var r=m(e,0);return r>32&&r<127&&!p(t,e)?e:encodeURIComponent(e)},fe={ftp:21,file:null,http:80,https:443,ws:80,wss:443},de=function(e,t){var r;return 2==e.length&&M(q,C(e,0))&&(":"==(r=C(e,1))||!t&&"|"==r)},pe=function(e){var t;return e.length>1&&de(B(e,0,2))&&(2==e.length||"/"===(t=C(e,2))||"\\"===t||"?"===t||"#"===t)},he=function(e){return"."===e||"%2e"===G(e)},ve={},ye={},me={},ge={},be={},we={},Ee={},_e={},Oe={},Se={},xe={},ke={},je={},Te={},Pe={},Le={},Ie={},Ae={},Ce={},Me={},Ne={},Re=function(e,t,r){var n,o,i,a=b(e);if(t){if(o=this.parse(a))throw P(o);this.searchParams=null}else{if(void 0!==r&&(n=new Re(r,!0)),o=this.parse(a,null,n))throw P(o);(i=j(new k)).bindURL(this),this.searchParams=i}};Re.prototype={type:"URL",parse:function(e,t,r){var o,i,a,u,c,s=this,l=t||ve,f=0,d="",h=!1,m=!1,g=!1;for(e=b(e),t||(s.scheme="",s.username="",s.password="",s.host=null,s.port=null,s.path=[],s.query=null,s.fragment=null,s.cannotBeABaseURL=!1,e=U(e,ne,"")),e=U(e,oe,""),o=v(e);f<=o.length;){switch(i=o[f],l){case ve:if(!i||!M(q,i)){if(t)return Y;l=me;continue}d+=G(i),l=ye;break;case ye:if(i&&(M($,i)||"+"==i||"-"==i||"."==i))d+=G(i);else{if(":"!=i){if(t)return Y;d="",l=me,f=0;continue}if(t&&(s.isSpecial()!=p(fe,d)||"file"==d&&(s.includesCredentials()||null!==s.port)||"file"==s.scheme&&!s.host))return;if(s.scheme=d,t)return void(s.isSpecial()&&fe[s.scheme]==s.port&&(s.port=null));d="","file"==s.scheme?l=Te:s.isSpecial()&&r&&r.scheme==s.scheme?l=ge:s.isSpecial()?l=_e:"/"==o[f+1]?(l=be,f++):(s.cannotBeABaseURL=!0,F(s.path,""),l=Ce)}break;case me:if(!r||r.cannotBeABaseURL&&"#"!=i)return Y;if(r.cannotBeABaseURL&&"#"==i){s.scheme=r.scheme,s.path=y(r.path),s.query=r.query,s.fragment="",s.cannotBeABaseURL=!0,l=Ne;break}l="file"==r.scheme?Te:we;continue;case ge:if("/"!=i||"/"!=o[f+1]){l=we;continue}l=Oe,f++;break;case be:if("/"==i){l=Se;break}l=Ae;continue;case we:if(s.scheme=r.scheme,i==n)s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,s.path=y(r.path),s.query=r.query;else if("/"==i||"\\"==i&&s.isSpecial())l=Ee;else if("?"==i)s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,s.path=y(r.path),s.query="",l=Me;else{if("#"!=i){s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,s.path=y(r.path),s.path.length--,l=Ae;continue}s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,s.path=y(r.path),s.query=r.query,s.fragment="",l=Ne}break;case Ee:if(!s.isSpecial()||"/"!=i&&"\\"!=i){if("/"!=i){s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,l=Ae;continue}l=Se}else l=Oe;break;case _e:if(l=Oe,"/"!=i||"/"!=C(d,f+1))continue;f++;break;case Oe:if("/"!=i&&"\\"!=i){l=Se;continue}break;case Se:if("@"==i){h&&(d="%40"+d),h=!0,a=v(d);for(var w=0;w<a.length;w++){var E=a[w];if(":"!=E||g){var _=le(E,se);g?s.password+=_:s.username+=_}else g=!0}d=""}else if(i==n||"/"==i||"?"==i||"#"==i||"\\"==i&&s.isSpecial()){if(h&&""==d)return"Invalid authority";f-=v(d).length+1,d="",l=xe}else d+=i;break;case xe:case ke:if(t&&"file"==s.scheme){l=Le;continue}if(":"!=i||m){if(i==n||"/"==i||"?"==i||"#"==i||"\\"==i&&s.isSpecial()){if(s.isSpecial()&&""==d)return H;if(t&&""==d&&(s.includesCredentials()||null!==s.port))return;if(u=s.parseHost(d))return u;if(d="",l=Ie,t)return;continue}"["==i?m=!0:"]"==i&&(m=!1),d+=i}else{if(""==d)return H;if(u=s.parseHost(d))return u;if(d="",l=je,t==ke)return}break;case je:if(!M(X,i)){if(i==n||"/"==i||"?"==i||"#"==i||"\\"==i&&s.isSpecial()||t){if(""!=d){var O=L(d,10);if(O>65535)return K;s.port=s.isSpecial()&&O===fe[s.scheme]?null:O,d=""}if(t)return;l=Ie;continue}return K}d+=i;break;case Te:if(s.scheme="file","/"==i||"\\"==i)l=Pe;else{if(!r||"file"!=r.scheme){l=Ae;continue}if(i==n)s.host=r.host,s.path=y(r.path),s.query=r.query;else if("?"==i)s.host=r.host,s.path=y(r.path),s.query="",l=Me;else{if("#"!=i){pe(N(y(o,f),""))||(s.host=r.host,s.path=y(r.path),s.shortenPath()),l=Ae;continue}s.host=r.host,s.path=y(r.path),s.query=r.query,s.fragment="",l=Ne}}break;case Pe:if("/"==i||"\\"==i){l=Le;break}r&&"file"==r.scheme&&!pe(N(y(o,f),""))&&(de(r.path[0],!0)?F(s.path,r.path[0]):s.host=r.host),l=Ae;continue;case Le:if(i==n||"/"==i||"\\"==i||"?"==i||"#"==i){if(!t&&de(d))l=Ae;else if(""==d){if(s.host="",t)return;l=Ie}else{if(u=s.parseHost(d))return u;if("localhost"==s.host&&(s.host=""),t)return;d="",l=Ie}continue}d+=i;break;case Ie:if(s.isSpecial()){if(l=Ae,"/"!=i&&"\\"!=i)continue}else if(t||"?"!=i)if(t||"#"!=i){if(i!=n&&(l=Ae,"/"!=i))continue}else s.fragment="",l=Ne;else s.query="",l=Me;break;case Ae:if(i==n||"/"==i||"\\"==i&&s.isSpecial()||!t&&("?"==i||"#"==i)){if(".."===(c=G(c=d))||"%2e."===c||".%2e"===c||"%2e%2e"===c?(s.shortenPath(),"/"==i||"\\"==i&&s.isSpecial()||F(s.path,"")):he(d)?"/"==i||"\\"==i&&s.isSpecial()||F(s.path,""):("file"==s.scheme&&!s.path.length&&de(d)&&(s.host&&(s.host=""),d=C(d,0)+":"),F(s.path,d)),d="","file"==s.scheme&&(i==n||"?"==i||"#"==i))for(;s.path.length>1&&""===s.path[0];)W(s.path);"?"==i?(s.query="",l=Me):"#"==i&&(s.fragment="",l=Ne)}else d+=le(i,ce);break;case Ce:"?"==i?(s.query="",l=Me):"#"==i?(s.fragment="",l=Ne):i!=n&&(s.path[0]+=le(i,ae));break;case Me:t||"#"!=i?i!=n&&("'"==i&&s.isSpecial()?s.query+="%27":s.query+="#"==i?"%23":le(i,ae)):(s.fragment="",l=Ne);break;case Ne:i!=n&&(s.fragment+=le(i,ue))}f++}},parseHost:function(e){var t,r,n;if("["==C(e,0)){if("]"!=C(e,e.length-1))return H;if(t=function(e){var t,r,n,o,i,a,u,c=[0,0,0,0,0,0,0,0],s=0,l=null,f=0,d=function(){return C(e,f)};if(":"==d()){if(":"!=C(e,1))return;f+=2,l=++s}for(;d();){if(8==s)return;if(":"!=d()){for(t=r=0;r<4&&M(ee,d());)t=16*t+L(d(),16),f++,r++;if("."==d()){if(0==r)return;if(f-=r,s>6)return;for(n=0;d();){if(o=null,n>0){if(!("."==d()&&n<4))return;f++}if(!M(X,d()))return;for(;M(X,d());){if(i=L(d(),10),null===o)o=i;else{if(0==o)return;o=10*o+i}if(o>255)return;f++}c[s]=256*c[s]+o,2!=++n&&4!=n||s++}if(4!=n)return;break}if(":"==d()){if(f++,!d())return}else if(d())return;c[s++]=t}else{if(null!==l)return;f++,l=++s}}if(null!==l)for(a=s-l,s=7;0!=s&&a>0;)u=c[s],c[s--]=c[l+a-1],c[l+--a]=u;else if(8!=s)return;return c}(B(e,1,-1)),!t)return H;this.host=t}else if(this.isSpecial()){if(e=g(e),M(te,e))return H;if(t=function(e){var t,r,n,o,i,a,u,c=z(e,".");if(c.length&&""==c[c.length-1]&&c.length--,(t=c.length)>4)return e;for(r=[],n=0;n<t;n++){if(""==(o=c[n]))return e;if(i=10,o.length>1&&"0"==C(o,0)&&(i=M(Q,o)?16:8,o=B(o,8==i?1:2)),""===o)a=0;else{if(!M(10==i?Z:8==i?J:ee,o))return e;a=L(o,i)}F(r,a)}for(n=0;n<t;n++)if(a=r[n],n==t-1){if(a>=A(256,5-t))return null}else if(a>255)return null;for(u=D(r),n=0;n<r.length;n++)u+=r[n]*A(256,3-n);return u}(e),null===t)return H;this.host=t}else{if(M(re,e))return H;for(t="",r=v(e),n=0;n<r.length;n++)t+=le(r[n],ae);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"==this.scheme},includesCredentials:function(){return""!=this.username||""!=this.password},isSpecial:function(){return p(fe,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"==this.scheme&&1==t&&de(e[0],!0)||e.length--},serialize:function(){var e=this,t=e.scheme,r=e.username,n=e.password,o=e.host,i=e.port,a=e.path,u=e.query,c=e.fragment,s=t+":";return null!==o?(s+="//",e.includesCredentials()&&(s+=r+(n?":"+n:"")+"@"),s+=ie(o),null!==i&&(s+=":"+i)):"file"==t&&(s+="//"),s+=e.cannotBeABaseURL?a[0]:a.length?"/"+N(a,"/"):"",null!==u&&(s+="?"+u),null!==c&&(s+="#"+c),s},setHref:function(e){var t=this.parse(e);if(t)throw P(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"==e)try{return new De(e.path[0]).origin}catch(e){return"null"}return"file"!=e&&this.isSpecial()?e+"://"+ie(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(b(e)+":",ve)},getUsername:function(){return this.username},setUsername:function(e){var t=v(b(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var r=0;r<t.length;r++)this.username+=le(t[r],se)}},getPassword:function(){return this.password},setPassword:function(e){var t=v(b(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var r=0;r<t.length;r++)this.password+=le(t[r],se)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?ie(e):ie(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,xe)},getHostname:function(){var e=this.host;return null===e?"":ie(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,ke)},getPort:function(){var e=this.port;return null===e?"":b(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(""==(e=b(e))?this.port=null:this.parse(e,je))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+N(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,Ie))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){""==(e=b(e))?this.query=null:("?"==C(e,0)&&(e=B(e,1)),this.query="",this.parse(e,Me)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){""!=(e=b(e))?("#"==C(e,0)&&(e=B(e,1)),this.fragment="",this.parse(e,Ne)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var De=function(e){var t=d(this,Fe),r=E(arguments.length,1)>1?arguments[1]:void 0,n=S(t,new Re(e,!1,r));i||(t.href=n.serialize(),t.origin=n.getOrigin(),t.protocol=n.getProtocol(),t.username=n.getUsername(),t.password=n.getPassword(),t.host=n.getHost(),t.hostname=n.getHostname(),t.port=n.getPort(),t.pathname=n.getPathname(),t.search=n.getSearch(),t.searchParams=n.getSearchParams(),t.hash=n.getHash())},Fe=De.prototype,Ue=function(e,t){return{get:function(){return x(this)[e]()},set:t&&function(e){return x(this)[t](e)},configurable:!0,enumerable:!0}};if(i&&(f(Fe,"href",Ue("serialize","setHref")),f(Fe,"origin",Ue("getOrigin")),f(Fe,"protocol",Ue("getProtocol","setProtocol")),f(Fe,"username",Ue("getUsername","setUsername")),f(Fe,"password",Ue("getPassword","setPassword")),f(Fe,"host",Ue("getHost","setHost")),f(Fe,"hostname",Ue("getHostname","setHostname")),f(Fe,"port",Ue("getPort","setPort")),f(Fe,"pathname",Ue("getPathname","setPathname")),f(Fe,"search",Ue("getSearch","setSearch")),f(Fe,"searchParams",Ue("getSearchParams")),f(Fe,"hash",Ue("getHash","setHash"))),l(Fe,"toJSON",(function(){return x(this).serialize()}),{enumerable:!0}),l(Fe,"toString",(function(){return x(this).serialize()}),{enumerable:!0}),T){var We=T.createObjectURL,ze=T.revokeObjectURL;We&&l(De,"createObjectURL",c(We,T)),ze&&l(De,"revokeObjectURL",c(ze,T))}w(De,"URL"),o({global:!0,constructor:!0,forced:!a,sham:!i},{URL:De})},60285:function(e,t,r){r(68789)},27856:function(e){e.exports=function(){"use strict";function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(e,r){return t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},t(e,r)}function r(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function n(e,o,i){return n=r()?Reflect.construct:function(e,r,n){var o=[null];o.push.apply(o,r);var i=new(Function.bind.apply(e,o));return n&&t(i,n.prototype),i},n.apply(null,arguments)}function o(e){return function(e){if(Array.isArray(e))return i(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var a=Object.hasOwnProperty,u=Object.setPrototypeOf,c=Object.isFrozen,s=Object.getPrototypeOf,l=Object.getOwnPropertyDescriptor,f=Object.freeze,d=Object.seal,p=Object.create,h="undefined"!=typeof Reflect&&Reflect,v=h.apply,y=h.construct;v||(v=function(e,t,r){return e.apply(t,r)}),f||(f=function(e){return e}),d||(d=function(e){return e}),y||(y=function(e,t){return n(e,o(t))});var m,g=T(Array.prototype.forEach),b=T(Array.prototype.pop),w=T(Array.prototype.push),E=T(String.prototype.toLowerCase),_=T(String.prototype.match),O=T(String.prototype.replace),S=T(String.prototype.indexOf),x=T(String.prototype.trim),k=T(RegExp.prototype.test),j=(m=TypeError,function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return y(m,t)});function T(e){return function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return v(e,t,n)}}function P(e,t,r){r=r||E,u&&u(e,null);for(var n=t.length;n--;){var o=t[n];if("string"==typeof o){var i=r(o);i!==o&&(c(t)||(t[n]=i),o=i)}e[o]=!0}return e}function L(e){var t,r=p(null);for(t in e)v(a,e,[t])&&(r[t]=e[t]);return r}function I(e,t){for(;null!==e;){var r=l(e,t);if(r){if(r.get)return T(r.get);if("function"==typeof r.value)return T(r.value)}e=s(e)}return function(e){return console.warn("fallback value for",e),null}}var A=f(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),C=f(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),M=f(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),N=f(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),R=f(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),D=f(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),F=f(["#text"]),U=f(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),W=f(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),z=f(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),B=f(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),G=d(/\{\{[\w\W]*|[\w\W]*\}\}/gm),V=d(/<%[\w\W]*|[\w\W]*%>/gm),Y=d(/^data-[\-\w.\u00B7-\uFFFF]/),H=d(/^aria-[\-\w]+$/),K=d(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),q=d(/^(?:\w+script|data):/i),$=d(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),X=d(/^html$/i),Q=function(){return"undefined"==typeof window?null:window},J=function(t,r){if("object"!==e(t)||"function"!=typeof t.createPolicy)return null;var n=null,o="data-tt-policy-suffix";r.currentScript&&r.currentScript.hasAttribute(o)&&(n=r.currentScript.getAttribute(o));var i="dompurify"+(n?"#"+n:"");try{return t.createPolicy(i,{createHTML:function(e){return e},createScriptURL:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+i+" could not be created."),null}};return function t(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Q(),n=function(e){return t(e)};if(n.version="2.4.0",n.removed=[],!r||!r.document||9!==r.document.nodeType)return n.isSupported=!1,n;var i=r.document,a=r.document,u=r.DocumentFragment,c=r.HTMLTemplateElement,s=r.Node,l=r.Element,d=r.NodeFilter,p=r.NamedNodeMap,h=void 0===p?r.NamedNodeMap||r.MozNamedAttrMap:p,v=r.HTMLFormElement,y=r.DOMParser,m=r.trustedTypes,T=l.prototype,Z=I(T,"cloneNode"),ee=I(T,"nextSibling"),te=I(T,"childNodes"),re=I(T,"parentNode");if("function"==typeof c){var ne=a.createElement("template");ne.content&&ne.content.ownerDocument&&(a=ne.content.ownerDocument)}var oe=J(m,i),ie=oe?oe.createHTML(""):"",ae=a,ue=ae.implementation,ce=ae.createNodeIterator,se=ae.createDocumentFragment,le=ae.getElementsByTagName,fe=i.importNode,de={};try{de=L(a).documentMode?a.documentMode:{}}catch(e){}var pe={};n.isSupported="function"==typeof re&&ue&&void 0!==ue.createHTMLDocument&&9!==de;var he,ve,ye=G,me=V,ge=Y,be=H,we=q,Ee=$,_e=K,Oe=null,Se=P({},[].concat(o(A),o(C),o(M),o(R),o(F))),xe=null,ke=P({},[].concat(o(U),o(W),o(z),o(B))),je=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Te=null,Pe=null,Le=!0,Ie=!0,Ae=!1,Ce=!1,Me=!1,Ne=!1,Re=!1,De=!1,Fe=!1,Ue=!1,We=!0,ze=!1,Be="user-content-",Ge=!0,Ve=!1,Ye={},He=null,Ke=P({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),qe=null,$e=P({},["audio","video","img","source","image","track"]),Xe=null,Qe=P({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Je="http://www.w3.org/1998/Math/MathML",Ze="http://www.w3.org/2000/svg",et="http://www.w3.org/1999/xhtml",tt=et,rt=!1,nt=["application/xhtml+xml","text/html"],ot="text/html",it=null,at=a.createElement("form"),ut=function(e){return e instanceof RegExp||e instanceof Function},ct=function(t){it&&it===t||(t&&"object"===e(t)||(t={}),t=L(t),he=he=-1===nt.indexOf(t.PARSER_MEDIA_TYPE)?ot:t.PARSER_MEDIA_TYPE,ve="application/xhtml+xml"===he?function(e){return e}:E,Oe="ALLOWED_TAGS"in t?P({},t.ALLOWED_TAGS,ve):Se,xe="ALLOWED_ATTR"in t?P({},t.ALLOWED_ATTR,ve):ke,Xe="ADD_URI_SAFE_ATTR"in t?P(L(Qe),t.ADD_URI_SAFE_ATTR,ve):Qe,qe="ADD_DATA_URI_TAGS"in t?P(L($e),t.ADD_DATA_URI_TAGS,ve):$e,He="FORBID_CONTENTS"in t?P({},t.FORBID_CONTENTS,ve):Ke,Te="FORBID_TAGS"in t?P({},t.FORBID_TAGS,ve):{},Pe="FORBID_ATTR"in t?P({},t.FORBID_ATTR,ve):{},Ye="USE_PROFILES"in t&&t.USE_PROFILES,Le=!1!==t.ALLOW_ARIA_ATTR,Ie=!1!==t.ALLOW_DATA_ATTR,Ae=t.ALLOW_UNKNOWN_PROTOCOLS||!1,Ce=t.SAFE_FOR_TEMPLATES||!1,Me=t.WHOLE_DOCUMENT||!1,De=t.RETURN_DOM||!1,Fe=t.RETURN_DOM_FRAGMENT||!1,Ue=t.RETURN_TRUSTED_TYPE||!1,Re=t.FORCE_BODY||!1,We=!1!==t.SANITIZE_DOM,ze=t.SANITIZE_NAMED_PROPS||!1,Ge=!1!==t.KEEP_CONTENT,Ve=t.IN_PLACE||!1,_e=t.ALLOWED_URI_REGEXP||_e,tt=t.NAMESPACE||et,t.CUSTOM_ELEMENT_HANDLING&&ut(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(je.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&ut(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(je.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(je.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ce&&(Ie=!1),Fe&&(De=!0),Ye&&(Oe=P({},o(F)),xe=[],!0===Ye.html&&(P(Oe,A),P(xe,U)),!0===Ye.svg&&(P(Oe,C),P(xe,W),P(xe,B)),!0===Ye.svgFilters&&(P(Oe,M),P(xe,W),P(xe,B)),!0===Ye.mathMl&&(P(Oe,R),P(xe,z),P(xe,B))),t.ADD_TAGS&&(Oe===Se&&(Oe=L(Oe)),P(Oe,t.ADD_TAGS,ve)),t.ADD_ATTR&&(xe===ke&&(xe=L(xe)),P(xe,t.ADD_ATTR,ve)),t.ADD_URI_SAFE_ATTR&&P(Xe,t.ADD_URI_SAFE_ATTR,ve),t.FORBID_CONTENTS&&(He===Ke&&(He=L(He)),P(He,t.FORBID_CONTENTS,ve)),Ge&&(Oe["#text"]=!0),Me&&P(Oe,["html","head","body"]),Oe.table&&(P(Oe,["tbody"]),delete Te.tbody),f&&f(t),it=t)},st=P({},["mi","mo","mn","ms","mtext"]),lt=P({},["foreignobject","desc","title","annotation-xml"]),ft=P({},["title","style","font","a","script"]),dt=P({},C);P(dt,M),P(dt,N);var pt=P({},R);P(pt,D);var ht=function(e){var t=re(e);t&&t.tagName||(t={namespaceURI:et,tagName:"template"});var r=E(e.tagName),n=E(t.tagName);return e.namespaceURI===Ze?t.namespaceURI===et?"svg"===r:t.namespaceURI===Je?"svg"===r&&("annotation-xml"===n||st[n]):Boolean(dt[r]):e.namespaceURI===Je?t.namespaceURI===et?"math"===r:t.namespaceURI===Ze?"math"===r&<[n]:Boolean(pt[r]):e.namespaceURI===et&&!(t.namespaceURI===Ze&&!lt[n])&&!(t.namespaceURI===Je&&!st[n])&&!pt[r]&&(ft[r]||!dt[r])},vt=function(e){w(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=ie}catch(t){e.remove()}}},yt=function(e,t){try{w(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){w(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!xe[e])if(De||Fe)try{vt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},mt=function(e){var t,r;if(Re)e="<remove></remove>"+e;else{var n=_(e,/^[\r\n\t ]+/);r=n&&n[0]}"application/xhtml+xml"===he&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var o=oe?oe.createHTML(e):e;if(tt===et)try{t=(new y).parseFromString(o,he)}catch(e){}if(!t||!t.documentElement){t=ue.createDocument(tt,"template",null);try{t.documentElement.innerHTML=rt?"":o}catch(e){}}var i=t.body||t.documentElement;return e&&r&&i.insertBefore(a.createTextNode(r),i.childNodes[0]||null),tt===et?le.call(t,Me?"html":"body")[0]:Me?t.documentElement:i},gt=function(e){return ce.call(e.ownerDocument||e,e,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT,null,!1)},bt=function(e){return e instanceof v&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof h)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore)},wt=function(t){return"object"===e(s)?t instanceof s:t&&"object"===e(t)&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName},Et=function(e,t,r){pe[e]&&g(pe[e],(function(e){e.call(n,t,r,it)}))},_t=function(e){var t;if(Et("beforeSanitizeElements",e,null),bt(e))return vt(e),!0;if(k(/[\u0080-\uFFFF]/,e.nodeName))return vt(e),!0;var r=ve(e.nodeName);if(Et("uponSanitizeElement",e,{tagName:r,allowedTags:Oe}),e.hasChildNodes()&&!wt(e.firstElementChild)&&(!wt(e.content)||!wt(e.content.firstElementChild))&&k(/<[/\w]/g,e.innerHTML)&&k(/<[/\w]/g,e.textContent))return vt(e),!0;if("select"===r&&k(/<template/i,e.innerHTML))return vt(e),!0;if(!Oe[r]||Te[r]){if(!Te[r]&&St(r)){if(je.tagNameCheck instanceof RegExp&&k(je.tagNameCheck,r))return!1;if(je.tagNameCheck instanceof Function&&je.tagNameCheck(r))return!1}if(Ge&&!He[r]){var o=re(e)||e.parentNode,i=te(e)||e.childNodes;if(i&&o)for(var a=i.length-1;a>=0;--a)o.insertBefore(Z(i[a],!0),ee(e))}return vt(e),!0}return e instanceof l&&!ht(e)?(vt(e),!0):"noscript"!==r&&"noembed"!==r||!k(/<\/no(script|embed)/i,e.innerHTML)?(Ce&&3===e.nodeType&&(t=e.textContent,t=O(t,ye," "),t=O(t,me," "),e.textContent!==t&&(w(n.removed,{element:e.cloneNode()}),e.textContent=t)),Et("afterSanitizeElements",e,null),!1):(vt(e),!0)},Ot=function(e,t,r){if(We&&("id"===t||"name"===t)&&(r in a||r in at))return!1;if(Ie&&!Pe[t]&&k(ge,t));else if(Le&&k(be,t));else if(!xe[t]||Pe[t]){if(!(St(e)&&(je.tagNameCheck instanceof RegExp&&k(je.tagNameCheck,e)||je.tagNameCheck instanceof Function&&je.tagNameCheck(e))&&(je.attributeNameCheck instanceof RegExp&&k(je.attributeNameCheck,t)||je.attributeNameCheck instanceof Function&&je.attributeNameCheck(t))||"is"===t&&je.allowCustomizedBuiltInElements&&(je.tagNameCheck instanceof RegExp&&k(je.tagNameCheck,r)||je.tagNameCheck instanceof Function&&je.tagNameCheck(r))))return!1}else if(Xe[t]);else if(k(_e,O(r,Ee,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==S(r,"data:")||!qe[e])if(Ae&&!k(we,O(r,Ee,"")));else if(r)return!1;return!0},St=function(e){return e.indexOf("-")>0},xt=function(t){var r,o,i,a;Et("beforeSanitizeAttributes",t,null);var u=t.attributes;if(u){var c={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:xe};for(a=u.length;a--;){var s=r=u[a],l=s.name,f=s.namespaceURI;if(o="value"===l?r.value:x(r.value),i=ve(l),c.attrName=i,c.attrValue=o,c.keepAttr=!0,c.forceKeepAttr=void 0,Et("uponSanitizeAttribute",t,c),o=c.attrValue,!c.forceKeepAttr&&(yt(l,t),c.keepAttr))if(k(/\/>/i,o))yt(l,t);else{Ce&&(o=O(o,ye," "),o=O(o,me," "));var d=ve(t.nodeName);if(Ot(d,i,o)){if(!ze||"id"!==i&&"name"!==i||(yt(l,t),o=Be+o),oe&&"object"===e(m)&&"function"==typeof m.getAttributeType)if(f);else switch(m.getAttributeType(d,i)){case"TrustedHTML":o=oe.createHTML(o);break;case"TrustedScriptURL":o=oe.createScriptURL(o)}try{f?t.setAttributeNS(f,l,o):t.setAttribute(l,o),b(n.removed)}catch(e){}}}}Et("afterSanitizeAttributes",t,null)}},kt=function e(t){var r,n=gt(t);for(Et("beforeSanitizeShadowDOM",t,null);r=n.nextNode();)Et("uponSanitizeShadowNode",r,null),_t(r)||(r.content instanceof u&&e(r.content),xt(r));Et("afterSanitizeShadowDOM",t,null)};return n.sanitize=function(t){var o,a,c,l,f,d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((rt=!t)&&(t="\x3c!--\x3e"),"string"!=typeof t&&!wt(t)){if("function"!=typeof t.toString)throw j("toString is not a function");if("string"!=typeof(t=t.toString()))throw j("dirty is not a string, aborting")}if(!n.isSupported){if("object"===e(r.toStaticHTML)||"function"==typeof r.toStaticHTML){if("string"==typeof t)return r.toStaticHTML(t);if(wt(t))return r.toStaticHTML(t.outerHTML)}return t}if(Ne||ct(d),n.removed=[],"string"==typeof t&&(Ve=!1),Ve){if(t.nodeName){var p=ve(t.nodeName);if(!Oe[p]||Te[p])throw j("root node is forbidden and cannot be sanitized in-place")}}else if(t instanceof s)1===(a=(o=mt("\x3c!----\x3e")).ownerDocument.importNode(t,!0)).nodeType&&"BODY"===a.nodeName||"HTML"===a.nodeName?o=a:o.appendChild(a);else{if(!De&&!Ce&&!Me&&-1===t.indexOf("<"))return oe&&Ue?oe.createHTML(t):t;if(!(o=mt(t)))return De?null:Ue?ie:""}o&&Re&&vt(o.firstChild);for(var h=gt(Ve?t:o);c=h.nextNode();)3===c.nodeType&&c===l||_t(c)||(c.content instanceof u&&kt(c.content),xt(c),l=c);if(l=null,Ve)return t;if(De){if(Fe)for(f=se.call(o.ownerDocument);o.firstChild;)f.appendChild(o.firstChild);else f=o;return xe.shadowroot&&(f=fe.call(i,f,!0)),f}var v=Me?o.outerHTML:o.innerHTML;return Me&&Oe["!doctype"]&&o.ownerDocument&&o.ownerDocument.doctype&&o.ownerDocument.doctype.name&&k(X,o.ownerDocument.doctype.name)&&(v="<!DOCTYPE "+o.ownerDocument.doctype.name+">\n"+v),Ce&&(v=O(v,ye," "),v=O(v,me," ")),oe&&Ue?oe.createHTML(v):v},n.setConfig=function(e){ct(e),Ne=!0},n.clearConfig=function(){it=null,Ne=!1},n.isValidAttribute=function(e,t,r){it||ct({});var n=ve(e),o=ve(t);return Ot(n,o,r)},n.addHook=function(e,t){"function"==typeof t&&(pe[e]=pe[e]||[],w(pe[e],t))},n.removeHook=function(e){if(pe[e])return b(pe[e])},n.removeHooks=function(e){pe[e]&&(pe[e]=[])},n.removeAllHooks=function(){pe={}},n}()}()},21336:function(e){e.exports=function(e,t){if("object"==typeof t&&null!==t){var r,n=Object.getPrototypeOf(t);for(r in n)if(!(r in e)){var o=Object.getOwnPropertyDescriptor(n,r);o&&Object.defineProperty(e,r,o)}for(r in t)r in e||(e[r]=t[r])}}},42389:function(e,t,r){!function(e){try{new window.CustomEvent("event",{bubbles:!0,cancelable:!0})}catch(n){var t=window.CustomEvent||window.Event,r=function(t,r){r=r||{};var n=document.createEvent("CustomEvent");return n.initCustomEvent(t,void 0!==r.bubbles&&r.bubbles,void 0!==r.cancelable&&r.cancelable,void 0===r.detail?{}:r.detail),e(n,this),n};r.prototype=t.prototype,window.CustomEvent=r}}(r(21336))},29856:function(e,t,r){!function(e){try{new window.Event("event",{bubbles:!0,cancelable:!0})}catch(n){var t=window.Event,r=function(t,r){r=r||{};var n=document.createEvent("Event");return n.initEvent(t,void 0!==r.bubbles&&r.bubbles,void 0!==r.cancelable&&r.cancelable,void 0===r.detail?{}:r.detail),e(n,this),n};r.prototype=t.prototype,window.Event=r}}(r(21336))},70592:function(e,t,r){!function(e){try{new window.FocusEvent("event",{bubbles:!0,cancelable:!0})}catch(n){var t=window.FocusEvent||window.Event,r=function(t,r){r=r||{};var n=document.createEvent("FocusEvent");return n.initFocusEvent(t,void 0!==r.bubbles&&r.bubbles,void 0!==r.cancelable&&r.cancelable,void 0===r.view?window:r.view,void 0===r.detail?{}:r.detail,void 0===r.relatedTarget?null:r.relatedTarget),e(n,this),n};r.prototype=t.prototype,window.FocusEvent=r}}(r(21336))},65386:function(e,t,r){!function(e){try{new window.KeyboardEvent("event",{bubbles:!0,cancelable:!0})}catch(n){var t=window.KeyboardEvent||window.Event,r=function(t,r){r=r||{};var n=document.createEvent("KeyboardEvent");return n.initKeyboardEvent(t,void 0!==r.bubbles&&r.bubbles,void 0!==r.cancelable&&r.cancelable,void 0===r.view?window:r.view,void 0===r.key?"":r.key,void 0===r.location?0:r.location,(!0===r.ctrlKey?"Control ":"")+(!0===r.altKey?"Alt ":"")+(!0===r.shiftKey?"Shift ":"")+(!0===r.metaKey?"Meta ":""),void 0!==r.repeat&&r.repeat,void 0===r.locale?navigator.language:r.locale),n.keyCode=void 0===r.keyCode?0:r.keyCode,n.code=void 0===r.code?"":r.code,n.charCode=void 0===r.charCode?0:r.charCode,n.char=void 0===r.charCode?"":r.charCode,n.which=void 0===r.which?0:r.which,e(n,this),n};r.prototype=t.prototype,window.KeyboardEvent=r}}(r(21336))},65857:function(e,t,r){!function(e){try{new window.MouseEvent("event",{bubbles:!0,cancelable:!0})}catch(n){var t=window.MouseEvent||window.Event,r=function(t,r){r=r||{};var n=document.createEvent("MouseEvent");return n.initMouseEvent(t,void 0!==r.bubbles&&r.bubbles,void 0!==r.cancelable&&r.cancelable,void 0===r.view?window:r.view,void 0===r.detail?0:r.detail,void 0===r.screenX?0:r.screenX,void 0===r.screenY?0:r.screenY,void 0===r.clientX?0:r.clientX,void 0===r.clientY?0:r.clientY,void 0!==r.ctrlKey&&r.ctrlKey,void 0!==r.altKey&&r.altKey,void 0!==r.shiftKey&&r.shiftKey,void 0!==r.metaKey&&r.metaKey,void 0===r.button?0:r.button,void 0===r.relatedTarget?null:r.relatedTarget),n.buttons=void 0===r.buttons?0:r.buttons,n.region=void 0===r.region?null:r.region,e(n,this),n};r.prototype=t.prototype,window.MouseEvent=r}}(r(21336))},24932:function(e,t,r){!function(e){try{new window.PointerEvent("event",{bubbles:!0,cancelable:!0})}catch(o){var t=window.PointerEvent||window.Event,r=function(t,r){r=r||{};var n=document.createEvent("PointerEvent");return n.initPointerEvent(t,void 0!==r.bubbles&&r.bubbles,void 0!==r.cancelable&&r.cancelable,void 0===r.view?window:r.view,void 0===r.detail?0:r.detail,void 0===r.screenX?0:r.screenX,void 0===r.screenY?0:r.screenY,void 0===r.clientX?0:r.clientX,void 0===r.clientY?0:r.clientY,void 0!==r.ctrlKey&&r.ctrlKey,void 0!==r.altKey&&r.altKey,void 0!==r.shiftKey&&r.shiftKey,void 0!==r.metaKey&&r.metaKey,void 0===r.button?0:r.button,void 0===r.relatedTarget?null:r.relatedTarget,void 0===r.offsetX?0:r.offsetX,void 0===r.offsetY?0:r.offsetY,void 0===r.width?1:r.width,void 0===r.height?1:r.height,void 0===r.pressure?0:r.pressure,void 0===r.twist?0:r.twist,void 0===r.tiltX?0:r.tiltX,void 0===r.tiltY?0:r.tiltY,void 0===r.pointerId?0:r.pointerId,void 0===r.pointerType?"":r.pointerType,void 0===r.hwTimestamp?0:r.hwTimestamp,void 0!==r.isPrimary&&r.isPrimary),n.tangentialPressure=void 0===r.tangentialPressure?0:r.tangentialPressure,e(n,this),n};r.prototype=t.prototype;var n=Object.getOwnPropertyDescriptor(r.prototype,"rotation");n&&Object.defineProperty(r.prototype,"twist",n),window.PointerEvent=r}}(r(21336))},48227:function(e,t,r){r(29856),r(42389),r(65857),r(65386),r(70592),r(24932)},17187:function(e){"use strict";var t,r="object"==typeof Reflect?Reflect:null,n=r&&"function"==typeof r.apply?r.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};t=r&&"function"==typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var o=Number.isNaN||function(e){return e!=e};function i(){i.init.call(this)}e.exports=i,e.exports.once=function(e,t){return new Promise((function(r,n){function o(r){e.removeListener(t,i),n(r)}function i(){"function"==typeof e.removeListener&&e.removeListener("error",o),r([].slice.call(arguments))}v(e,t,i,{once:!0}),"error"!==t&&function(e,t,r){"function"==typeof e.on&&v(e,"error",t,{once:!0})}(e,o)}))},i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var a=10;function u(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function c(e){return void 0===e._maxListeners?i.defaultMaxListeners:e._maxListeners}function s(e,t,r,n){var o,i,a,s;if(u(r),void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),i=e._events),a=i[t]),void 0===a)a=i[t]=r,++e._eventsCount;else if("function"==typeof a?a=i[t]=n?[r,a]:[a,r]:n?a.unshift(r):a.push(r),(o=c(e))>0&&a.length>o&&!a.warned){a.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=a.length,s=l,console&&console.warn&&console.warn(s)}return e}function l(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function f(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},o=l.bind(n);return o.listener=r,n.wrapFn=o,o}function d(e,t,r){var n=e._events;if(void 0===n)return[];var o=n[t];return void 0===o?[]:"function"==typeof o?r?[o.listener||o]:[o]:r?function(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}(o):h(o,o.length)}function p(e){var t=this._events;if(void 0!==t){var r=t[e];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function h(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}function v(e,t,r,n){if("function"==typeof e.on)n.once?e.once(t,r):e.on(t,r);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function o(i){n.once&&e.removeEventListener(t,o),r(i)}))}}Object.defineProperty(i,"defaultMaxListeners",{enumerable:!0,get:function(){return a},set:function(e){if("number"!=typeof e||e<0||o(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");a=e}}),i.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},i.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||o(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},i.prototype.getMaxListeners=function(){return c(this)},i.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var o="error"===e,i=this._events;if(void 0!==i)o=o&&void 0===i.error;else if(!o)return!1;if(o){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var u=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw u.context=a,u}var c=i[e];if(void 0===c)return!1;if("function"==typeof c)n(c,this,t);else{var s=c.length,l=h(c,s);for(r=0;r<s;++r)n(l[r],this,t)}return!0},i.prototype.addListener=function(e,t){return s(this,e,t,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(e,t){return s(this,e,t,!0)},i.prototype.once=function(e,t){return u(t),this.on(e,f(this,e,t)),this},i.prototype.prependOnceListener=function(e,t){return u(t),this.prependListener(e,f(this,e,t)),this},i.prototype.removeListener=function(e,t){var r,n,o,i,a;if(u(t),void 0===(n=this._events))return this;if(void 0===(r=n[e]))return this;if(r===t||r.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete n[e],n.removeListener&&this.emit("removeListener",e,r.listener||t));else if("function"!=typeof r){for(o=-1,i=r.length-1;i>=0;i--)if(r[i]===t||r[i].listener===t){a=r[i].listener,o=i;break}if(o<0)return this;0===o?r.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(r,o),1===r.length&&(n[e]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",e,a||t)}return this},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(e){var t,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete r[e]),this;if(0===arguments.length){var o,i=Object.keys(r);for(n=0;n<i.length;++n)"removeListener"!==(o=i[n])&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=r[e]))this.removeListener(e,t);else if(void 0!==t)for(n=t.length-1;n>=0;n--)this.removeListener(e,t[n]);return this},i.prototype.listeners=function(e){return d(this,e,!0)},i.prototype.rawListeners=function(e){return d(this,e,!1)},i.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):p.call(e,t)},i.prototype.listenerCount=p,i.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},64063:function(e){"use strict";e.exports=function e(t,r){if(t===r)return!0;if(t&&r&&"object"==typeof t&&"object"==typeof r){if(t.constructor!==r.constructor)return!1;var n,o,i;if(Array.isArray(t)){if((n=t.length)!=r.length)return!1;for(o=n;0!=o--;)if(!e(t[o],r[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if((n=(i=Object.keys(t)).length)!==Object.keys(r).length)return!1;for(o=n;0!=o--;)if(!Object.prototype.hasOwnProperty.call(r,i[o]))return!1;for(o=n;0!=o--;){var a=i[o];if(!e(t[a],r[a]))return!1}return!0}return t!=t&&r!=r}},10646:function(e){e.exports=function(){"use strict";function e(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)e[n]=r[n]}return e}return function t(r,n){function o(t,o,i){if("undefined"!=typeof document){"number"==typeof(i=e({},n,i)).expires&&(i.expires=new Date(Date.now()+864e5*i.expires)),i.expires&&(i.expires=i.expires.toUTCString()),t=encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var u in i)i[u]&&(a+="; "+u,!0!==i[u]&&(a+="="+i[u].split(";")[0]));return document.cookie=t+"="+r.write(o,t)+a}}return Object.create({set:o,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var t=document.cookie?document.cookie.split("; "):[],n={},o=0;o<t.length;o++){var i=t[o].split("="),a=i.slice(1).join("=");try{var u=decodeURIComponent(i[0]);if(n[u]=r.read(a,u),e===u)break}catch(e){}}return e?n[e]:n}},remove:function(t,r){o(t,"",e({},r,{expires:-1}))},withAttributes:function(r){return t(this.converter,e({},this.attributes,r))},withConverter:function(r){return t(e({},this.converter,r),this.attributes)}},{attributes:{value:Object.freeze(n)},converter:{value:Object.freeze(r)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"})}()},18552:function(e,t,r){var n=r(10852)(r(55639),"DataView");e.exports=n},1989:function(e,t,r){var n=r(51789),o=r(80401),i=r(57667),a=r(21327),u=r(81866);function c(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}c.prototype.clear=n,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=a,c.prototype.set=u,e.exports=c},38407:function(e,t,r){var n=r(27040),o=r(14125),i=r(82117),a=r(67518),u=r(13399);function c(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}c.prototype.clear=n,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=a,c.prototype.set=u,e.exports=c},57071:function(e,t,r){var n=r(10852)(r(55639),"Map");e.exports=n},83369:function(e,t,r){var n=r(24785),o=r(11285),i=r(96e3),a=r(49916),u=r(95265);function c(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}c.prototype.clear=n,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=a,c.prototype.set=u,e.exports=c},53818:function(e,t,r){var n=r(10852)(r(55639),"Promise");e.exports=n},58525:function(e,t,r){var n=r(10852)(r(55639),"Set");e.exports=n},88668:function(e,t,r){var n=r(83369),o=r(90619),i=r(72385);function a(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new n;++t<r;)this.add(e[t])}a.prototype.add=a.prototype.push=o,a.prototype.has=i,e.exports=a},46384:function(e,t,r){var n=r(38407),o=r(37465),i=r(63779),a=r(67599),u=r(44758),c=r(34309);function s(e){var t=this.__data__=new n(e);this.size=t.size}s.prototype.clear=o,s.prototype.delete=i,s.prototype.get=a,s.prototype.has=u,s.prototype.set=c,e.exports=s},62705:function(e,t,r){var n=r(55639).Symbol;e.exports=n},11149:function(e,t,r){var n=r(55639).Uint8Array;e.exports=n},70577:function(e,t,r){var n=r(10852)(r(55639),"WeakMap");e.exports=n},34963:function(e){e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,o=0,i=[];++r<n;){var a=e[r];t(a,r,e)&&(i[o++]=a)}return i}},14636:function(e,t,r){var n=r(22545),o=r(35694),i=r(1469),a=r(44144),u=r(65776),c=r(36719),s=Object.prototype.hasOwnProperty;e.exports=function(e,t){var r=i(e),l=!r&&o(e),f=!r&&!l&&a(e),d=!r&&!l&&!f&&c(e),p=r||l||f||d,h=p?n(e.length,String):[],v=h.length;for(var y in e)!t&&!s.call(e,y)||p&&("length"==y||f&&("offset"==y||"parent"==y)||d&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||u(y,v))||h.push(y);return h}},62488:function(e){e.exports=function(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}},82908:function(e){e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}},18470:function(e,t,r){var n=r(77813);e.exports=function(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return-1}},68866:function(e,t,r){var n=r(62488),o=r(1469);e.exports=function(e,t,r){var i=t(e);return o(e)?i:n(i,r(e))}},44239:function(e,t,r){var n=r(62705),o=r(89607),i=r(2333),a=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):i(e)}},9454:function(e,t,r){var n=r(44239),o=r(37005);e.exports=function(e){return o(e)&&"[object Arguments]"==n(e)}},90939:function(e,t,r){var n=r(2492),o=r(37005);e.exports=function e(t,r,i,a,u){return t===r||(null==t||null==r||!o(t)&&!o(r)?t!=t&&r!=r:n(t,r,i,a,e,u))}},2492:function(e,t,r){var n=r(46384),o=r(67114),i=r(18351),a=r(16096),u=r(64160),c=r(1469),s=r(44144),l=r(36719),f="[object Arguments]",d="[object Array]",p="[object Object]",h=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,v,y,m){var g=c(e),b=c(t),w=g?d:u(e),E=b?d:u(t),_=(w=w==f?p:w)==p,O=(E=E==f?p:E)==p,S=w==E;if(S&&s(e)){if(!s(t))return!1;g=!0,_=!1}if(S&&!_)return m||(m=new n),g||l(e)?o(e,t,r,v,y,m):i(e,t,w,r,v,y,m);if(!(1&r)){var x=_&&h.call(e,"__wrapped__"),k=O&&h.call(t,"__wrapped__");if(x||k){var j=x?e.value():e,T=k?t.value():t;return m||(m=new n),y(j,T,r,v,m)}}return!!S&&(m||(m=new n),a(e,t,r,v,y,m))}},2958:function(e,t,r){var n=r(46384),o=r(90939);e.exports=function(e,t,r,i){var a=r.length,u=a,c=!i;if(null==e)return!u;for(e=Object(e);a--;){var s=r[a];if(c&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++a<u;){var l=(s=r[a])[0],f=e[l],d=s[1];if(c&&s[2]){if(void 0===f&&!(l in e))return!1}else{var p=new n;if(i)var h=i(f,d,l,e,t,p);if(!(void 0===h?o(d,f,3,i,p):h))return!1}}return!0}},28458:function(e,t,r){var n=r(23560),o=r(15346),i=r(13218),a=r(80346),u=/^\[object .+?Constructor\]$/,c=Function.prototype,s=Object.prototype,l=c.toString,f=s.hasOwnProperty,d=RegExp("^"+l.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||o(e))&&(n(e)?d:u).test(a(e))}},38749:function(e,t,r){var n=r(44239),o=r(41780),i=r(37005),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&o(e.length)&&!!a[n(e)]}},280:function(e,t,r){var n=r(25726),o=r(86916),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return o(e);var t=[];for(var r in Object(e))i.call(e,r)&&"constructor"!=r&&t.push(r);return t}},22545:function(e){e.exports=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}},27561:function(e,t,r){var n=r(67990),o=/^\s+/;e.exports=function(e){return e?e.slice(0,n(e)+1).replace(o,""):e}},7518:function(e){e.exports=function(e){return function(t){return e(t)}}},74757:function(e){e.exports=function(e,t){return e.has(t)}},14429:function(e,t,r){var n=r(55639)["__core-js_shared__"];e.exports=n},67114:function(e,t,r){var n=r(88668),o=r(82908),i=r(74757);e.exports=function(e,t,r,a,u,c){var s=1&r,l=e.length,f=t.length;if(l!=f&&!(s&&f>l))return!1;var d=c.get(e),p=c.get(t);if(d&&p)return d==t&&p==e;var h=-1,v=!0,y=2&r?new n:void 0;for(c.set(e,t),c.set(t,e);++h<l;){var m=e[h],g=t[h];if(a)var b=s?a(g,m,h,t,e,c):a(m,g,h,e,t,c);if(void 0!==b){if(b)continue;v=!1;break}if(y){if(!o(t,(function(e,t){if(!i(y,t)&&(m===e||u(m,e,r,a,c)))return y.push(t)}))){v=!1;break}}else if(m!==g&&!u(m,g,r,a,c)){v=!1;break}}return c.delete(e),c.delete(t),v}},18351:function(e,t,r){var n=r(62705),o=r(11149),i=r(77813),a=r(67114),u=r(68776),c=r(21814),s=n?n.prototype:void 0,l=s?s.valueOf:void 0;e.exports=function(e,t,r,n,s,f,d){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!f(new o(e),new o(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var p=u;case"[object Set]":var h=1&n;if(p||(p=c),e.size!=t.size&&!h)return!1;var v=d.get(e);if(v)return v==t;n|=2,d.set(e,t);var y=a(p(e),p(t),n,s,f,d);return d.delete(e),y;case"[object Symbol]":if(l)return l.call(e)==l.call(t)}return!1}},16096:function(e,t,r){var n=r(58234),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,i,a,u){var c=1&r,s=n(e),l=s.length;if(l!=n(t).length&&!c)return!1;for(var f=l;f--;){var d=s[f];if(!(c?d in t:o.call(t,d)))return!1}var p=u.get(e),h=u.get(t);if(p&&h)return p==t&&h==e;var v=!0;u.set(e,t),u.set(t,e);for(var y=c;++f<l;){var m=e[d=s[f]],g=t[d];if(i)var b=c?i(g,m,d,t,e,u):i(m,g,d,e,t,u);if(!(void 0===b?m===g||a(m,g,r,i,u):b)){v=!1;break}y||(y="constructor"==d)}if(v&&!y){var w=e.constructor,E=t.constructor;w==E||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof E&&E instanceof E||(v=!1)}return u.delete(e),u.delete(t),v}},31957:function(e,t,r){var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;e.exports=n},58234:function(e,t,r){var n=r(68866),o=r(99551),i=r(3674);e.exports=function(e){return n(e,i,o)}},45050:function(e,t,r){var n=r(37019);e.exports=function(e,t){var r=e.__data__;return n(t)?r["string"==typeof t?"string":"hash"]:r.map}},1499:function(e,t,r){var n=r(89162),o=r(3674);e.exports=function(e){for(var t=o(e),r=t.length;r--;){var i=t[r],a=e[i];t[r]=[i,a,n(a)]}return t}},10852:function(e,t,r){var n=r(28458),o=r(47801);e.exports=function(e,t){var r=o(e,t);return n(r)?r:void 0}},89607:function(e,t,r){var n=r(62705),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,u=n?n.toStringTag:void 0;e.exports=function(e){var t=i.call(e,u),r=e[u];try{e[u]=void 0;var n=!0}catch(e){}var o=a.call(e);return n&&(t?e[u]=r:delete e[u]),o}},99551:function(e,t,r){var n=r(34963),o=r(70479),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,u=a?function(e){return null==e?[]:(e=Object(e),n(a(e),(function(t){return i.call(e,t)})))}:o;e.exports=u},64160:function(e,t,r){var n=r(18552),o=r(57071),i=r(53818),a=r(58525),u=r(70577),c=r(44239),s=r(80346),l="[object Map]",f="[object Promise]",d="[object Set]",p="[object WeakMap]",h="[object DataView]",v=s(n),y=s(o),m=s(i),g=s(a),b=s(u),w=c;(n&&w(new n(new ArrayBuffer(1)))!=h||o&&w(new o)!=l||i&&w(i.resolve())!=f||a&&w(new a)!=d||u&&w(new u)!=p)&&(w=function(e){var t=c(e),r="[object Object]"==t?e.constructor:void 0,n=r?s(r):"";if(n)switch(n){case v:return h;case y:return l;case m:return f;case g:return d;case b:return p}return t}),e.exports=w},47801:function(e){e.exports=function(e,t){return null==e?void 0:e[t]}},51789:function(e,t,r){var n=r(94536);e.exports=function(){this.__data__=n?n(null):{},this.size=0}},80401:function(e){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},57667:function(e,t,r){var n=r(94536),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(n){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return o.call(t,e)?t[e]:void 0}},21327:function(e,t,r){var n=r(94536),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return n?void 0!==t[e]:o.call(t,e)}},81866:function(e,t,r){var n=r(94536);e.exports=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=n&&void 0===t?"__lodash_hash_undefined__":t,this}},65776:function(e){var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,r){var n=typeof e;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&t.test(e))&&e>-1&&e%1==0&&e<r}},37019:function(e){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},15346:function(e,t,r){var n,o=r(14429),i=(n=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";e.exports=function(e){return!!i&&i in e}},25726:function(e){var t=Object.prototype;e.exports=function(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||t)}},89162:function(e,t,r){var n=r(13218);e.exports=function(e){return e==e&&!n(e)}},27040:function(e){e.exports=function(){this.__data__=[],this.size=0}},14125:function(e,t,r){var n=r(18470),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,r=n(t,e);return!(r<0||(r==t.length-1?t.pop():o.call(t,r,1),--this.size,0))}},82117:function(e,t,r){var n=r(18470);e.exports=function(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}},67518:function(e,t,r){var n=r(18470);e.exports=function(e){return n(this.__data__,e)>-1}},13399:function(e,t,r){var n=r(18470);e.exports=function(e,t){var r=this.__data__,o=n(r,e);return o<0?(++this.size,r.push([e,t])):r[o][1]=t,this}},24785:function(e,t,r){var n=r(1989),o=r(38407),i=r(57071);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(i||o),string:new n}}},11285:function(e,t,r){var n=r(45050);e.exports=function(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}},96e3:function(e,t,r){var n=r(45050);e.exports=function(e){return n(this,e).get(e)}},49916:function(e,t,r){var n=r(45050);e.exports=function(e){return n(this,e).has(e)}},95265:function(e,t,r){var n=r(45050);e.exports=function(e,t){var r=n(this,e),o=r.size;return r.set(e,t),this.size+=r.size==o?0:1,this}},68776:function(e){e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r}},94536:function(e,t,r){var n=r(10852)(Object,"create");e.exports=n},86916:function(e,t,r){var n=r(5569)(Object.keys,Object);e.exports=n},31167:function(e,t,r){e=r.nmd(e);var n=r(31957),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o&&n.process,u=function(){try{return i&&i.require&&i.require("util").types||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=u},2333:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},5569:function(e){e.exports=function(e,t){return function(r){return e(t(r))}}},55639:function(e,t,r){var n=r(31957),o="object"==typeof self&&self&&self.Object===Object&&self,i=n||o||Function("return this")();e.exports=i},90619:function(e){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},72385:function(e){e.exports=function(e){return this.__data__.has(e)}},21814:function(e){e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}},37465:function(e,t,r){var n=r(38407);e.exports=function(){this.__data__=new n,this.size=0}},63779:function(e){e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},67599:function(e){e.exports=function(e){return this.__data__.get(e)}},44758:function(e){e.exports=function(e){return this.__data__.has(e)}},34309:function(e,t,r){var n=r(38407),o=r(57071),i=r(83369);e.exports=function(e,t){var r=this.__data__;if(r instanceof n){var a=r.__data__;if(!o||a.length<199)return a.push([e,t]),this.size=++r.size,this;r=this.__data__=new i(a)}return r.set(e,t),this.size=r.size,this}},80346:function(e){var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},67990:function(e){var t=/\s/;e.exports=function(e){for(var r=e.length;r--&&t.test(e.charAt(r)););return r}},23279:function(e,t,r){var n=r(13218),o=r(7771),i=r(14841),a=Math.max,u=Math.min;e.exports=function(e,t,r){var c,s,l,f,d,p,h=0,v=!1,y=!1,m=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function g(t){var r=c,n=s;return c=s=void 0,h=t,f=e.apply(n,r)}function b(e){return h=e,d=setTimeout(E,t),v?g(e):f}function w(e){var r=e-p;return void 0===p||r>=t||r<0||y&&e-h>=l}function E(){var e=o();if(w(e))return _(e);d=setTimeout(E,function(e){var r=t-(e-p);return y?u(r,l-(e-h)):r}(e))}function _(e){return d=void 0,m&&c?g(e):(c=s=void 0,f)}function O(){var e=o(),r=w(e);if(c=arguments,s=this,p=e,r){if(void 0===d)return b(p);if(y)return clearTimeout(d),d=setTimeout(E,t),g(p)}return void 0===d&&(d=setTimeout(E,t)),f}return t=i(t)||0,n(r)&&(v=!!r.leading,l=(y="maxWait"in r)?a(i(r.maxWait)||0,t):l,m="trailing"in r?!!r.trailing:m),O.cancel=function(){void 0!==d&&clearTimeout(d),h=0,c=p=s=d=void 0},O.flush=function(){return void 0===d?f:_(o())},O}},77813:function(e){e.exports=function(e,t){return e===t||e!=e&&t!=t}},35694:function(e,t,r){var n=r(9454),o=r(37005),i=Object.prototype,a=i.hasOwnProperty,u=i.propertyIsEnumerable,c=n(function(){return arguments}())?n:function(e){return o(e)&&a.call(e,"callee")&&!u.call(e,"callee")};e.exports=c},1469:function(e){var t=Array.isArray;e.exports=t},98612:function(e,t,r){var n=r(23560),o=r(41780);e.exports=function(e){return null!=e&&o(e.length)&&!n(e)}},44144:function(e,t,r){e=r.nmd(e);var n=r(55639),o=r(95062),i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,u=a&&a.exports===i?n.Buffer:void 0,c=(u?u.isBuffer:void 0)||o;e.exports=c},23560:function(e,t,r){var n=r(44239),o=r(13218);e.exports=function(e){if(!o(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},41780:function(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},66379:function(e,t,r){var n=r(2958),o=r(1499);e.exports=function(e,t){return e===t||n(e,t,o(t))}},13218:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},37005:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},33448:function(e,t,r){var n=r(44239),o=r(37005);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==n(e)}},36719:function(e,t,r){var n=r(38749),o=r(7518),i=r(31167),a=i&&i.isTypedArray,u=a?o(a):n;e.exports=u},3674:function(e,t,r){var n=r(14636),o=r(280),i=r(98612);e.exports=function(e){return i(e)?n(e):o(e)}},7771:function(e,t,r){var n=r(55639);e.exports=function(){return n.Date.now()}},70479:function(e){e.exports=function(){return[]}},95062:function(e){e.exports=function(){return!1}},23493:function(e,t,r){var n=r(23279),o=r(13218);e.exports=function(e,t,r){var i=!0,a=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return o(r)&&(i="leading"in r?!!r.leading:i,a="trailing"in r?!!r.trailing:a),n(e,t,{leading:i,maxWait:t,trailing:a})}},14841:function(e,t,r){var n=r(27561),o=r(13218),i=r(33448),a=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,c=/^0o[0-7]+$/i,s=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return NaN;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=n(e);var r=u.test(e);return r||c.test(e)?s(e.slice(2),r?2:8):a.test(e)?NaN:+e}},57824:function(e){var t=1e3,r=60*t,n=60*r,o=24*n;function i(e,t,r,n){var o=t>=1.5*r;return Math.round(e/r)+" "+n+(o?"s":"")}e.exports=function(e,a){a=a||{};var u,c,s=typeof e;if("string"===s&&e.length>0)return function(e){if(!((e=String(e)).length>100)){var i=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(i){var a=parseFloat(i[1]);switch((i[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*a;case"weeks":case"week":case"w":return 6048e5*a;case"days":case"day":case"d":return a*o;case"hours":case"hour":case"hrs":case"hr":case"h":return a*n;case"minutes":case"minute":case"mins":case"min":case"m":return a*r;case"seconds":case"second":case"secs":case"sec":case"s":return a*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return a;default:return}}}}(e);if("number"===s&&isFinite(e))return a.long?(u=e,(c=Math.abs(u))>=o?i(u,c,o,"day"):c>=n?i(u,c,n,"hour"):c>=r?i(u,c,r,"minute"):c>=t?i(u,c,t,"second"):u+" ms"):function(e){var i=Math.abs(e);return i>=o?Math.round(e/o)+"d":i>=n?Math.round(e/n)+"h":i>=r?Math.round(e/r)+"m":i>=t?Math.round(e/t)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},21614:function(e,t,r){"use strict";var n;r.r(t),r.d(t,{NIL:function(){return L},parse:function(){return y},stringify:function(){return d},v1:function(){return v},v3:function(){return x},v4:function(){return k},v5:function(){return P},validate:function(){return u},version:function(){return I}});var o=new Uint8Array(16);function i(){if(!n&&!(n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return n(o)}for(var a=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,u=function(e){return"string"==typeof e&&a.test(e)},c=[],s=0;s<256;++s)c.push((s+256).toString(16).substr(1));var l,f,d=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=(c[e[t+0]]+c[e[t+1]]+c[e[t+2]]+c[e[t+3]]+"-"+c[e[t+4]]+c[e[t+5]]+"-"+c[e[t+6]]+c[e[t+7]]+"-"+c[e[t+8]]+c[e[t+9]]+"-"+c[e[t+10]]+c[e[t+11]]+c[e[t+12]]+c[e[t+13]]+c[e[t+14]]+c[e[t+15]]).toLowerCase();if(!u(r))throw TypeError("Stringified UUID is invalid");return r},p=0,h=0,v=function(e,t,r){var n=t&&r||0,o=t||new Array(16),a=(e=e||{}).node||l,u=void 0!==e.clockseq?e.clockseq:f;if(null==a||null==u){var c=e.random||(e.rng||i)();null==a&&(a=l=[1|c[0],c[1],c[2],c[3],c[4],c[5]]),null==u&&(u=f=16383&(c[6]<<8|c[7]))}var s=void 0!==e.msecs?e.msecs:Date.now(),v=void 0!==e.nsecs?e.nsecs:h+1,y=s-p+(v-h)/1e4;if(y<0&&void 0===e.clockseq&&(u=u+1&16383),(y<0||s>p)&&void 0===e.nsecs&&(v=0),v>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");p=s,h=v,f=u;var m=(1e4*(268435455&(s+=122192928e5))+v)%4294967296;o[n++]=m>>>24&255,o[n++]=m>>>16&255,o[n++]=m>>>8&255,o[n++]=255&m;var g=s/4294967296*1e4&268435455;o[n++]=g>>>8&255,o[n++]=255&g,o[n++]=g>>>24&15|16,o[n++]=g>>>16&255,o[n++]=u>>>8|128,o[n++]=255&u;for(var b=0;b<6;++b)o[n+b]=a[b];return t||d(o)},y=function(e){if(!u(e))throw TypeError("Invalid UUID");var t,r=new Uint8Array(16);return r[0]=(t=parseInt(e.slice(0,8),16))>>>24,r[1]=t>>>16&255,r[2]=t>>>8&255,r[3]=255&t,r[4]=(t=parseInt(e.slice(9,13),16))>>>8,r[5]=255&t,r[6]=(t=parseInt(e.slice(14,18),16))>>>8,r[7]=255&t,r[8]=(t=parseInt(e.slice(19,23),16))>>>8,r[9]=255&t,r[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,r[11]=t/4294967296&255,r[12]=t>>>24&255,r[13]=t>>>16&255,r[14]=t>>>8&255,r[15]=255&t,r};function m(e,t,r){function n(e,n,o,i){if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));for(var t=[],r=0;r<e.length;++r)t.push(e.charCodeAt(r));return t}(e)),"string"==typeof n&&(n=y(n)),16!==n.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var a=new Uint8Array(16+e.length);if(a.set(n),a.set(e,n.length),(a=r(a))[6]=15&a[6]|t,a[8]=63&a[8]|128,o){i=i||0;for(var u=0;u<16;++u)o[i+u]=a[u];return o}return d(a)}try{n.name=e}catch(e){}return n.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",n.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",n}function g(e){return 14+(e+64>>>9<<4)+1}function b(e,t){var r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function w(e,t,r,n,o,i){return b((a=b(b(t,e),b(n,i)))<<(u=o)|a>>>32-u,r);var a,u}function E(e,t,r,n,o,i,a){return w(t&r|~t&n,e,t,o,i,a)}function _(e,t,r,n,o,i,a){return w(t&n|r&~n,e,t,o,i,a)}function O(e,t,r,n,o,i,a){return w(t^r^n,e,t,o,i,a)}function S(e,t,r,n,o,i,a){return w(r^(t|~n),e,t,o,i,a)}var x=m("v3",48,(function(e){if("string"==typeof e){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var r=0;r<t.length;++r)e[r]=t.charCodeAt(r)}return function(e){for(var t=[],r=32*e.length,n="0123456789abcdef",o=0;o<r;o+=8){var i=e[o>>5]>>>o%32&255,a=parseInt(n.charAt(i>>>4&15)+n.charAt(15&i),16);t.push(a)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[g(t)-1]=t;for(var r=1732584193,n=-271733879,o=-1732584194,i=271733878,a=0;a<e.length;a+=16){var u=r,c=n,s=o,l=i;r=E(r,n,o,i,e[a],7,-680876936),i=E(i,r,n,o,e[a+1],12,-389564586),o=E(o,i,r,n,e[a+2],17,606105819),n=E(n,o,i,r,e[a+3],22,-1044525330),r=E(r,n,o,i,e[a+4],7,-176418897),i=E(i,r,n,o,e[a+5],12,1200080426),o=E(o,i,r,n,e[a+6],17,-1473231341),n=E(n,o,i,r,e[a+7],22,-45705983),r=E(r,n,o,i,e[a+8],7,1770035416),i=E(i,r,n,o,e[a+9],12,-1958414417),o=E(o,i,r,n,e[a+10],17,-42063),n=E(n,o,i,r,e[a+11],22,-1990404162),r=E(r,n,o,i,e[a+12],7,1804603682),i=E(i,r,n,o,e[a+13],12,-40341101),o=E(o,i,r,n,e[a+14],17,-1502002290),r=_(r,n=E(n,o,i,r,e[a+15],22,1236535329),o,i,e[a+1],5,-165796510),i=_(i,r,n,o,e[a+6],9,-1069501632),o=_(o,i,r,n,e[a+11],14,643717713),n=_(n,o,i,r,e[a],20,-373897302),r=_(r,n,o,i,e[a+5],5,-701558691),i=_(i,r,n,o,e[a+10],9,38016083),o=_(o,i,r,n,e[a+15],14,-660478335),n=_(n,o,i,r,e[a+4],20,-405537848),r=_(r,n,o,i,e[a+9],5,568446438),i=_(i,r,n,o,e[a+14],9,-1019803690),o=_(o,i,r,n,e[a+3],14,-187363961),n=_(n,o,i,r,e[a+8],20,1163531501),r=_(r,n,o,i,e[a+13],5,-1444681467),i=_(i,r,n,o,e[a+2],9,-51403784),o=_(o,i,r,n,e[a+7],14,1735328473),r=O(r,n=_(n,o,i,r,e[a+12],20,-1926607734),o,i,e[a+5],4,-378558),i=O(i,r,n,o,e[a+8],11,-2022574463),o=O(o,i,r,n,e[a+11],16,1839030562),n=O(n,o,i,r,e[a+14],23,-35309556),r=O(r,n,o,i,e[a+1],4,-1530992060),i=O(i,r,n,o,e[a+4],11,1272893353),o=O(o,i,r,n,e[a+7],16,-155497632),n=O(n,o,i,r,e[a+10],23,-1094730640),r=O(r,n,o,i,e[a+13],4,681279174),i=O(i,r,n,o,e[a],11,-358537222),o=O(o,i,r,n,e[a+3],16,-722521979),n=O(n,o,i,r,e[a+6],23,76029189),r=O(r,n,o,i,e[a+9],4,-640364487),i=O(i,r,n,o,e[a+12],11,-421815835),o=O(o,i,r,n,e[a+15],16,530742520),r=S(r,n=O(n,o,i,r,e[a+2],23,-995338651),o,i,e[a],6,-198630844),i=S(i,r,n,o,e[a+7],10,1126891415),o=S(o,i,r,n,e[a+14],15,-1416354905),n=S(n,o,i,r,e[a+5],21,-57434055),r=S(r,n,o,i,e[a+12],6,1700485571),i=S(i,r,n,o,e[a+3],10,-1894986606),o=S(o,i,r,n,e[a+10],15,-1051523),n=S(n,o,i,r,e[a+1],21,-2054922799),r=S(r,n,o,i,e[a+8],6,1873313359),i=S(i,r,n,o,e[a+15],10,-30611744),o=S(o,i,r,n,e[a+6],15,-1560198380),n=S(n,o,i,r,e[a+13],21,1309151649),r=S(r,n,o,i,e[a+4],6,-145523070),i=S(i,r,n,o,e[a+11],10,-1120210379),o=S(o,i,r,n,e[a+2],15,718787259),n=S(n,o,i,r,e[a+9],21,-343485551),r=b(r,u),n=b(n,c),o=b(o,s),i=b(i,l)}return[r,n,o,i]}(function(e){if(0===e.length)return[];for(var t=8*e.length,r=new Uint32Array(g(t)),n=0;n<t;n+=8)r[n>>5]|=(255&e[n/8])<<n%32;return r}(e),8*e.length))})),k=function(e,t,r){var n=(e=e||{}).random||(e.rng||i)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){r=r||0;for(var o=0;o<16;++o)t[r+o]=n[o];return t}return d(n)};function j(e,t,r,n){switch(e){case 0:return t&r^~t&n;case 1:case 3:return t^r^n;case 2:return t&r^t&n^r&n}}function T(e,t){return e<<t|e>>>32-t}var P=m("v5",80,(function(e){var t=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){var n=unescape(encodeURIComponent(e));e=[];for(var o=0;o<n.length;++o)e.push(n.charCodeAt(o))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var i=e.length/4+2,a=Math.ceil(i/16),u=new Array(a),c=0;c<a;++c){for(var s=new Uint32Array(16),l=0;l<16;++l)s[l]=e[64*c+4*l]<<24|e[64*c+4*l+1]<<16|e[64*c+4*l+2]<<8|e[64*c+4*l+3];u[c]=s}u[a-1][14]=8*(e.length-1)/Math.pow(2,32),u[a-1][14]=Math.floor(u[a-1][14]),u[a-1][15]=8*(e.length-1)&4294967295;for(var f=0;f<a;++f){for(var d=new Uint32Array(80),p=0;p<16;++p)d[p]=u[f][p];for(var h=16;h<80;++h)d[h]=T(d[h-3]^d[h-8]^d[h-14]^d[h-16],1);for(var v=r[0],y=r[1],m=r[2],g=r[3],b=r[4],w=0;w<80;++w){var E=Math.floor(w/20),_=T(v,5)+j(E,y,m,g)+b+t[E]+d[w]>>>0;b=g,g=m,m=T(y,30)>>>0,y=v,v=_}r[0]=r[0]+v>>>0,r[1]=r[1]+y>>>0,r[2]=r[2]+m>>>0,r[3]=r[3]+g>>>0,r[4]=r[4]+b>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,255&r[0],r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,255&r[1],r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,255&r[2],r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,255&r[3],r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,255&r[4]]})),L="00000000-0000-0000-0000-000000000000",I=function(e){if(!u(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}},5715:function(e,t,r){"use strict";let n,o,i;r.r(t),r.d(t,{ALWAYS:function(){return Pe},DECIMAL_FIT:function(){return Ie},DECIMAL_ROUND:function(){return Le},Decoder:function(){return x},Encoder:function(){return ge},FLOAT32_OPTIONS:function(){return re},NEVER:function(){return Te},REUSE_BUFFER_MODE:function(){return Ae},Tag:function(){return F},addExtension:function(){return ke},clearSource:function(){return Q},decode:function(){return ee},decodeIter:function(){return Ne},decodeMultiple:function(){return te},encode:function(){return je},encodeIter:function(){return Me},isNativeAccelerationEnabled:function(){return A},roundFloat32:function(){return ne}});try{n=new TextDecoder}catch(e){}let a=0;const u=[],c={};let s,l,f,d,p,h,v,y=u,m=0,g={},b=0,w=0,E=[],_=[],O={useRecords:!1,mapsAsObjects:!0},S=!1;class x{constructor(e){if(e&&(!e.keyMap&&!e._keyMap||e.useRecords||(e.useRecords=!1,e.mapsAsObjects=!0),!1===e.useRecords&&void 0===e.mapsAsObjects&&(e.mapsAsObjects=!0),e.getStructures&&(e.getShared=e.getStructures),e.getShared&&!e.structures&&((e.structures=[]).uninitialized=!0),e.keyMap)){this.mapKey=new Map;for(let[t,r]of Object.entries(e.keyMap))this.mapKey.set(r,t)}Object.assign(this,e)}decodeKey(e){return this.keyMap&&this.mapKey.get(e)||e}encodeKey(e){return this.keyMap&&this.keyMap.hasOwnProperty(e)?this.keyMap[e]:e}encodeKeys(e){if(!this._keyMap)return e;let t=new Map;for(let[r,n]of Object.entries(e))t.set(this._keyMap.hasOwnProperty(r)?this._keyMap[r]:r,n);return t}decodeKeys(e){if(!this._keyMap||"Map"!=e.constructor.name)return e;if(!this._mapKey){this._mapKey=new Map;for(let[e,t]of Object.entries(this._keyMap))this._mapKey.set(t,e)}let t={};return e.forEach(((e,r)=>t[L(this._mapKey.has(r)?this._mapKey.get(r):r)]=e)),t}mapDecode(e,t){let r=this.decode(e);return this._keyMap&&"Array"===r.constructor.name?r.map((e=>this.decodeKeys(e))):r}decode(e,t){if(o)return X((()=>(Q(),this?this.decode(e,t):x.prototype.decode.call(O,e,t))));i=t>-1?t:e.length,a=0,m=0,w=0,l=null,y=u,f=null,o=e;try{h=e.dataView||(e.dataView=new DataView(e.buffer,e.byteOffset,e.byteLength))}catch(t){if(o=null,e instanceof Uint8Array)throw t;throw new Error("Source must be a Uint8Array or Buffer but was a "+(e&&"object"==typeof e?e.constructor.name:typeof e))}if(this instanceof x){if(g=this,p=this.sharedValues&&(this.pack?new Array(this.maxPrivatePackedValues||16).concat(this.sharedValues):this.sharedValues),this.structures)return s=this.structures,k();(!s||s.length>0)&&(s=[])}else g=O,(!s||s.length>0)&&(s=[]),p=null;return k()}decodeMultiple(e,t){let r,n=0;try{let o=e.length;S=!0;let i=this?this.decode(e,o):Z.decode(e,o);if(!t){for(r=[i];a<o;)n=a,r.push(k());return r}if(!1===t(i))return;for(;a<o;)if(n=a,!1===t(k()))return}catch(e){throw e.lastPosition=n,e.values=r,e}finally{S=!1,Q()}}}function k(){try{let e=j();if(f){if(a>=f.postBundlePosition){let e=new Error("Unexpected bundle position");throw e.incomplete=!0,e}a=f.postBundlePosition}if(a==i)s=null,o=null,d&&(d=null);else{if(a>i){let e=new Error("Unexpected end of CBOR data");throw e.incomplete=!0,e}if(!S)throw new Error("Data read, but end of buffer not reached")}return e}catch(e){throw Q(),(e instanceof RangeError||e.message.startsWith("Unexpected end of buffer"))&&(e.incomplete=!0),e}}function j(){let e=o[a++],t=e>>5;if(e&=31,e>23)switch(e){case 24:e=o[a++];break;case 25:if(7==t)return function(){let e=o[a++],t=o[a++],r=(127&e)>>2;if(31===r)return t||3&e?NaN:128&e?-1/0:1/0;if(0===r){let r=((3&e)<<8|t)/(1<<24);return 128&e?-r:r}return D[3]=128&e|56+(r>>1),D[2]=(7&e)<<5|t>>3,D[1]=t<<5,D[0]=0,R[0]}();e=h.getUint16(a),a+=2;break;case 26:if(7==t){let e=h.getFloat32(a);if(g.useFloat32>2){let t=J[(127&o[a])<<1|o[a+1]>>7];return a+=4,(t*e+(e>0?.5:-.5)>>0)/t}return a+=4,e}e=h.getUint32(a),a+=4;break;case 27:if(7==t){let e=h.getFloat64(a);return a+=8,e}if(t>1){if(h.getUint32(a)>0)throw new Error("JavaScript does not support arrays, maps, or strings with length over 4294967295");e=h.getUint32(a+4)}else g.int64AsNumber?(e=4294967296*h.getUint32(a),e+=h.getUint32(a+4)):e=h.getBigUint64(a);a+=8;break;case 31:switch(t){case 2:case 3:throw new Error("Indefinite length not supported for byte or text strings");case 4:let e,r=[],n=0;for(;(e=j())!=c;)r[n++]=e;return 4==t?r:3==t?r.join(""):Buffer.concat(r);case 5:let o;if(g.mapsAsObjects){let e={};if(g.keyMap)for(;(o=j())!=c;)e[L(g.decodeKey(o))]=j();else for(;(o=j())!=c;)e[L(o)]=j();return e}{v&&(g.mapsAsObjects=!0,v=!1);let e=new Map;if(g.keyMap)for(;(o=j())!=c;)e.set(g.decodeKey(o),j());else for(;(o=j())!=c;)e.set(o,j());return e}case 7:return c;default:throw new Error("Invalid major type for indefinite length "+t)}default:throw new Error("Unknown token "+e)}switch(t){case 0:return e;case 1:return~e;case 2:return r=e,g.copyBuffers?Uint8Array.prototype.slice.call(o,a,a+=r):o.subarray(a,a+=r);case 3:if(w>=a)return l.slice(a-b,(a+=e)-b);if(0==w&&i<140&&e<32){let t=e<16?N(e):function(e){let t=a,r=new Array(e);for(let n=0;n<e;n++){const e=o[a++];if((128&e)>0)return void(a=t);r[n]=e}return M.apply(String,r)}(e);if(null!=t)return t}return I(e);case 4:let t=new Array(e);for(let r=0;r<e;r++)t[r]=j();return t;case 5:if(g.mapsAsObjects){let t={};if(g.keyMap)for(let r=0;r<e;r++)t[L(g.decodeKey(j()))]=j();else for(let r=0;r<e;r++)t[L(j())]=j();return t}{v&&(g.mapsAsObjects=!0,v=!1);let t=new Map;if(g.keyMap)for(let r=0;r<e;r++)t.set(g.decodeKey(j()),j());else for(let r=0;r<e;r++)t.set(j(),j());return t}case 6:if(e>=57337){let t=s[8191&e];if(t)return t.read||(t.read=P(t)),t.read();if(e<65536){if(57343==e)return U(j());if(57342==e){let e=q(),t=j();for(let r=2;r<e;r++)U([t++,j()]);return j()}if(57337==e)return function(){let e=q(),t=a+j();for(let t=2;t<e;t++){let e=q();a+=e}let r=a;return a=t,f=[C(q()),C(q())],f.position0=0,f.position1=0,f.postBundlePosition=a,a=r,j()}();if(g.getShared&&($(),t=s[8191&e],t))return t.read||(t.read=P(t)),t.read()}}let n=E[e];if(n)return n.handlesRead?n(j):n(j());{let t=j();for(let r=0;r<_.length;r++){let n=_[r](e,t);if(void 0!==n)return n}return new F(t,e)}case 7:switch(e){case 20:return!1;case 21:return!0;case 22:return null;case 23:return;default:let t=(p||G())[e];if(void 0!==t)return t;throw new Error("Unknown token "+e)}default:if(isNaN(e)){let e=new Error("Unexpected end of CBOR data");throw e.incomplete=!0,e}throw new Error("Unknown CBOR token "+e)}var r}const T=/^[a-zA-Z_$][a-zA-Z\d_$]*$/;function P(e){return e.slowReads=0,function(){let e=o[a++];if(e&=31,e>23)switch(e){case 24:e=o[a++];break;case 25:e=h.getUint16(a),a+=2;break;case 26:e=h.getUint32(a),a+=4;break;default:throw new Error("Expected array header, but got "+o[a-1])}let t=this.compiledReader;for(;t;){if(t.propertyCount===e)return t(j);t=t.next}if(this.slowReads++>=3){let r=this.length==e?this:this.slice(0,e);return t=g.keyMap?new Function("r","return {"+r.map((e=>g.decodeKey(e))).map((e=>T.test(e)?L(e)+":r()":"["+JSON.stringify(e)+"]:r()")).join(",")+"}"):new Function("r","return {"+r.map((e=>T.test(e)?L(e)+":r()":"["+JSON.stringify(e)+"]:r()")).join(",")+"}"),this.compiledReader&&(t.next=this.compiledReader),t.propertyCount=e,this.compiledReader=t,t(j)}let r={};if(g.keyMap)for(let t=0;t<e;t++)r[L(g.decodeKey(this[t]))]=j();else for(let t=0;t<e;t++)r[L(this[t])]=j();return r}}function L(e){return"__proto__"===e?"__proto_":e}let I=C,A=!1;function C(e){let t;if(e<16&&(t=N(e)))return t;if(e>64&&n)return n.decode(o.subarray(a,a+=e));const r=a+e,i=[];for(t="";a<r;){const e=o[a++];if(0==(128&e))i.push(e);else if(192==(224&e)){const t=63&o[a++];i.push((31&e)<<6|t)}else if(224==(240&e)){const t=63&o[a++],r=63&o[a++];i.push((31&e)<<12|t<<6|r)}else if(240==(248&e)){let t=(7&e)<<18|(63&o[a++])<<12|(63&o[a++])<<6|63&o[a++];t>65535&&(t-=65536,i.push(t>>>10&1023|55296),t=56320|1023&t),i.push(t)}else i.push(e);i.length>=4096&&(t+=M.apply(String,i),i.length=0)}return i.length>0&&(t+=M.apply(String,i)),t}let M=String.fromCharCode;function N(e){if(e<4){if(e<2){if(0===e)return"";{let e=o[a++];return(128&e)>1?void(a-=1):M(e)}}{let t=o[a++],r=o[a++];if((128&t)>0||(128&r)>0)return void(a-=2);if(e<3)return M(t,r);let n=o[a++];return(128&n)>0?void(a-=3):M(t,r,n)}}{let t=o[a++],r=o[a++],n=o[a++],i=o[a++];if((128&t)>0||(128&r)>0||(128&n)>0||(128&i)>0)return void(a-=4);if(e<6){if(4===e)return M(t,r,n,i);{let e=o[a++];return(128&e)>0?void(a-=5):M(t,r,n,i,e)}}if(e<8){let u=o[a++],c=o[a++];if((128&u)>0||(128&c)>0)return void(a-=6);if(e<7)return M(t,r,n,i,u,c);let s=o[a++];return(128&s)>0?void(a-=7):M(t,r,n,i,u,c,s)}{let u=o[a++],c=o[a++],s=o[a++],l=o[a++];if((128&u)>0||(128&c)>0||(128&s)>0||(128&l)>0)return void(a-=8);if(e<10){if(8===e)return M(t,r,n,i,u,c,s,l);{let e=o[a++];return(128&e)>0?void(a-=9):M(t,r,n,i,u,c,s,l,e)}}if(e<12){let f=o[a++],d=o[a++];if((128&f)>0||(128&d)>0)return void(a-=10);if(e<11)return M(t,r,n,i,u,c,s,l,f,d);let p=o[a++];return(128&p)>0?void(a-=11):M(t,r,n,i,u,c,s,l,f,d,p)}{let f=o[a++],d=o[a++],p=o[a++],h=o[a++];if((128&f)>0||(128&d)>0||(128&p)>0||(128&h)>0)return void(a-=12);if(e<14){if(12===e)return M(t,r,n,i,u,c,s,l,f,d,p,h);{let e=o[a++];return(128&e)>0?void(a-=13):M(t,r,n,i,u,c,s,l,f,d,p,h,e)}}{let v=o[a++],y=o[a++];if((128&v)>0||(128&y)>0)return void(a-=14);if(e<15)return M(t,r,n,i,u,c,s,l,f,d,p,h,v,y);let m=o[a++];return(128&m)>0?void(a-=15):M(t,r,n,i,u,c,s,l,f,d,p,h,v,y,m)}}}}}let R=new Float32Array(1),D=new Uint8Array(R.buffer,0,4);new Array(4096);class F{constructor(e,t){this.value=e,this.tag=t}}E[0]=e=>new Date(e),E[1]=e=>new Date(Math.round(1e3*e)),E[2]=e=>{let t=BigInt(0);for(let r=0,n=e.byteLength;r<n;r++)t=BigInt(e[r])+t<<BigInt(8);return t},E[3]=e=>BigInt(-1)-E[2](e),E[4]=e=>+(e[1]+"e"+e[0]),E[5]=e=>e[1]*Math.exp(e[0]*Math.log(2));const U=e=>{let t=e[0]-57344,r=e[1],n=s[t];n&&n.isShared&&((s.restoreStructures||(s.restoreStructures=[]))[t]=n),s[t]=r,r.read=P(r);let o={};if(g.keyMap)for(let t=2,n=e.length;t<n;t++)o[L(g.decodeKey(r[t-2]))]=e[t];else for(let t=2,n=e.length;t<n;t++)o[L(r[t-2])]=e[t];return o};E[105]=U,E[14]=e=>f?f[0].slice(f.position0,f.position0+=e):new F(e,14),E[15]=e=>f?f[1].slice(f.position1,f.position1+=e):new F(e,15);let W={Error:Error,RegExp:RegExp};E[27]=e=>(W[e[0]]||Error)(e[1],e[2]);const z=e=>{if(132!=o[a++])throw new Error("Packed values structure must be followed by a 4 element array");let t=e();return p=p?t.concat(p.slice(t.length)):t,p.prefixes=e(),p.suffixes=e(),e()};function B(e,t){return"string"==typeof e?e+t:e instanceof Array?e.concat(t):Object.assign({},e,t)}function G(){if(!p){if(!g.getShared)throw new Error("No packed values available");$()}return p}z.handlesRead=!0,E[51]=z,E[6]=e=>{if(!p){if(!g.getShared)return new F(e,6);$()}if("number"==typeof e)return p[16+(e>=0?2*e:-2*e-1)];throw new Error("No support for non-integer packed references yet")},E[25]=e=>stringRefs[e],E[256]=e=>{stringRefs=[];try{return e()}finally{stringRefs=null}},E[256].handlesRead=!0,E[28]=e=>{d||(d=new Map,d.id=0);let t,r=d.id++;t=o[a]>>5==4?[]:{};let n={target:t};d.set(r,n);let i=e();return n.used?Object.assign(t,i):(n.target=i,i)},E[28].handlesRead=!0,E[29]=e=>{let t=d.get(e);return t.used=!0,t.target},E[258]=e=>new Set(e),(E[259]=e=>(g.mapsAsObjects&&(g.mapsAsObjects=!1,v=!0),e())).handlesRead=!0,_.push(((e,t)=>e>=225&&e<=255?B(G().prefixes[e-224],t):e>=28704&&e<=32767?B(G().prefixes[e-28672],t):e>=1879052288&&e<=2147483647?B(G().prefixes[e-1879048192],t):e>=216&&e<=223?B(t,G().suffixes[e-216]):e>=27647&&e<=28671?B(t,G().suffixes[e-27639]):e>=1811940352&&e<=1879048191?B(t,G().suffixes[e-1811939328]):1399353956==e?{packedValues:p,structures:s.slice(0),version:t}:55799==e?t:void 0));const V=1==new Uint8Array(new Uint16Array([1]).buffer)[0],Y=[Uint8Array,Uint8ClampedArray,Uint16Array,Uint32Array,"undefined"==typeof BigUint64Array?{name:"BigUint64Array"}:BigUint64Array,Int8Array,Int16Array,Int32Array,"undefined"==typeof BigInt64Array?{name:"BigInt64Array"}:BigInt64Array,Float32Array,Float64Array],H=[64,68,69,70,71,72,77,78,79,85,86];for(let e=0;e<Y.length;e++)K(Y[e],H[e]);function K(e,t){let r="get"+e.name.slice(0,-5);"function"!=typeof e&&(e=null);let n=e.BYTES_PER_ELEMENT;for(let o=0;o<2;o++){if(!o&&1==n)continue;let i=2==n?1:4==n?2:3;E[o?t:t-4]=1==n||o==V?r=>{if(!e)throw new Error("Could not find typed array for code "+t);return new e(Uint8Array.prototype.slice.call(r,0).buffer)}:n=>{if(!e)throw new Error("Could not find typed array for code "+t);let a=new DataView(n.buffer,n.byteOffset,n.byteLength),u=n.length>>i,c=new e(u),s=a[r];for(let e=0;e<u;e++)c[e]=s.call(a,e<<i,o);return c}}}function q(){let e=31&o[a++];if(e>23)switch(e){case 24:e=o[a++];break;case 25:e=h.getUint16(a),a+=2;break;case 26:e=h.getUint32(a),a+=4}return e}function $(){if(g.getShared){let e=X((()=>(o=null,g.getShared())))||{},t=e.structures||[];g.sharedVersion=e.version,p=g.sharedValues=e.packedValues,!0===s?g.structures=s=t:s.splice.apply(s,[0,t.length].concat(t))}}function X(e){let t=i,r=a,n=m,u=b,c=w,p=l,v=y,E=d,_=f,O=new Uint8Array(o.slice(0,i)),x=s,k=g,j=S,T=e();return i=t,a=r,m=n,b=u,w=c,l=p,y=v,d=E,f=_,o=O,S=j,s=x,g=k,h=new DataView(o.buffer,o.byteOffset,o.byteLength),T}function Q(){o=null,d=null,s=null}const J=new Array(147);for(let e=0;e<256;e++)J[e]=+("1e"+Math.floor(45.15-.30103*e));let Z=new x({useRecords:!1});const ee=Z.decode,te=Z.decodeMultiple,re={NEVER:0,ALWAYS:1,DECIMAL_ROUND:3,DECIMAL_FIT:4};function ne(e){R[0]=e;let t=J[(127&D[3])<<1|D[2]>>7];return(t*e+(e>0?.5:-.5)>>0)/t}let oe,ie,ae;try{oe=new TextEncoder}catch(e){}const ue="undefined"!=typeof Buffer,ce=ue?Buffer.allocUnsafeSlow:Uint8Array,se=ue?Buffer:Uint8Array,le=ue?4294967296:2144337920;let fe,de,pe,he=0,ve=null;const ye=/[\u0080-\uFFFF]/,me=Symbol("record-id");class ge extends x{constructor(e){let t,r,n,o,i;super(e),this.offset=0,e=e||{};let a=se.prototype.utf8Write?function(e,t,r){return fe.utf8Write(e,t,r)}:!(!oe||!oe.encodeInto)&&function(e,t){return oe.encodeInto(e,fe.subarray(t)).written},u=this,c=e.structures||e.saveStructures,s=e.maxSharedStructures;if(null==s&&(s=c?128:0),s>8190)throw new Error("Maximum maxSharedStructure is 8190");let l=e.sequential;l&&(s=0),this.structures||(this.structures=[]),this.saveStructures&&(this.saveShared=this.saveStructures);let f,d,p,h=e.sharedValues;if(h){p=Object.create(null);for(let e=0,t=h.length;e<t;e++)p[h[e]]=e}let v=[],y=0,m=0;this.mapEncode=function(e,t){return this._keyMap&&!this._mapped&&"Array"===e.constructor.name&&(e=e.map((e=>this.encodeKeys(e)))),this.encode(e,t)},this.encode=function(a,c){if(fe||(fe=new ce(8192),de=new DataView(fe.buffer,0,8192),he=0),pe=fe.length-10,pe-he<2048?(fe=new ce(fe.length),de=new DataView(fe.buffer,0,fe.length),pe=fe.length-10,he=0):c===Ae&&(he=he+7&2147483640),t=he,u.useSelfDescribedHeader&&(de.setUint32(he,3654940416),he+=3),i=u.structuredClone?new Map:null,u.bundleStrings&&"string"!=typeof a?(ve=[],ve.size=1/0):ve=null,r=u.structures,r){if(r.uninitialized){let e=u.getShared()||{};u.structures=r=e.structures||[],u.sharedVersion=e.version;let t=u.sharedValues=e.packedValues;if(t){p={};for(let e=0,r=t.length;e<r;e++)p[t[e]]=e}}let e=r.length;if(e>s&&!l&&(e=s),!r.transitions){r.transitions=Object.create(null);for(let t=0;t<e;t++){let e=r[t];if(!e)continue;let n,o=r.transitions;for(let r=0,i=e.length;r<i;r++){void 0===o[me]&&(o[me]=t);let i=e[r];n=o[i],n||(n=o[i]=Object.create(null)),o=n}o[me]=1048576|t}}l||(r.nextId=e)}if(n&&(n=!1),o=r||[],d=p,e.pack){let t=new Map;if(t.values=[],t.encoder=u,t.maxValues=e.maxPrivatePackedValues||(p?16:1/0),t.objectMap=p||!1,t.samplingPackedValues=f,Ee(a,t),t.values.length>0){fe[he++]=216,fe[he++]=51,we(4);let e=t.values;g(e),we(0),we(0),d=Object.create(p||null);for(let t=0,r=e.length;t<r;t++)d[e[t]]=t}}try{if(g(a),ve&&xe(t,g),u.offset=he,i&&i.idsToInsert){he+=2*i.idsToInsert.length,he>pe&&w(he),u.offset=he;let e=function(e,t){let r,n=2*t.length,o=e.length-n;t.sort(((e,t)=>e.offset>t.offset?1:-1));for(let r=0;r<t.length;r++){let n=t[r];n.id=r;for(let t of n.references)e[t++]=r>>8,e[t]=255&r}for(;r=t.pop();){let t=r.offset;e.copyWithin(t+n,t,o),n-=2;let i=t+n;e[i++]=216,e[i++]=28,o=t}return e}(fe.subarray(t,he),i.idsToInsert);return i=null,e}return c&Ae?(fe.start=t,fe.end=he,fe):fe.subarray(t,he)}finally{if(r)if(m<10&&m++,r.length>s&&(r.length=s),y>1e4)r.transitions=null,m=0,y=0,v.length>0&&(v=[]);else if(v.length>0&&!l){for(let e=0,t=v.length;e<t;e++)v[e][me]=void 0;v=[]}if(n&&u.saveShared){u.structures.length>s&&(u.structures=u.structures.slice(0,s));let e=fe.subarray(t,he);return!1===u.updateSharedData()?u.encode(a):e}c&Ce&&(he=t)}},this.findCommonStringsToPack=()=>(f=new Map,p||(p=Object.create(null)),e=>{let t=e&&e.threshold||4,r=this.pack?e.maxPrivatePackedValues||16:0;h||(h=this.sharedValues=[]);for(let[e,o]of f)o.count>t&&(p[e]=r++,h.push(e),n=!0);for(;this.saveShared&&!1===this.updateSharedData(););f=null});const g=r=>{he>pe&&(fe=w(he));var n,o=typeof r;if("string"===o){if(d){let t=d[r];if(t>=0)return void(t<16?fe[he++]=t+224:(fe[he++]=198,g(1&t?15-t>>1:t-16>>1)));if(f&&!e.pack){let e=f.get(r);e?e.count++:f.set(r,{count:1})}}let o,i=r.length;if(ve&&i>=4&&i<1024){if((ve.size+=i)>61440){let e,r=(ve[0]?3*ve[0].length+ve[1].length:0)+10;he+r>pe&&(fe=w(he+r)),fe[he++]=217,fe[he++]=223,fe[he++]=249,fe[he++]=ve.position?132:130,fe[he++]=26,e=he-t,he+=4,ve.position&&xe(t,g),ve=["",""],ve.size=0,ve.position=e}let e=ye.test(r);return ve[e?0:1]+=r,fe[he++]=e?206:207,void g(i)}o=i<32?1:i<256?2:i<65536?3:5;let u=3*i;if(he+u>pe&&(fe=w(he+u)),i<64||!a){let e,t,a,u=he+o;for(e=0;e<i;e++)t=r.charCodeAt(e),t<128?fe[u++]=t:t<2048?(fe[u++]=t>>6|192,fe[u++]=63&t|128):55296==(64512&t)&&56320==(64512&(a=r.charCodeAt(e+1)))?(t=65536+((1023&t)<<10)+(1023&a),e++,fe[u++]=t>>18|240,fe[u++]=t>>12&63|128,fe[u++]=t>>6&63|128,fe[u++]=63&t|128):(fe[u++]=t>>12|224,fe[u++]=t>>6&63|128,fe[u++]=63&t|128);n=u-he-o}else n=a(r,he+o,u);n<24?fe[he++]=96|n:n<256?(o<2&&fe.copyWithin(he+2,he+1,he+1+n),fe[he++]=120,fe[he++]=n):n<65536?(o<3&&fe.copyWithin(he+3,he+2,he+2+n),fe[he++]=121,fe[he++]=n>>8,fe[he++]=255&n):(o<5&&fe.copyWithin(he+5,he+3,he+3+n),fe[he++]=122,de.setUint32(he,n),he+=4),he+=n}else if("number"===o)if(r>>>0===r)r<24?fe[he++]=r:r<256?(fe[he++]=24,fe[he++]=r):r<65536?(fe[he++]=25,fe[he++]=r>>8,fe[he++]=255&r):(fe[he++]=26,de.setUint32(he,r),he+=4);else if(r>>0===r)r>=-24?fe[he++]=31-r:r>=-256?(fe[he++]=56,fe[he++]=~r):r>=-65536?(fe[he++]=57,de.setUint16(he,~r),he+=2):(fe[he++]=58,de.setUint32(he,~r),he+=4);else{let e;if((e=this.useFloat32)>0&&r<4294967296&&r>=-2147483648){let t;if(fe[he++]=250,de.setFloat32(he,r),e<4||(t=r*J[(127&fe[he])<<1|fe[he+1]>>7])>>0===t)return void(he+=4);he--}fe[he++]=251,de.setFloat64(he,r),he+=8}else if("object"===o)if(r){if(i){let e=i.get(r);if(e){if(fe[he++]=216,fe[he++]=29,fe[he++]=25,!e.references){let t=i.idsToInsert||(i.idsToInsert=[]);e.references=[],t.push(e)}return e.references.push(he-t),void(he+=2)}i.set(r,{offset:he-t})}let e=r.constructor;if(e===Object)b(r,!0);else if(e===Array){(n=r.length)<24?fe[he++]=128|n:we(n);for(let e=0;e<n;e++)g(r[e])}else if(e===Map)if((this.mapsAsObjects?!1!==this.useTag259ForMaps:this.useTag259ForMaps)&&(fe[he++]=217,fe[he++]=1,fe[he++]=3),(n=r.size)<24?fe[he++]=160|n:n<256?(fe[he++]=184,fe[he++]=n):n<65536?(fe[he++]=185,fe[he++]=n>>8,fe[he++]=255&n):(fe[he++]=186,de.setUint32(he,n),he+=4),u.keyMap)for(let[e,t]of r)g(u.encodeKey(e)),g(t);else for(let[e,t]of r)g(e),g(t);else{for(let e=0,t=ie.length;e<t;e++)if(r instanceof ae[e]){let t=ie[e],n=t.tag;return null==n&&(n=t.getTag&&t.getTag.call(this,r)),n<24?fe[he++]=192|n:n<256?(fe[he++]=216,fe[he++]=n):n<65536?(fe[he++]=217,fe[he++]=n>>8,fe[he++]=255&n):n>-1&&(fe[he++]=218,de.setUint32(he,n),he+=4),void t.encode.call(this,r,g,w)}if(r[Symbol.iterator]){fe[he++]=159;for(let e of r)g(e);return void(fe[he++]=255)}b(r,!r.hasOwnProperty)}}else fe[he++]=246;else if("boolean"===o)fe[he++]=r?245:244;else if("bigint"===o){if(r<BigInt(1)<<BigInt(64)&&r>=0)fe[he++]=27,de.setBigUint64(he,r);else if(r>-(BigInt(1)<<BigInt(64))&&r<0)fe[he++]=59,de.setBigUint64(he,-r-BigInt(1));else{if(!this.largeBigIntToFloat)throw new RangeError(r+" was too large to fit in CBOR 64-bit integer format, set largeBigIntToFloat to convert to float-64");fe[he++]=251,de.setFloat64(he,Number(r))}he+=8}else{if("undefined"!==o)throw new Error("Unknown type: "+o);fe[he++]=247}},b=!1===this.useRecords?this.variableMapSize?e=>{let t=Object.keys(e),r=Object.values(e),n=t.length;if(n<24?fe[he++]=160|n:n<256?(fe[he++]=184,fe[he++]=n):n<65536?(fe[he++]=185,fe[he++]=n>>8,fe[he++]=255&n):(fe[he++]=186,de.setUint32(he,n),he+=4),u.keyMap)for(let e=0;e<n;e++)g(encodeKey(t[e])),g(r[e]);else for(let e=0;e<n;e++)g(t[e]),g(r[e])}:(e,r)=>{fe[he++]=185;let n=he-t;he+=2;let o=0;if(u.keyMap)for(let t in e)(r||e.hasOwnProperty(t))&&(g(u.encodeKey(t)),g(e[t]),o++);else for(let t in e)(r||e.hasOwnProperty(t))&&(g(t),g(e[t]),o++);fe[n+++t]=o>>8,fe[n+t]=255&o}:(e,t)=>{let r,i,a,u=o.transitions||(o.transitions=Object.create(null)),c=0,l=0;if(this.keyMap){a=Object.keys(e).map((e=>this.encodeKey(e))),l=a.length;for(let e=0;e<l;e++){let t=a[e];r=u[t],r||(r=u[t]=Object.create(null),c++),u=r}}else for(let n in e)(t||e.hasOwnProperty(n))&&(r=u[n],r||(1048576&u[me]&&(i=65535&u[me]),r=u[n]=Object.create(null),c++),u=r,l++);let f=u[me];if(void 0!==f)f&=65535,fe[he++]=217,fe[he++]=f>>8|224,fe[he++]=255&f;else{if(a||(a=u.__keys__||(u.__keys__=Object.keys(e))),void 0===i?(f=o.nextId++,f||(f=0,o.nextId=1),f>=256&&(o.nextId=(f=s)+1)):f=i,o[f]=a,!(f<s)){u[me]=f,de.setUint32(he,3655335680),he+=3,c&&(y+=m*c),v.length>=256-s&&(v.shift()[me]=void 0),v.push(u),we(l+2),g(57344+f),g(a);for(let t of Object.values(e))g(t);return}fe[he++]=217,fe[he++]=f>>8|224,fe[he++]=255&f,u=o.transitions;for(let e=0;e<l;e++)(void 0===u[me]||1048576&u[me])&&(u[me]=f),u=u[a[e]];u[me]=1048576|f,n=!0}l<24?fe[he++]=128|l:we(l);for(let r in e)(t||e.hasOwnProperty(r))&&g(e[r])},w=e=>{let r;if(e>16777216){if(e-t>le)throw new Error("Encoded buffer would be larger than maximum buffer size");r=Math.min(le,4096*Math.round(Math.max((e-t)*(e>67108864?1.25:2),4194304)/4096))}else r=1+(Math.max(e-t<<2,fe.length-1)>>12)<<12;let n=new ce(r);return de=new DataView(n.buffer,0,r),fe.copy?fe.copy(n,0,t,e):n.set(fe.slice(t,e)),he-=t,t=0,pe=n.length-10,fe=n}}useBuffer(e){fe=e,de=new DataView(fe.buffer,fe.byteOffset,fe.byteLength),he=0}clearSharedData(){this.structures&&(this.structures=[]),this.sharedValues&&(this.sharedValues=void 0)}updateSharedData(){let e=this.sharedVersion||0;this.sharedVersion=e+1;let t=this.structures.slice(0),r=new be(t,this.sharedValues,this.sharedVersion),n=this.saveShared(r,(t=>(t&&t.version||0)==e));return!1===n?(r=this.getShared()||{},this.structures=r.structures||[],this.sharedValues=r.packedValues,this.sharedVersion=r.version,this.structures.nextId=this.structures.length):t.forEach(((e,t)=>this.structures[t]=e)),n}}class be{constructor(e,t,r){this.structures=e,this.packedValues=t,this.version=r}}function we(e){e<24?fe[he++]=128|e:e<256?(fe[he++]=152,fe[he++]=e):e<65536?(fe[he++]=153,fe[he++]=e>>8,fe[he++]=255&e):(fe[he++]=154,de.setUint32(he,e),he+=4)}function Ee(e,t){switch(typeof e){case"string":if(e.length>3){if(t.objectMap[e]>-1||t.values.length>=t.maxValues)return;let r=t.get(e);if(r)2==++r.count&&t.values.push(e);else if(t.set(e,{count:1}),t.samplingPackedValues){let r=t.samplingPackedValues.get(e);r?r.count++:t.samplingPackedValues.set(e,{count:1})}}break;case"object":if(e)if(e instanceof Array)for(let r=0,n=e.length;r<n;r++)Ee(e[r],t);else{let n=!t.encoder.useRecords;for(var r in e)e.hasOwnProperty(r)&&(n&&Ee(r,t),Ee(e[r],t))}break;case"function":console.log(e)}}const _e=1==new Uint8Array(new Uint16Array([1]).buffer)[0];function Oe(e,t){return!_e&&t>1&&(e-=4),{tag:e,encode:function(e,t){let r=e.byteLength,n=e.byteOffset||0,o=e.buffer||e;t(ue?Buffer.from(o,n,r):new Uint8Array(o,n,r))}}}function Se(e,t){let r=e.byteLength;r<24?fe[he++]=64+r:r<256?(fe[he++]=88,fe[he++]=r):r<65536?(fe[he++]=89,fe[he++]=r>>8,fe[he++]=255&r):(fe[he++]=90,de.setUint32(he,r),he+=4),he+r>=fe.length&&t(he+r),fe.set(e.buffer?e:new Uint8Array(e),he),he+=r}function xe(e,t){de.setUint32(ve.position+e,he-ve.position-e+1);let r=ve;ve=null,t(r[0]),t(r[1])}function ke(e){if(e.Class){if(!e.encode)throw new Error("Extension has no encode function");ae.unshift(e.Class),ie.unshift(e)}!function(e){E[e.tag]=e.decode}(e)}ae=[Date,Set,Error,RegExp,F,ArrayBuffer,Uint8Array,Uint8ClampedArray,Uint16Array,Uint32Array,"undefined"==typeof BigUint64Array?function(){}:BigUint64Array,Int8Array,Int16Array,Int32Array,"undefined"==typeof BigInt64Array?function(){}:BigInt64Array,Float32Array,Float64Array,be],ie=[{tag:1,encode(e,t){let r=e.getTime()/1e3;(this.useTimestamp32||0===e.getMilliseconds())&&r>=0&&r<4294967296?(fe[he++]=26,de.setUint32(he,r),he+=4):(fe[he++]=251,de.setFloat64(he,r),he+=8)}},{tag:258,encode(e,t){t(Array.from(e))}},{tag:27,encode(e,t){t([e.name,e.message])}},{tag:27,encode(e,t){t(["RegExp",e.source,e.flags])}},{getTag:e=>e.tag,encode(e,t){t(e.value)}},{encode(e,t,r){Se(e,r)}},{getTag(e){if(e.constructor===Uint8Array&&(this.tagUint8Array||ue&&!1!==this.tagUint8Array))return 64},encode(e,t,r){Se(e,r)}},Oe(68,1),Oe(69,2),Oe(70,4),Oe(71,8),Oe(72,1),Oe(77,2),Oe(78,4),Oe(79,8),Oe(85,4),Oe(86,8),{encode(e,t){let r=e.packedValues||[],n=e.structures||[];if(r.values.length>0){fe[he++]=216,fe[he++]=51,we(4);let e=r.values;t(e),we(0),we(0),packedObjectMap=Object.create(sharedPackedObjectMap||null);for(let t=0,r=e.length;t<r;t++)packedObjectMap[e[t]]=t}if(n){de.setUint32(he,3655335424),he+=3;let r=n.slice(0);r.unshift(57344),r.push(new F(e.version,1399353956)),t(r)}else t(new F(e.version,1399353956))}}];const je=new ge({useRecords:!1}).encode,{NEVER:Te,ALWAYS:Pe,DECIMAL_ROUND:Le,DECIMAL_FIT:Ie}=re,Ae=512,Ce=1024;function Me(e,t={}){if(e&&"object"==typeof e){if("function"==typeof e[Symbol.iterator])return function*(e,t){const r=new ge(t);for(const t of e)yield r.encode(t)}(e,t);if("function"==typeof e.then||"function"==typeof e[Symbol.asyncIterator])return async function*(e,t){const r=new ge(t);for await(const t of e)yield r.encode(t)}(e,t);throw new Error("first argument must be an Iterable, Async Iterable, Iterator, Async Iterator, or a Promise")}throw new Error("first argument must be an Iterable, Async Iterable, or a Promise for an Async Iterable")}function Ne(e,t={}){if(!e||"object"!=typeof e)throw new Error("first argument must be an Iterable, Async Iterable, Iterator, Async Iterator, or a promise");const r=new x(t);let n;const o=e=>{let t;n&&(e=Buffer.concat([n,e]),n=void 0);try{t=r.decodeMultiple(e)}catch(r){if(!r.incomplete)throw r;n=e.slice(r.lastPosition),t=r.values}return t};return"function"==typeof e[Symbol.iterator]?function*(){for(const t of e)yield*o(t)}():"function"==typeof e[Symbol.asyncIterator]?async function*(){for await(const t of e)yield*o(t)}():void 0}}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={id:n,loaded:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e};var n={};!function(){"use strict";var e=n;r(69070),e.default=void 0;var t,o=(t=r(51178))&&t.__esModule?t:{default:t},i=o.default;if(window.__cobrowse_io_loaded)throw o.default=function(){throw new Error('"CobrowseIO" is read-only.')}(),new Error("CobrowseIO already loaded. This usually means you included the snippet multiple times.");window.__cobrowse_io_loaded=!0;var a=i;e.default=a}(),CobrowseIO=n.default}();
|