lemon-mse 0.4.6 → 0.4.8
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.
@@ -1 +0,0 @@
|
|
1
|
-
(self.webpackChunkrsbuild_test=self.webpackChunkrsbuild_test||[]).push([["716"],{549:function(){},60:function(){},737: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})(t)}function t(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function r(e,t,r){t&&n(e.prototype,t),r&&n(e,r),Object.defineProperty(e,"prototype",{writable:!1})}function i(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}function a(e,t){if("function"!=typeof t&&null!==t)throw 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)}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function o(e,t){return(o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function l(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct||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}}();return function(){var n=s(e),r=t?Reflect.construct(n,arguments,s(this).constructor):n.apply(this,arguments);if(r&&("object"==typeof r||"function"==typeof r))return r;if(void 0!==r)throw TypeError("Derived constructors may only return object or undefined");if(void 0===(r=this))throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function c(e,t){var n,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,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(n="Object"===n&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,void 0):void 0}}(e))||t&&e&&"number"==typeof e.length)return r&&(e=r),n=0,{s:t=function(){},n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:t};throw 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,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function f(){if(h.url)window.location.href=h.url;else if(h.rewriteHTML)try{document.documentElement.innerHTML=h.rewriteHTML}catch(e){document.documentElement.innerText=h.rewriteHTML}else{try{window.opener=null,window.open("","_self"),window.close(),window.history.back()}catch(e){console.log(e)}setTimeout(function(){window.location.href=h.timeOutUrl||"https://theajack.github.io/disable-devtool/404.html?h=".concat(encodeURIComponent(location.host))},500)}}var h={md5:"",ondevtoolopen:f,ondevtoolclose:null,url:"",timeOutUrl:"",tkName:"ddtk",interval:500,disableMenu:!0,stopIntervalTime:5e3,clearIntervalWhenDevOpenTrigger:!1,detectors:[0,1,3,4,5,6,7],clearLog:!0,disableSelect:!1,disableCopy:!1,disableCut:!1,disablePaste:!1,ignore:null,disableIframeParents:!0,seo:!0,rewriteHTML:""},d=["detectors","ondevtoolclose","ignore"];function p(){return(new Date).getTime()}function _(e){var t=p();return e(),p()-t}var m,g,y,b={iframe:!1,pc:!1,qqBrowser:!1,firefox:!1,macos:!1,edge:!1,oldEdge:!1,ie:!1,iosChrome:!1,iosEdge:!1,chrome:!1,seoBot:!1,mobile:!1};function w(){h.clearLog&&y()}var k="",x=!1;function E(){var e=h.ignore;if(e){if("function"==typeof e)return e();if(0!==e.length){var t=location.href;if(k===t)return x;k=t;var n,r=!1,i=c(e);try{for(i.s();!(n=i.n()).done;){var a=n.value;if("string"==typeof a){if(-1!==t.indexOf(a)){r=!0;break}}else if(a.test(t)){r=!0;break}}}catch(e){i.e(e)}finally{i.f()}return x=r}}}var S=function(){return!1};function T(e){var t,n=b.macos?function(e,t){return e.metaKey&&e.altKey&&(73===t||74===t)}:function(e,t){return e.ctrlKey&&e.shiftKey&&(73===t||74===t)},r=b.macos?function(e,t){return e.metaKey&&e.altKey&&85===t||e.metaKey&&83===t}:function(e,t){return e.ctrlKey&&(83===t||85===t)};e.addEventListener("keydown",function(t){var i=(t=t||e.event).keyCode||t.which;if(123===i||n(t,i)||r(t,i))return O(e,t)},!0),h.disableMenu&&e.addEventListener("contextmenu",function(t){if("touch"!==t.pointerType)return O(e,t)}),t=e,h.disableSelect&&A(t,"selectstart"),t=e,h.disableCopy&&A(t,"copy"),t=e,h.disableCut&&A(t,"cut"),t=e,h.disablePaste&&A(t,"paste")}function A(e,t){e.addEventListener(t,function(t){return O(e,t)})}function O(e,t){if(!E()&&!S())return(t=t||e.event).returnValue=!1,t.preventDefault(),!1}var C,D=!1,R={};function L(){for(var e in R)if(R[e])return D=!0;return D=!1}(K=C=C||{})[K.Unknown=-1]="Unknown",K[K.RegToString=0]="RegToString",K[K.DefineId=1]="DefineId",K[K.Size=2]="Size",K[K.DateToString=3]="DateToString",K[K.FuncToString=4]="FuncToString",K[K.Debugger=5]="Debugger",K[K.Performance=6]="Performance",K[K.DebugLib=7]="DebugLib";var P=function(){function e(n){var r=n.type,n=n.enabled,n=void 0===n||n;t(this,e),this.type=C.Unknown,this.enabled=!0,this.type=r,this.enabled=n,this.enabled&&(r=this,B.push(r),this.init())}return r(e,[{key:"onDevToolOpen",value:function(){console.warn("You don't have permission to use DEVTOOL!【type = ".concat(this.type,"】")),h.clearIntervalWhenDevOpenTrigger&&j(),window.clearTimeout(I),h.ondevtoolopen(this.type,f),R[this.type]=!0}},{key:"init",value:function(){}}]),e}(),U=function(){a(n,P);var e=l(n);function n(){return t(this,n),e.call(this,{type:C.DebugLib})}return r(n,[{key:"init",value:function(){}},{key:"detect",value:function(){var e;(!0===(null==(e=null==(e=window.eruda)?void 0:e._devTools)?void 0:e._isShow)||window._vcOrigConsole&&window.document.querySelector("#__vconsole.vc-toggle"))&&this.onDevToolOpen()}}],[{key:"isUsing",value:function(){return!!window.eruda||!!window._vcOrigConsole}}]),n}(),M=0,I=0,B=[],F=0;function j(){window.clearInterval(M)}function N(e){for(var t=function(e,t){e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;for(var n=0x67452301,r=-0x10325477,i=-0x67452302,a=0x10325476,s=0;s<e.length;s+=16){var o=n,l=r,u=i,c=a;n=V(n,r,i,a,e[s+0],7,-0x28955b88),a=V(a,n,r,i,e[s+1],12,-0x173848aa),i=V(i,a,n,r,e[s+2],17,0x242070db),r=V(r,i,a,n,e[s+3],22,-0x3e423112),n=V(n,r,i,a,e[s+4],7,-0xa83f051),a=V(a,n,r,i,e[s+5],12,0x4787c62a),i=V(i,a,n,r,e[s+6],17,-0x57cfb9ed),r=V(r,i,a,n,e[s+7],22,-0x2b96aff),n=V(n,r,i,a,e[s+8],7,0x698098d8),a=V(a,n,r,i,e[s+9],12,-0x74bb0851),i=V(i,a,n,r,e[s+10],17,-42063),r=V(r,i,a,n,e[s+11],22,-0x76a32842),n=V(n,r,i,a,e[s+12],7,0x6b901122),a=V(a,n,r,i,e[s+13],12,-0x2678e6d),i=V(i,a,n,r,e[s+14],17,-0x5986bc72),r=V(r,i,a,n,e[s+15],22,0x49b40821),n=G(n,r,i,a,e[s+1],5,-0x9e1da9e),a=G(a,n,r,i,e[s+6],9,-0x3fbf4cc0),i=G(i,a,n,r,e[s+11],14,0x265e5a51),r=G(r,i,a,n,e[s+0],20,-0x16493856),n=G(n,r,i,a,e[s+5],5,-0x29d0efa3),a=G(a,n,r,i,e[s+10],9,0x2441453),i=G(i,a,n,r,e[s+15],14,-0x275e197f),r=G(r,i,a,n,e[s+4],20,-0x182c0438),n=G(n,r,i,a,e[s+9],5,0x21e1cde6),a=G(a,n,r,i,e[s+14],9,-0x3cc8f82a),i=G(i,a,n,r,e[s+3],14,-0xb2af279),r=G(r,i,a,n,e[s+8],20,0x455a14ed),n=G(n,r,i,a,e[s+13],5,-0x561c16fb),a=G(a,n,r,i,e[s+2],9,-0x3105c08),i=G(i,a,n,r,e[s+7],14,0x676f02d9),r=G(r,i,a,n,e[s+12],20,-0x72d5b376),n=H(n,r,i,a,e[s+5],4,-378558),a=H(a,n,r,i,e[s+8],11,-0x788e097f),i=H(i,a,n,r,e[s+11],16,0x6d9d6122),r=H(r,i,a,n,e[s+14],23,-0x21ac7f4),n=H(n,r,i,a,e[s+1],4,-0x5b4115bc),a=H(a,n,r,i,e[s+4],11,0x4bdecfa9),i=H(i,a,n,r,e[s+7],16,-0x944b4a0),r=H(r,i,a,n,e[s+10],23,-0x41404390),n=H(n,r,i,a,e[s+13],4,0x289b7ec6),a=H(a,n,r,i,e[s+0],11,-0x155ed806),i=H(i,a,n,r,e[s+3],16,-0x2b10cf7b),r=H(r,i,a,n,e[s+6],23,0x4881d05),n=H(n,r,i,a,e[s+9],4,-0x262b2fc7),a=H(a,n,r,i,e[s+12],11,-0x1924661b),i=H(i,a,n,r,e[s+15],16,0x1fa27cf8),r=H(r,i,a,n,e[s+2],23,-0x3b53a99b),n=q(n,r,i,a,e[s+0],6,-0xbd6ddbc),a=q(a,n,r,i,e[s+7],10,0x432aff97),i=q(i,a,n,r,e[s+14],15,-0x546bdc59),r=q(r,i,a,n,e[s+5],21,-0x36c5fc7),n=q(n,r,i,a,e[s+12],6,0x655b59c3),a=q(a,n,r,i,e[s+3],10,-0x70f3336e),i=q(i,a,n,r,e[s+10],15,-1051523),r=q(r,i,a,n,e[s+1],21,-0x7a7ba22f),n=q(n,r,i,a,e[s+8],6,0x6fa87e4f),a=q(a,n,r,i,e[s+15],10,-0x1d31920),i=q(i,a,n,r,e[s+6],15,-0x5cfebcec),r=q(r,i,a,n,e[s+13],21,0x4e0811a1),n=q(n,r,i,a,e[s+4],6,-0x8ac817e),a=q(a,n,r,i,e[s+11],10,-0x42c50dcb),i=q(i,a,n,r,e[s+2],15,0x2ad7d2bb),r=q(r,i,a,n,e[s+9],21,-0x14792c6f),n=W(n,o),r=W(r,l),i=W(i,u),a=W(a,c)}return[n,r,i,a]}(function(e){for(var t=[],n=0;n<8*e.length;n+=8)t[n>>5]|=(255&e.charCodeAt(n/8))<<n%32;return t}(e),8*e.length),n="0123456789abcdef",r="",i=0;i<4*t.length;i++)r+=n.charAt(t[i>>2]>>i%4*8+4&15)+n.charAt(t[i>>2]>>i%4*8&15);return r}function z(e,t,n,r,i,a){return W((t=W(W(t,e),W(r,a)))<<i|t>>>32-i,n)}function V(e,t,n,r,i,a,s){return z(t&n|~t&r,e,t,i,a,s)}function G(e,t,n,r,i,a,s){return z(t&r|n&~r,e,t,i,a,s)}function H(e,t,n,r,i,a,s){return z(t^n^r,e,t,i,a,s)}function q(e,t,n,r,i,a,s){return z(n^(t|~r),e,t,i,a,s)}function W(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}var K=function(){a(n,P);var e=l(n);function n(){return t(this,n),e.call(this,{type:C.RegToString,enabled:b.qqBrowser||b.firefox})}return r(n,[{key:"init",value:function(){var e=this;this.lastTime=0,this.reg=/./,m(this.reg),this.reg.toString=function(){var t;return b.qqBrowser?(t=(new Date).getTime(),e.lastTime&&t-e.lastTime<100?e.onDevToolOpen():e.lastTime=t):b.firefox&&e.onDevToolOpen(),""}}},{key:"detect",value:function(){m(this.reg)}}]),n}(),$=function(){a(n,P);var e=l(n);function n(){return t(this,n),e.call(this,{type:C.DefineId})}return r(n,[{key:"init",value:function(){var e=this;this.div=document.createElement("div"),this.div.__defineGetter__("id",function(){e.onDevToolOpen()}),Object.defineProperty(this.div,"id",{get:function(){e.onDevToolOpen()}})}},{key:"detect",value:function(){m(this.div)}}]),n}(),Z=function(){a(n,P);var e=l(n);function n(){return t(this,n),e.call(this,{type:C.Size,enabled:!b.iframe&&!b.edge})}return r(n,[{key:"init",value:function(){var e=this;this.checkWindowSizeUneven(),window.addEventListener("resize",function(){setTimeout(function(){e.checkWindowSizeUneven()},100)},!0)}},{key:"detect",value:function(){}},{key:"checkWindowSizeUneven",value:function(){var e=function(){if(null!=window.devicePixelRatio)return window.devicePixelRatio;var e=window.screen;return!(null!=e||!e.deviceXDPI||!e.logicalXDPI)&&e.deviceXDPI/e.logicalXDPI}();if(!1!==e){var t=200<window.outerWidth-window.innerWidth*e,e=300<window.outerHeight-window.innerHeight*e;if(t||e)return this.onDevToolOpen(),!1;R[this.type]=!1}return!0}}]),n}(),Y,X=function(){a(n,P);var e=l(n);function n(){return t(this,n),e.call(this,{type:C.DateToString,enabled:!b.iosChrome&&!b.iosEdge})}return r(n,[{key:"init",value:function(){var e=this;this.count=0,this.date=new Date,this.date.toString=function(){return e.count++,""}}},{key:"detect",value:function(){this.count=0,m(this.date),w(),2<=this.count&&this.onDevToolOpen()}}]),n}(),J=function(){a(n,P);var e=l(n);function n(){return t(this,n),e.call(this,{type:C.FuncToString,enabled:!b.iosChrome&&!b.iosEdge})}return r(n,[{key:"init",value:function(){var e=this;this.count=0,this.func=function(){},this.func.toString=function(){return e.count++,""}}},{key:"detect",value:function(){this.count=0,m(this.func),w(),2<=this.count&&this.onDevToolOpen()}}]),n}(),Q=function(){a(n,P);var e=l(n);function n(){return t(this,n),e.call(this,{type:C.Debugger,enabled:b.iosChrome||b.iosEdge})}return r(n,[{key:"detect",value:function(){var e=p();100<p()-e&&this.onDevToolOpen()}}]),n}(),ee=function(){a(n,P);var e=l(n);function n(){return t(this,n),e.call(this,{type:C.Performance,enabled:b.chrome||!b.mobile})}return r(n,[{key:"init",value:function(){this.maxPrintTime=0,this.largeObjectArray=function(){for(var e=function(){for(var e={},t=0;t<500;t++)e["".concat(t)]="".concat(t);return e}(),t=[],n=0;n<50;n++)t.push(e);return t}()}},{key:"detect",value:function(){var e=this,t=_(function(){g(e.largeObjectArray)}),n=_(function(){m(e.largeObjectArray)});if(this.maxPrintTime=Math.max(this.maxPrintTime,n),w(),0===t||0===this.maxPrintTime)return!1;t>10*this.maxPrintTime&&this.onDevToolOpen()}}]),n}(),et=(i(Y={},C.RegToString,K),i(Y,C.DefineId,$),i(Y,C.Size,Z),i(Y,C.DateToString,X),i(Y,C.FuncToString,J),i(Y,C.Debugger,Q),i(Y,C.Performance,ee),i(Y,C.DebugLib,U),Y),en=Object.assign(function(t){function n(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"";return{success:!e,reason:e}}if(en.isRunning)return n("already running");if(function(){function e(e){return -1!==t.indexOf(e)}var t=navigator.userAgent.toLowerCase(),n=function(){var e=navigator,t=e.platform,e=e.maxTouchPoints;if("number"==typeof e)return 1<e;if("string"==typeof t){if(e=t.toLowerCase(),/(mac|win)/i.test(e))return!1;if(/(android|iphone|ipad|ipod|arch)/i.test(e))return!0}return/(iphone|ipad|ipod|ios|android)/i.test(navigator.userAgent.toLowerCase())}(),r=!!window.top&&window!==window.top,i=e("qqbrowser"),a=e("firefox"),s=e("macintosh"),o=e("edge"),l=o&&!e("chrome"),u=l||e("trident")||e("msie"),c=e("crios"),f=e("edgios"),h=e("chrome")||c,d=!n&&/(googlebot|baiduspider|bingbot|applebot|petalbot|yandexbot|bytespider|chrome\-lighthouse|moto g power)/i.test(t);Object.assign(b,{iframe:r,pc:!n,qqBrowser:i,firefox:a,macos:s,edge:o,oldEdge:l,ie:u,iosChrome:c,iosEdge:f,chrome:h,seoBot:d,mobile:n})}(),s=window.console||{log:function(){},table:function(){},clear:function(){}},y=b.ie?(m=function(){return s.log.apply(s,arguments)},g=function(){return s.table.apply(s,arguments)},function(){return s.clear()}):(m=s.log,g=s.table,s.clear),function(t){var n,r=0<arguments.length&&void 0!==t?t:{};for(n in h)void 0===r[n]||e(h[n])!==e(r[n])&&-1===d.indexOf(n)||(h[n]=r[n]);"function"==typeof h.ondevtoolclose&&!0===h.clearIntervalWhenDevOpenTrigger&&(h.clearIntervalWhenDevOpenTrigger=!1,console.warn("【DISABLE-DEVTOOL】clearIntervalWhenDevOpenTrigger 在使用 ondevtoolclose 时无效"))}(t),h.md5&&N((r=h.tkName,i=window.location.search,a=window.location.hash,""!==(i=""===i&&""!==a?"?".concat(a.split("?")[1]):i)&&void 0!==i&&(a=RegExp("(^|&)"+r+"=([^&]*)(&|$)","i"),null!=(r=i.substr(1).match(a)))?unescape(r[2]):""))===h.md5)return n("token passed");if(h.seo&&b.seoBot)return n("seobot");en.isRunning=!0,function(e){function t(){u=!0}function n(){u=!1}var r,i,a,s,o,l,u=!1;function f(){(l[s]===a?i:r)()}(function(e,t){function n(n){return function(){e&&e();var r=n.apply(void 0,arguments);return t&&t(),r}}var r=window.alert,i=window.confirm,a=window.prompt;try{window.alert=n(r),window.confirm=n(i),window.prompt=n(a)}catch(e){}})(t,n),r=n,i=t,void 0!==(l=document).hidden?(a="hidden",o="visibilitychange",s="visibilityState"):void 0!==l.mozHidden?(a="mozHidden",o="mozvisibilitychange",s="mozVisibilityState"):void 0!==l.msHidden?(a="msHidden",o="msvisibilitychange",s="msVisibilityState"):void 0!==l.webkitHidden&&(a="webkitHidden",o="webkitvisibilitychange",s="webkitVisibilityState"),l.removeEventListener(o,f,!1),l.addEventListener(o,f,!1),M=window.setInterval(function(){if(!(e.isSuspend||u||E())){var t,n,r=c(B);try{for(r.s();!(t=r.n()).done;){var i=t.value;R[i.type]=!1,i.detect(F++)}}catch(e){r.e(e)}finally{r.f()}w(),"function"==typeof h.ondevtoolclose&&(n=D,!L()&&n&&h.ondevtoolclose())}},h.interval),I=setTimeout(function(){b.pc||U.isUsing()||j()},h.stopIntervalTime)}(en);var r,i,a,s,o=(S=function(){return en.isSuspend},window.top),l=window.parent;if(T(window),h.disableIframeParents&&o&&l&&o!==window){for(;l!==o;)T(l),l=l.parent;T(o)}return("all"===h.detectors?Object.keys(et):h.detectors).forEach(function(e){new et[e]}),n()},{isRunning:!1,isSuspend:!1,md5:N,version:"0.3.8",DetectorType:C,isDevToolOpened:L});return(K=function(){if("undefined"==typeof window||!window.document)return null;var e=document.querySelector("[disable-devtool-auto]");if(!e)return null;var t=["disable-menu","disable-select","disable-copy","disable-cut","disable-paste","clear-log"],n=["interval"],r={};return["md5","url","tk-name","detectors"].concat(t,n).forEach(function(i){var a=e.getAttribute(i);null!==a&&(-1!==n.indexOf(i)?a=parseInt(a):-1!==t.indexOf(i)?a="false"!==a:"detector"===i&&"all"!==a&&(a=a.split(" ")),r[function(e){if(-1===e.indexOf("-"))return e;var t=!1;return e.split("").map(function(e){return"-"===e?(t=!0,""):t?(t=!1,e.toUpperCase()):e}).join("")}(i)]=a)}),r}())&&en(K),en}()},961:function(e,t,n){e=n.nmd(e);var r=function(){var e=String.fromCharCode,t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",r={};function i(e,t){if(!r[e]){r[e]={};for(var n=0;n<e.length;n++)r[e][e.charAt(n)]=n}return r[e][t]}var a={compressToBase64:function(e){if(null==e)return"";var n=a._compress(e,6,function(e){return t.charAt(e)});switch(n.length%4){default:case 0:return n;case 1:return n+"===";case 2:return n+"==";case 3:return n+"="}},decompressFromBase64:function(e){return null==e?"":""==e?null:a._decompress(e.length,32,function(n){return i(t,e.charAt(n))})},compressToUTF16:function(t){return null==t?"":a._compress(t,15,function(t){return e(t+32)})+" "},decompressFromUTF16:function(e){return null==e?"":""==e?null:a._decompress(e.length,16384,function(t){return e.charCodeAt(t)-32})},compressToUint8Array:function(e){for(var t=a.compress(e),n=new Uint8Array(2*t.length),r=0,i=t.length;r<i;r++){var s=t.charCodeAt(r);n[2*r]=s>>>8,n[2*r+1]=s%256}return n},decompressFromUint8Array:function(t){if(null==t)return a.decompress(t);for(var n=Array(t.length/2),r=0,i=n.length;r<i;r++)n[r]=256*t[2*r]+t[2*r+1];var s=[];return n.forEach(function(t){s.push(e(t))}),a.decompress(s.join(""))},compressToEncodedURIComponent:function(e){return null==e?"":a._compress(e,6,function(e){return n.charAt(e)})},decompressFromEncodedURIComponent:function(e){return null==e?"":""==e?null:(e=e.replace(/ /g,"+"),a._decompress(e.length,32,function(t){return i(n,e.charAt(t))}))},compress:function(t){return a._compress(t,16,function(t){return e(t)})},_compress:function(e,t,n){if(null==e)return"";var r,i,a,s={},o={},l="",u="",c="",f=2,h=3,d=2,p=[],_=0,m=0;for(a=0;a<e.length;a+=1)if(l=e.charAt(a),Object.prototype.hasOwnProperty.call(s,l)||(s[l]=h++,o[l]=!0),u=c+l,Object.prototype.hasOwnProperty.call(s,u))c=u;else{if(Object.prototype.hasOwnProperty.call(o,c)){if(256>c.charCodeAt(0)){for(r=0;r<d;r++)_<<=1,m==t-1?(m=0,p.push(n(_)),_=0):m++;for(r=0,i=c.charCodeAt(0);r<8;r++)_=_<<1|1&i,m==t-1?(m=0,p.push(n(_)),_=0):m++,i>>=1}else{for(r=0,i=1;r<d;r++)_=_<<1|i,m==t-1?(m=0,p.push(n(_)),_=0):m++,i=0;for(r=0,i=c.charCodeAt(0);r<16;r++)_=_<<1|1&i,m==t-1?(m=0,p.push(n(_)),_=0):m++,i>>=1}0==--f&&(f=Math.pow(2,d),d++),delete o[c]}else for(r=0,i=s[c];r<d;r++)_=_<<1|1&i,m==t-1?(m=0,p.push(n(_)),_=0):m++,i>>=1;0==--f&&(f=Math.pow(2,d),d++),s[u]=h++,c=String(l)}if(""!==c){if(Object.prototype.hasOwnProperty.call(o,c)){if(256>c.charCodeAt(0)){for(r=0;r<d;r++)_<<=1,m==t-1?(m=0,p.push(n(_)),_=0):m++;for(r=0,i=c.charCodeAt(0);r<8;r++)_=_<<1|1&i,m==t-1?(m=0,p.push(n(_)),_=0):m++,i>>=1}else{for(r=0,i=1;r<d;r++)_=_<<1|i,m==t-1?(m=0,p.push(n(_)),_=0):m++,i=0;for(r=0,i=c.charCodeAt(0);r<16;r++)_=_<<1|1&i,m==t-1?(m=0,p.push(n(_)),_=0):m++,i>>=1}0==--f&&(f=Math.pow(2,d),d++),delete o[c]}else for(r=0,i=s[c];r<d;r++)_=_<<1|1&i,m==t-1?(m=0,p.push(n(_)),_=0):m++,i>>=1;0==--f&&(f=Math.pow(2,d),d++)}for(r=0,i=2;r<d;r++)_=_<<1|1&i,m==t-1?(m=0,p.push(n(_)),_=0):m++,i>>=1;for(;;){if(_<<=1,m==t-1){p.push(n(_));break}m++}return p.join("")},decompress:function(e){return null==e?"":""==e?null:a._decompress(e.length,32768,function(t){return e.charCodeAt(t)})},_decompress:function(t,n,r){var i,a,s,o,l,u,c,f=[],h=4,d=4,p=3,_="",m=[],g={val:r(0),position:n,index:1};for(i=0;i<3;i+=1)f[i]=i;for(s=0,l=4,u=1;u!=l;)o=g.val&g.position,g.position>>=1,0==g.position&&(g.position=n,g.val=r(g.index++)),s|=+(o>0)*u,u<<=1;switch(s){case 0:for(s=0,l=256,u=1;u!=l;)o=g.val&g.position,g.position>>=1,0==g.position&&(g.position=n,g.val=r(g.index++)),s|=+(o>0)*u,u<<=1;c=e(s);break;case 1:for(s=0,l=65536,u=1;u!=l;)o=g.val&g.position,g.position>>=1,0==g.position&&(g.position=n,g.val=r(g.index++)),s|=+(o>0)*u,u<<=1;c=e(s);break;case 2:return""}for(f[3]=c,a=c,m.push(c);;){if(g.index>t)return"";for(s=0,l=Math.pow(2,p),u=1;u!=l;)o=g.val&g.position,g.position>>=1,0==g.position&&(g.position=n,g.val=r(g.index++)),s|=+(o>0)*u,u<<=1;switch(c=s){case 0:for(s=0,l=256,u=1;u!=l;)o=g.val&g.position,g.position>>=1,0==g.position&&(g.position=n,g.val=r(g.index++)),s|=+(o>0)*u,u<<=1;f[d++]=e(s),c=d-1,h--;break;case 1:for(s=0,l=65536,u=1;u!=l;)o=g.val&g.position,g.position>>=1,0==g.position&&(g.position=n,g.val=r(g.index++)),s|=+(o>0)*u,u<<=1;f[d++]=e(s),c=d-1,h--;break;case 2:return m.join("")}if(0==h&&(h=Math.pow(2,p),p++),f[c])_=f[c];else{if(c!==d)return null;_=a+a.charAt(0)}m.push(_),f[d++]=a+_.charAt(0),h--,a=_,0==h&&(h=Math.pow(2,p),p++)}}};return a}();"function"==typeof define&&define.amd?define(function(){return r}):null!=e?e.exports=r:"undefined"!=typeof angular&&null!=angular&&angular.module("LZString",[]).factory("LZString",function(){return r})},744:function(e,t){"use strict";t.default=(e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n}},595:function(e,t,n){"use strict";var r;let i,a,s,o,l,u,c,f,h,d,p,_;function m(e){let t=Object.create(null);for(let n of e.split(","))t[n]=1;return e=>e in t}n.d(t,{iH:()=>td,zw:()=>eu,Wm:()=>rY,LL:()=>nU,h:()=>ih,uE:()=>rQ,se:()=>n_,Fl:()=>ic,wg:()=>rj,XI:()=>tp,SU:()=>tm,Rr:()=>nG,D2:()=>i7,HY:()=>rP,Ob:()=>nh,uT:()=>ik,f3:()=>n8,j5:()=>en,qj:()=>tt,Ko:()=>nB,WI:()=>nF,Vf:()=>nq,Uk:()=>rJ,_:()=>rZ,ri:()=>ar,JJ:()=>n3,sY:()=>an,SK:()=>nT,up:()=>nL,lR:()=>t2,Um:()=>tn,tT:()=>rE,Jd:()=>nS,nr:()=>i6,dq:()=>th,YP:()=>rb,iM:()=>i4,FN:()=>r9,F8:()=>iI,j4:()=>rH,kq:()=>r0,iD:()=>rG,C_:()=>es,Y3:()=>tM,m0:()=>ry,w5:()=>tH,wy:()=>tq,bv:()=>nk,dl:()=>np,aZ:()=>no});let g={},y=[],b=()=>{},w=()=>!1,k=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&(e.charCodeAt(2)>122||97>e.charCodeAt(2)),x=e=>e.startsWith("onUpdate:"),E=Object.assign,S=(e,t)=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)},T=Object.prototype.hasOwnProperty,A=(e,t)=>T.call(e,t),O=Array.isArray,C=e=>"[object Map]"===F(e),D=e=>"[object Set]"===F(e),R=e=>"[object RegExp]"===F(e),L=e=>"function"==typeof e,P=e=>"string"==typeof e,U=e=>"symbol"==typeof e,M=e=>null!==e&&"object"==typeof e,I=e=>(M(e)||L(e))&&L(e.then)&&L(e.catch),B=Object.prototype.toString,F=e=>B.call(e),j=e=>F(e).slice(8,-1),N=e=>"[object Object]"===F(e),z=e=>P(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,V=m(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),G=e=>{let t=Object.create(null);return n=>t[n]||(t[n]=e(n))},H=/-(\w)/g,q=G(e=>e.replace(H,(e,t)=>t?t.toUpperCase():"")),W=/\B([A-Z])/g,K=G(e=>e.replace(W,"-$1").toLowerCase()),$=G(e=>e.charAt(0).toUpperCase()+e.slice(1)),Z=G(e=>e?`on${$(e)}`:""),Y=(e,t)=>!Object.is(e,t),X=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},J=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},Q=e=>{let t=parseFloat(e);return isNaN(t)?e:t},ee=e=>{let t=P(e)?Number(e):NaN;return isNaN(t)?e:t},et=()=>i||(i="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:{});function en(e){if(O(e)){let t={};for(let n=0;n<e.length;n++){let r=e[n],i=P(r)?function(e){let t={};return e.replace(ea,"").split(er).forEach(e=>{if(e){let n=e.split(ei);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}(r):en(r);if(i)for(let e in i)t[e]=i[e]}return t}if(P(e)||M(e))return e}let er=/;(?![^(]*\))/g,ei=/:([^]+)/,ea=/\/\*[^]*?\*\//g;function es(e){let t="";if(P(e))t=e;else if(O(e))for(let n=0;n<e.length;n++){let r=es(e[n]);r&&(t+=r+" ")}else if(M(e))for(let n in e)e[n]&&(t+=n+" ");return t.trim()}let eo=m("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly"),el=e=>!!(e&&!0===e.__v_isRef),eu=e=>P(e)?e:null==e?"":O(e)||M(e)&&(e.toString===B||!L(e.toString))?el(e)?eu(e.value):JSON.stringify(e,ec,2):String(e),ec=(e,t)=>{if(el(t))return ec(e,t.value);if(C(t))return{[`Map(${t.size})`]:[...t.entries()].reduce((e,[t,n],r)=>(e[ef(t,r)+" =>"]=n,e),{})};if(D(t))return{[`Set(${t.size})`]:[...t.values()].map(e=>ef(e))};if(U(t))return ef(t);if(M(t)&&!O(t)&&!N(t))return String(t);return t},ef=(e,t="")=>{var n;return U(e)?`Symbol(${null!=(n=e.description)?n:t})`:e};class eh{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=a,!e&&a&&(this.index=(a.scopes||(a.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){let e,t;if(this._isPaused=!0,this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].pause();for(e=0,t=this.effects.length;e<t;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){let e,t;if(this._isPaused=!1,this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].resume();for(e=0,t=this.effects.length;e<t;e++)this.effects[e].resume()}}run(e){if(this._active){let t=a;try{return a=this,e()}finally{a=t}}}on(){a=this}off(){a=this.parent}stop(e){if(this._active){let t,n;for(t=0,this._active=!1,n=this.effects.length;t<n;t++)this.effects[t].stop();for(t=0,this.effects.length=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.cleanups.length=0,this.scopes){for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!e){let e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.parent=void 0}}}let ed=new WeakSet;class ep{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,a&&a.active&&a.effects.push(this)}pause(){this.flags|=64}resume(){64&this.flags&&(this.flags&=-65,ed.has(this)&&(ed.delete(this),this.trigger()))}notify(){(!(2&this.flags)||32&this.flags)&&(8&this.flags||ev(this))}run(){if(!(1&this.flags))return this.fn();this.flags|=2,eA(this),eg(this);let e=s,t=ex;s=this,ex=!0;try{return this.fn()}finally{ey(this),s=e,ex=t,this.flags&=-3}}stop(){if(1&this.flags){for(let e=this.deps;e;e=e.nextDep)ek(e);this.deps=this.depsTail=void 0,eA(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){64&this.flags?ed.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){eb(this)&&this.run()}get dirty(){return eb(this)}}let e_=0;function ev(e,t=!1){if(e.flags|=8,t){e.next=l,l=e;return}e.next=o,o=e}function em(){let e;if(!(--e_>0)){if(l){let e=l;for(l=void 0;e;){let t=e.next;e.next=void 0,e.flags&=-9,e=t}}for(;o;){let t=o;for(o=void 0;t;){let n=t.next;if(t.next=void 0,t.flags&=-9,1&t.flags)try{t.trigger()}catch(t){e||(e=t)}t=n}}if(e)throw e}}function eg(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function ey(e){let t,n=e.depsTail,r=n;for(;r;){let e=r.prevDep;-1===r.version?(r===n&&(n=e),ek(r),function(e){let{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=e}e.deps=t,e.depsTail=n}function eb(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(ew(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function ew(e){if(4&e.flags&&!(16&e.flags)||(e.flags&=-17,e.globalVersion===eO))return;e.globalVersion=eO;let t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!eb(e)){e.flags&=-3;return}let n=s,r=ex;s=e,ex=!0;try{eg(e);let n=e.fn(e._value);(0===t.version||Y(n,e._value))&&(e._value=n,t.version++)}catch(e){throw t.version++,e}finally{s=n,ex=r,ey(e),e.flags&=-3}}function ek(e,t=!1){let{dep:n,prevSub:r,nextSub:i}=e;if(r&&(r.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let e=n.computed.deps;e;e=e.nextDep)ek(e,!0)}t||--n.sc||!n.map||n.map.delete(n.key)}let ex=!0,eE=[];function eS(){eE.push(ex),ex=!1}function eT(){let e=eE.pop();ex=void 0===e||e}function eA(e){let{cleanup:t}=e;if(e.cleanup=void 0,t){let e=s;s=void 0;try{t()}finally{s=e}}}let eO=0;class eC{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class eD{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(e){if(!s||!ex||s===this.computed)return;let t=this.activeLink;if(void 0===t||t.sub!==s)t=this.activeLink=new eC(s,this),s.deps?(t.prevDep=s.depsTail,s.depsTail.nextDep=t,s.depsTail=t):s.deps=s.depsTail=t,function e(t){if(t.dep.sc++,4&t.sub.flags){let n=t.dep.computed;if(n&&!t.dep.subs){n.flags|=20;for(let t=n.deps;t;t=t.nextDep)e(t)}let r=t.dep.subs;r!==t&&(t.prevSub=r,r&&(r.nextSub=t)),t.dep.subs=t}}(t);else if(-1===t.version&&(t.version=this.version,t.nextDep)){let e=t.nextDep;e.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=e),t.prevDep=s.depsTail,t.nextDep=void 0,s.depsTail.nextDep=t,s.depsTail=t,s.deps===t&&(s.deps=e)}return t}trigger(e){this.version++,eO++,this.notify(e)}notify(e){e_++;try{for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{em()}}}let eR=new WeakMap,eL=Symbol(""),eP=Symbol(""),eU=Symbol("");function eM(e,t,n){if(ex&&s){let t=eR.get(e);t||eR.set(e,t=new Map);let r=t.get(n);r||(t.set(n,r=new eD),r.map=t,r.key=n),r.track()}}function eI(e,t,n,r,i,a){let s=eR.get(e);if(!s)return void eO++;let o=e=>{e&&e.trigger()};if(e_++,"clear"===t)s.forEach(o);else{let i=O(e),a=i&&z(n);if(i&&"length"===n){let e=Number(r);s.forEach((t,n)=>{("length"===n||n===eU||!U(n)&&n>=e)&&o(t)})}else switch((void 0!==n||s.has(void 0))&&o(s.get(n)),a&&o(s.get(eU)),t){case"add":i?a&&o(s.get("length")):(o(s.get(eL)),C(e)&&o(s.get(eP)));break;case"delete":!i&&(o(s.get(eL)),C(e)&&o(s.get(eP)));break;case"set":C(e)&&o(s.get(eL))}}em()}function eB(e){let t=tu(e);return t===e?t:(eM(t,"iterate",eU),to(e)?t:t.map(tc))}function eF(e){return eM(e=tu(e),"iterate",eU),e}let ej={__proto__:null,[Symbol.iterator](){return eN(this,Symbol.iterator,tc)},concat(...e){return eB(this).concat(...e.map(e=>O(e)?eB(e):e))},entries(){return eN(this,"entries",e=>(e[1]=tc(e[1]),e))},every(e,t){return eV(this,"every",e,t,void 0,arguments)},filter(e,t){return eV(this,"filter",e,t,e=>e.map(tc),arguments)},find(e,t){return eV(this,"find",e,t,tc,arguments)},findIndex(e,t){return eV(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return eV(this,"findLast",e,t,tc,arguments)},findLastIndex(e,t){return eV(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return eV(this,"forEach",e,t,void 0,arguments)},includes(...e){return eH(this,"includes",e)},indexOf(...e){return eH(this,"indexOf",e)},join(e){return eB(this).join(e)},lastIndexOf(...e){return eH(this,"lastIndexOf",e)},map(e,t){return eV(this,"map",e,t,void 0,arguments)},pop(){return eq(this,"pop")},push(...e){return eq(this,"push",e)},reduce(e,...t){return eG(this,"reduce",e,t)},reduceRight(e,...t){return eG(this,"reduceRight",e,t)},shift(){return eq(this,"shift")},some(e,t){return eV(this,"some",e,t,void 0,arguments)},splice(...e){return eq(this,"splice",e)},toReversed(){return eB(this).toReversed()},toSorted(e){return eB(this).toSorted(e)},toSpliced(...e){return eB(this).toSpliced(...e)},unshift(...e){return eq(this,"unshift",e)},values(){return eN(this,"values",tc)}};function eN(e,t,n){let r=eF(e),i=r[t]();return r===e||to(e)||(i._next=i.next,i.next=()=>{let e=i._next();return e.value&&(e.value=n(e.value)),e}),i}let ez=Array.prototype;function eV(e,t,n,r,i,a){let s=eF(e),o=s!==e&&!to(e),l=s[t];if(l!==ez[t]){let t=l.apply(e,a);return o?tc(t):t}let u=n;s!==e&&(o?u=function(t,r){return n.call(this,tc(t),r,e)}:n.length>2&&(u=function(t,r){return n.call(this,t,r,e)}));let c=l.call(s,u,r);return o&&i?i(c):c}function eG(e,t,n,r){let i=eF(e),a=n;return i!==e&&(to(e)?n.length>3&&(a=function(t,r,i){return n.call(this,t,r,i,e)}):a=function(t,r,i){return n.call(this,t,tc(r),i,e)}),i[t](a,...r)}function eH(e,t,n){let r=tu(e);eM(r,"iterate",eU);let i=r[t](...n);return(-1===i||!1===i)&&tl(n[0])?(n[0]=tu(n[0]),r[t](...n)):i}function eq(e,t,n=[]){eS(),e_++;let r=tu(e)[t].apply(e,n);return em(),eT(),r}let eW=m("__proto__,__v_isRef,__isVue"),eK=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>"arguments"!==e&&"caller"!==e).map(e=>Symbol[e]).filter(U));function e$(e){U(e)||(e=String(e));let t=tu(this);return eM(t,"has",e),t.hasOwnProperty(e)}class eZ{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){if("__v_skip"===t)return e.__v_skip;let r=this._isReadonly,i=this._isShallow;if("__v_isReactive"===t)return!r;if("__v_isReadonly"===t)return r;if("__v_isShallow"===t)return i;if("__v_raw"===t)return n===(r?i?te:e7:i?e9:e4).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;let a=O(e);if(!r){let e;if(a&&(e=ej[t]))return e;if("hasOwnProperty"===t)return e$}let s=Reflect.get(e,t,th(e)?e:n);return(U(t)?eK.has(t):eW(t))||(r||eM(e,"get",t),i)?s:th(s)?a&&z(t)?s:s.value:M(s)?r?tr(s):tt(s):s}}class eY extends eZ{constructor(e=!1){super(!1,e)}set(e,t,n,r){let i=e[t];if(!this._isShallow){let t=ts(i);if(to(n)||ts(n)||(i=tu(i),n=tu(n)),!O(e)&&th(i)&&!th(n))if(t)return!1;else return i.value=n,!0}let a=O(e)&&z(t)?Number(t)<e.length:A(e,t),s=Reflect.set(e,t,n,th(e)?e:r);return e===tu(r)&&(a?Y(n,i)&&eI(e,"set",t,n,i):eI(e,"add",t,n)),s}deleteProperty(e,t){let n=A(e,t),r=e[t],i=Reflect.deleteProperty(e,t);return i&&n&&eI(e,"delete",t,void 0,r),i}has(e,t){let n=Reflect.has(e,t);return U(t)&&eK.has(t)||eM(e,"has",t),n}ownKeys(e){return eM(e,"iterate",O(e)?"length":eL),Reflect.ownKeys(e)}}let eX=new eY,eJ=new class extends eZ{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}},eQ=new eY(!0),e0=e=>e,e1=e=>Reflect.getPrototypeOf(e);function e2(e){return function(...t){return"delete"!==e&&("clear"===e?void 0:this)}}function e5(e,t){let n=function(e,t){let n={get(n){let r=this.__v_raw,i=tu(r),a=tu(n);e||(Y(n,a)&&eM(i,"get",n),eM(i,"get",a));let{has:s}=e1(i),o=t?e0:e?tf:tc;return s.call(i,n)?o(r.get(n)):s.call(i,a)?o(r.get(a)):void(r!==i&&r.get(n))},get size(){let t=this.__v_raw;return e||eM(tu(t),"iterate",eL),Reflect.get(t,"size",t)},has(t){let n=this.__v_raw,r=tu(n),i=tu(t);return e||(Y(t,i)&&eM(r,"has",t),eM(r,"has",i)),t===i?n.has(t):n.has(t)||n.has(i)},forEach(n,r){let i=this,a=i.__v_raw,s=tu(a),o=t?e0:e?tf:tc;return e||eM(s,"iterate",eL),a.forEach((e,t)=>n.call(r,o(e),o(t),i))}};return E(n,e?{add:e2("add"),set:e2("set"),delete:e2("delete"),clear:e2("clear")}:{add(e){t||to(e)||ts(e)||(e=tu(e));let n=tu(this);return e1(n).has.call(n,e)||(n.add(e),eI(n,"add",e,e)),this},set(e,n){t||to(n)||ts(n)||(n=tu(n));let r=tu(this),{has:i,get:a}=e1(r),s=i.call(r,e);s||(e=tu(e),s=i.call(r,e));let o=a.call(r,e);return r.set(e,n),s?Y(n,o)&&eI(r,"set",e,n,o):eI(r,"add",e,n),this},delete(e){let t=tu(this),{has:n,get:r}=e1(t),i=n.call(t,e);i||(e=tu(e),i=n.call(t,e));let a=r?r.call(t,e):void 0,s=t.delete(e);return i&&eI(t,"delete",e,void 0,a),s},clear(){let e=tu(this),t=0!==e.size,n=e.clear();return t&&eI(e,"clear",void 0,void 0,void 0),n}}),["keys","values","entries",Symbol.iterator].forEach(r=>{n[r]=function(...n){let i=this.__v_raw,a=tu(i),s=C(a),o="entries"===r||r===Symbol.iterator&&s,l=i[r](...n),u=t?e0:e?tf:tc;return e||eM(a,"iterate","keys"===r&&s?eP:eL),{next(){let{value:e,done:t}=l.next();return t?{value:e,done:t}:{value:o?[u(e[0]),u(e[1])]:u(e),done:t}},[Symbol.iterator](){return this}}}}),n}(e,t);return(t,r,i)=>"__v_isReactive"===r?!e:"__v_isReadonly"===r?e:"__v_raw"===r?t:Reflect.get(A(n,r)&&r in t?n:t,r,i)}let e6={get:e5(!1,!1)},e3={get:e5(!1,!0)},e8={get:e5(!0,!1)},e4=new WeakMap,e9=new WeakMap,e7=new WeakMap,te=new WeakMap;function tt(e){return ts(e)?e:ti(e,!1,eX,e6,e4)}function tn(e){return ti(e,!1,eQ,e3,e9)}function tr(e){return ti(e,!0,eJ,e8,e7)}function ti(e,t,n,r,i){if(!M(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;let a=i.get(e);if(a)return a;let s=e.__v_skip||!Object.isExtensible(e)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}(j(e));if(0===s)return e;let o=new Proxy(e,2===s?r:n);return i.set(e,o),o}function ta(e){return ts(e)?ta(e.__v_raw):!!(e&&e.__v_isReactive)}function ts(e){return!!(e&&e.__v_isReadonly)}function to(e){return!!(e&&e.__v_isShallow)}function tl(e){return!!e&&!!e.__v_raw}function tu(e){let t=e&&e.__v_raw;return t?tu(t):e}let tc=e=>M(e)?tt(e):e,tf=e=>M(e)?tr(e):e;function th(e){return!!e&&!0===e.__v_isRef}function td(e){return t_(e,!1)}function tp(e){return t_(e,!0)}function t_(e,t){return th(e)?e:new tv(e,t)}class tv{constructor(e,t){this.dep=new eD,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:tu(e),this._value=t?e:tc(e),this.__v_isShallow=t}get value(){return this.dep.track(),this._value}set value(e){let t=this._rawValue,n=this.__v_isShallow||to(e)||ts(e);Y(e=n?e:tu(e),t)&&(this._rawValue=e,this._value=n?e:tc(e),this.dep.trigger())}}function tm(e){return th(e)?e.value:e}let tg={get:(e,t,n)=>"__v_raw"===t?e:tm(Reflect.get(e,t,n)),set:(e,t,n,r)=>{let i=e[t];return th(i)&&!th(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function ty(e){return ta(e)?e:new Proxy(e,tg)}class tb{constructor(e){this.__v_isRef=!0,this._value=void 0;let t=this.dep=new eD,{get:n,set:r}=e(t.track.bind(t),t.trigger.bind(t));this._get=n,this._set=r}get value(){return this._value=this._get()}set value(e){this._set(e)}}class tw{constructor(e,t,n){this.fn=e,this.setter=t,this._value=void 0,this.dep=new eD(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=eO-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!t,this.isSSR=n}notify(){if(this.flags|=16,!(8&this.flags)&&s!==this)return ev(this,!0),!0}get value(){let e=this.dep.track();return ew(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}}let tk={},tx=new WeakMap;function tE(e,t=1/0,n){if(t<=0||!M(e)||e.__v_skip||(n=n||new Set).has(e))return e;if(n.add(e),t--,th(e))tE(e.value,t,n);else if(O(e))for(let r=0;r<e.length;r++)tE(e[r],t,n);else if(D(e)||C(e))e.forEach(e=>{tE(e,t,n)});else if(N(e)){for(let r in e)tE(e[r],t,n);for(let r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&tE(e[r],t,n)}return e}function tS(e,t,n,r){try{return r?e(...r):e()}catch(e){tA(e,t,n)}}function tT(e,t,n,r){if(L(e)){let i=tS(e,t,n,r);return i&&I(i)&&i.catch(e=>{tA(e,t,n)}),i}if(O(e)){let i=[];for(let a=0;a<e.length;a++)i.push(tT(e[a],t,n,r));return i}}function tA(e,t,n,r=!0){let i=t?t.vnode:null,{errorHandler:a,throwUnhandledErrorInProduction:s}=t&&t.appContext.config||g;if(t){let r=t.parent,i=t.proxy,s=`https://vuejs.org/error-reference/#runtime-${n}`;for(;r;){let t=r.ec;if(t){for(let n=0;n<t.length;n++)if(!1===t[n](e,i,s))return}r=r.parent}if(a){eS(),tS(a,null,10,[e,i,s]),eT();return}}!function(e,t,n,r=!0,i=!1){if(i)throw e;console.error(e)}(e,0,0,r,s)}let tO=[],tC=-1,tD=[],tR=null,tL=0,tP=Promise.resolve(),tU=null;function tM(e){let t=tU||tP;return e?t.then(this?e.bind(this):e):t}function tI(e){if(!(1&e.flags)){let t=tN(e),n=tO[tO.length-1];!n||!(2&e.flags)&&t>=tN(n)?tO.push(e):tO.splice(function(e){let t=tC+1,n=tO.length;for(;t<n;){let r=t+n>>>1,i=tO[r],a=tN(i);a<e||a===e&&2&i.flags?t=r+1:n=r}return t}(t),0,e),e.flags|=1,tB()}}function tB(){tU||(tU=tP.then(function e(t){try{for(tC=0;tC<tO.length;tC++){let e=tO[tC];e&&!(8&e.flags)&&(4&e.flags&&(e.flags&=-2),tS(e,e.i,e.i?15:14),4&e.flags||(e.flags&=-2))}}finally{for(;tC<tO.length;tC++){let e=tO[tC];e&&(e.flags&=-2)}tC=-1,tO.length=0,tj(t),tU=null,(tO.length||tD.length)&&e(t)}}))}function tF(e,t,n=tC+1){for(;n<tO.length;n++){let t=tO[n];if(t&&2&t.flags){if(e&&t.id!==e.uid)continue;tO.splice(n,1),n--,4&t.flags&&(t.flags&=-2),t(),4&t.flags||(t.flags&=-2)}}}function tj(e){if(tD.length){let e=[...new Set(tD)].sort((e,t)=>tN(e)-tN(t));if(tD.length=0,tR)return void tR.push(...e);for(tL=0,tR=e;tL<tR.length;tL++){let e=tR[tL];4&e.flags&&(e.flags&=-2),8&e.flags||e(),e.flags&=-2}tR=null,tL=0}}let tN=e=>null==e.id?2&e.flags?-1:1/0:e.id,tz=null,tV=null;function tG(e){let t=tz;return tz=e,tV=e&&e.type.__scopeId||null,t}function tH(e,t=tz,n){if(!t||e._n)return e;let r=(...n)=>{let i;r._d&&rz(-1);let a=tG(t);try{i=e(...n)}finally{tG(a),r._d&&rz(1)}return i};return r._n=!0,r._c=!0,r._d=!0,r}function tq(e,t){if(null===tz)return e;let n=il(tz),r=e.dirs||(e.dirs=[]);for(let e=0;e<t.length;e++){let[i,a,s,o=g]=t[e];i&&(L(i)&&(i={mounted:i,updated:i}),i.deep&&tE(a),r.push({dir:i,instance:n,value:a,oldValue:void 0,arg:s,modifiers:o}))}return e}function tW(e,t,n,r){let i=e.dirs,a=t&&t.dirs;for(let s=0;s<i.length;s++){let o=i[s];a&&(o.oldValue=a[s].value);let l=o.dir[r];l&&(eS(),tT(l,n,8,[e.el,o,e,t]),eT())}}let tK=Symbol("_vte"),t$=e=>e.__isTeleport,tZ=e=>e&&(e.disabled||""===e.disabled),tY=e=>e&&(e.defer||""===e.defer),tX=e=>"undefined"!=typeof SVGElement&&e instanceof SVGElement,tJ=e=>"function"==typeof MathMLElement&&e instanceof MathMLElement,tQ=(e,t)=>{let n=e&&e.to;return P(n)?t?t(n):null:n},t0={name:"Teleport",__isTeleport:!0,process(e,t,n,r,i,a,s,o,l,u){let{mc:c,pc:f,pbc:h,o:{insert:d,querySelector:p,createText:_,createComment:m}}=u,g=tZ(t.props),{shapeFlag:y,children:b,dynamicChildren:w}=t;if(null==e){let e=t.el=_(""),u=t.anchor=_("");d(e,n,r),d(u,n,r);let f=(e,t)=>{16&y&&(i&&i.isCE&&(i.ce._teleportTarget=e),c(b,e,t,i,a,s,o,l))},h=()=>{let e=t.target=tQ(t.props,p),n=t6(e,t,_,d);e&&("svg"!==s&&tX(e)?s="svg":"mathml"!==s&&tJ(e)&&(s="mathml"),g||(f(e,n),t5(t,!1)))};g&&(f(n,u),t5(t,!0)),tY(t.props)?rh(()=>{h(),t.el.__isMounted=!0},a):h()}else{if(tY(t.props)&&!e.el.__isMounted)return void rh(()=>{t0.process(e,t,n,r,i,a,s,o,l,u),delete e.el.__isMounted},a);t.el=e.el,t.targetStart=e.targetStart;let c=t.anchor=e.anchor,d=t.target=e.target,_=t.targetAnchor=e.targetAnchor,m=tZ(e.props),y=m?n:d,b=m?c:_;if("svg"===s||tX(d)?s="svg":("mathml"===s||tJ(d))&&(s="mathml"),w?(h(e.dynamicChildren,w,y,i,a,s,o),r_(e,t,!0)):l||f(e,t,y,b,i,a,s,o,!1),g)m?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):t1(t,n,c,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){let e=t.target=tQ(t.props,p);e&&t1(t,e,null,u,0)}else m&&t1(t,d,_,u,1);t5(t,g)}},remove(e,t,n,{um:r,o:{remove:i}},a){let{shapeFlag:s,children:o,anchor:l,targetStart:u,targetAnchor:c,target:f,props:h}=e;if(f&&(i(u),i(c)),a&&i(l),16&s){let e=a||!tZ(h);for(let i=0;i<o.length;i++){let a=o[i];r(a,t,n,e,!!a.dynamicChildren)}}},move:t1,hydrate:function(e,t,n,r,i,a,{o:{nextSibling:s,parentNode:o,querySelector:l,insert:u,createText:c}},f){let h=t.target=tQ(t.props,l);if(h){let l=tZ(t.props),d=h._lpa||h.firstChild;if(16&t.shapeFlag)if(l)t.anchor=f(s(e),t,o(e),n,r,i,a),t.targetStart=d,t.targetAnchor=d&&s(d);else{t.anchor=s(e);let o=d;for(;o;){if(o&&8===o.nodeType){if("teleport start anchor"===o.data)t.targetStart=o;else if("teleport anchor"===o.data){t.targetAnchor=o,h._lpa=t.targetAnchor&&s(t.targetAnchor);break}}o=s(o)}t.targetAnchor||t6(h,t,c,u),f(d&&s(d),t,h,n,r,i,a)}t5(t,l)}return t.anchor&&s(t.anchor)}};function t1(e,t,n,{o:{insert:r},m:i},a=2){0===a&&r(e.targetAnchor,t,n);let{el:s,anchor:o,shapeFlag:l,children:u,props:c}=e,f=2===a;if(f&&r(s,t,n),(!f||tZ(c))&&16&l)for(let e=0;e<u.length;e++)i(u[e],t,n,2);f&&r(o,t,n)}let t2=t0;function t5(e,t){let n=e.ctx;if(n&&n.ut){let r,i;for(t?(r=e.el,i=e.anchor):(r=e.targetStart,i=e.targetAnchor);r&&r!==i;)1===r.nodeType&&r.setAttribute("data-v-owner",n.uid),r=r.nextSibling;n.ut()}}function t6(e,t,n,r){let i=t.targetStart=n(""),a=t.targetAnchor=n("");return i[tK]=a,e&&(r(i,e),r(a,e)),a}let t3=Symbol("_leaveCb"),t8=Symbol("_enterCb"),t4=[Function,Array],t9={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:t4,onEnter:t4,onAfterEnter:t4,onEnterCancelled:t4,onBeforeLeave:t4,onLeave:t4,onAfterLeave:t4,onLeaveCancelled:t4,onBeforeAppear:t4,onAppear:t4,onAfterAppear:t4,onAppearCancelled:t4},t7=e=>{let t=e.subTree;return t.component?t7(t.component):t};function ne(e){let t=e[0];if(e.length>1){for(let n of e)if(n.type!==rM){t=n;break}}return t}let nt={name:"BaseTransition",props:t9,setup(e,{slots:t}){let n=r9(),r=function(){let e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return nk(()=>{e.isMounted=!0}),nS(()=>{e.isUnmounting=!0}),e}();return()=>{let i=t.default&&function e(t,n=!1,r){let i=[],a=0;for(let s=0;s<t.length;s++){let o=t[s],l=null==r?o.key:String(r)+String(null!=o.key?o.key:s);o.type===rP?(128&o.patchFlag&&a++,i=i.concat(e(o.children,n,l))):(n||o.type!==rM)&&i.push(null!=l?rX(o,{key:l}):o)}if(a>1)for(let e=0;e<i.length;e++)i[e].patchFlag=-2;return i}(t.default(),!0);if(!i||!i.length)return;let a=ne(i),s=tu(e),{mode:o}=s;if(r.isLeaving)return ni(a);let l=na(a);if(!l)return ni(a);let u=nr(l,s,r,n,e=>u=e);l.type!==rM&&ns(l,u);let c=n.subTree&&na(n.subTree);if(c&&c.type!==rM&&!rW(l,c)&&t7(n).type!==rM){let e=nr(c,s,r,n);if(ns(c,e),"out-in"===o&&l.type!==rM)return r.isLeaving=!0,e.afterLeave=()=>{r.isLeaving=!1,8&n.job.flags||n.update(),delete e.afterLeave,c=void 0},ni(a);"in-out"===o&&l.type!==rM?e.delayLeave=(e,t,n)=>{nn(r,c)[String(c.key)]=c,e[t3]=()=>{t(),e[t3]=void 0,delete u.delayedLeave,c=void 0},u.delayedLeave=()=>{n(),delete u.delayedLeave,c=void 0}}:c=void 0}else c&&(c=void 0);return a}}};function nn(e,t){let{leavingVNodes:n}=e,r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function nr(e,t,n,r,i){let{appear:a,mode:s,persisted:o=!1,onBeforeEnter:l,onEnter:u,onAfterEnter:c,onEnterCancelled:f,onBeforeLeave:h,onLeave:d,onAfterLeave:p,onLeaveCancelled:_,onBeforeAppear:m,onAppear:g,onAfterAppear:y,onAppearCancelled:b}=t,w=String(e.key),k=nn(n,e),x=(e,t)=>{e&&tT(e,r,9,t)},E=(e,t)=>{let n=t[1];x(e,t),O(e)?e.every(e=>e.length<=1)&&n():e.length<=1&&n()},S={mode:s,persisted:o,beforeEnter(t){let r=l;if(!n.isMounted)if(!a)return;else r=m||l;t[t3]&&t[t3](!0);let i=k[w];i&&rW(e,i)&&i.el[t3]&&i.el[t3](),x(r,[t])},enter(e){let t=u,r=c,i=f;if(!n.isMounted)if(!a)return;else t=g||u,r=y||c,i=b||f;let s=!1,o=e[t8]=t=>{s||(s=!0,t?x(i,[e]):x(r,[e]),S.delayedLeave&&S.delayedLeave(),e[t8]=void 0)};t?E(t,[e,o]):o()},leave(t,r){let i=String(e.key);if(t[t8]&&t[t8](!0),n.isUnmounting)return r();x(h,[t]);let a=!1,s=t[t3]=n=>{a||(a=!0,r(),n?x(_,[t]):x(p,[t]),t[t3]=void 0,k[i]===e&&delete k[i])};k[i]=e,d?E(d,[t,s]):s()},clone(e){let a=nr(e,t,n,r,i);return i&&i(a),a}};return S}function ni(e){if(nf(e))return(e=rX(e)).children=null,e}function na(e){if(!nf(e))return t$(e.type)&&e.children?ne(e.children):e;let{shapeFlag:t,children:n}=e;if(n){if(16&t)return n[0];if(32&t&&L(n.default))return n.default()}}function ns(e,t){6&e.shapeFlag&&e.component?(e.transition=t,ns(e.component.subTree,t)):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function no(e,t){return L(e)?E({name:e.name},t,{setup:e}):e}function nl(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function nu(e,t,n,r,i=!1){if(O(e))return void e.forEach((e,a)=>nu(e,t&&(O(t)?t[a]:t),n,r,i));if(nc(r)&&!i){512&r.shapeFlag&&r.type.__asyncResolved&&r.component.subTree.component&&nu(e,t,n,r.component.subTree);return}let a=4&r.shapeFlag?il(r.component):r.el,s=i?null:a,{i:o,r:l}=e,u=t&&t.r,c=o.refs===g?o.refs={}:o.refs,f=o.setupState,h=tu(f),d=f===g?()=>!1:e=>A(h,e);if(null!=u&&u!==l&&(P(u)?(c[u]=null,d(u)&&(f[u]=null)):th(u)&&(u.value=null)),L(l))tS(l,o,12,[s,c]);else{let t=P(l),r=th(l);if(t||r){let o=()=>{if(e.f){let n=t?d(l)?f[l]:c[l]:l.value;i?O(n)&&S(n,a):O(n)?n.includes(a)||n.push(a):t?(c[l]=[a],d(l)&&(f[l]=c[l])):(l.value=[a],e.k&&(c[e.k]=l.value))}else t?(c[l]=s,d(l)&&(f[l]=s)):r&&(l.value=s,e.k&&(c[e.k]=s))};s?(o.id=-1,rh(o,n)):o()}}}et().requestIdleCallback||(e=>setTimeout(e,1)),et().cancelIdleCallback||(e=>clearTimeout(e));let nc=e=>!!e.type.__asyncLoader,nf=e=>e.type.__isKeepAlive,nh={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){let n=r9(),r=n.ctx;if(!r.renderer)return()=>{let e=t.default&&t.default();return e&&1===e.length?e[0]:e};let i=new Map,a=new Set,s=null,o=n.suspense,{renderer:{p:l,m:u,um:c,o:{createElement:f}}}=r,h=f("div");function d(e){nm(e),c(e,n,o,!0)}function p(e){i.forEach((t,n)=>{let r=iu(t.type);r&&!e(r)&&_(n)})}function _(e){let t=i.get(e);!t||s&&rW(t,s)?s&&nm(s):d(t),i.delete(e),a.delete(e)}r.activate=(e,t,n,r,i)=>{let a=e.component;u(e,t,n,0,o),l(a.vnode,e,t,n,a,o,r,e.slotScopeIds,i),rh(()=>{a.isDeactivated=!1,a.a&&X(a.a);let t=e.props&&e.props.onVnodeMounted;t&&r6(t,a.parent,e)},o)},r.deactivate=e=>{let t=e.component;rv(t.m),rv(t.a),u(e,h,null,1,o),rh(()=>{t.da&&X(t.da);let n=e.props&&e.props.onVnodeUnmounted;n&&r6(n,t.parent,e),t.isDeactivated=!0},o)},rw(()=>[e.include,e.exclude],([e,t])=>{e&&p(t=>nd(e,t)),t&&p(e=>!nd(t,e))},{flush:"post",deep:!0});let m=null,g=()=>{null!=m&&(rL(n.subTree.type)?rh(()=>{i.set(m,ng(n.subTree))},n.subTree.suspense):i.set(m,ng(n.subTree)))};return nk(g),nE(g),nS(()=>{i.forEach(e=>{let{subTree:t,suspense:r}=n,i=ng(t);if(e.type===i.type&&e.key===i.key){nm(i);let e=i.component.da;e&&rh(e,r);return}d(e)})}),()=>{if(m=null,!t.default)return s=null;let n=t.default(),r=n[0];if(n.length>1)return s=null,n;if(!rq(r)||!(4&r.shapeFlag)&&!(128&r.shapeFlag))return s=null,r;let o=ng(r);if(o.type===rM)return s=null,o;let l=o.type,u=iu(nc(o)?o.type.__asyncResolved||{}:l),{include:c,exclude:f,max:h}=e;if(c&&(!u||!nd(c,u))||f&&u&&nd(f,u))return o.shapeFlag&=-257,s=o,r;let d=null==o.key?l:o.key,p=i.get(d);return o.el&&(o=rX(o),128&r.shapeFlag&&(r.ssContent=o)),m=d,p?(o.el=p.el,o.component=p.component,o.transition&&ns(o,o.transition),o.shapeFlag|=512,a.delete(d),a.add(d)):(a.add(d),h&&a.size>parseInt(h,10)&&_(a.values().next().value)),o.shapeFlag|=256,s=o,rL(r.type)?r:o}}};function nd(e,t){return O(e)?e.some(e=>nd(e,t)):P(e)?e.split(",").includes(t):!!R(e)&&(e.lastIndex=0,e.test(t))}function np(e,t){nv(e,"a",t)}function n_(e,t){nv(e,"da",t)}function nv(e,t,n=r4){let r=e.__wdc||(e.__wdc=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(ny(t,r,n),n){let e=n.parent;for(;e&&e.parent;)nf(e.parent.vnode)&&function(e,t,n,r){let i=ny(t,e,r,!0);nT(()=>{S(r[t],i)},n)}(r,t,n,e),e=e.parent}}function nm(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function ng(e){return 128&e.shapeFlag?e.ssContent:e}function ny(e,t,n=r4,r=!1){if(n){let i=n[e]||(n[e]=[]),a=t.__weh||(t.__weh=(...r)=>{eS();let i=r7(n),a=tT(t,n,e,r);return i(),eT(),a});return r?i.unshift(a):i.push(a),a}}let nb=e=>(t,n=r4)=>{ir&&"sp"!==e||ny(e,(...e)=>t(...e),n)},nw=nb("bm"),nk=nb("m"),nx=nb("bu"),nE=nb("u"),nS=nb("bum"),nT=nb("um"),nA=nb("sp"),nO=nb("rtg"),nC=nb("rtc");function nD(e,t=r4){ny("ec",e,t)}let nR="components";function nL(e,t){return nM(nR,e,!0,t)||e}let nP=Symbol.for("v-ndc");function nU(e){return P(e)?nM(nR,e,!1)||e:e||nP}function nM(e,t,n=!0,r=!1){let i=tz||r4;if(i){let n=i.type;if(e===nR){let e=iu(n,!1);if(e&&(e===t||e===q(t)||e===$(q(t))))return n}let a=nI(i[e]||n[e],t)||nI(i.appContext[e],t);return!a&&r?n:a}}function nI(e,t){return e&&(e[t]||e[q(t)]||e[$(q(t))])}function nB(e,t,n,r){let i,a=n&&n[r],s=O(e);if(s||P(e)){let n=s&&ta(e),r=!1;n&&(r=!to(e),e=eF(e)),i=Array(e.length);for(let n=0,s=e.length;n<s;n++)i[n]=t(r?tc(e[n]):e[n],n,void 0,a&&a[n])}else if("number"==typeof e){i=Array(e);for(let n=0;n<e;n++)i[n]=t(n+1,n,void 0,a&&a[n])}else if(M(e))if(e[Symbol.iterator])i=Array.from(e,(e,n)=>t(e,n,void 0,a&&a[n]));else{let n=Object.keys(e);i=Array(n.length);for(let r=0,s=n.length;r<s;r++){let s=n[r];i[r]=t(e[s],s,r,a&&a[r])}}else i=[];return n&&(n[r]=i),i}function nF(e,t,n={},r,i){if(tz.ce||tz.parent&&nc(tz.parent)&&tz.parent.ce)return"default"!==t&&(n.name=t),rj(),rH(rP,null,[rY("slot",n,r&&r())],64);let a=e[t];a&&a._c&&(a._d=!1),rj();let s=a&&function e(t){return t.some(t=>!rq(t)||t.type!==rM&&(t.type!==rP||!!e(t.children)))?t:null}(a(n)),o=n.key||s&&s.key,l=rH(rP,{key:(o&&!U(o)?o:`_${t}`)+(!s&&r?"_fb":"")},s||(r?r():[]),s&&1===e._?64:-2);return!i&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),a&&a._c&&(a._d=!0),l}let nj=e=>e?it(e)?il(e):nj(e.parent):null,nN=E(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>nj(e.parent),$root:e=>nj(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>n$(e),$forceUpdate:e=>e.f||(e.f=()=>{tI(e.update)}),$nextTick:e=>e.n||(e.n=tM.bind(e.proxy)),$watch:e=>rk.bind(e)}),nz=(e,t)=>e!==g&&!e.__isScriptSetup&&A(e,t),nV={get({_:e},t){let n,r,i;if("__v_skip"===t)return!0;let{ctx:a,setupState:s,data:o,props:l,accessCache:u,type:c,appContext:f}=e;if("$"!==t[0]){let r=u[t];if(void 0!==r)switch(r){case 1:return s[t];case 2:return o[t];case 4:return a[t];case 3:return l[t]}else{if(nz(s,t))return u[t]=1,s[t];if(o!==g&&A(o,t))return u[t]=2,o[t];if((n=e.propsOptions[0])&&A(n,t))return u[t]=3,l[t];if(a!==g&&A(a,t))return u[t]=4,a[t];nW&&(u[t]=0)}}let h=nN[t];return h?("$attrs"===t&&eM(e.attrs,"get",""),h(e)):(r=c.__cssModules)&&(r=r[t])?r:a!==g&&A(a,t)?(u[t]=4,a[t]):A(i=f.config.globalProperties,t)?i[t]:void 0},set({_:e},t,n){let{data:r,setupState:i,ctx:a}=e;return nz(i,t)?(i[t]=n,!0):r!==g&&A(r,t)?(r[t]=n,!0):!A(e.props,t)&&!("$"===t[0]&&t.slice(1)in e)&&(a[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,propsOptions:a}},s){let o;return!!n[s]||e!==g&&A(e,s)||nz(t,s)||(o=a[0])&&A(o,s)||A(r,s)||A(nN,s)||A(i.config.globalProperties,s)},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:A(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function nG(){return function(){let e=r9();return e.setupContext||(e.setupContext=io(e))}().slots}function nH(e){return O(e)?e.reduce((e,t)=>(e[t]=null,e),{}):e}function nq(e,t){return e&&t?O(e)&&O(t)?e.concat(t):E({},nH(e),nH(t)):e||t}let nW=!0;function nK(e,t,n){tT(O(e)?e.map(e=>e.bind(t.proxy)):e.bind(t.proxy),t,n)}function n$(e){let t,n=e.type,{mixins:r,extends:i}=n,{mixins:a,optionsCache:s,config:{optionMergeStrategies:o}}=e.appContext,l=s.get(n);return l?t=l:a.length||r||i?(t={},a.length&&a.forEach(e=>nZ(t,e,o,!0)),nZ(t,n,o)):t=n,M(n)&&s.set(n,t),t}function nZ(e,t,n,r=!1){let{mixins:i,extends:a}=t;for(let s in a&&nZ(e,a,n,!0),i&&i.forEach(t=>nZ(e,t,n,!0)),t)if(r&&"expose"===s);else{let r=nY[s]||n&&n[s];e[s]=r?r(e[s],t[s]):t[s]}return e}let nY={data:nX,props:n1,emits:n1,methods:n0,computed:n0,beforeCreate:nQ,created:nQ,beforeMount:nQ,mounted:nQ,beforeUpdate:nQ,updated:nQ,beforeDestroy:nQ,beforeUnmount:nQ,destroyed:nQ,unmounted:nQ,activated:nQ,deactivated:nQ,errorCaptured:nQ,serverPrefetch:nQ,components:n0,directives:n0,watch:function(e,t){if(!e)return t;if(!t)return e;let n=E(Object.create(null),e);for(let r in t)n[r]=nQ(e[r],t[r]);return n},provide:nX,inject:function(e,t){return n0(nJ(e),nJ(t))}};function nX(e,t){return t?e?function(){return E(L(e)?e.call(this,this):e,L(t)?t.call(this,this):t)}:t:e}function nJ(e){if(O(e)){let t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function nQ(e,t){return e?[...new Set([].concat(e,t))]:t}function n0(e,t){return e?E(Object.create(null),e,t):t}function n1(e,t){return e?O(e)&&O(t)?[...new Set([...e,...t])]:E(Object.create(null),nH(e),nH(null!=t?t:{})):t}function n2(){return{app:null,config:{isNativeTag:w,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let n5=0,n6=null;function n3(e,t){if(r4){let n=r4.provides,r=r4.parent&&r4.parent.provides;r===n&&(n=r4.provides=Object.create(r)),n[e]=t}}function n8(e,t,n=!1){let r=r4||tz;if(r||n6){let i=n6?n6._context.provides:r?null==r.parent?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(i&&e in i)return i[e];if(arguments.length>1)return n&&L(t)?t.call(r&&r.proxy):t}}let n4={},n9=()=>Object.create(n4),n7=e=>Object.getPrototypeOf(e)===n4;function re(e,t,n,r){let i,[a,s]=e.propsOptions,o=!1;if(t)for(let l in t){let u;if(V(l))continue;let c=t[l];a&&A(a,u=q(l))?s&&s.includes(u)?(i||(i={}))[u]=c:n[u]=c:rA(e.emitsOptions,l)||l in r&&c===r[l]||(r[l]=c,o=!0)}if(s){let t=tu(n),r=i||g;for(let i=0;i<s.length;i++){let o=s[i];n[o]=rt(a,t,o,r[o],e,!A(r,o))}}return o}function rt(e,t,n,r,i,a){let s=e[n];if(null!=s){let e=A(s,"default");if(e&&void 0===r){let e=s.default;if(s.type!==Function&&!s.skipFactory&&L(e)){let{propsDefaults:a}=i;if(n in a)r=a[n];else{let s=r7(i);r=a[n]=e.call(null,t),s()}}else r=e;i.ce&&i.ce._setProp(n,r)}s[0]&&(a&&!e?r=!1:s[1]&&(""===r||r===K(n))&&(r=!0))}return r}let rn=new WeakMap;function rr(e){return!("$"===e[0]||V(e))}let ri=e=>"_"===e[0]||"$stable"===e,ra=e=>O(e)?e.map(r1):[r1(e)],rs=(e,t,n)=>{if(t._n)return t;let r=tH((...e)=>ra(t(...e)),n);return r._c=!1,r},ro=(e,t,n)=>{let r=e._ctx;for(let n in e){if(ri(n))continue;let i=e[n];if(L(i))t[n]=rs(n,i,r);else if(null!=i){let e=ra(i);t[n]=()=>e}}},rl=(e,t)=>{let n=ra(t);e.slots.default=()=>n},ru=(e,t,n)=>{for(let r in t)(n||"_"!==r)&&(e[r]=t[r])},rc=(e,t,n)=>{let r=e.slots=n9();if(32&e.vnode.shapeFlag){let e=t._;e?(ru(r,t,n),n&&J(r,"_",e,!0)):ro(t,r)}else t&&rl(e,t)},rf=(e,t,n)=>{let{vnode:r,slots:i}=e,a=!0,s=g;if(32&r.shapeFlag){let e=t._;e?n&&1===e?a=!1:ru(i,t,n):(a=!t.$stable,ro(t,i)),s=t}else t&&(rl(e,t),s={default:1});if(a)for(let e in i)ri(e)||null!=s[e]||delete i[e]},rh=function(e,t){if(t&&t.pendingBranch)O(e)?t.effects.push(...e):t.effects.push(e);else O(e)?tD.push(...e):tR&&-1===e.id?tR.splice(tL+1,0,e):1&e.flags||(tD.push(e),e.flags|=1),tB()};function rd({type:e,props:t},n){return"svg"===n&&"foreignObject"===e||"mathml"===n&&"annotation-xml"===e&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function rp({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function r_(e,t,n=!1){let r=e.children,i=t.children;if(O(r)&&O(i))for(let e=0;e<r.length;e++){let t=r[e],a=i[e];1&a.shapeFlag&&!a.dynamicChildren&&((a.patchFlag<=0||32===a.patchFlag)&&((a=i[e]=r2(i[e])).el=t.el),n||-2===a.patchFlag||r_(t,a)),a.type===rU&&(a.el=t.el)}}function rv(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}let rm=Symbol.for("v-scx"),rg=()=>n8(rm);function ry(e,t){return rw(e,null,t)}function rb(e,t,n){return rw(e,t,n)}function rw(e,t,n=g){let r,{immediate:i,deep:s,flush:o,once:l}=n,u=E({},n),c=t&&i||!t&&"post"!==o;if(ir){if("sync"===o){let e=rg();r=e.__watcherHandles||(e.__watcherHandles=[])}else if(!c){let e=()=>{};return e.stop=b,e.resume=b,e.pause=b,e}}let f=r4;u.call=(e,t,n)=>tT(e,f,t,n);let h=!1;"post"===o?u.scheduler=e=>{rh(e,f&&f.suspense)}:"sync"!==o&&(h=!0,u.scheduler=(e,t)=>{t?e():tI(e)}),u.augmentJob=e=>{t&&(e.flags|=4),h&&(e.flags|=2,f&&(e.id=f.uid,e.i=f))};let d=function(e,t,n=g){let r,i,s,o,{immediate:l,deep:u,once:c,scheduler:f,augmentJob:h,call:d}=n,_=e=>u?e:to(e)||!1===u||0===u?tE(e,1):tE(e),m=!1,y=!1;if(th(e)?(i=()=>e.value,m=to(e)):ta(e)?(i=()=>_(e),m=!0):O(e)?(y=!0,m=e.some(e=>ta(e)||to(e)),i=()=>e.map(e=>th(e)?e.value:ta(e)?_(e):L(e)?d?d(e,2):e():void 0)):i=L(e)?t?d?()=>d(e,2):e:()=>{if(s){eS();try{s()}finally{eT()}}let t=p;p=r;try{return d?d(e,3,[o]):e(o)}finally{p=t}}:b,t&&u){let e=i,t=!0===u?1/0:u;i=()=>tE(e(),t)}let w=a,k=()=>{r.stop(),w&&w.active&&S(w.effects,r)};if(c&&t){let e=t;t=(...t)=>{e(...t),k()}}let x=y?Array(e.length).fill(tk):tk,E=e=>{if(1&r.flags&&(r.dirty||e))if(t){let e=r.run();if(u||m||(y?e.some((e,t)=>Y(e,x[t])):Y(e,x))){s&&s();let n=p;p=r;try{let n=[e,x===tk?void 0:y&&x[0]===tk?[]:x,o];d?d(t,3,n):t(...n),x=e}finally{p=n}}}else r.run()};return h&&h(E),(r=new ep(i)).scheduler=f?()=>f(E,!1):E,o=e=>(function(e,t=!1,n=p){if(n){let t=tx.get(n);t||tx.set(n,t=[]),t.push(e)}})(e,!1,r),s=r.onStop=()=>{let e=tx.get(r);if(e){if(d)d(e,4);else for(let t of e)t();tx.delete(r)}},t?l?E(!0):x=r.run():f?f(E.bind(null,!0),!0):r.run(),k.pause=r.pause.bind(r),k.resume=r.resume.bind(r),k.stop=k,k}(e,t,u);return ir&&(r?r.push(d):c&&d()),d}function rk(e,t,n){let r,i=this.proxy,a=P(e)?e.includes(".")?rx(i,e):()=>i[e]:e.bind(i,i);L(t)?r=t:(r=t.handler,n=t);let s=r7(this),o=rw(a,r.bind(i),n);return s(),o}function rx(e,t){let n=t.split(".");return()=>{let t=e;for(let e=0;e<n.length&&t;e++)t=t[n[e]];return t}}function rE(e,t,n=g){let r=r9(),i=q(t),a=K(t),s=rS(e,i),o=new tb((s,o)=>{let l,u,c=g;return rw(()=>{let t=e[i];Y(l,t)&&(l=t,o())},null,{flush:"sync"}),{get:()=>(s(),n.get?n.get(l):l),set(e){let s=n.set?n.set(e):e;if(!Y(s,l)&&!(c!==g&&Y(e,c)))return;let f=r.vnode.props;f&&(t in f||i in f||a in f)&&(`onUpdate:${t}`in f||`onUpdate:${i}`in f||`onUpdate:${a}`in f)||(l=e,o()),r.emit(`update:${t}`,s),Y(e,s)&&Y(e,c)&&!Y(s,u)&&o(),c=e,u=s}}});return o[Symbol.iterator]=()=>{let e=0;return{next:()=>e<2?{value:e++?s||g:o,done:!1}:{done:!0}}},o}let rS=(e,t)=>"modelValue"===t||"model-value"===t?e.modelModifiers:e[`${t}Modifiers`]||e[`${q(t)}Modifiers`]||e[`${K(t)}Modifiers`];function rT(e,t,...n){let r;if(e.isUnmounted)return;let i=e.vnode.props||g,a=n,s=t.startsWith("update:"),o=s&&rS(i,t.slice(7));o&&(o.trim&&(a=n.map(e=>P(e)?e.trim():e)),o.number&&(a=n.map(Q)));let l=i[r=Z(t)]||i[r=Z(q(t))];!l&&s&&(l=i[r=Z(K(t))]),l&&tT(l,e,6,a);let u=i[r+"Once"];if(u){if(e.emitted){if(e.emitted[r])return}else e.emitted={};e.emitted[r]=!0,tT(u,e,6,a)}}function rA(e,t){return!!e&&!!k(t)&&(A(e,(t=t.slice(2).replace(/Once$/,""))[0].toLowerCase()+t.slice(1))||A(e,K(t))||A(e,t))}function rO(e){let t,n,{type:r,vnode:i,proxy:a,withProxy:s,propsOptions:[o],slots:l,attrs:u,emit:c,render:f,renderCache:h,props:d,data:p,setupState:_,ctx:m,inheritAttrs:g}=e,y=tG(e);try{if(4&i.shapeFlag){let e=s||a;t=r1(f.call(e,e,h,d,_,p,m)),n=u}else t=r1(r.length>1?r(d,{attrs:u,slots:l,emit:c}):r(d,null)),n=r.props?u:rC(u)}catch(n){rB.length=0,tA(n,e,1),t=rY(rM)}let b=t;if(n&&!1!==g){let e=Object.keys(n),{shapeFlag:t}=b;e.length&&7&t&&(o&&e.some(x)&&(n=rD(n,o)),b=rX(b,n,!1,!0))}return i.dirs&&((b=rX(b,null,!1,!0)).dirs=b.dirs?b.dirs.concat(i.dirs):i.dirs),i.transition&&ns(b,i.transition),t=b,tG(y),t}let rC=e=>{let t;for(let n in e)("class"===n||"style"===n||k(n))&&((t||(t={}))[n]=e[n]);return t},rD=(e,t)=>{let n={};for(let r in e)x(r)&&r.slice(9)in t||(n[r]=e[r]);return n};function rR(e,t,n){let r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let i=0;i<r.length;i++){let a=r[i];if(t[a]!==e[a]&&!rA(n,a))return!0}return!1}let rL=e=>e.__isSuspense,rP=Symbol.for("v-fgt"),rU=Symbol.for("v-txt"),rM=Symbol.for("v-cmt"),rI=Symbol.for("v-stc"),rB=[],rF=null;function rj(e=!1){rB.push(rF=e?null:[])}let rN=1;function rz(e,t=!1){rN+=e,e<0&&rF&&t&&(rF.hasOnce=!0)}function rV(e){return e.dynamicChildren=rN>0?rF||y:null,rB.pop(),rF=rB[rB.length-1]||null,rN>0&&rF&&rF.push(e),e}function rG(e,t,n,r,i,a){return rV(rZ(e,t,n,r,i,a,!0))}function rH(e,t,n,r,i){return rV(rY(e,t,n,r,i,!0))}function rq(e){return!!e&&!0===e.__v_isVNode}function rW(e,t){return e.type===t.type&&e.key===t.key}let rK=({key:e})=>null!=e?e:null,r$=({ref:e,ref_key:t,ref_for:n})=>("number"==typeof e&&(e=""+e),null!=e?P(e)||th(e)||L(e)?{i:tz,r:e,k:t,f:!!n}:e:null);function rZ(e,t=null,n=null,r=0,i=null,a=+(e!==rP),s=!1,o=!1){let l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&rK(t),ref:t&&r$(t),scopeId:tV,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:tz};return o?(r5(l,n),128&a&&e.normalize(l)):n&&(l.shapeFlag|=P(n)?8:16),rN>0&&!s&&rF&&(l.patchFlag>0||6&a)&&32!==l.patchFlag&&rF.push(l),l}let rY=function(e,t=null,n=null,r=0,i=null,a=!1){var s,o;if(e&&e!==nP||(e=rM),rq(e)){let r=rX(e,t,!0);return n&&r5(r,n),rN>0&&!a&&rF&&(6&r.shapeFlag?rF[rF.indexOf(e)]=r:rF.push(r)),r.patchFlag=-2,r}if(L(s=e)&&"__vccOpts"in s&&(e=e.__vccOpts),t){let{class:e,style:n}=t=(o=t)?tl(o)||n7(o)?E({},o):o:null;e&&!P(e)&&(t.class=es(e)),M(n)&&(tl(n)&&!O(n)&&(n=E({},n)),t.style=en(n))}let l=P(e)?1:rL(e)?128:t$(e)?64:M(e)?4:2*!!L(e);return rZ(e,t,n,r,i,l,a,!0)};function rX(e,t,n=!1,r=!1){let{props:i,ref:a,patchFlag:s,children:o,transition:l}=e,u=t?function(...e){let t={};for(let n=0;n<e.length;n++){let r=e[n];for(let e in r)if("class"===e)t.class!==r.class&&(t.class=es([t.class,r.class]));else if("style"===e)t.style=en([t.style,r.style]);else if(k(e)){let n=t[e],i=r[e];i&&n!==i&&!(O(n)&&n.includes(i))&&(t[e]=n?[].concat(n,i):i)}else""!==e&&(t[e]=r[e])}return t}(i||{},t):i,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&rK(u),ref:t&&t.ref?n&&a?O(a)?a.concat(r$(t)):[a,r$(t)]:r$(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:o,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==rP?-1===s?16:16|s:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&rX(e.ssContent),ssFallback:e.ssFallback&&rX(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&r&&ns(c,l.clone(c)),c}function rJ(e=" ",t=0){return rY(rU,null,e,t)}function rQ(e,t){let n=rY(rI,null,e);return n.staticCount=t,n}function r0(e="",t=!1){return t?(rj(),rH(rM,null,e)):rY(rM,null,e)}function r1(e){return null==e||"boolean"==typeof e?rY(rM):O(e)?rY(rP,null,e.slice()):rq(e)?r2(e):rY(rU,null,String(e))}function r2(e){return null===e.el&&-1!==e.patchFlag||e.memo?e:rX(e)}function r5(e,t){let n=0,{shapeFlag:r}=e;if(null==t)t=null;else if(O(t))n=16;else if("object"==typeof t)if(65&r){let n=t.default;n&&(n._c&&(n._d=!1),r5(e,n()),n._c&&(n._d=!0));return}else{n=32;let r=t._;r||n7(t)?3===r&&tz&&(1===tz.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=tz}else L(t)?(t={default:t,_ctx:tz},n=32):(t=String(t),64&r?(n=16,t=[rJ(t)]):n=8);e.children=t,e.shapeFlag|=n}function r6(e,t,n,r=null){tT(e,t,7,[n,r])}let r3=n2(),r8=0,r4=null,r9=()=>r4||tz;{let e=et(),t=(t,n)=>{let r;return(r=e[t])||(r=e[t]=[]),r.push(n),e=>{r.length>1?r.forEach(t=>t(e)):r[0](e)}};u=t("__VUE_INSTANCE_SETTERS__",e=>r4=e),c=t("__VUE_SSR_SETTERS__",e=>ir=e)}let r7=e=>{let t=r4;return u(e),e.scope.on(),()=>{e.scope.off(),u(t)}},ie=()=>{r4&&r4.scope.off(),u(null)};function it(e){return 4&e.vnode.shapeFlag}let ir=!1;function ii(e,t,n){L(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:M(t)&&(e.setupState=ty(t)),ia(e,n)}function ia(e,t,n){let r=e.type;if(!e.render){if(!t&&f&&!r.render){let t=r.template||n$(e).template;if(t){let{isCustomElement:n,compilerOptions:i}=e.appContext.config,{delimiters:a,compilerOptions:s}=r;r.render=f(t,E(E({isCustomElement:n,delimiters:a},i),s))}}e.render=r.render||b,h&&h(e)}{let t=r7(e);eS();try{!function(e){let t=n$(e),n=e.proxy,r=e.ctx;nW=!1,t.beforeCreate&&nK(t.beforeCreate,e,"bc");let{data:i,computed:a,methods:s,watch:o,provide:l,inject:u,created:c,beforeMount:f,mounted:h,beforeUpdate:d,updated:p,activated:_,deactivated:m,beforeDestroy:g,beforeUnmount:y,destroyed:w,unmounted:k,render:x,renderTracked:E,renderTriggered:S,errorCaptured:T,serverPrefetch:A,expose:C,inheritAttrs:D,components:R,directives:U,filters:I}=t;if(u&&function(e,t,n=b){for(let n in O(e)&&(e=nJ(e)),e){let r,i=e[n];th(r=M(i)?"default"in i?n8(i.from||n,i.default,!0):n8(i.from||n):n8(i))?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>r.value,set:e=>r.value=e}):t[n]=r}}(u,r,null),s)for(let e in s){let t=s[e];L(t)&&(r[e]=t.bind(n))}if(i){let t=i.call(n,n);M(t)&&(e.data=tt(t))}if(nW=!0,a)for(let e in a){let t=a[e],i=L(t)?t.bind(n,n):L(t.get)?t.get.bind(n,n):b,s=ic({get:i,set:!L(t)&&L(t.set)?t.set.bind(n):b});Object.defineProperty(r,e,{enumerable:!0,configurable:!0,get:()=>s.value,set:e=>s.value=e})}if(o)for(let e in o)!function e(t,n,r,i){let a=i.includes(".")?rx(r,i):()=>r[i];if(P(t)){let e=n[t];var s,o,l,u,c,f=void 0;L(e)&&(u=a,c=e,rw(u,c,void 0))}else if(L(t)){var h,d,p=void 0;h=a,d=t.bind(r),rw(h,d,void 0)}else if(M(t))if(O(t))t.forEach(t=>e(t,n,r,i));else{let e=L(t.handler)?t.handler.bind(r):n[t.handler];L(e)&&(s=a,o=e,l=t,rw(s,o,l))}}(o[e],r,n,e);if(l){let e=L(l)?l.call(n):l;Reflect.ownKeys(e).forEach(t=>{n3(t,e[t])})}function B(e,t){O(t)?t.forEach(t=>e(t.bind(n))):t&&e(t.bind(n))}if(c&&nK(c,e,"c"),B(nw,f),B(nk,h),B(nx,d),B(nE,p),B(np,_),B(n_,m),B(nD,T),B(nC,E),B(nO,S),B(nS,y),B(nT,k),B(nA,A),O(C))if(C.length){let t=e.exposed||(e.exposed={});C.forEach(e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t})})}else e.exposed||(e.exposed={});x&&e.render===b&&(e.render=x),null!=D&&(e.inheritAttrs=D),R&&(e.components=R),U&&(e.directives=U),A&&nl(e)}(e)}finally{eT(),t()}}}let is={get:(e,t)=>(eM(e,"get",""),e[t])};function io(e){return{attrs:new Proxy(e.attrs,is),slots:e.slots,emit:e.emit,expose:t=>{e.exposed=t||{}}}}function il(e){var t;return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(ty((!A(t=e.exposed,"__v_skip")&&Object.isExtensible(t)&&J(t,"__v_skip",!0),t)),{get:(t,n)=>n in t?t[n]:n in nN?nN[n](e):void 0,has:(e,t)=>t in e||t in nN})):e.proxy}function iu(e,t=!0){return L(e)?e.displayName||e.name:e.name||t&&e.__name}let ic=(e,t)=>(function(e,t,n=!1){let r,i;return L(e)?r=e:(r=e.get,i=e.set),new tw(r,i,n)})(e,0,ir);function ih(e,t,n){let r=arguments.length;return 2!==r?(r>3?n=Array.prototype.slice.call(arguments,2):3===r&&rq(n)&&(n=[n]),rY(e,t,n)):!M(t)||O(t)?rY(e,null,t):rq(t)?rY(e,null,[t]):rY(e,t)}let id="undefined"!=typeof window&&window.trustedTypes;if(id)try{_=id.createPolicy("vue",{createHTML:e=>e})}catch(e){}let ip=_?e=>_.createHTML(e):e=>e,i_="undefined"!=typeof document?document:null,iv=i_&&i_.createElement("template"),im="transition",ig="animation",iy=Symbol("_vtc"),ib={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},iw=E({},t9,ib),ik=((r=(e,{slots:t})=>ih(nt,function(e){let t={};for(let n in e)n in ib||(t[n]=e[n]);if(!1===e.css)return t;let{name:n="v",type:r,duration:i,enterFromClass:a=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:o=`${n}-enter-to`,appearFromClass:l=a,appearActiveClass:u=s,appearToClass:c=o,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:h=`${n}-leave-active`,leaveToClass:d=`${n}-leave-to`}=e,p=function(e){if(null==e)return null;{if(M(e))return[function(e){return ee(e)}(e.enter),function(e){return ee(e)}(e.leave)];let t=function(e){return ee(e)}(e);return[t,t]}}(i),_=p&&p[0],m=p&&p[1],{onBeforeEnter:g,onEnter:y,onEnterCancelled:b,onLeave:w,onLeaveCancelled:k,onBeforeAppear:x=g,onAppear:S=y,onAppearCancelled:T=b}=t,A=(e,t,n,r)=>{e._enterCancelled=r,iA(e,t?c:o),iA(e,t?u:s),n&&n()},O=(e,t)=>{e._isLeaving=!1,iA(e,f),iA(e,d),iA(e,h),t&&t()},C=e=>(t,n)=>{let i=e?S:y,s=()=>A(t,e,n);ix(i,[t,s]),iO(()=>{iA(t,e?l:a),iT(t,e?c:o),iE(i)||iD(t,r,_,s)})};return E(t,{onBeforeEnter(e){ix(g,[e]),iT(e,a),iT(e,s)},onBeforeAppear(e){ix(x,[e]),iT(e,l),iT(e,u)},onEnter:C(!1),onAppear:C(!0),onLeave(e,t){e._isLeaving=!0;let n=()=>O(e,t);iT(e,f),e._enterCancelled?(iT(e,h),iP()):(iP(),iT(e,h)),iO(()=>{e._isLeaving&&(iA(e,f),iT(e,d),iE(w)||iD(e,r,m,n))}),ix(w,[e,n])},onEnterCancelled(e){A(e,!1,void 0,!0),ix(b,[e])},onAppearCancelled(e){A(e,!0,void 0,!0),ix(T,[e])},onLeaveCancelled(e){O(e),ix(k,[e])}})}(e),t)).displayName="Transition",r.props=iw,r),ix=(e,t=[])=>{O(e)?e.forEach(e=>e(...t)):e&&e(...t)},iE=e=>!!e&&(O(e)?e.some(e=>e.length>1):e.length>1);function iS(e){return ee(e)}function iT(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.add(t)),(e[iy]||(e[iy]=new Set)).add(t)}function iA(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.remove(t));let n=e[iy];n&&(n.delete(t),n.size||(e[iy]=void 0))}function iO(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let iC=0;function iD(e,t,n,r){let i=e._endId=++iC,a=()=>{i===e._endId&&r()};if(null!=n)return setTimeout(a,n);let{type:s,timeout:o,propCount:l}=function(e,t){let n=window.getComputedStyle(e),r=e=>(n[e]||"").split(", "),i=r(`${im}Delay`),a=r(`${im}Duration`),s=iR(i,a),o=r(`${ig}Delay`),l=r(`${ig}Duration`),u=iR(o,l),c=null,f=0,h=0;t===im?s>0&&(c=im,f=s,h=a.length):t===ig?u>0&&(c=ig,f=u,h=l.length):h=(c=(f=Math.max(s,u))>0?s>u?im:ig:null)?c===im?a.length:l.length:0;let d=c===im&&/\b(transform|all)(,|$)/.test(r(`${im}Property`).toString());return{type:c,timeout:f,propCount:h,hasTransform:d}}(e,t);if(!s)return r();let u=s+"end",c=0,f=()=>{e.removeEventListener(u,h),a()},h=t=>{t.target===e&&++c>=l&&f()};setTimeout(()=>{c<l&&f()},o+1),e.addEventListener(u,h)}function iR(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((t,n)=>iL(t)+iL(e[n])))}function iL(e){return"auto"===e?0:1e3*Number(e.slice(0,-1).replace(",","."))}function iP(){return document.body.offsetHeight}let iU=Symbol("_vod"),iM=Symbol("_vsh"),iI={beforeMount(e,{value:t},{transition:n}){e[iU]="none"===e.style.display?"":e.style.display,n&&t?n.beforeEnter(e):iB(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),iB(e,!0),r.enter(e)):r.leave(e,()=>{iB(e,!1)}):iB(e,t))},beforeUnmount(e,{value:t}){iB(e,t)}};function iB(e,t){e.style.display=t?e[iU]:"none",e[iM]=!t}let iF=Symbol(""),ij=/(^|;)\s*display\s*:/,iN=/\s*!important$/;function iz(e,t,n){if(O(n))n.forEach(n=>iz(e,t,n));else if(null==n&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{let r=function(e,t){let n=iG[t];if(n)return n;let r=q(t);if("filter"!==r&&r in e)return iG[t]=r;r=$(r);for(let n=0;n<iV.length;n++){let i=iV[n]+r;if(i in e)return iG[t]=i}return t}(e,t);iN.test(n)?e.setProperty(K(r),n.replace(iN,""),"important"):e[r]=n}}let iV=["Webkit","Moz","ms"],iG={},iH="http://www.w3.org/1999/xlink";function iq(e,t,n,r,i,a=eo(t)){if(r&&t.startsWith("xlink:"))null==n?e.removeAttributeNS(iH,t.slice(6,t.length)):e.setAttributeNS(iH,t,n);else null==n||a&&!(n||""===n)?e.removeAttribute(t):e.setAttribute(t,a?"":U(n)?String(n):n)}function iW(e,t,n,r,i){if("innerHTML"===t||"textContent"===t){null!=n&&(e[t]="innerHTML"===t?ip(n):n);return}let a=e.tagName;if("value"===t&&"PROGRESS"!==a&&!a.includes("-")){let r="OPTION"===a?e.getAttribute("value")||"":e.value,i=null==n?"checkbox"===e.type?"on":"":String(n);r===i&&"_value"in e||(e.value=i),null==n&&e.removeAttribute(t),e._value=n;return}let s=!1;if(""===n||null==n){let r=typeof e[t];if("boolean"===r){var o;n=!!(o=n)||""===o}else null==n&&"string"===r?(n="",s=!0):"number"===r&&(n=0,s=!0)}try{e[t]=n}catch(e){}s&&e.removeAttribute(i||t)}function iK(e,t,n,r){e.addEventListener(t,n,r)}let i$=Symbol("_vei"),iZ=/(?:Once|Passive|Capture)$/,iY=0,iX=Promise.resolve(),iJ=()=>iY||(iX.then(()=>iY=0),iY=Date.now()),iQ=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)>96&&123>e.charCodeAt(2);"undefined"!=typeof HTMLElement&&HTMLElement,Symbol("_moveCb"),Symbol("_enterCb");let i0=e=>{let t=e.props["onUpdate:modelValue"]||!1;return O(t)?e=>X(t,e):t};function i1(e){e.target.composing=!0}function i2(e){let t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}let i5=Symbol("_assign"),i6={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e[i5]=i0(i);let a=r||i.props&&"number"===i.props.type;iK(e,t?"change":"input",t=>{if(t.target.composing)return;let r=e.value;n&&(r=r.trim()),a&&(r=Q(r)),e[i5](r)}),n&&iK(e,"change",()=>{e.value=e.value.trim()}),t||(iK(e,"compositionstart",i1),iK(e,"compositionend",i2),iK(e,"change",i2))},mounted(e,{value:t}){e.value=null==t?"":t},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:i,number:a}},s){if(e[i5]=i0(s),e.composing)return;let o=(a||"number"===e.type)&&!/^0\d/.test(e.value)?Q(e.value):e.value,l=null==t?"":t;if(o!==l){if(document.activeElement===e&&"range"!==e.type&&(r&&t===n||i&&e.value.trim()===l))return;e.value=l}}},i3=["ctrl","shift","alt","meta"],i8={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>i3.some(n=>e[`${n}Key`]&&!t.includes(n))},i4=(e,t)=>{let n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=(n,...r)=>{for(let e=0;e<t.length;e++){let r=i8[t[e]];if(r&&r(n,t))return}return e(n,...r)})},i9={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},i7=(e,t)=>{let n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=n=>{if(!("key"in n))return;let r=K(n.key);if(t.some(e=>e===r||i9[e]===r))return e(n)})},ae=E({patchProp:(e,t,n,r,i,a)=>{let s="svg"===i;if("class"===t){var o=r;let t=e[iy];t&&(o=(o?[o,...t]:[...t]).join(" ")),null==o?e.removeAttribute("class"):s?e.setAttribute("class",o):e.className=o}else"style"===t?function(e,t,n){let r=e.style,i=P(n),a=!1;if(n&&!i){if(t)if(P(t))for(let e of t.split(";")){let t=e.slice(0,e.indexOf(":")).trim();null==n[t]&&iz(r,t,"")}else for(let e in t)null==n[e]&&iz(r,e,"");for(let e in n)"display"===e&&(a=!0),iz(r,e,n[e])}else if(i){if(t!==n){let e=r[iF];e&&(n+=";"+e),r.cssText=n,a=ij.test(n)}}else t&&e.removeAttribute("style");iU in e&&(e[iU]=a?r.display:"",e[iM]&&(r.display="none"))}(e,n,r):k(t)?x(t)||function(e,t,n,r,i=null){let a=e[i$]||(e[i$]={}),s=a[t];if(r&&s)s.value=r;else{let[n,o]=function(e){let t;if(iZ.test(e)){let n;for(t={};n=e.match(iZ);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[":"===e[2]?e.slice(3):K(e.slice(2)),t]}(t);if(r)iK(e,n,a[t]=function(e,t){let n=e=>{if(e._vts){if(e._vts<=n.attached)return}else e._vts=Date.now();tT(function(e,t){if(!O(t))return t;{let n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(e=>t=>!t._stopped&&e&&e(t))}}(e,n.value),t,5,[e])};return n.value=e,n.attached=iJ(),n}(r,i),o);else s&&(e.removeEventListener(n,s,o),a[t]=void 0)}}(e,t,0,r,a):("."===t[0]?(t=t.slice(1),0):"^"===t[0]?(t=t.slice(1),1):!function(e,t,n,r){if(r)return!!("innerHTML"===t||"textContent"===t||t in e&&iQ(t)&&L(n));if("spellcheck"===t||"draggable"===t||"translate"===t||"form"===t||"list"===t&&"INPUT"===e.tagName||"type"===t&&"TEXTAREA"===e.tagName)return!1;if("width"===t||"height"===t){let t=e.tagName;if("IMG"===t||"VIDEO"===t||"CANVAS"===t||"SOURCE"===t)return!1}return!(iQ(t)&&P(n))&&t in e}(e,t,r,s))?e._isVueCE&&(/[A-Z]/.test(t)||!P(r))?iW(e,q(t),r,a,t):("true-value"===t?e._trueValue=r:"false-value"===t&&(e._falseValue=r),iq(e,t,r,s)):(iW(e,t,r),e.tagName.includes("-")||"value"!==t&&"checked"!==t&&"selected"!==t||iq(e,t,r,s,a,"value"!==t))}},{insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{let t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{let i="svg"===t?i_.createElementNS("http://www.w3.org/2000/svg",e):"mathml"===t?i_.createElementNS("http://www.w3.org/1998/Math/MathML",e):n?i_.createElement(e,{is:n}):i_.createElement(e);return"select"===e&&r&&null!=r.multiple&&i.setAttribute("multiple",r.multiple),i},createText:e=>i_.createTextNode(e),createComment:e=>i_.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>i_.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,i,a){let s=n?n.previousSibling:t.lastChild;if(i&&(i===a||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),i!==a&&(i=i.nextSibling););else{iv.innerHTML=ip("svg"===r?`<svg>${e}</svg>`:"mathml"===r?`<math>${e}</math>`:e);let i=iv.content;if("svg"===r||"mathml"===r){let e=i.firstChild;for(;e.firstChild;)i.appendChild(e.firstChild);i.removeChild(e)}t.insertBefore(i,n)}return[s?s.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}});function at(){return d||(d=function(e,t){var n;let r,i;et().__VUE__=!0;let{insert:a,remove:s,patchProp:o,createElement:l,createText:u,createComment:f,setText:h,setElementText:d,parentNode:p,nextSibling:_,setScopeId:m=b,insertStaticContent:w}=e,k=(e,t,n,r=null,i=null,a=null,s,o=null,l=!!t.dynamicChildren)=>{if(e===t)return;e&&!rW(e,t)&&(r=eo(e),en(e,i,a,!0),e=null),-2===t.patchFlag&&(l=!1,t.dynamicChildren=null);let{type:u,ref:c,shapeFlag:f}=t;switch(u){case rU:x(e,t,n,r);break;case rM:S(e,t,n,r);break;case rI:null==e&&T(t,n,r,s);break;case rP:z(e,t,n,r,i,a,s,o,l);break;default:1&f?R(e,t,n,r,i,a,s,o,l):6&f?G(e,t,n,r,i,a,s,o,l):(64&f||128&f)&&u.process(e,t,n,r,i,a,s,o,l,ec)}null!=c&&i&&nu(c,e&&e.ref,a,t||e,!t)},x=(e,t,n,r)=>{if(null==e)a(t.el=u(t.children),n,r);else{let n=t.el=e.el;t.children!==e.children&&h(n,t.children)}},S=(e,t,n,r)=>{null==e?a(t.el=f(t.children||""),n,r):t.el=e.el},T=(e,t,n,r)=>{[e.el,e.anchor]=w(e.children,t,n,r,e.el,e.anchor)},C=({el:e,anchor:t},n,r)=>{let i;for(;e&&e!==t;)i=_(e),a(e,n,r),e=i;a(t,n,r)},D=({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=_(e),s(e),e=n;s(t)},R=(e,t,n,r,i,a,s,o,l)=>{"svg"===t.type?s="svg":"math"===t.type&&(s="mathml"),null==e?P(t,n,r,i,a,s,o,l):F(e,t,i,a,s,o,l)},P=(e,t,n,r,i,s,u,c)=>{var f,h;let p,_,{props:m,shapeFlag:g,transition:y,dirs:b}=e;if(p=e.el=l(e.type,s,m&&m.is,m),8&g?d(p,e.children):16&g&&B(e.children,p,null,r,i,rd(e,s),u,c),b&&tW(e,null,r,"created"),U(p,e,e.scopeId,u,r),m){for(let e in m)"value"===e||V(e)||o(p,e,null,m[e],s,r);"value"in m&&o(p,"value",null,m.value,s),(_=m.onVnodeBeforeMount)&&r6(_,r,e)}b&&tW(e,null,r,"beforeMount");let w=(f=i,h=y,(!f||f&&!f.pendingBranch)&&h&&!h.persisted);w&&y.beforeEnter(p),a(p,t,n),((_=m&&m.onVnodeMounted)||w||b)&&rh(()=>{_&&r6(_,r,e),w&&y.enter(p),b&&tW(e,null,r,"mounted")},i)},U=(e,t,n,r,i)=>{if(n&&m(e,n),r)for(let t=0;t<r.length;t++)m(e,r[t]);if(i){let n=i.subTree;if(t===n||rL(n.type)&&(n.ssContent===t||n.ssFallback===t)){let t=i.vnode;U(e,t,t.scopeId,t.slotScopeIds,i.parent)}}},B=(e,t,n,r,i,a,s,o,l=0)=>{for(let u=l;u<e.length;u++)k(null,e[u]=o?r2(e[u]):r1(e[u]),t,n,r,i,a,s,o)},F=(e,t,n,r,i,a,s)=>{let l,u=t.el=e.el,{patchFlag:c,dynamicChildren:f,dirs:h}=t;c|=16&e.patchFlag;let p=e.props||g,_=t.props||g;if(n&&rp(n,!1),(l=_.onVnodeBeforeUpdate)&&r6(l,n,t,e),h&&tW(t,e,n,"beforeUpdate"),n&&rp(n,!0),(p.innerHTML&&null==_.innerHTML||p.textContent&&null==_.textContent)&&d(u,""),f?j(e.dynamicChildren,f,u,n,r,rd(t,i),a):s||Y(e,t,u,null,n,r,rd(t,i),a,!1),c>0){if(16&c)N(u,p,_,n,i);else if(2&c&&p.class!==_.class&&o(u,"class",null,_.class,i),4&c&&o(u,"style",p.style,_.style,i),8&c){let e=t.dynamicProps;for(let t=0;t<e.length;t++){let r=e[t],a=p[r],s=_[r];(s!==a||"value"===r)&&o(u,r,a,s,i,n)}}1&c&&e.children!==t.children&&d(u,t.children)}else s||null!=f||N(u,p,_,n,i);((l=_.onVnodeUpdated)||h)&&rh(()=>{l&&r6(l,n,t,e),h&&tW(t,e,n,"updated")},r)},j=(e,t,n,r,i,a,s)=>{for(let o=0;o<t.length;o++){let l=e[o],u=t[o],c=l.el&&(l.type===rP||!rW(l,u)||70&l.shapeFlag)?p(l.el):n;k(l,u,c,null,r,i,a,s,!0)}},N=(e,t,n,r,i)=>{if(t!==n){if(t!==g)for(let a in t)V(a)||a in n||o(e,a,t[a],null,i,r);for(let a in n){if(V(a))continue;let s=n[a],l=t[a];s!==l&&"value"!==a&&o(e,a,l,s,i,r)}"value"in n&&o(e,"value",t.value,n.value,i)}},z=(e,t,n,r,i,s,o,l,c)=>{let f=t.el=e?e.el:u(""),h=t.anchor=e?e.anchor:u(""),{patchFlag:d,dynamicChildren:p,slotScopeIds:_}=t;(_&&(l=l?l.concat(_):_),null==e)?(a(f,n,r),a(h,n,r),B(t.children||[],n,h,i,s,o,l,c)):d>0&&64&d&&p&&e.dynamicChildren?(j(e.dynamicChildren,p,n,i,s,o,l),(null!=t.key||i&&t===i.subTree)&&r_(e,t,!0)):Y(e,t,n,h,i,s,o,l,c)},G=(e,t,n,r,i,a,s,o,l)=>{t.slotScopeIds=o,null==e?512&t.shapeFlag?i.ctx.activate(t,n,r,s,l):H(t,n,r,i,a,s,l):W(e,t,l)},H=(e,t,n,r,i,a,s)=>{let o=e.component=function(e,t,n){let r=e.type,i=(t?t.appContext:e.appContext)||r3,a={uid:r8++,vnode:e,type:r,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new eh(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:function e(t,n,r=!1){let i=r?rn:n.propsCache,a=i.get(t);if(a)return a;let s=t.props,o={},l=[],u=!1;if(!L(t)){let i=t=>{u=!0;let[r,i]=e(t,n,!0);E(o,r),i&&l.push(...i)};!r&&n.mixins.length&&n.mixins.forEach(i),t.extends&&i(t.extends),t.mixins&&t.mixins.forEach(i)}if(!s&&!u)return M(t)&&i.set(t,y),y;if(O(s))for(let e=0;e<s.length;e++){let t=q(s[e]);rr(t)&&(o[t]=g)}else if(s)for(let e in s){let t=q(e);if(rr(t)){let n=s[e],r=o[t]=O(n)||L(n)?{type:n}:E({},n),i=r.type,a=!1,u=!0;if(O(i))for(let e=0;e<i.length;++e){let t=i[e],n=L(t)&&t.name;if("Boolean"===n){a=!0;break}"String"===n&&(u=!1)}else a=L(i)&&"Boolean"===i.name;r[0]=a,r[1]=u,(a||A(r,"default"))&&l.push(t)}}let c=[o,l];return M(t)&&i.set(t,c),c}(r,i),emitsOptions:function e(t,n,r=!1){let i=n.emitsCache,a=i.get(t);if(void 0!==a)return a;let s=t.emits,o={},l=!1;if(!L(t)){let i=t=>{let r=e(t,n,!0);r&&(l=!0,E(o,r))};!r&&n.mixins.length&&n.mixins.forEach(i),t.extends&&i(t.extends),t.mixins&&t.mixins.forEach(i)}return s||l?(O(s)?s.forEach(e=>o[e]=null):E(o,s),M(t)&&i.set(t,o),o):(M(t)&&i.set(t,null),null)}(r,i),emit:null,emitted:null,propsDefaults:g,inheritAttrs:r.inheritAttrs,ctx:g,data:g,props:g,attrs:g,slots:g,refs:g,setupState:g,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return a.ctx={_:a},a.root=t?t.root:a,a.emit=rT.bind(null,a),e.ce&&e.ce(a),a}(e,r,i);nf(e)&&(o.ctx.renderer=ec),!function(e,t=!1,n=!1){t&&c(t);let{props:r,children:i}=e.vnode,a=it(e);!function(e,t,n,r=!1){let i={},a=n9();for(let n in e.propsDefaults=Object.create(null),re(e,t,i,a),e.propsOptions[0])n in i||(i[n]=void 0);n?e.props=r?i:tn(i):e.type.props?e.props=i:e.props=a,e.attrs=a}(e,r,a,t),rc(e,i,n),a&&function(e,t){let n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,nV);let{setup:r}=n;if(r){eS();let n=e.setupContext=r.length>1?io(e):null,i=r7(e),a=tS(r,e,0,[e.props,n]),s=I(a);if(eT(),i(),(s||e.sp)&&!nc(e)&&nl(e),s){if(a.then(ie,ie),t)return a.then(n=>{ii(e,n,t)}).catch(t=>{tA(t,e,0)});e.asyncDep=a}else ii(e,a,t)}else ia(e,t)}(e,t),t&&c(!1)}(o,!1,s),o.asyncDep?(i&&i.registerDep(o,$,s),e.el||S(null,o.subTree=rY(rM),t,n)):$(o,e,t,n,i,a,s)},W=(e,t,n)=>{let r=t.component=e.component;if(function(e,t,n){let{props:r,children:i,component:a}=e,{props:s,children:o,patchFlag:l}=t,u=a.emitsOptions;if(t.dirs||t.transition)return!0;if(!n||!(l>=0))return(!!i||!!o)&&(!o||!o.$stable)||r!==s&&(r?!s||rR(r,s,u):!!s);if(1024&l)return!0;if(16&l)return r?rR(r,s,u):!!s;if(8&l){let e=t.dynamicProps;for(let t=0;t<e.length;t++){let n=e[t];if(s[n]!==r[n]&&!rA(u,n))return!0}}return!1}(e,t,n))if(r.asyncDep&&!r.asyncResolved)return void Z(r,t,n);else r.next=t,r.update();else t.el=e.el,r.vnode=t},$=(e,t,n,r,a,s,o)=>{let l=()=>{if(e.isMounted){let t,{next:n,bu:r,u:i,parent:u,vnode:c}=e;{let t=function e(t){let n=t.subTree.component;if(n)if(n.asyncDep&&!n.asyncResolved)return n;else return e(n)}(e);if(t){n&&(n.el=c.el,Z(e,n,o)),t.asyncDep.then(()=>{e.isUnmounted||l()});return}}let f=n;rp(e,!1),n?(n.el=c.el,Z(e,n,o)):n=c,r&&X(r),(t=n.props&&n.props.onVnodeBeforeUpdate)&&r6(t,u,n,c),rp(e,!0);let h=rO(e),d=e.subTree;e.subTree=h,k(d,h,p(d.el),eo(d),e,a,s),n.el=h.el,null===f&&function({vnode:e,parent:t},n){for(;t;){let r=t.subTree;if(r.suspense&&r.suspense.activeBranch===e&&(r.el=e.el),r===e)(e=t.vnode).el=n,t=t.parent;else break}}(e,h.el),i&&rh(i,a),(t=n.props&&n.props.onVnodeUpdated)&&rh(()=>r6(t,u,n,c),a)}else{let o,{el:l,props:u}=t,{bm:c,m:f,parent:h,root:d,type:p}=e,_=nc(t);if(rp(e,!1),c&&X(c),!_&&(o=u&&u.onVnodeBeforeMount)&&r6(o,h,t),rp(e,!0),l&&i){let t=()=>{e.subTree=rO(e),i(l,e.subTree,e,a,null)};_&&p.__asyncHydrate?p.__asyncHydrate(l,e,t):t()}else{d.ce&&d.ce._injectChildStyle(p);let i=e.subTree=rO(e);k(null,i,n,r,e,a,s),t.el=i.el}if(f&&rh(f,a),!_&&(o=u&&u.onVnodeMounted)){let e=t;rh(()=>r6(o,h,e),a)}(256&t.shapeFlag||h&&nc(h.vnode)&&256&h.vnode.shapeFlag)&&e.a&&rh(e.a,a),e.isMounted=!0,t=n=r=null}};e.scope.on();let u=e.effect=new ep(l);e.scope.off();let c=e.update=u.run.bind(u),f=e.job=u.runIfDirty.bind(u);f.i=e,f.id=e.uid,u.scheduler=()=>tI(f),rp(e,!0),c()},Z=(e,t,n)=>{t.component=e;let r=e.vnode.props;e.vnode=t,e.next=null,function(e,t,n,r){let{props:i,attrs:a,vnode:{patchFlag:s}}=e,o=tu(i),[l]=e.propsOptions,u=!1;if((r||s>0)&&!(16&s)){if(8&s){let n=e.vnode.dynamicProps;for(let r=0;r<n.length;r++){let s=n[r];if(rA(e.emitsOptions,s))continue;let c=t[s];if(l)if(A(a,s))c!==a[s]&&(a[s]=c,u=!0);else{let t=q(s);i[t]=rt(l,o,t,c,e,!1)}else c!==a[s]&&(a[s]=c,u=!0)}}}else{let r;for(let s in re(e,t,i,a)&&(u=!0),o)t&&(A(t,s)||(r=K(s))!==s&&A(t,r))||(l?n&&(void 0!==n[s]||void 0!==n[r])&&(i[s]=rt(l,o,s,void 0,e,!0)):delete i[s]);if(a!==o)for(let e in a)t&&A(t,e)||(delete a[e],u=!0)}u&&eI(e.attrs,"set","")}(e,t.props,r,n),rf(e,t.children,n),eS(),tF(e),eT()},Y=(e,t,n,r,i,a,s,o,l=!1)=>{let u=e&&e.children,c=e?e.shapeFlag:0,f=t.children,{patchFlag:h,shapeFlag:p}=t;if(h>0){if(128&h)return void Q(u,f,n,r,i,a,s,o,l);else if(256&h)return void J(u,f,n,r,i,a,s,o,l)}8&p?(16&c&&es(u,i,a),f!==u&&d(n,f)):16&c?16&p?Q(u,f,n,r,i,a,s,o,l):es(u,i,a,!0):(8&c&&d(n,""),16&p&&B(f,n,r,i,a,s,o,l))},J=(e,t,n,r,i,a,s,o,l)=>{let u;e=e||y,t=t||y;let c=e.length,f=t.length,h=Math.min(c,f);for(u=0;u<h;u++){let r=t[u]=l?r2(t[u]):r1(t[u]);k(e[u],r,n,null,i,a,s,o,l)}c>f?es(e,i,a,!0,!1,h):B(t,n,r,i,a,s,o,l,h)},Q=(e,t,n,r,i,a,s,o,l)=>{let u=0,c=t.length,f=e.length-1,h=c-1;for(;u<=f&&u<=h;){let r=e[u],c=t[u]=l?r2(t[u]):r1(t[u]);if(rW(r,c))k(r,c,n,null,i,a,s,o,l);else break;u++}for(;u<=f&&u<=h;){let r=e[f],u=t[h]=l?r2(t[h]):r1(t[h]);if(rW(r,u))k(r,u,n,null,i,a,s,o,l);else break;f--,h--}if(u>f){if(u<=h){let e=h+1,f=e<c?t[e].el:r;for(;u<=h;)k(null,t[u]=l?r2(t[u]):r1(t[u]),n,f,i,a,s,o,l),u++}}else if(u>h)for(;u<=f;)en(e[u],i,a,!0),u++;else{let d,p=u,_=u,m=new Map;for(u=_;u<=h;u++){let e=t[u]=l?r2(t[u]):r1(t[u]);null!=e.key&&m.set(e.key,u)}let g=0,b=h-_+1,w=!1,x=0,E=Array(b);for(u=0;u<b;u++)E[u]=0;for(u=p;u<=f;u++){let r,c=e[u];if(g>=b){en(c,i,a,!0);continue}if(null!=c.key)r=m.get(c.key);else for(d=_;d<=h;d++)if(0===E[d-_]&&rW(c,t[d])){r=d;break}void 0===r?en(c,i,a,!0):(E[r-_]=u+1,r>=x?x=r:w=!0,k(c,t[r],n,null,i,a,s,o,l),g++)}let S=w?function(e){let t,n,r,i,a,s=e.slice(),o=[0],l=e.length;for(t=0;t<l;t++){let l=e[t];if(0!==l){if(e[n=o[o.length-1]]<l){s[t]=n,o.push(t);continue}for(r=0,i=o.length-1;r<i;)e[o[a=r+i>>1]]<l?r=a+1:i=a;l<e[o[r]]&&(r>0&&(s[t]=o[r-1]),o[r]=t)}}for(r=o.length,i=o[r-1];r-- >0;)o[r]=i,i=s[i];return o}(E):y;for(d=S.length-1,u=b-1;u>=0;u--){let e=_+u,f=t[e],h=e+1<c?t[e+1].el:r;0===E[u]?k(null,f,n,h,i,a,s,o,l):w&&(d<0||u!==S[d]?ee(f,n,h,2):d--)}}},ee=(e,t,n,r,i=null)=>{let{el:s,type:o,transition:l,children:u,shapeFlag:c}=e;if(6&c)return void ee(e.component.subTree,t,n,r);if(128&c)return void e.suspense.move(t,n,r);if(64&c)return void o.move(e,t,n,ec);if(o===rP){a(s,t,n);for(let e=0;e<u.length;e++)ee(u[e],t,n,r);a(e.anchor,t,n);return}if(o===rI)return void C(e,t,n);if(2!==r&&1&c&&l)if(0===r)l.beforeEnter(s),a(s,t,n),rh(()=>l.enter(s),i);else{let{leave:e,delayLeave:r,afterLeave:i}=l,o=()=>a(s,t,n),u=()=>{e(s,()=>{o(),i&&i()})};r?r(s,o,u):u()}else a(s,t,n)},en=(e,t,n,r=!1,i=!1)=>{let a,{type:s,props:o,ref:l,children:u,dynamicChildren:c,shapeFlag:f,patchFlag:h,dirs:d,cacheIndex:p}=e;if(-2===h&&(i=!1),null!=l&&nu(l,null,n,e,!0),null!=p&&(t.renderCache[p]=void 0),256&f)return void t.ctx.deactivate(e);let _=1&f&&d,m=!nc(e);if(m&&(a=o&&o.onVnodeBeforeUnmount)&&r6(a,t,e),6&f)ea(e.component,n,r);else{if(128&f)return void e.suspense.unmount(n,r);_&&tW(e,null,t,"beforeUnmount"),64&f?e.type.remove(e,t,n,ec,r):c&&!c.hasOnce&&(s!==rP||h>0&&64&h)?es(c,t,n,!1,!0):(s===rP&&384&h||!i&&16&f)&&es(u,t,n),r&&er(e)}(m&&(a=o&&o.onVnodeUnmounted)||_)&&rh(()=>{a&&r6(a,t,e),_&&tW(e,null,t,"unmounted")},n)},er=e=>{let{type:t,el:n,anchor:r,transition:i}=e;if(t===rP)return void ei(n,r);if(t===rI)return void D(e);let a=()=>{s(n),i&&!i.persisted&&i.afterLeave&&i.afterLeave()};if(1&e.shapeFlag&&i&&!i.persisted){let{leave:t,delayLeave:r}=i,s=()=>t(n,a);r?r(e.el,a,s):s()}else a()},ei=(e,t)=>{let n;for(;e!==t;)n=_(e),s(e),e=n;s(t)},ea=(e,t,n)=>{let{bum:r,scope:i,job:a,subTree:s,um:o,m:l,a:u}=e;rv(l),rv(u),r&&X(r),i.stop(),a&&(a.flags|=8,en(s,e,t,n)),o&&rh(o,t),rh(()=>{e.isUnmounted=!0},t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve())},es=(e,t,n,r=!1,i=!1,a=0)=>{for(let s=a;s<e.length;s++)en(e[s],t,n,r,i)},eo=e=>{if(6&e.shapeFlag)return eo(e.component.subTree);if(128&e.shapeFlag)return e.suspense.next();let t=_(e.anchor||e.el),n=t&&t[tK];return n?_(n):t},el=!1,eu=(e,t,n)=>{null==e?t._vnode&&en(t._vnode,null,null,!0):k(t._vnode||null,e,t,null,null,null,n),t._vnode=e,el||(el=!0,tF(),tj(),el=!1)},ec={p:k,um:en,m:ee,r:er,mt:H,mc:B,pc:Y,pbc:j,n:eo,o:e};return{render:eu,hydrate:r,createApp:(n=r,function(e,t=null){L(e)||(e=E({},e)),null==t||M(t)||(t=null);let r=n2(),i=new WeakSet,a=[],s=!1,o=r.app={_uid:n5++,_component:e,_props:t,_container:null,_context:r,_instance:null,version:"3.5.13",get config(){return r.config},set config(v){},use:(e,...t)=>(i.has(e)||(e&&L(e.install)?(i.add(e),e.install(o,...t)):L(e)&&(i.add(e),e(o,...t))),o),mixin:e=>(r.mixins.includes(e)||r.mixins.push(e),o),component:(e,t)=>t?(r.components[e]=t,o):r.components[e],directive:(e,t)=>t?(r.directives[e]=t,o):r.directives[e],mount(i,a,l){if(s);else{let u=o._ceVNode||rY(e,t);return u.appContext=r,!0===l?l="svg":!1===l&&(l=void 0),a&&n?n(u,i):eu(u,i,l),s=!0,o._container=i,i.__vue_app__=o,il(u.component)}},onUnmount(e){a.push(e)},unmount(){s&&(tT(a,o._instance,16),eu(null,o._container),delete o._container.__vue_app__)},provide:(e,t)=>(r.provides[e]=t,o),runWithContext(e){let t=n6;n6=o;try{return e()}finally{n6=t}}};return o})}}(ae))}let an=(...e)=>{at().render(...e)},ar=(...e)=>{let t=at().createApp(...e),{mount:n}=t;return t.mount=e=>{var r,i;let a=P(r=e)?document.querySelector(r):r;if(!a)return;let s=t._component;L(s)||s.render||s.template||(s.template=a.innerHTML),1===a.nodeType&&(a.textContent="");let o=n(a,!1,(i=a)instanceof SVGElement?"svg":"function"==typeof MathMLElement&&i instanceof MathMLElement?"mathml":void 0);return a instanceof Element&&(a.removeAttribute("v-cloak"),a.setAttribute("data-v-app","")),o},t}},412:function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{_:()=>r})},874:function(e,t,n){"use strict";let r;n.d(t,{Pu:()=>b});let i=("undefined"!=typeof globalThis?globalThis:void 0)?.crypto||("undefined"!=typeof global?global:void 0)?.crypto||("undefined"!=typeof window?window:void 0)?.crypto||("undefined"!=typeof self?self:void 0)?.crypto||("undefined"!=typeof frames?frames:void 0)?.[0]?.crypto;r=i?e=>{let t=[];for(let n=0;n<e;n+=4)t.push(i.getRandomValues(new Uint32Array(1))[0]);return new s(t,e)}:e=>{let t=[],n=e=>{let t=e,n=0x3ade68b1;return()=>{let e=((n=36969*(65535&n)+(n>>16)&0xffffffff)<<16)+(t=18e3*(65535&t)+(t>>16)&0xffffffff)&0xffffffff;return e/=0x100000000,(e+=.5)*(Math.random()>.5?1:-1)}};for(let r=0,i;r<e;r+=4){let e=n(0x100000000*(i||Math.random()));i=0x3ade67b7*e(),t.push(0x100000000*e()|0)}return new s(t,e)};class a{static create(...e){return new this(...e)}mixIn(e){return Object.assign(this,e)}clone(){let e=new this.constructor;return Object.assign(e,this),e}}class s extends a{constructor(e=[],t=4*e.length){super();let n=e;if(n instanceof ArrayBuffer&&(n=new Uint8Array(n)),(n instanceof Int8Array||n instanceof Uint8ClampedArray||n instanceof Int16Array||n instanceof Uint16Array||n instanceof Int32Array||n instanceof Uint32Array||n instanceof Float32Array||n instanceof Float64Array)&&(n=new Uint8Array(n.buffer,n.byteOffset,n.byteLength)),n instanceof Uint8Array){let e=n.byteLength,t=[];for(let r=0;r<e;r+=1)t[r>>>2]|=n[r]<<24-r%4*8;this.words=t,this.sigBytes=e}else this.words=e,this.sigBytes=t}static random=r;toString(e=o){return e.stringify(this)}concat(e){let t=this.words,n=e.words,r=this.sigBytes,i=e.sigBytes;if(this.clamp(),r%4)for(let e=0;e<i;e+=1){let i=n[e>>>2]>>>24-e%4*8&255;t[r+e>>>2]|=i<<24-(r+e)%4*8}else for(let e=0;e<i;e+=4)t[r+e>>>2]=n[e>>>2];return this.sigBytes+=i,this}clamp(){let{words:e,sigBytes:t}=this;e[t>>>2]&=0xffffffff<<32-t%4*8,e.length=Math.ceil(t/4)}clone(){let e=super.clone.call(this);return e.words=this.words.slice(0),e}}let o={stringify(e){let{words:t,sigBytes:n}=e,r=[];for(let e=0;e<n;e+=1){let n=t[e>>>2]>>>24-e%4*8&255;r.push((n>>>4).toString(16)),r.push((15&n).toString(16))}return r.join("")},parse(e){let t=e.length,n=[];for(let r=0;r<t;r+=2)n[r>>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new s(n,t/2)}},l={stringify(e){let{words:t,sigBytes:n}=e,r=[];for(let e=0;e<n;e+=1){let n=t[e>>>2]>>>24-e%4*8&255;r.push(String.fromCharCode(n))}return r.join("")},parse(e){let t=e.length,n=[];for(let r=0;r<t;r+=1)n[r>>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new s(n,t)}},u={stringify(e){try{return decodeURIComponent(escape(l.stringify(e)))}catch(e){throw Error("Malformed UTF-8 data")}},parse:e=>l.parse(unescape(encodeURIComponent(e)))};class c extends a{constructor(){super(),this._minBufferSize=0}reset(){this._data=new s,this._nDataBytes=0}_append(e){let t=e;"string"==typeof t&&(t=u.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes}_process(e){let t,{_data:n,blockSize:r}=this,i=n.words,a=n.sigBytes,o=a/(4*r),l=(o=e?Math.ceil(o):Math.max((0|o)-this._minBufferSize,0))*r,u=Math.min(4*l,a);if(l){for(let e=0;e<l;e+=r)this._doProcessBlock(i,e);t=i.splice(0,l),n.sigBytes-=u}return new s(t,u)}clone(){let e=super.clone.call(this);return e._data=this._data.clone(),e}}class f extends c{constructor(e){super(),this.blockSize=16,this.cfg=Object.assign(new a,e),this.reset()}static _createHelper(e){return(t,n)=>new e(n).finalize(t)}static _createHmacHelper(e){return(t,n)=>new h(e,n).finalize(t)}reset(){super.reset.call(this),this._doReset()}update(e){return this._append(e),this._process(),this}finalize(e){return e&&this._append(e),this._doFinalize()}}class h extends a{constructor(e,t){super();let n=new e;this._hasher=n;let r=t;"string"==typeof r&&(r=u.parse(r));let i=n.blockSize,a=4*i;r.sigBytes>a&&(r=n.finalize(t)),r.clamp();let s=r.clone();this._oKey=s;let o=r.clone();this._iKey=o;let l=s.words,c=o.words;for(let e=0;e<i;e+=1)l[e]^=0x5c5c5c5c,c[e]^=0x36363636;s.sigBytes=a,o.sigBytes=a,this.reset()}reset(){let e=this._hasher;e.reset(),e.update(this._iKey)}update(e){return this._hasher.update(e),this}finalize(e){let t=this._hasher,n=t.finalize(e);return t.reset(),t.finalize(this._oKey.clone().concat(n))}}let d=[];for(let e=0;e<64;e+=1)d[e]=0x100000000*Math.abs(Math.sin(e+1))|0;let p=(e,t,n,r,i,a,s)=>{let o=e+(t&n|~t&r)+i+s;return(o<<a|o>>>32-a)+t},_=(e,t,n,r,i,a,s)=>{let o=e+(t&r|n&~r)+i+s;return(o<<a|o>>>32-a)+t},m=(e,t,n,r,i,a,s)=>{let o=e+(t^n^r)+i+s;return(o<<a|o>>>32-a)+t},g=(e,t,n,r,i,a,s)=>{let o=e+(n^(t|~r))+i+s;return(o<<a|o>>>32-a)+t};class y extends f{_doReset(){this._hash=new s([0x67452301,0xefcdab89,0x98badcfe,0x10325476])}_doProcessBlock(e,t){for(let n=0;n<16;n+=1){let r=t+n,i=e[r];e[r]=(i<<8|i>>>24)&0xff00ff|(i<<24|i>>>8)&0xff00ff00}let n=this._hash.words,r=e[t+0],i=e[t+1],a=e[t+2],s=e[t+3],o=e[t+4],l=e[t+5],u=e[t+6],c=e[t+7],f=e[t+8],h=e[t+9],y=e[t+10],b=e[t+11],w=e[t+12],k=e[t+13],x=e[t+14],E=e[t+15],S=n[0],T=n[1],A=n[2],O=n[3];S=p(S,T,A,O,r,7,d[0]),O=p(O,S,T,A,i,12,d[1]),A=p(A,O,S,T,a,17,d[2]),T=p(T,A,O,S,s,22,d[3]),S=p(S,T,A,O,o,7,d[4]),O=p(O,S,T,A,l,12,d[5]),A=p(A,O,S,T,u,17,d[6]),T=p(T,A,O,S,c,22,d[7]),S=p(S,T,A,O,f,7,d[8]),O=p(O,S,T,A,h,12,d[9]),A=p(A,O,S,T,y,17,d[10]),T=p(T,A,O,S,b,22,d[11]),S=p(S,T,A,O,w,7,d[12]),O=p(O,S,T,A,k,12,d[13]),A=p(A,O,S,T,x,17,d[14]),T=p(T,A,O,S,E,22,d[15]),S=_(S,T,A,O,i,5,d[16]),O=_(O,S,T,A,u,9,d[17]),A=_(A,O,S,T,b,14,d[18]),T=_(T,A,O,S,r,20,d[19]),S=_(S,T,A,O,l,5,d[20]),O=_(O,S,T,A,y,9,d[21]),A=_(A,O,S,T,E,14,d[22]),T=_(T,A,O,S,o,20,d[23]),S=_(S,T,A,O,h,5,d[24]),O=_(O,S,T,A,x,9,d[25]),A=_(A,O,S,T,s,14,d[26]),T=_(T,A,O,S,f,20,d[27]),S=_(S,T,A,O,k,5,d[28]),O=_(O,S,T,A,a,9,d[29]),A=_(A,O,S,T,c,14,d[30]),T=_(T,A,O,S,w,20,d[31]),S=m(S,T,A,O,l,4,d[32]),O=m(O,S,T,A,f,11,d[33]),A=m(A,O,S,T,b,16,d[34]),T=m(T,A,O,S,x,23,d[35]),S=m(S,T,A,O,i,4,d[36]),O=m(O,S,T,A,o,11,d[37]),A=m(A,O,S,T,c,16,d[38]),T=m(T,A,O,S,y,23,d[39]),S=m(S,T,A,O,k,4,d[40]),O=m(O,S,T,A,r,11,d[41]),A=m(A,O,S,T,s,16,d[42]),T=m(T,A,O,S,u,23,d[43]),S=m(S,T,A,O,h,4,d[44]),O=m(O,S,T,A,w,11,d[45]),A=m(A,O,S,T,E,16,d[46]),T=m(T,A,O,S,a,23,d[47]),S=g(S,T,A,O,r,6,d[48]),O=g(O,S,T,A,c,10,d[49]),A=g(A,O,S,T,x,15,d[50]),T=g(T,A,O,S,l,21,d[51]),S=g(S,T,A,O,w,6,d[52]),O=g(O,S,T,A,s,10,d[53]),A=g(A,O,S,T,y,15,d[54]),T=g(T,A,O,S,i,21,d[55]),S=g(S,T,A,O,f,6,d[56]),O=g(O,S,T,A,E,10,d[57]),A=g(A,O,S,T,u,15,d[58]),T=g(T,A,O,S,k,21,d[59]),S=g(S,T,A,O,o,6,d[60]),O=g(O,S,T,A,b,10,d[61]),A=g(A,O,S,T,a,15,d[62]),T=g(T,A,O,S,h,21,d[63]),n[0]=n[0]+S|0,n[1]=n[1]+T|0,n[2]=n[2]+A|0,n[3]=n[3]+O|0}_doFinalize(){let e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;t[r>>>5]|=128<<24-r%32;let i=Math.floor(n/0x100000000);t[(r+64>>>9<<4)+15]=(i<<8|i>>>24)&0xff00ff|(i<<24|i>>>8)&0xff00ff00,t[(r+64>>>9<<4)+14]=(n<<8|n>>>24)&0xff00ff|(n<<24|n>>>8)&0xff00ff00,e.sigBytes=(t.length+1)*4,this._process();let a=this._hash,s=a.words;for(let e=0;e<4;e+=1){let t=s[e];s[e]=(t<<8|t>>>24)&0xff00ff|(t<<24|t>>>8)&0xff00ff00}return a}clone(){let e=super.clone.call(this);return e._hash=this._hash.clone(),e}}let b=f._createHelper(y);f._createHmacHelper(y)},672:function(e,t,n){"use strict";let r,i;n.d(t,{x:()=>tE});var a,s=Object.create,o=Object.defineProperty,l=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.getPrototypeOf,f=Object.prototype.hasOwnProperty,h=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of u(t))f.call(e,i)||i===n||o(e,i,{get:()=>t[i],enumerable:!(r=l(t,i))||r.enumerable});return e},d=(e,t,n)=>(n=null!=e?s(c(e)):{},h(!t&&e&&e.__esModule?n:o(n,"default",{value:e,enumerable:!0}),e)),p=(r={"node_modules/eventemitter3/index.js"(e,t){var n=Object.prototype.hasOwnProperty,r="~";function i(){}function a(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function s(e,t,n,i,s){if("function"!=typeof n)throw TypeError("The listener must be a function");var o=new a(n,i||e,s),l=r?r+t:t;return e._events[l]?e._events[l].fn?e._events[l]=[e._events[l],o]:e._events[l].push(o):(e._events[l]=o,e._eventsCount++),e}function o(e,t){0==--e._eventsCount?e._events=new i:delete e._events[t]}function l(){this._events=new i,this._eventsCount=0}Object.create&&(i.prototype=Object.create(null),new i().__proto__||(r=!1)),l.prototype.eventNames=function(){var e,t,i=[];if(0===this._eventsCount)return i;for(t in e=this._events)n.call(e,t)&&i.push(r?t.slice(1):t);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(e)):i},l.prototype.listeners=function(e){var t=r?r+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var i=0,a=n.length,s=Array(a);i<a;i++)s[i]=n[i].fn;return s},l.prototype.listenerCount=function(e){var t=r?r+e:e,n=this._events[t];return n?n.fn?1:n.length:0},l.prototype.emit=function(e,t,n,i,a,s){var o=r?r+e:e;if(!this._events[o])return!1;var l,u,c=this._events[o],f=arguments.length;if(c.fn){switch(c.once&&this.removeListener(e,c.fn,void 0,!0),f){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,t),!0;case 3:return c.fn.call(c.context,t,n),!0;case 4:return c.fn.call(c.context,t,n,i),!0;case 5:return c.fn.call(c.context,t,n,i,a),!0;case 6:return c.fn.call(c.context,t,n,i,a,s),!0}for(u=1,l=Array(f-1);u<f;u++)l[u-1]=arguments[u];c.fn.apply(c.context,l)}else{var h,d=c.length;for(u=0;u<d;u++)switch(c[u].once&&this.removeListener(e,c[u].fn,void 0,!0),f){case 1:c[u].fn.call(c[u].context);break;case 2:c[u].fn.call(c[u].context,t);break;case 3:c[u].fn.call(c[u].context,t,n);break;case 4:c[u].fn.call(c[u].context,t,n,i);break;default:if(!l)for(h=1,l=Array(f-1);h<f;h++)l[h-1]=arguments[h];c[u].fn.apply(c[u].context,l)}}return!0},l.prototype.on=function(e,t,n){return s(this,e,t,n,!1)},l.prototype.once=function(e,t,n){return s(this,e,t,n,!0)},l.prototype.removeListener=function(e,t,n,i){var a=r?r+e:e;if(!this._events[a])return this;if(!t)return o(this,a),this;var s=this._events[a];if(s.fn)s.fn!==t||i&&!s.once||n&&s.context!==n||o(this,a);else{for(var l=0,u=[],c=s.length;l<c;l++)(s[l].fn!==t||i&&!s[l].once||n&&s[l].context!==n)&&u.push(s[l]);u.length?this._events[a]=1===u.length?u[0]:u:o(this,a)}return this},l.prototype.removeAllListeners=function(e){var t;return e?(t=r?r+e:e,this._events[t]&&o(this,t)):(this._events=new i,this._eventsCount=0),this},l.prototype.off=l.prototype.removeListener,l.prototype.addListener=l.prototype.on,l.prefixed=r,l.EventEmitter=l,void 0!==t&&(t.exports=l)}},function(){return i||(0,r[u(r)[0]])((i={exports:{}}).exports,i),i.exports});function _(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_(Object(n),!0).forEach(function(t){E(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function g(){g=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",o=i.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function u(e,t,n,i){var a,s,o,l,u=Object.create((t&&t.prototype instanceof h?t:h).prototype);return r(u,"_invoke",{value:(a=e,s=n,o=new S(i||[]),l="suspendedStart",function(e,t){if("executing"===l)throw Error("Generator is already running");if("completed"===l){if("throw"===e)throw t;return A()}for(o.method=e,o.arg=t;;){var n=o.delegate;if(n){var r=function e(t,n){var r=n.method,i=t.iterator[r];if(void 0===i)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=void 0,e(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=TypeError("The iterator does not provide a '"+r+"' method")),f;var a=c(i,t.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,f;var s=a.arg;return s?s.done?(n[t.resultName]=s.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,f):s:(n.method="throw",n.arg=TypeError("iterator result is not an object"),n.delegate=null,f)}(n,o);if(r){if(r===f)continue;return r}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if("suspendedStart"===l)throw l="completed",o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);l="executing";var i=c(a,s,o);if("normal"===i.type){if(l=o.done?"completed":"suspendedYield",i.arg===f)continue;return{value:i.arg,done:o.done}}"throw"===i.type&&(l="completed",o.method="throw",o.arg=i.arg)}})}),u}function c(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var f={};function h(){}function d(){}function p(){}var _={};l(_,a,function(){return this});var m=Object.getPrototypeOf,y=m&&m(m(T([])));y&&y!==t&&n.call(y,a)&&(_=y);var b=p.prototype=h.prototype=Object.create(_);function w(e){["next","throw","return"].forEach(function(t){l(e,t,function(e){return this._invoke(t,e)})})}function k(e,t){var i;r(this,"_invoke",{value:function(r,a){function s(){return new t(function(i,s){!function r(i,a,s,o){var l=c(e[i],e,a);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then(function(e){r("next",e,s,o)},function(e){r("throw",e,s,o)}):t.resolve(f).then(function(e){u.value=e,s(u)},function(e){return r("throw",e,s,o)})}o(l.arg)}(r,a,i,s)})}return i=i?i.then(s,s):s()}})}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 E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(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 r=-1,i=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:A}}function A(){return{value:void 0,done:!0}}return d.prototype=p,r(b,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:d,configurable:!0}),d.displayName=l(p,o,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,l(e,o,"GeneratorFunction")),e.prototype=Object.create(b),e},e.awrap=function(e){return{__await:e}},w(k.prototype),l(k.prototype,s,function(){return this}),e.AsyncIterator=k,e.async=function(t,n,r,i,a){void 0===a&&(a=Promise);var s=new k(u(t,n,r,i),a);return e.isGeneratorFunction(n)?s:s.next().then(function(e){return e.done?e.value:s.next()})},w(b),l(b,o,"Generator"),l(b,a,function(){return this}),l(b,"toString",function(){return"[object Generator]"}),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=T,S.prototype={constructor:S,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(E),!e)for(var t in this)"t"===t.charAt(0)&&n.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 r(n,r){return s.type="throw",s.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var o=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(o&&l){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(o){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var s=a?a.completion:{};return s.type=e,s.arg=t,a?(this.method="next",this.next=a.finallyLoc,f):this.complete(s)},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 n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;E(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:T(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}function y(e,t,n,r,i,a,s){try{var o=e[a](s),l=o.value}catch(e){n(e);return}o.done?t(l):Promise.resolve(l).then(r,i)}function b(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var a=e.apply(t,n);function s(e){y(a,r,i,s,o,"next",e)}function o(e){y(a,r,i,s,o,"throw",e)}s(void 0)})}}function w(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function k(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,O(r.key),r)}}function x(e,t,n){return t&&k(e.prototype,t),n&&k(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function E(e,t,n){return(t=O(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function S(e){return(S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function T(e,t){return(T=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function A(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function O(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function C(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function D(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?C(Object(n),!0).forEach(function(t){F(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):C(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function R(){R=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",o=i.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function u(e,t,n,i){var a,s,o,l,u=Object.create((t&&t.prototype instanceof h?t:h).prototype);return r(u,"_invoke",{value:(a=e,s=n,o=new E(i||[]),l="suspendedStart",function(e,t){if("executing"===l)throw Error("Generator is already running");if("completed"===l){if("throw"===e)throw t;return T()}for(o.method=e,o.arg=t;;){var n=o.delegate;if(n){var r=function e(t,n){var r=n.method,i=t.iterator[r];if(void 0===i)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=void 0,e(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=TypeError("The iterator does not provide a '"+r+"' method")),f;var a=c(i,t.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,f;var s=a.arg;return s?s.done?(n[t.resultName]=s.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,f):s:(n.method="throw",n.arg=TypeError("iterator result is not an object"),n.delegate=null,f)}(n,o);if(r){if(r===f)continue;return r}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if("suspendedStart"===l)throw l="completed",o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);l="executing";var i=c(a,s,o);if("normal"===i.type){if(l=o.done?"completed":"suspendedYield",i.arg===f)continue;return{value:i.arg,done:o.done}}"throw"===i.type&&(l="completed",o.method="throw",o.arg=i.arg)}})}),u}function c(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var f={};function h(){}function d(){}function p(){}var _={};l(_,a,function(){return this});var m=Object.getPrototypeOf,g=m&&m(m(S([])));g&&g!==t&&n.call(g,a)&&(_=g);var y=p.prototype=h.prototype=Object.create(_);function b(e){["next","throw","return"].forEach(function(t){l(e,t,function(e){return this._invoke(t,e)})})}function w(e,t){var i;r(this,"_invoke",{value:function(r,a){function s(){return new t(function(i,s){!function r(i,a,s,o){var l=c(e[i],e,a);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then(function(e){r("next",e,s,o)},function(e){r("throw",e,s,o)}):t.resolve(f).then(function(e){u.value=e,s(u)},function(e){return r("throw",e,s,o)})}o(l.arg)}(r,a,i,s)})}return i=i?i.then(s,s):s()}})}function k(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 x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function S(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 r=-1,i=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:T}}function T(){return{value:void 0,done:!0}}return d.prototype=p,r(y,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:d,configurable:!0}),d.displayName=l(p,o,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,l(e,o,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(w.prototype),l(w.prototype,s,function(){return this}),e.AsyncIterator=w,e.async=function(t,n,r,i,a){void 0===a&&(a=Promise);var s=new w(u(t,n,r,i),a);return e.isGeneratorFunction(n)?s:s.next().then(function(e){return e.done?e.value:s.next()})},b(y),l(y,o,"Generator"),l(y,a,function(){return this}),l(y,"toString",function(){return"[object Generator]"}),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=S,E.prototype={constructor:E,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(x),!e)for(var t in this)"t"===t.charAt(0)&&n.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 r(n,r){return s.type="throw",s.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var o=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(o&&l){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(o){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var s=a?a.completion:{};return s.type=e,s.arg=t,a?(this.method="next",this.next=a.finallyLoc,f):this.complete(s)},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 n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),x(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;x(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},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})(e)}function P(e,t,n,r,i,a,s){try{var o=e[a](s),l=o.value}catch(e){n(e);return}o.done?t(l):Promise.resolve(l).then(r,i)}function U(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var a=e.apply(t,n);function s(e){P(a,r,i,s,o,"next",e)}function o(e){P(a,r,i,s,o,"throw",e)}s(void 0)})}}function M(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function I(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Z(r.key),r)}}function B(e,t,n){return t&&I(e.prototype,t),n&&I(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function F(e,t,n){return(t=Z(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function j(e,t){if("function"!=typeof t&&null!==t)throw 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&&z(e,t)}function N(e){return(N=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function z(e,t){return(z=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function V(){if("undefined"==typeof Reflect||!Reflect.construct||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,t,n){return(G=V()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&z(i,n.prototype),i}).apply(null,arguments)}function H(e){var t="function"==typeof Map?new Map:void 0;return(H=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw 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 G(e,arguments,N(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),z(n,e)})(e)}function q(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function W(e){var t=V();return function(){var n,r=N(e);n=t?Reflect.construct(r,arguments,N(this).constructor):r.apply(this,arguments);if(n&&("object"==typeof n||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return q(this)}}function K(){return(K="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=N(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}}).apply(this,arguments)}function $(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Z(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var Y=function(){function e(){M(this,e)}return B(e,null,[{key:"start",value:function(e){return!e||!e.length||1===e.length&&e.end(0)-e.start(0)<1e-6||1===e.length&&0>e.start(0)?0:e.start(0)}},{key:"end",value:function(e){return!e||!e.length||1===e.length&&e.end(0)-e.start(0)<1e-6?0:e.end(e.length-1)}},{key:"get",value:function(e){if(e)try{return e.buffered}catch(e){}}},{key:"buffers",value:function(e,t){if(!e||!e.length)return[];for(var n=[],r=0,i=e.length;r<i;r++){var a=n.length;if(a&&t){var s=n[a-1],o=s[1];if(e.start(r)-o<=t){var l=e.end(r);l>o&&(s[1]=l)}else n.push([e.start(r),e.end(r)])}else n.push([e.start(r),e.end(r)])}return n}},{key:"totalLength",value:function(e){return e&&e.length?e.reduce(function(e,t){return e+(t[1]-t[0])},0):0}},{key:"info",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(!t||!t.length)return{start:0,end:0,buffers:[]};for(var i=0,a=0,s=0,o=0,l=0,u=0,c=0,f=e.buffers(t,r),h=0,d=f.length;h<d;h++){var p=f[h];if(n+r>=p[0]&&n<=p[1])i=p[0],a=p[1],s=h;else if(n+r<p[0]){o=p[0],l=p[1];break}else n+r>p[1]&&(u=p[0],c=p[1])}return{start:i,end:a,index:s,buffers:f,nextStart:o,nextEnd:l,prevStart:u,prevEnd:c,currentTime:n,behind:n-i,remaining:a?a-n:0,length:e.totalLength&&e.totalLength(f)}}},{key:"isBuffered",value:function(t,n){if(t){var r=e.get(t);if(null!=r&&r.length){for(var i=0;i<r.length;i++)if(n>=r.start(i)&&n<=r.end(i))return!0}}return!1}}]),e}(),X="undefined"!=typeof window,J={MANIFEST:"manifest",NETWORK:"network",NETWORK_TIMEOUT:"network_timeout",NETWORK_FORBIDDEN:"network_forbidden",NETWORK_NOTFOUND:"network_notfound",NETWROK_RANGE_NOT_SATISFIABLE:"network_range_not_satisfiable",DEMUX:"demux",REMUX:"remux",MEDIA:"media",DRM:"drm",OTHER:"other",RUNTIME:"runtime",SUB_TYPES:{FLV:"FLV",HLS:"HLS",MP4:"MP4",FMP4:"FMP4",MSE_ADD_SB:"MSE_ADD_SB",MSE_APPEND_BUFFER:"MSE_APPEND_BUFFER",MSE_OTHER:"MSE_OTHER",MSE_FULL:"MSE_FULL",MSE_CHANGE_TYPE:"MSE_CHANGE_TYPE",OPTION:"OPTION",DASH:"DASH",LICENSE:"LICENSE",CUSTOM_LICENSE:"CUSTOM_LICENSE",MSE_HIJACK:"MSE_HIJACK",EME_HIJACK:"EME_HIJACK",SIDX:"SIDX",NO_CANPLAY_ERROR:"NO_CANPLAY_ERROR",BUFFERBREAK_ERROR:"BUFFERBREAK_ERROR",WAITING_TIMEOUT_ERROR:"WAITING_TIMEOUT_ERROR",MEDIA_ERR_ABORTED:"MEDIA_ERR_ABORTED",MEDIA_ERR_NETWORK:"MEDIA_ERR_NETWORK",MEDIA_ERR_DECODE:"MEDIA_ERR_DECODE",MEDIA_ERR_SRC_NOT_SUPPORTED:"MEDIA_ERR_SRC_NOT_SUPPORTED",MEDIA_ERR_CODEC_NOT_SUPPORTED:"MEDIA_ERR_CODEC_NOT_SUPPORTED",MEDIA_ERR_URL_EMPTY:"MEDIA_ERR_URL_EMPTY"}},Q=(F(a={},J.MANIFEST,{HLS:1100,DASH:1200}),F(a,J.NETWORK,2100),F(a,J.NETWORK_TIMEOUT,2101),F(a,J.NETWORK_FORBIDDEN,2103),F(a,J.NETWORK_NOTFOUND,2104),F(a,J.NETWROK_RANGE_NOT_SATISFIABLE,2116),F(a,J.DEMUX,{FLV:3100,HLS:3200,MP4:3300,FMP4:3400,SIDX:3410}),F(a,J.REMUX,{FMP4:4100,MP4:4200}),F(a,J.MEDIA,{MEDIA_ERR_ABORTED:5101,MEDIA_ERR_NETWORK:5102,MEDIA_ERR_DECODE:5103,MEDIA_ERR_SRC_NOT_SUPPORTED:5104,MEDIA_ERR_CODEC_NOT_SUPPORTED:5105,MEDIA_ERR_URL_EMPTY:5106,MSE_ADD_SB:5200,MSE_APPEND_BUFFER:5201,MSE_OTHER:5202,MSE_FULL:5203,MSE_HIJACK:5204,MSE_CHANGE_TYPE:5205,EME_HIJACK:5301}),F(a,J.DRM,{LICENSE:7100,CUSTOM_LICENSE:7200}),F(a,J.OTHER,8e3),F(a,J.RUNTIME,{NO_CANPLAY_ERROR:9001,BUFFERBREAK_ERROR:9002,WAITING_TIMEOUT_ERROR:9003}),a),ee=function(e){j(n,e);var t=W(n);function n(e,r,i,a,s){var o;return M(this,n),(o=t.call(this,s||(null==i?void 0:i.message))).errorType=e===J.NETWORK_TIMEOUT?J.NETWORK:e,o.originError=i,o.ext=a,o.errorCode=Q[e][r]||Q[e],o.errorMessage=o.message,o.errorCode||(o.errorType=J.OTHER,o.errorCode=Q[o.errorType]),o}return B(n,null,[{key:"create",value:function(e,t,r,i,a){return e instanceof n?e:(e instanceof Error&&(r=e,e=""),e||(e=J.OTHER),new n(e,t,r,i,a))}},{key:"network",value:function(e){var t;return new n(null!=e&&e.isTimeout?J.NETWORK_TIMEOUT:J.NETWORK,null,e instanceof Error?e:null,{url:null==e?void 0:e.url,response:null==e?void 0:e.response,httpCode:null==e||null==(t=e.response)?void 0:t.status})}}]),n}(H(Error)),et=["Boolean","Number","String","Undefined","Null","Date","Object"],en=function(){function e(t,n){M(this,e),this.name=t||"",this._prefix="[".concat(this.name,"]"),this.logCacheLevel=(null==n?void 0:n.logCacheLevel)||3,this.logMaxSize=(null==n?void 0:n.logMaxSize)||204800,this.logSize=0,this.logTextArray=[]}return B(e,[{key:"debug",value:function(){for(var t,n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];this.logCache.apply(this,[1].concat(r)),e.disabled||(t=console).debug.apply(t,["[".concat(er(),"]"),this._prefix].concat(r))}},{key:"log",value:function(){for(var t,n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];this.logCache.apply(this,[2].concat(r)),e.disabled||(t=console).log.apply(t,["[".concat(er(),"]"),this._prefix].concat(r))}},{key:"warn",value:function(){for(var t,n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];this.logCache.apply(this,[3].concat(r)),e.disabled||(t=console).warn.apply(t,["[".concat(er(),"]"),this._prefix].concat(r))}},{key:"error",value:function(){for(var t,n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];this.logCache.apply(this,[4].concat(r)),e.disabled||(t=console).error.apply(t,["[".concat(er(),"]"),this._prefix].concat(r))}},{key:"logCache",value:function(e){if(!(e<this.logCacheLevel)){var t="";try{for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];var a=r.map(function(e){return function e(t,n,r){r||(r=1),n||(n=2);var i={};if(!t||"object"!==L(t))return t;var a=Object.prototype.toString.call(t).slice(8,-1);if(!et.includes(a))return a;if(!(r>n)){for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(r===n?i[s]=function(e){if("object"!==L(e))return e;var t=Object.prototype.toString.call(e).slice(8,-1);switch(t){case"Array":case"Uint8Array":case"ArrayBuffer":return t+"["+e.length+"]";case"Object":return"{}";default:return t}}(t[s]):"object"===L(t[s])?i[s]=e(t[s],n,r+1):i[s]=t[s]);return i}}(e)});t="[".concat(er(),"]")+this._prefix+JSON.stringify(a)}catch(e){return}if(e>=this.logCacheLevel&&(this.logSize+=t.length,this.logTextArray.push(t)),this.logSize>this.logMaxSize){var s=this.logTextArray.shift();this.logSize-=s.length}}}},{key:"getLogCache",value:function(){var e=this.logTextArray.join("\n");return this.reset(),e}},{key:"reset",value:function(){this.logTextArray=[],this.logSize=0}},{key:"table",value:function(){var t;e.disabled||(console.group(this._prefix),(t=console).table.apply(t,arguments),console.groupEnd())}},{key:"setLogLevel",value:function(e){this.logCacheLevel=e}}],[{key:"enable",value:function(){e.disabled=!1}},{key:"disable",value:function(){e.disabled=!0}}]),e}();function er(){return new Date().toLocaleString()}function ei(){var e,t,n=new Promise(function(n,r){e=n,t=r});return n.used=!1,n.resolve=function(){return n.used=!0,e.apply(void 0,arguments)},n.reject=function(){return n.used=!0,t.apply(void 0,arguments)},n}function ea(){try{return parseInt(performance.now(),10)}catch(e){return new Date().getTime()}}F(en,"disabled",!0);var es={stringify:function(e){try{return JSON.stringify(e)}catch(e){return""}}};function eo(){var e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];try{if(!X)return null;if(e&&"undefined"!=typeof ManagedMediaSource)return ManagedMediaSource;return window.MediaSource}catch(e){}}function el(e){return/ManagedMediaSource/gi.test(Object.prototype.toString.call(e))}var eu={APPEND:"appendBuffer",REMOVE:"removeBuffer",UPDATE_DURATION:"updateDuration"},ec=function(){var e,t,n;function r(e,t){var n=this;M(this,r),F(this,"media",null),F(this,"mediaSource",null),F(this,"_openPromise",ei()),F(this,"_queue",Object.create(null)),F(this,"_sourceBuffer",Object.create(null)),F(this,"_mseFullFlag",{}),F(this,"_st",0),F(this,"_opst",0),F(this,"_logger",null),F(this,"_config",null),F(this,"_url",null),F(this,"_onStartStreaming",function(){n._logger.debug("startstreaming")}),F(this,"_onEndStreaming",function(){n._logger.debug("endstreaming")}),F(this,"_onSBUpdateEnd",function(e){var t=n._queue[e];if(t){var r=t[0];if((null==r?void 0:r.opName)!==eu.UPDATE_DURATION&&t.shift(),r){var i,a,s=ea()-n._opst;n._logger.debug("UpdateEnd(".concat(e,"/").concat(r.opName,")"),es.stringify(function(e){var t=[];if(e instanceof TimeRanges)for(var n=0;n<e.length;n++)t.push({start:e.start(n),end:e.end(n)});return t}(null==(i=n._sourceBuffer[e])?void 0:i.buffered)),s,r.context),r.promise.resolve({name:r.opName,context:r.context,costtime:s});var o=null==(a=r.context)?void 0:a.callback;o&&"function"==typeof o&&o(r.context),n._startQueue(e)}}}),F(this,"_onSBUpdateError",function(e,t){var r=n._queue[e];if(r){var i=r[0];i&&(n._logger.error("UpdateError",e,i.opName,i.context),i.promise.reject(new ee(J.MEDIA,J.SUB_TYPES.MSE_APPEND_BUFFER,t)))}}),this._config=Object.assign(r.getDefaultConfig(),t),e&&this.bindMedia(e),this._logger=new en("MSE"),this._config.openLog&&en.enable()}return B(r,[{key:"isOpened",get:function(){var e;return(null==(e=this.mediaSource)?void 0:e.readyState)==="open"}},{key:"hasOpTasks",get:function(){var e=this,t=!1;return Object.keys(this._queue).forEach(function(n){var r=e._queue[n];Array.isArray(r)&&(t||(t=r.length>0))}),t}},{key:"url",get:function(){return this._url}},{key:"duration",get:function(){var e;return(null==(e=this.mediaSource)?void 0:e.duration)||-1}},{key:"isEnded",get:function(){return!!this.mediaSource&&"ended"===this.mediaSource.readyState}},{key:"streaming",get:function(){return!el(this.mediaSource)||this.mediaSource.streaming}},{key:"isFull",value:function(e){return e?this._mseFullFlag[e]:this._mseFullFlag[r.VIDEO]}},{key:"updateDuration",value:function(e){var t=this,n=this.mediaSource&&this.mediaSource.duration>e;if(this.mediaSource&&this.mediaSource.duration>e){var r=0;if(Object.keys(this._sourceBuffer).forEach(function(e){try{r=Math.max(t.bufferEnd(e)||0,r)}catch(e){}}),e<r)return Promise.resolve()}return this._enqueueBlockingOp(function(){if(t.isEnded)return void t._logger.debug("setDuration but ended");t.mediaSource&&(t.mediaSource.duration=e,t._logger.debug("setDuration",e))},eu.UPDATE_DURATION,{isReduceDuration:n})}},{key:"open",value:function(){var e=this;if(this._openPromise.used&&!this.isOpened&&this.mediaSource){var t=this.mediaSource;t.addEventListener("sourceopen",function n(){var r=ea()-e._st;e._logger.debug("sourceopen",r),t.removeEventListener("sourceopen",n),e._openPromise.resolve({costtime:r})}),this._openPromise=ei()}return this._openPromise}},{key:"bindMedia",value:(e=U(R().mark(function e(t){var n,r,i,a,s=this;return R().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(this.mediaSource||this.media)){e.next=3;break}return e.next=3,this.unbindMedia();case 3:if(n=eo(this._config.preferMMS),!(!t||!n)){e.next=6;break}throw Error("Param media or MediaSource does not exist");case 6:return this.media=t,i=el(r=this.mediaSource=new n),this._st=ea(),a=function e(){var n=ea()-s._st;s._logger.debug("sourceopen"),r.removeEventListener("sourceopen",e),URL.revokeObjectURL(t.src),s._openPromise.resolve({costtime:n})},r.addEventListener("sourceopen",a),i&&(r.addEventListener("startstreaming",this._onStartStreaming),r.addEventListener("endstreaming",this._onEndStreaming)),this._url=URL.createObjectURL(r),t.src=this._url,t.disableRemotePlayback=i,e.abrupt("return",this._openPromise);case 17:case"end":return e.stop()}},e,this)})),function(t){return e.apply(this,arguments)})},{key:"unbindMedia",value:(t=U(R().mark(function e(){var t,n,r,i=this;return R().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(this._openPromise.used||this._openPromise.resolve(),t=this.mediaSource){if(Object.keys(this._queue).forEach(function(e){var t=i._queue[e];t&&t.forEach(function(e){var t,n;return null==(t=e.promise)||null==(n=t.resolve)?void 0:n.call(t)})}),n=!!this.media&&this.media.readyState>=1,r="open"===t.readyState,n&&r)try{t.endOfStream()}catch(e){}Object.keys(this._sourceBuffer).forEach(function(e){try{t.removeSourceBuffer(i._sourceBuffer[e])}catch(e){}}),el(t)&&(t.removeEventListener("startstreaming",this._onStartStreaming),t.removeEventListener("endstreaming",this._onEndStreaming))}if(this.media){this.media.disableRemotePlayback=!1,this.media.removeAttribute("src");try{this.media.load()}catch(e){}this.media=null}this.mediaSource=null,this._openPromise=ei(),this._queue=Object.create(null),this._sourceBuffer=Object.create(null);case 8:case"end":return e.stop()}},e,this)})),function(){return t.apply(this,arguments)})},{key:"createSource",value:function(e,t){var n;if(!this._sourceBuffer[e]&&this.mediaSource){try{n=this._sourceBuffer[e]=this.mediaSource.addSourceBuffer(t)}catch(e){throw new ee(J.MEDIA,J.SUB_TYPES.MSE_ADD_SB,e)}n.mimeType=t,n.addEventListener("updateend",this._onSBUpdateEnd.bind(this,e)),n.addEventListener("error",this._onSBUpdateError.bind(this,e))}}},{key:"changeType",value:function(e,t){var n=this,r=this._sourceBuffer[e];return this.mediaSource&&r&&r.mimeType!==t?"function"!=typeof r.changeType?Promise.reject(new ee(J.MEDIA,J.SUB_TYPES.MSE_CHANGE_TYPE,Error("changeType is not a function"))):this._enqueueOp(e,function(){try{r.changeType(t)}catch(e){throw new ee(J.MEDIA,J.SUB_TYPES.MSE_CHANGE_TYPE,e)}r.mimeType=t,n._onSBUpdateEnd(e)},"changeType",{mimeType:t}):Promise.resolve()}},{key:"createOrChangeSource",value:function(e,t){return this.createSource(e,t),this.changeType(e,t)}},{key:"append",value:function(e,t,n){var r=this;return t&&t.byteLength&&this._sourceBuffer[e]?this._enqueueOp(e,function(){var i;r.mediaSource&&!r.media.error&&(r._logger.debug("MSE APPEND START",n),r._opst=ea(),null==(i=r._sourceBuffer[e])||i.appendBuffer(t))},eu.APPEND,n):Promise.resolve()}},{key:"remove",value:function(e,t,n,r){var i=this,a=!1;return this._mseFullFlag[e]&&(a=!0),this._enqueueOp(e,function(){if(i.mediaSource&&!i.media.error){var a=i._sourceBuffer[e];if(t>=n||!a)return void i._onSBUpdateEnd(e);i._opst=ea(),i._logger.debug("MSE REMOVE START",e,t,n,r),a.remove(t,n)}},eu.REMOVE,r,a)}},{key:"clearBuffer",value:function(e,t){var n,r=this;return Object.keys(this._sourceBuffer).forEach(function(i){n=r.remove(i,e,t)}),n||Promise.resolve()}},{key:"clearAllBuffer",value:function(){var e,t=this;return Object.keys(this._sourceBuffer).forEach(function(n){var r=t._sourceBuffer[n];e=t.remove(n,0,Y.end(Y.get(r)))}),e}},{key:"clearOpQueues",value:function(e,t){this._logger.debug("MSE clearOpQueue START");var n,r=this._queue[e];if(t&&r){this._queue[e]=[];return}if(r&&r[e]&&!(r.length<5)){var i=[];r.forEach(function(e){e.context&&e.context.isinit&&i.push(e)}),this._queue[e]=r.slice(0,2),i.length>0&&(n=this._queue[e]).push.apply(n,i)}}},{key:"endOfStream",value:function(e){var t=this;return this.mediaSource&&"open"===this.mediaSource.readyState?this._enqueueBlockingOp(function(){var n=t.mediaSource;n&&"open"===n.readyState&&(t._logger.debug("MSE endOfStream START"),e?n.endOfStream(e):n.endOfStream())},"endOfStream"):Promise.resolve()}},{key:"setLiveSeekableRange",value:function(e,t){var n=this.mediaSource;e<0||t<e||null==n||!n.setLiveSeekableRange||"open"!==n.readyState||n.setLiveSeekableRange(e,t)}},{key:"getSourceBuffer",value:function(e){return this._sourceBuffer[e]}},{key:"buffered",value:function(e){return Y.get(this._sourceBuffer[e])}},{key:"bufferStart",value:function(e){return Y.start(this.buffered(e))}},{key:"bufferEnd",value:function(e){return Y.end(this.buffered(e))}},{key:"_enqueueOp",value:function(e,t,n,r,i){var a=this;if(!this.mediaSource)return Promise.resolve();var s=this._queue[e]=this._queue[e]||[],o={exec:t,promise:ei(),opName:n,context:r};return i?(s.splice(0,0,o),this._mseFullFlag[e]=!1,this._startQueue(e)):s.push(o),this.isOpened||this.isEnded?1===s.length&&this._startQueue(e):this._openPromise.then(function(){1===s.length&&a._startQueue(e)}),o.promise}},{key:"_enqueueBlockingOp",value:(n=U(R().mark(function e(t,n,r){var i,a,s=this;return R().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(this.mediaSource){e.next=2;break}return e.abrupt("return",Promise.resolve());case 2:if((i=Object.keys(this._sourceBuffer)).length){e.next=5;break}return e.abrupt("return",t());case 5:return a=[],i.forEach(function(e){var t=s._queue[e],i=ei();a.push(i),t.push({exec:function(){i.resolve()},promise:i,opName:n,context:r}),1===t.length&&s._startQueue(e)}),e.abrupt("return",Promise.all(a).then(function(){try{return t()}finally{i.forEach(function(e){var t=s._queue[e],n=s._sourceBuffer[e];null==t||t.shift(),n&&n.updating||s._startQueue(e)})}}));case 8:case"end":return e.stop()}},e,this)})),function(e,t,r){return n.apply(this,arguments)})},{key:"_startQueue",value:function(e){var t=this._queue[e];if(t){var n,r,i=t[0];if(i&&!this._mseFullFlag[e])try{i.exec()}catch(a){a&&a.message&&a.message.indexOf("SourceBuffer is full")>=0?(this._mseFullFlag[e]=!0,i.context&&"object"===L(i.context)&&(i.context.isFull=!0),this._logger.error("[MSE error], context,",i.context," ,name,",i.opName,",err,SourceBuffer is full"),null==i||null==(n=i.promise)||n.reject(new ee(J.MEDIA,J.SUB_TYPES.MSE_FULL,a))):(this._logger.error(a),null==i||null==(r=i.promise)||r.reject(a.constructor===ee?a:new ee(J.MEDIA,J.SUB_TYPES.MSE_OTHER,a)),t.shift(),this._startQueue(e))}}}},{key:"setTimeoffset",value:function(e,t,n){var r=this;return this._enqueueOp(e,function(){t<0&&(t+=.001),r._sourceBuffer[e].timestampOffset=t,r._onSBUpdateEnd(e)},"setTimeoffset",n)}},{key:"abort",value:function(e,t){var n=this;return this.isOpened?this._enqueueOp(e,function(){n._sourceBuffer[e].abort(),n._onSBUpdateEnd(e)},"abort",t):Promise.resolve()}}],[{key:"isSupported",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:'video/mp4; codecs="avc1.42E01E,mp4a.40.2"',t=eo();if(!t)return!1;try{return t.isTypeSupported(e)}catch(t){return this._logger.error(e,t),!1}}},{key:"isMMSOnly",value:function(){return"undefined"!=typeof ManagedMediaSource&&"undefined"==typeof MediaSource}},{key:"getDefaultConfig",value:function(){return{openLog:!1,preferMMS:!1}}}]),r}();F(ec,"VIDEO","video"),F(ec,"AUDIO","audio");var ef={FETCH:"fetch",XHR:"xhr"},eh={ARRAY_BUFFER:"arraybuffer",TEXT:"text",JSON:"json"},ed=function(e){j(n,e);var t=W(n);function n(e,r,i,a){var s;return M(this,n),F(q(s=t.call(this,a)),"retryCount",0),F(q(s),"isTimeout",!1),F(q(s),"loaderType",ef.FETCH),F(q(s),"startTime",0),F(q(s),"endTime",0),F(q(s),"options",{}),s.url=e,s.request=r,s.response=i,s}return B(n)}(H(Error)),ep=Object.prototype.toString;function e_(e){if("[object Object]"!==ep.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function ev(e){if(e&&null!==e[0]&&void 0!==e[0]&&(0!==e[0]||null!==e[1]&&void 0!==e[1])){var t="bytes="+e[0]+"-";return e[1]&&(t+=e[1]),t}}function em(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function eg(e,t){if(e){if(!t)return e;var n,r=Object.keys(t).map(function(e){if(null!=(n=t[e]))return Array.isArray(n)?e+="[]":n=[n],n.map(function(t){var n,r;return(n=t,"[object Date]"===ep.call(n))?t=t.toISOString():null!==(r=t)&&"object"===L(r)&&(t=JSON.stringify(t)),"".concat(em(e),"=").concat(em(t))}).join("&")}).filter(Boolean).join("&");if(r){var i=e.indexOf("#");-1!==i&&(e=e.slice(0,i)),e+=(-1===e.indexOf("?")?"?":"&")+r}return e}}function ey(e,t,n,r,i,a,s,o,l,u,c){return i=null!=i?parseFloat(i):null,Number.isNaN(r=parseInt(r||"0",10))&&(r=0),{data:e,done:t,options:{range:l,vid:u,index:o,contentLength:r,age:i,startTime:a,firstByteTime:s,endTime:Date.now(),priOptions:c},response:n}}function eb(e,t){return Math.round(8*e*1e3/t/1024)}var ew={ERROR:"error",TTFB:"core.ttfb",LOAD_START:"core.loadstart",LOAD_RESPONSE_HEADERS:"core.loadresponseheaders",LOAD_COMPLETE:"core.loadcomplete",LOAD_RETRY:"core.loadretry",SOURCEBUFFER_CREATED:"core.sourcebuffercreated",ANALYZE_DURATION_EXCEEDED:"core.analyzedurationexceeded",APPEND_BUFFER:"core.appendbuffer",REMOVE_BUFFER:"core.removebuffer",BUFFEREOS:"core.buffereos",KEYFRAME:"core.keyframe",CHASEFRAME:"core.chaseframe",METADATA_PARSED:"core.metadataparsed",SEI:"core.sei",SEI_IN_TIME:"core.seiintime",FLV_SCRIPT_DATA:"core.flvscriptdata",SWITCH_URL_SUCCESS:"core.switchurlsuccess",SWITCH_URL_FAILED:"core.switchurlfailed",DEMUXED_TRACK:"core.demuxedtrack",STREAM_EXCEPTION:"core.streamexception",LARGE_AV_FIRST_FRAME_GAP_DETECT:"LARGE_AV_FIRST_FRAME_GAP_DETECT",LARGE_VIDEO_DTS_GAP_DETECT:"LARGE_VIDEO_DTS_GAP_DETECT",LARGE_AUDIO_DTS_GAP_DETECT:"LARGE_AUDIO_DTS_GAP_DETECT",AUDIO_GAP_DETECT:"AUDIO_GAP_DETECT",AUDIO_OVERLAP_DETECT:"AUDIO_OVERLAP_DETECT",MAX_DTS_DELTA_WITH_NEXT_SEGMENT_DETECT:"MAX_DTS_DELTA_WITH_NEXT_SEGMENT_DETECT",REAL_TIME_SPEED:"real_time_speed"},ek=function(e){j(r,e);var t,n=W(r);function r(){var e;return M(this,r),F(q(e=n.call(this)),"_abortController",null),F(q(e),"_timeoutTimer",null),F(q(e),"_reader",null),F(q(e),"_response",null),F(q(e),"_aborted",!1),F(q(e),"_index",-1),F(q(e),"_range",null),F(q(e),"_receivedLength",0),F(q(e),"_running",!1),F(q(e),"_logger",null),F(q(e),"_vid",""),F(q(e),"_onProcessMinLen",0),F(q(e),"_onCancel",null),F(q(e),"_priOptions",null),e}return B(r,[{key:"load",value:function(e){var t,n=this,r=e.url,i=e.vid,a=e.timeout,s=e.responseType,o=e.onProgress,l=e.index,u=e.onTimeout,c=e.onCancel,f=e.range,h=e.transformResponse,d=e.request,p=e.params,_=e.logger,m=e.method,g=e.headers,y=e.body,b=e.mode,w=e.credentials,k=e.cache,x=e.redirect,E=e.referrer,S=e.referrerPolicy,T=e.onProcessMinLen,A=e.priOptions;this._logger=_,this._aborted=!1,this._onProcessMinLen=T,this._onCancel=c,this._abortController="undefined"!=typeof AbortController&&new AbortController,this._running=!0,this._index=l,this._range=f||[0,0],this._vid=i||r,this._priOptions=A||{};var O={method:m,headers:g,body:y,mode:b,credentials:w,cache:k,redirect:x,referrer:E,referrerPolicy:S,signal:null==(t=this._abortController)?void 0:t.signal},C=!1;clearTimeout(this._timeoutTimer),r=eg(r,p);var D=ev(f);D&&(g=d?d.headers:O.headers=O.headers||(Headers?new Headers:{}),Headers&&g instanceof Headers?g.append("Range",D):g.Range=D),a&&(this._timeoutTimer=setTimeout(function(){if(C=!0,n.cancel(),u){var e=new ed(r,O,null,"timeout");e.isTimeout=!0,u(e,{index:n._index,range:n._range,vid:n._vid,priOptions:n._priOptions})}},a));var L=Date.now();return this._logger.debug("[fetch load start], index,",l,",range,",f),new Promise(function(e,t){var i;fetch(d||r,d?void 0:O).then((i=U(R().mark(function i(a){var u,c,d,p;return R().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:if(clearTimeout(n._timeoutTimer),n._response=a,!(n._aborted||!n._running)){i.next=4;break}return i.abrupt("return");case 4:if(h&&(a=h(a,r)||a),a.ok){i.next=7;break}throw new ed(r,O,a,"bad network response");case 7:if(u=Date.now(),s!==eh.TEXT){i.next=15;break}return i.next=11,a.text();case 11:case 18:c=i.sent,n._running=!1,i.next=37;break;case 15:if(s!==eh.JSON){i.next=22;break}return i.next=18,a.json();case 22:if(!o){i.next=29;break}return n.resolve=e,n.reject=t,n._loadChunk(a,o,L,u),i.abrupt("return");case 29:return i.next=31,a.arrayBuffer();case 31:c=new Uint8Array(c=i.sent),n._running=!1,d=Date.now()-L,p=eb(c.byteLength,d),n.emit(ew.REAL_TIME_SPEED,{speed:p,len:c.byteLength,time:d,vid:n._vid,index:n._index,range:n._range,priOptions:n._priOptions});case 37:n._logger.debug("[fetch load end], index,",l,",range,",f),e(ey(c,!0,a,a.headers.get("Content-Length"),a.headers.get("age"),L,u,l,f,n._vid,n._priOptions));case 39:case"end":return i.stop()}},i)})),function(e){return i.apply(this,arguments)})).catch(function(e){var i;clearTimeout(n._timeoutTimer),n._running=!1,(!n._aborted||C)&&((e=e instanceof ed?e:new ed(r,O,null,null==(i=e)?void 0:i.message)).startTime=L,e.endTime=Date.now(),e.isTimeout=C,e.options={index:n._index,range:n._range,vid:n._vid,priOptions:n._priOptions},t(e))})})}},{key:"cancel",value:(t=U(R().mark(function e(){return R().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!this._aborted){e.next=2;break}return e.abrupt("return");case 2:if(this._aborted=!0,this._running=!1,!this._response){e.next=14;break}if(e.prev=5,!this._reader){e.next=9;break}return e.next=9,this._reader.cancel();case 9:e.next=13;break;case 11:e.prev=11,e.t0=e.catch(5);case 13:this._response=this._reader=null;case 14:if(this._abortController){try{this._abortController.abort()}catch(e){}this._abortController=null}this._onCancel&&this._onCancel({index:this._index,range:this._range,vid:this._vid,priOptions:this._priOptions});case 16:case"end":return e.stop()}},e,this,[[5,11]])})),function(){return t.apply(this,arguments)})},{key:"_loadChunk",value:function(e,t,n,r){var i,a,s,o,l=this;if(!e.body||!e.body.getReader){this._running=!1;var u=new ed(e.url,"",e,"onProgress of bad response.body.getReader");u.options={index:this._index,range:this._range,vid:this._vid,priOptions:this._priOptions},this.reject(u);return}this._onProcessMinLen>0&&(this._cache=new Uint8Array(2097152),this._writeIdx=0);var c=this._reader=e.body.getReader(),f=(i=U(R().mark(function i(){var u,h,d,p,_,m,g,y;return R().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return s=Date.now(),i.prev=1,i.next=4,c.read();case 4:a=i.sent,o=Date.now(),i.next=13;break;case 8:return i.prev=8,i.t0=i.catch(1),o=Date.now(),l._aborted||(l._running=!1,i.t0.options={index:l._index,range:l._range,vid:l._vid,priOptions:l._priOptions},l.reject(i.t0)),i.abrupt("return");case 13:if(d=(h=(null==(u=l._range)?void 0:u.length)>0?l._range[0]:0)+l._receivedLength,!l._aborted){i.next=19;break}return l._running=!1,t(void 0,!1,{range:[d,d],vid:l._vid,index:l._index,startTime:s,endTime:o,st:n,firstByteTime:r,priOptions:l._priOptions},e),i.abrupt("return");case 19:p=a.value?a.value.byteLength:0,l._receivedLength+=p,l._logger.debug("【fetchLoader,onProgress call】,task,",l._range,", start,",d,", end,",h+l._receivedLength,", done,",a.done),l._onProcessMinLen>0?l._writeIdx+p>=l._onProcessMinLen||a.done?((_=new Uint8Array(l._writeIdx+p)).set(l._cache.slice(0,l._writeIdx),0),p>0&&_.set(a.value,l._writeIdx),l._writeIdx=0,l._logger.debug("【fetchLoader,onProgress enough】,done,",a.done,",len,",_.byteLength,", writeIdx,",l._writeIdx)):p>0&&l._writeIdx+p<2097152?(l._cache.set(a.value,l._writeIdx),l._writeIdx+=p,l._logger.debug("【fetchLoader,onProgress cache】,len,",p,", writeIdx,",l._writeIdx)):p>0&&(m=new Uint8Array(l._writeIdx+p+2048),l._logger.debug("【fetchLoader,onProgress extra start】,size,",l._writeIdx+p+2048,", datalen,",p,", writeIdx,",l._writeIdx),m.set(l._cache.slice(0,l._writeIdx),0),p>0&&m.set(a.value,l._writeIdx),l._writeIdx+=p,delete l._cache,l._cache=m,l._logger.debug("【fetchLoader,onProgress extra end】,len,",p,", writeIdx,",l._writeIdx)):_=a.value,(_&&_.byteLength>0||a.done)&&t(_,a.done,{range:[l._range[0]+l._receivedLength-(_?_.byteLength:0),l._range[0]+l._receivedLength],vid:l._vid,index:l._index,startTime:s,endTime:o,st:n,firstByteTime:r,priOptions:l._priOptions},e),a.done?(g=Date.now()-n,y=eb(l._receivedLength,g),l.emit(ew.REAL_TIME_SPEED,{speed:y,len:l._receivedLength,time:g,vid:l._vid,index:l._index,range:l._range,priOptions:l._priOptions}),l._running=!1,l._logger.debug("[fetchLoader onProgress end],task,",l._range,",done,",a.done),l.resolve(ey(a,!0,e,e.headers.get("Content-Length"),e.headers.get("age"),n,r,l._index,l._range,l._vid,l._priOptions))):f();case 25:case"end":return i.stop()}},i,null,[[1,8]])})),function(){return i.apply(this,arguments)});f()}},{key:"receiveLen",get:function(){return this._receivedLength}},{key:"running",get:function(){return this._running},set:function(e){this._running=e}}],[{key:"isSupported",value:function(){return"undefined"!=typeof fetch}}]),r}(d(p()).default),ex=function(e){j(n,e);var t=W(n);function n(){var e;return M(this,n),F(q(e=t.call(this)),"_xhr",null),F(q(e),"_aborted",!1),F(q(e),"_timeoutTimer",null),F(q(e),"_range",null),F(q(e),"_receivedLength",0),F(q(e),"_url",null),F(q(e),"_onProgress",null),F(q(e),"_index",-1),F(q(e),"_headers",null),F(q(e),"_currentChunkSizeKB",384),F(q(e),"_timeout",null),F(q(e),"_xhr",null),F(q(e),"_withCredentials",null),F(q(e),"_startTime",-1),F(q(e),"_loadCompleteResolve",null),F(q(e),"_loadCompleteReject",null),F(q(e),"_runing",!1),F(q(e),"_logger",!1),F(q(e),"_vid",""),F(q(e),"_responseType",void 0),F(q(e),"_credentials",void 0),F(q(e),"_method",void 0),F(q(e),"_transformResponse",void 0),F(q(e),"_firstRtt",void 0),F(q(e),"_onCancel",null),F(q(e),"_priOptions",null),e}return B(n,[{key:"load",value:function(e){var t=this;clearTimeout(this._timeoutTimer),this._logger=e.logger,this._range=e.range,this._onProgress=e.onProgress,this._index=e.index,this._headers=e.headers,this._withCredentials="include"===e.credentials||"same-origin"===e.credentials,this._body=e.body||null,e.method&&(this._method=e.method),this._timeout=e.timeout||null,this._runing=!0,this._vid=e.vid||e.url,this._responseType=e.responseType,this._firstRtt=-1,this._onTimeout=e.onTimeout,this._onCancel=e.onCancel,this._request=e.request,this._priOptions=e.priOptions||{},this._logger.debug("【xhrLoader task】, range",this._range),this._url=eg(e.url,e.params);var n=Date.now();return new Promise(function(e,n){t._loadCompleteResolve=e,t._loadCompleteReject=n,t._startLoad()}).catch(function(e){if(clearTimeout(t._timeoutTimer),t._runing=!1,!t._aborted)throw(e=e instanceof ed?e:new ed(t._url,t._request)).startTime=n,e.endTime=Date.now(),e.options={index:t._index,vid:t._vid,priOptions:t._priOptions},e})}},{key:"_startLoad",value:function(){var e=null;if(this._responseType===eh.ARRAY_BUFFER&&this._range&&this._range.length>1)if(this._onProgress){this._firstRtt=-1;var t=1024*this._currentChunkSizeKB,n=this._range[0]+this._receivedLength,r=this._range[1];t<this._range[1]-n&&(r=n+t),e=[n,r],this._logger.debug("[xhr_loader->],tast :",this._range,", SubRange, ",e)}else e=this._range,this._logger.debug("[xhr_loader->],tast :",this._range,", allRange, ",e);this._internalOpen(e)}},{key:"_internalOpen",value:function(e){var t=this;try{this._startTime=Date.now();var n=this._xhr=new XMLHttpRequest;n.open(this._method||"GET",this._url,!0),n.responseType=this._responseType,this._timeout&&(n.timeout=this._timeout),n.withCredentials=this._withCredentials,n.onload=this._onLoad.bind(this),n.onreadystatechange=this._onReadyStatechange.bind(this),n.onerror=function(e){t._running=!1;var n,r,i,a=new ed(t._url,t._request,null==e||null==(n=e.currentTarget)?void 0:n.response,"xhr.onerror.status:"+(null==e||null==(r=e.currentTarget)?void 0:r.status)+",statusText,"+(null==e||null==(i=e.currentTarget)?void 0:i.statusText));a.options={index:t._index,range:t._range,vid:t._vid,priOptions:t._priOptions},t._loadCompleteReject(a)},n.ontimeout=function(e){t.cancel();var n=new ed(t._url,t._request,{status:408},"timeout");t._onTimeout&&(n.isTimeout=!0,t._onTimeout(n,{index:t._index,range:t._range,vid:t._vid,priOptions:t._priOptions})),n.options={index:t._index,range:t._range,vid:t._vid,priOptions:t._priOptions},t._loadCompleteReject(n)};var r=this._headers||{},i=ev(e);i&&(r.Range=i),r&&Object.keys(r).forEach(function(e){n.setRequestHeader(e,r[e])}),this._logger.debug("[xhr.send->] tast,",this._range,",load sub range, ",e),n.send(this._body)}catch(t){t.options={index:this._index,range:e,vid:this._vid,priOptions:this._priOptions},this._loadCompleteReject(t)}}},{key:"_onReadyStatechange",value:function(e){2===e.target.readyState&&this._firstRtt<0&&(this._firstRtt=Date.now())}},{key:"_onLoad",value:function(e){var t=e.target.status;if(t<200||t>299){var n=new ed(this._url,null,D(D({},e.target.response),{},{status:t}),"bad response,status:"+t);return n.options={index:this._index,range:this._range,vid:this._vid,priOptions:this._priOptions},this._loadCompleteReject(n)}var r=null,i=!1,a=(null==(s=this._range)?void 0:s.length)>0?this._range[0]:0;if(this._responseType===eh.ARRAY_BUFFER){var s,o,l,u=new Uint8Array(e.target.response);if(o=a+this._receivedLength,u&&u.byteLength>0){this._receivedLength+=u.byteLength;var c=Date.now()-this._startTime,f=eb(this._receivedLength,c);this.emit(ew.REAL_TIME_SPEED,{speed:f,len:this._receivedLength,time:c,vid:this._vid,index:this._index,range:[o,a+this._receivedLength],priOptions:this._priOptions})}r=u,i=!((null==(l=this._range)?void 0:l.length)>1)||!this._range[1]||!(this._receivedLength<this._range[1]-this._range[0]),this._logger.debug("[xhr load done->], tast :",this._range,", start",o,"end ",a+this._receivedLength,",dataLen,",u?u.byteLength:0,",receivedLength",this._receivedLength,",index,",this._index,", done,",i)}else i=!0,r=e.target.response;var h={ok:t>=200&&t<300,status:t,statusText:this._xhr.statusText,url:this._xhr.responseURL,headers:this._getHeaders(this._xhr),body:this._xhr.response};this._transformResponse&&(h=this._transformResponse(h,this._url)||h),this._onProgress&&this._onProgress(r,i,{index:this._index,vid:this._vid,range:[o,a+this._receivedLength],startTime:this._startTime,endTime:Date.now(),priOptions:this._priOptions},h),i?(this._runing=!1,this._loadCompleteResolve&&this._loadCompleteResolve(ey(this._onProgress?null:r,i,h,h.headers["content-length"],h.headers.age,this._startTime,this._firstRtt,this._index,this._range,this._vid,this._priOptions))):this._startLoad()}},{key:"cancel",value:function(){if(!this._aborted&&(this._aborted=!0,this._runing=!1,K(N(n.prototype),"removeAllListeners",this).call(this),this._onCancel&&this._onCancel({index:this._index,range:this._range,vid:this._vid,priOptions:this._priOptions}),this._xhr))return this._xhr.abort()}},{key:"receiveLen",get:function(){return this._receivedLength}},{key:"running",get:function(){return this._running},set:function(e){this._running=e}},{key:"_getHeaders",value:function(e){var t,n=e.getAllResponseHeaders().trim().split("\r\n"),r={},i=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return $(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return $(e,void 0)}}(e))){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,o=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){o=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(o)throw a}}}}(n);try{for(i.s();!(t=i.n()).done;){var a=t.value.split(": ");r[a[0].toLowerCase()]=a.slice(1).join(": ")}}catch(e){i.e(e)}finally{i.f()}return r}}],[{key:"isSupported",value:function(){return"undefined"!=typeof XMLHttpRequest}}]),n}(d(p()).default),eE=["retry","retryDelay","onRetryError","transformError"],eS=function(){var e;function t(e,n){M(this,t),this.promise=ei(),this.alive=!!n.onProgress,n.logger||(n.logger=new en("Loader")),this._loaderType=e,this._loader=e===ef.FETCH&&"undefined"!=typeof fetch?new ek:new ex,this._config=n,this._retryCount=0,this._retryTimer=null,this._canceled=!1,this._retryCheckFunc=n.retryCheckFunc,this._logger=n.logger}return B(t,[{key:"exec",value:function(){var e,t=this,n=this._config,r=n.retry,i=n.retryDelay,a=n.onRetryError,s=n.transformError,o=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(n,eE),l=(e=U(R().mark(function e(){var n,u,c;return R().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t._loader.load(o);case 3:n=e.sent,t.promise.resolve(n),e.next=27;break;case 7:if(e.prev=7,e.t0=e.catch(0),t._loader.running=!1,t._logger.debug("[task request catch err]",e.t0),!t._canceled){e.next=13;break}return e.abrupt("return");case 13:if(e.t0.loaderType=t._loaderType,e.t0.retryCount=t._retryCount,u=e.t0,s&&(u=s(u)||u),a&&t._retryCount>0&&a(u,t._retryCount,{index:o.index,vid:o.vid,range:o.range,priOptions:o.priOptions}),t._retryCount++,c=!0,t._retryCheckFunc&&(c=t._retryCheckFunc(e.t0)),!(c&&t._retryCount<=r)){e.next=26;break}return clearTimeout(t._retryTimer),t._logger.debug("[task request setTimeout],retry",t._retryCount,",retry range,",o.range),t._retryTimer=setTimeout(l,i),e.abrupt("return");case 26:t.promise.reject(u);case 27:case"end":return e.stop()}},e,null,[[0,7]])})),function(){return e.apply(this,arguments)});return l(),this.promise}},{key:"cancel",value:(e=U(R().mark(function e(){return R().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return clearTimeout(this._retryTimer),this._canceled=!0,this._loader.running=!1,e.abrupt("return",this._loader.cancel());case 4:case"end":return e.stop()}},e,this)})),function(){return e.apply(this,arguments)})},{key:"running",get:function(){return this._loader&&this._loader.running}},{key:"loader",get:function(){return this._loader}}]),t}(),eT=function(e){j(r,e);var t,n=W(r);function r(e){var t;return M(this,r),F(q(t=n.call(this,e)),"type",ef.FETCH),F(q(t),"_queue",[]),F(q(t),"_alive",[]),F(q(t),"_currentTask",null),F(q(t),"_finnalUrl",""),F(q(t),"_config",void 0),t._config=D({loaderType:ef.FETCH,retry:0,retryDelay:0,timeout:0,request:null,onTimeout:void 0,onProgress:void 0,onRetryError:void 0,transformRequest:void 0,transformResponse:void 0,transformError:void 0,responseType:eh.TEXT,range:void 0,url:"",params:void 0,method:"GET",headers:{},body:void 0,mode:void 0,credentials:void 0,cache:void 0,redirect:void 0,referrer:void 0,referrerPolicy:void 0,integrity:void 0,onProcessMinLen:0},e),t._config.loaderType!==ef.XHR&&ek.isSupported()||(t.type=ef.XHR),t.log=e.logger,t}return B(r,[{key:"isFetch",value:function(){return this.type===ef.FETCH}},{key:"load",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};"string"!=typeof e&&e?n=e:n.url=e||n.url||this._config.url,(n=Object.assign({},this._config,n)).params&&(n.params=Object.assign({},n.params)),n.headers&&e_(n.headers)&&(n.headers=Object.assign({},n.headers)),n.body&&e_(n.body)&&(n.body=Object.assign({},n.body)),n.transformRequest&&(n=n.transformRequest(n)||n),n.logger=this.log;var r=new eS(this.type,n);return r.loader.on(ew.REAL_TIME_SPEED,function(e){t.emit(ew.REAL_TIME_SPEED,e)}),this._queue.push(r),1!==this._queue.length||this._currentTask&&this._currentTask.running||this._processTask(),r.promise}},{key:"cancel",value:(t=U(R().mark(function e(){var t;return R().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=this._queue.map(function(e){return e.cancel()}).concat(this._alive.map(function(e){return e.cancel()})),this._currentTask&&t.push(this._currentTask.cancel()),this._queue=[],this._alive=[],e.next=6,Promise.all(t);case 6:return e.next=8,function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return new Promise(function(t){return setTimeout(t,e)})}();case 8:case"end":return e.stop()}},e,this)})),function(){return t.apply(this,arguments)})},{key:"_processTask",value:function(){var e=this;if(this._currentTask=this._queue.shift(),this._currentTask){this._currentTask.alive&&this._alive.push(this._currentTask);var t=this._currentTask.exec().catch(function(e){});t&&"function"==typeof t.finally&&t.finally(function(){var t,n;null!=(t=e._currentTask)&&t.alive&&(null==(n=e._alive)?void 0:n.length)>0&&(e._alive=e._alive.filter(function(t){return t&&t!==e._currentTask})),e._processTask()})}}}],[{key:"isFetchSupport",value:function(){return ek.isSupported()}}]),r}(d(p()).default),eA=function(){function e(){M(this,e),F(this,"_prevCurrentTime",0)}return B(e,[{key:"do",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(e){var i=e.currentTime,a=0;if(this._prevCurrentTime===i){var s=Y.info(Y.get(e),i);if(!s.buffers.length)return;n&&s.nextStart||s.nextStart&&s.nextStart-i<t?a=s.nextStart+.1:s.end&&s.end-i>r&&!e.seeking&&(a=i+.1)}this._prevCurrentTime=i,a&&i!==a&&(e.currentTime=a)}}}]),e}(),eO=function(){function e(t){var n=this;M(this,e),F(this,"_seiSet",new Set),this.emitter=t,t.on(ew.SEI,function(e){e&&n._seiSet.add(e)})}return B(e,[{key:"throw",value:function(e,t){var n=this;if(null!=e&&this._seiSet.size){var r=e-.2,i=e+.2,a=[];this._seiSet.forEach(function(e){e.time>=r&&e.time<=i&&a.push(e)}),a.forEach(function(e){n._seiSet.delete(e),n.emitter.emit(ew.SEI_IN_TIME,e)}),t&&this._seiSet.forEach(function(t){t.time<e-5&&n._seiSet.delete(t)})}}},{key:"reset",value:function(){this._seiSet.clear()}}]),e}(),eC=function(){function e(t){M(this,e),F(this,"_chunkSpeed",0),F(this,"_chunkCache",[]),F(this,"_speeds",[]),F(this,"_totalSize",0),F(this,"_totalCost",0),this._opts=t||{}}return B(e,[{key:"addRecord",value:function(e,t){e&&t&&(this._speeds.push(8e3*e/t),this._speeds=this._speeds.slice(-3))}},{key:"addChunkRecord",value:function(e,t){if(e&&t&&!(e<((null==(n=this._opts)?void 0:n.skipChunkSize)||1e3))){this._totalSize+=e,this._totalCost+=t,this._chunkSpeed=8e3*e/t,this._chunkCache.push({size:e,duration:t,timestamp:performance.now()});var n,r,i=(null==(r=this._opts)?void 0:r.chunkCountForSpeed)||50;this._chunkCache.length>i&&(this._chunkCache=this._chunkCache.slice(-i))}}},{key:"getAvgSpeed",value:function(){if(!this._chunkCache.length&&!this._speeds.length)return 0;if(this._speeds.length)return this._speeds.reduce(function(e,t){return e+t})/this._speeds.length;var e,t=this._chunkCache[this._chunkCache.length-1],n=performance.now()-t.timestamp;return n>((null==(e=this._opts)?void 0:e.longtimeNoReceived)||3e3)&&this._chunkCache.push({size:0,duration:n,timestamp:performance.now()}),8e3*this._chunkCache.reduce(function(e,t){return e+t.size},0)/this._chunkCache.reduce(function(e,t){return e+t.duration},0)}},{key:"getLatestSpeed",value:function(){return this._chunkCache.length||this._speeds.length?this._speeds.length?this._speeds[this._speeds.length-1]:this._chunkSpeed:0}},{key:"getTotalSize",value:function(){return this._totalSize}},{key:"getTotalCost",value:function(){return this._totalCost}},{key:"reset",value:function(){this._chunkCache=[],this._speeds=[],this._totalSize=0,this._totalCost=0}}]),e}();d(p());var eD=function(){function e(t){M(this,e),F(this,"encodeType",""),F(this,"audioCodec",""),F(this,"videoCodec",""),F(this,"domain",""),F(this,"fps",0),F(this,"bitrate",0),F(this,"width",0),F(this,"height",0),F(this,"samplerate",0),F(this,"channelCount",0),F(this,"gop",0),F(this,"_bitsAccumulateSize",0),F(this,"_bitsAccumulateDuration",0),F(this,"_startGopId",-1),this._timescale=t}return B(e,[{key:"getStats",value:function(){return{encodeType:this.encodeType,audioCodec:this.audioCodec,videoCodec:this.videoCodec,domain:this.domain,fps:this.fps,bitrate:this.bitrate,width:this.width,height:this.height,samplerate:this.samplerate,channelCount:this.channelCount,gop:this.gop}}},{key:"setEncodeType",value:function(e){this.encodeType=e}},{key:"setFpsFromScriptData",value:function(e){var t,n=e.data,r=null==n||null==(t=n.onMetaData)?void 0:t.framerate;r&&r>0&&r<100&&(this.fps=r)}},{key:"setVideoMeta",value:function(e){if(this.width=e.width,this.height=e.height,this.videoCodec=e.codec,this.encodeType=e.codecType,e.fpsNum&&e.fpsDen){var t=e.fpsNum/e.fpsDen;t>0&&t<100&&(this.fps=t)}}},{key:"setAudioMeta",value:function(e){this.audioCodec=e.codec,this.samplerate=e.sampleRate,this.channelCount=e.channelCount}},{key:"setDomain",value:function(e){this.domain=e.split("/").slice(2,3)[0]}},{key:"updateBitrate",value:function(e){var t=this;if((!this.fps||this.fps>=100)&&e.length){var n=e.reduce(function(e,t){return e+t.duration},0)/e.length;this.fps=Math.round(this._timescale/n)}e.forEach(function(e){-1===t._startGopId&&(t._startGopId=e.gopId),e.gopId===t._startGopId&&t.gop++,t._bitsAccumulateDuration+=e.duration/(t._timescale/1e3),t._bitsAccumulateSize+=e.units.reduce(function(e,t){return e+t.length},0),t._bitsAccumulateDuration>=1e3&&(t.bitrate=8*t._bitsAccumulateSize,t._bitsAccumulateDuration=0,t._bitsAccumulateSize=0)})}}]),e}(),eR=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;M(this,e),F(this,"_core",null),F(this,"_samples",[]),this._core=t,this._timescale=n,this._stats=new eD(n),this._bindEvents()}return B(e,[{key:"getStats",value:function(){var e,t,n,r,i,a,s,o,l,u,c,f=(null==(e=this._core)?void 0:e.media)||{},h=f.currentTime,d=f.decodeFps;return D(D({},this._stats.getStats()),{},{downloadSpeed:(null==(t=this._core)||null==(n=t.speedInfo)?void 0:n.call(t).speed)||0,avgSpeed:(null==(r=this._core)||null==(i=r.speedInfo)?void 0:i.call(r).avgSpeed)||0,totalReceivedByte:(null==(a=this._core)||null==(s=a.speedInfo)?void 0:s.call(a).totalSize)||0,totalReceivedCost:(null==(o=this._core)||null==(l=o.speedInfo)?void 0:l.call(o).totalCost)||0,currentTime:void 0===h?0:h,bufferEnd:(null==(u=this._core)||null==(c=u.bufferInfo())?void 0:c.remaining)||0,decodeFps:void 0===d?0:d})}},{key:"_bindEvents",value:function(){var e=this;this._core.on(ew.DEMUXED_TRACK,function(t){var n=t.videoTrack;return e._stats.updateBitrate(n.samples)}),this._core.on(ew.FLV_SCRIPT_DATA,function(t){e._stats.setFpsFromScriptData(t)}),this._core.on(ew.METADATA_PARSED,function(t){"video"===t.type?e._stats.setVideoMeta(t.track):e._stats.setAudioMeta(t.track)}),this._core.on(ew.TTFB,function(t){e._stats.setDomain(t.responseUrl)})}},{key:"reset",value:function(){this._samples=[],this._stats=new eD(this._timescale)}}]),e}(),eL=d(p());function eP(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function eU(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,eH(r.key),r)}}function eM(e,t,n){return t&&eU(e.prototype,t),n&&eU(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function eI(e,t,n){return(t=eH(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eB(e,t){if("function"!=typeof t&&null!==t)throw 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&&ej(e,t)}function eF(e){return(eF=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ej(e,t){return(ej=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function eN(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct||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}}();return function(){var n,r=eF(e);n=t?Reflect.construct(r,arguments,eF(this).constructor):r.apply(this,arguments);if(n&&("object"==typeof n||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");if(void 0===this)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return this}}function ez(e){return function(e){if(Array.isArray(e))return eG(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||eV(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function eV(e,t){if(e){if("string"==typeof e)return eG(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return eG(e,t)}}function eG(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function eH(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var eq="video",eW={AVC:"avc",HEVC:"hevc"},eK={AAC:"aac",G711PCMA:"g7110a",G711PCMU:"g7110m",OPUS:"opus",MP3:"mp3"},e$={LARGE_AV_SHIFT:"LARGE_AV_SHIFT",LARGE_VIDEO_GAP:"LARGE_VIDEO_GAP",LARGE_VIDEO_GAP_BETWEEN_CHUNK:"LARGE_VIDEO_GAP_BETWEEN_CHUNK",LARGE_AUDIO_GAP:"LARGE_AUDIO_GAP",AUDIO_FILLED:"AUDIO_FILLED",AUDIO_DROPPED:"AUDIO_DROPPED"},eZ=function(){function e(){eP(this,e),eI(this,"id",1),eI(this,"type",eq),eI(this,"codecType",eW.AVC),eI(this,"pid",-1),eI(this,"hvcC",void 0),eI(this,"codec",""),eI(this,"timescale",0),eI(this,"formatTimescale",0),eI(this,"sequenceNumber",0),eI(this,"baseMediaDecodeTime",0),eI(this,"baseDts",0),eI(this,"duration",0),eI(this,"warnings",[]),eI(this,"samples",[]),eI(this,"pps",[]),eI(this,"sps",[]),eI(this,"vps",[]),eI(this,"fpsNum",0),eI(this,"fpsDen",0),eI(this,"sarRatio",[]),eI(this,"width",0),eI(this,"height",0),eI(this,"nalUnitSize",4),eI(this,"present",!1),eI(this,"isVideoEncryption",!1),eI(this,"isAudioEncryption",!1),eI(this,"isVideo",!0),eI(this,"lastKeyFrameDts",0),eI(this,"kid",null),eI(this,"pssh",null),eI(this,"ext",void 0)}return eM(e,[{key:"reset",value:function(){this.sequenceNumber=this.width=this.height=this.fpsDen=this.fpsNum=this.duration=this.baseMediaDecodeTime=this.timescale=0,this.codec="",this.present=!1,this.pid=-1,this.pps=[],this.sps=[],this.vps=[],this.sarRatio=[],this.samples=[],this.warnings=[],this.hvcC=null}},{key:"firstDts",get:function(){return this.samples.length?this.samples[0].dts:null}},{key:"firstPts",get:function(){return this.samples.length?this.samples[0].pts:null}},{key:"samplesDuration",get:function(){if(this.samples.length>0){var e=this.samples[0],t=this.samples[this.samples.length-1];return t.dts-e.dts+t.duration}return 0}},{key:"exist",value:function(){return!!/av01/.test(this.codec)||!!(this.pps.length&&this.sps.length&&this.codec)}},{key:"hasSample",value:function(){return!!this.samples.length}},{key:"isEncryption",get:function(){return this.isVideoEncryption}}]),e}(),eY=function(){function e(){eP(this,e),eI(this,"id",2),eI(this,"type","audio"),eI(this,"codecType",eK.AAC),eI(this,"pid",-1),eI(this,"codec",""),eI(this,"container",""),eI(this,"sequenceNumber",0),eI(this,"sampleDuration",0),eI(this,"timescale",0),eI(this,"formatTimescale",0),eI(this,"baseMediaDecodeTime",0),eI(this,"duration",0),eI(this,"warnings",[]),eI(this,"samples",[]),eI(this,"baseDts",0),eI(this,"sampleSize",16),eI(this,"sampleRate",0),eI(this,"channelCount",0),eI(this,"objectType",0),eI(this,"sampleRateIndex",0),eI(this,"config",[]),eI(this,"present",!1),eI(this,"isVideoEncryption",!1),eI(this,"isAudioEncryption",!1),eI(this,"kid",null),eI(this,"ext",void 0)}return eM(e,[{key:"reset",value:function(){this.sequenceNumber=0,this.timescale=0,this.sampleDuration=0,this.sampleRate=0,this.channelCount=0,this.baseMediaDecodeTime=0,this.present=!1,this.pid=-1,this.codec="",this.samples=[],this.config=[],this.warnings=[]}},{key:"exist",value:function(){return!!(this.sampleRate&&this.channelCount&&(this.codec||this.container)&&(this.codecType===eK.AAC||this.codecType===eK.G711PCMA||this.codecType===eK.G711PCMU||this.codecType===eK.OPUS||this.codecType===eK.MP3))}},{key:"hasSample",value:function(){return!!this.samples.length}},{key:"isEncryption",get:function(){return this.isAudioEncryption}},{key:"firstDts",get:function(){return this.samples.length?this.samples[0].dts:null}},{key:"firstPts",get:function(){return this.samples.length?this.samples[0].pts:null}},{key:"samplesDuration",get:function(){if(this.samples.length>0){var e=this.samples[0],t=this.samples[this.samples.length-1];return t.dts-e.dts+t.duration}return 0}}]),e}(),eX=function(){function e(t,n,r){eP(this,e),eI(this,"flag",{}),eI(this,"keyframe",!1),eI(this,"gopId",0),eI(this,"duration",0),eI(this,"size",0),eI(this,"units",[]),eI(this,"chromaFormat",420),this.originPts=this.pts=t,this.originDts=this.dts=n,r&&(this.units=r)}return eM(e,[{key:"cts",get:function(){return this.pts-this.dts}},{key:"setToKeyframe",value:function(){this.keyframe=!0,this.flag.dependsOn=2,this.flag.isNonSyncSample=0}}]),e}(),eJ=eM(function e(t,n,r,i){eP(this,e),eI(this,"duration",1024),eI(this,"flag",{dependsOn:2,isNonSyncSample:0}),eI(this,"keyframe",!0),this.originPts=this.pts=this.dts=t,this.data=n,this.size=n.byteLength,this.sampleOffset=i,r&&(this.duration=r)}),eQ=eM(function e(t,n){eP(this,e),eI(this,"time",0),this.data=t,this.originPts=this.pts=n}),e0=function(e){eB(n,e);var t=eN(n);function n(){return eP(this,n),t.apply(this,arguments)}return eM(n)}(eQ),e1=function(e){eB(n,e);var t=eN(n);function n(){return eP(this,n),t.apply(this,arguments)}return eM(n)}(eQ),e2=function(){function e(){eP(this,e),eI(this,"id",3),eI(this,"type","metadata"),eI(this,"timescale",0),eI(this,"flvScriptSamples",[]),eI(this,"seiSamples",[])}return eM(e,[{key:"exist",value:function(){return!!((this.flvScriptSamples.length||this.seiSamples.length)&&this.timescale)}},{key:"reset",value:function(){this.timescale=0,this.flvScriptSamples=[],this.seiSamples=[]}},{key:"hasSample",value:function(){return!!(this.flvScriptSamples.length||this.seiSamples.length)}}]),e}(),e5=function(){function e(t){eP(this,e),this.name=t||"",this._prefix="[".concat(this.name,"]")}return eM(e,[{key:"warn",value:function(){var t;if(!e.disabled){for(var n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];(t=console).warn.apply(t,[this._prefix].concat(r))}}}],[{key:"enable",value:function(){e.disabled=!1}},{key:"disable",value:function(){e.disabled=!0}}]),e}();eI(e5,"disabled",!0);var e6="undefined"!=typeof window,e3=e6&&navigator.userAgent.toLocaleLowerCase(),e8=e6&&/^((?!chrome|android).)*safari/.test(e3),e4=e6&&e3.includes("firefox"),e9=e6&&e3.includes("android"),e7=function(){function e(){eP(this,e)}return eM(e,null,[{key:"getRateIndexByRate",value:function(t){return e.FREQ.indexOf(t)}},{key:"parseADTS",value:function(t,n){for(var r,i,a=t.length,s=0;s+2<a&&(255!==t[s]||(246&t[s+1])!=240);)s++;if(!(s>=a)){var o=s,l=[],u=(60&t[s+2])>>>2,c=e.FREQ[u];if(!c)throw Error("Invalid sampling index: ".concat(u));for(var f=((192&t[s+2])>>>6)+1,h=(1&t[s+2])<<2|(192&t[s+3])>>>6,d=e._getConfig(u,h,f),p=d.config,_=d.codec,m=0,g=e.getFrameDuration(c);s+7<a;){if(255!==t[s]||(246&t[s+1])!=240){s++;continue}if(!(i=(3&t[s+3])<<11|t[s+4]<<3|(224&t[s+5])>>5)||a-s<i)break;r=(1&~t[s+1])*2,l.push({pts:n+m*g,data:t.subarray(s+7+r,s+i)}),m++,s+=i}return{skip:o,remaining:s>=a?void 0:t.subarray(s),frames:l,samplingFrequencyIndex:u,sampleRate:c,objectType:f,channelCount:h,codec:_,config:p,originCodec:"mp4a.40.".concat(f)}}}},{key:"parseAudioSpecificConfig",value:function(t){if(t.length){var n=t[0]>>>3,r=(7&t[0])<<1|t[1]>>>7,i=(120&t[1])>>>3,a=e.FREQ[r];if(a){var s=e._getConfig(r,i,n);return{samplingFrequencyIndex:r,sampleRate:a,objectType:n,channelCount:i,config:s.config,codec:s.codec,originCodec:"mp4a.40.".concat(n)}}}}},{key:"getFrameDuration",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:9e4;return 1024*t/e}},{key:"_getConfig",value:function(e,t,n){var r,i,a=[];return e4?e>=6?(r=5,i=e-3):(r=2,i=e):e9?(r=2,i=e):(r=5,i=e,e>=6?i=e-3:1===t&&(r=2,i=e)),a[0]=r<<3,a[0]|=(14&e)>>1,a[1]=(1&e)<<7,a[1]|=t<<3,5===r&&(a[1]|=(14&i)>>1,a[2]=(1&i)<<7,a[2]|=8,a[3]=0),{config:a,codec:"mp4a.40.".concat(r)}}},{key:"getSilentFrame",value:function(e,t){if("mp4a.40.2"===e){if(1===t)return new Uint8Array([0,200,0,128,35,128]);if(2===t)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(3===t)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(4===t)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(5===t)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(6===t)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224])}else{if(1===t)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(2===t||3===t)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94])}}}]),e}();eI(e7,"FREQ",[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350]);var te=function(){function e(){eP(this,e)}return eM(e,null,[{key:"getFrameDuration",value:function(e){return 20}},{key:"parseHeaderPackets",value:function(e){if(e.length){for(var t=new DataView(e.buffer,e.byteOffset,e.byteLength),n="",r=0;r<8;r++)n+=String.fromCodePoint(e[r]);if("OpusHead"!==n)throw Error("Invalid Opus MagicSignature");var i=e[9];console.log("Pre-skip",e[10],e[11]);var a=t.getUint32(12,!0),s=t.getInt16(16,!0);if(a)return{outputGain:s,sampleRate:a,channelCount:i,config:new Uint8Array(e.buffer,e.byteOffset+8,e.byteLength-8),codec:"opus",originCodec:"opus"}}}}]),e}(),tt=function(){function e(t,n,r){eP(this,e),this.videoTrack=t,this.audioTrack=n,this.metadataTrack=r,this._baseDts=-1,this._baseDtsInited=!1,this._audioNextPts=void 0,this._videoNextDts=void 0,this._audioTimestampBreak=0,this._videoTimestampBreak=0,this._lastVideoDuration=0,this._keyFrameInNextChunk=!1,this._lastAudioExceptionGapDot=-1/0,this._lastAudioExceptionOverlapDot=-1/0,this._lastAudioExceptionLargeGapDot=-1/0,this._lastVideoExceptionLargeGapDot=-1/0,this._lastVideoExceptionChunkFirstDtsDot=-1/0}return eM(e,[{key:"fix",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=!(arguments.length>2)||void 0===arguments[2]||arguments[2];t=Math.round(1e3*t);var i=this.videoTrack,a=this.audioTrack;if((n||!r)&&(this._videoLastSample=null,this._audioNextPts=void 0,this._videoNextDts=void 0,this._audioTimestampBreak=0,this._videoTimestampBreak=0,this._lastAudioExceptionGapDot=-1/0,this._lastAudioExceptionOverlapDot=-1/0,this._lastAudioExceptionLargeGapDot=-1/0,this._lastVideoExceptionLargeGapDot=-1/0,this._lastVideoExceptionChunkFirstDtsDot=-1/0),n&&!r&&(this._baseDtsInited=!1),this._baseDtsInited||this._calculateBaseDts(a,i),!r&&t&&(this._audioNextPts=this._videoNextDts=t),this._baseDtsInited&&(this._videoTimestampBreak||!this.videoTrack.exist())&&(this._audioTimestampBreak||!this.audioTrack.exist())&&this._resetBaseDtsWhenStreamBreaked(),this._fixAudio(a),this._keyFrameInNextChunk=!1,this._fixVideo(i),this.metadataTrack.exist()){var s=this.metadataTrack.timescale;this.metadataTrack.seiSamples.forEach(function(t){t.pts=t.originPts-e._baseDts,t.time=Math.max(0,t.pts)/s}),this.metadataTrack.flvScriptSamples.forEach(function(t){t.pts=t.originPts-e._baseDts,t.time=Math.max(0,t.pts)/s})}i.samples.length&&(i.baseMediaDecodeTime=i.samples[0].dts),a.samples.length&&(a.baseMediaDecodeTime=a.samples[0].pts*a.timescale/1e3)}},{key:"_fixVideo",value:function(e){var t,n,r=this,i=e.samples;if(i.length){if(i.forEach(function(e){e.dts-=r._baseDts,e.pts-=r._baseDts,e.keyframe&&(r._keyFrameInNextChunk=!0)}),e.fpsNum&&e.fpsDen)t=e.timescale*(e.fpsDen/e.fpsNum);else if(e.length>1){var a=e.samples[0];t=Math.floor((e.samples[i.length-1].dts-a.dts)/(i.length-1))}else t=this._lastVideoDuration||40;var s=i.pop();if(this._videoLastSample&&i.unshift(this._videoLastSample),this._videoLastSample=s,i.length){if(void 0===this._videoNextDts){var o=i[0];this._videoNextDts=o.dts}var l=i.length,u=0,c=i[0],f=this._videoNextDts-c.dts;Math.abs(f)>200&&(Math.abs(c.dts-this._lastVideoExceptionChunkFirstDtsDot)>5e3&&(this._lastVideoExceptionChunkFirstDtsDot=c.dts,e.warnings.push({type:e$.LARGE_VIDEO_GAP_BETWEEN_CHUNK,nextDts:this._videoNextDts,firstSampleDts:c.dts,nextSampleDts:null==(n=i[1])?void 0:n.dts,sampleDuration:f})),this._videoTimestampBreak>=5?(this._videoNextDts=c.dts,this._videoTimestampBreak=0):(c.dts+=f,c.pts+=f,this.audioTrack.exist()||(this._videoTimestampBreak=1)));for(var h=0;h<l;h++){var d=i[h].dts,p=i[h+1];((u=h<l-1?p.dts-d:s?s.dts-d:t)>1e3||u<0)&&(this._videoTimestampBreak++,Math.abs(d-this._lastVideoExceptionLargeGapDot)>5e3&&(this._lastVideoExceptionLargeGapDot=d,e.warnings.push({type:e$.LARGE_VIDEO_GAP,time:d/e.timescale,dts:d,originDts:i[h].originDts,nextDts:this._videoNextDts,sampleDuration:u,refSampleDuration:t})),u=t),i[h].duration=u,this._videoNextDts+=u,this._lastVideoDuration=u}}}}},{key:"_fixAudio",value:function(e){var t=this,n=e.samples;n.length&&(n.forEach(function(e){e.dts=e.pts-=t._baseDts}),this._doFixAudioInternal(e,n,1e3))}},{key:"_calculateBaseDts",value:function(e,t){var n=e.samples,r=t.samples;if(!n.length&&!r.length)return!1;var i=1/0,a=1/0;n.length&&(e.baseDts=i=n[0].pts),r.length&&(t.baseDts=a=r[0].dts),this._baseDts=Math.min(i,a);var s=a-i;return Number.isFinite(s)&&Math.abs(s)>500&&t.warnings.push({type:e$.LARGE_AV_SHIFT,videoBaseDts:a,audioBasePts:i,baseDts:this._baseDts,delta:s}),this._baseDtsInited=!0,!0}},{key:"_resetBaseDtsWhenStreamBreaked",value:function(){this._calculateBaseDts(this.audioTrack,this.videoTrack)&&(this.audioTrack.exist()?this.videoTrack.exist()?this._baseDts-=Math.min(this._audioNextPts,this._videoNextDts):this._baseDts-=this._audioNextPts:this._baseDts-=this._videoNextDts,this._videoTimestampBreak=0,this._audioTimestampBreak=0)}},{key:"_doFixAudioInternal",value:function(e,t,n){if(!e.sampleDuration)switch(e.codecType){case eK.AAC:e.sampleDuration=e7.getFrameDuration(e.timescale,n);break;case eK.OPUS:e.sampleDuration=te.getFrameDuration(e.samples,n);break;case eK.G711PCMA:case eK.G711PCMU:e.sampleDuration=this._getG711Duration(e);break;default:console.error("can't fix audio codecType:",e.codecType)}var r=e.sampleDuration,i=e.codecType===eK.OPUS?20:e.codecType===eK.AAC?1024:r*e.timescale/1e3;if(void 0===this._audioNextPts){var a=t[0];this._audioNextPts=a.pts}for(var s=0;s<t.length;s++){var o=this._audioNextPts,l=t[s],u=l.pts-o;if(0===s&&this._audioTimestampBreak>=5&&this._keyFrameInNextChunk&&(o=this._audioNextPts=l.dts,u=0,this._audioTimestampBreak=0),!this._audioTimestampBreak&&u>=3*r&&u<=1e3&&!e8){var c=this._getSilentFrame(e)||t[0].data.subarray(),f=Math.floor(u/r);Math.abs(l.pts-this._lastAudioExceptionGapDot)>5e3&&(this._lastAudioExceptionGapDot=l.pts,e.warnings.push({type:e$.AUDIO_FILLED,pts:l.pts,originPts:l.originPts,count:f,nextPts:o,refSampleDuration:r}));for(var h=0;h<f;h++){var d=new eJ(Math.floor(this._audioNextPts+r)-Math.floor(this._audioNextPts),c,i);d.originPts=Math.floor(this._baseDts+o),t.splice(s,0,d),this._audioNextPts+=r,s++}s--}else if(u<=-3*r&&u>=-1e3)Math.abs(l.pts-this._lastAudioExceptionOverlapDot)>5e3&&(this._lastAudioExceptionOverlapDot=l.pts,e.warnings.push({type:e$.AUDIO_DROPPED,pts:l.pts,originPts:l.originPts,nextPts:o,refSampleDuration:r})),t.splice(s,1),s--;else{if(Math.abs(u)>1e3&&(this._audioTimestampBreak++,Math.abs(l.pts-this._lastAudioExceptionLargeGapDot)>5e3&&(this._lastAudioExceptionLargeGapDot=l.pts,e.warnings.push({type:e$.LARGE_AUDIO_GAP,time:l.pts/1e3,pts:l.pts,originPts:l.originPts,nextPts:o,sampleDuration:u,refSampleDuration:r}))),e.codecType===eK.OPUS){var p=t[t.length-1];p&&(p.duration=l.pts-p.pts)}else l.dts=l.pts=o,l.duration=i;this._audioNextPts+=r}}}},{key:"_getG711Duration",value:function(e){var t=e.sampleSize,n=e.channelCount,r=e.sampleRate,i=e.samples[0];if(i)return 2*i.data.byteLength/n/(t/8)/r*1e3}},{key:"_getSilentFrame",value:function(e){return e.codecType===eK.AAC?e7.getSilentFrame(e.codec,e.channelCount):new Uint8Array(8*e.sampleDuration*e.channelCount)}}]),e}();function tn(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=new Uint8Array((t=t.filter(Boolean)).reduce(function(e,t){return e+t.byteLength},0)),i=0;return t.forEach(function(e){r.set(e,i),i+=e.byteLength}),r}function tr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return(e[t]<<24>>>0)+(e[t+1]<<16)+(e[t+2]<<8)+(e[t+3]||0)}function ti(e){if(!Array.isArray(e)){for(var t=[],n="",r=0;r<e.length;r++)r%2&&(t.push(parseInt(n=e[r-1]+e[r],16)),n="");return t}return e.map(function(e){return parseInt(e,16)})}var ta=function(){function e(){eP(this,e)}return eM(e,null,[{key:"parseAnnexB",value:function(e){var t=e.byteLength-1,n=0;do{if(0===e[t])n++;else break;t--}while(t>0);n>=3&&(e=e.subarray(0,t+1));for(var r=e.length,i=2,a=0;null!==e[i]&&void 0!==e[i]&&1!==e[i];)i++;if((a=++i+2)>=r)return[];for(var s=[];a<r;)switch(e[a]){case 0:if(0!==e[a-1]){a+=2;break}if(0!==e[a-2]){a++;break}if(a<r-1&&1!==e[a+1]){a++;break}i!==a-2&&s.push(e.subarray(i,a-2));do a++;while(1!==e[a]&&a<r);a=(i=a+1)+2;break;case 1:if(0!==e[a-1]||0!==e[a-2]){a+=3;break}i!==a-2&&s.push(e.subarray(i,a-2)),a=(i=a+1)+2;break;default:a+=3}return i<r&&s.push(e.subarray(i)),s}},{key:"parseAvcC",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4;if(!(e.length<4)){for(var r=e.length,i=[],a=0;a+n<r;)if(t=tr(e,a),3===n&&(t>>>=8),a+=n,t){if(a+t>r)break;i.push(e.subarray(a,a+t)),a+=t}return i}}},{key:"parseSEI",value:function(e,t){for(var n=e.length,r=t?2:1,i=0,a=0,s="";255===e[r];)i+=255,r++;for(i+=e[r++];255===e[r];)a+=255,r++;if(a+=e[r++],5===i&&n>r+16)for(var o=0;o<16;o++)s+=e[r].toString(16),r++;return{payload:e.subarray(r,r+a),type:i,size:a,uuid:s}}},{key:"removeEPB",value:function(e){for(var t=e.byteLength,n=[],r=1;r<t-2;)0===e[r]&&0===e[r+1]&&3===e[r+2]?(n.push(r+2),r+=2):r++;if(!n.length)return e;var i=t-n.length,a=new Uint8Array(i),s=0;for(r=0;r<i;s++,r++)s===n[0]&&(s++,n.shift()),a[r]=e[s];return a}}]),e}(),ts=function(){function e(t){if(eP(this,e),eI(this,"_bytesAvailable",void 0),eI(this,"_bitsAvailable",0),eI(this,"_word",0),!t)throw Error("ExpGolomb data params is required");this._data=t,this._bytesAvailable=t.byteLength,this._bytesAvailable&&this._loadWord()}return eM(e,[{key:"bitsAvailable",get:function(){return this._bitsAvailable}},{key:"_loadWord",value:function(){var e=this._data.byteLength-this._bytesAvailable,t=Math.min(4,this._bytesAvailable);if(0===t)throw Error("No bytes available");var n=new Uint8Array(4);n.set(this._data.subarray(e,e+t)),this._word=new DataView(n.buffer).getUint32(0),this._bitsAvailable=8*t,this._bytesAvailable-=t}},{key:"skipBits",value:function(e){if(this._bitsAvailable>e)this._word<<=e,this._bitsAvailable-=e;else{var t=Math.floor((e-=this._bitsAvailable)/8);e-=8*t,this._bytesAvailable-=t,this._loadWord(),this._word<<=e,this._bitsAvailable-=e}}},{key:"readBits",value:function(e){if(e>32)throw Error("Cannot read more than 32 bits");var t=Math.min(this._bitsAvailable,e),n=this._word>>>32-t;return(this._bitsAvailable-=t,this._bitsAvailable>0?this._word<<=t:this._bytesAvailable>0&&this._loadWord(),(t=e-t)>0&&this._bitsAvailable)?n<<t|this.readBits(t):n}},{key:"skipLZ",value:function(){var e;for(e=0;e<this._bitsAvailable;++e)if((this._word&0x80000000>>>e)!=0)return this._word<<=e,this._bitsAvailable-=e,e;return this._loadWord(),e+this.skipLZ()}},{key:"skipUEG",value:function(){this.skipBits(1+this.skipLZ())}},{key:"readUEG",value:function(){var e=this.skipLZ();return this.readBits(e+1)-1}},{key:"readEG",value:function(){var e=this.readUEG();return 1&e?1+e>>>1:-1*(e>>>1)}},{key:"readBool",value:function(){return 1===this.readBits(1)}},{key:"readUByte",value:function(){return this.readBits(8)}},{key:"skipScalingList",value:function(e){for(var t=8,n=8,r=0;r<e;r++)0!==n&&(n=(t+this.readEG()+256)%256),t=0===n?t:n}}]),e}(),to=function(){function e(){eP(this,e)}return eM(e,null,[{key:"parseAVCDecoderConfigurationRecord",value:function(t){if(!(t.length<7)){for(var n,r,i,a=(3&t[4])+1,s=[],o=[],l=6,u=31&t[5],c=0;c<u;c++)if(r=t[l]<<8|t[l+1],l+=2,r){var f=t.subarray(l,l+r);l+=r,s.push(f),n||(n=e.parseSPS(ta.removeEPB(f)))}var h=t[l];l++;for(var d=0;d<h;d++)i=t[l]<<8|t[l+1],l+=2,i&&(o.push(t.subarray(l,l+i)),l+=i);return{sps:n,spsArr:s,ppsArr:o,nalUnitSize:a}}}},{key:"parseSPS",value:function(e){var t,n,r,i,a,s=new ts(e);s.readUByte();var o=s.readUByte(),l=s.readUByte(),u=s.readUByte();s.skipUEG();var c=420;if(100===o||110===o||122===o||244===o||44===o||83===o||86===o||118===o||128===o||138===o||144===o){var f=s.readUEG();if(f<=3&&(c=[0,420,422,444][f]),3===f&&s.skipBits(1),s.skipUEG(),s.skipUEG(),s.skipBits(1),s.readBool())for(var h=3!==f?8:12,d=0;d<h;d++)s.readBool()&&(d<6?s.skipScalingList(16):s.skipScalingList(64))}s.skipUEG();var p=s.readUEG();if(0===p)s.readUEG();else if(1===p){s.skipBits(1),s.skipUEG(),s.skipUEG();for(var _=s.readUEG(),m=0;m<_;m++)s.skipUEG()}s.skipUEG(),s.skipBits(1);var g=s.readUEG(),y=s.readUEG(),b=s.readBits(1);0===b&&s.skipBits(1),s.skipBits(1);var w=0,k=0,x=0,E=0;if(s.readBool()&&(w=s.readUEG(),k=s.readUEG(),x=s.readUEG(),E=s.readUEG()),s.readBool()){if(s.readBool())switch(s.readUByte()){case 1:t=[1,1];break;case 2:t=[12,11];break;case 3:t=[10,11];break;case 4:t=[16,11];break;case 5:t=[40,33];break;case 6:t=[24,11];break;case 7:t=[20,11];break;case 8:t=[32,11];break;case 9:t=[80,33];break;case 10:t=[18,11];break;case 11:t=[15,11];break;case 12:t=[64,33];break;case 13:t=[160,99];break;case 14:t=[4,3];break;case 15:t=[3,2];break;case 16:t=[2,1];break;case 255:t=[s.readUByte()<<8|s.readUByte(),s.readUByte()<<8|s.readUByte()]}if(s.readBool()&&s.readBool(),s.readBool()&&(s.readBits(4),s.readBool()&&s.readBits(24)),s.readBool()&&(s.readUEG(),s.readUEG()),s.readBool()){var S=s.readBits(32),T=s.readBits(32);n=s.readBool(),a=(r=T)/(i=2*S)}}return{codec:function(e){for(var t,n="avc1.",r=0;r<3;r++)(t=e[r].toString(16)).length<2&&(t="0".concat(t)),n+=t;return n}(e.subarray(1,4)),profileIdc:o,profileCompatibility:l,levelIdc:u,chromaFormat:c,width:Math.ceil((g+1)*16-2*(w+k)),height:(2-b)*(y+1)*16-(b?2:4)*(x+E),sarRatio:t,fpsNum:r,fpsDen:i,fps:a,fixedFrame:n}}}]),e}(),tl=function(){function e(){eP(this,e)}return eM(e,null,[{key:"parseHEVCDecoderConfigurationRecord",value:function(t){var n,r,i,a,s,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!(t.length<23)){o=o||{};for(var l=(3&t[21])+1,u=[],c=[],f=[],h=23,d=t[22],p=0;p<d;p++){i=63&t[h],a=t[h+1]<<8|t[h+2],h+=3;for(var _=0;_<a;_++)if(s=t[h]<<8|t[h+1],h+=2,s){switch(i){case 32:var m=t.subarray(h,h+s);n||(n=e.parseVPS(ta.removeEPB(m),o)),f.push(m);break;case 33:var g=t.subarray(h,h+s);r||(r=e.parseSPS(ta.removeEPB(g),o)),u.push(g);break;case 34:c.push(t.subarray(h,h+s))}h+=s}}return{hvcC:o,sps:r,spsArr:u,ppsArr:c,vpsArr:f,nalUnitSize:l}}}},{key:"parseVPS",value:function(t,n){n=n||{};var r=new ts(t);r.readUByte(),r.readUByte(),r.readBits(12);var i=r.readBits(3);return n.numTemporalLayers=Math.max(n.numTemporalLayers||0,i+1),r.readBits(17),e._parseProfileTierLevel(r,i,n),n}},{key:"parseSPS",value:function(t){var n,r,i,a,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};s=s||{};var o=new ts(t);o.readUByte(),o.readUByte(),o.readBits(4);var l=o.readBits(3);s.numTemporalLayers=Math.max(l+1,s.numTemporalLayers||0),s.temporalIdNested=o.readBits(1),e._parseProfileTierLevel(o,l,s),o.readUEG();var u=s.chromaFormatIdc=o.readUEG(),c=420;u<=3&&(c=[0,420,422,444][u]);var f=0;3===u&&(f=o.readBits(1));var h=o.readUEG(),d=o.readUEG(),p=o.readBits(1);if(1===p&&(n=o.readUEG(),r=o.readUEG(),i=o.readUEG(),a=o.readUEG()),s.bitDepthLumaMinus8=o.readUEG(),s.bitDepthChromaMinus8=o.readUEG(),1===p){var _=(1===u||2===u)&&0===f?2:1,m=1===u&&0===f?2:1;h-=_*(r+n),d-=m*(a+i)}return{codec:"hev1.1.6.L93.B0",width:h,height:d,chromaFormat:c,hvcC:s}}},{key:"_parseProfileTierLevel",value:function(e,t,n){var r=n.generalTierFlag||0;n.generalProfileSpace=e.readBits(2),n.generalTierFlag=Math.max(e.readBits(1),r),n.generalProfileIdc=Math.max(e.readBits(5),n.generalProfileIdc||0),n.generalProfileCompatibilityFlags=e.readBits(32),n.generalConstraintIndicatorFlags=[e.readBits(8),e.readBits(8),e.readBits(8),e.readBits(8),e.readBits(8),e.readBits(8)];var i=e.readBits(8);r<n.generalTierFlag?n.generalLevelIdc=i:n.generalLevelIdc=Math.max(i,n.generalLevelIdc||0);var a=[],s=[];if(t>e.bitsAvailable)throw Error("maxSubLayersMinus inavlid size ".concat(t));for(var o=0;o<t;o++)a[o]=e.readBits(1),s[o]=e.readBits(1);t>0&&e.readBits((8-t)*2);for(var l=0;l<t;l++)0!==a[l]&&(e.readBits(2),e.readBits(1),e.readBits(5),e.readBits(16),e.readBits(16),e.readBits(4),e.readBits(16),e.readBits(16),e.readBits(12)),0!==s[l]&&e.readBits(8)}}]),e}(),tu=function(){function e(){eP(this,e)}return eM(e,null,[{key:"decode",value:function(t){for(var n=[],r=0,i=t.length;r<i;){if(t[r]<128){n.push(String.fromCharCode(t[r])),++r;continue}if(t[r]<192);else if(t[r]<224){if(e._checkContinuation(t,r,1)){var a=(31&t[r])<<6|63&t[r+1];if(a>=128){n.push(String.fromCharCode(65535&a)),r+=2;continue}}}else if(t[r]<240){if(e._checkContinuation(t,r,2)){var s=(15&t[r])<<12|(63&t[r+1])<<6|63&t[r+2];if(s>=2048&&(63488&s)!=55296){n.push(String.fromCharCode(65535&s)),r+=3;continue}}}else if(t[r]<248&&e._checkContinuation(t,r,3)){var o=(7&t[r])<<18|(63&t[r+1])<<12|(63&t[r+2])<<6|63&t[r+3];if(o>65536&&o<1114112){o-=65536,n.push(String.fromCharCode(o>>>10|55296)),n.push(String.fromCharCode(1023&o|56320)),r+=4;continue}}n.push(String.fromCharCode(65533)),++r}return n.join("")}},{key:"_checkContinuation",value:function(e,t,n){if(!(t+n<e.length))return!1;for(;n--;)if((192&e[++t])!=128)return!1;return!0}}]),e}(),tc=function(){function e(){eP(this,e)}return eM(e,null,[{key:"parse",value:function(t){if(!(t.length<3)){var n={},r=e._parseValue(new DataView(t.buffer,t.byteOffset,t.byteLength)),i=e._parseValue(new DataView(t.buffer,t.byteOffset+r.size,t.byteLength-r.size));return n[r.data]=i.data,n}}},{key:"_parseValue",value:function(t){var n,r=t.byteLength,i=t.getUint8(0),a=1,s=!1;switch(i){case 0:n=t.getFloat64(1),a+=8;break;case 1:n=!!t.getUint8(1),a+=1;break;case 2:var o=e._parseString(new DataView(t.buffer,t.byteOffset+a,t.byteLength-a)),l=o.data,u=o.size;n=l,a+=u;break;case 3:n={};var c=0;for((0xffffff&t.getUint32(r-4))==9&&(c=3);a<r-4;){var f=e._parseObject(new DataView(t.buffer,t.byteOffset+a,t.byteLength-a-c)),h=f.size,d=f.data;if(f.isEnd)break;n[d.name]=d.value,a+=h}a<=r-3&&9==(0xffffff&t.getUint32(a-1))&&(a+=3);break;case 8:n={},a+=4;var p=0;for((0xffffff&t.getUint32(r-4))==9&&(p=3);a<r-8;){var _=e._parseObject(new DataView(t.buffer,t.byteOffset+a,t.byteLength-a-p)),m=_.size,g=_.data;if(_.isEnd)break;n[g.name]=g.value,a+=m}a<=r-3&&9==(0xffffff&t.getUint32(a-1))&&(a+=3);break;case 9:n=void 0,a=1,s=!0;break;case 10:n=[];var y=t.getUint32(1);a+=4;for(var b=0;b<y;b++){var w=e._parseValue(new DataView(t.buffer,t.byteOffset+a,t.byteLength-a)),k=w.data,x=w.size;n.push(k),a+=x}break;case 11:n=new Date(t.getFloat64(a)+6e4*t.getInt16(a+8)),a+=10;break;case 12:var E=t.getUint32(1);a+=4,n="",E>0&&(n=tu.decode(new Uint8Array(t.buffer,t.byteOffset+a,E))),a+=E;break;default:a=r}return{data:n,size:a,isEnd:s}}},{key:"_parseString",value:function(e){var t=e.getUint16(0),n="";return t>0&&(n=tu.decode(new Uint8Array(e.buffer,e.byteOffset+2,t))),{data:n,size:2+t}}},{key:"_parseObject",value:function(t){if(!(t.byteLength<3)){var n=e._parseString(t),r=e._parseValue(new DataView(t.buffer,t.byteOffset+n.size,t.byteLength-n.size));return{data:{name:n.data,value:r.data},size:n.size+r.size,isEnd:r.isEnd}}}}]),e}(),tf={G711A:7,G711M:8,AAC:10,OPUS:13},th=new e5("FlvDemuxer"),td=function(){function e(t,n,r){eP(this,e),eI(this,"_headerParsed",!1),eI(this,"_remainingData",null),eI(this,"_gopId",0),eI(this,"_needAddMetaBeforeKeyFrameNal",!0),this.videoTrack=t||new eZ,this.audioTrack=n||new eY,this.metadataTrack=r||new e2,this._fixer=new tt(this.videoTrack,this.audioTrack,this.metadataTrack)}return eM(e,[{key:"demux",value:function(t){var n,r,i,a,s,o,l=arguments.length>1&&void 0!==arguments[1]&&arguments[1],u=!(arguments.length>2)||void 0===arguments[2]||arguments[2],c=arguments.length>3?arguments[3]:void 0,f=this.audioTrack,h=this.videoTrack,d=this.metadataTrack;if((l||!u)&&(this._remainingData=null),l&&(this._headerParsed=!1),l?(h.reset(),f.reset(),d.reset()):(h.samples=[],f.samples=[],d.seiSamples=[],d.flvScriptSamples=[],h.warnings=[],f.warnings=[],this._remainingData&&(t=tn(this._remainingData,t),this._remainingData=null)),!t.length)return{videoTrack:h,audioTrack:f,metadataTrack:d};var p=0;if(!this._headerParsed){if(!e.probe(t))throw Error("Invalid flv file");f.present=(4&t[4])>>>2!=0,h.present=(1&t[4])!=0,this._headerParsed=!0,p=tr(t,5)+4}for(var _=t.length;p+15<_&&(r=t[p],i=t[p+1]<<16|t[p+2]<<8|t[p+3],!(p+15+i>_));)a=(t[p+7]<<24>>>0)+(t[p+4]<<16)+(t[p+5]<<8)+t[p+6],p+=11,s=t.subarray(p,p+i),8===r?this._parseAudio(s,a):9===r?(c&&(this.seamlessLoadingSwitching=!0),this._parseVideo(s,a)):18===r?this._parseScript(s,a):th.warn("Invalid tag type: ".concat(r)),p+=i,(o=tr(t,p))!==11+i&&th.warn("Invalid PrevTagSize ".concat(o," (").concat(11+i,")")),p+=4;p<_&&(this._remainingData=t.subarray(p)),f.formatTimescale=h.formatTimescale=h.timescale=d.timescale=1e3,f.timescale=f.codecType===eK.OPUS?1e3:f.sampleRate||0,!f.exist()&&f.hasSample()&&f.reset(),!h.exist()&&h.hasSample()&&h.reset();var m=d.flvScriptSamples[d.flvScriptSamples.length-1],g=null==m||null==(n=m.data)?void 0:n.onMetaData;return g&&(null!=h&&h.exist()&&(g.hasOwnProperty("duration")&&(h.duration=1e3*g.duration),g.hasOwnProperty("width")&&g.hasOwnProperty("height")&&(h.width=g.width,h.height=g.height)),null!=f&&f.exist()&&g.hasOwnProperty("duration")&&(f.duration=1e3*g.duration)),{videoTrack:h,audioTrack:f,metadataTrack:d}}},{key:"fix",value:function(e,t,n){return this._fixer.fix(e,t,n),{videoTrack:this.videoTrack,audioTrack:this.audioTrack,metadataTrack:this.metadataTrack}}},{key:"demuxAndFix",value:function(e,t,n,r,i){return this.demux(e,t,n,i),this.fix(r,t,n)}},{key:"_parseAudio",value:function(t,n){if(t.length){var r=(240&t[0])>>>4,i=this.audioTrack;if(r!==tf.AAC&&r!==tf.G711A&&r!==tf.G711M&&r!==tf.OPUS){th.warn("Unsupported sound format: ".concat(r)),i.reset();return}if(r!==tf.AAC&&r!==tf.OPUS){var a=(12&t[0])>>2,s=(2&t[0])>>1,o=1&t[0];i.sampleRate=e.AUDIO_RATE[a],i.sampleSize=s?16:8,i.channelCount=o+1}switch(r){case tf.G711A:case tf.G711M:this._parseG711(t,n,r);break;case tf.AAC:this._parseAac(t,n);break;case tf.OPUS:this._parseOpus(t,n)}}}},{key:"_parseOpus",value:function(e,t){var n=this.audioTrack,r=e[1];switch(n.codecType=eK.OPUS,r){case 0:var i=te.parseHeaderPackets(e.subarray(2));i?(n.codec=i.codec,n.channelCount=i.channelCount,n.sampleRate=i.sampleRate,n.config=i.config,n.sampleDuration=te.getFrameDuration([],n.timescale)):(n.reset(),th.warn("Cannot parse AudioSpecificConfig",e));break;case 1:if(null==t)return;var a=new eJ(t,e.subarray(2),n.sampleDuration);n.samples.push(a);break;default:th.warn("Unknown OpusPacketType: ".concat(r))}}},{key:"_parseG711",value:function(e,t,n){var r=this.audioTrack,i=e.subarray(1);if(!(i.byteLength<1)){var a=new eJ(t,i);r.codecType=7===n?eK.G711PCMA:eK.G711PCMU,r.sampleRate=8e3,r.codec=r.codecType,r.samples.push(a)}}},{key:"_parseAac",value:function(e,t){var n=this.audioTrack;if(n.codecType=eK.AAC,0===e[1]){var r=e7.parseAudioSpecificConfig(e.subarray(2));r?(n.codec=r.codec,n.channelCount=r.channelCount,n.sampleRate=r.sampleRate,n.config=r.config,n.objectType=r.objectType,n.sampleRateIndex=r.samplingFrequencyIndex):(n.reset(),th.warn("Cannot parse AudioSpecificConfig",e))}else if(1===e[1]){if(null==t)return;n.samples.push(new eJ(t,e.subarray(2)))}else th.warn("Unknown AACPacketType: ".concat(e[1]))}},{key:"_parseVideo",value:function(e,t){var n=this;if(!(e.length<6)){var r=(240&e[0])>>>4,i=15&e[0],a=this.videoTrack;if(7!==i&&12!==i){a.reset(),th.warn("Unsupported codecId: ".concat(i));return}var s=12===i;a.codecType=s?eW.HEVC:eW.AVC;var o=e[1],l=(e[2]<<16|e[3]<<8|e[4])<<8>>8;if(0===o){var u=e.subarray(5),c=s?tl.parseHEVCDecoderConfigurationRecord(u):to.parseAVCDecoderConfigurationRecord(u);if(c){var f=c.hvcC,h=c.sps,d=c.ppsArr,p=c.spsArr,_=c.vpsArr,m=c.nalUnitSize;f&&(a.hvcC=a.hvcC||f),h&&(a.codec=h.codec,a.width=h.width,a.height=h.height,a.sarRatio=h.sarRatio,a.fpsNum=h.fpsNum,a.fpsDen=h.fpsDen),p.length&&(a.sps=p),d.length&&(a.pps=d),_&&_.length&&(a.vps=_),m&&(a.nalUnitSize=m)}else th.warn("Cannot parse ".concat(s?"HEVC":"AVC","DecoderConfigurationRecord"),e)}else if(1===o){var g=ta.parseAvcC(e.subarray(5),a.nalUnitSize);if((g=this._checkAddMetaNalToUnits(s,g,a))&&g.length){var y=new eX(t+l,t,g);if(this.seamlessLoadingSwitching&&t<a.lastKeyFrameDts)return;this.seamlessLoadingSwitching=!1,1===r&&(y.setToKeyframe(),a.lastKeyFrameDts=t),a.samples.push(y),g.forEach(function(e){var r=s?e[0]>>>1&63:31&e[0];switch(r){case 5:case 16:case 17:case 18:case 19:case 20:case 21:case 22:case 23:if(!s&&5!==r||s&&5===r)break;y.setToKeyframe();break;case 6:case 39:case 40:if(!s&&6!==r||s&&6===r)break;n.metadataTrack.seiSamples.push(new e1(ta.parseSEI(ta.removeEPB(e),s),t+l))}}),y.keyframe&&this._gopId++,y.gopId=this._gopId}else th.warn("Cannot parse NALUs",e)}else 2===o||th.warn("Unknown AVCPacketType: ".concat(o))}}},{key:"_checkAddMetaNalToUnits",value:function(e,t,n){return!e||!this._needAddMetaBeforeKeyFrameNal||t.map(function(e){return e[0]>>>1&63}).includes(32)?(this._needAddMetaBeforeKeyFrameNal=!1,t):(t.unshift(n.pps[0]),t.unshift(n.sps[0]),t.unshift(n.vps[0]),t.filter(Boolean))}},{key:"_parseScript",value:function(e,t){this.metadataTrack.flvScriptSamples.push(new e0(tc.parse(e),t))}}],[{key:"probe",value:function(e){return 70===e[0]&&76===e[1]&&86===e[2]&&1===e[3]&&tr(e,5)>=9}}]),e}();eI(td,"AUDIO_RATE",[5500,11e3,22e3,44e3]);var tp=function(){function e(){eP(this,e),this.buffer=new Uint8Array(0)}return eM(e,[{key:"write",value:function(){for(var e=this,t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];n.forEach(function(t){t?e.buffer=function(e){for(var t=0,n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];r.forEach(function(e){t+=e.length});var a=new e(t),s=0;return r.forEach(function(e){a.set(e,s),s+=e.length}),a}(Uint8Array,e.buffer,t):window.console.warn(t)})}}],[{key:"writeUint16",value:function(e){return new Uint8Array([e>>8&255,255&e])}},{key:"writeUint32",value:function(e){return new Uint8Array([e>>24,e>>16&255,e>>8&255,255&e])}}]),e}(),t_=function(){function e(){eP(this,e)}return eM(e,null,[{key:"box",value:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=8+(n=n.filter(Boolean)).reduce(function(e,t){return e+t.byteLength},0),a=new Uint8Array(i);a[0]=i>>24&255,a[1]=i>>16&255,a[2]=i>>8&255,a[3]=255&i,a.set(e,4);var s=8;return n.forEach(function(e){a.set(e,s),s+=e.byteLength}),a}},{key:"ftyp",value:function(t){return t.find(function(e){return e.type===eq&&e.codecType===eW.HEVC})?e.FTYPHEV1:e.FTYPAVC1}},{key:"initSegment",value:function(t){return tn(e.ftyp(t),e.moov(t))}},{key:"pssh",value:function(t){var n=new Uint8Array([1,0,0,0].concat([16,119,239,236,192,178,77,2,172,227,60,30,82,226,251,75],[0,0,0,1],ti(t.kid),[0,0,0,0]));return e.box(e.types.pssh,n)}},{key:"moov",value:function(t){if(!t[0].useEME||!t[0].encv&&!t[0].enca)return e.box.apply(e,[e.types.moov,e.mvhd(t[0].mvhdDurtion||t[0].duration,t[0].mvhdTimecale||t[0].timescale)].concat(ez(t.map(function(t){return e.trak(t)})),[e.mvex(t)]));t[0].pssh||(t[0].pssh={kid:t[0].kid});var n=this.pssh(t[0].pssh);return e.box.apply(e,[e.types.moov,e.mvhd(t[0].mvhdDurtion||t[0].duration,t[0].mvhdTimecale||t[0].timescale),e.mvex(t)].concat(ez(t.map(function(t){return e.trak(t)})),[n]))}},{key:"mvhd",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:9e4;return e.box(e.types.mvhd,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,n>>24&255,n>>16&255,n>>8&255,255&n,t>>24&255,t>>16&255,t>>8&255,255&t,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]))}},{key:"trak",value:function(t){return e.box(e.types.trak,e.tkhd(t.id,t.tkhdDuration||0,t.width,t.height),e.mdia(t))}},{key:"tkhd",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return e.box(e.types.tkhd,new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,t>>24&255,t>>16&255,t>>8&255,255&t,0,0,0,0,n>>24&255,n>>16&255,n>>8&255,255&n,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,r>>8&255,255&r,0,0,i>>8&255,255&i,0,0]))}},{key:"mdia",value:function(t){return e.box(e.types.mdia,e.mdhd(t.duration,t.timescale),e.hdlr(t.type),e.minf(t))}},{key:"mdhd",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:9e4;return e.box(e.types.mdhd,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,n>>24&255,n>>16&255,n>>8&255,255&n,t>>24&255,t>>16&255,t>>8&255,255&t,85,196,0,0]))}},{key:"hdlr",value:function(t){return e.box(e.types.hdlr,e.HDLR_TYPES[t])}},{key:"minf",value:function(t){return e.box(e.types.minf,t.type===eq?e.VMHD:e.SMHD,e.DINF,e.stbl(t))}},{key:"stbl",value:function(t){var n=[];return t&&t.ext&&t.ext.stss&&n.push(e.stss(t.ext.stss.entries)),e.box(e.types.stbl,e.stsd(t),e.STTS,n[0],e.STSC,e.STSZ,e.STCO)}},{key:"stsd",value:function(t){var n="audio"===t.type?t.useEME&&t.enca?e.enca(t):t.codecType===eK.OPUS?e.opus(t):e.mp4a(t):t.useEME&&t.encv?e.encv(t):t.av1C?e.av01(t):e.avc1hev1(t);return e.box(e.types.stsd,new Uint8Array([0,0,0,0,0,0,0,1]),n)}},{key:"enca",value:function(t){var n=t.enca.channelCount,r=t.enca.sampleRate,i=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,n,0,16,0,0,0,0,r>>8&255,255&r,0,0]),a=e.esds(t.config),s=e.sinf(t.enca);return e.box(e.types.enca,i,a,s)}},{key:"encv",value:function(t){var n,r,i=t.sps.length>0?t.sps[0]:[],a=t.pps.length>0?t.pps[0]:[],s=t.width,o=t.height,l=t.sarRatio[0],u=t.sarRatio[1],c=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,s>>8&255,255&s,o>>8&255,255&o,0,72,0,0,0,72,0,0,0,0,0,0,0,1,18,100,97,105,108,121,109,111,116,105,111,110,47,104,108,115,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),f=new Uint8Array((n=(r=[1,i[1],i[2],i[3],255,225,i.length>>>8&255,255&i.length]).concat.apply(r,ez(i)).concat([1,a.length>>>8&255,255&a.length])).concat.apply(n,ez(a))),h=new Uint8Array([0,0,88,57,0,15,200,192,0,4,86,72]),d=e.sinf(t.encv),p=new Uint8Array([l>>24,l>>16&255,l>>8&255,255&l,u>>24,u>>16&255,u>>8&255,255&u]);return e.box(e.types.encv,c,e.box(e.types.avcC,f),e.box(e.types.btrt,h),d,e.box(e.types.pasp,p))}},{key:"schi",value:function(t){var n=new Uint8Array([]),r=e.tenc(t);return e.box(e.types.schi,n,r)}},{key:"tenc",value:function(t){var n=new Uint8Array([0,0,0,0,0,0,255&t.default_IsEncrypted,255&t.default_IV_size].concat(ti(t.default_KID)));return e.box(e.types.tenc,n)}},{key:"sinf",value:function(t){var n=new Uint8Array([]),r=new Uint8Array([t.data_format.charCodeAt(0),t.data_format.charCodeAt(1),t.data_format.charCodeAt(2),t.data_format.charCodeAt(3)]),i=new Uint8Array([0,0,0,0,99,101,110,99,0,1,0,0]),a=e.schi(t);return e.box(e.types.sinf,n,e.box(e.types.frma,r),e.box(e.types.schm,i),a)}},{key:"av01",value:function(t){return e.box(e.types.av01,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,t.width>>8&255,255&t.width,t.height>>8&255,255&t.height,0,72,0,0,0,72,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),t.av1C,t.colr)}},{key:"avc1hev1",value:function(t){var n=t.codecType===eW.HEVC,r=n?e.types.hvc1:e.types.avc1,i=n?e.hvcC(t):e.avcC(t),a=[new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,t.width>>8&255,255&t.width,t.height>>8&255,255&t.height,0,72,0,0,0,72,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),i];return n?a.push(e.box(e.types.fiel,new Uint8Array([1,0]))):t.sarRatio&&t.sarRatio.length>1&&a.push(e.pasp(t.sarRatio)),e.box.apply(e,[r].concat(a))}},{key:"avcC",value:function(t){var n,r,i,a=[],s=[];return t.sps.forEach(function(e){i=e.byteLength,a.push(i>>>8&255),a.push(255&i),a.push.apply(a,ez(e))}),t.pps.forEach(function(e){i=e.byteLength,s.push(i>>>8&255),s.push(255&i),s.push.apply(s,ez(e))}),e.box(e.types.avcC,new Uint8Array((n=(r=[1,a[3],a[4],a[5],255,224|t.sps.length]).concat.apply(r,a).concat([t.pps.length])).concat.apply(n,s)))}},{key:"hvcC",value:function(t){var n,r=t.hvcC;if(r instanceof ArrayBuffer||r instanceof Uint8Array)return r;var i=t.vps,a=t.sps,s=t.pps;if(r){var o=r.generalProfileCompatibilityFlags,l=r.generalConstraintIndicatorFlags,u=(i.length&&1)+(a.length&&1)+(s.length&&1);n=[1,r.generalProfileSpace<<6|r.generalTierFlag<<5|r.generalProfileIdc,o>>>24,o>>>16,o>>>8,o,l[0],l[1],l[2],l[3],l[4],l[5],r.generalLevelIdc,240,0,252,252|r.chromaFormatIdc,248|r.bitDepthLumaMinus8,248|r.bitDepthChromaMinus8,0,0,r.numTemporalLayers<<3|r.temporalIdNested<<2|3,u];var c=function(e){var t;n.push(e.length>>8,e.length),(t=n).push.apply(t,ez(e))};i.length&&(n.push(160,0,i.length),i.forEach(c)),a.length&&(n.push(161,0,a.length),a.forEach(c)),s.length&&(n.push(162,0,s.length),s.forEach(c))}else n=[1,1,96,0,0,0,144,0,0,0,0,0,93,240,0,252,253,248,248,0,0,15,3,160,0,1,0,24,64,1,12,1,255,255,1,96,0,0,3,0,144,0,0,3,0,0,3,0,93,153,152,9,161,0,1,0,45,66,1,1,1,96,0,0,3,0,144,0,0,3,0,0,3,0,93,160,2,128,128,45,22,89,153,164,147,43,154,128,128,128,130,0,0,3,0,2,0,0,3,0,50,16,162,0,1,0,7,68,1,193,114,180,98,64];return e.box(e.types.hvcC,new Uint8Array(n))}},{key:"pasp",value:function(t){var n=function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a,s,o=[],l=!0,u=!1;try{a=(n=n.call(e)).next,!1;for(;!(l=(r=a.call(n)).done)&&(o.push(r.value),o.length!==t);l=!0);}catch(e){u=!0,i=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw i}}return o}}(t,2)||eV(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),r=n[0],i=n[1];return e.box(e.types.pasp,new Uint8Array([r>>24,r>>16&255,r>>8&255,255&r,i>>24,i>>16&255,i>>8&255,255&i]))}},{key:"mp4a",value:function(t){return e.box(e.types.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,t.channelCount,0,16,0,0,0,0,t.sampleRate>>8&255,255&t.sampleRate,0,0]),t.config.length?e.esds(t.config):void 0)}},{key:"esds",value:function(t){var n=t.length;return e.box(e.types.esds,new Uint8Array([0,0,0,0,3,23+n,0,0,0,4,15+n,64,21,0,6,0,0,0,218,192,0,0,218,192,5].concat([n]).concat(t).concat([6,1,2])))}},{key:"opus",value:function(t){var n=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,t.channelCount,0,16,0,0,0,0,t.sampleRate>>8&255,255&t.sampleRate,0,0]),r=t.config.length?e.dOps(t):[];return e.box(e.types.Opus,n,r)}},{key:"dOps",value:function(t){if(t.config)return t.config[4]=t.sampleRate>>>24&255,t.config[5]=t.sampleRate>>>16&255,t.config[6]=t.sampleRate>>>8&255,t.config[7]=255&t.sampleRate,e.box(e.types.dOps,t.config)}},{key:"mvex",value:function(t){return e.box.apply(e,[e.types.mvex].concat(ez(t.map(function(t){return e.trex(t.id)}))))}},{key:"trex",value:function(t){return e.box(e.types.trex,new Uint8Array([0,0,0,0,t>>24,t>>16&255,t>>8&255,255&t,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]))}},{key:"trex1",value:function(t){return e.box(e.types.trex,new Uint8Array([0,0,0,0,t>>24,t>>16&255,t>>8&255,255&t,0,0,0,1,0,0,2,0,0,0,0,0,0,1,0,0]))}},{key:"trex2",value:function(t){return e.box(e.types.trex,new Uint8Array([0,0,0,0,t>>24,t>>16&255,t>>8&255,255&t,0,0,0,1,0,0,4,0,0,0,0,0,2,0,0,0]))}},{key:"moof",value:function(t){return e.box.apply(e,[e.types.moof,e.mfhd(t[0].samples?t[0].samples[0].gopId:0)].concat(ez(t.map(function(t){return e.traf(t)}))))}},{key:"mfhd",value:function(t){return e.box(e.types.mfhd,new Uint8Array([0,0,0,0,t>>24,t>>16&255,t>>8&255,255&t]))}},{key:"traf",value:function(t){var n=e.tfhd(t.id),r=e.tfdt(t,t.baseMediaDecodeTime),i=0;if(t.isVideo&&t.videoSenc&&t.videoSenc.forEach(function(e){i+=8,e.subsamples&&e.subsamples.length&&(i+=2+6*e.subsamples.length)}),t.videoSencLength=i,t.useEME&&(t.isVideoEncryption||t.isAudioEncryption))if(t.isVideoEncryption)if(t.isVideo){var a=e.saiz(t),s=e.saio(t),o=e.trun1(t),l=e.senc(t);return e.box(e.types.traf,n,r,a,s,o,l)}else if(t.isAudioEncryption){var u=e.sbgp(),c=e.saiz(t),f=e.saio(t),h=e.senc(t),d=e.trun1(t);return e.box(e.types.traf,n,r,u,c,f,h,d)}else{var p=e.sbgp(),_=e.trun1(t);return e.box(e.types.traf,n,r,p,_)}else if(t.isVideo){var m=e.trun1(t);return e.box(e.types.traf,n,r,m)}else{var g=e.sbgp(),y=e.saiz(t),b=e.saio(t),w=e.senc(t),k=e.trun1(t);return e.box(e.types.traf,n,r,g,y,b,w,k)}var x=e.sdtp(t);return e.box(e.types.traf,n,r,x,e.trun(t.samples,x.byteLength+76))}},{key:"sdtp",value:function(t){var n=new tp;return t.samples.forEach(function(e){n.write(new Uint8Array(t.isVideo?[e.keyframe?32:16]:[16]))}),e.box(e.types.sdtp,this.extension(0,0),n.buffer)}},{key:"trun1",value:function(t){var n=new tp,r=tp.writeUint32(t.samples.length),i=null;if(t.isVideo){var a=t.videoSencLength;i=tp.writeUint32(16*t.samples.length+a+149),!t.isVideoEncryption&&t.isAudioEncryption&&(i=tp.writeUint32(16*t.samples.length+92))}else{var s=12*t.samples.length+124;t.isAudioEncryption&&(s=12*t.samples.length+8*t.audioSenc.length+177),i=tp.writeUint32(s)}return t.samples.forEach(function(e){n.write(tp.writeUint32(e.duration)),n.write(tp.writeUint32(e.size)),n.write(tp.writeUint32(e.keyframe?0x2000000:65536)),t.isVideo&&n.write(tp.writeUint32(e.cts?e.cts:0))}),e.box(e.types.trun,this.extension(0,t.flags),r,i,n.buffer)}},{key:"senc",value:function(t){var n=new tp,r=t.samples.length,i=t.isVideo?16:8,a=2*!!t.isVideo,s=[],o=0;return t.isVideo?(s=t.videoSenc,o=t.videoSencLength):s=t.audioSenc,o=o||i*r,n.write(tp.writeUint32(16+o),e.types.senc,this.extension(0,a)),n.write(tp.writeUint32(r)),s.forEach(function(e){for(var t=0;t<e.InitializationVector.length;t++)n.write(new Uint8Array([e.InitializationVector[t]]));e.subsamples&&e.subsamples.length&&(n.write(tp.writeUint16(e.subsamples.length)),e.subsamples.forEach(function(e){n.write(tp.writeUint16(e.BytesOfClearData)),n.write(tp.writeUint32(e.BytesOfProtectedData))}))}),n.buffer}},{key:"saio",value:function(t){var n=12*t.samples.length+141;!t.isVideo&&t.isAudioEncryption&&(n=149);var r=new Uint8Array([1,0,0,0,0,0,0,1,0,0,0,0,n>>24&255,n>>16&255,n>>8&255,255&n]);return e.box(e.types.saio,r)}},{key:"saiz",value:function(t){var n=t.samples.length,r=new Uint8Array([0,0,0,0,16,n>>24&255,n>>16&255,n>>8&255,255&n]);return e.box(e.types.saiz,r)}},{key:"sbgp",value:function(){var t=new Uint8Array([114,111,108,108,0,0,0,1,0,0,1,25,0,0,0,1]);return e.box(e.types.sbgp,this.extension(0,0),t)}},{key:"extension",value:function(e,t){return new Uint8Array([e,t>>16&255,t>>8&255,255&t])}},{key:"tfhd",value:function(t){return e.box(e.types.tfhd,new Uint8Array([0,0,0,0,t>>24,t>>16&255,t>>8&255,255&t]))}},{key:"tfdt",value:function(t,n){var r=Math.floor(n/0x100000000),i=Math.floor(n%0x100000000);return t.useEME&&(t.isVideoEncryption||t.isAudioEncryption)?e.box(e.types.tfdt,new Uint8Array([0,0,0,0,i>>24,i>>16&255,i>>8&255,255&i])):e.box(e.types.tfdt,new Uint8Array([1,0,0,0,r>>24,r>>16&255,r>>8&255,255&r,i>>24,i>>16&255,i>>8&255,255&i]))}},{key:"trun",value:function(t,n){var r=t.length,i=12+16*r;n+=8+i;var a=new Uint8Array(i);a.set([0,0,15,1,r>>>24&255,r>>>16&255,r>>>8&255,255&r,n>>>24&255,n>>>16&255,n>>>8&255,255&n],0);for(var s=0;s<r;s++){var o=t[s],l=o.duration,u=o.size,c=o.flag,f=void 0===c?{}:c,h=o.cts,d=void 0===h?0:h;a.set([l>>>24&255,l>>>16&255,l>>>8&255,255&l,u>>>24&255,u>>>16&255,u>>>8&255,255&u,f.isLeading<<2|(null===f.dependsOn||void 0===f.dependsOn?1:f.dependsOn),f.isDependedOn<<6|f.hasRedundancy<<4|f.paddingValue<<1|(null===f.isNonSyncSample||void 0===f.isNonSyncSample?1:f.isNonSyncSample),61440&f.degradationPriority,15&f.degradationPriority,d>>>24&255,d>>>16&255,d>>>8&255,255&d],12+16*s)}return e.box(e.types.trun,a)}},{key:"moovMP4",value:function(t){return e.box.apply(e,[e.types.moov,e.mvhd(t[0].duration,t[0].timescale)].concat(ez(t.map(function(t){return e.trackMP4(t)}))))}},{key:"trackMP4",value:function(t){return e.box(e.types.trak,e.tkhd(t.id,t.duration,t.width,t.height),e.mdiaMP4(t))}},{key:"mdiaMP4",value:function(t){return e.box(e.types.mdia,e.mdhd(t.duration,t.timescale),e.hdlr(t.type),e.minfMP4(t))}},{key:"minfMP4",value:function(t){return e.box(e.types.minf,t.type===eq?e.VMHD:e.SMHD,e.DINF,e.stblMP4(t))}},{key:"stblMP4",value:function(t){var n=t.ext,r=[e.stsd(t),e.stts(n.stts),e.stsc(n.stsc),e.stsz(n.stsz),e.stco(n.stco)];return n.stss.length&&r.push(e.stss(n.stss)),n.ctts.length&&r.push(e.ctts(n.ctts)),e.box.apply(e,[e.types.stbl].concat(r))}},{key:"stts",value:function(t){var n=t.length,r=new Uint8Array(8*n),i=0;return t.forEach(function(e){var t=e.value,n=e.count;r.set([n>>24,n>>16&255,n>>8&255,255&n,t>>24,t>>16&255,t>>8&255,255&t],i),i+=8}),e.box(e.types.stts,tn(new Uint8Array([0,0,0,0,n>>24,n>>16&255,n>>8&255,255&n]),r))}},{key:"stsc",value:function(t){var n=t.length,r=new Uint8Array(12*n),i=0;return t.forEach(function(e){var t=e.firstChunk,n=e.samplesPerChunk,a=e.sampleDescIndex;r.set([t>>24,t>>16&255,t>>8&255,255&t,n>>24,n>>16&255,n>>8&255,255&n,a>>24,a>>16&255,a>>8&255,255&a],i),i+=12}),e.box(e.types.stsc,tn(new Uint8Array([0,0,0,0,n>>24,n>>16&255,n>>8&255,255&n]),r))}},{key:"stsz",value:function(t){var n=t.length,r=new Uint8Array(4*n),i=0;return t.forEach(function(e){r.set([e>>24,e>>16&255,e>>8&255,255&e],i),i+=4}),e.box(e.types.stsz,tn(new Uint8Array([0,0,0,0,0,0,0,0,n>>24,n>>16&255,n>>8&255,255&n]),r))}},{key:"stco",value:function(t){var n=t.length,r=new Uint8Array(4*n),i=0;return t.forEach(function(e){r.set([e>>24,e>>16&255,e>>8&255,255&e],i),i+=4}),e.box(e.types.stco,tn(new Uint8Array([0,0,0,0,n>>24,n>>16&255,n>>8&255,255&n]),r))}},{key:"stss",value:function(t){var n=t.length,r=new Uint8Array(4*n),i=0;return t.forEach(function(e){r.set([e>>24,e>>16&255,e>>8&255,255&e],i),i+=4}),e.box(e.types.stss,tn(new Uint8Array([0,0,0,0,n>>24,n>>16&255,n>>8&255,255&n]),r))}},{key:"ctts",value:function(t){var n=t.length,r=new Uint8Array(8*n),i=0;return t.forEach(function(e){var t=e.value,n=e.count;r.set([n>>24,n>>16&255,n>>8&255,255&n,t>>24,t>>16&255,t>>8&255,255&t],i),i+=8}),e.box(e.types.ctts,tn(new Uint8Array([0,0,0,0,n>>24,n>>16&255,n>>8&255,255&n]),r))}},{key:"styp",value:function(){return e.box(e.types.styp,new Uint8Array([109,115,100,104,0,0,0,0,109,115,100,104,109,115,105,120]))}},{key:"sidx",value:function(t){var n=t.timescale,r=t.samples[0].duration,i=r*t.samples.length,a=t.samples[0].sampleOffset*r,s=8;t.samples.forEach(function(e){s+=e.size});var o=0;if(t.isVideo){var l,u=0;t.videoSenc&&(l=t.videoSenc),t.isVideo&&l.forEach(function(e){u+=8,e.subsamples&&e.subsamples.length&&(u+=2+6*e.subsamples.length)}),t.videoSencLength=u,o=s+141+16*t.samples.length+u,t.useEME&&t.isAudioEncryption&&!t.isVideoEncryption&&(o=s+16*t.samples.length+84)}else o=s+116+12*t.samples.length,t.useEME&&t.isAudioEncryption&&(o=s+169+12*t.samples.length+8*t.audioSenc.length);var c=new Uint8Array([0,0,0,0,0,0,0,255&t.id,n>>24&255,n>>16&255,n>>8&255,255&n,a>>24&255,a>>16&255,a>>8&255,255&a,0,0,0,0,0,0,0,1,0,o>>16&255,o>>8&255,255&o,i>>24&255,i>>16&255,i>>8&255,255&i,144,0,0,0]);return e.box(e.types.sidx,c)}},{key:"mdat",value:function(t){return e.box(e.types.mdat,t)}}]),e}();eI(t_,"types",["Opus","dOps","av01","av1C","avc1","avcC","hvc1","hvcC","dinf","dref","esds","ftyp","hdlr","mdat","mdhd","mdia","mfhd","minf","moof","moov","mp4a","mvex","mvhd","pasp","stbl","stco","stsc","stsd","stsz","stts","tfdt","tfhd","traf","trak","trex","tkhd","vmhd","smhd","ctts","stss","styp","pssh","sidx","sbgp","saiz","saio","senc","trun","encv","enca","sinf","btrt","frma","tenc","schm","schi","mehd","fiel","sdtp"].reduce(function(e,t){return e[t]=[t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2),t.charCodeAt(3)],e},Object.create(null))),eI(t_,"HDLR_TYPES",{video:new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),audio:new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0])}),eI(t_,"FTYPAVC1",t_.box(t_.types.ftyp,new Uint8Array([105,115,111,109,0,0,0,1,105,115,111,109,97,118,99,49]))),eI(t_,"FTYPHEV1",t_.box(t_.types.ftyp,new Uint8Array([105,115,111,109,0,0,0,1,105,115,111,109,104,101,118,49]))),eI(t_,"DINF",t_.box(t_.types.dinf,t_.box(t_.types.dref,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1])))),eI(t_,"VMHD",t_.box(t_.types.vmhd,new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]))),eI(t_,"SMHD",t_.box(t_.types.smhd,new Uint8Array([0,0,0,0,0,0,0,0]))),eI(t_,"StblTable",new Uint8Array([0,0,0,0,0,0,0,0])),eI(t_,"STTS",t_.box(t_.types.stts,t_.StblTable)),eI(t_,"STSC",t_.box(t_.types.stsc,t_.StblTable)),eI(t_,"STSZ",t_.box(t_.types.stsz,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]))),eI(t_,"STCO",t_.box(t_.types.stco,t_.StblTable));var tv=function(){function e(t,n){eP(this,e),this.name=t||"",this._prefix="[".concat(this.name,"]"),e.disabled=n}return eM(e,[{key:"debug",value:function(){var t;if(!e.disabled){for(var n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];(t=console).debug.apply(t,[this._prefix].concat(r))}}},{key:"log",value:function(){var t;if(!e.disabled){for(var n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];(t=console).log.apply(t,[this._prefix].concat(r))}}},{key:"warn",value:function(){var t;if(!e.disabled){for(var n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];(t=console).warn.apply(t,[this._prefix].concat(r))}}},{key:"error",value:function(){var t;if(!e.disabled){for(var n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];(t=console).error.apply(t,[this._prefix].concat(r))}}},{key:"table",value:function(){var t;e.disabled||(console.group(this._prefix),(t=console).table.apply(t,arguments),console.groupEnd())}}],[{key:"enable",value:function(){e.disabled=!1}},{key:"disable",value:function(){e.disabled=!0}}]),e}();eI(tv,"disabled",!0);var tm=function(){function e(t,n,r){eP(this,e),this.videoTrack=t,this.audioTrack=n;var i=/Chrome\/([^.]+)/.exec(navigator.userAgent);this.forceFirstIDR=i&&50>Number(i[1]),this.log=new tv("FMP4Remuxer",!r||!r.openLog||!r.openLog)}return eM(e,[{key:"remux",value:function(){var e,t,n,r,i,a=arguments.length>0&&void 0!==arguments[0]&&arguments[0],s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=this.videoTrack,l=this.audioTrack,u=o.exist(),c=l.exist(),f=[];return a&&(s&&s.initMerge?(u&&f.push(this.videoTrack),c&&f.push(this.audioTrack),n=t_.initSegment(f)):(u&&(e=t_.initSegment([this.videoTrack])),c&&(t=t_.initSegment([this.audioTrack])))),u&&o.hasSample()&&(r=this._remuxVideo()),c&&l.hasSample()&&(i=this._remuxAudio()),o.samples=[],l.samples=[],{initSegment:n,videoInitSegment:e,audioInitSegment:t,videoSegment:r,audioSegment:i}}},{key:"_remuxVideo",value:function(){var e=this.videoTrack;this.forceFirstIDR&&(e.samples[0].flag={dependsOn:2,isNonSyncSample:0});var t=e.samples,n=/av01/.test(e.codec),r=0;n?t.forEach(function(e){r+=e.data.byteLength}):t.forEach(function(e){r+=e.units.reduce(function(e,t){return e+t.byteLength},0),r+=4*e.units.length});var i=new Uint8Array(r);if(n)for(var a,s=0,o=t.length,l=0;s<o;s++)a=t[s],i.set(a.data,l),a.size=a.data.byteLength,l+=a.size;else for(var u,c=new DataView(i.buffer),f=function(e,n){n=t[h];var r=0;n.units.forEach(function(t){c.setUint32(e,t.byteLength),e+=4,i.set(t,e),e+=t.byteLength,r+=4+t.byteLength}),n.size=r,p=e,u=n},h=0,d=t.length,p=0;h<d;h++)f(p,u);var _=t_.mdat(i);return tn(t_.moof([e]),_)}},{key:"_remuxAudio",value:function(){var e=this.audioTrack,t=new Uint8Array(e.samples.reduce(function(e,t){return e+t.size},0));e.samples.reduce(function(e,n){return t.set(n.data,e),e+n.size},0);var n=t_.mdat(t);return tn(t_.moof([e]),n)}},{key:"reset",value:function(){this.videoTrack.reset(),this.audioTrack.reset()}}]),e}(),tg=function(){function e(){w(this,e),E(this,"_ttfb",0),E(this,"_demuxStart",0),E(this,"_demuxEnd",0),E(this,"_demuxCost",0),E(this,"_remuxStart",0),E(this,"_remuxEnd",0),E(this,"_remuxCost",0),E(this,"_appendStart",0),E(this,"_appendEnd",0),E(this,"_appendCost",0)}return x(e,[{key:"set",value:function(e,t){this["_".concat(e)]=t}},{key:"start",value:function(e){this["_".concat(e,"Start")]=Date.now()}},{key:"end",value:function(e){this["_".concat(e,"End")]=Date.now(),this["_".concat(e,"Cost")]=this["_".concat(e,"Cost")]+(this["_".concat(e,"End")]-this["_".concat(e,"Start")])}},{key:"transferCost",get:function(){return{ttfbCost:this._ttfb,demuxCost:this._demuxCost,remuxCost:this._remuxCost,appendCost:this._appendCost}}}]),e}(),ty={TTFB:"ttfb",DEMUX:"demux",REMUX:"remux",APPEND:"append"},tb=new en("BufferService"),tw=function(){var e,t,n,r,i,a;function s(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};w(this,s),E(this,"flv",null),E(this,"_demuxer",new td),E(this,"_remuxer",null),E(this,"_mse",null),E(this,"_softVideo",null),E(this,"_sourceCreated",!1),E(this,"_needInitSegment",!0),E(this,"_discontinuity",!0),E(this,"_contiguous",!1),E(this,"_initSegmentId",""),E(this,"_cachedBuffer",null),E(this,"_demuxStartTime",0),E(this,"_opts",null),this.flv=e,this._opts=n,t?this._softVideo=t:(this._remuxer=new tm(this._demuxer.videoTrack,this._demuxer.audioTrack),this._mse=new ec(null,{preferMMS:"boolean"==typeof n.preferMMS?n.preferMMS:!!n.perferMMS}),this._mse.bindMedia(e.media))}return x(s,[{key:"baseDts",get:function(){var e,t;return null==(e=this._demuxer)||null==(t=e._fixer)?void 0:t._baseDts}},{key:"blobUrl",get:function(){var e;return null==(e=this._mse)?void 0:e.url}},{key:"isFull",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ec.VIDEO;return this._mse.isFull(e)}},{key:"seamlessSwitch",value:function(){this._needInitSegment=!0,this._discontinuity=!0,this._contiguous=!0,this._initSegmentId=""}},{key:"unContiguous",value:function(e){this._contiguous=!1,this._demuxStartTime=e}},{key:"reset",value:(e=b(g().mark(function e(){var t,n=arguments;return g().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t=n.length>0&&void 0!==n[0]&&n[0],!(this._mse&&!t)){e.next=6;break}return e.next=4,this._mse.unbindMedia();case 4:return e.next=6,this._mse.bindMedia(this.flv.media);case 6:this._needInitSegment=!0,this._discontinuity=!0,this._contiguous=!1,this._sourceCreated=!1,this._initSegmentId="",this.resetSeamlessSwitchStats();case 12:case"end":return e.stop()}},e,this)})),function(){return e.apply(this,arguments)})},{key:"resetSeamlessSwitchStats",value:function(){this.seamlessLoadingSwitch=null,this.seamlessLoadingSwitching=!1,this._demuxer&&(this._demuxer.seamlessLoadingSwitching=!1)}},{key:"endOfStream",value:(t=b(g().mark(function e(){return g().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!this._mse){e.next=7;break}if(!this._sourceCreated){e.next=5;break}return e.next=4,this._mse.endOfStream();case 4:this.flv.emit(ew.BUFFEREOS);case 5:e.next=8;break;case 7:this._softVideo&&this._softVideo.endOfStream();case 8:case"end":return e.stop()}},e,this)})),function(){return t.apply(this,arguments)})},{key:"updateDuration",value:(n=b(g().mark(function e(t){return g().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!this._mse){e.next=7;break}if(this._mse.isOpened){e.next=4;break}return e.next=4,this._mse.open();case 4:return tb.debug("update duration",t),e.next=7,this._mse.updateDuration(t);case 7:case"end":return e.stop()}},e,this)})),function(e){return n.apply(this,arguments)})},{key:"destroy",value:(r=b(g().mark(function e(){return g().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!this._mse){e.next=3;break}return e.next=3,this._mse.unbindMedia();case 3:this._mse=null,this._softVideo=null,this._demuxer=null,this._remuxer=null;case 7:case"end":return e.stop()}},e,this)})),function(){return r.apply(this,arguments)})},{key:"appendBuffer",value:(i=b(g().mark(function e(t){var n,r,i,a,s,o,l,u,c,f,h,d,p,_,m,y,b,w,k=this;return g().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=!1,this._cachedBuffer&&(t=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];if((t=t.filter(Boolean)).length<2)return t[0];var r=new Uint8Array(t.reduce(function(e,t){return e+t.byteLength},0)),i=0;return t.forEach(function(e){r.set(e,i),i+=e.byteLength}),r}(this._cachedBuffer,t),this._cachedBuffer=null),r=this._demuxer,!(!t||!t.length||!r)){e.next=5;break}return e.abrupt("return");case 5:e.prev=5,this.flv._transferCost.start(ty.DEMUX),r.demuxAndFix(t,this.seamlessLoadingSwitching||this._discontinuity,this._contiguous,this._demuxStartTime,this.seamlessLoadingSwitching),this.seamlessLoadingSwitching=!1,this.flv._transferCost.end(ty.DEMUX),e.next=15;break;case 12:throw e.prev=12,e.t0=e.catch(5),new ee(J.DEMUX,J.SUB_TYPES.FLV,e.t0);case 15:if(i=r.videoTrack,a=r.audioTrack,s=r.metadataTrack,!this.seamlessLoadingSwitch||!((o=i.samples.findIndex(function(e){return e.originDts===i.lastKeyFrameDts}))>=0)){e.next=25;break}return i.samples.splice(o),e.next=22,this.seamlessLoadingSwitch();case 22:this.seamlessLoadingSwitch=null,t=null,n=!0;case 25:if(l=i.exist(),u=a.exist(),this._opts.onlyAudio&&(l=!1,i.present=!1),this._opts.onlyVideo&&(u=!1,a.present=!1),!(!l&&i.present||!u&&a.present)){e.next=42;break}if(c=0,(f=l?i:u?a:void 0)&&f.samples.length&&(c=(f.samples[f.samples.length-1].originPts-f.samples[0].originPts)/f.timescale*1e3),!(c>this._opts.analyzeDuration)){e.next=40;break}tb.warn("analyze duration exceeded, ".concat(c,"ms"),f),i.present=l,a.present=u,this.flv.emit(ew.ANALYZE_DURATION_EXCEEDED,{duration:c}),e.next=42;break;case 40:return this._cachedBuffer=t,e.abrupt("return");case 42:if(h=i.type,d=a.type,this._fireEvents(i,a,s),n||(this._discontinuity=!1,this._contiguous=!0,this._demuxStartTime=0),p=this._mse,_=function(){var e,t;null!=(e=k.flv)&&e.emit&&(null==(t=k.flv)||t.emit(ew.APPEND_BUFFER,{}))},this.flv.emit(ew.DEMUXED_TRACK,{videoTrack:i}),(m="".concat(i.codec,"/").concat(i.width,"/").concat(i.height,"/").concat(a.codec,"/").concat(a.config))!==this._initSegmentId&&(this._needInitSegment=!0,this._initSegmentId=m,this._emitMetaParsedEvent(i,a)),!p){e.next=83;break}if(this._sourceCreated){e.next=59;break}return e.next=55,p.open();case 55:l&&(tb.log("codec: video/mp4;codecs=".concat(i.codec)),p.createSource(h,"video/mp4;codecs=".concat(i.codec))),u&&(tb.log("codec: audio/mp4;codecs=".concat(a.codec)),p.createSource(d,"audio/mp4;codecs=".concat(a.codec))),this._sourceCreated=!0,this.flv.emit(ew.SOURCEBUFFER_CREATED);case 59:e.prev=59,this._needInitSegment&&!this._opts.mseLowLatency&&(i.duration=this._opts.durationForMSELowLatencyOff*i.timescale,a.duration=this._opts.durationForMSELowLatencyOff*u.timescale),this.flv._transferCost.start(ty.REMUX),y=this._remuxer.remux(this._needInitSegment),this.flv._transferCost.end(ty.REMUX),e.next=69;break;case 66:throw e.prev=66,e.t1=e.catch(59),new ee(J.REMUX,J.SUB_TYPES.FMP4,e.t1);case 69:if(!(this._needInitSegment&&!y.videoInitSegment&&!y.audioInitSegment)){e.next=71;break}return e.abrupt("return");case 71:return this._needInitSegment=!1,b=[],y.videoInitSegment&&b.push(p.append(h,y.videoInitSegment)),y.audioInitSegment&&b.push(p.append(d,y.audioInitSegment)),y.videoSegment&&b.push(p.append(h,y.videoSegment)),y.audioSegment&&b.push(p.append(d,y.audioSegment)),this.flv._transferCost.start(ty.APPEND),(w=Promise.all(b)).then(_).then(function(){k.flv._transferCost.end(ty.APPEND),_()}),e.abrupt("return",w);case 83:this._softVideo&&(this._softVideo.appendBuffer(i,a),_());case 84:case"end":return e.stop()}},e,this,[[5,12],[59,66]])})),function(e){return i.apply(this,arguments)})},{key:"evictBuffer",value:(a=b(g().mark(function e(t){var n,r,i=this;return g().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=this.flv.media,!(!this._mse||!this._demuxer||!n||!t||t<0)){e.next=3;break}return e.abrupt("return");case 3:if(!((r=n.currentTime-t)<=0)){e.next=7;break}return e.abrupt("return");case 7:if(!(Y.start(Y.get(n))+1>=r)){e.next=10;break}return e.abrupt("return");case 10:return e.abrupt("return",this._mse.clearBuffer(0,r).then(function(){return i.flv.emit(ew.REMOVE_BUFFER,{removeEnd:r})}));case 11:case"end":return e.stop()}},e,this)})),function(e){return a.apply(this,arguments)})},{key:"_emitMetaParsedEvent",value:function(e,t){e.exist()&&this.flv.emit(ew.METADATA_PARSED,{type:"video",track:e,meta:{codec:e.codec,timescale:e.timescale,width:e.width,height:e.height,sarRatio:e.sarRatio,baseDts:e.baseDts}}),t.exist()&&this.flv.emit(ew.METADATA_PARSED,{type:"audio",track:t,meta:{codec:t.codec,channelCount:t.channelCount,sampleRate:t.sampleRate,timescale:t.timescale,baseDts:t.baseDts}}),tb.debug("track parsed",e,t)}},{key:"_fireEvents",value:function(e,t,n){var r=this;tb.debug("videoTrack samples count: ".concat(e.samples.length,", audioTrack samples count: ").concat(t.samples.length)),n.flvScriptSamples.forEach(function(e){r.flv.emit(ew.FLV_SCRIPT_DATA,e),tb.debug("flvScriptData",e)}),e.samples.forEach(function(e){e.keyframe&&r.flv.emit(ew.KEYFRAME,{pts:e.originPts})}),e.warnings.forEach(function(e){var t;switch(e.type){case e$.LARGE_AV_SHIFT:t=ew.LARGE_AV_FIRST_FRAME_GAP_DETECT;break;case e$.LARGE_VIDEO_GAP:t=ew.LARGE_VIDEO_DTS_GAP_DETECT;break;case e$.LARGE_VIDEO_GAP_BETWEEN_CHUNK:t=ew.MAX_DTS_DELTA_WITH_NEXT_SEGMENT_DETECT}t&&r.flv.emit(ew.STREAM_EXCEPTION,m(m({},e),{},{type:t})),tb.warn("video exception",e)}),t.warnings.forEach(function(e){var t;switch(e.type){case e$.LARGE_AUDIO_GAP:t=ew.LARGE_AUDIO_DTS_GAP_DETECT;break;case e$.AUDIO_FILLED:t=ew.AUDIO_GAP_DETECT;break;case e$.AUDIO_DROPPED:t=ew.AUDIO_OVERLAP_DETECT}t&&r.flv.emit(ew.STREAM_EXCEPTION,m(m({},e),{},{type:t})),tb.warn("audio exception",e)}),n.seiSamples.forEach(function(e){r.flv.emit(ew.SEI,m(m({},e),{},{sei:{code:e.data.type,content:e.data.payload,dts:e.pts}}))})}}]),s}();function tk(e,t){var n=0,r=e.length-1,i=0,a=0,s=r;for(t<e[0]&&(n=0,a=s+1);a<=s;){if((i=a+Math.floor((s-a)/2))===r||t>=e[i]&&t<e[i+1]){n=i;break}e[i]<t?a=i+1:s=i-1}return n}var tx=new en("flv"),tE=function(e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");c.prototype=Object.create(e&&e.prototype,{constructor:{value:c,writable:!0,configurable:!0}}),Object.defineProperty(c,"prototype",{writable:!1}),e&&T(c,e);var t,n,r,i,a,s,o,l,u=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||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,n=S(c);e=t?Reflect.construct(n,arguments,S(this).constructor):n.apply(this,arguments);if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");return A(this)});function c(e){var t,n,r;return w(this,c),E(A(t=u.call(this)),"media",null),E(A(t),"_loading",!1),E(A(t),"_opts",null),E(A(t),"_bufferService",null),E(A(t),"_gapService",null),E(A(t),"_stats",null),E(A(t),"_mediaLoader",null),E(A(t),"_maxChunkWaitTimer",null),E(A(t),"_tickTimer",null),E(A(t),"_tickInterval",500),E(A(t),"_urlSwitching",!1),E(A(t),"_seamlessSwitching",!1),E(A(t),"_disconnectRetryCount",0),E(A(t),"_preLoadEndPoint",0),E(A(t),"_keyframes",null),E(A(t),"_acceptRanges",!0),E(A(t),"_onProgress",(n=b(g().mark(function e(n,r,i,a){var s,o,l,u,c,f,h,d,p,_;return g().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(s=i.startTime,o=i.endTime,l=i.st,u=i.firstByteTime,t._loading=!r,t._firstProgressEmit){e.next=13;break}if(t.media){e.next=6;break}return null==(c=t._mediaLoader)||c.cancel(),e.abrupt("return");case 6:f=a.headers,h=l?u-l:o-s,t.emit(ew.TTFB,{url:t._opts.url,responseUrl:a.url,elapsed:h}),t.emit(ew.LOAD_RESPONSE_HEADERS,{headers:f}),t._transferCost.set(ty.TTFB,h),t._acceptRanges=!!(null!=f&&f.get("Accept-Ranges"))||!!(null!=f&&f.get("Content-Range")),t._firstProgressEmit=!0;case 13:if(t._bufferService){e.next=15;break}return e.abrupt("return");case 15:return clearTimeout(t._maxChunkWaitTimer),t._bandwidthService.addChunkRecord(null==n?void 0:n.byteLength,o-s),e.prev=17,e.next=20,t._bufferService.appendBuffer(n);case 20:null==(d=t._bufferService)||d.evictBuffer(t._opts.bufferBehind),e.next=33;break;case 23:if(e.prev=23,e.t0=e.catch(17),!(!t.isLive&&t._bufferService.isFull())){e.next=32;break}return e.next=28,t._mediaLoader.cancel();case 28:return t._loading=!1,p=t.bufferInfo().remaining,t._opts.preloadTime=parseInt(p)/2,e.abrupt("return");case 32:return e.abrupt("return",t._emitError(ee.create(e.t0)));case 33:if(t._urlSwitching&&(t._urlSwitching=!1,t.emit(ew.SWITCH_URL_SUCCESS,{url:t._opts.url})),t._seamlessSwitching&&(t._seamlessSwitching=!1,t._tick()),!(r&&!t.media.seeking)){e.next=40;break}return t.emit(ew.LOAD_COMPLETE),tx.debug("load done"),t.isLive&&t._disconnectRetryCount<=0&&t._end(),e.abrupt("return");case 40:if(t.isLive){e.next=42;break}return e.abrupt("return");case 42:(_=t._opts.maxReaderInterval)&&t._firstProgressEmit&&(clearTimeout(t._maxChunkWaitTimer),t._maxChunkWaitTimer=setTimeout(function(){if(t._disconnectRetryCount){t._disconnectRetryCount--,t.load();return}tx.debug("onMaxChunkWait",_),t._end()},_));case 44:case"end":return e.stop()}},e,null,[[17,23]])})),function(e,t,r,i){return n.apply(this,arguments)})),E(A(t),"_onRetryError",function(e,n){tx.debug("load retry",e,n),t.emit(ew.LOAD_RETRY,{error:ee.network(e),retryTime:n})}),E(A(t),"_end",function(){t._clear(),t._bufferService&&t._bufferService.endOfStream(),tx.debug("end stream")}),E(A(t),"_resetDisconnectCount",function(){t._disconnectRetryCount=t._opts.disconnectRetryCount}),E(A(t),"_tick",function(){clearTimeout(t._tickTimer);var e=A(t).media;if(e){t._tickTimer=setTimeout(t._tick,t._tickInterval);var n=Y.end(Y.get(e));if(!(n<.1)&&e.readyState){var r=t._opts;if(e&&!e.paused&&!e.ended&&0!==e.playbackRate&&0!==e.readyState&&e.currentTime)t._gapService&&t._gapService.do(e,r.maxJumpDistance,t.isLive,3);else{if(!e.currentTime&&t._gapService&&r.enableStartGapJump){(t._opts.mseLowLatency||!1===t._opts.mseLowLatency&&t.bufferInfo(.3).nextStart)&&t._gapService.do(e,r.maxJumpDistance,t.isLive,3);return}r.isLive&&4===e.readyState&&n-e.currentTime>r.disconnectTime&&t.disconnect()}}}}),E(A(t),"_onPlay",function(){var e,n,r=t._opts.softDecode||(null==(e=t.media)||null==(n=e.buffered)?void 0:n.length);if(t.isLive){!t._loading&&r&&t.replay(void 0,!0);return}var i=t.bufferInfo();(i.start||i.nextStart)>.1&&t._tick()}),E(A(t),"_onLoadeddata",function(){t.isLive&&!t._opts.mseLowLatency&&t.media.duration!==1/0&&t._bufferService.updateDuration(1/0).catch(function(e){})}),E(A(t),"_onSeeking",b(g().mark(function e(){return g().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:!t.isLive&&t.seekable&&(t._preLoadEndPoint=-1,t._checkPreload());case 1:case"end":return e.stop()}},e)}))),E(A(t),"_onTimeupdate",function(){if(t.media){var e=t._opts,n=t.media.currentTime;if(e.isLive&&e.maxLatency&&e.targetLatency){var r=Y.end(Y.get(t.media));r-n>=e.maxLatency&&(t.media.currentTime=r-e.targetLatency,t.emit(ew.CHASEFRAME,{currentTime:t.media.currentTime,latency:e.targetLatency}))}t._seiService.throw(n,!0),e.isLive||!t.seekable||t._loading||t._checkPreload()}}),E(A(t),"_onWaiting",function(){t.isLive&&!t._loading&&t._disconnectRetryCount&&(t._disconnectRetryCount--,t.load())}),E(A(t),"_onBufferUpdate",function(){if(!t._opts.isLive){var e=t.bufferInfo(),n=e.end,r=e.nextEnd;1>Math.abs((n||r)-t.media.duration)&&(t._end(),t.media.readyState<=2&&t._tick())}}),E(A(t),"_checkPreload",b(g().mark(function e(){var n,r,i,a,s,o,l,u,c;return g().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(r=void 0===(n=t.bufferInfo().remaining)?0:n,i=t._opts,a=t._keyframes.filepositions,s=t._keyframes.times,o=t.media.currentTime,!(r<i.preloadTime)){e.next=19;break}if(l=tk(t._keyframes.times,o+r+.1),(u=tk(t._keyframes.times,o+r+t._opts.preloadTime))===l&&(u=l+1),t._preLoadEndPoint!==u){e.next=11;break}return e.abrupt("return");case 11:if(null!=(c=a[l])){e.next=14;break}return e.abrupt("return");case 14:return e.next=16,t._mediaLoader.cancel();case 16:t._loadData(null,[c,a[u]]),t._preLoadEndPoint=u,t._bufferService.unContiguous(s[l]);case 19:case"end":return e.stop()}},e)}))),E(A(t),"_onFlvScriptData",function(e){var n,r,i,a,s=null==(n=e.data)||null==(r=n.onMetaData)?void 0:r.keyframes,o=null==(i=e.data)||null==(a=i.onMetaData)?void 0:a.duration;s&&(t._keyframes=s),!t._opts.isLive&&o&&t._bufferService.updateDuration(o)}),(r=m({retryCount:3,retryDelay:1e3,disconnectRetryCount:0,loadTimeout:1e4,maxReaderInterval:5e3,preloadTime:5,defaultVodLoadSize:1e7,isLive:!1,softDecode:!1,bufferBehind:10,maxJumpDistance:3,analyzeDuration:2e4,seamlesslyReload:!1,keepStatusAfterSwitch:!0,onlyVideo:!1,onlyAudio:!1,preferMMS:!1,mseLowLatency:!0,durationForMSELowLatencyOff:6,chunkCountForSpeed:50,skipChunkSize:1e3,longtimeNoReceived:3e3,enableStartGapJump:!0},e)).isLive&&r.preloadTime&&(r.maxLatency||(r.maxLatency=2*r.preloadTime),r.targetLatency||(r.targetLatency=r.preloadTime),(null===r.disconnectTime||void 0===r.disconnectTime)&&(r.disconnectTime=r.maxLatency)),t._opts=r,t.media=t._opts.media||document.createElement("video"),t._opts.media=null,t._firstProgressEmit=!1,t._mediaLoader=new eT(m(m({},t._opts.fetchOptions),{},{retry:t._opts.retryCount,retryDelay:t._opts.retryDelay,timeout:t._opts.loadTimeout,onRetryError:t._onRetryError,onProgress:t._onProgress,responseType:"arraybuffer"})),t._disconnectRetryCount=t._opts.disconnectRetryCount,t._transferCost=new tg,t._bufferService=new tw(A(t),t._opts.softDecode?t.media:void 0,t._opts),t._seiService=new eO(A(t)),t._bandwidthService=new eC({chunkCountForSpeed:t._opts.chunkCountForSpeed,skipChunkSize:t._opts.skipChunkSize,longtimeNoReceived:t._opts.longtimeNoReceived}),t._stats=new eR(A(t)),t._opts.softDecode||(t._gapService=new eA),t.media.addEventListener("play",t._onPlay),t.media.addEventListener("loadeddata",t._onLoadeddata),t.media.addEventListener("seeking",t._onSeeking),t.media.addEventListener("timeupdate",t._onTimeupdate),t.media.addEventListener("progress",t._onBufferUpdate),t.media.addEventListener("waiting",t._onWaiting),t.on(ew.FLV_SCRIPT_DATA,t._onFlvScriptData),t}return x(c,[{key:"version",get:function(){return"3.0.21"}},{key:"isLive",get:function(){return this._opts.isLive}},{key:"baseDts",get:function(){var e;return null==(e=this._bufferService)?void 0:e.baseDts}},{key:"seekable",get:function(){return!!this._keyframes&&this._acceptRanges}},{key:"loader",get:function(){return this._mediaLoader}},{key:"blobUrl",get:function(){var e;return null==(e=this._bufferService)?void 0:e.blobUrl}},{key:"speedInfo",value:function(){return{speed:this._bandwidthService.getLatestSpeed(),avgSpeed:this._bandwidthService.getAvgSpeed(),totalSize:this._bandwidthService.getTotalSize(),totalCost:this._bandwidthService.getTotalCost()}}},{key:"getStats",value:function(){return this._stats.getStats()}},{key:"bufferInfo",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.1;return Y.info(Y.get(this.media),null==(e=this.media)?void 0:e.currentTime,t)}},{key:"playbackQuality",value:function(){var e=this.media;if(!e)return{};if("function"==typeof e.getVideoPlaybackQuality){var t=e.getVideoPlaybackQuality();return{droppedVideoFrames:t.droppedVideoFrames||t.corruptedVideoFrames,totalVideoFrames:t.totalVideoFrames,creationTime:t.creationTime}}return{droppedVideoFrames:e.webkitDroppedFrameCount,totalVideoFrames:e.webkitDecodedFrameCount,creationTime:performance.now()}}},{key:"load",value:(n=b(g().mark(function e(t){var n,r=arguments;return g().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=r.length>1&&void 0!==r[1]&&r[1],this._bufferService){e.next=3;break}return e.abrupt("return");case 3:return e.next=5,this._reset(n);case 5:this._loadData(t,this._opts.isLive?[]:[0,this._opts.defaultVodLoadSize]),clearTimeout(this._tickTimer),this._tickTimer=setTimeout(this._tick,this._tickInterval);case 8:case"end":return e.stop()}},e,this)})),function(e){return n.apply(this,arguments)})},{key:"replay",value:(r=b(g().mark(function e(){var t,n,r=this,i=arguments;return g().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t=i.length>0&&void 0!==i[0]?i[0]:this._opts.seamlesslyReload,n=i.length>1?i[1]:void 0,this.media){e.next=4;break}return e.abrupt("return");case 4:if(this._resetDisconnectCount(),!t){e.next=11;break}return e.next=8,this._clear();case 8:setTimeout(function(){r._seamlessSwitching=!0,r._loadData(r._opts.url),r._bufferService.seamlessSwitch()}),e.next=13;break;case 11:return e.next=13,this.load();case 13:return e.abrupt("return",this.media.play(!n).catch(function(){}));case 14:case"end":return e.stop()}},e,this)})),function(){return r.apply(this,arguments)})},{key:"disconnect",value:function(){var e;return tx.debug("disconnect!"),null==(e=this._bufferService)||e.resetSeamlessSwitchStats(),this._clear()}},{key:"switchURL",value:(i=b(g().mark(function e(t,n){var r=this;return g().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(this._bufferService){e.next=2;break}return e.abrupt("return");case 2:if(this._resetDisconnectCount(),!(this._loading&&n)){e.next=6;break}return this._bufferService.seamlessLoadingSwitch=function(){var e=b(g().mark(function e(n){return g().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r._clear();case 2:r._bufferService.seamlessLoadingSwitching=!0,r._urlSwitching=!0,r._seamlessSwitching=!0,r._bufferService.seamlessSwitch(),r._loadData(t);case 7:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),e.abrupt("return");case 6:if(!(!n||!this._opts.isLive)){e.next=11;break}return e.next=9,this.load(t);case 9:return this._urlSwitching=!0,e.abrupt("return",this.media.play(!0).catch(function(){}));case 11:return e.next=13,this._clear();case 13:setTimeout(function(){r._urlSwitching=!0,r._seamlessSwitching=!0,r._loadData(t),r._bufferService.seamlessSwitch()});case 14:case"end":return e.stop()}},e,this)})),function(e,t){return i.apply(this,arguments)})},{key:"destroy",value:(a=b(g().mark(function e(){return g().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(this.media){e.next=2;break}return e.abrupt("return");case 2:return this.removeAllListeners(),this._seiService.reset(),this.media.removeEventListener("play",this._onPlay),this.media.removeEventListener("loadeddata",this._onLoadeddata),this.media.removeEventListener("seeking",this._onSeeking),this.media.removeEventListener("timeupdate",this._onTimeupdate),this.media.removeEventListener("waiting",this._onWaiting),this.media.removeEventListener("progress",this._onBufferUpdate),e.next=12,Promise.all([this._clear(),this._bufferService.destroy()]);case 12:this.media=null,this._bufferService=null;case 14:case"end":return e.stop()}},e,this)})),function(){return a.apply(this,arguments)})},{key:"_emitError",value:function(e){var t,n=!(arguments.length>1)||void 0===arguments[1]||arguments[1];tx.table(e),tx.error(e),tx.error(null==(t=this.media)?void 0:t.error),this._urlSwitching&&(this._urlSwitching=!1,this._seamlessSwitching=!1,this.emit(ew.SWITCH_URL_FAILED,e)),this.emit(ew.ERROR,e),n&&(this._seiService.reset(),this._end())}},{key:"_reset",value:(s=b(g().mark(function e(){var t,n=arguments;return g().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]&&n[0],this._seiService.reset(),this._bandwidthService.reset(),this._stats.reset(),e.next=6,this._clear();case 6:return e.next=8,this._bufferService.reset(t);case 8:case"end":return e.stop()}},e,this)})),function(){return s.apply(this,arguments)})},{key:"_loadData",value:(o=b(g().mark(function e(t,n){var r;return g().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t&&(this._opts.url=t),r=t=this._opts.url,t){e.next=4;break}throw Error("Source url is missing");case 4:if(this._opts.preProcessUrl&&(r=this._opts.preProcessUrl(t).url),this._mediaLoader.finnalUrl=r,this.emit(ew.LOAD_START,{url:r,seamlessSwitching:this._seamlessSwitching}),tx.debug("load data, loading:",this._loading,r),!this._loading){e.next=11;break}return e.next=11,this._mediaLoader.cancel();case 11:return this._loading=!0,e.prev=12,e.next=15,this._mediaLoader.load({url:r,range:n});case 15:e.next=21;break;case 17:return e.prev=17,e.t0=e.catch(12),this._loading=!1,e.abrupt("return",this._emitError(ee.network(e.t0),!1));case 21:case"end":return e.stop()}},e,this,[[12,17]])})),function(e,t){return o.apply(this,arguments)})},{key:"_clear",value:(l=b(g().mark(function e(){return g().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!this._mediaLoader){e.next=3;break}return e.next=3,this._mediaLoader.cancel();case 3:clearTimeout(this._maxChunkWaitTimer),clearTimeout(this._tickTimer),this._loading=!1,this._firstProgressEmit=!1;case 7:case"end":return e.stop()}},e,this)})),function(){return l.apply(this,arguments)})}],[{key:"isSupported",value:function(e){return e&&"video"!==e&&"audio"!==e?"undefined"!=typeof WebAssembly:ec.isSupported()}},{key:"enableLogger",value:function(){en.enable(),e5.enable()}},{key:"disableLogger",value:function(){en.disable(),e5.disable()}}]),c}(eL.default);try{localStorage.getItem("xgd")?tE.enableLogger():tE.disableLogger()}catch(e){}},616:function(e,t,n){"use strict";function r(e){return{all:e=e||new Map,on:function(t,n){var r=e.get(t);r?r.push(n):e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var r=e.get(t);r&&r.slice().map(function(e){e(n)}),(r=e.get("*"))&&r.slice().map(function(e){e(t,n)})}}}n.d(t,{Z:()=>r})},28:function(e,t,n){"use strict";let r,i,a,s,o;function l(e){let t=e.length;for(;--t>=0;)e[t]=0}n.d(t,{ec:()=>t$});let u=573,c=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),f=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),h=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),d=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),p=Array(576);l(p);let _=Array(60);l(_);let m=Array(512);l(m);let g=Array(256);l(g);let y=Array(29);l(y);let b=Array(30);function w(e,t,n,r,i){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=e&&e.length}function k(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}l(b);let x=e=>e<256?m[e]:m[256+(e>>>7)],E=(e,t)=>{e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255},S=(e,t,n)=>{e.bi_valid>16-n?(e.bi_buf|=t<<e.bi_valid&65535,E(e,e.bi_buf),e.bi_buf=t>>16-e.bi_valid,e.bi_valid+=n-16):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)},T=(e,t,n)=>{S(e,n[2*t],n[2*t+1])},A=(e,t)=>{let n=0;do n|=1&e,e>>>=1,n<<=1;while(--t>0);return n>>>1},O=e=>{16===e.bi_valid?(E(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)},C=(e,t)=>{let n,r,i,a,s,o,l=t.dyn_tree,c=t.max_code,f=t.stat_desc.static_tree,h=t.stat_desc.has_stree,d=t.stat_desc.extra_bits,p=t.stat_desc.extra_base,_=t.stat_desc.max_length,m=0;for(a=0;a<=15;a++)e.bl_count[a]=0;for(l[2*e.heap[e.heap_max]+1]=0,n=e.heap_max+1;n<u;n++)(a=l[2*l[2*(r=e.heap[n])+1]+1]+1)>_&&(a=_,m++),l[2*r+1]=a,!(r>c)&&(e.bl_count[a]++,s=0,r>=p&&(s=d[r-p]),o=l[2*r],e.opt_len+=o*(a+s),h&&(e.static_len+=o*(f[2*r+1]+s)));if(0!==m){do{for(a=_-1;0===e.bl_count[a];)a--;e.bl_count[a]--,e.bl_count[a+1]+=2,e.bl_count[_]--,m-=2}while(m>0);for(a=_;0!==a;a--)for(r=e.bl_count[a];0!==r;)!((i=e.heap[--n])>c)&&(l[2*i+1]!==a&&(e.opt_len+=(a-l[2*i+1])*l[2*i],l[2*i+1]=a),r--)}},D=(e,t,n)=>{let r,i,a=Array(16),s=0;for(r=1;r<=15;r++)s=s+n[r-1]<<1,a[r]=s;for(i=0;i<=t;i++){let t=e[2*i+1];0!==t&&(e[2*i]=A(a[t]++,t))}},R=()=>{let e,t,n,s,o,l=Array(16);for(s=0,n=0;s<28;s++)for(e=0,y[s]=n;e<1<<c[s];e++)g[n++]=s;for(g[n-1]=s,o=0,s=0;s<16;s++)for(e=0,b[s]=o;e<1<<f[s];e++)m[o++]=s;for(o>>=7;s<30;s++)for(e=0,b[s]=o<<7;e<1<<f[s]-7;e++)m[256+o++]=s;for(t=0;t<=15;t++)l[t]=0;for(e=0;e<=143;)p[2*e+1]=8,e++,l[8]++;for(;e<=255;)p[2*e+1]=9,e++,l[9]++;for(;e<=279;)p[2*e+1]=7,e++,l[7]++;for(;e<=287;)p[2*e+1]=8,e++,l[8]++;for(D(p,287,l),e=0;e<30;e++)_[2*e+1]=5,_[2*e]=A(e,5);r=new w(p,c,257,286,15),i=new w(_,f,0,30,15),a=new w([],h,0,19,7)},L=e=>{let t;for(t=0;t<286;t++)e.dyn_ltree[2*t]=0;for(t=0;t<30;t++)e.dyn_dtree[2*t]=0;for(t=0;t<19;t++)e.bl_tree[2*t]=0;e.dyn_ltree[512]=1,e.opt_len=e.static_len=0,e.sym_next=e.matches=0},P=e=>{e.bi_valid>8?E(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0},U=(e,t,n,r)=>{let i=2*t,a=2*n;return e[i]<e[a]||e[i]===e[a]&&r[t]<=r[n]},M=(e,t,n)=>{let r=e.heap[n],i=n<<1;for(;i<=e.heap_len&&(i<e.heap_len&&U(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!U(t,r,e.heap[i],e.depth));)e.heap[n]=e.heap[i],n=i,i<<=1;e.heap[n]=r},I=(e,t,n)=>{let r,i,a,s,o=0;if(0!==e.sym_next)do r=(255&e.pending_buf[e.sym_buf+o++])+((255&e.pending_buf[e.sym_buf+o++])<<8),i=e.pending_buf[e.sym_buf+o++],0===r?T(e,i,t):(T(e,(a=g[i])+256+1,t),0!==(s=c[a])&&S(e,i-=y[a],s),T(e,a=x(--r),n),0!==(s=f[a])&&S(e,r-=b[a],s));while(o<e.sym_next);T(e,256,t)},B=(e,t)=>{let n,r,i,a=t.dyn_tree,s=t.stat_desc.static_tree,o=t.stat_desc.has_stree,l=t.stat_desc.elems,c=-1;for(n=0,e.heap_len=0,e.heap_max=u;n<l;n++)0!==a[2*n]?(e.heap[++e.heap_len]=c=n,e.depth[n]=0):a[2*n+1]=0;for(;e.heap_len<2;)a[2*(i=e.heap[++e.heap_len]=c<2?++c:0)]=1,e.depth[i]=0,e.opt_len--,o&&(e.static_len-=s[2*i+1]);for(t.max_code=c,n=e.heap_len>>1;n>=1;n--)M(e,a,n);i=l;do n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],M(e,a,1),r=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=r,a[2*i]=a[2*n]+a[2*r],e.depth[i]=(e.depth[n]>=e.depth[r]?e.depth[n]:e.depth[r])+1,a[2*n+1]=a[2*r+1]=i,e.heap[1]=i++,M(e,a,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],C(e,t),D(a,c,e.bl_count)},F=(e,t,n)=>{let r,i,a=-1,s=t[1],o=0,l=7,u=4;for(0===s&&(l=138,u=3),t[(n+1)*2+1]=65535,r=0;r<=n;r++)i=s,s=t[(r+1)*2+1],++o<l&&i===s||(o<u?e.bl_tree[2*i]+=o:0!==i?(i!==a&&e.bl_tree[2*i]++,e.bl_tree[32]++):o<=10?e.bl_tree[34]++:e.bl_tree[36]++,o=0,a=i,0===s?(l=138,u=3):i===s?(l=6,u=3):(l=7,u=4))},j=(e,t,n)=>{let r,i,a=-1,s=t[1],o=0,l=7,u=4;for(0===s&&(l=138,u=3),r=0;r<=n;r++)if(i=s,s=t[(r+1)*2+1],!(++o<l)||i!==s){if(o<u)do T(e,i,e.bl_tree);while(0!=--o);else 0!==i?(i!==a&&(T(e,i,e.bl_tree),o--),T(e,16,e.bl_tree),S(e,o-3,2)):o<=10?(T(e,17,e.bl_tree),S(e,o-3,3)):(T(e,18,e.bl_tree),S(e,o-11,7));o=0,a=i,0===s?(l=138,u=3):i===s?(l=6,u=3):(l=7,u=4)}},N=e=>{let t;for(F(e,e.dyn_ltree,e.l_desc.max_code),F(e,e.dyn_dtree,e.d_desc.max_code),B(e,e.bl_desc),t=18;t>=3&&0===e.bl_tree[2*d[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t},z=(e,t,n,r)=>{let i;for(S(e,t-257,5),S(e,n-1,5),S(e,r-4,4),i=0;i<r;i++)S(e,e.bl_tree[2*d[i]+1],3);j(e,e.dyn_ltree,t-1),j(e,e.dyn_dtree,n-1)},V=e=>{let t,n=0xf3ffc07f;for(t=0;t<=31;t++,n>>>=1)if(1&n&&0!==e.dyn_ltree[2*t])return 0;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return 1;for(t=32;t<256;t++)if(0!==e.dyn_ltree[2*t])return 1;return 0},G=!1,H=(e,t,n,r)=>{S(e,0+ +!!r,3),P(e),E(e,n),E(e,~n),n&&e.pending_buf.set(e.window.subarray(t,t+n),e.pending),e.pending+=n};var q={_tr_init:e=>{G||(R(),G=!0),e.l_desc=new k(e.dyn_ltree,r),e.d_desc=new k(e.dyn_dtree,i),e.bl_desc=new k(e.bl_tree,a),e.bi_buf=0,e.bi_valid=0,L(e)},_tr_stored_block:H,_tr_flush_block:(e,t,n,r)=>{let i,a,s=0;e.level>0?(2===e.strm.data_type&&(e.strm.data_type=V(e)),B(e,e.l_desc),B(e,e.d_desc),s=N(e),i=e.opt_len+3+7>>>3,(a=e.static_len+3+7>>>3)<=i&&(i=a)):i=a=n+5,n+4<=i&&-1!==t?H(e,t,n,r):4===e.strategy||a===i?(S(e,2+ +!!r,3),I(e,p,_)):(S(e,4+ +!!r,3),z(e,e.l_desc.max_code+1,e.d_desc.max_code+1,s+1),I(e,e.dyn_ltree,e.dyn_dtree)),L(e),r&&P(e)},_tr_tally:(e,t,n)=>(e.pending_buf[e.sym_buf+e.sym_next++]=t,e.pending_buf[e.sym_buf+e.sym_next++]=t>>8,e.pending_buf[e.sym_buf+e.sym_next++]=n,0===t?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[(g[n]+256+1)*2]++,e.dyn_dtree[2*x(t)]++),e.sym_next===e.sym_end),_tr_align:e=>{S(e,2,3),T(e,256,p),O(e)}},W=(e,t,n,r)=>{let i=65535&e|0,a=e>>>16&65535|0,s=0;for(;0!==n;){s=n>2e3?2e3:n,n-=s;do a=a+(i=i+t[r++]|0)|0;while(--s);i%=65521,a%=65521}return i|a<<16|0};let K=new Uint32Array((()=>{let e,t=[];for(var n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?0xedb88320^e>>>1:e>>>1;t[n]=e}return t})());var $=(e,t,n,r)=>{let i=r+n;e^=-1;for(let n=r;n<i;n++)e=e>>>8^K[(e^t[n])&255];return -1^e},Z={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},Y={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};let{_tr_init:X,_tr_stored_block:J,_tr_flush_block:Q,_tr_tally:ee,_tr_align:et}=q,{Z_NO_FLUSH:en,Z_PARTIAL_FLUSH:er,Z_FULL_FLUSH:ei,Z_FINISH:ea,Z_BLOCK:es,Z_OK:eo,Z_STREAM_END:el,Z_STREAM_ERROR:eu,Z_DATA_ERROR:ec,Z_BUF_ERROR:ef,Z_DEFAULT_COMPRESSION:eh,Z_FILTERED:ed,Z_HUFFMAN_ONLY:ep,Z_RLE:e_,Z_FIXED:ev,Z_DEFAULT_STRATEGY:em,Z_UNKNOWN:eg,Z_DEFLATED:ey}=Y,eb=573,ew=(e,t)=>(e.msg=Z[t],t),ek=e=>2*e-9*(e>4),ex=e=>{let t=e.length;for(;--t>=0;)e[t]=0},eE=e=>{let t,n,r,i=e.w_size;r=t=e.hash_size;do n=e.head[--r],e.head[r]=n>=i?n-i:0;while(--t);r=t=i;do n=e.prev[--r],e.prev[r]=n>=i?n-i:0;while(--t)},eS=(e,t,n)=>(t<<e.hash_shift^n)&e.hash_mask,eT=e=>{let t=e.state,n=t.pending;n>e.avail_out&&(n=e.avail_out),0!==n&&(e.output.set(t.pending_buf.subarray(t.pending_out,t.pending_out+n),e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,0===t.pending&&(t.pending_out=0))},eA=(e,t)=>{Q(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,eT(e.strm)},eO=(e,t)=>{e.pending_buf[e.pending++]=t},eC=(e,t)=>{e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t},eD=(e,t,n,r)=>{let i=e.avail_in;return(i>r&&(i=r),0===i)?0:(e.avail_in-=i,t.set(e.input.subarray(e.next_in,e.next_in+i),n),1===e.state.wrap?e.adler=W(e.adler,t,i,n):2===e.state.wrap&&(e.adler=$(e.adler,t,i,n)),e.next_in+=i,e.total_in+=i,i)},eR=(e,t)=>{let n,r,i=e.max_chain_length,a=e.strstart,s=e.prev_length,o=e.nice_match,l=e.strstart>e.w_size-262?e.strstart-(e.w_size-262):0,u=e.window,c=e.w_mask,f=e.prev,h=e.strstart+258,d=u[a+s-1],p=u[a+s];e.prev_length>=e.good_match&&(i>>=2),o>e.lookahead&&(o=e.lookahead);do{if(u[(n=t)+s]!==p||u[n+s-1]!==d||u[n]!==u[a]||u[++n]!==u[a+1])continue;a+=2,n++;do;while(u[++a]===u[++n]&&u[++a]===u[++n]&&u[++a]===u[++n]&&u[++a]===u[++n]&&u[++a]===u[++n]&&u[++a]===u[++n]&&u[++a]===u[++n]&&u[++a]===u[++n]&&a<h);if(r=258-(h-a),a=h-258,r>s){if(e.match_start=t,s=r,r>=o)break;d=u[a+s-1],p=u[a+s]}}while((t=f[t&c])>l&&0!=--i);return s<=e.lookahead?s:e.lookahead},eL=e=>{let t,n,r,i=e.w_size;do{if(n=e.window_size-e.lookahead-e.strstart,e.strstart>=i+(i-262)&&(e.window.set(e.window.subarray(i,i+i-n),0),e.match_start-=i,e.strstart-=i,e.block_start-=i,e.insert>e.strstart&&(e.insert=e.strstart),eE(e),n+=i),0===e.strm.avail_in)break;if(t=eD(e.strm,e.window,e.strstart+e.lookahead,n),e.lookahead+=t,e.lookahead+e.insert>=3)for(r=e.strstart-e.insert,e.ins_h=e.window[r],e.ins_h=eS(e,e.ins_h,e.window[r+1]);e.insert&&(e.ins_h=eS(e,e.ins_h,e.window[r+3-1]),e.prev[r&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=r,r++,e.insert--,!(e.lookahead+e.insert<3)););}while(e.lookahead<262&&0!==e.strm.avail_in)},eP=(e,t)=>{let n=e.pending_buf_size-5>e.w_size?e.w_size:e.pending_buf_size-5,r,i,a,s=0,o=e.strm.avail_in;do{if(r=65535,a=e.bi_valid+42>>3,e.strm.avail_out<a||(a=e.strm.avail_out-a,r>(i=e.strstart-e.block_start)+e.strm.avail_in&&(r=i+e.strm.avail_in),r>a&&(r=a),r<n&&(0===r&&t!==ea||t===en||r!==i+e.strm.avail_in)))break;s=+(t===ea&&r===i+e.strm.avail_in),J(e,0,0,s),e.pending_buf[e.pending-4]=r,e.pending_buf[e.pending-3]=r>>8,e.pending_buf[e.pending-2]=~r,e.pending_buf[e.pending-1]=~r>>8,eT(e.strm),i&&(i>r&&(i=r),e.strm.output.set(e.window.subarray(e.block_start,e.block_start+i),e.strm.next_out),e.strm.next_out+=i,e.strm.avail_out-=i,e.strm.total_out+=i,e.block_start+=i,r-=i),r&&(eD(e.strm,e.strm.output,e.strm.next_out,r),e.strm.next_out+=r,e.strm.avail_out-=r,e.strm.total_out+=r)}while(0===s);return((o-=e.strm.avail_in)&&(o>=e.w_size?(e.matches=2,e.window.set(e.strm.input.subarray(e.strm.next_in-e.w_size,e.strm.next_in),0),e.strstart=e.w_size,e.insert=e.strstart):(e.window_size-e.strstart<=o&&(e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,e.insert>e.strstart&&(e.insert=e.strstart)),e.window.set(e.strm.input.subarray(e.strm.next_in-o,e.strm.next_in),e.strstart),e.strstart+=o,e.insert+=o>e.w_size-e.insert?e.w_size-e.insert:o),e.block_start=e.strstart),e.high_water<e.strstart&&(e.high_water=e.strstart),s)?4:t!==en&&t!==ea&&0===e.strm.avail_in&&e.strstart===e.block_start?2:(a=e.window_size-e.strstart,e.strm.avail_in>a&&e.block_start>=e.w_size&&(e.block_start-=e.w_size,e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,a+=e.w_size,e.insert>e.strstart&&(e.insert=e.strstart)),a>e.strm.avail_in&&(a=e.strm.avail_in),a&&(eD(e.strm,e.window,e.strstart,a),e.strstart+=a,e.insert+=a>e.w_size-e.insert?e.w_size-e.insert:a),e.high_water<e.strstart&&(e.high_water=e.strstart),a=e.bi_valid+42>>3,n=(a=e.pending_buf_size-a>65535?65535:e.pending_buf_size-a)>e.w_size?e.w_size:a,((i=e.strstart-e.block_start)>=n||(i||t===ea)&&t!==en&&0===e.strm.avail_in&&i<=a)&&(r=i>a?a:i,s=+(t===ea&&0===e.strm.avail_in&&r===i),J(e,e.block_start,r,s),e.block_start+=r,eT(e.strm)),s?3:1)},eU=(e,t)=>{let n,r;for(;;){if(e.lookahead<262){if(eL(e),e.lookahead<262&&t===en)return 1;if(0===e.lookahead)break}if(n=0,e.lookahead>=3&&(e.ins_h=eS(e,e.ins_h,e.window[e.strstart+3-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==n&&e.strstart-n<=e.w_size-262&&(e.match_length=eR(e,n)),e.match_length>=3)if(r=ee(e,e.strstart-e.match_start,e.match_length-3),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=3){e.match_length--;do e.strstart++,e.ins_h=eS(e,e.ins_h,e.window[e.strstart+3-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart;while(0!=--e.match_length);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=eS(e,e.ins_h,e.window[e.strstart+1]);else r=ee(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(eA(e,!1),0===e.strm.avail_out))return 1}return(e.insert=e.strstart<2?e.strstart:2,t===ea)?(eA(e,!0),0===e.strm.avail_out)?3:4:e.sym_next&&(eA(e,!1),0===e.strm.avail_out)?1:2},eM=(e,t)=>{let n,r,i;for(;;){if(e.lookahead<262){if(eL(e),e.lookahead<262&&t===en)return 1;if(0===e.lookahead)break}if(n=0,e.lookahead>=3&&(e.ins_h=eS(e,e.ins_h,e.window[e.strstart+3-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=2,0!==n&&e.prev_length<e.max_lazy_match&&e.strstart-n<=e.w_size-262&&(e.match_length=eR(e,n),e.match_length<=5&&(e.strategy===ed||3===e.match_length&&e.strstart-e.match_start>4096)&&(e.match_length=2)),e.prev_length>=3&&e.match_length<=e.prev_length){i=e.strstart+e.lookahead-3,r=ee(e,e.strstart-1-e.prev_match,e.prev_length-3),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=i&&(e.ins_h=eS(e,e.ins_h,e.window[e.strstart+3-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart);while(0!=--e.prev_length);if(e.match_available=0,e.match_length=2,e.strstart++,r&&(eA(e,!1),0===e.strm.avail_out))return 1}else if(e.match_available){if((r=ee(e,0,e.window[e.strstart-1]))&&eA(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return 1}else e.match_available=1,e.strstart++,e.lookahead--}return(e.match_available&&(r=ee(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<2?e.strstart:2,t===ea)?(eA(e,!0),0===e.strm.avail_out)?3:4:e.sym_next&&(eA(e,!1),0===e.strm.avail_out)?1:2},eI=(e,t)=>{let n,r,i,a,s=e.window;for(;;){if(e.lookahead<=258){if(eL(e),e.lookahead<=258&&t===en)return 1;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=3&&e.strstart>0&&(r=s[i=e.strstart-1])===s[++i]&&r===s[++i]&&r===s[++i]){a=e.strstart+258;do;while(r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&i<a);e.match_length=258-(a-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=3?(n=ee(e,1,e.match_length-3),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=ee(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(eA(e,!1),0===e.strm.avail_out))return 1}return(e.insert=0,t===ea)?(eA(e,!0),0===e.strm.avail_out)?3:4:e.sym_next&&(eA(e,!1),0===e.strm.avail_out)?1:2},eB=(e,t)=>{let n;for(;;){if(0===e.lookahead&&(eL(e),0===e.lookahead)){if(t===en)return 1;break}if(e.match_length=0,n=ee(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(eA(e,!1),0===e.strm.avail_out))return 1}return(e.insert=0,t===ea)?(eA(e,!0),0===e.strm.avail_out)?3:4:e.sym_next&&(eA(e,!1),0===e.strm.avail_out)?1:2};function eF(e,t,n,r,i){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=i}let ej=[new eF(0,0,0,0,eP),new eF(4,4,8,4,eU),new eF(4,5,16,8,eU),new eF(4,6,32,32,eU),new eF(4,4,16,16,eM),new eF(8,16,32,32,eM),new eF(8,16,128,128,eM),new eF(8,32,128,256,eM),new eF(32,128,258,1024,eM),new eF(32,258,258,4096,eM)],eN=e=>{e.window_size=2*e.w_size,ex(e.head),e.max_lazy_match=ej[e.level].max_lazy,e.good_match=ej[e.level].good_length,e.nice_match=ej[e.level].nice_length,e.max_chain_length=ej[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=2,e.match_available=0,e.ins_h=0};function ez(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=ey,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(2*eb),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),ex(this.dyn_ltree),ex(this.dyn_dtree),ex(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),ex(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),ex(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}let eV=e=>{if(!e)return 1;let t=e.state;return t&&t.strm===e&&(42===t.status||57===t.status||69===t.status||73===t.status||91===t.status||103===t.status||113===t.status||666===t.status)?0:1},eG=e=>{if(eV(e))return ew(e,eu);e.total_in=e.total_out=0,e.data_type=eg;let t=e.state;return t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=2===t.wrap?57:t.wrap?42:113,e.adler=+(2!==t.wrap),t.last_flush=-2,X(t),eo},eH=e=>{let t=eG(e);return t===eo&&eN(e.state),t};var eq={deflateInit2:(e,t,n,r,i,a)=>{if(!e)return eu;let s=1;if(t===eh&&(t=6),r<0?(s=0,r=-r):r>15&&(s=2,r-=16),i<1||i>9||n!==ey||r<8||r>15||t<0||t>9||a<0||a>ev||8===r&&1!==s)return ew(e,eu);8===r&&(r=9);let o=new ez;return e.state=o,o.strm=e,o.status=42,o.wrap=s,o.gzhead=null,o.w_bits=r,o.w_size=1<<o.w_bits,o.w_mask=o.w_size-1,o.hash_bits=i+7,o.hash_size=1<<o.hash_bits,o.hash_mask=o.hash_size-1,o.hash_shift=~~((o.hash_bits+3-1)/3),o.window=new Uint8Array(2*o.w_size),o.head=new Uint16Array(o.hash_size),o.prev=new Uint16Array(o.w_size),o.lit_bufsize=1<<i+6,o.pending_buf_size=4*o.lit_bufsize,o.pending_buf=new Uint8Array(o.pending_buf_size),o.sym_buf=o.lit_bufsize,o.sym_end=(o.lit_bufsize-1)*3,o.level=t,o.strategy=a,o.method=n,eH(e)},deflateSetHeader:(e,t)=>eV(e)||2!==e.state.wrap?eu:(e.state.gzhead=t,eo),deflate:(e,t)=>{if(eV(e)||t>es||t<0)return e?ew(e,eu):eu;let n=e.state;if(!e.output||0!==e.avail_in&&!e.input||666===n.status&&t!==ea)return ew(e,0===e.avail_out?ef:eu);let r=n.last_flush;if(n.last_flush=t,0!==n.pending){if(eT(e),0===e.avail_out)return n.last_flush=-1,eo}else if(0===e.avail_in&&ek(t)<=ek(r)&&t!==ea)return ew(e,ef);if(666===n.status&&0!==e.avail_in)return ew(e,ef);if(42===n.status&&0===n.wrap&&(n.status=113),42===n.status){let t=ey+(n.w_bits-8<<4)<<8,r=-1;if(t|=(n.strategy>=ep||n.level<2?0:n.level<6?1:6===n.level?2:3)<<6,0!==n.strstart&&(t|=32),eC(n,t+=31-t%31),0!==n.strstart&&(eC(n,e.adler>>>16),eC(n,65535&e.adler)),e.adler=1,n.status=113,eT(e),0!==n.pending)return n.last_flush=-1,eo}if(57===n.status){if(e.adler=0,eO(n,31),eO(n,139),eO(n,8),n.gzhead)eO(n,+!!n.gzhead.text+2*!!n.gzhead.hcrc+4*!!n.gzhead.extra+8*!!n.gzhead.name+16*!!n.gzhead.comment),eO(n,255&n.gzhead.time),eO(n,n.gzhead.time>>8&255),eO(n,n.gzhead.time>>16&255),eO(n,n.gzhead.time>>24&255),eO(n,9===n.level?2:4*(n.strategy>=ep||n.level<2)),eO(n,255&n.gzhead.os),n.gzhead.extra&&n.gzhead.extra.length&&(eO(n,255&n.gzhead.extra.length),eO(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(e.adler=$(e.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=69;else if(eO(n,0),eO(n,0),eO(n,0),eO(n,0),eO(n,0),eO(n,9===n.level?2:4*(n.strategy>=ep||n.level<2)),eO(n,3),n.status=113,eT(e),0!==n.pending)return n.last_flush=-1,eo}if(69===n.status){if(n.gzhead.extra){let t=n.pending,r=(65535&n.gzhead.extra.length)-n.gzindex;for(;n.pending+r>n.pending_buf_size;){let i=n.pending_buf_size-n.pending;if(n.pending_buf.set(n.gzhead.extra.subarray(n.gzindex,n.gzindex+i),n.pending),n.pending=n.pending_buf_size,n.gzhead.hcrc&&n.pending>t&&(e.adler=$(e.adler,n.pending_buf,n.pending-t,t)),n.gzindex+=i,eT(e),0!==n.pending)return n.last_flush=-1,eo;t=0,r-=i}let i=new Uint8Array(n.gzhead.extra);n.pending_buf.set(i.subarray(n.gzindex,n.gzindex+r),n.pending),n.pending+=r,n.gzhead.hcrc&&n.pending>t&&(e.adler=$(e.adler,n.pending_buf,n.pending-t,t)),n.gzindex=0}n.status=73}if(73===n.status){if(n.gzhead.name){let t,r=n.pending;do{if(n.pending===n.pending_buf_size){if(n.gzhead.hcrc&&n.pending>r&&(e.adler=$(e.adler,n.pending_buf,n.pending-r,r)),eT(e),0!==n.pending)return n.last_flush=-1,eo;r=0}t=n.gzindex<n.gzhead.name.length?255&n.gzhead.name.charCodeAt(n.gzindex++):0,eO(n,t)}while(0!==t);n.gzhead.hcrc&&n.pending>r&&(e.adler=$(e.adler,n.pending_buf,n.pending-r,r)),n.gzindex=0}n.status=91}if(91===n.status){if(n.gzhead.comment){let t,r=n.pending;do{if(n.pending===n.pending_buf_size){if(n.gzhead.hcrc&&n.pending>r&&(e.adler=$(e.adler,n.pending_buf,n.pending-r,r)),eT(e),0!==n.pending)return n.last_flush=-1,eo;r=0}t=n.gzindex<n.gzhead.comment.length?255&n.gzhead.comment.charCodeAt(n.gzindex++):0,eO(n,t)}while(0!==t);n.gzhead.hcrc&&n.pending>r&&(e.adler=$(e.adler,n.pending_buf,n.pending-r,r))}n.status=103}if(103===n.status){if(n.gzhead.hcrc){if(n.pending+2>n.pending_buf_size&&(eT(e),0!==n.pending))return n.last_flush=-1,eo;eO(n,255&e.adler),eO(n,e.adler>>8&255),e.adler=0}if(n.status=113,eT(e),0!==n.pending)return n.last_flush=-1,eo}if(0!==e.avail_in||0!==n.lookahead||t!==en&&666!==n.status){let r=0===n.level?eP(n,t):n.strategy===ep?eB(n,t):n.strategy===e_?eI(n,t):ej[n.level].func(n,t);if((3===r||4===r)&&(n.status=666),1===r||3===r)return 0===e.avail_out&&(n.last_flush=-1),eo;if(2===r&&(t===er?et(n):t!==es&&(J(n,0,0,!1),t===ei&&(ex(n.head),0===n.lookahead&&(n.strstart=0,n.block_start=0,n.insert=0))),eT(e),0===e.avail_out))return n.last_flush=-1,eo}return t!==ea?eo:n.wrap<=0?el:(2===n.wrap?(eO(n,255&e.adler),eO(n,e.adler>>8&255),eO(n,e.adler>>16&255),eO(n,e.adler>>24&255),eO(n,255&e.total_in),eO(n,e.total_in>>8&255),eO(n,e.total_in>>16&255),eO(n,e.total_in>>24&255)):(eC(n,e.adler>>>16),eC(n,65535&e.adler)),eT(e),n.wrap>0&&(n.wrap=-n.wrap),0!==n.pending?eo:el)},deflateEnd:e=>{if(eV(e))return eu;let t=e.state.status;return e.state=null,113===t?ew(e,ec):eo},deflateSetDictionary:(e,t)=>{let n=t.length;if(eV(e))return eu;let r=e.state,i=r.wrap;if(2===i||1===i&&42!==r.status||r.lookahead)return eu;if(1===i&&(e.adler=W(e.adler,t,n,0)),r.wrap=0,n>=r.w_size){0===i&&(ex(r.head),r.strstart=0,r.block_start=0,r.insert=0);let e=new Uint8Array(r.w_size);e.set(t.subarray(n-r.w_size,n),0),t=e,n=r.w_size}let a=e.avail_in,s=e.next_in,o=e.input;for(e.avail_in=n,e.next_in=0,e.input=t,eL(r);r.lookahead>=3;){let e=r.strstart,t=r.lookahead-2;do r.ins_h=eS(r,r.ins_h,r.window[e+3-1]),r.prev[e&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=e,e++;while(--t);r.strstart=e,r.lookahead=2,eL(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=2,r.match_available=0,e.next_in=s,e.input=o,e.avail_in=a,r.wrap=i,eo}};let eW=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var eK={assign:function(e){let t=Array.prototype.slice.call(arguments,1);for(;t.length;){let n=t.shift();if(n){if("object"!=typeof n)throw TypeError(n+"must be non-object");for(let t in n)eW(n,t)&&(e[t]=n[t])}}return e},flattenChunks:e=>{let t=0;for(let n=0,r=e.length;n<r;n++)t+=e[n].length;let n=new Uint8Array(t);for(let t=0,r=0,i=e.length;t<i;t++){let i=e[t];n.set(i,r),r+=i.length}return n}};let e$=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(e){e$=!1}let eZ=new Uint8Array(256);for(let e=0;e<256;e++)eZ[e]=e>=252?6:e>=248?5:e>=240?4:e>=224?3:e>=192?2:1;eZ[254]=eZ[254]=1;let eY=(e,t)=>{if(t<65534&&e.subarray&&e$)return String.fromCharCode.apply(null,e.length===t?e:e.subarray(0,t));let n="";for(let r=0;r<t;r++)n+=String.fromCharCode(e[r]);return n};var eX={string2buf:e=>{if("function"==typeof TextEncoder&&TextEncoder.prototype.encode)return new TextEncoder().encode(e);let t,n,r,i,a,s=e.length,o=0;for(i=0;i<s;i++)(64512&(n=e.charCodeAt(i)))==55296&&i+1<s&&(64512&(r=e.charCodeAt(i+1)))==56320&&(n=65536+(n-55296<<10)+(r-56320),i++),o+=n<128?1:n<2048?2:n<65536?3:4;for(a=0,t=new Uint8Array(o),i=0;a<o;i++)(64512&(n=e.charCodeAt(i)))==55296&&i+1<s&&(64512&(r=e.charCodeAt(i+1)))==56320&&(n=65536+(n-55296<<10)+(r-56320),i++),n<128?t[a++]=n:(n<2048?t[a++]=192|n>>>6:(n<65536?t[a++]=224|n>>>12:(t[a++]=240|n>>>18,t[a++]=128|n>>>12&63),t[a++]=128|n>>>6&63),t[a++]=128|63&n);return t},buf2string:(e,t)=>{let n,r,i=t||e.length;if("function"==typeof TextDecoder&&TextDecoder.prototype.decode)return new TextDecoder().decode(e.subarray(0,t));let a=Array(2*i);for(r=0,n=0;n<i;){let t=e[n++];if(t<128){a[r++]=t;continue}let s=eZ[t];if(s>4){a[r++]=65533,n+=s-1;continue}for(t&=2===s?31:3===s?15:7;s>1&&n<i;)t=t<<6|63&e[n++],s--;if(s>1){a[r++]=65533;continue}t<65536?a[r++]=t:(t-=65536,a[r++]=55296|t>>10&1023,a[r++]=56320|1023&t)}return eY(a,r)},utf8border:(e,t)=>{(t=t||e.length)>e.length&&(t=e.length);let n=t-1;for(;n>=0&&(192&e[n])==128;)n--;return n<0||0===n?t:n+eZ[e[n]]>t?n:t}},eJ=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0};let eQ=Object.prototype.toString,{Z_NO_FLUSH:e0,Z_SYNC_FLUSH:e1,Z_FULL_FLUSH:e2,Z_FINISH:e5,Z_OK:e6,Z_STREAM_END:e3,Z_DEFAULT_COMPRESSION:e8,Z_DEFAULT_STRATEGY:e4,Z_DEFLATED:e9}=Y;function e7(e){this.options=eK.assign({level:e8,method:e9,chunkSize:16384,windowBits:15,memLevel:8,strategy:e4},e||{});let t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new eJ,this.strm.avail_out=0;let n=eq.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(n!==e6)throw Error(Z[n]);if(t.header&&eq.deflateSetHeader(this.strm,t.header),t.dictionary){let e;if(e="string"==typeof t.dictionary?eX.string2buf(t.dictionary):"[object ArrayBuffer]"===eQ.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,(n=eq.deflateSetDictionary(this.strm,e))!==e6)throw Error(Z[n]);this._dict_set=!0}}function te(e,t){let n=new e7(t);if(n.push(e,!0),n.err)throw n.msg||Z[n.err];return n.result}e7.prototype.push=function(e,t){let n,r,i=this.strm,a=this.options.chunkSize;if(this.ended)return!1;for(r=t===~~t?t:!0===t?e5:e0,"string"==typeof e?i.input=eX.string2buf(e):"[object ArrayBuffer]"===eQ.call(e)?i.input=new Uint8Array(e):i.input=e,i.next_in=0,i.avail_in=i.input.length;;){if(0===i.avail_out&&(i.output=new Uint8Array(a),i.next_out=0,i.avail_out=a),(r===e1||r===e2)&&i.avail_out<=6){this.onData(i.output.subarray(0,i.next_out)),i.avail_out=0;continue}if((n=eq.deflate(i,r))===e3)return i.next_out>0&&this.onData(i.output.subarray(0,i.next_out)),n=eq.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===e6;if(0===i.avail_out){this.onData(i.output);continue}if(r>0&&i.next_out>0){this.onData(i.output.subarray(0,i.next_out)),i.avail_out=0;continue}if(0===i.avail_in)break}return!0},e7.prototype.onData=function(e){this.chunks.push(e)},e7.prototype.onEnd=function(e){e===e6&&(this.result=eK.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};var tt=function(e,t){let n,r,i,a,s,o,l,u,c,f,h,d,p,_,m,g,y,b,w,k,x,E,S,T,A=e.state;n=e.next_in,S=e.input,r=n+(e.avail_in-5),i=e.next_out,T=e.output,a=i-(t-e.avail_out),s=i+(e.avail_out-257),o=A.dmax,l=A.wsize,u=A.whave,c=A.wnext,f=A.window,h=A.hold,d=A.bits,p=A.lencode,_=A.distcode,m=(1<<A.lenbits)-1,g=(1<<A.distbits)-1;e:do for(d<15&&(h+=S[n++]<<d,d+=8,h+=S[n++]<<d,d+=8),y=p[h&m];;){if(h>>>=b=y>>>24,d-=b,0==(b=y>>>16&255))T[i++]=65535&y;else if(16&b)for(w=65535&y,(b&=15)&&(d<b&&(h+=S[n++]<<d,d+=8),w+=h&(1<<b)-1,h>>>=b,d-=b),d<15&&(h+=S[n++]<<d,d+=8,h+=S[n++]<<d,d+=8),y=_[h&g];;){if(h>>>=b=y>>>24,d-=b,16&(b=y>>>16&255)){if(k=65535&y,d<(b&=15)&&(h+=S[n++]<<d,(d+=8)<b&&(h+=S[n++]<<d,d+=8)),(k+=h&(1<<b)-1)>o){e.msg="invalid distance too far back",A.mode=16209;break e}if(h>>>=b,d-=b,k>(b=i-a)){if((b=k-b)>u&&A.sane){e.msg="invalid distance too far back",A.mode=16209;break e}if(x=0,E=f,0===c){if(x+=l-b,b<w){w-=b;do T[i++]=f[x++];while(--b);x=i-k,E=T}}else if(c<b){if(x+=l+c-b,(b-=c)<w){w-=b;do T[i++]=f[x++];while(--b);if(x=0,c<w){w-=b=c;do T[i++]=f[x++];while(--b);x=i-k,E=T}}}else if(x+=c-b,b<w){w-=b;do T[i++]=f[x++];while(--b);x=i-k,E=T}for(;w>2;)T[i++]=E[x++],T[i++]=E[x++],T[i++]=E[x++],w-=3;w&&(T[i++]=E[x++],w>1&&(T[i++]=E[x++]))}else{x=i-k;do T[i++]=T[x++],T[i++]=T[x++],T[i++]=T[x++],w-=3;while(w>2);w&&(T[i++]=T[x++],w>1&&(T[i++]=T[x++]))}}else if((64&b)==0){y=_[(65535&y)+(h&(1<<b)-1)];continue}else{e.msg="invalid distance code",A.mode=16209;break e}break}else if((64&b)==0){y=p[(65535&y)+(h&(1<<b)-1)];continue}else if(32&b){A.mode=16191;break e}else{e.msg="invalid literal/length code",A.mode=16209;break e}break}while(n<r&&i<s);n-=w=d>>3,d-=w<<3,h&=(1<<d)-1,e.next_in=n,e.next_out=i,e.avail_in=n<r?5+(r-n):5-(n-r),e.avail_out=i<s?257+(s-i):257-(i-s),A.hold=h,A.bits=d};let tn=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),tr=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),ti=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),ta=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]);var ts=(e,t,n,r,i,a,s,o)=>{let l,u,c,f,h,d,p,_,m,g=o.bits,y=0,b=0,w=0,k=0,x=0,E=0,S=0,T=0,A=0,O=0,C=null,D=new Uint16Array(16),R=new Uint16Array(16),L=null;for(y=0;y<=15;y++)D[y]=0;for(b=0;b<r;b++)D[t[n+b]]++;for(k=15,x=g;k>=1&&0===D[k];k--);if(x>k&&(x=k),0===k)return i[a++]=0x1400000,i[a++]=0x1400000,o.bits=1,0;for(w=1;w<k&&0===D[w];w++);for(x<w&&(x=w),T=1,y=1;y<=15;y++)if(T<<=1,(T-=D[y])<0)return -1;if(T>0&&(0===e||1!==k))return -1;for(y=1,R[1]=0;y<15;y++)R[y+1]=R[y]+D[y];for(b=0;b<r;b++)0!==t[n+b]&&(s[R[t[n+b]]++]=b);if(0===e?(C=L=s,d=20):1===e?(C=tn,L=tr,d=257):(C=ti,L=ta,d=0),O=0,b=0,y=w,h=a,E=x,S=0,c=-1,f=(A=1<<x)-1,1===e&&A>852||2===e&&A>592)return 1;for(;;){p=y-S,s[b]+1<d?(_=0,m=s[b]):s[b]>=d?(_=L[s[b]-d],m=C[s[b]-d]):(_=96,m=0),l=1<<y-S,w=u=1<<E;do i[h+(O>>S)+(u-=l)]=p<<24|_<<16|m|0;while(0!==u);for(l=1<<y-1;O&l;)l>>=1;if(0!==l?(O&=l-1,O+=l):O=0,b++,0==--D[y]){if(y===k)break;y=t[n+s[b]]}if(y>x&&(O&f)!==c){for(0===S&&(S=x),h+=w,T=1<<(E=y-S);E+S<k&&!((T-=D[E+S])<=0);)E++,T<<=1;if(A+=1<<E,1===e&&A>852||2===e&&A>592)return 1;i[c=O&f]=x<<24|E<<16|h-a|0}}return 0!==O&&(i[h+O]=y-S<<24|4194304),o.bits=x,0};let{Z_FINISH:to,Z_BLOCK:tl,Z_TREES:tu,Z_OK:tc,Z_STREAM_END:tf,Z_NEED_DICT:th,Z_STREAM_ERROR:td,Z_DATA_ERROR:tp,Z_MEM_ERROR:t_,Z_BUF_ERROR:tv,Z_DEFLATED:tm}=Y,tg=e=>(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24);function ty(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}let tb=e=>{if(!e)return 1;let t=e.state;return+(!t||t.strm!==e||t.mode<16180||t.mode>16211)},tw=e=>{if(tb(e))return td;let t=e.state;return e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=16180,t.last=0,t.havedict=0,t.flags=-1,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Int32Array(852),t.distcode=t.distdyn=new Int32Array(592),t.sane=1,t.back=-1,tc},tk=e=>{if(tb(e))return td;let t=e.state;return t.wsize=0,t.whave=0,t.wnext=0,tw(e)},tx=(e,t)=>{let n;if(tb(e))return td;let r=e.state;return(t<0?(n=0,t=-t):(n=(t>>4)+5,t<48&&(t&=15)),t&&(t<8||t>15))?td:(null!==r.window&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,tk(e))},tE=!0,tS=e=>{if(tE){s=new Int32Array(512),o=new Int32Array(32);let t=0;for(;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(ts(1,e.lens,0,288,s,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;ts(2,e.lens,0,32,o,0,e.work,{bits:5}),tE=!1}e.lencode=s,e.lenbits=9,e.distcode=o,e.distbits=5},tT=(e,t,n,r)=>{let i,a=e.state;return null===a.window&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new Uint8Array(a.wsize)),r>=a.wsize?(a.window.set(t.subarray(n-a.wsize,n),0),a.wnext=0,a.whave=a.wsize):((i=a.wsize-a.wnext)>r&&(i=r),a.window.set(t.subarray(n-r,n-r+i),a.wnext),(r-=i)?(a.window.set(t.subarray(n-r,n),0),a.wnext=r,a.whave=a.wsize):(a.wnext+=i,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=i))),0};var tA={inflateReset:tk,inflateInit2:(e,t)=>{if(!e)return td;let n=new ty;e.state=n,n.strm=e,n.window=null,n.mode=16180;let r=tx(e,t);return r!==tc&&(e.state=null),r},inflate:(e,t)=>{let n,r,i,a,s,o,l,u,c,f,h,d,p,_,m,g,y,b,w,k,x,E,S,T,A=0,O=new Uint8Array(4),C=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(tb(e)||!e.output||!e.input&&0!==e.avail_in)return td;16191===(n=e.state).mode&&(n.mode=16192),s=e.next_out,i=e.output,l=e.avail_out,a=e.next_in,r=e.input,o=e.avail_in,u=n.hold,c=n.bits,f=o,h=l,E=tc;t:for(;;)switch(n.mode){case 16180:if(0===n.wrap){n.mode=16192;break}for(;c<16;){if(0===o)break t;o--,u+=r[a++]<<c,c+=8}if(2&n.wrap&&35615===u){0===n.wbits&&(n.wbits=15),n.check=0,O[0]=255&u,O[1]=u>>>8&255,n.check=$(n.check,O,2,0),u=0,c=0,n.mode=16181;break}if(n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&u)<<8)+(u>>8))%31){e.msg="incorrect header check",n.mode=16209;break}if((15&u)!==tm){e.msg="unknown compression method",n.mode=16209;break}if(u>>>=4,c-=4,x=(15&u)+8,0===n.wbits&&(n.wbits=x),x>15||x>n.wbits){e.msg="invalid window size",n.mode=16209;break}n.dmax=1<<n.wbits,n.flags=0,e.adler=n.check=1,n.mode=512&u?16189:16191,u=0,c=0;break;case 16181:for(;c<16;){if(0===o)break t;o--,u+=r[a++]<<c,c+=8}if(n.flags=u,(255&n.flags)!==tm){e.msg="unknown compression method",n.mode=16209;break}if(57344&n.flags){e.msg="unknown header flags set",n.mode=16209;break}n.head&&(n.head.text=u>>8&1),512&n.flags&&4&n.wrap&&(O[0]=255&u,O[1]=u>>>8&255,n.check=$(n.check,O,2,0)),u=0,c=0,n.mode=16182;case 16182:for(;c<32;){if(0===o)break t;o--,u+=r[a++]<<c,c+=8}n.head&&(n.head.time=u),512&n.flags&&4&n.wrap&&(O[0]=255&u,O[1]=u>>>8&255,O[2]=u>>>16&255,O[3]=u>>>24&255,n.check=$(n.check,O,4,0)),u=0,c=0,n.mode=16183;case 16183:for(;c<16;){if(0===o)break t;o--,u+=r[a++]<<c,c+=8}n.head&&(n.head.xflags=255&u,n.head.os=u>>8),512&n.flags&&4&n.wrap&&(O[0]=255&u,O[1]=u>>>8&255,n.check=$(n.check,O,2,0)),u=0,c=0,n.mode=16184;case 16184:if(1024&n.flags){for(;c<16;){if(0===o)break t;o--,u+=r[a++]<<c,c+=8}n.length=u,n.head&&(n.head.extra_len=u),512&n.flags&&4&n.wrap&&(O[0]=255&u,O[1]=u>>>8&255,n.check=$(n.check,O,2,0)),u=0,c=0}else n.head&&(n.head.extra=null);n.mode=16185;case 16185:if(1024&n.flags&&((d=n.length)>o&&(d=o),d&&(n.head&&(x=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Uint8Array(n.head.extra_len)),n.head.extra.set(r.subarray(a,a+d),x)),512&n.flags&&4&n.wrap&&(n.check=$(n.check,r,d,a)),o-=d,a+=d,n.length-=d),n.length))break t;n.length=0,n.mode=16186;case 16186:if(2048&n.flags){if(0===o)break t;d=0;do x=r[a+d++],n.head&&x&&n.length<65536&&(n.head.name+=String.fromCharCode(x));while(x&&d<o);if(512&n.flags&&4&n.wrap&&(n.check=$(n.check,r,d,a)),o-=d,a+=d,x)break t}else n.head&&(n.head.name=null);n.length=0,n.mode=16187;case 16187:if(4096&n.flags){if(0===o)break t;d=0;do x=r[a+d++],n.head&&x&&n.length<65536&&(n.head.comment+=String.fromCharCode(x));while(x&&d<o);if(512&n.flags&&4&n.wrap&&(n.check=$(n.check,r,d,a)),o-=d,a+=d,x)break t}else n.head&&(n.head.comment=null);n.mode=16188;case 16188:if(512&n.flags){for(;c<16;){if(0===o)break t;o--,u+=r[a++]<<c,c+=8}if(4&n.wrap&&u!==(65535&n.check)){e.msg="header crc mismatch",n.mode=16209;break}u=0,c=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=16191;break;case 16189:for(;c<32;){if(0===o)break t;o--,u+=r[a++]<<c,c+=8}e.adler=n.check=tg(u),u=0,c=0,n.mode=16190;case 16190:if(0===n.havedict)return e.next_out=s,e.avail_out=l,e.next_in=a,e.avail_in=o,n.hold=u,n.bits=c,th;e.adler=n.check=1,n.mode=16191;case 16191:if(t===tl||t===tu)break t;case 16192:if(n.last){u>>>=7&c,c-=7&c,n.mode=16206;break}for(;c<3;){if(0===o)break t;o--,u+=r[a++]<<c,c+=8}switch(n.last=1&u,c-=1,3&(u>>>=1)){case 0:n.mode=16193;break;case 1:if(tS(n),n.mode=16199,t===tu){u>>>=2,c-=2;break t}break;case 2:n.mode=16196;break;case 3:e.msg="invalid block type",n.mode=16209}u>>>=2,c-=2;break;case 16193:for(u>>>=7&c,c-=7&c;c<32;){if(0===o)break t;o--,u+=r[a++]<<c,c+=8}if((65535&u)!=(u>>>16^65535)){e.msg="invalid stored block lengths",n.mode=16209;break}if(n.length=65535&u,u=0,c=0,n.mode=16194,t===tu)break t;case 16194:n.mode=16195;case 16195:if(d=n.length){if(d>o&&(d=o),d>l&&(d=l),0===d)break t;i.set(r.subarray(a,a+d),s),o-=d,a+=d,l-=d,s+=d,n.length-=d;break}n.mode=16191;break;case 16196:for(;c<14;){if(0===o)break t;o--,u+=r[a++]<<c,c+=8}if(n.nlen=(31&u)+257,c-=5,n.ndist=(31&(u>>>=5))+1,c-=5,n.ncode=(15&(u>>>=5))+4,u>>>=4,c-=4,n.nlen>286||n.ndist>30){e.msg="too many length or distance symbols",n.mode=16209;break}n.have=0,n.mode=16197;case 16197:for(;n.have<n.ncode;){for(;c<3;){if(0===o)break t;o--,u+=r[a++]<<c,c+=8}n.lens[C[n.have++]]=7&u,u>>>=3,c-=3}for(;n.have<19;)n.lens[C[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,S={bits:n.lenbits},E=ts(0,n.lens,0,19,n.lencode,0,n.work,S),n.lenbits=S.bits,E){e.msg="invalid code lengths set",n.mode=16209;break}n.have=0,n.mode=16198;case 16198:for(;n.have<n.nlen+n.ndist;){for(;m=(A=n.lencode[u&(1<<n.lenbits)-1])>>>24,g=A>>>16&255,y=65535&A,!(m<=c);){if(0===o)break t;o--,u+=r[a++]<<c,c+=8}if(y<16)u>>>=m,c-=m,n.lens[n.have++]=y;else{if(16===y){for(T=m+2;c<T;){if(0===o)break t;o--,u+=r[a++]<<c,c+=8}if(u>>>=m,c-=m,0===n.have){e.msg="invalid bit length repeat",n.mode=16209;break}x=n.lens[n.have-1],d=3+(3&u),u>>>=2,c-=2}else if(17===y){for(T=m+3;c<T;){if(0===o)break t;o--,u+=r[a++]<<c,c+=8}u>>>=m,c-=m,x=0,d=3+(7&u),u>>>=3,c-=3}else{for(T=m+7;c<T;){if(0===o)break t;o--,u+=r[a++]<<c,c+=8}u>>>=m,c-=m,x=0,d=11+(127&u),u>>>=7,c-=7}if(n.have+d>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=16209;break}for(;d--;)n.lens[n.have++]=x}}if(16209===n.mode)break;if(0===n.lens[256]){e.msg="invalid code -- missing end-of-block",n.mode=16209;break}if(n.lenbits=9,S={bits:n.lenbits},E=ts(1,n.lens,0,n.nlen,n.lencode,0,n.work,S),n.lenbits=S.bits,E){e.msg="invalid literal/lengths set",n.mode=16209;break}if(n.distbits=6,n.distcode=n.distdyn,S={bits:n.distbits},E=ts(2,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,S),n.distbits=S.bits,E){e.msg="invalid distances set",n.mode=16209;break}if(n.mode=16199,t===tu)break t;case 16199:n.mode=16200;case 16200:if(o>=6&&l>=258){e.next_out=s,e.avail_out=l,e.next_in=a,e.avail_in=o,n.hold=u,n.bits=c,tt(e,h),s=e.next_out,i=e.output,l=e.avail_out,a=e.next_in,r=e.input,o=e.avail_in,u=n.hold,c=n.bits,16191===n.mode&&(n.back=-1);break}for(n.back=0;m=(A=n.lencode[u&(1<<n.lenbits)-1])>>>24,g=A>>>16&255,y=65535&A,!(m<=c);){if(0===o)break t;o--,u+=r[a++]<<c,c+=8}if(g&&(240&g)==0){for(b=m,w=g,k=y;m=(A=n.lencode[k+((u&(1<<b+w)-1)>>b)])>>>24,g=A>>>16&255,y=65535&A,!(b+m<=c);){if(0===o)break t;o--,u+=r[a++]<<c,c+=8}u>>>=b,c-=b,n.back+=b}if(u>>>=m,c-=m,n.back+=m,n.length=y,0===g){n.mode=16205;break}if(32&g){n.back=-1,n.mode=16191;break}if(64&g){e.msg="invalid literal/length code",n.mode=16209;break}n.extra=15&g,n.mode=16201;case 16201:if(n.extra){for(T=n.extra;c<T;){if(0===o)break t;o--,u+=r[a++]<<c,c+=8}n.length+=u&(1<<n.extra)-1,u>>>=n.extra,c-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=16202;case 16202:for(;m=(A=n.distcode[u&(1<<n.distbits)-1])>>>24,g=A>>>16&255,y=65535&A,!(m<=c);){if(0===o)break t;o--,u+=r[a++]<<c,c+=8}if((240&g)==0){for(b=m,w=g,k=y;m=(A=n.distcode[k+((u&(1<<b+w)-1)>>b)])>>>24,g=A>>>16&255,y=65535&A,!(b+m<=c);){if(0===o)break t;o--,u+=r[a++]<<c,c+=8}u>>>=b,c-=b,n.back+=b}if(u>>>=m,c-=m,n.back+=m,64&g){e.msg="invalid distance code",n.mode=16209;break}n.offset=y,n.extra=15&g,n.mode=16203;case 16203:if(n.extra){for(T=n.extra;c<T;){if(0===o)break t;o--,u+=r[a++]<<c,c+=8}n.offset+=u&(1<<n.extra)-1,u>>>=n.extra,c-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=16209;break}n.mode=16204;case 16204:if(0===l)break t;if(d=h-l,n.offset>d){if((d=n.offset-d)>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=16209;break}d>n.wnext?(d-=n.wnext,p=n.wsize-d):p=n.wnext-d,d>n.length&&(d=n.length),_=n.window}else _=i,p=s-n.offset,d=n.length;d>l&&(d=l),l-=d,n.length-=d;do i[s++]=_[p++];while(--d);0===n.length&&(n.mode=16200);break;case 16205:if(0===l)break t;i[s++]=n.length,l--,n.mode=16200;break;case 16206:if(n.wrap){for(;c<32;){if(0===o)break t;o--,u|=r[a++]<<c,c+=8}if(h-=l,e.total_out+=h,n.total+=h,4&n.wrap&&h&&(e.adler=n.check=n.flags?$(n.check,i,h,s-h):W(n.check,i,h,s-h)),h=l,4&n.wrap&&(n.flags?u:tg(u))!==n.check){e.msg="incorrect data check",n.mode=16209;break}u=0,c=0}n.mode=16207;case 16207:if(n.wrap&&n.flags){for(;c<32;){if(0===o)break t;o--,u+=r[a++]<<c,c+=8}if(4&n.wrap&&u!==(0xffffffff&n.total)){e.msg="incorrect length check",n.mode=16209;break}u=0,c=0}n.mode=16208;case 16208:E=tf;break t;case 16209:E=tp;break t;case 16210:return t_;default:return td}return e.next_out=s,e.avail_out=l,e.next_in=a,e.avail_in=o,n.hold=u,n.bits=c,(n.wsize||h!==e.avail_out&&n.mode<16209&&(n.mode<16206||t!==to))&&tT(e,e.output,e.next_out,h-e.avail_out),f-=e.avail_in,h-=e.avail_out,e.total_in+=f,e.total_out+=h,n.total+=h,4&n.wrap&&h&&(e.adler=n.check=n.flags?$(n.check,i,h,e.next_out-h):W(n.check,i,h,e.next_out-h)),e.data_type=n.bits+64*!!n.last+128*(16191===n.mode)+256*(16199===n.mode||16194===n.mode),(0===f&&0===h||t===to)&&E===tc&&(E=tv),E},inflateEnd:e=>{if(tb(e))return td;let t=e.state;return t.window&&(t.window=null),e.state=null,tc},inflateGetHeader:(e,t)=>{if(tb(e))return td;let n=e.state;return(2&n.wrap)==0?td:(n.head=t,t.done=!1,tc)},inflateSetDictionary:(e,t)=>{let n,r,i=t.length;return tb(e)||0!==(n=e.state).wrap&&16190!==n.mode?td:16190===n.mode&&W(1,t,i,0)!==n.check?tp:tT(e,t,i,i)?(n.mode=16210,t_):(n.havedict=1,tc)}},tO=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1};let tC=Object.prototype.toString,{Z_NO_FLUSH:tD,Z_FINISH:tR,Z_OK:tL,Z_STREAM_END:tP,Z_NEED_DICT:tU,Z_STREAM_ERROR:tM,Z_DATA_ERROR:tI,Z_MEM_ERROR:tB}=Y;function tF(e){this.options=eK.assign({chunkSize:65536,windowBits:15,to:""},e||{});let t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),t.windowBits>=0&&t.windowBits<16&&!(e&&e.windowBits)&&(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&(15&t.windowBits)==0&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new eJ,this.strm.avail_out=0;let n=tA.inflateInit2(this.strm,t.windowBits);if(n!==tL||(this.header=new tO,tA.inflateGetHeader(this.strm,this.header),t.dictionary&&("string"==typeof t.dictionary?t.dictionary=eX.string2buf(t.dictionary):"[object ArrayBuffer]"===tC.call(t.dictionary)&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw)&&(n=tA.inflateSetDictionary(this.strm,t.dictionary))!==tL))throw Error(Z[n])}function tj(e,t){let n=new tF(t);if(n.push(e),n.err)throw n.msg||Z[n.err];return n.result}tF.prototype.push=function(e,t){let n,r,i,a=this.strm,s=this.options.chunkSize,o=this.options.dictionary;if(this.ended)return!1;for(r=t===~~t?t:!0===t?tR:tD,"[object ArrayBuffer]"===tC.call(e)?a.input=new Uint8Array(e):a.input=e,a.next_in=0,a.avail_in=a.input.length;;){for(0===a.avail_out&&(a.output=new Uint8Array(s),a.next_out=0,a.avail_out=s),(n=tA.inflate(a,r))===tU&&o&&((n=tA.inflateSetDictionary(a,o))===tL?n=tA.inflate(a,r):n===tI&&(n=tU));a.avail_in>0&&n===tP&&a.state.wrap>0&&0!==e[a.next_in];)tA.inflateReset(a),n=tA.inflate(a,r);switch(n){case tM:case tI:case tU:case tB:return this.onEnd(n),this.ended=!0,!1}if(i=a.avail_out,a.next_out&&(0===a.avail_out||n===tP))if("string"===this.options.to){let e=eX.utf8border(a.output,a.next_out),t=a.next_out-e,n=eX.buf2string(a.output,e);a.next_out=t,a.avail_out=s-t,t&&a.output.set(a.output.subarray(e,e+t),0),this.onData(n)}else this.onData(a.output.length===a.next_out?a.output:a.output.subarray(0,a.next_out));if(n!==tL||0!==i){if(n===tP)return n=tA.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,!0;if(0===a.avail_in)break}}return!0},tF.prototype.onData=function(e){this.chunks.push(e)},tF.prototype.onEnd=function(e){e===tL&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=eK.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};let{Deflate:tN,deflate:tz,deflateRaw:tV,gzip:tG}={Deflate:e7,deflate:te,deflateRaw:function(e,t){return(t=t||{}).raw=!0,te(e,t)},gzip:function(e,t){return(t=t||{}).gzip=!0,te(e,t)},constants:Y},{Inflate:tH,inflate:tq,inflateRaw:tW,ungzip:tK}={Inflate:tF,inflate:tj,inflateRaw:function(e,t){return(t=t||{}).raw=!0,tj(e,t)},ungzip:tj,constants:Y};var t$=tK},938:function(e,t,n){"use strict";n.d(t,{PO:()=>X,ao:()=>ek,p7:()=>eR,tv:()=>eL,yj:()=>eP});var r,i,a,s,o,l,u=n(595);let c="undefined"!=typeof document;function f(e){return"object"==typeof e||"displayName"in e||"props"in e||"__vccOpts"in e}let h=Object.assign;function d(e,t){let n={};for(let r in t){let i=t[r];n[r]=_(i)?i.map(e):e(i)}return n}let p=()=>{},_=Array.isArray,m=/#/g,g=/&/g,y=/\//g,b=/=/g,w=/\?/g,k=/\+/g,x=/%5B/g,E=/%5D/g,S=/%5E/g,T=/%60/g,A=/%7B/g,O=/%7C/g,C=/%7D/g,D=/%20/g;function R(e){return encodeURI(""+e).replace(O,"|").replace(x,"[").replace(E,"]")}function L(e){return R(e).replace(k,"%2B").replace(D,"+").replace(m,"%23").replace(g,"%26").replace(T,"`").replace(A,"{").replace(C,"}").replace(S,"^")}function P(e){return null==e?"":R(e).replace(m,"%23").replace(w,"%3F").replace(y,"%2F")}function U(e){try{return decodeURIComponent(""+e)}catch(e){}return""+e}let M=/\/$/,I=e=>e.replace(M,"");function B(e,t,n="/"){let r,i={},a="",s="",o=t.indexOf("#"),l=t.indexOf("?");return o<l&&o>=0&&(l=-1),l>-1&&(r=t.slice(0,l),i=e(a=t.slice(l+1,o>-1?o:t.length))),o>-1&&(r=r||t.slice(0,o),s=t.slice(o,t.length)),{fullPath:(r=function(e,t){let n,r;if(e.startsWith("/"))return e;if(!e)return t;let i=t.split("/"),a=e.split("/"),s=a[a.length-1];(".."===s||"."===s)&&a.push("");let o=i.length-1;for(n=0;n<a.length;n++)if("."!==(r=a[n]))if(".."===r)o>1&&o--;else break;return i.slice(0,o).join("/")+"/"+a.slice(n).join("/")}(null!=r?r:t,n))+(a&&"?")+a+s,path:r,query:i,hash:U(s)}}function F(e,t){return t&&e.toLowerCase().startsWith(t.toLowerCase())?e.slice(t.length)||"/":e}function j(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function N(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(let i in e){var n,r;if(n=e[i],r=t[i],_(n)?!z(n,r):_(r)?!z(r,n):n!==r)return!1}return!0}function z(e,t){return _(t)?e.length===t.length&&e.every((e,n)=>e===t[n]):1===e.length&&e[0]===t}let V={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};(r=s||(s={})).pop="pop",r.push="push",(i=o||(o={})).back="back",i.forward="forward",i.unknown="";let G=/^[^#]+#/;function H(e,t){return e.replace(G,"#")+t}let q=()=>({left:window.scrollX,top:window.scrollY});function W(e,t){return(history.state?history.state.position-t:-1)+e}let K=new Map,$=()=>location.protocol+"//"+location.host;function Z(e,t){let{pathname:n,search:r,hash:i}=t,a=e.indexOf("#");if(a>-1){let t=i.includes(e.slice(a))?e.slice(a).length:1,n=i.slice(t);return"/"!==n[0]&&(n="/"+n),F(n,"")}return F(n,e)+r+i}function Y(e,t,n,r=!1,i=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:i?q():null}}function X(e){let t=function(e){let{history:t,location:n}=window,r={value:Z(e,n)},i={value:t.state};function a(r,a,s){let o=e.indexOf("#"),l=o>-1?(n.host&&document.querySelector("base")?e:e.slice(o))+r:$()+e+r;try{t[s?"replaceState":"pushState"](a,"",l),i.value=a}catch(e){console.error(e),n[s?"replace":"assign"](l)}}return i.value||a(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0),{location:r,state:i,push:function(e,n){let s=h({},i.value,t.state,{forward:e,scroll:q()});a(s.current,s,!0);let o=h({},Y(r.value,e,null),{position:s.position+1},n);a(e,o,!1),r.value=e},replace:function(e,n){let s=h({},t.state,Y(i.value.back,e,i.value.forward,!0),n,{position:i.value.position});a(e,s,!0),r.value=e}}}(e=function(e){if(!e)if(c){let t=document.querySelector("base");e=(e=t&&t.getAttribute("href")||"/").replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return"/"!==e[0]&&"#"!==e[0]&&(e="/"+e),I(e)}(e)),n=function(e,t,n,r){let i=[],a=[],l=null,u=({state:a})=>{let u=Z(e,location),c=n.value,f=t.value,h=0;if(a){if(n.value=u,t.value=a,l&&l===c){l=null;return}h=f?a.position-f.position:0}else r(u);i.forEach(e=>{e(n.value,c,{delta:h,type:s.pop,direction:h?h>0?o.forward:o.back:o.unknown})})};function c(){let{history:e}=window;e.state&&e.replaceState(h({},e.state,{scroll:q()}),"")}return window.addEventListener("popstate",u),window.addEventListener("beforeunload",c,{passive:!0}),{pauseListeners:function(){l=n.value},listen:function(e){i.push(e);let t=()=>{let t=i.indexOf(e);t>-1&&i.splice(t,1)};return a.push(t),t},destroy:function(){for(let e of a)e();a=[],window.removeEventListener("popstate",u),window.removeEventListener("beforeunload",c)}}}(e,t.state,t.location,t.replace),r=h({location:"",base:e,go:function(e,t=!0){t||n.pauseListeners(),history.go(e)},createHref:H.bind(null,e)},t,n);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>t.state.value}),r}function J(e){return"string"==typeof e||"symbol"==typeof e}let Q=Symbol("");function ee(e,t){return h(Error(),{type:e,[Q]:!0},t)}function et(e,t){return e instanceof Error&&Q in e&&(null==t||!!(e.type&t))}(a=l||(l={}))[a.aborted=4]="aborted",a[a.cancelled=8]="cancelled",a[a.duplicated=16]="duplicated";let en="[^/]+?",er={sensitive:!1,strict:!1,start:!0,end:!0},ei=/[.+*?^${}()[\]/\\]/g;function ea(e,t){let n=0,r=e.score,i=t.score;for(;n<r.length&&n<i.length;){let e=function(e,t){let n=0;for(;n<e.length&&n<t.length;){let r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?1===e.length&&80===e[0]?-1:1:e.length>t.length?1===t.length&&80===t[0]?1:-1:0}(r[n],i[n]);if(e)return e;n++}if(1===Math.abs(i.length-r.length)){if(es(r))return 1;if(es(i))return -1}return i.length-r.length}function es(e){let t=e[e.length-1];return e.length>0&&t[t.length-1]<0}let eo={type:0,value:""},el=/[a-zA-Z0-9_]/;function eu(e,t){let n={};for(let r of t)r in e&&(n[r]=e[r]);return n}function ec(e){let t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:function(e){let t={},n=e.props||!1;if("component"in e)t.default=n;else for(let r in e.components)t[r]="object"==typeof n?n[r]:n;return t}(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function ef(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function eh(e,t){let n={};for(let r in e)n[r]=r in t?t[r]:e[r];return n}function ed({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function ep(e){let t={};if(""===e||"?"===e)return t;let n=("?"===e[0]?e.slice(1):e).split("&");for(let e=0;e<n.length;++e){let r=n[e].replace(k," "),i=r.indexOf("="),a=U(i<0?r:r.slice(0,i)),s=i<0?null:U(r.slice(i+1));if(a in t){let e=t[a];_(e)||(e=t[a]=[e]),e.push(s)}else t[a]=s}return t}function e_(e){let t="";for(let n in e){let r=e[n];if(n=L(n).replace(b,"%3D"),null==r){void 0!==r&&(t+=(t.length?"&":"")+n);continue}(_(r)?r.map(e=>e&&L(e)):[r&&L(r)]).forEach(e=>{void 0!==e&&(t+=(t.length?"&":"")+n,null!=e&&(t+="="+e))})}return t}let ev=Symbol(""),em=Symbol(""),eg=Symbol(""),ey=Symbol(""),eb=Symbol("");function ew(){let e=[];return{add:function(t){return e.push(t),()=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)}},list:()=>e.slice(),reset:function(){e=[]}}}function ek(e){let t=(0,u.f3)(ev,{}).value;if(t){var n="updateGuards";let r=()=>{t[n].delete(e)};(0,u.SK)(r),(0,u.se)(r),(0,u.dl)(()=>{t[n].add(e)}),t[n].add(e)}}function ex(e,t,n,r,i,a=e=>e()){let s=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((o,l)=>{let u=e=>{if(!1===e)l(ee(4,{from:n,to:t}));else if(e instanceof Error)l(e);else"string"==typeof e||e&&"object"==typeof e?l(ee(2,{from:t,to:e})):(s&&r.enterCallbacks[i]===s&&"function"==typeof e&&s.push(e),o())},c=Promise.resolve(a(()=>e.call(r&&r.instances[i],t,n,u)));e.length<3&&(c=c.then(u)),c.catch(e=>l(e))})}function eE(e,t,n,r,i=e=>e()){let a=[];for(let s of e)for(let e in s.components){let o=s.components[e];if("beforeRouteEnter"===t||s.instances[e])if(f(o)){let l=(o.__vccOpts||o)[t];l&&a.push(ex(l,n,r,s,e,i))}else{let l=o();a.push(()=>l.then(a=>{if(!a)throw Error(`Couldn't resolve component "${e}" at "${s.path}"`);let o=a.__esModule||"Module"===a[Symbol.toStringTag]||a.default&&f(a.default)?a.default:a;s.mods[e]=a,s.components[e]=o;let l=(o.__vccOpts||o)[t];return l&&ex(l,n,r,s,e,i)()}))}}return a}function eS(e){let t=(0,u.f3)(eg),n=(0,u.f3)(ey),r=(0,u.Fl)(()=>{let n=(0,u.SU)(e.to);return t.resolve(n)}),i=(0,u.Fl)(()=>{let{matched:e}=r.value,{length:t}=e,i=e[t-1],a=n.matched;if(!i||!a.length)return -1;let s=a.findIndex(j.bind(null,i));if(s>-1)return s;let o=eA(e[t-2]);return t>1&&eA(i)===o&&a[a.length-1].path!==o?a.findIndex(j.bind(null,e[t-2])):s}),a=(0,u.Fl)(()=>i.value>-1&&function(e,t){for(let n in t){let r=t[n],i=e[n];if("string"==typeof r){if(r!==i)return!1}else if(!_(i)||i.length!==r.length||r.some((e,t)=>e!==i[t]))return!1}return!0}(n.params,r.value.params)),s=(0,u.Fl)(()=>i.value>-1&&i.value===n.matched.length-1&&N(n.params,r.value.params));return{route:r,href:(0,u.Fl)(()=>r.value.href),isActive:a,isExactActive:s,navigate:function(n={}){if(function(e){if(!e.metaKey&&!e.altKey&&!e.ctrlKey&&!e.shiftKey&&!e.defaultPrevented&&(void 0===e.button||0===e.button)){if(e.currentTarget&&e.currentTarget.getAttribute){let t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}(n)){let n=t[(0,u.SU)(e.replace)?"replace":"push"]((0,u.SU)(e.to)).catch(p);return e.viewTransition&&"undefined"!=typeof document&&"startViewTransition"in document&&document.startViewTransition(()=>n),n}return Promise.resolve()}}}let eT=(0,u.aZ)({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:eS,setup(e,{slots:t}){let n=(0,u.qj)(eS(e)),{options:r}=(0,u.f3)(eg),i=(0,u.Fl)(()=>({[eO(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[eO(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{var r;let a=t.default&&(1===(r=t.default(n)).length?r[0]:r);return e.custom?a:(0,u.h)("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},a)}}});function eA(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}let eO=(e,t,n)=>null!=e?e:null!=t?t:n,eC=(0,u.aZ)({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){let r=(0,u.f3)(eb),i=(0,u.Fl)(()=>e.route||r.value),a=(0,u.f3)(em,0),s=(0,u.Fl)(()=>{let e,t=(0,u.SU)(a),{matched:n}=i.value;for(;(e=n[t])&&!e.components;)t++;return t}),o=(0,u.Fl)(()=>i.value.matched[s.value]);(0,u.JJ)(em,(0,u.Fl)(()=>s.value+1)),(0,u.JJ)(ev,o),(0,u.JJ)(eb,i);let l=(0,u.iH)();return(0,u.YP)(()=>[l.value,o.value,e.name],([e,t,n],[r,i,a])=>{t&&(t.instances[n]=e,i&&i!==t&&e&&e===r&&(t.leaveGuards.size||(t.leaveGuards=i.leaveGuards),t.updateGuards.size||(t.updateGuards=i.updateGuards))),!e||!t||i&&j(t,i)&&r||(t.enterCallbacks[n]||[]).forEach(t=>t(e))},{flush:"post"}),()=>{let r=i.value,a=e.name,s=o.value,c=s&&s.components[a];if(!c)return eD(n.default,{Component:c,route:r});let f=s.props[a],d=f?!0===f?r.params:"function"==typeof f?f(r):f:null,p=(0,u.h)(c,h({},d,t,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(s.instances[a]=null)},ref:l}));return eD(n.default,{Component:p,route:r})||p}}});function eD(e,t){if(!e)return null;let n=e(t);return 1===n.length?n[0]:n}function eR(e){let t,n,r,i=function(e,t){let n=[],r=new Map;function i(e,s,o){let l,u,c=!o,f=ec(e);f.aliasOf=o&&o.record;let d=eh(t,e),m=[f];if("alias"in e)for(let t of"string"==typeof e.alias?[e.alias]:e.alias)m.push(ec(h({},f,{components:o?o.record.components:f.components,path:t,aliasOf:o?o.record:f})));for(let t of m){let{path:p}=t;if(s&&"/"!==p[0]){let e=s.record.path,n="/"===e[e.length-1]?"":"/";t.path=s.record.path+(p&&n+p)}if(l=function(e,t,n){let r=function(e,t){let n=h({},er,t),r=[],i=n.start?"^":"",a=[];for(let t of e){let e=t.length?[]:[90];n.strict&&!t.length&&(i+="/");for(let r=0;r<t.length;r++){let s=t[r],o=40+.25*!!n.sensitive;if(0===s.type)r||(i+="/"),i+=s.value.replace(ei,"\\$&"),o+=40;else if(1===s.type){let{value:e,repeatable:n,optional:l,regexp:u}=s;a.push({name:e,repeatable:n,optional:l});let c=u||en;if(c!==en){o+=10;try{RegExp(`(${c})`)}catch(t){throw Error(`Invalid custom RegExp for param "${e}" (${c}): `+t.message)}}let f=n?`((?:${c})(?:/(?:${c}))*)`:`(${c})`;r||(f=l&&t.length<2?`(?:/${f})`:"/"+f),l&&(f+="?"),i+=f,o+=20,l&&(o+=-8),n&&(o+=-20),".*"===c&&(o+=-50)}e.push(o)}r.push(e)}if(n.strict&&n.end){let e=r.length-1;r[e][r[e].length-1]+=.7000000000000001}n.strict||(i+="/?"),n.end?i+="$":n.strict&&!i.endsWith("/")&&(i+="(?:/|$)");let s=new RegExp(i,n.sensitive?"":"i");return{re:s,score:r,keys:a,parse:function(e){let t=e.match(s),n={};if(!t)return null;for(let e=1;e<t.length;e++){let r=t[e]||"",i=a[e-1];n[i.name]=r&&i.repeatable?r.split("/"):r}return n},stringify:function(t){let n="",r=!1;for(let i of e)for(let e of(r&&n.endsWith("/")||(n+="/"),r=!1,i))if(0===e.type)n+=e.value;else if(1===e.type){let{value:a,repeatable:s,optional:o}=e,l=a in t?t[a]:"";if(_(l)&&!s)throw Error(`Provided param "${a}" is an array but it is not repeatable (* or + modifiers)`);let u=_(l)?l.join("/"):l;if(!u)if(o)i.length<2&&(n.endsWith("/")?n=n.slice(0,-1):r=!0);else throw Error(`Missing required param "${a}"`);n+=u}return n||"/"}}}(function(e){let t,n;if(!e)return[[]];if("/"===e)return[[eo]];if(!e.startsWith("/"))throw Error(`Invalid path "${e}"`);function r(e){throw Error(`ERR (${i})/"${u}": ${e}`)}let i=0,a=0,s=[];function o(){t&&s.push(t),t=[]}let l=0,u="",c="";function f(){u&&(0===i?t.push({type:0,value:u}):1===i||2===i||3===i?(t.length>1&&("*"===n||"+"===n)&&r(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),t.push({type:1,value:u,regexp:c,repeatable:"*"===n||"+"===n,optional:"*"===n||"?"===n})):r("Invalid state to consume buffer"),u="")}for(;l<e.length;){if("\\"===(n=e[l++])&&2!==i){a=i,i=4;continue}switch(i){case 0:"/"===n?(u&&f(),o()):":"===n?(f(),i=1):u+=n;break;case 4:u+=n,i=a;break;case 1:"("===n?i=2:el.test(n)?u+=n:(f(),i=0,"*"!==n&&"?"!==n&&"+"!==n&&l--);break;case 2:")"===n?"\\"==c[c.length-1]?c=c.slice(0,-1)+n:i=3:c+=n;break;case 3:f(),i=0,"*"!==n&&"?"!==n&&"+"!==n&&l--,c="";break;default:r("Unknown state")}}return 2===i&&r(`Unfinished custom RegExp for param "${u}"`),f(),o(),s}(e.path),n),i=h(r,{record:e,parent:t,children:[],alias:[]});return t&&!i.record.aliasOf==!t.record.aliasOf&&t.children.push(i),i}(t,s,d),o?o.alias.push(l):((u=u||l)!==l&&u.alias.push(l),c&&e.name&&!ef(l)&&a(e.name)),ed(l)&&function(e){let t=function(e,t){let n=0,r=t.length;for(;n!==r;){let i=n+r>>1;0>ea(e,t[i])?r=i:n=i+1}let i=function(e){let t=e;for(;t=t.parent;)if(ed(t)&&0===ea(e,t))return t}(e);return i&&(r=t.lastIndexOf(i,r-1)),r}(e,n);n.splice(t,0,e),e.record.name&&!ef(e)&&r.set(e.record.name,e)}(l),f.children){let e=f.children;for(let t=0;t<e.length;t++)i(e[t],l,o&&o.children[t])}o=o||l}return u?()=>{a(u)}:p}function a(e){if(J(e)){let t=r.get(e);t&&(r.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(a),t.alias.forEach(a))}else{let t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&r.delete(e.record.name),e.children.forEach(a),e.alias.forEach(a))}}return t=eh({strict:!1,end:!0,sensitive:!1},t),e.forEach(e=>i(e)),{addRoute:i,resolve:function(e,t){let i,a,s,o={};if("name"in e&&e.name){if(!(i=r.get(e.name)))throw ee(1,{location:e});s=i.record.name,o=h(eu(t.params,i.keys.filter(e=>!e.optional).concat(i.parent?i.parent.keys.filter(e=>e.optional):[]).map(e=>e.name)),e.params&&eu(e.params,i.keys.map(e=>e.name))),a=i.stringify(o)}else if(null!=e.path)a=e.path,(i=n.find(e=>e.re.test(a)))&&(o=i.parse(a),s=i.record.name);else{if(!(i=t.name?r.get(t.name):n.find(e=>e.re.test(t.path))))throw ee(1,{location:e,currentLocation:t});s=i.record.name,o=h({},t.params,e.params),a=i.stringify(o)}let l=[],u=i;for(;u;)l.unshift(u.record),u=u.parent;return{name:s,path:a,params:o,matched:l,meta:l.reduce((e,t)=>h(e,t.meta),{})}},removeRoute:a,clearRoutes:function(){n.length=0,r.clear()},getRoutes:function(){return n},getRecordMatcher:function(e){return r.get(e)}}}(e.routes,e),a=e.parseQuery||ep,o=e.stringifyQuery||e_,l=e.history,f=ew(),m=ew(),g=ew(),y=(0,u.XI)(V),b=V;c&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");let w=d.bind(null,e=>""+e),k=d.bind(null,P),x=d.bind(null,U);function E(e,t){let n;if(t=h({},t||y.value),"string"==typeof e){let n=B(a,e,t.path),r=i.resolve({path:n.path},t),s=l.createHref(n.fullPath);return h(n,r,{params:x(r.params),hash:U(n.hash),redirectedFrom:void 0,href:s})}if(null!=e.path)n=h({},e,{path:B(a,e.path,t.path).path});else{let r=h({},e.params);for(let e in r)null==r[e]&&delete r[e];n=h({},e,{params:k(r)}),t.params=k(t.params)}let r=i.resolve(n,t),s=e.hash||"";r.params=w(x(r.params));let u=function(e,t){let n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}(o,h({},e,{hash:R(s).replace(A,"{").replace(C,"}").replace(S,"^"),path:r.path})),c=l.createHref(u);return h({fullPath:u,hash:s,query:o===e_?function(e){let t={};for(let n in e){let r=e[n];void 0!==r&&(t[n]=_(r)?r.map(e=>null==e?null:""+e):null==r?r:""+r)}return t}(e.query):e.query||{}},r,{redirectedFrom:void 0,href:c})}function T(e){return"string"==typeof e?B(a,e,y.value.path):h({},e)}function O(e,t){if(b!==e)return ee(8,{from:t,to:e})}function D(e){let t=e.matched[e.matched.length-1];if(t&&t.redirect){let{redirect:n}=t,r="function"==typeof n?n(e):n;return"string"==typeof r&&((r=r.includes("?")||r.includes("#")?r=T(r):{path:r}).params={}),h({query:e.query,hash:e.hash,params:null!=r.path?{}:e.params},r)}}function L(e,t){let n,r=b=E(e),i=y.value,a=e.state,s=e.force,l=!0===e.replace,u=D(r);return u?L(h(T(u),{state:"object"==typeof u?h({},a,u.state):a,force:s,replace:l}),t||r):(r.redirectedFrom=t,!s&&function(e,t,n){let r=t.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&j(t.matched[r],n.matched[i])&&N(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}(o,i,r)&&(n=ee(16,{to:r,from:i}),X(i,i,!0,!1)),(n?Promise.resolve(n):F(r,i)).catch(e=>et(e)?et(e,2)?e:Y(e):Z(e,r,i)).then(e=>{if(e){if(et(e,2))return L(h({replace:l},T(e.to),{state:"object"==typeof e.to?h({},a,e.to.state):a,force:s}),t||r)}else e=G(r,i,!0,l,a);return z(r,i,e),e}))}function M(e,t){let n=O(e,t);return n?Promise.reject(n):Promise.resolve()}function I(e){let t=es.values().next().value;return t&&"function"==typeof t.runWithContext?t.runWithContext(e):e()}function F(e,t){let n,[r,i,a]=function(e,t){let n=[],r=[],i=[],a=Math.max(t.matched.length,e.matched.length);for(let s=0;s<a;s++){let a=t.matched[s];a&&(e.matched.find(e=>j(e,a))?r.push(a):n.push(a));let o=e.matched[s];o&&!t.matched.find(e=>j(e,o))&&i.push(o)}return[n,r,i]}(e,t);for(let i of(n=eE(r.reverse(),"beforeRouteLeave",e,t),r))i.leaveGuards.forEach(r=>{n.push(ex(r,e,t))});let s=M.bind(null,e,t);return n.push(s),em(n).then(()=>{for(let r of(n=[],f.list()))n.push(ex(r,e,t));return n.push(s),em(n)}).then(()=>{for(let r of(n=eE(i,"beforeRouteUpdate",e,t),i))r.updateGuards.forEach(r=>{n.push(ex(r,e,t))});return n.push(s),em(n)}).then(()=>{for(let r of(n=[],a))if(r.beforeEnter)if(_(r.beforeEnter))for(let i of r.beforeEnter)n.push(ex(i,e,t));else n.push(ex(r.beforeEnter,e,t));return n.push(s),em(n)}).then(()=>(e.matched.forEach(e=>e.enterCallbacks={}),(n=eE(a,"beforeRouteEnter",e,t,I)).push(s),em(n))).then(()=>{for(let r of(n=[],m.list()))n.push(ex(r,e,t));return n.push(s),em(n)}).catch(e=>et(e,8)?e:Promise.reject(e))}function z(e,t,n){g.list().forEach(r=>I(()=>r(e,t,n)))}function G(e,t,n,r,i){let a=O(e,t);if(a)return a;let s=t===V,o=c?history.state:{};n&&(r||s?l.replace(e.fullPath,h({scroll:s&&o&&o.scroll},i)):l.push(e.fullPath,i)),y.value=e,X(e,t,n,s),Y()}let H=ew(),$=ew();function Z(e,t,n){Y(e);let r=$.list();return r.length?r.forEach(r=>r(e,t,n)):console.error(e),Promise.reject(e)}function Y(e){return n||(n=!e,t||(t=l.listen((e,t,n)=>{var r,i;if(!ev.listening)return;let a=E(e),o=D(a);if(o)return void L(h(o,{replace:!0,force:!0}),a).catch(p);b=a;let u=y.value;c&&(r=W(u.fullPath,n.delta),i=q(),K.set(r,i)),F(a,u).catch(e=>et(e,12)?e:et(e,2)?(L(h(T(e.to),{force:!0}),a).then(e=>{et(e,20)&&!n.delta&&n.type===s.pop&&l.go(-1,!1)}).catch(p),Promise.reject()):(n.delta&&l.go(-n.delta,!1),Z(e,a,u))).then(e=>{(e=e||G(a,u,!1))&&(n.delta&&!et(e,8)?l.go(-n.delta,!1):n.type===s.pop&&et(e,20)&&l.go(-1,!1)),z(a,u,e)}).catch(p)})),H.list().forEach(([t,n])=>e?n(e):t()),H.reset()),e}function X(t,n,r,i){let{scrollBehavior:a}=e;if(!c||!a)return Promise.resolve();let s=!r&&function(e){let t=K.get(e);return K.delete(e),t}(W(t.fullPath,0))||(i||!r)&&history.state&&history.state.scroll||null;return(0,u.Y3)().then(()=>a(t,n,s)).then(e=>e&&function(e){let t;if("el"in e){let n=e.el,r="string"==typeof n&&n.startsWith("#"),i="string"==typeof n?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;t=function(e,t){let n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}(i,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(null!=t.left?t.left:window.scrollX,null!=t.top?t.top:window.scrollY)}(e)).catch(e=>Z(e,t,n))}let Q=e=>l.go(e),es=new Set,ev={currentRoute:y,listening:!0,addRoute:function(e,t){let n,r;return J(e)?(n=i.getRecordMatcher(e),r=t):r=e,i.addRoute(r,n)},removeRoute:function(e){let t=i.getRecordMatcher(e);t&&i.removeRoute(t)},clearRoutes:i.clearRoutes,hasRoute:function(e){return!!i.getRecordMatcher(e)},getRoutes:function(){return i.getRoutes().map(e=>e.record)},resolve:E,options:e,push:function(e){return L(e)},replace:function(e){return L(h(T(e),{replace:!0}))},go:Q,back:()=>Q(-1),forward:()=>Q(1),beforeEach:f.add,beforeResolve:m.add,afterEach:g.add,onError:$.add,isReady:function(){return n&&y.value!==V?Promise.resolve():new Promise((e,t)=>{H.add([e,t])})},install(e){e.component("RouterLink",eT),e.component("RouterView",eC),e.config.globalProperties.$router=this,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:()=>(0,u.SU)(y)}),c&&!r&&y.value===V&&(r=!0,L(l.location).catch(e=>{}));let i={};for(let e in V)Object.defineProperty(i,e,{get:()=>y.value[e],enumerable:!0});e.provide(eg,this),e.provide(ey,(0,u.Um)(i)),e.provide(eb,y);let a=e.unmount;es.add(e),e.unmount=function(){es.delete(e),es.size<1&&(b=V,t&&t(),t=null,y.value=V,r=!1,n=!1),a()}}};function em(e){return e.reduce((e,t)=>e.then(()=>I(t)),Promise.resolve())}return ev}function eL(){return(0,u.f3)(eg)}function eP(e){return(0,u.f3)(ey)}}}]);
|