minidev 1.6.2 → 1.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/builder-debug-utils/offline/assets_map +1 -1
- package/assets/builder-debug-utils/offline/boatman_mini +1 -1
- package/assets/builder-debug-utils/package.json +5 -1
- package/assets/builder-debug-utils/readonly/assets_map +1 -1
- package/assets/builder-debug-utils/readonly/boatman_mini +1 -1
- package/assets/web-sim/devtool/main.js +1 -1
- package/assets/web-sim/main.js +1 -1
- package/assets/web-sim/simulator/main.js +1 -1
- package/lib/index.js +1 -1
- package/lib/rw_host.js +1 -1
- package/lib/worker.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"bugmeRRemote":"<script snapshot-delete=\"\">!function(){\"use strict\";var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};function t(t,n){if(\"function\"!=typeof n&&null!==n)throw new TypeError(\"Class extends value \"+String(n)+\" is not a constructor or null\");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}var n,r=function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function o(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{u(r.next(e))}catch(e){i(e)}}function a(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))}function i(e,t){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},\"function\"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError(\"Generator is already executing.\");for(;s;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}}!function(e){e.pageResume=\"pageResume\",e.pagePause=\"pagePause\",e.resume=\"resume\",e.hashchange=\"hashchange\"}(n||(n={}));var s=function(e,t){return(s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function a(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Class extends value \"+String(t)+\" is not a constructor or null\");function n(){this.constructor=e}s(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function u(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{u(r.next(e))}catch(e){i(e)}}function a(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))}function c(e,t){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},\"function\"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError(\"Generator is already executing.\");for(;s;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}}var l={0:{openchannel:\"openchannel.alipay.com\",hpmweb:\"hpmweb.alipay.com\"},1:{openchannel:\"miniprogram.alipay.com\",hpmweb:\"hpmweb.alipay.com\"},2:{openchannel:\"openchannel-pre.alipay.com\",hpmweb:\"hpmweb-pre.alipay.com\"}};function d(e,t){for(var n=[],r=0,o=e.split(t);r<o.length;r++){var i=o[r];n.push(parseInt(i,10))}return n}var h,f=function(){function e(e){this.url=\"\",this.opened=!1,e&&(this.url=e),this.onSocketError=this.onSocketError.bind(this),this.onSocketClose=this.onSocketClose.bind(this),this.onSocketMessage=this.onSocketMessage.bind(this),this.onSocketOpen=this.onSocketOpen.bind(this)}return Object.defineProperty(e.prototype,\"isSocketOpened\",{get:function(){return this.opened},enumerable:!1,configurable:!0}),e.prototype.setUrl=function(e){this.url=e},e}();\"undefined\"!=typeof WebSocket&&WebSocket.OPEN&&(h=WebSocket),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.messageBeforeSocketOpen=[],t}a(t,e),t.prototype.open=function(){var e=this;if(!this.url)throw new Error(\"WebSocket url required\");this.socket=new h(this.url),this.socket.onopen=this.onSocketOpen,this.socket.onmessage=function(t){\"string\"==typeof t.data?e.onSocketMessage(t.data):console.warn(\"[DEBUG] invalid message\",t.data)},this.socket.onclose=this.onSocketClose,this.socket.onerror=this.onSocketError},t.prototype.close=function(){this.socket&&this.socket.close()},t.prototype.sendSocketMessage=function(e){var t=\"string\"==typeof e?e:JSON.stringify(e);t.length>5e6||(this.opened?this.socket.send(t):this.messageBeforeSocketOpen.push(t))},t.prototype.onSocketMessage=function(e){},t.prototype.onSocketOpen=function(){var e=this;this.opened=!0,this.messageBeforeSocketOpen.length&&(this.messageBeforeSocketOpen.forEach((function(t){e.sendSocketMessage(t)})),this.messageBeforeSocketOpen=[])},t.prototype.onSocketClose=function(){this.opened=!1,console.log(\"[DEBUG] connection closed\")},t.prototype.onSocketError=function(e){console.error(\"[DEBUG] connection onerror\",e)}}(f),function(e){function t(t){var n=e.call(this,t)||this;n.messageBeforeSocketOpen=[],n.useFromRemoteDebugFlag=!1;var r=function(e){var t=(\"undefined\"!=typeof navigator&&(navigator.swuserAgent||navigator.userAgent)||\"\").match(/Ariver\\/(\\d+\\.\\d+\\.\\d+)/);if(t)return t[1]}();return r&&function(e,t){if(e){for(var n=d(e,\".\"),r=d(t,\".\"),o=0,i=0,s=void 0,a=void 0;i<n.length;i++){if((s=r[i]||0)>(a=n[i]||0)){o=-1;break}if(s<a){o=1;break}}return o}return 0}(r,\"1.1.0\")>=0&&(n.useFromRemoteDebugFlag=!0),n}a(t,e),t.prototype.open=function(){var e=this;this.socketTask=AFAppX.bridge.connectSocket({fromRemoteDebug:this.useFromRemoteDebugFlag,url:this.url,multiple:!0,fail:function(t){e.onSocketError(t)}}),this.socketTask.onOpen((function(){e.handleSocketOpen()})),this.socketTask.onError((function(t){e.onSocketError(t.data)})),this.socketTask.onClose((function(){e.opened=!1,e.onSocketClose()})),this.socketTask.onMessage((function(t){e.opened||e.handleSocketOpen(),e.onSocketMessage(t.data.data)}))},t.prototype.sendSocketMessage=function(e){var t=\"string\"==typeof e?e:JSON.stringify(e);t.length>5e6||(this.opened?this.socketTask.send({fromRemoteDebug:this.useFromRemoteDebugFlag,data:t,isBuffer:!1}):this.messageBeforeSocketOpen.push(t))},t.prototype.close=function(){this.opened&&this.socketTask.close({fromRemoteDebug:this.useFromRemoteDebugFlag})},t.prototype.onSocketMessage=function(e){},t.prototype.onSocketOpen=function(){},t.prototype.onSocketError=function(e){},t.prototype.onSocketClose=function(){},t.prototype.handleSocketOpen=function(){var e=this;this.opened||(this.opened=!0,this.messageBeforeSocketOpen.length&&(this.messageBeforeSocketOpen.forEach((function(t){e.sendSocketMessage(t)})),this.messageBeforeSocketOpen=[]),this.onSocketOpen())}}(f);var p={\"本次真机调试已结束,请重新生成调试版本\":function(e){return\"本次真机调试已结束,请重新生成调试版本。\\n \"+e.reason},\"调试结束\":\"调试结束\",\"callExitApp_退出\":\"退出\",\"退出\":\"退出\",\"准备中\":\"准备中\",\"已断开\":\"已断开\",\"已连接\":\"已连接\",\"真机调试{text}\":function(e){return\"真机调试\"+e.text}},g={\"本次真机调试已结束,请重新生成调试版本\":function(e){return\"Debug interrupted. Scan debug QR code to restart debugging.\"},\"调试结束\":\"Debugging Ended\",\"callExitApp_退出\":\"OK\",\"退出\":\"Done\",\"准备中\":\"Connecting\",\"已断开\":\"Disconnected\",\"已连接\":\"Connected\",\"真机调试{text}\":function(e){return\"\"+e.text}};function v(e){switch(e){case\"zhCN\":case\"zh-SG\":case\"zh-HK\":case\"zh-TW\":case\"zh-Hans\":case\"zh-CN\":return\"zhCN\";default:return\"enUS\"}}var m=function(){function e(e){var t={zhCN:p,enUS:g};this.i18nMessages=t[v(e)]}return e.getLocaleFromNavigator=function(){return v(navigator.language)},e.prototype.format=function(e,t){var n=this.i18nMessages[e];return\"string\"==typeof n?n:\"function\"==typeof n?n(t):e},e}(),y=function(){function e(e,t,n){var r=this;this.connection=e,this.uuid=t,this.agentId=n,e.addOnCloseHandler((function(){return u(r,void 0,void 0,(function(){return c(this,(function(e){switch(e.label){case 0:return[4,_()];case 1:return e.sent(),this.checkHostBeforeAgentConnect(),[2]}}))}))})),this.startDebugSession=this.startDebugSession.bind(this)}return e.prototype.setup=function(){window.location.hash?this.startDebugSession():window.addEventListener(n.hashchange,this.startDebugSession)},e.prototype.checkHostBeforeAgentConnect=function(){var e=this;if(this.connection.isActivated){if(\"string\"==typeof __BUGME_EXTERNAL_URL__&&__BUGME_EXTERNAL_URL__)return this.connection.open(),void this.emitDocumentUpdated();var t=new XMLHttpRequest;t.onloadend=function(){return u(e,void 0,void 0,(function(){return c(this,(function(e){switch(e.label){case 0:try{if(console.log(\"bugme check host response\",t.responseText),JSON.parse(t.responseText||\"{}\").status)return this.connection.open(),this.emitDocumentUpdated(),[2]}catch(e){}return[4,_()];case 1:return e.sent(),this.checkHostBeforeAgentConnect(),[2]}}))}))},t.timeout=5e3;var n,r,o=I();o.startsWith(\"wss\")?(n=\"https\",r=o.split(\"wss://\")[1]):o.startsWith(\"ws\")&&(n=\"http\",r=o.split(\"ws://\")[1]),t.open(\"GET\",n+\"://\"+r+\"/bugme/channel/checkHost?id=\"+this.uuid),t.send()}},e.prototype.emitDocumentUpdated=function(){this.connection.sendSocketMessage(JSON.stringify({method:\"DOM.documentUpdated\",params:{bugmeAgentId:this.agentId}}))},e.prototype.resetAxmlVisitedState=function(){},e.prototype.startDebugSession=function(){var e,t=this;window.removeEventListener(n.hashchange,this.startDebugSession),document.addEventListener(n.pageResume,(function(){t.connection.activate(),e=setTimeout((function(){t.connection.isSocketOpened&&t.emitDocumentUpdated()}),500)})),document.addEventListener(n.pagePause,(function(){t.connection.inActivate(),t.resetAxmlVisitedState(),clearTimeout(e)})),document.addEventListener(n.resume,(function(){t.connection.activate(),t.connection.isSocketOpened||t.checkHostBeforeAgentConnect()}))},e}();function b(){return u(this,void 0,void 0,(function(){return c(this,(function(e){return window.AlipayJSBridge?[2]:[2,new Promise((function(e){document.addEventListener(\"AlipayJSBridgeReady\",e)}))]}))}))}function _(e){return void 0===e&&(e=2e3),new Promise((function(t){setTimeout((function(){t()}),e)}))}function w(){var e,t;return\"string\"==typeof __BUGME_EXTERNAL_CHANNEL__&&__BUGME_EXTERNAL_CHANNEL__?__BUGME_EXTERNAL_CHANNEL__:null===(t=null===(e=window.AlipayJSBridge)||void 0===e?void 0:e.startupParams)||void 0===t?void 0:t.channelId}function S(e,t){return\"string\"==typeof __BUGME_EXTERNAL_URL__&&/^wss?:\\/\\//.test(__BUGME_EXTERNAL_URL__)?__BUGME_EXTERNAL_URL__:(console.log(\"bugme uuid=\"+e+\", agentId=\"+t),e&&t?I()+\"/bugme/agent/\"+e+\"?agentId=\"+t:\"\")}function I(){var e,t,n,r,o=null===(t=null===(e=window.AlipayJSBridge)||void 0===e?void 0:e.startupParams)||void 0===t?void 0:t.remoteCh,i=null===(r=null===(n=window.AlipayJSBridge)||void 0===n?void 0:n.startupParams)||void 0===r?void 0:r.channel;return null!=i?i:\"wss://\"+(l[o]||l[0]).hpmweb}function k(){return/LyraVM/i.test(navigator.userAgent)||\"string\"==typeof __BUGME_EXTERNAL_CHANNEL__&&__BUGME_EXTERNAL_CHANNEL__}function E(){var e=new m(navigator.language);window.AlipayJSBridge.call(\"alert\",{title:e.format(\"调试结束\"),button:e.format(\"callExitApp_退出\")},(function(){window.AlipayJSBridge.call(\"exitApp\")}))}function C(e){var t=e.appxRouteFramework;return!0===t||\"YES\"===t}function O(e,t,n,r,o){var i,s,a=null,u=0;o||(o={});var c=function(){u=!1===o.leading?0:Date.now(),a=null,s=e.apply(null,i),i=null};return function(){for(var l=[],d=0;d<arguments.length;d++)l[d]=arguments[d];var h=Date.now();u||!1!==o.leading||(u=h);var f=t-(h-u);return i=l,f<=0||f>t?(r(a),a=null,u=h,s=e.apply(null,i),i=null):a||!1===o.trailing||(a=n(c,f)),s}}function N(e,t){for(var n=[],r=0,o=e.split(t);r<o.length;r++){var i=o[r];n.push(parseInt(i,10))}return n}var T=function(e,t){return(T=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function M(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Class extends value \"+String(t)+\" is not a constructor or null\");function n(){this.constructor=e}T(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function A(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{u(r.next(e))}catch(e){i(e)}}function a(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))}function x(e,t){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},\"function\"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError(\"Generator is already executing.\");for(;s;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}}var P,R=function(){function e(e){this.url=\"\",this.opened=!1,e&&(this.url=e),this.onSocketError=this.onSocketError.bind(this),this.onSocketClose=this.onSocketClose.bind(this),this.onSocketMessage=this.onSocketMessage.bind(this),this.onSocketOpen=this.onSocketOpen.bind(this)}return Object.defineProperty(e.prototype,\"isSocketOpened\",{get:function(){return this.opened},enumerable:!1,configurable:!0}),e.prototype.setUrl=function(e){this.url=e},e}();\"undefined\"!=typeof WebSocket&&WebSocket.OPEN&&(P=WebSocket);var D=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.messageBeforeSocketOpen=[],t}return M(t,e),t.prototype.open=function(){var e=this;if(!this.url)throw new Error(\"WebSocket url required\");this.socket=new P(this.url),this.socket.onopen=this.onSocketOpen,this.socket.onmessage=function(t){\"string\"==typeof t.data?e.onSocketMessage(t.data):console.warn(\"[DEBUG] invalid message\",t.data)},this.socket.onclose=this.onSocketClose,this.socket.onerror=this.onSocketError},t.prototype.close=function(){this.socket&&this.socket.close()},t.prototype.sendSocketMessage=function(e){var t=\"string\"==typeof e?e:JSON.stringify(e);t.length>5e6||(this.opened?this.socket.send(t):this.messageBeforeSocketOpen.push(t))},t.prototype.onSocketMessage=function(e){},t.prototype.onSocketOpen=function(){var e=this;this.opened=!0,this.messageBeforeSocketOpen.length&&(this.messageBeforeSocketOpen.forEach((function(t){e.sendSocketMessage(t)})),this.messageBeforeSocketOpen=[])},t.prototype.onSocketClose=function(){this.opened=!1,console.log(\"[DEBUG] connection closed\")},t.prototype.onSocketError=function(e){console.error(\"[DEBUG] connection onerror\",e)},t}(R);!function(e){function t(t){var n=e.call(this,t)||this;n.messageBeforeSocketOpen=[],n.useFromRemoteDebugFlag=!1;var r=function(e){var t=e.match(/Ariver\\/(\\d+\\.\\d+\\.\\d+)/);if(t)return t[1]}(\"undefined\"!=typeof navigator&&(navigator.swuserAgent||navigator.userAgent)||\"\");return r&&function(e,t){if(e&&t){for(var n=N(e,\".\"),r=N(t,\".\"),o=0,i=0,s=void 0,a=void 0;i<n.length;i++){if((s=r[i]||0)>(a=n[i]||0)){o=-1;break}if(s<a){o=1;break}}return o}return 0}(r,\"1.1.0\")>=0&&(n.useFromRemoteDebugFlag=!0),n}M(t,e),t.prototype.open=function(){var e=this;this.socketTask=AFAppX.bridge.connectSocket({fromRemoteDebug:this.useFromRemoteDebugFlag,url:this.url,multiple:!0,fail:function(t){e.onSocketError(t)}}),this.socketTask.onOpen((function(){e.handleSocketOpen()})),this.socketTask.onError((function(t){e.onSocketError(t.data)})),this.socketTask.onClose((function(){e.opened=!1,e.onSocketClose()})),this.socketTask.onMessage((function(t){e.opened||e.handleSocketOpen(),e.onSocketMessage(t.data.data)}))},t.prototype.sendSocketMessage=function(e){var t=\"string\"==typeof e?e:JSON.stringify(e);t.length>5e6||(this.opened?this.socketTask.send({fromRemoteDebug:this.useFromRemoteDebugFlag,data:t,isBuffer:!1}):this.messageBeforeSocketOpen.push(t))},t.prototype.close=function(){this.opened&&this.socketTask.close({fromRemoteDebug:this.useFromRemoteDebugFlag})},t.prototype.onSocketMessage=function(e){},t.prototype.onSocketOpen=function(){},t.prototype.onSocketError=function(e){},t.prototype.onSocketClose=function(){},t.prototype.handleSocketOpen=function(){var e=this;this.opened||(this.opened=!0,this.messageBeforeSocketOpen.length&&(this.messageBeforeSocketOpen.forEach((function(t){e.sendSocketMessage(t)})),this.messageBeforeSocketOpen=[]),this.onSocketOpen())}}(R);var L,B=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return t(n,e),n.prototype.startDebugSession=function(){var t=this;e.prototype.startDebugSession.call(this);var n=window.__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!n)throw new Error(\"bugme no react hook\");n.wasCommited?this.checkHostBeforeAgentConnect():n.on(\"first-commit\",(function(){t.checkHostBeforeAgentConnect()}))},n}(y),F=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.onCloseHandlerSet=new Set,t.isActive=!0,t.messageBeforeHandler=[],t}return t(n,e),Object.defineProperty(n.prototype,\"isActivated\",{get:function(){return this.isActive},enumerable:!1,configurable:!0}),n.prototype.activate=function(){this.isActive=!0},n.prototype.inActivate=function(){this.isActive=!1},n.prototype.sendMessage=function(e,t){this.sendSocketMessage(JSON.stringify({method:e,params:t}))},n.prototype.sendSocketMessage=function(t,n){(this.isActive||n)&&e.prototype.sendSocketMessage.call(this,t)},n.prototype.onMessage=function(e){if(this.devtoolHandler)throw new Error(\"conflict handler\");this.devtoolHandler=e,this.messageBeforeHandler.forEach(this.handleMessage),this.messageBeforeHandler=[]},n.prototype.addOnCloseHandler=function(e){this.onCloseHandlerSet.add(e)},n.prototype.onSocketMessage=function(e){\"HOST:LEAVE\"!==e||k()?this.devtoolHandler?this.handleMessage(e):this.messageBeforeHandler.push(e):E()},n.prototype.onSocketClose=function(){e.prototype.onSocketClose.call(this),this.onCloseHandlerSet.forEach((function(e){try{e()}catch(e){console.warn(e)}}))},n.prototype.handleMessage=function(e){var t,n=this;try{t=JSON.parse(e)}catch(t){return void console.warn(\"invalid json message: \",e)}t.sessionId||(t.method?this.devtoolHandler&&this.devtoolHandler(t.method,t.params,(function(e,r){e?n.sendSocketMessage(JSON.stringify({id:t.id,error:{code:e,message:\"\"+e}}),!0):n.sendSocketMessage(JSON.stringify({id:t.id,result:r}),!0)})):console.warn(\"invalid json message: \",e))},n}(D);!function(e){e[e.Element=1]=\"Element\",e[e.Text=2]=\"Text\",e[e.Component=3]=\"Component\"}(L||(L={}));var j=function(e,t){return(j=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function U(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Class extends value \"+String(t)+\" is not a constructor or null\");function n(){this.constructor=e}j(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var z=function(){return(z=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};var q,H=Function.prototype.apply.call.bind(Function.prototype.apply);function G(e,t,n){return H(e,t,n)}function Y(e,t,n,r,o){var i,s,a=null,u=0;o||(o={});var c=function(){u=!1===o.leading?0:Date.now(),a=null,s=G(e,null,i),i=null};return function(){for(var l=[],d=0;d<arguments.length;d++)l[d]=arguments[d];var h=Date.now();u||!1!==o.leading||(u=h);var f=t-(h-u);return i=l,f<=0||f>t?(r(a),a=null,u=h,s=G(e,null,i),i=null):a||!1===o.trailing||(a=n(c,f)),s}}function W(){var e=\"undefined\"!=typeof WeakMap;q=e?WeakMap:function(){var e=Object.prototype.hasOwnProperty,t=function(e,t,n){Object.defineProperty?Object.defineProperty(e,t,{configurable:!0,value:n,writable:!0}):e[t]=n};function n(e){return Object(e)===e}function r(){if(void 0===this)throw new TypeError(\"Constructor WeakMap requires 'new'\");if(t(this,\"_id\",i(\"_WeakMap\")),arguments.length>0)throw new TypeError(\"WeakMap iterable is not supported\")}function o(t,r){if(!n(t)||!e.call(t,\"_id\"))throw new TypeError(r+\" method called on incompatible receiver \"+typeof t)}function i(e){return e+\"_\"+s()+\".\"+s()}function s(){return Math.random().toString().substring(2)}return t(r.prototype,\"delete\",(function(e){if(o(this,\"delete\"),!n(e))return!1;var t=e[this._id];return!(!t||t[0]!==e)&&(delete e[this._id],!0)})),t(r.prototype,\"get\",(function(e){if(o(this,\"get\"),n(e)){var t=e[this._id];return t&&t[0]===e?t[1]:void 0}})),t(r.prototype,\"has\",(function(e){if(o(this,\"has\"),!n(e))return!1;var t=e[this._id];return!(!t||t[0]!==e)})),t(r.prototype,\"set\",(function(e,r){if(o(this,\"set\"),!n(e))throw new TypeError(\"Invalid value used as weak map key\");var i=e[this._id];return i&&i[0]===e?(i[1]=r,this):(t(e,this._id,[e,r]),this)})),t(r,\"_polyfill\",!0),r}()}q||W(),new q;\"undefined\"!=typeof ZEPHYR_HAS_INSIDE_FEATURE&&ZEPHYR_HAS_INSIDE_FEATURE,\"undefined\"!=typeof ZEPHYR_IS_INSIDE_UNSUPPORT_ELEMENT&&ZEPHYR_IS_INSIDE_UNSUPPORT_ELEMENT;var Z=function(){function e(e,t,n,r,o){this.bindLinkNode=o,this.updatingDiff=null,this.scopedBlocks=[],this.unscopedBlocks=[],this.disposing=!1,this.factory=e,this.currentData=t,this.slotProviderParentContextInstance=n,this.scopeId=r}return e.prototype.createBlockWithScope=function(e,t){var n,r,o=this.scopeId;return e&&o?(n=V(e,this.currentData,o),(r=this.createBlock(this.slotProviderParentContextInstance,t,n,!0)).__scopeContext__=e):(n=this.currentData,r=this.createBlock(this.slotProviderParentContextInstance,t,n,!1)),r.bType=1,r},e.prototype.createBlockWithoutScope=function(e){var t=this.createBlock(this.slotProviderParentContextInstance,e,this.currentData,!1);return t.bType=1,t},e.prototype.updateBlockWithDynamicNameScopeAndFallback=function(e,t,n,r,o,i){if(t._name===e){var s=this.scopeId;if(n&&s){var a=V(n,this.currentData,s),u=Object.create(this.updatingDiff);u[s]=!0,t.updateScopeContext(n),t.updateScopeAndFallbackContext(u,a,r,o)}else t.updateFallbackContext(r,o)}else{var c=void 0;c=n?this.createBlockWithScope(n,i):this.createBlockWithoutScope(i),t.updateDynamicNameAndFallbackContext(e,c,r,o)}return null},e.prototype.updateBlockWithScopeAndFallback=function(e,t,n,r){var o=this.scopeId;if(t&&o){var i=V(t,this.currentData,o),s=Object.create(this.updatingDiff);s[o]=!0,e.updateScopeContext(t),e.updateScopeAndFallbackContext(s,i,n,r)}else e.updateFallbackContext(n,r)},e.prototype.updateBlockWithScope=function(e,t){var n=this.scopeId;if(t&&n){var r=V(t,this.currentData,n),o=Object.create(this.updatingDiff);o[n]=!0,e.__scopeContext__=t,e.u(o,r)}},e.prototype.createBlock=function(e,t,n,r){var o,i,s=this.factory(e,n);return this.bindLinkNode&&(s=this.bindLinkNode(s,this)),s.d=this.destroyBlock.bind(this,s,s.d),r?(i=1,o=this.scopedBlocks.length,this.scopedBlocks.push(s)):(i=0,o=this.unscopedBlocks.length,this.unscopedBlocks.push(s)),s.__slotIndex__=o,s.__slotType__=i,s},e.prototype.destroyBlock=function(e,t,n){var r=e.__slotIndex__;if(r>=0){if(!this.disposing){var o=1===e.__slotType__?this.scopedBlocks:this.unscopedBlocks,i=o.length-1,s=o[i];s.__slotIndex__=r,o[r]=s,o.length=i}t.call(e,n),e.__slotIndex__=-1}},e}();function V(e,t,n){var r=Object.create(t);return r[n]=e[0],e.length>1&&(r[n+\"d\"]=e[1],r[n+\"n\"]=e[2]),r}(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}U(t,e),t.prototype.exitProviderUpdating=function(){},t.prototype.enterProviderUpdating=function(e,t){this.currentData=t;for(var n=this.scopeId,r=0,o=this.unscopedBlocks;r<o.length;r++){(u=o[r]).u(e,t)}if(n&&this.scopedBlocks.length){var i=Object.create(e);i[n]=!1;for(var s=0,a=this.scopedBlocks;s<a.length;s++){var u,c=V((u=a[s]).__scopeContext__,t,n);u.u(i,c)}}},t.prototype.destroyBlocks=function(e){if(this.disposing=!0,this.scopeId){for(var t=0,n=this.scopedBlocks;t<n.length;t++){n[t].d(e)}this.scopedBlocks=[]}for(var r=0,o=this.unscopedBlocks;r<o.length;r++){o[r].d(e)}this.unscopedBlocks=[]}})(Z),function(e){function t(){return null!==e&&e.apply(this,arguments)||this}U(t,e),t.prototype.enterProviderUpdating=function(e,t){this.updatingDiff=e,this.currentData=t;for(var n=this.scopeId,r=0,o=this.unscopedBlocks;r<o.length;r++){o[r].__slotUpdating__=!0}if(n&&this.scopedBlocks.length)for(var i=0,s=this.scopedBlocks;i<s.length;i++){s[i].__slotUpdating__=!0}},t.prototype.destroyBlocks=function(e){this.disposing=!0,this.scopeId&&(this.scopedBlocks=[]),this.unscopedBlocks=[]},t.prototype.exitProviderUpdating=function(){for(var e=this.updatingDiff,t=this.currentData,n=this.scopeId,r=0,o=this.unscopedBlocks;r<o.length;r++){(u=o[r]).__slotUpdating__&&(u.__slotUpdating__=!1,u.u(e,t))}if(n&&this.scopedBlocks.length){var i=Object.create(e);i[n]=!1;for(var s=0,a=this.scopedBlocks;s<a.length;s++){var u;if((u=a[s]).__slotUpdating__){u.__slotUpdating__=!1;var c=V(u.__scopeContext__,t,n);u.u(i,c)}}}this.updatingDiff=null}}(Z);function J(){}function Q(e,t){var n=t.nextSibling,r=t.previousSibling;n?(n.previousSibling=r,t.nextSibling=null):e.lastChild=r,r?(r.nextSibling=n,t.previousSibling=null):e.firstChild=n,t.parent=null}function $(e,t){var n=t.parent;n&&Q(n,t),t.parent=e;var r=e.lastChild;r?(t.previousSibling=r,r.nextSibling=t):e.firstChild=t,e.lastChild=t}var X=function(e,t){var n,r=t.root.textContent,o=e.index,i=e.nodes.length;for(;o<i&&(n=e.nodes.item(o))&&(8!==n.nodeType||n.textContent!==r);)o++;return i-o};var K=0;var ee=function(){return\"z:\"+ ++K},te=function(e,t,n){var r,o=e.target,i={destroy:J,eType:0,nextSibling:null,parent:null,previousSibling:null,root:null};if(n){for(var s=n.root.textContent,a=e.index,u=void 0;;){if(!(u=e.nodes.item(a))){var c=t.document.document.createComment(s);i.root=c,o.appendChild(i);break}if(i.root=u,8===u.nodeType&&u.textContent===s){$(o,i);break}if(e.stopReverseIndex===e.nodes.length-a){var l={destroy:J,eType:0,nextSibling:null,parent:null,previousSibling:null,root:u};c=t.document.document.createComment(s);i.root=c,$(o,l),o.insertBefore(i,l),Q(o,l);break}o.removeChild(i)}return e.index++,i}u=e.nodes.item(e.index++);if(i.root=u,u&&8===u.nodeType)$(o,i);else{var d=t.document.document.createComment(ee());r={destroy:J,eType:0,nextSibling:null,parent:null,previousSibling:null,root:d},u?($(o,i),o.insertBefore(r,i),e.stopReverseIndex===e.nodes.length-e.index?Q(o,i):o.removeChild(i)):o.appendChild(r)}return r||i};function ne(e,t,n){for(var r=[],o=e,i=null;o&&!t(o);){switch(o.eType){case 1:case 2:null===i&&r.push(n.getZNodeDebugInfo(o));break;case 0:var s=o.root.textContent;null===i&&\"b\"===s[0]?i=parseInt(s.slice(2),10):null!==i&&s===ae(i)&&(r.push(n.getZNodeComponentDebugInfo(i)),i=null)}o=o.nextSibling}return r}function re(e,t,n){var r=e[t];e[t]=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var o=r.apply(void 0,e);try{n(o,e)}catch(e){console.error(e)}return o}}function oe(e,t,n){var r=e[t];e[t]=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];try{n(e)}catch(e){console.error(e)}var o=r.apply(void 0,e);return o}}function ie(e){var t=\"\";try{JSON.stringify(e).length>1e6&&(t=\"data is too large to display\")}catch(e){t=e.message||\"stringify error\"}return t?{data:{error:t}}:{data:e}}function se(e){return\"b:\"+e}function ae(e){return\"e:\"+e}function ue(e){if(!e.treeTargetIds){for(var t=e,n=[];t;){t=t.previousSibling?t.previousSibling:t.parent;for(var r=0;t;){if(0===t.eType){if(\"e\"===t.root.textContent[0])r++;else if(\"b\"===t.root.textContent[0]){if(0===r){n.push({begin:t.root,targetId:parseInt(t.root.textContent.slice(2),10)});break}r--}}else{if(1===t.eType&&0===r){n.push.apply(n,ue(t)),t=null;break}if(2===t.eType&&0===r){n.push.apply(n,ue(t)),t=null;break}}t=t.previousSibling?t.previousSibling:t.parent}}n.length||n.push({begin:null,targetId:0}),e.treeTargetIds=n}return e.treeTargetIds}var ce=function(){function e(e,t){this.devtool=e,this.node=t}return e.prototype.setParentNodeId=function(e){this.parentNodeId=e},e.prototype.getParentNodeId=function(){return this.parentNodeId||(this.parentNodeId=this.getParentNode().nodeId),this.parentNodeId},e.prototype.getPreviousElementOrTextSibling=function(){for(var e=this.node.previousSibling;e&&1!==e.eType&&2!==e.eType;){if(0===e.eType){if(\"b\"===e.root.textContent[0])return null;if(\"e\"===e.root.textContent[0])return this.devtool.getZNodeComponentDebugInfo(parseInt(e.root.textContent.slice(2),10))}e=e.previousSibling}return e?this.devtool.getZNodeDebugInfo(e):null},e.prototype.getParentNode=function(){var e=this.devtool.getZNodeDebugInfo(this.node.parent),t=ue(this.node);return ue(e.node)[0].targetId===t[0].targetId?e:this.devtool.getZNodeComponentDebugInfo(t[0].targetId)},e.prototype.setLinkedContext=function(e){this.linkedContext=e},e.prototype.getLinkedContext=function(){return this.linkedContext},e}(),le=function(e){function t(t,n,r,o,i,s){var a=e.call(this,t,r)||this;return a.devtool=t,a.nodeName=n,a.node=r,a.nodeId=o,a.shadowRootNodeId=i,a.shadowSlotNodeId=s,a.nodeType=L.Element,a.activated=!1,a.childrenActivated=!1,a.pendingAttributes=[],a.dataset=new Map,a.properties=new Map,a.attributes=new Map,a.inlineStyleSheetId=\"2000.\"+o,a}return U(t,e),Object.defineProperty(t.prototype,\"dom\",{get:function(){return this.devtool.getDOMNodeDebugInfo(this.node.root,this,this.shadowRootNodeId)},enumerable:!1,configurable:!0}),t.prototype.getPlatformRootDOM=function(){return this.node.root},t.prototype.getShadowRootDebugNode=function(){var e=this.node.root;return this.devtool.getDOMNodeDebugInfo(e,this,this.shadowRootNodeId)},t.prototype.getClassName=function(){return this.attrClass},t.prototype.getInlineStyle=function(){return this.attrStyle},t.prototype.getDataset=function(){return this.dataset},t.prototype.updateClassName=function(e){var t=e||\"\";this.attrClass!==t&&(this.attrClass=t,this.activated&&this.pendingAttributes.push([\"class\",\"\"+t]))},t.prototype.updateInlineStyle=function(e){this.attrStyle!==e&&(this.attrStyle=e,this.activated&&this.pendingAttributes.push([\"style\",\"\"+e]))},t.prototype.invalidate=function(){var e=this;if(this.activated&&this.pendingAttributes.length){for(var t={},n=0,r=this.pendingAttributes;n<r.length;n++){var o=r[n],i=o[0],s=o[1];t[i]=s}Object.keys(t).forEach((function(n){e.onAttributeModifiedByEngine(n,t[n]),\"style\"===n&&e.node.setStyleInline(t[n])})),this.pendingAttributes=[],t={},this.devtool.enableShadowRootElements&&(this.devtool.flushUpdatedQueue(),this.dom&&this.dom.invalidate())}},t.prototype.getProperties=function(){var e={};return this.properties.forEach((function(t,n){e[n]=t})),e},t.prototype.updateProperties=function(e){if(e)for(var t=this.properties,n=0,r=Object.keys(e);n<r.length;n++){var o=r[n];e[o]!==t.get(o)&&(t.set(o,e[o]),this.activated&&this.pendingAttributes.push([o,\"\"+e[o]]))}},t.prototype.updateDataset=function(e){for(var t=this.dataset,n=0,r=Object.keys(e);n<r.length;n++){var o=r[n];e[o]!==t.get(o)&&(t.set(o,e[o]),this.activated&&this.pendingAttributes.push([\"data-\"+o,\"\"+e[o]]))}},t.prototype.updateAttribute=function(e,t){t!==this.attributes.get(e)&&(this.attributes.set(e,t),this.activated&&this.pendingAttributes.push([e,\"\"+t]))},t.prototype.getChildNodes=function(){return ne(this.node.firstChild,(function(){return!1}),this.devtool)},t.prototype.serialize=function(e){this.activated=!0;var t,n=this.getChildNodes(),r=n.length;return e>0&&r&&(t=n.map((function(t){return t.serialize(e-1)}))),t||1!==r||n[0].nodeType!==L.Text||(t=[n[0].serialize(0)]),t&&t.length&&(this.childrenActivated=!0),{attributes:this.getAllAttributes(),backendNodeId:this.nodeId,childNodeCount:r,children:t,localName:this.nodeName.toLowerCase(),nodeId:this.nodeId,nodeName:this.nodeName,nodeType:1,nodeValue:\"\",parentId:this.getParentNodeId(),pseudoElements:this.getPseudoElements(),shadowRoots:this.devtool.shadowRootElementsEnabled?[{childNodeCount:1,localName:\"\",nodeId:this.shadowRootNodeId,nodeName:\"#document-fragment\",nodeType:11,nodeValue:\"\",shadowRootType:\"dom\"}]:void 0}},t.prototype.getAllAttributes=function(){var e=[];return this.attrClass&&e.push(\"class\",\"\"+this.attrClass),this.attrStyle&&e.push(\"style\",\"\"+this.attrStyle),this.properties.forEach((function(t,n){e.push(n,\"\"+t)})),this.attributes.forEach((function(t,n){e.push(n,\"\"+t)})),this.dataset.forEach((function(t,n){e.push(\"data-\"+n,\"\"+t)})),e},t.prototype.getChildNodeCount=function(){return this.getChildNodes().length},t.prototype.onAttributeModifiedByEngine=function(e,t){this.devtool.sendMessage(\"DOM.attributeModified\",{name:e,nodeId:this.nodeId,value:\"\"+t})},t.prototype.getPseudoElements=function(){return[]},t}(ce),de=function(e){function t(t,n,r,o){var i=e.call(this,t,n)||this;return i.devtool=t,i.node=n,i.nodeId=r,i.shadowSlotNodeId=o,i.nodeType=L.Text,i.activated=!1,i.nodeName=\"#text\",i.dom=t.getDOMNodeDebugInfo(n.root,i),i}return U(t,e),t.prototype.getPlatformRootDOM=function(){return this.node.root},t.prototype.serialize=function(e){return this.activated=!0,{backendNodeId:this.nodeId,childNodeCount:0,localName:\"\",nodeId:this.nodeId,nodeName:this.nodeName,nodeType:3,nodeValue:this.node.root.textContent,parentId:this.getParentNodeId()}},t}(ce),he=function(){function e(e,t,n){var r=this;this.devtool=e,this.targetId=t,this.nodeId=n,this.nodeType=L.Component,this.nodeName=\"component\",this.activated=!1,this.childrenActivated=!1,this.pendingAttributes=[],this.componentInstance=e.componentTargetId2LinkedInstance.get(t),this.beginAnchor=this.componentInstance._anchor4Head,this.parentNodeId=this.getParentNodeId();var o=Y(e.sendMessage.bind(e),500,setTimeout,clearTimeout),i=this.componentInstance._fragment.u;this.componentInstance._fragment.u=function(){for(var t=[],s=0;s<arguments.length;s++)t[s]=arguments[s];var a=i.apply(r.componentInstance._fragment,t);return e.activatedCustomComponentId===n&&o(\"Tiny.Elements.componentDataChanged\",{data:ie(r.getData()).data,nodeId:n}),a};var s=Y(e.sendMessage.bind(e),500,setTimeout,clearTimeout),a=this.componentInstance.receiveProps;this.componentInstance.receiveProps=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];a.apply(r.componentInstance,t),e.activatedCustomComponentId===n&&s(\"Tiny.Elements.componentDataChanged\",{nodeId:n,props:ie(r.getProps()).data})},this.invalidate=Y(this.invalidate.bind(this),500,setTimeout,clearTimeout)}return e.prototype.getChildNodes=function(){var e=this;return ne(this.beginAnchor.nextSibling,(function(t){if(0===t.eType&&t.root.textContent===ae(e.targetId))return!0}),this.devtool)},e.prototype.serialize=function(e){this.activated=!0;var t,n=this.getChildNodes(),r=n.length;return e>0&&(t=n.map((function(t){return t.serialize(e-1)}))),t||1!==r||n[0].nodeType!==L.Text||(t=[n[0].serialize(0)]),t&&t.length&&(this.childrenActivated=!0),{attributes:this.getAllAttributes(),backendNodeId:this.nodeId,childNodeCount:r,children:t,localName:this.nodeName.toLowerCase(),nodeId:this.nodeId,nodeName:this.nodeName,nodeType:1,nodeValue:\"\",parentId:this.getParentNodeId()}},e.prototype.getAllAttributes=function(){var e=this,t=this.componentInstance.fixedReceivedPropKeys,n=this.componentInstance.componentIs;\"string\"==typeof n&&\"/\"===n[0]&&(n=n.substring(1));var r=[\"is\",n];return t&&t.forEach((function(t){r.push.apply(r,function(e,t){if(\"className\"===e)return[\"class\",String(t).trim()];if(\"function\"==typeof t){if(t.handleName)return[e,t.handleName]}else{if(null===t)return[e,\"null\"];if(void 0!==t){var n=\"unknown\";try{n=\"object\"==typeof t?Object.prototype.toString.call(t):t.toString()}catch(n){console.warn(\"failed to stringify node props value\",e,t)}return[e,n]}}return[]}(t,e.componentInstance._state[t]))})),r},e.prototype.getParentNodeId=function(){return this.parentNodeId||(this.parentNodeId=this.getParentNode().nodeId),this.parentNodeId},e.prototype.getParentNode=function(){if(this.beginAnchor.parent){var e=this.devtool.getZNodeDebugInfo(this.beginAnchor.parent),t=ue(this.beginAnchor);return ue(e.node)[0].targetId===t[0].targetId?e:this.devtool.getZNodeComponentDebugInfo(t[0].targetId)}},e.prototype.getData=function(){var e=this,t={},n=this.componentInstance.fixedReceivedPropKeys,r=void 0===n?[]:n;return Object.keys(this.componentInstance._state).forEach((function(n){\"$id\"!==n&&-1===r.indexOf(n)&&(t[n]=e.componentInstance._state[n])})),t},e.prototype.getProps=function(){var e=this,t={},n=this.componentInstance.fixedReceivedPropKeys;return(void 0===n?[]:n).forEach((function(n){t[n]=e.componentInstance._state[n]})),t},e.prototype.getChildNodeCount=function(){return this.getChildNodes().length},e.prototype.getPreviousElementOrTextSibling=function(){for(var e=this.beginAnchor.previousSibling;e&&1!==e.eType&&2!==e.eType;){if(0===e.eType){if(\"b\"===e.root.textContent[0])return null;if(\"e\"===e.root.textContent[0])return this.devtool.getZNodeComponentDebugInfo(parseInt(e.root.textContent.slice(2),10))}e=e.previousSibling}return e?this.devtool.getZNodeDebugInfo(e):null},e.prototype.updateProperties=function(e,t){var n=this;Object.keys(t).forEach((function(r){t[r]&&n.pendingAttributes.push([r,\"\"+e[r]])}))},e.prototype.invalidate=function(){var e=this;if(this.activated&&this.pendingAttributes.length){for(var t={},n=0,r=this.pendingAttributes;n<r.length;n++){var o=r[n],i=o[0],s=o[1];t[i]=s}Object.keys(t).forEach((function(n){e.onAttributeModifiedByEngine(n,t[n])})),this.pendingAttributes=[],t={}}},e.prototype.onAttributeModifiedByEngine=function(e,t){this.devtool.sendMessage(\"DOM.attributeModified\",{name:e,nodeId:this.nodeId,value:\"\"+t})},e}(),fe=function(){function e(e,t,n,r,o){this.devtool=e,this.node=t,this.nodeId=n,this.parentNodeId=r,this.znode=o,this.nodeType=1,this.activated=!1}return e.prototype.invalidate=function(){if(this.lastSerializedJSON){var e=this.serialize(this.lastSerializedJSON.children?1:0,!1);this.checkAttributesModified(this.lastSerializedJSON.attributes||[],e.attributes||[]),this.lastSerializedJSON.children&&this.checkChildNodesUpdated(this.lastSerializedJSON.children,e.children||[]),this.lastSerializedJSON=e}},e.prototype.serialize=function(e,t){void 0===t&&(t=!0),this.activated=!0;for(var n,r,o=this.node,i=0,s=0,a=o.childNodes;s<a.length;s++){var u=a[s];if(1===u.nodeType||3===u.nodeType){var c=this.devtool.getDOMNodeDebugInfo(u,null,this.nodeId);if(c.znode){if(!r){var l=c.znode.shadowSlotNodeId;r={backendNodeId:l,childNodeCount:0,children:[],distributedNodes:[],localName:\"slot\",nodeId:l,nodeName:\"SLOT\",nodeType:1,nodeValue:\"\",parentId:this.nodeId}}var d=r.distributedNodes;d||(d=r.distributedNodes=[]),d.push({backendNodeId:c.znode.nodeId,nodeName:c.znode.nodeName,nodeType:u.nodeType});continue}r&&(e>0&&(n||(n=[]),n.push(r)),i++),r=null,e>0&&(n||(n=[]),n.push(c.serialize(e-1,t))),i++}}r&&(e>0&&(n||(n=[]),n.push(r)),i++);for(var h=[],f=0,p=o.attributes;f<p.length;f++){var g=p[f];h.push(g.name,g.value)}var v={attributes:h,backendNodeId:this.nodeId,childNodeCount:i,children:n,localName:o.nodeName.toLowerCase(),nodeId:this.nodeId,nodeName:o.nodeName,nodeType:1,nodeValue:\"\",parentId:this.parentNodeId,pseudoElements:this.getPseudoElements()};return t&&(this.lastSerializedJSON=v),v},e.prototype.checkAttributesModified=function(e,t){for(var n=this,r=new Map,o=0;o<e.length-1;o+=2)r.set(e[o],e[o+1]);for(o=0;o<t.length-1;o+=2){var i=t[o],s=t[o+1];if(r.has(i)){var a=r.get(i);r.delete(i),a!==s&&this.devtool.sendMessage(\"DOM.attributeModified\",{name:i,nodeId:this.nodeId,value:s})}else this.devtool.sendMessage(\"DOM.attributeModified\",{name:i,nodeId:this.nodeId,value:s})}r.forEach((function(e,t){n.devtool.sendMessage(\"DOM.attributeRemoved\",{name:t,nodeId:n.nodeId})}))},e.prototype.checkChildNodesUpdated=function(e,t){var n=this;pe(e,t,(function(e,t){return e.nodeId===t.nodeId}),(function(e){var r=t[t.indexOf(e)-1];n.devtool.sendMessage(\"DOM.childNodeInserted\",{node:e,parentNodeId:e.parentId,previousNodeId:r?r.nodeId:0})}),(function(e){n.devtool.sendMessage(\"DOM.childNodeRemoved\",{nodeId:e.nodeId,parentNodeId:e.parentId})}),(function(e,t){if(\"SLOT\"===e.nodeName){var r=function(){n.devtool.sendMessage(\"DOM.distributedNodesUpdated\",{distributedNodes:t.distributedNodes||[],insertionPointId:t.nodeId})};pe(e.distributedNodes||[],t.distributedNodes||[],(function(e,t){return e.backendNodeId===t.backendNodeId}),r,r)}else{var o=n.devtool.nodeId2DOMNode.get(e.nodeId);o&&1===o.nodeType&&o.invalidate()}}))},e.prototype.getPseudoElements=function(){return[]},e}();function pe(e,t,n,r,o,i){var s=t.slice();e.forEach((function(e){var t=-1;s.some((function(r,o){if(n(e,r))return t=o,!0})),t>-1?(i&&i(e,s[t]),s.splice(t,1)):o(e)})),s.forEach(r)}var ge=function(){function e(e,t,n,r){this.devtool=e,this.node=t,this.nodeId=n,this.znode=r,this.nodeType=3,this.activated=!1}return e.prototype.serialize=function(){var e=this.node;return{backendNodeId:this.nodeId,childNodeCount:0,localName:\"\",nodeId:this.nodeId,nodeName:\"#text\",nodeType:3,nodeValue:e.textContent,parentId:this.devtool.getDOMNodeDebugInfo(this.node.parentNode,this.znode).nodeId}},e}(),ve=function(){function e(e){this.option=e,this.nodeId2ZNode=new Map,this.shadowRootNodeId2ZNode=new Map,this.nodeId2DOMNode=new Map,this.nodeId2PseudoElement=new Map,this.componentTargetId2ZNode=new Map,this.componentTargetId2LinkedInstance=new Map,this.shadowRootElementsEnabled=!1,this.rootNodeId=1,this.nextNodeId=this.rootNodeId+1,this.dependecyFactory=e.dependencyFactory}return e.prototype.sendMessage=function(e,t){this.option.connection.sendMessage(e,t)},e.prototype.sendMessageWithPriority=function(e,t){this.option.connection.sendMessage(e,t,!0)},e.prototype.getZRuntimeHelper=function(){return this.option.debugProxy.getZRuntime().h},e.prototype.getZNodeDebugInfo=function(e){if(!e._debug)if(1===e.eType){var t=this.option.debugProxy.getTagNameByPlatformElement(e)||\"unknown\";0===t.indexOf(\"unknown\")&&(t=e.tagName||e.externalElementName||t);var n=this.dependecyFactory.createZNodeElement(this,t.toUpperCase(),e,this.nextNodeId++,this.nextNodeId++,this.nextNodeId++);this.nodeId2ZNode.set(n.nodeId,n),this.shadowRootNodeId2ZNode.set(n.shadowRootNodeId,n),e._debug=n}else if(2===e.eType){var r=new de(this,e,this.nextNodeId++,this.nextNodeId++);this.nodeId2ZNode.set(r.nodeId,r),e._debug=r}return e._debug},e.prototype.getZNodeComponentDebugInfo=function(e){if(!this.componentTargetId2ZNode.has(e)){var t=new he(this,e,this.nextNodeId++);this.nodeId2ZNode.set(t.nodeId,t),this.componentTargetId2ZNode.set(e,t)}return this.componentTargetId2ZNode.get(e)},e.prototype.getDOMNodeDebugInfo=function(e,t,n){if(!e._debug)if(1===e.nodeType){var r=this.dependecyFactory.createDOMElement(this,e,this.nextNodeId++,n,t);this.nodeId2DOMNode.set(r.nodeId,r),e._debug=r}else if(3===e.nodeType){var o=new ge(this,e,this.nextNodeId++,t);this.nodeId2DOMNode.set(o.nodeId,o),e._debug=o}return e._debug},e.prototype.getDocumentNode=function(){try{var e=[],t=this.getZNodeDebugInfo(this.option.clientProxy.renderer.documentInstance);t.setParentNodeId(1),e.push(t.serialize(1));var n=this.option.clientProxy.renderer.tabBarInstance;if(n){var r=this.getZNodeDebugInfo(n);if(r.setParentNodeId(1),r&&r.serialize(1).children){var o=r.serialize(1).children[0];o&&(o.nodeName=\"tab-bar\",o.attributes=[],e.push(o))}}return{backendNodeId:1,childNodeCount:1,children:e,localName:\"\",nodeId:1,nodeName:\"#document\",nodeType:9,nodeValue:\"\"}}catch(e){console.warn(\"getDocumentRoot error\",e);return{backendNodeId:1,childNodeCount:1,children:[{attributes:[],backendNodeId:2,childNodeCount:0,localName:\"page-not-found\",nodeId:2,nodeName:\"page-not-found\",nodeType:1,nodeValue:\"\",parentId:1}],localName:\"\",nodeId:1,nodeName:\"#document\",nodeType:9,nodeValue:\"\"}}},e.prototype.flushUpdatedQueue=function(){this.pageInstance&&this.pageInstance.flushUpdatedQueue()},e.prototype.resetZNodeActivatedState=function(){this.nodeId2ZNode.forEach((function(e){e.activated=!1,e.nodeType===L.Element&&e.childrenActivated&&(e.childrenActivated=!1)}))},e.prototype.enableShadowRootElements=function(){this.shadowRootElementsEnabled=!0},e.prototype.getNextNodeId=function(){return this.nextNodeId++},e}(),me=function(e,t,n){this.nodeId=e,this.pseudoType=t,this.root=n},ye=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return U(t,e),t.prototype.getPseudoElements=function(){var e=this,t=[],n=this.getPlatformRootDOM();return n.nodeType===Node.ELEMENT_NODE&&[\"before\",\"after\"].forEach((function(r){var o=\"::\"+r,i=getComputedStyle(n,o).getPropertyValue(\"content\");if(i&&\"none\"!==i){e.pseudoNodeType2Id||(e.pseudoNodeType2Id={});var s=e.pseudoNodeType2Id[r];s||(s=e.pseudoNodeType2Id[r]=e.devtool.getNextNodeId()),e.devtool.nodeId2PseudoElement.set(s,new me(s,r,e.getPlatformRootDOM())),t.push({attributes:[],backendNodeId:s,childNodeCount:0,localName:o,nodeId:s,nodeName:o,nodeType:1,nodeValue:\"\",parentId:e.nodeId,pseudoType:r})}})),t},t}(le),be=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return U(t,e),t.prototype.getPseudoElements=function(){var e=this,t=[],n=this.node;return 1===n.nodeType&&[\"before\",\"after\"].forEach((function(r){var o=\"::\"+r;if(\"none\"!==getComputedStyle(n,o).getPropertyValue(\"content\")){e.pseudoNodeType2Id||(e.pseudoNodeType2Id={});var i=e.pseudoNodeType2Id[r];i||(i=e.pseudoNodeType2Id[r]=e.devtool.getNextNodeId()),e.devtool.nodeId2PseudoElement.set(i,new me(i,r,e.node)),t.push({attributes:[],backendNodeId:i,childNodeCount:0,localName:o,nodeId:i,nodeName:o,nodeType:1,nodeValue:\"\",parentId:e.nodeId,pseudoType:r})}})),t},t}(fe);function _e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,\"default\")?e.default:e}function we(e,t){return e(t={exports:{}},t.exports),t.exports}var Se=we((function(e,t){window,e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){\"undefined\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:\"Module\"}),Object.defineProperty(e,\"__esModule\",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&\"object\"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,\"default\",{enumerable:!0,value:e}),2&t&&\"string\"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,\"a\",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p=\"\",n(n.s=21)}([function(e,t){t.getArg=function(e,t,n){if(t in e)return e[t];if(3===arguments.length)return n;throw new Error('\"'+t+'\" is a required argument.')};var n=/^(?:([\\w+\\-.]+):)?\\/\\/(?:(\\w+:\\w+)@)?([\\w.-]*)(?::(\\d+))?(.*)$/,r=/^data:.+\\,.+$/;function o(e){var t=e.match(n);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}function i(e){var t=\"\";return e.scheme&&(t+=e.scheme+\":\"),t+=\"//\",e.auth&&(t+=e.auth+\"@\"),e.host&&(t+=e.host),e.port&&(t+=\":\"+e.port),e.path&&(t+=e.path),t}function s(e){var n=e,r=o(e);if(r){if(!r.path)return e;n=r.path}for(var s,a=t.isAbsolute(n),u=n.split(/\\/+/),c=0,l=u.length-1;l>=0;l--)\".\"===(s=u[l])?u.splice(l,1):\"..\"===s?c++:c>0&&(\"\"===s?(u.splice(l+1,c),c=0):(u.splice(l,2),c--));return\"\"===(n=u.join(\"/\"))&&(n=a?\"/\":\".\"),r?(r.path=n,i(r)):n}function a(e,t){\"\"===e&&(e=\".\"),\"\"===t&&(t=\".\");var n=o(t),a=o(e);if(a&&(e=a.path||\"/\"),n&&!n.scheme)return a&&(n.scheme=a.scheme),i(n);if(n||t.match(r))return t;if(a&&!a.host&&!a.path)return a.host=t,i(a);var u=\"/\"===t.charAt(0)?t:s(e.replace(/\\/+$/,\"\")+\"/\"+t);return a?(a.path=u,i(a)):u}t.urlParse=o,t.urlGenerate=i,t.normalize=s,t.join=a,t.isAbsolute=function(e){return\"/\"===e.charAt(0)||n.test(e)},t.relative=function(e,t){\"\"===e&&(e=\".\"),e=e.replace(/\\/$/,\"\");for(var n=0;0!==t.indexOf(e+\"/\");){var r=e.lastIndexOf(\"/\");if(r<0)return t;if((e=e.slice(0,r)).match(/^([^\\/]+:\\/)?\\/*$/))return t;++n}return Array(n+1).join(\"../\")+t.substr(e.length+1)};var u=!(\"__proto__\"in Object.create(null));function c(e){return e}function l(e){if(!e)return!1;var t=e.length;if(t<9)return!1;if(95!==e.charCodeAt(t-1)||95!==e.charCodeAt(t-2)||111!==e.charCodeAt(t-3)||116!==e.charCodeAt(t-4)||111!==e.charCodeAt(t-5)||114!==e.charCodeAt(t-6)||112!==e.charCodeAt(t-7)||95!==e.charCodeAt(t-8)||95!==e.charCodeAt(t-9))return!1;for(var n=t-10;n>=0;n--)if(36!==e.charCodeAt(n))return!1;return!0}function d(e,t){return e===t?0:null===e?1:null===t?-1:e>t?1:-1}t.toSetString=u?c:function(e){return l(e)?\"$\"+e:e},t.fromSetString=u?c:function(e){return l(e)?e.slice(1):e},t.compareByOriginalPositions=function(e,t,n){var r=d(e.source,t.source);return 0!==r||0!=(r=e.originalLine-t.originalLine)||0!=(r=e.originalColumn-t.originalColumn)||n||0!=(r=e.generatedColumn-t.generatedColumn)||0!=(r=e.generatedLine-t.generatedLine)?r:d(e.name,t.name)},t.compareByGeneratedPositionsDeflated=function(e,t,n){var r=e.generatedLine-t.generatedLine;return 0!==r||0!=(r=e.generatedColumn-t.generatedColumn)||n||0!==(r=d(e.source,t.source))||0!=(r=e.originalLine-t.originalLine)||0!=(r=e.originalColumn-t.originalColumn)?r:d(e.name,t.name)},t.compareByGeneratedPositionsInflated=function(e,t){var n=e.generatedLine-t.generatedLine;return 0!==n||0!=(n=e.generatedColumn-t.generatedColumn)||0!==(n=d(e.source,t.source))||0!=(n=e.originalLine-t.originalLine)||0!=(n=e.originalColumn-t.originalColumn)?n:d(e.name,t.name)},t.parseSourceMapInput=function(e){return JSON.parse(e.replace(/^\\)]}'[^\\n]*\\n/,\"\"))},t.computeSourceURL=function(e,t,n){if(t=t||\"\",e&&(\"/\"!==e[e.length-1]&&\"/\"!==t[0]&&(e+=\"/\"),t=e+t),n){var r=o(n);if(!r)throw new Error(\"sourceMapURL could not be parsed\");if(r.path){var u=r.path.lastIndexOf(\"/\");u>=0&&(r.path=r.path.substring(0,u+1))}t=a(i(r),t)}return s(t)}},function(e,t,n){var r;t.__esModule=!0,t.default=void 0;var o=function(e){var t,n;function r(t){var n;return(n=e.call(this,t)||this).type=\"decl\",n}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r}(((r=n(2))&&r.__esModule?r:{default:r}).default);t.default=o,e.exports=t.default},function(e,t,n){t.__esModule=!0,t.default=void 0;var r=s(n(10)),o=s(n(11)),i=s(n(3));function s(e){return e&&e.__esModule?e:{default:e}}var a=function(){function e(e){for(var t in void 0===e&&(e={}),this.raws={},e)this[t]=e[t]}var t=e.prototype;return t.error=function(e,t){if(void 0===t&&(t={}),this.source){var n=this.positionBy(t);return this.source.input.error(e,n.line,n.column,t)}return new r.default(e)},t.warn=function(e,t,n){var r={node:this};for(var o in n)r[o]=n[o];return e.warn(t,r)},t.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},t.toString=function(e){void 0===e&&(e=i.default),e.stringify&&(e=e.stringify);var t=\"\";return e(this,(function(e){t+=e})),t},t.clone=function(e){void 0===e&&(e={});var t=function e(t,n){var r=new t.constructor;for(var o in t)if(t.hasOwnProperty(o)){var i=t[o],s=typeof i;\"parent\"===o&&\"object\"===s?n&&(r[o]=n):\"source\"===o?r[o]=i:i instanceof Array?r[o]=i.map((function(t){return e(t,r)})):(\"object\"===s&&null!==i&&(i=e(i)),r[o]=i)}return r}(this);for(var n in e)t[n]=e[n];return t},t.cloneBefore=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertBefore(this,t),t},t.cloneAfter=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertAfter(this,t),t},t.replaceWith=function(){if(this.parent){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(var r=0,o=t;r<o.length;r++){var i=o[r];this.parent.insertBefore(this,i)}this.remove()}return this},t.next=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}},t.prev=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e-1]}},t.before=function(e){return this.parent.insertBefore(this,e),this},t.after=function(e){return this.parent.insertAfter(this,e),this},t.toJSON=function(){var e={};for(var t in this)if(this.hasOwnProperty(t)&&\"parent\"!==t){var n=this[t];n instanceof Array?e[t]=n.map((function(e){return\"object\"==typeof e&&e.toJSON?e.toJSON():e})):\"object\"==typeof n&&n.toJSON?e[t]=n.toJSON():e[t]=n}return e},t.raw=function(e,t){return(new o.default).raw(this,e,t)},t.root=function(){for(var e=this;e.parent;)e=e.parent;return e},t.cleanRaws=function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between},t.positionInside=function(e){for(var t=this.toString(),n=this.source.start.column,r=this.source.start.line,o=0;o<e;o++)\"\\n\"===t[o]?(n=1,r+=1):n+=1;return{line:r,column:n}},t.positionBy=function(e){var t=this.source.start;if(e.index)t=this.positionInside(e.index);else if(e.word){var n=this.toString().indexOf(e.word);-1!==n&&(t=this.positionInside(n))}return t},e}();t.default=a,e.exports=t.default},function(e,t,n){t.__esModule=!0,t.default=void 0;var r,o=(r=n(11))&&r.__esModule?r:{default:r};t.default=function(e,t){new o.default(t).stringify(e)},e.exports=t.default},function(e,t,n){(function(e){function n(e,t){for(var n=0,r=e.length-1;r>=0;r--){var o=e[r];\".\"===o?e.splice(r,1):\"..\"===o?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift(\"..\");return e}function r(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r<e.length;r++)t(e[r],r,e)&&n.push(e[r]);return n}t.resolve=function(){for(var t=\"\",o=!1,i=arguments.length-1;i>=-1&&!o;i--){var s=i>=0?arguments[i]:e.cwd();if(\"string\"!=typeof s)throw new TypeError(\"Arguments to path.resolve must be strings\");s&&(t=s+\"/\"+t,o=\"/\"===s.charAt(0))}return(o?\"/\":\"\")+(t=n(r(t.split(\"/\"),(function(e){return!!e})),!o).join(\"/\"))||\".\"},t.normalize=function(e){var i=t.isAbsolute(e),s=\"/\"===o(e,-1);return(e=n(r(e.split(\"/\"),(function(e){return!!e})),!i).join(\"/\"))||i||(e=\".\"),e&&s&&(e+=\"/\"),(i?\"/\":\"\")+e},t.isAbsolute=function(e){return\"/\"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(r(e,(function(e,t){if(\"string\"!=typeof e)throw new TypeError(\"Arguments to path.join must be strings\");return e})).join(\"/\"))},t.relative=function(e,n){function r(e){for(var t=0;t<e.length&&\"\"===e[t];t++);for(var n=e.length-1;n>=0&&\"\"===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}e=t.resolve(e).substr(1),n=t.resolve(n).substr(1);for(var o=r(e.split(\"/\")),i=r(n.split(\"/\")),s=Math.min(o.length,i.length),a=s,u=0;u<s;u++)if(o[u]!==i[u]){a=u;break}var c=[];for(u=a;u<o.length;u++)c.push(\"..\");return(c=c.concat(i.slice(a))).join(\"/\")},t.sep=\"/\",t.delimiter=\":\",t.dirname=function(e){if(\"string\"!=typeof e&&(e+=\"\"),0===e.length)return\".\";for(var t=e.charCodeAt(0),n=47===t,r=-1,o=!0,i=e.length-1;i>=1;--i)if(47===(t=e.charCodeAt(i))){if(!o){r=i;break}}else o=!1;return-1===r?n?\"/\":\".\":n&&1===r?\"/\":e.slice(0,r)},t.basename=function(e,t){var n=function(e){\"string\"!=typeof e&&(e+=\"\");var t,n=0,r=-1,o=!0;for(t=e.length-1;t>=0;--t)if(47===e.charCodeAt(t)){if(!o){n=t+1;break}}else-1===r&&(o=!1,r=t+1);return-1===r?\"\":e.slice(n,r)}(e);return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},t.extname=function(e){\"string\"!=typeof e&&(e+=\"\");for(var t=-1,n=0,r=-1,o=!0,i=0,s=e.length-1;s>=0;--s){var a=e.charCodeAt(s);if(47!==a)-1===r&&(o=!1,r=s+1),46===a?-1===t?t=s:1!==i&&(i=1):-1!==t&&(i=-1);else if(!o){n=s+1;break}}return-1===t||-1===r||0===i||1===i&&t===r-1&&t===n+1?\"\":e.slice(t,r)};var o=\"b\"===\"ab\".substr(-1)?function(e,t,n){return e.substr(t,n)}:function(e,t,n){return t<0&&(t=e.length+t),e.substr(t,n)}}).call(this,n(36))},function(e,t,n){t.__esModule=!0,t.default=void 0;var r=i(n(40)),o=i(n(42));function i(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t){var n=new o.default(e,t),i=new r.default(n);try{i.parse()}catch(e){throw e}return i.root},e.exports=t.default},function(e,t,n){var r;t.__esModule=!0,t.default=void 0;var o=function(e){var t,n;function r(t){var n;return(n=e.call(this,t)||this).type=\"comment\",n}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r}(((r=n(2))&&r.__esModule?r:{default:r}).default);t.default=o,e.exports=t.default},function(e,t,n){var r;t.__esModule=!0,t.default=void 0;var o=function(e){var t,n;function r(t){var n;return(n=e.call(this,t)||this).type=\"atrule\",n}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.append=function(){var t;this.nodes||(this.nodes=[]);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.prototype.append).call.apply(t,[this].concat(r))},o.prepend=function(){var t;this.nodes||(this.nodes=[]);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.prototype.prepend).call.apply(t,[this].concat(r))},r}(((r=n(8))&&r.__esModule?r:{default:r}).default);t.default=o,e.exports=t.default},function(e,t,n){t.__esModule=!0,t.default=void 0;var r=i(n(1)),o=i(n(6));function i(e){return e&&e.__esModule?e:{default:e}}var s=function(e){var t,i;function s(){return e.apply(this,arguments)||this}i=e,(t=s).prototype=Object.create(i.prototype),t.prototype.constructor=t,t.__proto__=i;var a,u=s.prototype;return u.push=function(e){return e.parent=this,this.nodes.push(e),this},u.each=function(e){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var t=this.lastEach;if(this.indexes[t]=0,this.nodes){for(var n,r;this.indexes[t]<this.nodes.length&&(n=this.indexes[t],!1!==(r=e(this.nodes[n],n)));)this.indexes[t]+=1;return delete this.indexes[t],r}},u.walk=function(e){return this.each((function(t,n){var r;try{r=e(t,n)}catch(e){if(e.postcssNode=t,e.stack&&t.source&&/\\n\\s{4}at /.test(e.stack)){var o=t.source;e.stack=e.stack.replace(/\\n\\s{4}at /,\"$&\"+o.input.from+\":\"+o.start.line+\":\"+o.start.column+\"$&\")}throw e}return!1!==r&&t.walk&&(r=t.walk(e)),r}))},u.walkDecls=function(e,t){return t?e instanceof RegExp?this.walk((function(n,r){if(\"decl\"===n.type&&e.test(n.prop))return t(n,r)})):this.walk((function(n,r){if(\"decl\"===n.type&&n.prop===e)return t(n,r)})):(t=e,this.walk((function(e,n){if(\"decl\"===e.type)return t(e,n)})))},u.walkRules=function(e,t){return t?e instanceof RegExp?this.walk((function(n,r){if(\"rule\"===n.type&&e.test(n.selector))return t(n,r)})):this.walk((function(n,r){if(\"rule\"===n.type&&n.selector===e)return t(n,r)})):(t=e,this.walk((function(e,n){if(\"rule\"===e.type)return t(e,n)})))},u.walkAtRules=function(e,t){return t?e instanceof RegExp?this.walk((function(n,r){if(\"atrule\"===n.type&&e.test(n.name))return t(n,r)})):this.walk((function(n,r){if(\"atrule\"===n.type&&n.name===e)return t(n,r)})):(t=e,this.walk((function(e,n){if(\"atrule\"===e.type)return t(e,n)})))},u.walkComments=function(e){return this.walk((function(t,n){if(\"comment\"===t.type)return e(t,n)}))},u.append=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(var r=0,o=t;r<o.length;r++){var i=o[r],s=this.normalize(i,this.last),a=s,u=Array.isArray(a),c=0;for(a=u?a:a[Symbol.iterator]();;){var l;if(u){if(c>=a.length)break;l=a[c++]}else{if((c=a.next()).done)break;l=c.value}var d=l;this.nodes.push(d)}}return this},u.prepend=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t=t.reverse(),o=Array.isArray(r),i=0;for(r=o?r:r[Symbol.iterator]();;){var s;if(o){if(i>=r.length)break;s=r[i++]}else{if((i=r.next()).done)break;s=i.value}var a=s,u=this.normalize(a,this.first,\"prepend\").reverse(),c=u,l=Array.isArray(c),d=0;for(c=l?c:c[Symbol.iterator]();;){var h;if(l){if(d>=c.length)break;h=c[d++]}else{if((d=c.next()).done)break;h=d.value}var f=h;this.nodes.unshift(f)}for(var p in this.indexes)this.indexes[p]=this.indexes[p]+u.length}return this},u.cleanRaws=function(t){if(e.prototype.cleanRaws.call(this,t),this.nodes){var n=this.nodes,r=Array.isArray(n),o=0;for(n=r?n:n[Symbol.iterator]();;){var i;if(r){if(o>=n.length)break;i=n[o++]}else{if((o=n.next()).done)break;i=o.value}i.cleanRaws(t)}}},u.insertBefore=function(e,t){var n,r=0===(e=this.index(e))&&\"prepend\",o=this.normalize(t,this.nodes[e],r).reverse(),i=o,s=Array.isArray(i),a=0;for(i=s?i:i[Symbol.iterator]();;){var u;if(s){if(a>=i.length)break;u=i[a++]}else{if((a=i.next()).done)break;u=a.value}var c=u;this.nodes.splice(e,0,c)}for(var l in this.indexes)e<=(n=this.indexes[l])&&(this.indexes[l]=n+o.length);return this},u.insertAfter=function(e,t){e=this.index(e);var n,r=this.normalize(t,this.nodes[e]).reverse(),o=r,i=Array.isArray(o),s=0;for(o=i?o:o[Symbol.iterator]();;){var a;if(i){if(s>=o.length)break;a=o[s++]}else{if((s=o.next()).done)break;a=s.value}var u=a;this.nodes.splice(e+1,0,u)}for(var c in this.indexes)e<(n=this.indexes[c])&&(this.indexes[c]=n+r.length);return this},u.removeChild=function(e){var t;for(var n in e=this.index(e),this.nodes[e].parent=void 0,this.nodes.splice(e,1),this.indexes)(t=this.indexes[n])>=e&&(this.indexes[n]=t-1);return this},u.removeAll=function(){var e=this.nodes,t=Array.isArray(e),n=0;for(e=t?e:e[Symbol.iterator]();;){var r;if(t){if(n>=e.length)break;r=e[n++]}else{if((n=e.next()).done)break;r=n.value}r.parent=void 0}return this.nodes=[],this},u.replaceValues=function(e,t,n){return n||(n=t,t={}),this.walkDecls((function(r){t.props&&-1===t.props.indexOf(r.prop)||t.fast&&-1===r.value.indexOf(t.fast)||(r.value=r.value.replace(e,n))})),this},u.every=function(e){return this.nodes.every(e)},u.some=function(e){return this.nodes.some(e)},u.index=function(e){return\"number\"==typeof e?e:this.nodes.indexOf(e)},u.normalize=function(e,t){var i=this;if(\"string\"==typeof e)e=function e(t){return t.map((function(t){return t.nodes&&(t.nodes=e(t.nodes)),delete t.source,t}))}(n(5)(e).nodes);else if(Array.isArray(e)){var s=e=e.slice(0),a=Array.isArray(s),u=0;for(s=a?s:s[Symbol.iterator]();;){var c;if(a){if(u>=s.length)break;c=s[u++]}else{if((u=s.next()).done)break;c=u.value}var l=c;l.parent&&l.parent.removeChild(l,\"ignore\")}}else if(\"root\"===e.type){var d=e=e.nodes.slice(0),h=Array.isArray(d),f=0;for(d=h?d:d[Symbol.iterator]();;){var p;if(h){if(f>=d.length)break;p=d[f++]}else{if((f=d.next()).done)break;p=f.value}var g=p;g.parent&&g.parent.removeChild(g,\"ignore\")}}else if(e.type)e=[e];else if(e.prop){if(void 0===e.value)throw new Error(\"Value field is missed in node creation\");\"string\"!=typeof e.value&&(e.value=String(e.value)),e=[new r.default(e)]}else if(e.selector)e=[new(n(9))(e)];else if(e.name)e=[new(n(7))(e)];else{if(!e.text)throw new Error(\"Unknown node type in node creation\");e=[new o.default(e)]}return e.map((function(e){return e.parent&&e.parent.removeChild(e),void 0===e.raws.before&&t&&void 0!==t.raws.before&&(e.raws.before=t.raws.before.replace(/[^\\s]/g,\"\")),e.parent=i,e}))},(a=[{key:\"first\",get:function(){if(this.nodes)return this.nodes[0]}},{key:\"last\",get:function(){if(this.nodes)return this.nodes[this.nodes.length-1]}}])&&function(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)}}(s.prototype,a),s}(i(n(2)).default);t.default=s,e.exports=t.default},function(e,t,n){t.__esModule=!0,t.default=void 0;var r=i(n(8)),o=i(n(19));function i(e){return e&&e.__esModule?e:{default:e}}var s=function(e){var t,n,r;function i(t){var n;return(n=e.call(this,t)||this).type=\"rule\",n.nodes||(n.nodes=[]),n}return n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,(r=[{key:\"selectors\",get:function(){return o.default.comma(this.selector)},set:function(e){var t=this.selector?this.selector.match(/,\\s*/):null,n=t?t[0]:\",\"+this.raw(\"between\",\"beforeOpen\");this.selector=e.join(n)}}])&&function(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)}}(i.prototype,r),i}(r.default);t.default=s,e.exports=t.default},function(e,t,n){t.__esModule=!0,t.default=void 0;var r=s(n(22)),o=s(n(23)),i=s(n(24));function s(e){return e&&e.__esModule?e:{default:e}}function a(e){var t=\"function\"==typeof Map?new Map:void 0;return(a=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf(\"[native code]\")))return e;var n;if(\"function\"!=typeof e)throw new TypeError(\"Super expression must either be null or a function\");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return c(e,arguments,d(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),l(r,e)})(e)}function u(){if(\"undefined\"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(\"function\"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function c(e,t,n){return(c=u()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&l(o,n.prototype),o}).apply(null,arguments)}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var h=function(e){var t,n;function s(t,n,r,o,i,a){var u;return(u=e.call(this,t)||this).name=\"CssSyntaxError\",u.reason=t,i&&(u.file=i),o&&(u.source=o),a&&(u.plugin=a),void 0!==n&&void 0!==r&&(u.line=n,u.column=r),u.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(function(e){if(void 0===e)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return e}(u),s),u}n=e,(t=s).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var a=s.prototype;return a.setMessage=function(){this.message=this.plugin?this.plugin+\": \":\"\",this.message+=this.file?this.file:\"<css input>\",void 0!==this.line&&(this.message+=\":\"+this.line+\":\"+this.column),this.message+=\": \"+this.reason},a.showSourceCode=function(e){var t=this;if(!this.source)return\"\";var n=this.source;i.default&&(void 0===e&&(e=r.default.stdout),e&&(n=(0,i.default)(n)));var s=n.split(/\\r?\\n/),a=Math.max(this.line-3,0),u=Math.min(this.line+2,s.length),c=String(u).length;function l(t){return e&&o.default.red?o.default.red.bold(t):t}function d(t){return e&&o.default.gray?o.default.gray(t):t}return s.slice(a,u).map((function(e,n){var r=a+1+n,o=\" \"+(\" \"+r).slice(-c)+\" | \";if(r===t.line){var i=d(o.replace(/\\d/g,\" \"))+e.slice(0,t.column-1).replace(/[^\\t]/g,\" \");return l(\">\")+d(o)+e+\"\\n \"+i+l(\"^\")}return\" \"+d(o)+e})).join(\"\\n\")},a.toString=function(){var e=this.showSourceCode();return e&&(e=\"\\n\\n\"+e+\"\\n\"),this.name+\": \"+this.message+e},s}(a(Error));t.default=h,e.exports=t.default},function(e,t,n){t.__esModule=!0,t.default=void 0;var r={colon:\": \",indent:\" \",beforeDecl:\"\\n\",beforeRule:\"\\n\",beforeOpen:\" \",beforeClose:\"\\n\",beforeComment:\"\\n\",after:\"\\n\",emptyBody:\"\",commentLeft:\" \",commentRight:\" \",semicolon:!1},o=function(){function e(e){this.builder=e}var t=e.prototype;return t.stringify=function(e,t){this[e.type](e,t)},t.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},t.comment=function(e){var t=this.raw(e,\"left\",\"commentLeft\"),n=this.raw(e,\"right\",\"commentRight\");this.builder(\"/*\"+t+e.text+n+\"*/\",e)},t.decl=function(e,t){var n=this.raw(e,\"between\",\"colon\"),r=e.prop+n+this.rawValue(e,\"value\");e.important&&(r+=e.raws.important||\" !important\"),t&&(r+=\";\"),this.builder(r,e)},t.rule=function(e){this.block(e,this.rawValue(e,\"selector\")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,\"end\")},t.atrule=function(e,t){var n=\"@\"+e.name,r=e.params?this.rawValue(e,\"params\"):\"\";if(void 0!==e.raws.afterName?n+=e.raws.afterName:r&&(n+=\" \"),e.nodes)this.block(e,n+r);else{var o=(e.raws.between||\"\")+(t?\";\":\"\");this.builder(n+r+o,e)}},t.body=function(e){for(var t=e.nodes.length-1;t>0&&\"comment\"===e.nodes[t].type;)t-=1;for(var n=this.raw(e,\"semicolon\"),r=0;r<e.nodes.length;r++){var o=e.nodes[r],i=this.raw(o,\"before\");i&&this.builder(i),this.stringify(o,t!==r||n)}},t.block=function(e,t){var n,r=this.raw(e,\"between\",\"beforeOpen\");this.builder(t+r+\"{\",e,\"start\"),e.nodes&&e.nodes.length?(this.body(e),n=this.raw(e,\"after\")):n=this.raw(e,\"after\",\"emptyBody\"),n&&this.builder(n),this.builder(\"}\",e,\"end\")},t.raw=function(e,t,n){var o;if(n||(n=t),t&&void 0!==(o=e.raws[t]))return o;var i=e.parent;if(\"before\"===n&&(!i||\"root\"===i.type&&i.first===e))return\"\";if(!i)return r[n];var s=e.root();if(s.rawCache||(s.rawCache={}),void 0!==s.rawCache[n])return s.rawCache[n];if(\"before\"===n||\"after\"===n)return this.beforeAfter(e,n);var a,u=\"raw\"+((a=n)[0].toUpperCase()+a.slice(1));return this[u]?o=this[u](s,e):s.walk((function(e){if(void 0!==(o=e.raws[t]))return!1})),void 0===o&&(o=r[n]),s.rawCache[n]=o,o},t.rawSemicolon=function(e){var t;return e.walk((function(e){if(e.nodes&&e.nodes.length&&\"decl\"===e.last.type&&void 0!==(t=e.raws.semicolon))return!1})),t},t.rawEmptyBody=function(e){var t;return e.walk((function(e){if(e.nodes&&0===e.nodes.length&&void 0!==(t=e.raws.after))return!1})),t},t.rawIndent=function(e){return e.raws.indent?e.raws.indent:(e.walk((function(n){var r=n.parent;if(r&&r!==e&&r.parent&&r.parent===e&&void 0!==n.raws.before){var o=n.raws.before.split(\"\\n\");return t=(t=o[o.length-1]).replace(/[^\\s]/g,\"\"),!1}})),t);var t},t.rawBeforeComment=function(e,t){var n;return e.walkComments((function(e){if(void 0!==e.raws.before)return-1!==(n=e.raws.before).indexOf(\"\\n\")&&(n=n.replace(/[^\\n]+$/,\"\")),!1})),void 0===n?n=this.raw(t,null,\"beforeDecl\"):n&&(n=n.replace(/[^\\s]/g,\"\")),n},t.rawBeforeDecl=function(e,t){var n;return e.walkDecls((function(e){if(void 0!==e.raws.before)return-1!==(n=e.raws.before).indexOf(\"\\n\")&&(n=n.replace(/[^\\n]+$/,\"\")),!1})),void 0===n?n=this.raw(t,null,\"beforeRule\"):n&&(n=n.replace(/[^\\s]/g,\"\")),n},t.rawBeforeRule=function(e){var t;return e.walk((function(n){if(n.nodes&&(n.parent!==e||e.first!==n)&&void 0!==n.raws.before)return-1!==(t=n.raws.before).indexOf(\"\\n\")&&(t=t.replace(/[^\\n]+$/,\"\")),!1})),t&&(t=t.replace(/[^\\s]/g,\"\")),t},t.rawBeforeClose=function(e){var t;return e.walk((function(e){if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return-1!==(t=e.raws.after).indexOf(\"\\n\")&&(t=t.replace(/[^\\n]+$/,\"\")),!1})),t&&(t=t.replace(/[^\\s]/g,\"\")),t},t.rawBeforeOpen=function(e){var t;return e.walk((function(e){if(\"decl\"!==e.type&&void 0!==(t=e.raws.between))return!1})),t},t.rawColon=function(e){var t;return e.walkDecls((function(e){if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\\s:]/g,\"\"),!1})),t},t.beforeAfter=function(e,t){var n;n=\"decl\"===e.type?this.raw(e,null,\"beforeDecl\"):\"comment\"===e.type?this.raw(e,null,\"beforeComment\"):\"before\"===t?this.raw(e,null,\"beforeRule\"):this.raw(e,null,\"beforeClose\");for(var r=e.parent,o=0;r&&\"root\"!==r.type;)o+=1,r=r.parent;if(-1!==n.indexOf(\"\\n\")){var i=this.raw(e,null,\"indent\");if(i.length)for(var s=0;s<o;s++)n+=i}return n},t.rawValue=function(e,t){var n=e[t],r=e.raws[t];return r&&r.value===n?r.raw:n},e}();t.default=o,e.exports=t.default},function(e,t,n){t.__esModule=!0,t.default=void 0;var r,o=(r=n(13))&&r.__esModule?r:{default:r},i=function(){function e(e){void 0===e&&(e=[]),this.version=\"7.0.32\",this.plugins=this.normalize(e)}var t=e.prototype;return t.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},t.process=function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e,t){return void 0===t&&(t={}),0===this.plugins.length&&(t.parser,t.stringifier),new o.default(this,e,t)})),t.normalize=function(e){var t=[],n=e,r=Array.isArray(n),o=0;for(n=r?n:n[Symbol.iterator]();;){var i;if(r){if(o>=n.length)break;i=n[o++]}else{if((o=n.next()).done)break;i=o.value}var s=i;if(s.postcss&&(s=s.postcss),\"object\"==typeof s&&Array.isArray(s.plugins))t=t.concat(s.plugins);else if(\"function\"==typeof s)t.push(s);else if(\"object\"!=typeof s||!s.parse&&!s.stringify)throw new Error(s+\" is not a PostCSS plugin\")}return t},e}();t.default=i,e.exports=t.default},function(e,t,n){t.__esModule=!0,t.default=void 0;var r=a(n(25)),o=a(n(3)),i=(a(n(37)),a(n(38))),s=a(n(5));function a(e){return e&&e.__esModule?e:{default:e}}function u(e){return\"object\"==typeof e&&\"function\"==typeof e.then}var c=function(){function e(t,n,r){var o;if(this.stringified=!1,this.processed=!1,\"object\"==typeof n&&null!==n&&\"root\"===n.type)o=n;else if(n instanceof e||n instanceof i.default)o=n.root,n.map&&(void 0===r.map&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=n.map);else{var a=s.default;r.syntax&&(a=r.syntax.parse),r.parser&&(a=r.parser),a.parse&&(a=a.parse);try{o=a(n,r)}catch(e){this.error=e}}this.result=new i.default(t,o,r)}var t,n=e.prototype;return n.warnings=function(){return this.sync().warnings()},n.toString=function(){return this.css},n.then=function(e,t){return this.async().then(e,t)},n.catch=function(e){return this.async().catch(e)},n.finally=function(e){return this.async().then(e,e)},n.handleError=function(e,t){try{this.error=e,\"CssSyntaxError\"!==e.name||e.plugin?t.postcssVersion:(e.plugin=t.postcssPlugin,e.setMessage())}catch(e){console&&console.error&&console.error(e)}},n.asyncTick=function(e,t){var n=this;if(this.plugin>=this.processor.plugins.length)return this.processed=!0,e();try{var r=this.processor.plugins[this.plugin],o=this.run(r);this.plugin+=1,u(o)?o.then((function(){n.asyncTick(e,t)})).catch((function(e){n.handleError(e,r),n.processed=!0,t(e)})):this.asyncTick(e,t)}catch(e){this.processed=!0,t(e)}},n.async=function(){var e=this;return this.processed?new Promise((function(t,n){e.error?n(e.error):t(e.stringify())})):(this.processing||(this.processing=new Promise((function(t,n){if(e.error)return n(e.error);e.plugin=0,e.asyncTick(t,n)})).then((function(){return e.processed=!0,e.stringify()}))),this.processing)},n.sync=function(){if(this.processed)return this.result;if(this.processed=!0,this.processing)throw new Error(\"Use process(css).then(cb) to work with async plugins\");if(this.error)throw this.error;var e=this.result.processor.plugins,t=Array.isArray(e),n=0;for(e=t?e:e[Symbol.iterator]();;){var r;if(t){if(n>=e.length)break;r=e[n++]}else{if((n=e.next()).done)break;r=n.value}var o=r;if(u(this.run(o)))throw new Error(\"Use process(css).then(cb) to work with async plugins\")}return this.result},n.run=function(e){this.result.lastPlugin=e;try{return e(this.result.root,this.result)}catch(t){throw this.handleError(t,e),t}},n.stringify=function(){if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,t=o.default;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var n=new r.default(t,this.result.root,this.result.opts).generate();return this.result.css=n[0],this.result.map=n[1],this.result},(t=[{key:\"processor\",get:function(){return this.result.processor}},{key:\"opts\",get:function(){return this.result.opts}},{key:\"css\",get:function(){return this.stringify().css}},{key:\"content\",get:function(){return this.stringify().content}},{key:\"map\",get:function(){return this.stringify().map}},{key:\"root\",get:function(){return this.sync().root}},{key:\"messages\",get:function(){return this.sync().messages}}])&&function(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)}}(e.prototype,t),e}();t.default=c,e.exports=t.default},function(e,t,n){(function(e){var r=n(27),o=n(28),i=n(29);function s(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function a(e,t){if(s()<t)throw new RangeError(\"Invalid typed array length\");return u.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=u.prototype:(null===e&&(e=new u(t)),e.length=t),e}function u(e,t,n){if(!(u.TYPED_ARRAY_SUPPORT||this instanceof u))return new u(e,t,n);if(\"number\"==typeof e){if(\"string\"==typeof t)throw new Error(\"If encoding is specified then the first argument must be a string\");return d(this,e)}return c(this,e,t,n)}function c(e,t,n,r){if(\"number\"==typeof t)throw new TypeError('\"value\" argument must not be a number');return\"undefined\"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError(\"'offset' is out of bounds\");if(t.byteLength<n+(r||0))throw new RangeError(\"'length' is out of bounds\");return t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r),u.TYPED_ARRAY_SUPPORT?(e=t).__proto__=u.prototype:e=h(e,t),e}(e,t,n,r):\"string\"==typeof t?function(e,t,n){if(\"string\"==typeof n&&\"\"!==n||(n=\"utf8\"),!u.isEncoding(n))throw new TypeError('\"encoding\" must be a valid string encoding');var r=0|p(t,n),o=(e=a(e,r)).write(t,n);return o!==r&&(e=e.slice(0,o)),e}(e,t,n):function(e,t){if(u.isBuffer(t)){var n=0|f(t.length);return 0===(e=a(e,n)).length||t.copy(e,0,0,n),e}if(t){if(\"undefined\"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||\"length\"in t)return\"number\"!=typeof t.length||(r=t.length)!=r?a(e,0):h(e,t);if(\"Buffer\"===t.type&&i(t.data))return h(e,t.data)}var r;throw new TypeError(\"First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.\")}(e,t)}function l(e){if(\"number\"!=typeof e)throw new TypeError('\"size\" argument must be a number');if(e<0)throw new RangeError('\"size\" argument must not be negative')}function d(e,t){if(l(t),e=a(e,t<0?0:0|f(t)),!u.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function h(e,t){var n=t.length<0?0:0|f(t.length);e=a(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function f(e){if(e>=s())throw new RangeError(\"Attempt to allocate Buffer larger than maximum size: 0x\"+s().toString(16)+\" bytes\");return 0|e}function p(e,t){if(u.isBuffer(e))return e.length;if(\"undefined\"!=typeof ArrayBuffer&&\"function\"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;\"string\"!=typeof e&&(e=\"\"+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case\"ascii\":case\"latin1\":case\"binary\":return n;case\"utf8\":case\"utf-8\":case void 0:return U(e).length;case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return 2*n;case\"hex\":return n>>>1;case\"base64\":return z(e).length;default:if(r)return U(e).length;t=(\"\"+t).toLowerCase(),r=!0}}function g(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return\"\";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return\"\";if((n>>>=0)<=(t>>>=0))return\"\";for(e||(e=\"utf8\");;)switch(e){case\"hex\":return T(this,t,n);case\"utf8\":case\"utf-8\":return C(this,t,n);case\"ascii\":return O(this,t,n);case\"latin1\":case\"binary\":return N(this,t,n);case\"base64\":return E(this,t,n);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return M(this,t,n);default:if(r)throw new TypeError(\"Unknown encoding: \"+e);e=(e+\"\").toLowerCase(),r=!0}}function v(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function m(e,t,n,r,o){if(0===e.length)return-1;if(\"string\"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if(\"string\"==typeof t&&(t=u.from(t,r)),u.isBuffer(t))return 0===t.length?-1:y(e,t,n,r,o);if(\"number\"==typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&\"function\"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):y(e,[t],n,r,o);throw new TypeError(\"val must be string, number or Buffer\")}function y(e,t,n,r,o){var i,s=1,a=e.length,u=t.length;if(void 0!==r&&(\"ucs2\"===(r=String(r).toLowerCase())||\"ucs-2\"===r||\"utf16le\"===r||\"utf-16le\"===r)){if(e.length<2||t.length<2)return-1;s=2,a/=2,u/=2,n/=2}function c(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(o){var l=-1;for(i=n;i<a;i++)if(c(e,i)===c(t,-1===l?0:i-l)){if(-1===l&&(l=i),i-l+1===u)return l*s}else-1!==l&&(i-=i-l),l=-1}else for(n+u>a&&(n=a-u),i=n;i>=0;i--){for(var d=!0,h=0;h<u;h++)if(c(e,i+h)!==c(t,h)){d=!1;break}if(d)return i}return-1}function b(e,t,n,r){n=Number(n)||0;var o=e.length-n;r?(r=Number(r))>o&&(r=o):r=o;var i=t.length;if(i%2!=0)throw new TypeError(\"Invalid hex string\");r>i/2&&(r=i/2);for(var s=0;s<r;++s){var a=parseInt(t.substr(2*s,2),16);if(isNaN(a))return s;e[n+s]=a}return s}function _(e,t,n,r){return q(U(t,e.length-n),e,n,r)}function w(e,t,n,r){return q(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function S(e,t,n,r){return w(e,t,n,r)}function I(e,t,n,r){return q(z(t),e,n,r)}function k(e,t,n,r){return q(function(e,t){for(var n,r,o,i=[],s=0;s<e.length&&!((t-=2)<0);++s)r=(n=e.charCodeAt(s))>>8,o=n%256,i.push(o),i.push(r);return i}(t,e.length-n),e,n,r)}function E(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function C(e,t,n){n=Math.min(e.length,n);for(var r=[],o=t;o<n;){var i,s,a,u,c=e[o],l=null,d=c>239?4:c>223?3:c>191?2:1;if(o+d<=n)switch(d){case 1:c<128&&(l=c);break;case 2:128==(192&(i=e[o+1]))&&(u=(31&c)<<6|63&i)>127&&(l=u);break;case 3:i=e[o+1],s=e[o+2],128==(192&i)&&128==(192&s)&&(u=(15&c)<<12|(63&i)<<6|63&s)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:i=e[o+1],s=e[o+2],a=e[o+3],128==(192&i)&&128==(192&s)&&128==(192&a)&&(u=(15&c)<<18|(63&i)<<12|(63&s)<<6|63&a)>65535&&u<1114112&&(l=u)}null===l?(l=65533,d=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),o+=d}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);for(var n=\"\",r=0;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=4096));return n}(r)}function O(e,t,n){var r=\"\";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(127&e[o]);return r}function N(e,t,n){var r=\"\";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(e[o]);return r}function T(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var o=\"\",i=t;i<n;++i)o+=j(e[i]);return o}function M(e,t,n){for(var r=e.slice(t,n),o=\"\",i=0;i<r.length;i+=2)o+=String.fromCharCode(r[i]+256*r[i+1]);return o}function A(e,t,n){if(e%1!=0||e<0)throw new RangeError(\"offset is not uint\");if(e+t>n)throw new RangeError(\"Trying to access beyond buffer length\")}function x(e,t,n,r,o,i){if(!u.isBuffer(e))throw new TypeError('\"buffer\" argument must be a Buffer instance');if(t>o||t<i)throw new RangeError('\"value\" argument is out of bounds');if(n+r>e.length)throw new RangeError(\"Index out of range\")}function P(e,t,n,r){t<0&&(t=65535+t+1);for(var o=0,i=Math.min(e.length-n,2);o<i;++o)e[n+o]=(t&255<<8*(r?o:1-o))>>>8*(r?o:1-o)}function R(e,t,n,r){t<0&&(t=4294967295+t+1);for(var o=0,i=Math.min(e.length-n,4);o<i;++o)e[n+o]=t>>>8*(r?o:3-o)&255}function D(e,t,n,r,o,i){if(n+r>e.length)throw new RangeError(\"Index out of range\");if(n<0)throw new RangeError(\"Index out of range\")}function L(e,t,n,r,i){return i||D(e,0,n,4),o.write(e,t,n,r,23,4),n+4}function B(e,t,n,r,i){return i||D(e,0,n,8),o.write(e,t,n,r,52,8),n+8}t.Buffer=u,t.SlowBuffer=function(e){return+e!=e&&(e=0),u.alloc(+e)},t.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&\"function\"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=s(),u.poolSize=8192,u._augment=function(e){return e.__proto__=u.prototype,e},u.from=function(e,t,n){return c(null,e,t,n)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,\"undefined\"!=typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(e,t,n){return function(e,t,n,r){return l(t),t<=0?a(e,t):void 0!==n?\"string\"==typeof r?a(e,t).fill(n,r):a(e,t).fill(n):a(e,t)}(null,e,t,n)},u.allocUnsafe=function(e){return d(null,e)},u.allocUnsafeSlow=function(e){return d(null,e)},u.isBuffer=function(e){return!(null==e||!e._isBuffer)},u.compare=function(e,t){if(!u.isBuffer(e)||!u.isBuffer(t))throw new TypeError(\"Arguments must be Buffers\");if(e===t)return 0;for(var n=e.length,r=t.length,o=0,i=Math.min(n,r);o<i;++o)if(e[o]!==t[o]){n=e[o],r=t[o];break}return n<r?-1:r<n?1:0},u.isEncoding=function(e){switch(String(e).toLowerCase()){case\"hex\":case\"utf8\":case\"utf-8\":case\"ascii\":case\"latin1\":case\"binary\":case\"base64\":case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return!0;default:return!1}},u.concat=function(e,t){if(!i(e))throw new TypeError('\"list\" argument must be an Array of Buffers');if(0===e.length)return u.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=u.allocUnsafe(t),o=0;for(n=0;n<e.length;++n){var s=e[n];if(!u.isBuffer(s))throw new TypeError('\"list\" argument must be an Array of Buffers');s.copy(r,o),o+=s.length}return r},u.byteLength=p,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError(\"Buffer size must be a multiple of 16-bits\");for(var t=0;t<e;t+=2)v(this,t,t+1);return this},u.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError(\"Buffer size must be a multiple of 32-bits\");for(var t=0;t<e;t+=4)v(this,t,t+3),v(this,t+1,t+2);return this},u.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError(\"Buffer size must be a multiple of 64-bits\");for(var t=0;t<e;t+=8)v(this,t,t+7),v(this,t+1,t+6),v(this,t+2,t+5),v(this,t+3,t+4);return this},u.prototype.toString=function(){var e=0|this.length;return 0===e?\"\":0===arguments.length?C(this,0,e):g.apply(this,arguments)},u.prototype.equals=function(e){if(!u.isBuffer(e))throw new TypeError(\"Argument must be a Buffer\");return this===e||0===u.compare(this,e)},u.prototype.inspect=function(){var e=\"\",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString(\"hex\",0,n).match(/.{2}/g).join(\" \"),this.length>n&&(e+=\" ... \")),\"<Buffer \"+e+\">\"},u.prototype.compare=function(e,t,n,r,o){if(!u.isBuffer(e))throw new TypeError(\"Argument must be a Buffer\");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError(\"out of range index\");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(this===e)return 0;for(var i=(o>>>=0)-(r>>>=0),s=(n>>>=0)-(t>>>=0),a=Math.min(i,s),c=this.slice(r,o),l=e.slice(t,n),d=0;d<a;++d)if(c[d]!==l[d]){i=c[d],s=l[d];break}return i<s?-1:s<i?1:0},u.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},u.prototype.indexOf=function(e,t,n){return m(this,e,t,n,!0)},u.prototype.lastIndexOf=function(e,t,n){return m(this,e,t,n,!1)},u.prototype.write=function(e,t,n,r){if(void 0===t)r=\"utf8\",n=this.length,t=0;else if(void 0===n&&\"string\"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error(\"Buffer.write(string, encoding, offset[, length]) is no longer supported\");t|=0,isFinite(n)?(n|=0,void 0===r&&(r=\"utf8\")):(r=n,n=void 0)}var o=this.length-t;if((void 0===n||n>o)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError(\"Attempt to write outside buffer bounds\");r||(r=\"utf8\");for(var i=!1;;)switch(r){case\"hex\":return b(this,e,t,n);case\"utf8\":case\"utf-8\":return _(this,e,t,n);case\"ascii\":return w(this,e,t,n);case\"latin1\":case\"binary\":return S(this,e,t,n);case\"base64\":return I(this,e,t,n);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return k(this,e,t,n);default:if(i)throw new TypeError(\"Unknown encoding: \"+r);r=(\"\"+r).toLowerCase(),i=!0}},u.prototype.toJSON=function(){return{type:\"Buffer\",data:Array.prototype.slice.call(this._arr||this,0)}},u.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),u.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=u.prototype;else{var o=t-e;n=new u(o,void 0);for(var i=0;i<o;++i)n[i]=this[i+e]}return n},u.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||A(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r},u.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||A(e,t,this.length);for(var r=this[e+--t],o=1;t>0&&(o*=256);)r+=this[e+--t]*o;return r},u.prototype.readUInt8=function(e,t){return t||A(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||A(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||A(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||A(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return t||A(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||A(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r>=(o*=128)&&(r-=Math.pow(2,8*t)),r},u.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||A(e,t,this.length);for(var r=t,o=1,i=this[e+--r];r>0&&(o*=256);)i+=this[e+--r]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},u.prototype.readInt8=function(e,t){return t||A(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||A(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(e,t){t||A(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(e,t){return t||A(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return t||A(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return t||A(e,4,this.length),o.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||A(e,4,this.length),o.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||A(e,8,this.length),o.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||A(e,8,this.length),o.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,n,r){e=+e,t|=0,n|=0,r||x(this,e,t,n,Math.pow(2,8*n)-1,0);var o=1,i=0;for(this[t]=255&e;++i<n&&(o*=256);)this[t+i]=e/o&255;return t+n},u.prototype.writeUIntBE=function(e,t,n,r){e=+e,t|=0,n|=0,r||x(this,e,t,n,Math.pow(2,8*n)-1,0);var o=n-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+n},u.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||x(this,e,t,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||x(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):P(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||x(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):P(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||x(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):R(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||x(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):R(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);x(this,e,t,n,o-1,-o)}var i=0,s=1,a=0;for(this[t]=255&e;++i<n&&(s*=256);)e<0&&0===a&&0!==this[t+i-1]&&(a=1),this[t+i]=(e/s>>0)-a&255;return t+n},u.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);x(this,e,t,n,o-1,-o)}var i=n-1,s=1,a=0;for(this[t+i]=255&e;--i>=0&&(s*=256);)e<0&&0===a&&0!==this[t+i+1]&&(a=1),this[t+i]=(e/s>>0)-a&255;return t+n},u.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||x(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||x(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):P(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||x(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):P(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||x(this,e,t,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):R(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||x(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):R(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,n){return L(this,e,t,!0,n)},u.prototype.writeFloatBE=function(e,t,n){return L(this,e,t,!1,n)},u.prototype.writeDoubleLE=function(e,t,n){return B(this,e,t,!0,n)},u.prototype.writeDoubleBE=function(e,t,n){return B(this,e,t,!1,n)},u.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError(\"targetStart out of bounds\");if(n<0||n>=this.length)throw new RangeError(\"sourceStart out of bounds\");if(r<0)throw new RangeError(\"sourceEnd out of bounds\");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var o,i=r-n;if(this===e&&n<t&&t<r)for(o=i-1;o>=0;--o)e[o+t]=this[o+n];else if(i<1e3||!u.TYPED_ARRAY_SUPPORT)for(o=0;o<i;++o)e[o+t]=this[o+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+i),t);return i},u.prototype.fill=function(e,t,n,r){if(\"string\"==typeof e){if(\"string\"==typeof t?(r=t,t=0,n=this.length):\"string\"==typeof n&&(r=n,n=this.length),1===e.length){var o=e.charCodeAt(0);o<256&&(e=o)}if(void 0!==r&&\"string\"!=typeof r)throw new TypeError(\"encoding must be a string\");if(\"string\"==typeof r&&!u.isEncoding(r))throw new TypeError(\"Unknown encoding: \"+r)}else\"number\"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError(\"Out of range index\");if(n<=t)return this;var i;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),\"number\"==typeof e)for(i=t;i<n;++i)this[i]=e;else{var s=u.isBuffer(e)?e:U(new u(e,r).toString()),a=s.length;for(i=0;i<n-t;++i)this[i+t]=s[i%a]}return this};var F=/[^+\\/0-9A-Za-z-_]/g;function j(e){return e<16?\"0\"+e.toString(16):e.toString(16)}function U(e,t){var n;t=t||1/0;for(var r=e.length,o=null,i=[],s=0;s<r;++s){if((n=e.charCodeAt(s))>55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(s+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error(\"Invalid code point\");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function z(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\\s+|\\s+$/g,\"\")}(e).replace(F,\"\")).length<2)return\"\";for(;e.length%4!=0;)e+=\"=\";return e}(e))}function q(e,t,n,r){for(var o=0;o<r&&!(o+n>=t.length||o>=e.length);++o)t[o+n]=e[o];return o}}).call(this,n(26))},function(e,t,n){t.SourceMapGenerator=n(16).SourceMapGenerator,t.SourceMapConsumer=n(32).SourceMapConsumer,t.SourceNode=n(35).SourceNode},function(e,t,n){var r=n(17),o=n(0),i=n(18).ArraySet,s=n(31).MappingList;function a(e){e||(e={}),this._file=o.getArg(e,\"file\",null),this._sourceRoot=o.getArg(e,\"sourceRoot\",null),this._skipValidation=o.getArg(e,\"skipValidation\",!1),this._sources=new i,this._names=new i,this._mappings=new s,this._sourcesContents=null}a.prototype._version=3,a.fromSourceMap=function(e){var t=e.sourceRoot,n=new a({file:e.file,sourceRoot:t});return e.eachMapping((function(e){var r={generated:{line:e.generatedLine,column:e.generatedColumn}};null!=e.source&&(r.source=e.source,null!=t&&(r.source=o.relative(t,r.source)),r.original={line:e.originalLine,column:e.originalColumn},null!=e.name&&(r.name=e.name)),n.addMapping(r)})),e.sources.forEach((function(r){var i=r;null!==t&&(i=o.relative(t,r)),n._sources.has(i)||n._sources.add(i);var s=e.sourceContentFor(r);null!=s&&n.setSourceContent(r,s)})),n},a.prototype.addMapping=function(e){var t=o.getArg(e,\"generated\"),n=o.getArg(e,\"original\",null),r=o.getArg(e,\"source\",null),i=o.getArg(e,\"name\",null);this._skipValidation||this._validateMapping(t,n,r,i),null!=r&&(r=String(r),this._sources.has(r)||this._sources.add(r)),null!=i&&(i=String(i),this._names.has(i)||this._names.add(i)),this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:null!=n&&n.line,originalColumn:null!=n&&n.column,source:r,name:i})},a.prototype.setSourceContent=function(e,t){var n=e;null!=this._sourceRoot&&(n=o.relative(this._sourceRoot,n)),null!=t?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[o.toSetString(n)]=t):this._sourcesContents&&(delete this._sourcesContents[o.toSetString(n)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))},a.prototype.applySourceMap=function(e,t,n){var r=t;if(null==t){if(null==e.file)throw new Error('SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\\'s \"file\" property. Both were omitted.');r=e.file}var s=this._sourceRoot;null!=s&&(r=o.relative(s,r));var a=new i,u=new i;this._mappings.unsortedForEach((function(t){if(t.source===r&&null!=t.originalLine){var i=e.originalPositionFor({line:t.originalLine,column:t.originalColumn});null!=i.source&&(t.source=i.source,null!=n&&(t.source=o.join(n,t.source)),null!=s&&(t.source=o.relative(s,t.source)),t.originalLine=i.line,t.originalColumn=i.column,null!=i.name&&(t.name=i.name))}var c=t.source;null==c||a.has(c)||a.add(c);var l=t.name;null==l||u.has(l)||u.add(l)}),this),this._sources=a,this._names=u,e.sources.forEach((function(t){var r=e.sourceContentFor(t);null!=r&&(null!=n&&(t=o.join(n,t)),null!=s&&(t=o.relative(s,t)),this.setSourceContent(t,r))}),this)},a.prototype._validateMapping=function(e,t,n,r){if(t&&\"number\"!=typeof t.line&&\"number\"!=typeof t.column)throw new Error(\"original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.\");if((!(e&&\"line\"in e&&\"column\"in e&&e.line>0&&e.column>=0)||t||n||r)&&!(e&&\"line\"in e&&\"column\"in e&&t&&\"line\"in t&&\"column\"in t&&e.line>0&&e.column>=0&&t.line>0&&t.column>=0&&n))throw new Error(\"Invalid mapping: \"+JSON.stringify({generated:e,source:n,original:t,name:r}))},a.prototype._serializeMappings=function(){for(var e,t,n,i,s=0,a=1,u=0,c=0,l=0,d=0,h=\"\",f=this._mappings.toArray(),p=0,g=f.length;p<g;p++){if(e=\"\",(t=f[p]).generatedLine!==a)for(s=0;t.generatedLine!==a;)e+=\";\",a++;else if(p>0){if(!o.compareByGeneratedPositionsInflated(t,f[p-1]))continue;e+=\",\"}e+=r.encode(t.generatedColumn-s),s=t.generatedColumn,null!=t.source&&(i=this._sources.indexOf(t.source),e+=r.encode(i-d),d=i,e+=r.encode(t.originalLine-1-c),c=t.originalLine-1,e+=r.encode(t.originalColumn-u),u=t.originalColumn,null!=t.name&&(n=this._names.indexOf(t.name),e+=r.encode(n-l),l=n)),h+=e}return h},a.prototype._generateSourcesContent=function(e,t){return e.map((function(e){if(!this._sourcesContents)return null;null!=t&&(e=o.relative(t,e));var n=o.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,n)?this._sourcesContents[n]:null}),this)},a.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(e.file=this._file),null!=this._sourceRoot&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e},a.prototype.toString=function(){return JSON.stringify(this.toJSON())},t.SourceMapGenerator=a},function(e,t,n){var r=n(30);t.encode=function(e){var t,n=\"\",o=function(e){return e<0?1+(-e<<1):0+(e<<1)}(e);do{t=31&o,(o>>>=5)>0&&(t|=32),n+=r.encode(t)}while(o>0);return n},t.decode=function(e,t,n){var o,i,s,a,u=e.length,c=0,l=0;do{if(t>=u)throw new Error(\"Expected more digits in base 64 VLQ value.\");if(-1===(i=r.decode(e.charCodeAt(t++))))throw new Error(\"Invalid base64 digit: \"+e.charAt(t-1));o=!!(32&i),c+=(i&=31)<<l,l+=5}while(o);n.value=(a=(s=c)>>1,1==(1&s)?-a:a),n.rest=t}},function(e,t,n){var r=n(0),o=Object.prototype.hasOwnProperty,i=\"undefined\"!=typeof Map;function s(){this._array=[],this._set=i?new Map:Object.create(null)}s.fromArray=function(e,t){for(var n=new s,r=0,o=e.length;r<o;r++)n.add(e[r],t);return n},s.prototype.size=function(){return i?this._set.size:Object.getOwnPropertyNames(this._set).length},s.prototype.add=function(e,t){var n=i?e:r.toSetString(e),s=i?this.has(e):o.call(this._set,n),a=this._array.length;s&&!t||this._array.push(e),s||(i?this._set.set(e,a):this._set[n]=a)},s.prototype.has=function(e){if(i)return this._set.has(e);var t=r.toSetString(e);return o.call(this._set,t)},s.prototype.indexOf=function(e){if(i){var t=this._set.get(e);if(t>=0)return t}else{var n=r.toSetString(e);if(o.call(this._set,n))return this._set[n]}throw new Error('\"'+e+'\" is not in the set.')},s.prototype.at=function(e){if(e>=0&&e<this._array.length)return this._array[e];throw new Error(\"No element indexed by \"+e)},s.prototype.toArray=function(){return this._array.slice()},t.ArraySet=s},function(e,t,n){t.__esModule=!0,t.default=void 0;var r={split:function(e,t,n){for(var r=[],o=\"\",i=!1,s=0,a=!1,u=!1,c=0;c<e.length;c++){var l=e[c];a?u?u=!1:\"\\\\\"===l?u=!0:l===a&&(a=!1):'\"'===l||\"'\"===l?a=l:\"(\"===l?s+=1:\")\"===l?s>0&&(s-=1):0===s&&-1!==t.indexOf(l)&&(i=!0),i?(\"\"!==o&&r.push(o.trim()),o=\"\",i=!1):o+=l}return(n||\"\"!==o)&&r.push(o.trim()),r},space:function(e){return r.split(e,[\" \",\"\\n\",\"\\t\"])},comma:function(e){return r.split(e,[\",\"],!0)}},o=r;t.default=o,e.exports=t.default},function(e,t,n){var r;t.__esModule=!0,t.default=void 0;var o=function(e){var t,r;function o(t){var n;return(n=e.call(this,t)||this).type=\"root\",n.nodes||(n.nodes=[]),n}r=e,(t=o).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r;var i=o.prototype;return i.removeChild=function(t,n){var r=this.index(t);return!n&&0===r&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),e.prototype.removeChild.call(this,t)},i.normalize=function(t,n,r){var o=e.prototype.normalize.call(this,t);if(n)if(\"prepend\"===r)this.nodes.length>1?n.raws.before=this.nodes[1].raws.before:delete n.raws.before;else if(this.first!==n){var i=o,s=Array.isArray(i),a=0;for(i=s?i:i[Symbol.iterator]();;){var u;if(s){if(a>=i.length)break;u=i[a++]}else{if((a=i.next()).done)break;u=a.value}u.raws.before=n.raws.before}}return o},i.toResult=function(e){return void 0===e&&(e={}),new(n(13))(new(n(12)),this,e).stringify()},o}(((r=n(8))&&r.__esModule?r:{default:r}).default);t.default=o,e.exports=t.default},function(e,t,n){t.__esModule=!0,t.default=void 0;var r=f(n(1)),o=f(n(12)),i=f(n(3)),s=f(n(6)),a=f(n(7)),u=f(n(45)),c=f(n(5)),l=f(n(19)),d=f(n(9)),h=f(n(20));function f(e){return e&&e.__esModule?e:{default:e}}function p(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 1===t.length&&Array.isArray(t[0])&&(t=t[0]),new o.default(t)}p.plugin=function(e,t){function n(){var n=t.apply(void 0,arguments);return n.postcssPlugin=e,n.postcssVersion=(new o.default).version,n}var r;return Object.defineProperty(n,\"postcss\",{get:function(){return r||(r=n()),r}}),n.process=function(e,t,r){return p([n(r)]).process(e,t)},n},p.stringify=i.default,p.parse=c.default,p.vendor=u.default,p.list=l.default,p.comment=function(e){return new s.default(e)},p.atRule=function(e){return new a.default(e)},p.decl=function(e){return new r.default(e)},p.rule=function(e){return new d.default(e)},p.root=function(e){return new h.default(e)};var g=p;t.default=g,e.exports=t.default},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){(function(r){t.__esModule=!0,t.default=void 0;var o=s(n(15)),i=s(n(4));function s(e){return e&&e.__esModule?e:{default:e}}var a=function(){function e(e,t,n){this.stringify=e,this.mapOpts=n.map||{},this.root=t,this.opts=n}var t=e.prototype;return t.isMap=function(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0},t.previous=function(){var e=this;return this.previousMaps||(this.previousMaps=[],this.root.walk((function(t){if(t.source&&t.source.input.map){var n=t.source.input.map;-1===e.previousMaps.indexOf(n)&&e.previousMaps.push(n)}}))),this.previousMaps},t.isInline=function(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;var e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some((function(e){return e.inline})))},t.isSourcesContent=function(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some((function(e){return e.withContent()}))},t.clearAnnotation=function(){if(!1!==this.mapOpts.annotation)for(var e,t=this.root.nodes.length-1;t>=0;t--)\"comment\"===(e=this.root.nodes[t]).type&&0===e.text.indexOf(\"# sourceMappingURL=\")&&this.root.removeChild(t)},t.setSourcesContent=function(){var e=this,t={};this.root.walk((function(n){if(n.source){var r=n.source.input.from;if(r&&!t[r]){t[r]=!0;var o=e.relative(r);e.map.setSourceContent(o,n.source.input.css)}}}))},t.applyPrevMaps=function(){var e=this.previous(),t=Array.isArray(e),n=0;for(e=t?e:e[Symbol.iterator]();;){var r;if(t){if(n>=e.length)break;r=e[n++]}else{if((n=e.next()).done)break;r=n.value}var s=r,a=this.relative(s.file),u=s.root||i.default.dirname(s.file),c=void 0;!1===this.mapOpts.sourcesContent?(c=new o.default.SourceMapConsumer(s.text)).sourcesContent&&(c.sourcesContent=c.sourcesContent.map((function(){return null}))):c=s.consumer(),this.map.applySourceMap(c,a,this.relative(u))}},t.isAnnotation=function(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some((function(e){return e.annotation})))},t.toBase64=function(e){return r?r.from(e).toString(\"base64\"):window.btoa(unescape(encodeURIComponent(e)))},t.addAnnotation=function(){var e;e=this.isInline()?\"data:application/json;base64,\"+this.toBase64(this.map.toString()):\"string\"==typeof this.mapOpts.annotation?this.mapOpts.annotation:this.outputFile()+\".map\";var t=\"\\n\";-1!==this.css.indexOf(\"\\r\\n\")&&(t=\"\\r\\n\"),this.css+=t+\"/*# sourceMappingURL=\"+e+\" */\"},t.outputFile=function(){return this.opts.to?this.relative(this.opts.to):this.opts.from?this.relative(this.opts.from):\"to.css\"},t.generateMap=function(){return this.generateString(),this.isSourcesContent()&&this.setSourcesContent(),this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]},t.relative=function(e){if(0===e.indexOf(\"<\"))return e;if(/^\\w+:\\/\\//.test(e))return e;var t=this.opts.to?i.default.dirname(this.opts.to):\".\";return\"string\"==typeof this.mapOpts.annotation&&(t=i.default.dirname(i.default.resolve(t,this.mapOpts.annotation))),e=i.default.relative(t,e),\"\\\\\"===i.default.sep?e.replace(/\\\\/g,\"/\"):e},t.sourcePath=function(e){return this.mapOpts.from?this.mapOpts.from:this.relative(e.source.input.from)},t.generateString=function(){var e=this;this.css=\"\",this.map=new o.default.SourceMapGenerator({file:this.outputFile()});var t,n,r=1,i=1;this.stringify(this.root,(function(o,s,a){if(e.css+=o,s&&\"end\"!==a&&(s.source&&s.source.start?e.map.addMapping({source:e.sourcePath(s),generated:{line:r,column:i-1},original:{line:s.source.start.line,column:s.source.start.column-1}}):e.map.addMapping({source:\"<no source>\",original:{line:1,column:0},generated:{line:r,column:i-1}})),(t=o.match(/\\n/g))?(r+=t.length,n=o.lastIndexOf(\"\\n\"),i=o.length-n):i+=o.length,s&&\"start\"!==a){var u=s.parent||{raws:{}};(\"decl\"!==s.type||s!==u.last||u.raws.semicolon)&&(s.source&&s.source.end?e.map.addMapping({source:e.sourcePath(s),generated:{line:r,column:i-2},original:{line:s.source.end.line,column:s.source.end.column-1}}):e.map.addMapping({source:\"<no source>\",original:{line:1,column:0},generated:{line:r,column:i-1}}))}}))},t.generate=function(){if(this.clearAnnotation(),this.isMap())return this.generateMap();var e=\"\";return this.stringify(this.root,(function(t){e+=t})),[e]},e}();t.default=a,e.exports=t.default}).call(this,n(14).Buffer)},function(e,t){var n;n=function(){return this}();try{n=n||new Function(\"return this\")()}catch(e){\"object\"==typeof window&&(n=window)}e.exports=n},function(e,t,n){t.byteLength=function(e){var t=c(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){for(var t,n=c(e),r=n[0],s=n[1],a=new i(function(e,t,n){return 3*(t+n)/4-n}(0,r,s)),u=0,l=s>0?r-4:r,d=0;d<l;d+=4)t=o[e.charCodeAt(d)]<<18|o[e.charCodeAt(d+1)]<<12|o[e.charCodeAt(d+2)]<<6|o[e.charCodeAt(d+3)],a[u++]=t>>16&255,a[u++]=t>>8&255,a[u++]=255&t;return 2===s&&(t=o[e.charCodeAt(d)]<<2|o[e.charCodeAt(d+1)]>>4,a[u++]=255&t),1===s&&(t=o[e.charCodeAt(d)]<<10|o[e.charCodeAt(d+1)]<<4|o[e.charCodeAt(d+2)]>>2,a[u++]=t>>8&255,a[u++]=255&t),a},t.fromByteArray=function(e){for(var t,n=e.length,o=n%3,i=[],s=0,a=n-o;s<a;s+=16383)i.push(l(e,s,s+16383>a?a:s+16383));return 1===o?(t=e[n-1],i.push(r[t>>2]+r[t<<4&63]+\"==\")):2===o&&(t=(e[n-2]<<8)+e[n-1],i.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+\"=\")),i.join(\"\")};for(var r=[],o=[],i=\"undefined\"!=typeof Uint8Array?Uint8Array:Array,s=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\",a=0,u=s.length;a<u;++a)r[a]=s[a],o[s.charCodeAt(a)]=a;function c(e){var t=e.length;if(t%4>0)throw new Error(\"Invalid string. Length must be a multiple of 4\");var n=e.indexOf(\"=\");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function l(e,t,n){for(var o,i,s=[],a=t;a<n;a+=3)o=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),s.push(r[(i=o)>>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return s.join(\"\")}o[\"-\".charCodeAt(0)]=62,o[\"_\".charCodeAt(0)]=63},function(e,t){t.read=function(e,t,n,r,o){var i,s,a=8*o-r-1,u=(1<<a)-1,c=u>>1,l=-7,d=n?o-1:0,h=n?-1:1,f=e[t+d];for(d+=h,i=f&(1<<-l)-1,f>>=-l,l+=a;l>0;i=256*i+e[t+d],d+=h,l-=8);for(s=i&(1<<-l)-1,i>>=-l,l+=r;l>0;s=256*s+e[t+d],d+=h,l-=8);if(0===i)i=1-c;else{if(i===u)return s?NaN:1/0*(f?-1:1);s+=Math.pow(2,r),i-=c}return(f?-1:1)*s*Math.pow(2,i-r)},t.write=function(e,t,n,r,o,i){var s,a,u,c=8*i-o-1,l=(1<<c)-1,d=l>>1,h=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,f=r?0:i-1,p=r?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=l):(s=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-s))<1&&(s--,u*=2),(t+=s+d>=1?h/u:h*Math.pow(2,1-d))*u>=2&&(s++,u/=2),s+d>=l?(a=0,s=l):s+d>=1?(a=(t*u-1)*Math.pow(2,o),s+=d):(a=t*Math.pow(2,d-1)*Math.pow(2,o),s=0));o>=8;e[n+f]=255&a,f+=p,a/=256,o-=8);for(s=s<<o|a,c+=o;c>0;e[n+f]=255&s,f+=p,s/=256,c-=8);e[n+f-p]|=128*g}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return\"[object Array]\"==n.call(e)}},function(e,t){var n=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\".split(\"\");t.encode=function(e){if(0<=e&&e<n.length)return n[e];throw new TypeError(\"Must be between 0 and 63: \"+e)},t.decode=function(e){return 65<=e&&e<=90?e-65:97<=e&&e<=122?e-97+26:48<=e&&e<=57?e-48+52:43==e?62:47==e?63:-1}},function(e,t,n){var r=n(0);function o(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}o.prototype.unsortedForEach=function(e,t){this._array.forEach(e,t)},o.prototype.add=function(e){var t,n,o,i,s,a;n=e,o=(t=this._last).generatedLine,i=n.generatedLine,s=t.generatedColumn,a=n.generatedColumn,i>o||i==o&&a>=s||r.compareByGeneratedPositionsInflated(t,n)<=0?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))},o.prototype.toArray=function(){return this._sorted||(this._array.sort(r.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},t.MappingList=o},function(e,t,n){var r=n(0),o=n(33),i=n(18).ArraySet,s=n(17),a=n(34).quickSort;function u(e,t){var n=e;return\"string\"==typeof e&&(n=r.parseSourceMapInput(e)),null!=n.sections?new d(n,t):new c(n,t)}function c(e,t){var n=e;\"string\"==typeof e&&(n=r.parseSourceMapInput(e));var o=r.getArg(n,\"version\"),s=r.getArg(n,\"sources\"),a=r.getArg(n,\"names\",[]),u=r.getArg(n,\"sourceRoot\",null),c=r.getArg(n,\"sourcesContent\",null),l=r.getArg(n,\"mappings\"),d=r.getArg(n,\"file\",null);if(o!=this._version)throw new Error(\"Unsupported version: \"+o);u&&(u=r.normalize(u)),s=s.map(String).map(r.normalize).map((function(e){return u&&r.isAbsolute(u)&&r.isAbsolute(e)?r.relative(u,e):e})),this._names=i.fromArray(a.map(String),!0),this._sources=i.fromArray(s,!0),this._absoluteSources=this._sources.toArray().map((function(e){return r.computeSourceURL(u,e,t)})),this.sourceRoot=u,this.sourcesContent=c,this._mappings=l,this._sourceMapURL=t,this.file=d}function l(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}function d(e,t){var n=e;\"string\"==typeof e&&(n=r.parseSourceMapInput(e));var o=r.getArg(n,\"version\"),s=r.getArg(n,\"sections\");if(o!=this._version)throw new Error(\"Unsupported version: \"+o);this._sources=new i,this._names=new i;var a={line:-1,column:0};this._sections=s.map((function(e){if(e.url)throw new Error(\"Support for url field in sections not implemented.\");var n=r.getArg(e,\"offset\"),o=r.getArg(n,\"line\"),i=r.getArg(n,\"column\");if(o<a.line||o===a.line&&i<a.column)throw new Error(\"Section offsets must be ordered and non-overlapping.\");return a=n,{generatedOffset:{generatedLine:o+1,generatedColumn:i+1},consumer:new u(r.getArg(e,\"map\"),t)}}))}u.fromSourceMap=function(e,t){return c.fromSourceMap(e,t)},u.prototype._version=3,u.prototype.__generatedMappings=null,Object.defineProperty(u.prototype,\"_generatedMappings\",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),u.prototype.__originalMappings=null,Object.defineProperty(u.prototype,\"_originalMappings\",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),u.prototype._charIsMappingSeparator=function(e,t){var n=e.charAt(t);return\";\"===n||\",\"===n},u.prototype._parseMappings=function(e,t){throw new Error(\"Subclasses must implement _parseMappings\")},u.GENERATED_ORDER=1,u.ORIGINAL_ORDER=2,u.GREATEST_LOWER_BOUND=1,u.LEAST_UPPER_BOUND=2,u.prototype.eachMapping=function(e,t,n){var o,i=t||null;switch(n||u.GENERATED_ORDER){case u.GENERATED_ORDER:o=this._generatedMappings;break;case u.ORIGINAL_ORDER:o=this._originalMappings;break;default:throw new Error(\"Unknown order of iteration.\")}var s=this.sourceRoot;o.map((function(e){var t=null===e.source?null:this._sources.at(e.source);return{source:t=r.computeSourceURL(s,t,this._sourceMapURL),generatedLine:e.generatedLine,generatedColumn:e.generatedColumn,originalLine:e.originalLine,originalColumn:e.originalColumn,name:null===e.name?null:this._names.at(e.name)}}),this).forEach(e,i)},u.prototype.allGeneratedPositionsFor=function(e){var t=r.getArg(e,\"line\"),n={source:r.getArg(e,\"source\"),originalLine:t,originalColumn:r.getArg(e,\"column\",0)};if(n.source=this._findSourceIndex(n.source),n.source<0)return[];var i=[],s=this._findMapping(n,this._originalMappings,\"originalLine\",\"originalColumn\",r.compareByOriginalPositions,o.LEAST_UPPER_BOUND);if(s>=0){var a=this._originalMappings[s];if(void 0===e.column)for(var u=a.originalLine;a&&a.originalLine===u;)i.push({line:r.getArg(a,\"generatedLine\",null),column:r.getArg(a,\"generatedColumn\",null),lastColumn:r.getArg(a,\"lastGeneratedColumn\",null)}),a=this._originalMappings[++s];else for(var c=a.originalColumn;a&&a.originalLine===t&&a.originalColumn==c;)i.push({line:r.getArg(a,\"generatedLine\",null),column:r.getArg(a,\"generatedColumn\",null),lastColumn:r.getArg(a,\"lastGeneratedColumn\",null)}),a=this._originalMappings[++s]}return i},t.SourceMapConsumer=u,c.prototype=Object.create(u.prototype),c.prototype.consumer=u,c.prototype._findSourceIndex=function(e){var t,n=e;if(null!=this.sourceRoot&&(n=r.relative(this.sourceRoot,n)),this._sources.has(n))return this._sources.indexOf(n);for(t=0;t<this._absoluteSources.length;++t)if(this._absoluteSources[t]==e)return t;return-1},c.fromSourceMap=function(e,t){var n=Object.create(c.prototype),o=n._names=i.fromArray(e._names.toArray(),!0),s=n._sources=i.fromArray(e._sources.toArray(),!0);n.sourceRoot=e._sourceRoot,n.sourcesContent=e._generateSourcesContent(n._sources.toArray(),n.sourceRoot),n.file=e._file,n._sourceMapURL=t,n._absoluteSources=n._sources.toArray().map((function(e){return r.computeSourceURL(n.sourceRoot,e,t)}));for(var u=e._mappings.toArray().slice(),d=n.__generatedMappings=[],h=n.__originalMappings=[],f=0,p=u.length;f<p;f++){var g=u[f],v=new l;v.generatedLine=g.generatedLine,v.generatedColumn=g.generatedColumn,g.source&&(v.source=s.indexOf(g.source),v.originalLine=g.originalLine,v.originalColumn=g.originalColumn,g.name&&(v.name=o.indexOf(g.name)),h.push(v)),d.push(v)}return a(n.__originalMappings,r.compareByOriginalPositions),n},c.prototype._version=3,Object.defineProperty(c.prototype,\"sources\",{get:function(){return this._absoluteSources.slice()}}),c.prototype._parseMappings=function(e,t){for(var n,o,i,u,c,d=1,h=0,f=0,p=0,g=0,v=0,m=e.length,y=0,b={},_={},w=[],S=[];y<m;)if(\";\"===e.charAt(y))d++,y++,h=0;else if(\",\"===e.charAt(y))y++;else{for((n=new l).generatedLine=d,u=y;u<m&&!this._charIsMappingSeparator(e,u);u++);if(i=b[o=e.slice(y,u)])y+=o.length;else{for(i=[];y<u;)s.decode(e,y,_),c=_.value,y=_.rest,i.push(c);if(2===i.length)throw new Error(\"Found a source, but no line and column\");if(3===i.length)throw new Error(\"Found a source and line, but no column\");b[o]=i}n.generatedColumn=h+i[0],h=n.generatedColumn,i.length>1&&(n.source=g+i[1],g+=i[1],n.originalLine=f+i[2],f=n.originalLine,n.originalLine+=1,n.originalColumn=p+i[3],p=n.originalColumn,i.length>4&&(n.name=v+i[4],v+=i[4])),S.push(n),\"number\"==typeof n.originalLine&&w.push(n)}a(S,r.compareByGeneratedPositionsDeflated),this.__generatedMappings=S,a(w,r.compareByOriginalPositions),this.__originalMappings=w},c.prototype._findMapping=function(e,t,n,r,i,s){if(e[n]<=0)throw new TypeError(\"Line must be greater than or equal to 1, got \"+e[n]);if(e[r]<0)throw new TypeError(\"Column must be greater than or equal to 0, got \"+e[r]);return o.search(e,t,i,s)},c.prototype.computeColumnSpans=function(){for(var e=0;e<this._generatedMappings.length;++e){var t=this._generatedMappings[e];if(e+1<this._generatedMappings.length){var n=this._generatedMappings[e+1];if(t.generatedLine===n.generatedLine){t.lastGeneratedColumn=n.generatedColumn-1;continue}}t.lastGeneratedColumn=1/0}},c.prototype.originalPositionFor=function(e){var t={generatedLine:r.getArg(e,\"line\"),generatedColumn:r.getArg(e,\"column\")},n=this._findMapping(t,this._generatedMappings,\"generatedLine\",\"generatedColumn\",r.compareByGeneratedPositionsDeflated,r.getArg(e,\"bias\",u.GREATEST_LOWER_BOUND));if(n>=0){var o=this._generatedMappings[n];if(o.generatedLine===t.generatedLine){var i=r.getArg(o,\"source\",null);null!==i&&(i=this._sources.at(i),i=r.computeSourceURL(this.sourceRoot,i,this._sourceMapURL));var s=r.getArg(o,\"name\",null);return null!==s&&(s=this._names.at(s)),{source:i,line:r.getArg(o,\"originalLine\",null),column:r.getArg(o,\"originalColumn\",null),name:s}}}return{source:null,line:null,column:null,name:null}},c.prototype.hasContentsOfAllSources=function(){return!!this.sourcesContent&&this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some((function(e){return null==e}))},c.prototype.sourceContentFor=function(e,t){if(!this.sourcesContent)return null;var n=this._findSourceIndex(e);if(n>=0)return this.sourcesContent[n];var o,i=e;if(null!=this.sourceRoot&&(i=r.relative(this.sourceRoot,i)),null!=this.sourceRoot&&(o=r.urlParse(this.sourceRoot))){var s=i.replace(/^file:\\/\\//,\"\");if(\"file\"==o.scheme&&this._sources.has(s))return this.sourcesContent[this._sources.indexOf(s)];if((!o.path||\"/\"==o.path)&&this._sources.has(\"/\"+i))return this.sourcesContent[this._sources.indexOf(\"/\"+i)]}if(t)return null;throw new Error('\"'+i+'\" is not in the SourceMap.')},c.prototype.generatedPositionFor=function(e){var t=r.getArg(e,\"source\");if((t=this._findSourceIndex(t))<0)return{line:null,column:null,lastColumn:null};var n={source:t,originalLine:r.getArg(e,\"line\"),originalColumn:r.getArg(e,\"column\")},o=this._findMapping(n,this._originalMappings,\"originalLine\",\"originalColumn\",r.compareByOriginalPositions,r.getArg(e,\"bias\",u.GREATEST_LOWER_BOUND));if(o>=0){var i=this._originalMappings[o];if(i.source===n.source)return{line:r.getArg(i,\"generatedLine\",null),column:r.getArg(i,\"generatedColumn\",null),lastColumn:r.getArg(i,\"lastGeneratedColumn\",null)}}return{line:null,column:null,lastColumn:null}},t.BasicSourceMapConsumer=c,d.prototype=Object.create(u.prototype),d.prototype.constructor=u,d.prototype._version=3,Object.defineProperty(d.prototype,\"sources\",{get:function(){for(var e=[],t=0;t<this._sections.length;t++)for(var n=0;n<this._sections[t].consumer.sources.length;n++)e.push(this._sections[t].consumer.sources[n]);return e}}),d.prototype.originalPositionFor=function(e){var t={generatedLine:r.getArg(e,\"line\"),generatedColumn:r.getArg(e,\"column\")},n=o.search(t,this._sections,(function(e,t){return e.generatedLine-t.generatedOffset.generatedLine||e.generatedColumn-t.generatedOffset.generatedColumn})),i=this._sections[n];return i?i.consumer.originalPositionFor({line:t.generatedLine-(i.generatedOffset.generatedLine-1),column:t.generatedColumn-(i.generatedOffset.generatedLine===t.generatedLine?i.generatedOffset.generatedColumn-1:0),bias:e.bias}):{source:null,line:null,column:null,name:null}},d.prototype.hasContentsOfAllSources=function(){return this._sections.every((function(e){return e.consumer.hasContentsOfAllSources()}))},d.prototype.sourceContentFor=function(e,t){for(var n=0;n<this._sections.length;n++){var r=this._sections[n].consumer.sourceContentFor(e,!0);if(r)return r}if(t)return null;throw new Error('\"'+e+'\" is not in the SourceMap.')},d.prototype.generatedPositionFor=function(e){for(var t=0;t<this._sections.length;t++){var n=this._sections[t];if(-1!==n.consumer._findSourceIndex(r.getArg(e,\"source\"))){var o=n.consumer.generatedPositionFor(e);if(o)return{line:o.line+(n.generatedOffset.generatedLine-1),column:o.column+(n.generatedOffset.generatedLine===o.line?n.generatedOffset.generatedColumn-1:0)}}}return{line:null,column:null}},d.prototype._parseMappings=function(e,t){this.__generatedMappings=[],this.__originalMappings=[];for(var n=0;n<this._sections.length;n++)for(var o=this._sections[n],i=o.consumer._generatedMappings,s=0;s<i.length;s++){var u=i[s],c=o.consumer._sources.at(u.source);c=r.computeSourceURL(o.consumer.sourceRoot,c,this._sourceMapURL),this._sources.add(c),c=this._sources.indexOf(c);var l=null;u.name&&(l=o.consumer._names.at(u.name),this._names.add(l),l=this._names.indexOf(l));var d={source:c,generatedLine:u.generatedLine+(o.generatedOffset.generatedLine-1),generatedColumn:u.generatedColumn+(o.generatedOffset.generatedLine===u.generatedLine?o.generatedOffset.generatedColumn-1:0),originalLine:u.originalLine,originalColumn:u.originalColumn,name:l};this.__generatedMappings.push(d),\"number\"==typeof d.originalLine&&this.__originalMappings.push(d)}a(this.__generatedMappings,r.compareByGeneratedPositionsDeflated),a(this.__originalMappings,r.compareByOriginalPositions)},t.IndexedSourceMapConsumer=d},function(e,t){t.GREATEST_LOWER_BOUND=1,t.LEAST_UPPER_BOUND=2,t.search=function(e,n,r,o){if(0===n.length)return-1;var i=function e(n,r,o,i,s,a){var u=Math.floor((r-n)/2)+n,c=s(o,i[u],!0);return 0===c?u:c>0?r-u>1?e(u,r,o,i,s,a):a==t.LEAST_UPPER_BOUND?r<i.length?r:-1:u:u-n>1?e(n,u,o,i,s,a):a==t.LEAST_UPPER_BOUND?u:n<0?-1:n}(-1,n.length,e,n,r,o||t.GREATEST_LOWER_BOUND);if(i<0)return-1;for(;i-1>=0&&0===r(n[i],n[i-1],!0);)--i;return i}},function(e,t){function n(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}t.quickSort=function(e,t){!function e(t,r,o,i){if(o<i){var s=o-1;n(t,(l=o,d=i,Math.round(l+Math.random()*(d-l))),i);for(var a=t[i],u=o;u<i;u++)r(t[u],a)<=0&&n(t,s+=1,u);n(t,s+1,u);var c=s+1;e(t,r,o,c-1),e(t,r,c+1,i)}var l,d}(e,t,0,e.length-1)}},function(e,t,n){var r=n(16).SourceMapGenerator,o=n(0),i=/(\\r?\\n)/,s=\"$$$isSourceNode$$$\";function a(e,t,n,r,o){this.children=[],this.sourceContents={},this.line=null==e?null:e,this.column=null==t?null:t,this.source=null==n?null:n,this.name=null==o?null:o,this[s]=!0,null!=r&&this.add(r)}a.fromStringWithSourceMap=function(e,t,n){var r=new a,s=e.split(i),u=0,c=function(){return e()+(e()||\"\");function e(){return u<s.length?s[u++]:void 0}},l=1,d=0,h=null;return t.eachMapping((function(e){if(null!==h){if(!(l<e.generatedLine)){var t=(n=s[u]||\"\").substr(0,e.generatedColumn-d);return s[u]=n.substr(e.generatedColumn-d),d=e.generatedColumn,f(h,t),void(h=e)}f(h,c()),l++,d=0}for(;l<e.generatedLine;)r.add(c()),l++;if(d<e.generatedColumn){var n=s[u]||\"\";r.add(n.substr(0,e.generatedColumn)),s[u]=n.substr(e.generatedColumn),d=e.generatedColumn}h=e}),this),u<s.length&&(h&&f(h,c()),r.add(s.splice(u).join(\"\"))),t.sources.forEach((function(e){var i=t.sourceContentFor(e);null!=i&&(null!=n&&(e=o.join(n,e)),r.setSourceContent(e,i))})),r;function f(e,t){if(null===e||void 0===e.source)r.add(t);else{var i=n?o.join(n,e.source):e.source;r.add(new a(e.originalLine,e.originalColumn,i,t,e.name))}}},a.prototype.add=function(e){if(Array.isArray(e))e.forEach((function(e){this.add(e)}),this);else{if(!e[s]&&\"string\"!=typeof e)throw new TypeError(\"Expected a SourceNode, string, or an array of SourceNodes and strings. Got \"+e);e&&this.children.push(e)}return this},a.prototype.prepend=function(e){if(Array.isArray(e))for(var t=e.length-1;t>=0;t--)this.prepend(e[t]);else{if(!e[s]&&\"string\"!=typeof e)throw new TypeError(\"Expected a SourceNode, string, or an array of SourceNodes and strings. Got \"+e);this.children.unshift(e)}return this},a.prototype.walk=function(e){for(var t,n=0,r=this.children.length;n<r;n++)(t=this.children[n])[s]?t.walk(e):\"\"!==t&&e(t,{source:this.source,line:this.line,column:this.column,name:this.name})},a.prototype.join=function(e){var t,n,r=this.children.length;if(r>0){for(t=[],n=0;n<r-1;n++)t.push(this.children[n]),t.push(e);t.push(this.children[n]),this.children=t}return this},a.prototype.replaceRight=function(e,t){var n=this.children[this.children.length-1];return n[s]?n.replaceRight(e,t):\"string\"==typeof n?this.children[this.children.length-1]=n.replace(e,t):this.children.push(\"\".replace(e,t)),this},a.prototype.setSourceContent=function(e,t){this.sourceContents[o.toSetString(e)]=t},a.prototype.walkSourceContents=function(e){for(var t=0,n=this.children.length;t<n;t++)this.children[t][s]&&this.children[t].walkSourceContents(e);var r=Object.keys(this.sourceContents);for(t=0,n=r.length;t<n;t++)e(o.fromSetString(r[t]),this.sourceContents[r[t]])},a.prototype.toString=function(){var e=\"\";return this.walk((function(t){e+=t})),e},a.prototype.toStringWithSourceMap=function(e){var t={code:\"\",line:1,column:0},n=new r(e),o=!1,i=null,s=null,a=null,u=null;return this.walk((function(e,r){t.code+=e,null!==r.source&&null!==r.line&&null!==r.column?(i===r.source&&s===r.line&&a===r.column&&u===r.name||n.addMapping({source:r.source,original:{line:r.line,column:r.column},generated:{line:t.line,column:t.column},name:r.name}),i=r.source,s=r.line,a=r.column,u=r.name,o=!0):o&&(n.addMapping({generated:{line:t.line,column:t.column}}),i=null,o=!1);for(var c=0,l=e.length;c<l;c++)10===e.charCodeAt(c)?(t.line++,t.column=0,c+1===l?(i=null,o=!1):o&&n.addMapping({source:r.source,original:{line:r.line,column:r.column},generated:{line:t.line,column:t.column},name:r.name})):t.column++})),this.walkSourceContents((function(e,t){n.setSourceContent(e,t)})),{code:t.code,map:n}},t.SourceNode=a},function(e,t){var n,r,o=e.exports={};function i(){throw new Error(\"setTimeout has not been defined\")}function s(){throw new Error(\"clearTimeout has not been defined\")}function a(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n=\"function\"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{r=\"function\"==typeof clearTimeout?clearTimeout:s}catch(e){r=s}}();var u,c=[],l=!1,d=-1;function h(){l&&u&&(l=!1,u.length?c=u.concat(c):d=-1,c.length&&f())}function f(){if(!l){var e=a(h);l=!0;for(var t=c.length;t;){for(u=c,c=[];++d<t;)u&&u[d].run();d=-1,t=c.length}u=null,l=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===s||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function g(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new p(e,t)),1!==c.length||l||a(f)},p.prototype.run=function(){this.fun.apply(null,this.array)},o.title=\"browser\",o.browser=!0,o.env={},o.argv=[],o.version=\"\",o.versions={},o.on=g,o.addListener=g,o.once=g,o.off=g,o.removeListener=g,o.removeAllListeners=g,o.emit=g,o.prependListener=g,o.prependOnceListener=g,o.listeners=function(e){return[]},o.binding=function(e){throw new Error(\"process.binding is not supported\")},o.cwd=function(){return\"/\"},o.chdir=function(e){throw new Error(\"process.chdir is not supported\")},o.umask=function(){return 0}},function(e,t,n){t.__esModule=!0,t.default=function(e){r[e]||(r[e]=!0,\"undefined\"!=typeof console&&console.warn&&console.warn(e))};var r={};e.exports=t.default},function(e,t,n){t.__esModule=!0,t.default=void 0;var r,o=(r=n(39))&&r.__esModule?r:{default:r},i=function(){function e(e,t,n){this.processor=e,this.messages=[],this.root=t,this.opts=n,this.css=void 0,this.map=void 0}var t,n=e.prototype;return n.toString=function(){return this.css},n.warn=function(e,t){void 0===t&&(t={}),t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);var n=new o.default(e,t);return this.messages.push(n),n},n.warnings=function(){return this.messages.filter((function(e){return\"warning\"===e.type}))},(t=[{key:\"content\",get:function(){return this.css}}])&&function(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)}}(e.prototype,t),e}();t.default=i,e.exports=t.default},function(e,t,n){t.__esModule=!0,t.default=void 0;var r=function(){function e(e,t){if(void 0===t&&(t={}),this.type=\"warning\",this.text=e,t.node&&t.node.source){var n=t.node.positionBy(t);this.line=n.line,this.column=n.column}for(var r in t)this[r]=t[r]}return e.prototype.toString=function(){return this.node?this.node.error(this.text,{plugin:this.plugin,index:this.index,word:this.word}).message:this.plugin?this.plugin+\": \"+this.text:this.text},e}();t.default=r,e.exports=t.default},function(e,t,n){t.__esModule=!0,t.default=void 0;var r=c(n(1)),o=c(n(41)),i=c(n(6)),s=c(n(7)),a=c(n(20)),u=c(n(9));function c(e){return e&&e.__esModule?e:{default:e}}var l=function(){function e(e){this.input=e,this.root=new a.default,this.current=this.root,this.spaces=\"\",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{line:1,column:1}}}var t=e.prototype;return t.createTokenizer=function(){this.tokenizer=(0,o.default)(this.input)},t.parse=function(){for(var e;!this.tokenizer.endOfFile();)switch((e=this.tokenizer.nextToken())[0]){case\"space\":this.spaces+=e[1];break;case\";\":this.freeSemicolon(e);break;case\"}\":this.end(e);break;case\"comment\":this.comment(e);break;case\"at-word\":this.atrule(e);break;case\"{\":this.emptyRule(e);break;default:this.other(e)}this.endFile()},t.comment=function(e){var t=new i.default;this.init(t,e[2],e[3]),t.source.end={line:e[4],column:e[5]};var n=e[1].slice(2,-2);if(/^\\s*$/.test(n))t.text=\"\",t.raws.left=n,t.raws.right=\"\";else{var r=n.match(/^(\\s*)([^]*[^\\s])(\\s*)$/);t.text=r[2],t.raws.left=r[1],t.raws.right=r[3]}},t.emptyRule=function(e){var t=new u.default;this.init(t,e[2],e[3]),t.selector=\"\",t.raws.between=\"\",this.current=t},t.other=function(e){for(var t=!1,n=null,r=!1,o=null,i=[],s=[],a=e;a;){if(n=a[0],s.push(a),\"(\"===n||\"[\"===n)o||(o=a),i.push(\"(\"===n?\")\":\"]\");else if(0===i.length){if(\";\"===n){if(r)return void this.decl(s);break}if(\"{\"===n)return void this.rule(s);if(\"}\"===n){this.tokenizer.back(s.pop()),t=!0;break}\":\"===n&&(r=!0)}else n===i[i.length-1]&&(i.pop(),0===i.length&&(o=null));a=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),i.length>0&&this.unclosedBracket(o),t&&r){for(;s.length&&(\"space\"===(a=s[s.length-1][0])||\"comment\"===a);)this.tokenizer.back(s.pop());this.decl(s)}else this.unknownWord(s)},t.rule=function(e){e.pop();var t=new u.default;this.init(t,e[0][2],e[0][3]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,\"selector\",e),this.current=t},t.decl=function(e){var t=new r.default;this.init(t);var n,o=e[e.length-1];for(\";\"===o[0]&&(this.semicolon=!0,e.pop()),o[4]?t.source.end={line:o[4],column:o[5]}:t.source.end={line:o[2],column:o[3]};\"word\"!==e[0][0];)1===e.length&&this.unknownWord(e),t.raws.before+=e.shift()[1];for(t.source.start={line:e[0][2],column:e[0][3]},t.prop=\"\";e.length;){var i=e[0][0];if(\":\"===i||\"space\"===i||\"comment\"===i)break;t.prop+=e.shift()[1]}for(t.raws.between=\"\";e.length;){if(\":\"===(n=e.shift())[0]){t.raws.between+=n[1];break}\"word\"===n[0]&&/\\w/.test(n[1])&&this.unknownWord([n]),t.raws.between+=n[1]}\"_\"!==t.prop[0]&&\"*\"!==t.prop[0]||(t.raws.before+=t.prop[0],t.prop=t.prop.slice(1)),t.raws.between+=this.spacesAndCommentsFromStart(e),this.precheckMissedSemicolon(e);for(var s=e.length-1;s>0;s--){if(\"!important\"===(n=e[s])[1].toLowerCase()){t.important=!0;var a=this.stringFrom(e,s);\" !important\"!==(a=this.spacesFromEnd(e)+a)&&(t.raws.important=a);break}if(\"important\"===n[1].toLowerCase()){for(var u=e.slice(0),c=\"\",l=s;l>0;l--){var d=u[l][0];if(0===c.trim().indexOf(\"!\")&&\"space\"!==d)break;c=u.pop()[1]+c}0===c.trim().indexOf(\"!\")&&(t.important=!0,t.raws.important=c,e=u)}if(\"space\"!==n[0]&&\"comment\"!==n[0])break}this.raw(t,\"value\",e),-1!==t.value.indexOf(\":\")&&this.checkMissedSemicolon(e)},t.atrule=function(e){var t,n,r=new s.default;r.name=e[1].slice(1),\"\"===r.name&&this.unnamedAtrule(r,e),this.init(r,e[2],e[3]);for(var o=!1,i=!1,a=[];!this.tokenizer.endOfFile();){if(\";\"===(e=this.tokenizer.nextToken())[0]){r.source.end={line:e[2],column:e[3]},this.semicolon=!0;break}if(\"{\"===e[0]){i=!0;break}if(\"}\"===e[0]){if(a.length>0){for(t=a[n=a.length-1];t&&\"space\"===t[0];)t=a[--n];t&&(r.source.end={line:t[4],column:t[5]})}this.end(e);break}if(a.push(e),this.tokenizer.endOfFile()){o=!0;break}}r.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(r.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(r,\"params\",a),o&&(e=a[a.length-1],r.source.end={line:e[4],column:e[5]},this.spaces=r.raws.between,r.raws.between=\"\")):(r.raws.afterName=\"\",r.params=\"\"),i&&(r.nodes=[],this.current=r)},t.end=function(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||\"\")+this.spaces,this.spaces=\"\",this.current.parent?(this.current.source.end={line:e[2],column:e[3]},this.current=this.current.parent):this.unexpectedClose(e)},t.endFile=function(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||\"\")+this.spaces},t.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var t=this.current.nodes[this.current.nodes.length-1];t&&\"rule\"===t.type&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces=\"\")}},t.init=function(e,t,n){this.current.push(e),e.source={start:{line:t,column:n},input:this.input},e.raws.before=this.spaces,this.spaces=\"\",\"comment\"!==e.type&&(this.semicolon=!1)},t.raw=function(e,t,n){for(var r,o,i,s,a=n.length,u=\"\",c=!0,l=/^([.|#])?([\\w])+/i,d=0;d<a;d+=1)\"comment\"!==(o=(r=n[d])[0])||\"rule\"!==e.type?\"comment\"===o||\"space\"===o&&d===a-1?c=!1:u+=r[1]:(s=n[d-1],i=n[d+1],\"space\"!==s[0]&&\"space\"!==i[0]&&l.test(s[1])&&l.test(i[1])?u+=r[1]:c=!1);if(!c){var h=n.reduce((function(e,t){return e+t[1]}),\"\");e.raws[t]={value:u,raw:h}}e[t]=u},t.spacesAndCommentsFromEnd=function(e){for(var t,n=\"\";e.length&&(\"space\"===(t=e[e.length-1][0])||\"comment\"===t);)n=e.pop()[1]+n;return n},t.spacesAndCommentsFromStart=function(e){for(var t,n=\"\";e.length&&(\"space\"===(t=e[0][0])||\"comment\"===t);)n+=e.shift()[1];return n},t.spacesFromEnd=function(e){for(var t=\"\";e.length&&\"space\"===e[e.length-1][0];)t=e.pop()[1]+t;return t},t.stringFrom=function(e,t){for(var n=\"\",r=t;r<e.length;r++)n+=e[r][1];return e.splice(t,e.length-t),n},t.colon=function(e){for(var t,n,r,o=0,i=0;i<e.length;i++){if(\"(\"===(n=(t=e[i])[0])&&(o+=1),\")\"===n&&(o-=1),0===o&&\":\"===n){if(r){if(\"word\"===r[0]&&\"progid\"===r[1])continue;return i}this.doubleColon(t)}r=t}return!1},t.unclosedBracket=function(e){throw this.input.error(\"Unclosed bracket\",e[2],e[3])},t.unknownWord=function(e){throw this.input.error(\"Unknown word\",e[0][2],e[0][3])},t.unexpectedClose=function(e){throw this.input.error(\"Unexpected }\",e[2],e[3])},t.unclosedBlock=function(){var e=this.current.source.start;throw this.input.error(\"Unclosed block\",e.line,e.column)},t.doubleColon=function(e){throw this.input.error(\"Double colon\",e[2],e[3])},t.unnamedAtrule=function(e,t){throw this.input.error(\"At-rule without name\",t[2],t[3])},t.precheckMissedSemicolon=function(){},t.checkMissedSemicolon=function(e){var t=this.colon(e);if(!1!==t){for(var n,r=0,o=t-1;o>=0&&(\"space\"===(n=e[o])[0]||2!==(r+=1));o--);throw this.input.error(\"Missed semicolon\",n[2],n[3])}},e}();t.default=l,e.exports=t.default},function(e,t,n){t.__esModule=!0,t.default=function(e,t){void 0===t&&(t={});var n,C,O,N,T,M,A,x,P,R,D,L,B,F,j=e.css.valueOf(),U=t.ignoreErrors,z=j.length,q=-1,H=1,G=0,Y=[],W=[];function Z(t){throw e.error(\"Unclosed \"+t,H,G-q)}return{back:function(e){W.push(e)},nextToken:function(e){if(W.length)return W.pop();if(!(G>=z)){var t=!!e&&e.ignoreUnclosed;switch(((n=j.charCodeAt(G))===a||n===c||n===d&&j.charCodeAt(G+1)!==a)&&(q=G,H+=1),n){case a:case u:case l:case d:case c:C=G;do{C+=1,(n=j.charCodeAt(C))===a&&(q=C,H+=1)}while(n===u||n===a||n===l||n===d||n===c);F=[\"space\",j.slice(G,C)],G=C-1;break;case h:case f:case v:case m:case _:case y:case g:var V=String.fromCharCode(n);F=[V,V,H,G-q];break;case p:if(L=Y.length?Y.pop()[1]:\"\",B=j.charCodeAt(G+1),\"url\"===L&&B!==r&&B!==o&&B!==u&&B!==a&&B!==l&&B!==c&&B!==d){C=G;do{if(R=!1,-1===(C=j.indexOf(\")\",C+1))){if(U||t){C=G;break}Z(\"bracket\")}for(D=C;j.charCodeAt(D-1)===i;)D-=1,R=!R}while(R);F=[\"brackets\",j.slice(G,C+1),H,G-q,H,C-q],G=C}else C=j.indexOf(\")\",G+1),M=j.slice(G,C+1),-1===C||k.test(M)?F=[\"(\",\"(\",H,G-q]:(F=[\"brackets\",M,H,G-q,H,C-q],G=C);break;case r:case o:O=n===r?\"'\":'\"',C=G;do{if(R=!1,-1===(C=j.indexOf(O,C+1))){if(U||t){C=G+1;break}Z(\"string\")}for(D=C;j.charCodeAt(D-1)===i;)D-=1,R=!R}while(R);M=j.slice(G,C+1),N=M.split(\"\\n\"),(T=N.length-1)>0?(x=H+T,P=C-N[T].length):(x=H,P=q),F=[\"string\",j.slice(G,C+1),H,G-q,x,C-P],q=P,H=x,G=C;break;case w:S.lastIndex=G+1,S.test(j),C=0===S.lastIndex?j.length-1:S.lastIndex-2,F=[\"at-word\",j.slice(G,C+1),H,G-q,H,C-q],G=C;break;case i:for(C=G,A=!0;j.charCodeAt(C+1)===i;)C+=1,A=!A;if(n=j.charCodeAt(C+1),A&&n!==s&&n!==u&&n!==a&&n!==l&&n!==d&&n!==c&&(C+=1,E.test(j.charAt(C)))){for(;E.test(j.charAt(C+1));)C+=1;j.charCodeAt(C+1)===u&&(C+=1)}F=[\"word\",j.slice(G,C+1),H,G-q,H,C-q],G=C;break;default:n===s&&j.charCodeAt(G+1)===b?(0===(C=j.indexOf(\"*/\",G+2)+1)&&(U||t?C=j.length:Z(\"comment\")),M=j.slice(G,C+1),N=M.split(\"\\n\"),(T=N.length-1)>0?(x=H+T,P=C-N[T].length):(x=H,P=q),F=[\"comment\",M,H,G-q,x,C-P],q=P,H=x,G=C):(I.lastIndex=G+1,I.test(j),C=0===I.lastIndex?j.length-1:I.lastIndex-2,F=[\"word\",j.slice(G,C+1),H,G-q,H,C-q],Y.push(F),G=C)}return G++,F}},endOfFile:function(){return 0===W.length&&G>=z},position:function(){return G}}};var r=\"'\".charCodeAt(0),o='\"'.charCodeAt(0),i=\"\\\\\".charCodeAt(0),s=\"/\".charCodeAt(0),a=\"\\n\".charCodeAt(0),u=\" \".charCodeAt(0),c=\"\\f\".charCodeAt(0),l=\"\\t\".charCodeAt(0),d=\"\\r\".charCodeAt(0),h=\"[\".charCodeAt(0),f=\"]\".charCodeAt(0),p=\"(\".charCodeAt(0),g=\")\".charCodeAt(0),v=\"{\".charCodeAt(0),m=\"}\".charCodeAt(0),y=\";\".charCodeAt(0),b=\"*\".charCodeAt(0),_=\":\".charCodeAt(0),w=\"@\".charCodeAt(0),S=/[ \\n\\t\\r\\f{}()'\"\\\\;/[\\]#]/g,I=/[ \\n\\t\\r\\f(){}:;@!'\"\\\\\\][#]|\\/(?=\\*)/g,k=/.[\\\\/(\"'\\n]/,E=/[a-f0-9]/i;e.exports=t.default},function(e,t,n){t.__esModule=!0,t.default=void 0;var r=s(n(4)),o=s(n(10)),i=s(n(43));function s(e){return e&&e.__esModule?e:{default:e}}var a=0,u=function(){function e(e,t){if(void 0===t&&(t={}),null==e||\"object\"==typeof e&&!e.toString)throw new Error(\"PostCSS received \"+e+\" instead of CSS string\");this.css=e.toString(),\"\\ufeff\"===this.css[0]||\"\"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(/^\\w+:\\/\\//.test(t.from)||r.default.isAbsolute(t.from)?this.file=t.from:this.file=r.default.resolve(t.from));var n=new i.default(this.css,t);if(n.text){this.map=n;var o=n.consumer().file;!this.file&&o&&(this.file=this.mapResolve(o))}this.file||(a+=1,this.id=\"<input css \"+a+\">\"),this.map&&(this.map.file=this.from)}var t,n=e.prototype;return n.error=function(e,t,n,r){var i;void 0===r&&(r={});var s=this.origin(t,n);return(i=s?new o.default(e,s.line,s.column,s.source,s.file,r.plugin):new o.default(e,t,n,this.css,this.file,r.plugin)).input={line:t,column:n,source:this.css},this.file&&(i.input.file=this.file),i},n.origin=function(e,t){if(!this.map)return!1;var n=this.map.consumer(),r=n.originalPositionFor({line:e,column:t});if(!r.source)return!1;var o={file:this.mapResolve(r.source),line:r.line,column:r.column},i=n.sourceContentFor(r.source);return i&&(o.source=i),o},n.mapResolve=function(e){return/^\\w+:\\/\\//.test(e)?e:r.default.resolve(this.map.consumer().sourceRoot||\".\",e)},(t=[{key:\"from\",get:function(){return this.file||this.id}}])&&function(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)}}(e.prototype,t),e}();t.default=u,e.exports=t.default},function(e,t,n){(function(r){t.__esModule=!0,t.default=void 0;var o=a(n(15)),i=a(n(4)),s=a(n(44));function a(e){return e&&e.__esModule?e:{default:e}}var u=function(){function e(e,t){this.loadAnnotation(e),this.inline=this.startWith(this.annotation,\"data:\");var n=t.map?t.map.prev:void 0,r=this.loadMap(t.from,n);r&&(this.text=r)}var t=e.prototype;return t.consumer=function(){return this.consumerCache||(this.consumerCache=new o.default.SourceMapConsumer(this.text)),this.consumerCache},t.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},t.startWith=function(e,t){return!!e&&e.substr(0,t.length)===t},t.getAnnotationURL=function(e){return e.match(/\\/\\*\\s*# sourceMappingURL=(.*)\\s*\\*\\//)[1].trim()},t.loadAnnotation=function(e){var t=e.match(/\\/\\*\\s*# sourceMappingURL=(.*)\\s*\\*\\//gm);if(t&&t.length>0){var n=t[t.length-1];n&&(this.annotation=this.getAnnotationURL(n))}},t.decodeInline=function(e){var t,n=\"data:application/json,\";if(this.startWith(e,n))return decodeURIComponent(e.substr(n.length));if(/^data:application\\/json;charset=utf-?8;base64,/.test(e)||/^data:application\\/json;base64,/.test(e))return t=e.substr(RegExp.lastMatch.length),r?r.from(t,\"base64\").toString():window.atob(t);var o=e.match(/data:application\\/json;([^,]+),/)[1];throw new Error(\"Unsupported source map encoding \"+o)},t.loadMap=function(e,t){if(!1===t)return!1;if(t){if(\"string\"==typeof t)return t;if(\"function\"==typeof t){var n=t(e);if(n&&s.default.existsSync&&s.default.existsSync(n))return s.default.readFileSync(n,\"utf-8\").toString().trim();throw new Error(\"Unable to load previous source map: \"+n.toString())}if(t instanceof o.default.SourceMapConsumer)return o.default.SourceMapGenerator.fromSourceMap(t).toString();if(t instanceof o.default.SourceMapGenerator)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error(\"Unsupported previous source map format: \"+t.toString())}if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var r=this.annotation;return e&&(r=i.default.join(i.default.dirname(e),r)),this.root=i.default.dirname(r),!(!s.default.existsSync||!s.default.existsSync(r))&&s.default.readFileSync(r,\"utf-8\").toString().trim()}},t.isMap=function(e){return\"object\"==typeof e&&(\"string\"==typeof e.mappings||\"string\"==typeof e._mappings)},e}();t.default=u,e.exports=t.default}).call(this,n(14).Buffer)},function(e,t){},function(e,t,n){t.__esModule=!0,t.default=void 0,t.default={prefix:function(e){var t=e.match(/^(-\\w+-)/);return t?t[0]:\"\"},unprefixed:function(e){return e.replace(/^-\\w+-/,\"\")}},e.exports=t.default}])})),Ie=_e(Se),ke=(Se.postcss,we((function(e,t){function n(e){for(var t=e.toLowerCase(),n=\"\",r=!1,o=0;o<6&&void 0!==t[o];o++){var i=t.charCodeAt(o);if(r=32===i,!(i>=97&&i<=102||i>=48&&i<=57))break;n+=t[o]}if(0!==n.length){var s=parseInt(n,16);return s>=55296&&s<=57343||0===s||s>1114111?[\"�\",n.length+(r?1:0)]:[String.fromCodePoint(s),n.length+(r?1:0)]}}t.__esModule=!0,t.default=function(e){if(!r.test(e))return e;for(var t=\"\",o=0;o<e.length;o++)if(\"\\\\\"!==e[o])t+=e[o];else{var i=n(e.slice(o+1,o+7));if(void 0!==i){t+=i[0],o+=i[1];continue}if(\"\\\\\"===e[o+1]){t+=\"\\\\\",o++;continue}e.length===o+1&&(t+=e[o])}return t};var r=/\\\\/;e.exports=t.default})));_e(ke);var Ee=we((function(e,t){t.__esModule=!0,t.default=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(;n.length>0;){var o=n.shift();if(!e[o])return;e=e[o]}return e},e.exports=t.default}));_e(Ee);var Ce=we((function(e,t){t.__esModule=!0,t.default=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(;n.length>0;){var o=n.shift();e[o]||(e[o]={}),e=e[o]}},e.exports=t.default}));_e(Ce);var Oe=we((function(e,t){t.__esModule=!0,t.default=function(e){var t=\"\",n=e.indexOf(\"/*\"),r=0;for(;n>=0;){t+=e.slice(r,n);var o=e.indexOf(\"*/\",n+2);if(o<0)return t;r=o+2,n=e.indexOf(\"/*\",r)}return t+=e.slice(r)},e.exports=t.default}));_e(Oe);var Ne=we((function(e,t){t.__esModule=!0,t.stripComments=t.ensureObject=t.getProp=t.unesc=void 0;var n=s(ke);t.unesc=n.default;var r=s(Ee);t.getProp=r.default;var o=s(Ce);t.ensureObject=o.default;var i=s(Oe);function s(e){return e&&e.__esModule?e:{default:e}}t.stripComments=i.default}));_e(Ne);Ne.stripComments,Ne.ensureObject,Ne.getProp,Ne.unesc;var Te=we((function(e,t){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)}}t.__esModule=!0,t.default=void 0;var r=function(){function e(e){void 0===e&&(e={}),Object.assign(this,e),this.spaces=this.spaces||{},this.spaces.before=this.spaces.before||\"\",this.spaces.after=this.spaces.after||\"\"}var t,r,o,i=e.prototype;return i.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},i.replaceWith=function(){if(this.parent){for(var e in arguments)this.parent.insertBefore(this,arguments[e]);this.remove()}return this},i.next=function(){return this.parent.at(this.parent.index(this)+1)},i.prev=function(){return this.parent.at(this.parent.index(this)-1)},i.clone=function(e){void 0===e&&(e={});var t=function e(t,n){if(\"object\"!=typeof t||null===t)return t;var r=new t.constructor;for(var o in t)if(t.hasOwnProperty(o)){var i=t[o];\"parent\"===o&&\"object\"===typeof i?n&&(r[o]=n):r[o]=i instanceof Array?i.map((function(t){return e(t,r)})):e(i,r)}return r}(this);for(var n in e)t[n]=e[n];return t},i.appendToPropertyAndEscape=function(e,t,n){this.raws||(this.raws={});var r=this[e],o=this.raws[e];this[e]=r+t,o||n!==t?this.raws[e]=(o||r)+n:delete this.raws[e]},i.setPropertyAndEscape=function(e,t,n){this.raws||(this.raws={}),this[e]=t,this.raws[e]=n},i.setPropertyWithoutEscape=function(e,t){this[e]=t,this.raws&&delete this.raws[e]},i.isAtPosition=function(e,t){if(this.source&&this.source.start&&this.source.end)return!(this.source.start.line>e)&&(!(this.source.end.line<e)&&(!(this.source.start.line===e&&this.source.start.column>t)&&!(this.source.end.line===e&&this.source.end.column<t)))},i.stringifyProperty=function(e){return this.raws&&this.raws[e]||this[e]},i.valueToString=function(){return String(this.stringifyProperty(\"value\"))},i.toString=function(){return[this.rawSpaceBefore,this.valueToString(),this.rawSpaceAfter].join(\"\")},t=e,(r=[{key:\"rawSpaceBefore\",get:function(){var e=this.raws&&this.raws.spaces&&this.raws.spaces.before;return void 0===e&&(e=this.spaces&&this.spaces.before),e||\"\"},set:function(e){(0,Ne.ensureObject)(this,\"raws\",\"spaces\"),this.raws.spaces.before=e}},{key:\"rawSpaceAfter\",get:function(){var e=this.raws&&this.raws.spaces&&this.raws.spaces.after;return void 0===e&&(e=this.spaces.after),e||\"\"},set:function(e){(0,Ne.ensureObject)(this,\"raws\",\"spaces\"),this.raws.spaces.after=e}}])&&n(t.prototype,r),o&&n(t,o),e}();t.default=r,e.exports=t.default}));_e(Te);var Me=we((function(e,t){t.__esModule=!0,t.UNIVERSAL=t.ATTRIBUTE=t.CLASS=t.COMBINATOR=t.COMMENT=t.ID=t.NESTING=t.PSEUDO=t.ROOT=t.SELECTOR=t.STRING=t.TAG=void 0;t.TAG=\"tag\";t.STRING=\"string\";t.SELECTOR=\"selector\";t.ROOT=\"root\";t.PSEUDO=\"pseudo\";t.NESTING=\"nesting\";t.ID=\"id\";t.COMMENT=\"comment\";t.COMBINATOR=\"combinator\";t.CLASS=\"class\";t.ATTRIBUTE=\"attribute\";t.UNIVERSAL=\"universal\"}));_e(Me);Me.UNIVERSAL,Me.ATTRIBUTE,Me.CLASS,Me.COMBINATOR,Me.COMMENT,Me.ID,Me.NESTING,Me.PSEUDO,Me.ROOT,Me.SELECTOR,Me.STRING,Me.TAG;var Ae=we((function(e,t){t.__esModule=!0,t.default=void 0;var n,r=(n=Te)&&n.__esModule?n:{default:n},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!=typeof e&&\"function\"!=typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var s=r?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(n,o,s):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(Me);function i(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}function s(e,t){var n;if(\"undefined\"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if(\"string\"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);\"Object\"===n&&e.constructor&&(n=e.constructor.name);if(\"Map\"===n||\"Set\"===n)return Array.from(e);if(\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(e,t)}(e))||t&&e&&\"number\"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}return(n=e[Symbol.iterator]()).next.bind(n)}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function u(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 c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var l=function(e){var t,n;function r(t){var n;return(n=e.call(this,t)||this).nodes||(n.nodes=[]),n}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,c(t,n);var i,a,l,d=r.prototype;return d.append=function(e){return e.parent=this,this.nodes.push(e),this},d.prepend=function(e){return e.parent=this,this.nodes.unshift(e),this},d.at=function(e){return this.nodes[e]},d.index=function(e){return\"number\"==typeof e?e:this.nodes.indexOf(e)},d.removeChild=function(e){var t;for(var n in e=this.index(e),this.at(e).parent=void 0,this.nodes.splice(e,1),this.indexes)(t=this.indexes[n])>=e&&(this.indexes[n]=t-1);return this},d.removeAll=function(){for(var e,t=s(this.nodes);!(e=t()).done;){e.value.parent=void 0}return this.nodes=[],this},d.empty=function(){return this.removeAll()},d.insertAfter=function(e,t){t.parent=this;var n,r=this.index(e);for(var o in this.nodes.splice(r+1,0,t),t.parent=this,this.indexes)r<=(n=this.indexes[o])&&(this.indexes[o]=n+1);return this},d.insertBefore=function(e,t){t.parent=this;var n,r=this.index(e);for(var o in this.nodes.splice(r,0,t),t.parent=this,this.indexes)(n=this.indexes[o])<=r&&(this.indexes[o]=n+1);return this},d._findChildAtPosition=function(e,t){var n=void 0;return this.each((function(r){if(r.atPosition){var o=r.atPosition(e,t);if(o)return n=o,!1}else if(r.isAtPosition(e,t))return n=r,!1})),n},d.atPosition=function(e,t){return this.isAtPosition(e,t)?this._findChildAtPosition(e,t)||this:void 0},d._inferEndPosition=function(){this.last&&this.last.source&&this.last.source.end&&(this.source=this.source||{},this.source.end=this.source.end||{},Object.assign(this.source.end,this.last.source.end))},d.each=function(e){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach++;var t=this.lastEach;if(this.indexes[t]=0,this.length){for(var n,r;this.indexes[t]<this.length&&(n=this.indexes[t],!1!==(r=e(this.at(n),n)));)this.indexes[t]+=1;return delete this.indexes[t],!1!==r&&void 0}},d.walk=function(e){return this.each((function(t,n){var r=e(t,n);if(!1!==r&&t.length&&(r=t.walk(e)),!1===r)return!1}))},d.walkAttributes=function(e){var t=this;return this.walk((function(n){if(n.type===o.ATTRIBUTE)return e.call(t,n)}))},d.walkClasses=function(e){var t=this;return this.walk((function(n){if(n.type===o.CLASS)return e.call(t,n)}))},d.walkCombinators=function(e){var t=this;return this.walk((function(n){if(n.type===o.COMBINATOR)return e.call(t,n)}))},d.walkComments=function(e){var t=this;return this.walk((function(n){if(n.type===o.COMMENT)return e.call(t,n)}))},d.walkIds=function(e){var t=this;return this.walk((function(n){if(n.type===o.ID)return e.call(t,n)}))},d.walkNesting=function(e){var t=this;return this.walk((function(n){if(n.type===o.NESTING)return e.call(t,n)}))},d.walkPseudos=function(e){var t=this;return this.walk((function(n){if(n.type===o.PSEUDO)return e.call(t,n)}))},d.walkTags=function(e){var t=this;return this.walk((function(n){if(n.type===o.TAG)return e.call(t,n)}))},d.walkUniversals=function(e){var t=this;return this.walk((function(n){if(n.type===o.UNIVERSAL)return e.call(t,n)}))},d.split=function(e){var t=this,n=[];return this.reduce((function(r,o,i){var s=e.call(t,o);return n.push(o),s?(r.push(n),n=[]):i===t.length-1&&r.push(n),r}),[])},d.map=function(e){return this.nodes.map(e)},d.reduce=function(e,t){return this.nodes.reduce(e,t)},d.every=function(e){return this.nodes.every(e)},d.some=function(e){return this.nodes.some(e)},d.filter=function(e){return this.nodes.filter(e)},d.sort=function(e){return this.nodes.sort(e)},d.toString=function(){return this.map(String).join(\"\")},i=r,(a=[{key:\"first\",get:function(){return this.at(0)}},{key:\"last\",get:function(){return this.at(this.length-1)}},{key:\"length\",get:function(){return this.nodes.length}}])&&u(i.prototype,a),l&&u(i,l),r}(r.default);t.default=l,e.exports=t.default}));_e(Ae);var xe=we((function(e,t){var n;function r(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 o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}t.__esModule=!0,t.default=void 0;var i=function(e){var t,n;function i(t){var n;return(n=e.call(this,t)||this).type=Me.ROOT,n}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,o(t,n);var s,a,u,c=i.prototype;return c.toString=function(){var e=this.reduce((function(e,t){return e.push(String(t)),e}),[]).join(\",\");return this.trailingComma?e+\",\":e},c.error=function(e,t){return this._error?this._error(e,t):new Error(e)},s=i,(a=[{key:\"errorGenerator\",set:function(e){this._error=e}}])&&r(s.prototype,a),u&&r(s,u),i}(((n=Ae)&&n.__esModule?n:{default:n}).default);t.default=i,e.exports=t.default}));_e(xe);var Pe=we((function(e,t){var n;function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}t.__esModule=!0,t.default=void 0;var o=function(e){var t,n;function o(t){var n;return(n=e.call(this,t)||this).type=Me.SELECTOR,n}return n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n),o}(((n=Ae)&&n.__esModule?n:{default:n}).default);t.default=o,e.exports=t.default}));_e(Pe);var Re={}.hasOwnProperty,De=/[ -,\\.\\/:-@\\[-\\^`\\{-~]/,Le=/[ -,\\.\\/:-@\\[\\]\\^`\\{-~]/,Be=/(^|\\\\+)?(\\\\[A-F0-9]{1,6})\\x20(?![a-fA-F0-9\\x20])/g,Fe=function e(t,n){\"single\"!=(n=function(e,t){if(!e)return t;var n={};for(var r in t)n[r]=Re.call(e,r)?e[r]:t[r];return n}(n,e.options)).quotes&&\"double\"!=n.quotes&&(n.quotes=\"single\");for(var r=\"double\"==n.quotes?'\"':\"'\",o=n.isIdentifier,i=t.charAt(0),s=\"\",a=0,u=t.length;a<u;){var c=t.charAt(a++),l=c.charCodeAt(),d=void 0;if(l<32||l>126){if(l>=55296&&l<=56319&&a<u){var h=t.charCodeAt(a++);56320==(64512&h)?l=((1023&l)<<10)+(1023&h)+65536:a--}d=\"\\\\\"+l.toString(16).toUpperCase()+\" \"}else d=n.escapeEverything?De.test(c)?\"\\\\\"+c:\"\\\\\"+l.toString(16).toUpperCase()+\" \":/[\\t\\n\\f\\r\\x0B]/.test(c)?\"\\\\\"+l.toString(16).toUpperCase()+\" \":\"\\\\\"==c||!o&&('\"'==c&&r==c||\"'\"==c&&r==c)||o&&Le.test(c)?\"\\\\\"+c:c;s+=d}return o&&(/^-[-\\d]/.test(s)?s=\"\\\\-\"+s.slice(1):/\\d/.test(i)&&(s=\"\\\\3\"+i+\" \"+s.slice(1))),s=s.replace(Be,(function(e,t,n){return t&&t.length%2?e:(t||\"\")+n})),!o&&n.wrap?r+s+r:s};Fe.options={escapeEverything:!1,isIdentifier:!1,quotes:\"single\",wrap:!1},Fe.version=\"3.0.0\";var je=Fe,Ue=we((function(e,t){t.__esModule=!0,t.default=void 0;var n=r(je);function r(e){return e&&e.__esModule?e:{default:e}}function o(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 i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var s=function(e){var t,r,s,a,u;function c(t){var n;return(n=e.call(this,t)||this).type=Me.CLASS,n._constructed=!0,n}return r=e,(t=c).prototype=Object.create(r.prototype),t.prototype.constructor=t,i(t,r),c.prototype.valueToString=function(){return\".\"+e.prototype.valueToString.call(this)},s=c,(a=[{key:\"value\",get:function(){return this._value},set:function(e){if(this._constructed){var t=(0,n.default)(e,{isIdentifier:!0});t!==e?((0,Ne.ensureObject)(this,\"raws\"),this.raws.value=t):this.raws&&delete this.raws.value}this._value=e}}])&&o(s.prototype,a),u&&o(s,u),c}(r(Te).default);t.default=s,e.exports=t.default}));_e(Ue);var ze=we((function(e,t){var n;function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}t.__esModule=!0,t.default=void 0;var o=function(e){var t,n;function o(t){var n;return(n=e.call(this,t)||this).type=Me.COMMENT,n}return n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n),o}(((n=Te)&&n.__esModule?n:{default:n}).default);t.default=o,e.exports=t.default}));_e(ze);var qe=we((function(e,t){var n;function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}t.__esModule=!0,t.default=void 0;var o=function(e){var t,n;function o(t){var n;return(n=e.call(this,t)||this).type=Me.ID,n}return n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n),o.prototype.valueToString=function(){return\"#\"+e.prototype.valueToString.call(this)},o}(((n=Te)&&n.__esModule?n:{default:n}).default);t.default=o,e.exports=t.default}));_e(qe);var He=we((function(e,t){t.__esModule=!0,t.default=void 0;var n=r(je);function r(e){return e&&e.__esModule?e:{default:e}}function o(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 i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var s=function(e){var t,r;function s(){return e.apply(this,arguments)||this}r=e,(t=s).prototype=Object.create(r.prototype),t.prototype.constructor=t,i(t,r);var a,u,c,l=s.prototype;return l.qualifiedName=function(e){return this.namespace?this.namespaceString+\"|\"+e:e},l.valueToString=function(){return this.qualifiedName(e.prototype.valueToString.call(this))},a=s,(u=[{key:\"namespace\",get:function(){return this._namespace},set:function(e){if(!0===e||\"*\"===e||\"&\"===e)return this._namespace=e,void(this.raws&&delete this.raws.namespace);var t=(0,n.default)(e,{isIdentifier:!0});this._namespace=e,t!==e?((0,Ne.ensureObject)(this,\"raws\"),this.raws.namespace=t):this.raws&&delete this.raws.namespace}},{key:\"ns\",get:function(){return this._namespace},set:function(e){this.namespace=e}},{key:\"namespaceString\",get:function(){if(this.namespace){var e=this.stringifyProperty(\"namespace\");return!0===e?\"\":e}return\"\"}}])&&o(a.prototype,u),c&&o(a,c),s}(r(Te).default);t.default=s,e.exports=t.default}));_e(He);var Ge=we((function(e,t){var n;function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}t.__esModule=!0,t.default=void 0;var o=function(e){var t,n;function o(t){var n;return(n=e.call(this,t)||this).type=Me.TAG,n}return n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n),o}(((n=He)&&n.__esModule?n:{default:n}).default);t.default=o,e.exports=t.default}));_e(Ge);var Ye=we((function(e,t){var n;function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}t.__esModule=!0,t.default=void 0;var o=function(e){var t,n;function o(t){var n;return(n=e.call(this,t)||this).type=Me.STRING,n}return n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n),o}(((n=Te)&&n.__esModule?n:{default:n}).default);t.default=o,e.exports=t.default}));_e(Ye);var We=we((function(e,t){var n;function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}t.__esModule=!0,t.default=void 0;var o=function(e){var t,n;function o(t){var n;return(n=e.call(this,t)||this).type=Me.PSEUDO,n}return n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n),o.prototype.toString=function(){var e=this.length?\"(\"+this.map(String).join(\",\")+\")\":\"\";return[this.rawSpaceBefore,this.stringifyProperty(\"value\"),e,this.rawSpaceAfter].join(\"\")},o}(((n=Ae)&&n.__esModule?n:{default:n}).default);t.default=o,e.exports=t.default}));_e(We);var Ze=function(e,t){if(Ve(\"noDeprecation\"))return e;var n=!1;return function(){if(!n){if(Ve(\"throwDeprecation\"))throw new Error(t);Ve(\"traceDeprecation\")?console.trace(t):console.warn(t),n=!0}return e.apply(this,arguments)}};function Ve(e){try{if(!global.localStorage)return!1}catch(e){return!1}var t=global.localStorage[e];return null!=t&&\"true\"===String(t).toLowerCase()}var Je=we((function(e,t){t.__esModule=!0,t.unescapeValue=f,t.default=void 0;var n,r=s(je),o=s(ke),i=s(He);function s(e){return e&&e.__esModule?e:{default:e}}function a(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 u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var c=/^('|\")(.*)\\1$/,l=Ze((function(){}),\"Assigning an attribute a value containing characters that might need to be escaped is deprecated. Call attribute.setValue() instead.\"),d=Ze((function(){}),\"Assigning attr.quoted is deprecated and has no effect. Assign to attr.quoteMark instead.\"),h=Ze((function(){}),\"Constructing an Attribute selector with a value without specifying quoteMark is deprecated. Note: The value should be unescaped now.\");function f(e){var t=!1,n=null,r=e,i=r.match(c);return i&&(n=i[1],r=i[2]),(r=(0,o.default)(r))!==e&&(t=!0),{deprecatedUsage:t,unescaped:r,quoteMark:n}}var p=function(e){var t,n;function o(t){var n;return void 0===t&&(t={}),(n=e.call(this,function(e){if(void 0!==e.quoteMark)return e;if(void 0===e.value)return e;h();var t=f(e.value),n=t.quoteMark,r=t.unescaped;return e.raws||(e.raws={}),void 0===e.raws.value&&(e.raws.value=e.value),e.value=r,e.quoteMark=n,e}(t))||this).type=Me.ATTRIBUTE,n.raws=n.raws||{},Object.defineProperty(n.raws,\"unquoted\",{get:Ze((function(){return n.value}),\"attr.raws.unquoted is deprecated. Call attr.value instead.\"),set:Ze((function(){return n.value}),\"Setting attr.raws.unquoted is deprecated and has no effect. attr.value is unescaped by default now.\")}),n._constructed=!0,n}n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,u(t,n);var i,s,c,p=o.prototype;return p.getQuotedValue=function(e){void 0===e&&(e={});var t=this._determineQuoteMark(e),n=g[t];return(0,r.default)(this._value,n)},p._determineQuoteMark=function(e){return e.smart?this.smartQuoteMark(e):this.preferredQuoteMark(e)},p.setValue=function(e,t){void 0===t&&(t={}),this._value=e,this._quoteMark=this._determineQuoteMark(t),this._syncRawValue()},p.smartQuoteMark=function(e){var t=this.value,n=t.replace(/[^']/g,\"\").length,i=t.replace(/[^\"]/g,\"\").length;if(n+i===0){var s=(0,r.default)(t,{isIdentifier:!0});if(s===t)return o.NO_QUOTE;var a=this.preferredQuoteMark(e);if(a===o.NO_QUOTE){var u=this.quoteMark||e.quoteMark||o.DOUBLE_QUOTE,c=g[u];if((0,r.default)(t,c).length<s.length)return u}return a}return i===n?this.preferredQuoteMark(e):i<n?o.DOUBLE_QUOTE:o.SINGLE_QUOTE},p.preferredQuoteMark=function(e){var t=e.preferCurrentQuoteMark?this.quoteMark:e.quoteMark;return void 0===t&&(t=e.preferCurrentQuoteMark?e.quoteMark:this.quoteMark),void 0===t&&(t=o.DOUBLE_QUOTE),t},p._syncRawValue=function(){var e=(0,r.default)(this._value,g[this.quoteMark]);e===this._value?this.raws&&delete this.raws.value:this.raws.value=e},p._handleEscapes=function(e,t){if(this._constructed){var n=(0,r.default)(t,{isIdentifier:!0});n!==t?this.raws[e]=n:delete this.raws[e]}},p._spacesFor=function(e){var t=this.spaces[e]||{},n=this.raws.spaces&&this.raws.spaces[e]||{};return Object.assign({before:\"\",after:\"\"},t,n)},p._stringFor=function(e,t,n){void 0===t&&(t=e),void 0===n&&(n=v);var r=this._spacesFor(t);return n(this.stringifyProperty(e),r)},p.offsetOf=function(e){var t=1,n=this._spacesFor(\"attribute\");if(t+=n.before.length,\"namespace\"===e||\"ns\"===e)return this.namespace?t:-1;if(\"attributeNS\"===e)return t;if(t+=this.namespaceString.length,this.namespace&&(t+=1),\"attribute\"===e)return t;t+=this.stringifyProperty(\"attribute\").length,t+=n.after.length;var r=this._spacesFor(\"operator\");t+=r.before.length;var o=this.stringifyProperty(\"operator\");if(\"operator\"===e)return o?t:-1;t+=o.length,t+=r.after.length;var i=this._spacesFor(\"value\");t+=i.before.length;var s=this.stringifyProperty(\"value\");return\"value\"===e?s?t:-1:(t+=s.length,t+=i.after.length,t+=this._spacesFor(\"insensitive\").before.length,\"insensitive\"===e&&this.insensitive?t:-1)},p.toString=function(){var e=this,t=[this.rawSpaceBefore,\"[\"];return t.push(this._stringFor(\"qualifiedAttribute\",\"attribute\")),this.operator&&(this.value||\"\"===this.value)&&(t.push(this._stringFor(\"operator\")),t.push(this._stringFor(\"value\")),t.push(this._stringFor(\"insensitiveFlag\",\"insensitive\",(function(t,n){return!(t.length>0)||e.quoted||0!==n.before.length||e.spaces.value&&e.spaces.value.after||(n.before=\" \"),v(t,n)})))),t.push(\"]\"),t.push(this.rawSpaceAfter),t.join(\"\")},i=o,(s=[{key:\"quoted\",get:function(){var e=this.quoteMark;return\"'\"===e||'\"'===e},set:function(e){d()}},{key:\"quoteMark\",get:function(){return this._quoteMark},set:function(e){this._constructed?this._quoteMark!==e&&(this._quoteMark=e,this._syncRawValue()):this._quoteMark=e}},{key:\"qualifiedAttribute\",get:function(){return this.qualifiedName(this.raws.attribute||this.attribute)}},{key:\"insensitiveFlag\",get:function(){return this.insensitive?\"i\":\"\"}},{key:\"value\",get:function(){return this._value},set:function(e){if(this._constructed){var t=f(e),n=t.deprecatedUsage,r=t.unescaped,o=t.quoteMark;if(n&&l(),r===this._value&&o===this._quoteMark)return;this._value=r,this._quoteMark=o,this._syncRawValue()}else this._value=e}},{key:\"attribute\",get:function(){return this._attribute},set:function(e){this._handleEscapes(\"attribute\",e),this._attribute=e}}])&&a(i.prototype,s),c&&a(i,c),o}(i.default);t.default=p,p.NO_QUOTE=null,p.SINGLE_QUOTE=\"'\",p.DOUBLE_QUOTE='\"';var g=((n={\"'\":{quotes:\"single\",wrap:!0},'\"':{quotes:\"double\",wrap:!0}}).null={isIdentifier:!0},n);function v(e,t){return\"\"+t.before+e+t.after}}));_e(Je);Je.unescapeValue;var Qe=we((function(e,t){var n;function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}t.__esModule=!0,t.default=void 0;var o=function(e){var t,n;function o(t){var n;return(n=e.call(this,t)||this).type=Me.UNIVERSAL,n.value=\"*\",n}return n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n),o}(((n=He)&&n.__esModule?n:{default:n}).default);t.default=o,e.exports=t.default}));_e(Qe);var $e=we((function(e,t){var n;function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}t.__esModule=!0,t.default=void 0;var o=function(e){var t,n;function o(t){var n;return(n=e.call(this,t)||this).type=Me.COMBINATOR,n}return n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n),o}(((n=Te)&&n.__esModule?n:{default:n}).default);t.default=o,e.exports=t.default}));_e($e);var Xe=we((function(e,t){var n;function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}t.__esModule=!0,t.default=void 0;var o=function(e){var t,n;function o(t){var n;return(n=e.call(this,t)||this).type=Me.NESTING,n.value=\"&\",n}return n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n),o}(((n=Te)&&n.__esModule?n:{default:n}).default);t.default=o,e.exports=t.default}));_e(Xe);var Ke=we((function(e,t){t.__esModule=!0,t.default=function(e){return e.sort((function(e,t){return e-t}))},e.exports=t.default}));_e(Ke);var et=we((function(e,t){t.__esModule=!0,t.combinator=t.word=t.comment=t.str=t.tab=t.newline=t.feed=t.cr=t.backslash=t.bang=t.slash=t.doubleQuote=t.singleQuote=t.space=t.greaterThan=t.pipe=t.equals=t.plus=t.caret=t.tilde=t.dollar=t.closeSquare=t.openSquare=t.closeParenthesis=t.openParenthesis=t.semicolon=t.colon=t.comma=t.at=t.asterisk=t.ampersand=void 0;t.ampersand=38;t.asterisk=42;t.at=64;t.comma=44;t.colon=58;t.semicolon=59;t.openParenthesis=40;t.closeParenthesis=41;t.openSquare=91;t.closeSquare=93;t.dollar=36;t.tilde=126;t.caret=94;t.plus=43;t.equals=61;t.pipe=124;t.greaterThan=62;t.space=32;t.singleQuote=39;t.doubleQuote=34;t.slash=47;t.bang=33;t.backslash=92;t.cr=13;t.feed=12;t.newline=10;t.tab=9;t.str=39;t.comment=-1;t.word=-2;t.combinator=-3}));_e(et);et.combinator,et.word,et.comment,et.str,et.tab,et.newline,et.feed,et.cr,et.backslash,et.bang,et.slash,et.doubleQuote,et.singleQuote,et.space,et.greaterThan,et.pipe,et.equals,et.plus,et.caret,et.tilde,et.dollar,et.closeSquare,et.openSquare,et.closeParenthesis,et.openParenthesis,et.semicolon,et.colon,et.comma,et.at,et.asterisk,et.ampersand;var tt=we((function(e,t){t.__esModule=!0,t.default=function(e){var t,n,r,i,s,a,u,c,d,h,f,p,g,v=[],m=e.css.valueOf(),y=m.length,b=-1,_=1,w=0,S=0;function I(t,n){if(!e.safe)throw e.error(\"Unclosed \"+t,_,w-b,w);d=(m+=n).length-1}for(;w<y;){switch((t=m.charCodeAt(w))===o.newline&&(b=w,_+=1),t){case o.space:case o.tab:case o.newline:case o.cr:case o.feed:d=w;do{d+=1,(t=m.charCodeAt(d))===o.newline&&(b=d,_+=1)}while(t===o.space||t===o.newline||t===o.tab||t===o.cr||t===o.feed);g=o.space,i=_,r=d-b-1,S=d;break;case o.plus:case o.greaterThan:case o.tilde:case o.pipe:d=w;do{d+=1,t=m.charCodeAt(d)}while(t===o.plus||t===o.greaterThan||t===o.tilde||t===o.pipe);g=o.combinator,i=_,r=w-b,S=d;break;case o.asterisk:case o.ampersand:case o.bang:case o.comma:case o.equals:case o.dollar:case o.caret:case o.openSquare:case o.closeSquare:case o.colon:case o.semicolon:case o.openParenthesis:case o.closeParenthesis:g=t,i=_,r=w-b,S=(d=w)+1;break;case o.singleQuote:case o.doubleQuote:p=t===o.singleQuote?\"'\":'\"',d=w;do{for(s=!1,-1===(d=m.indexOf(p,d+1))&&I(\"quote\",p),a=d;m.charCodeAt(a-1)===o.backslash;)a-=1,s=!s}while(s);g=o.str,i=_,r=w-b,S=d+1;break;default:t===o.slash&&m.charCodeAt(w+1)===o.asterisk?(0===(d=m.indexOf(\"*/\",w+2)+1)&&I(\"comment\",\"*/\"),n=m.slice(w,d+1),c=n.split(\"\\n\"),(u=c.length-1)>0?(h=_+u,f=d-c[u].length):(h=_,f=b),g=o.comment,_=h,i=h,r=d-f):t===o.slash?(g=t,i=_,r=w-b,S=(d=w)+1):(d=l(m,w),g=o.word,i=_,r=d-b),S=d+1}v.push([g,_,w-b,i,r,w,S]),f&&(b=f,f=null),w=S}return v},t.FIELDS=void 0;var n,r,o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!=typeof e&&\"function\"!=typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var s=r?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(n,o,s):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(et);function i(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}for(var s=((n={})[o.tab]=!0,n[o.newline]=!0,n[o.cr]=!0,n[o.feed]=!0,n),a=((r={})[o.space]=!0,r[o.tab]=!0,r[o.newline]=!0,r[o.cr]=!0,r[o.feed]=!0,r[o.ampersand]=!0,r[o.asterisk]=!0,r[o.bang]=!0,r[o.comma]=!0,r[o.colon]=!0,r[o.semicolon]=!0,r[o.openParenthesis]=!0,r[o.closeParenthesis]=!0,r[o.openSquare]=!0,r[o.closeSquare]=!0,r[o.singleQuote]=!0,r[o.doubleQuote]=!0,r[o.plus]=!0,r[o.pipe]=!0,r[o.tilde]=!0,r[o.greaterThan]=!0,r[o.equals]=!0,r[o.dollar]=!0,r[o.caret]=!0,r[o.slash]=!0,r),u={},c=0;c<\"0123456789abcdefABCDEF\".length;c++)u[\"0123456789abcdefABCDEF\".charCodeAt(c)]=!0;function l(e,t){var n,r=t;do{if(n=e.charCodeAt(r),a[n])return r-1;n===o.backslash?r=d(e,r)+1:r++}while(r<e.length);return r-1}function d(e,t){var n=t,r=e.charCodeAt(n+1);if(s[r]);else if(u[r]){var i=0;do{n++,i++,r=e.charCodeAt(n+1)}while(u[r]&&i<6);i<6&&r===o.space&&n++}else n++;return n}t.FIELDS={TYPE:0,START_LINE:1,START_COL:2,END_LINE:3,END_COL:4,START_POS:5,END_POS:6}}));_e(tt);tt.FIELDS;var nt=we((function(e,t){t.__esModule=!0,t.default=void 0;var n,r,o=S(xe),i=S(Pe),s=S(Ue),a=S(ze),u=S(qe),c=S(Ge),l=S(Ye),d=S(We),h=w(Je),f=S(Qe),p=S($e),g=S(Xe),v=S(Ke),m=w(tt),y=w(et),b=w(Me);function _(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return _=function(){return e},e}function w(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!=typeof e&&\"function\"!=typeof e)return{default:e};var t=_();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}function S(e){return e&&e.__esModule?e:{default:e}}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,r.key,r)}}var k=((n={})[y.space]=!0,n[y.cr]=!0,n[y.feed]=!0,n[y.newline]=!0,n[y.tab]=!0,n),E=Object.assign({},k,((r={})[y.comment]=!0,r));function C(e){return{line:e[m.FIELDS.START_LINE],column:e[m.FIELDS.START_COL]}}function O(e){return{line:e[m.FIELDS.END_LINE],column:e[m.FIELDS.END_COL]}}function N(e,t,n,r){return{start:{line:e,column:t},end:{line:n,column:r}}}function T(e){return N(e[m.FIELDS.START_LINE],e[m.FIELDS.START_COL],e[m.FIELDS.END_LINE],e[m.FIELDS.END_COL])}function M(e,t){if(e)return N(e[m.FIELDS.START_LINE],e[m.FIELDS.START_COL],t[m.FIELDS.END_LINE],t[m.FIELDS.END_COL])}function A(e,t){var n=e[t];if(\"string\"==typeof n)return-1!==n.indexOf(\"\\\\\")&&((0,Ne.ensureObject)(e,\"raws\"),e[t]=(0,Ne.unesc)(n),void 0===e.raws[t]&&(e.raws[t]=n)),e}function x(e,t){for(var n=-1,r=[];-1!==(n=e.indexOf(t,n+1));)r.push(n);return r}var P=function(){function e(e,t){void 0===t&&(t={}),this.rule=e,this.options=Object.assign({lossy:!1,safe:!1},t),this.position=0,this.css=\"string\"==typeof this.rule?this.rule:this.rule.selector,this.tokens=(0,m.default)({css:this.css,error:this._errorGenerator(),safe:this.options.safe});var n=M(this.tokens[0],this.tokens[this.tokens.length-1]);this.root=new o.default({source:n}),this.root.errorGenerator=this._errorGenerator();var r=new i.default({source:{start:{line:1,column:1}}});this.root.append(r),this.current=r,this.loop()}var t,n,r,_=e.prototype;return _._errorGenerator=function(){var e=this;return function(t,n){return\"string\"==typeof e.rule?new Error(t):e.rule.error(t,n)}},_.attribute=function(){var e=[],t=this.currToken;for(this.position++;this.position<this.tokens.length&&this.currToken[m.FIELDS.TYPE]!==y.closeSquare;)e.push(this.currToken),this.position++;if(this.currToken[m.FIELDS.TYPE]!==y.closeSquare)return this.expected(\"closing square bracket\",this.currToken[m.FIELDS.START_POS]);var n=e.length,r={source:N(t[1],t[2],this.currToken[3],this.currToken[4]),sourceIndex:t[m.FIELDS.START_POS]};if(1===n&&!~[y.word].indexOf(e[0][m.FIELDS.TYPE]))return this.expected(\"attribute\",e[0][m.FIELDS.START_POS]);for(var o=0,i=\"\",s=\"\",a=null,u=!1;o<n;){var c=e[o],l=this.content(c),d=e[o+1];switch(c[m.FIELDS.TYPE]){case y.space:if(u=!0,this.options.lossy)break;if(a){(0,Ne.ensureObject)(r,\"spaces\",a);var f=r.spaces[a].after||\"\";r.spaces[a].after=f+l;var p=(0,Ne.getProp)(r,\"raws\",\"spaces\",a,\"after\")||null;p&&(r.raws.spaces[a].after=p+l)}else i+=l,s+=l;break;case y.asterisk:if(d[m.FIELDS.TYPE]===y.equals)r.operator=l,a=\"operator\";else if((!r.namespace||\"namespace\"===a&&!u)&&d){i&&((0,Ne.ensureObject)(r,\"spaces\",\"attribute\"),r.spaces.attribute.before=i,i=\"\"),s&&((0,Ne.ensureObject)(r,\"raws\",\"spaces\",\"attribute\"),r.raws.spaces.attribute.before=i,s=\"\"),r.namespace=(r.namespace||\"\")+l,((0,Ne.getProp)(r,\"raws\",\"namespace\")||null)&&(r.raws.namespace+=l),a=\"namespace\"}u=!1;break;case y.dollar:if(\"value\"===a){var g=(0,Ne.getProp)(r,\"raws\",\"value\");r.value+=\"$\",g&&(r.raws.value=g+\"$\");break}case y.caret:d[m.FIELDS.TYPE]===y.equals&&(r.operator=l,a=\"operator\"),u=!1;break;case y.combinator:if(\"~\"===l&&d[m.FIELDS.TYPE]===y.equals&&(r.operator=l,a=\"operator\"),\"|\"!==l){u=!1;break}d[m.FIELDS.TYPE]===y.equals?(r.operator=l,a=\"operator\"):r.namespace||r.attribute||(r.namespace=!0),u=!1;break;case y.word:if(d&&\"|\"===this.content(d)&&e[o+2]&&e[o+2][m.FIELDS.TYPE]!==y.equals&&!r.operator&&!r.namespace)r.namespace=l,a=\"namespace\";else if(!r.attribute||\"attribute\"===a&&!u){i&&((0,Ne.ensureObject)(r,\"spaces\",\"attribute\"),r.spaces.attribute.before=i,i=\"\"),s&&((0,Ne.ensureObject)(r,\"raws\",\"spaces\",\"attribute\"),r.raws.spaces.attribute.before=s,s=\"\"),r.attribute=(r.attribute||\"\")+l,((0,Ne.getProp)(r,\"raws\",\"attribute\")||null)&&(r.raws.attribute+=l),a=\"attribute\"}else if(!r.value&&\"\"!==r.value||\"value\"===a&&!u){var v=(0,Ne.unesc)(l),b=(0,Ne.getProp)(r,\"raws\",\"value\")||\"\",_=r.value||\"\";r.value=_+v,r.quoteMark=null,(v!==l||b)&&((0,Ne.ensureObject)(r,\"raws\"),r.raws.value=(b||_)+l),a=\"value\"}else{var w=\"i\"===l||\"I\"===l;!r.value&&\"\"!==r.value||!r.quoteMark&&!u?(r.value||\"\"===r.value)&&(a=\"value\",r.value+=l,r.raws.value&&(r.raws.value+=l)):(r.insensitive=w,w&&\"I\"!==l||((0,Ne.ensureObject)(r,\"raws\"),r.raws.insensitiveFlag=l),a=\"insensitive\",i&&((0,Ne.ensureObject)(r,\"spaces\",\"insensitive\"),r.spaces.insensitive.before=i,i=\"\"),s&&((0,Ne.ensureObject)(r,\"raws\",\"spaces\",\"insensitive\"),r.raws.spaces.insensitive.before=s,s=\"\"))}u=!1;break;case y.str:if(!r.attribute||!r.operator)return this.error(\"Expected an attribute followed by an operator preceding the string.\",{index:c[m.FIELDS.START_POS]});var S=(0,h.unescapeValue)(l),I=S.unescaped,k=S.quoteMark;r.value=I,r.quoteMark=k,a=\"value\",(0,Ne.ensureObject)(r,\"raws\"),r.raws.value=l,u=!1;break;case y.equals:if(!r.attribute)return this.expected(\"attribute\",c[m.FIELDS.START_POS],l);if(r.value)return this.error('Unexpected \"=\" found; an operator was already defined.',{index:c[m.FIELDS.START_POS]});r.operator=r.operator?r.operator+l:l,a=\"operator\",u=!1;break;case y.comment:if(a)if(u||d&&d[m.FIELDS.TYPE]===y.space||\"insensitive\"===a){var E=(0,Ne.getProp)(r,\"spaces\",a,\"after\")||\"\",C=(0,Ne.getProp)(r,\"raws\",\"spaces\",a,\"after\")||E;(0,Ne.ensureObject)(r,\"raws\",\"spaces\",a),r.raws.spaces[a].after=C+l}else{var O=r[a]||\"\",T=(0,Ne.getProp)(r,\"raws\",a)||O;(0,Ne.ensureObject)(r,\"raws\"),r.raws[a]=T+l}else s+=l;break;default:return this.error('Unexpected \"'+l+'\" found.',{index:c[m.FIELDS.START_POS]})}o++}A(r,\"attribute\"),A(r,\"namespace\"),this.newNode(new h.default(r)),this.position++},_.parseWhitespaceEquivalentTokens=function(e){e<0&&(e=this.tokens.length);var t=this.position,n=[],r=\"\",o=void 0;do{if(k[this.currToken[m.FIELDS.TYPE]])this.options.lossy||(r+=this.content());else if(this.currToken[m.FIELDS.TYPE]===y.comment){var i={};r&&(i.before=r,r=\"\"),o=new a.default({value:this.content(),source:T(this.currToken),sourceIndex:this.currToken[m.FIELDS.START_POS],spaces:i}),n.push(o)}}while(++this.position<e);if(r)if(o)o.spaces.after=r;else if(!this.options.lossy){var s=this.tokens[t],u=this.tokens[this.position-1];n.push(new l.default({value:\"\",source:N(s[m.FIELDS.START_LINE],s[m.FIELDS.START_COL],u[m.FIELDS.END_LINE],u[m.FIELDS.END_COL]),sourceIndex:s[m.FIELDS.START_POS],spaces:{before:r,after:\"\"}}))}return n},_.convertWhitespaceNodesToSpace=function(e,t){var n=this;void 0===t&&(t=!1);var r=\"\",o=\"\";return e.forEach((function(e){var i=n.lossySpace(e.spaces.before,t),s=n.lossySpace(e.rawSpaceBefore,t);r+=i+n.lossySpace(e.spaces.after,t&&0===i.length),o+=i+e.value+n.lossySpace(e.rawSpaceAfter,t&&0===s.length)})),o===r&&(o=void 0),{space:r,rawSpace:o}},_.isNamedCombinator=function(e){return void 0===e&&(e=this.position),this.tokens[e+0]&&this.tokens[e+0][m.FIELDS.TYPE]===y.slash&&this.tokens[e+1]&&this.tokens[e+1][m.FIELDS.TYPE]===y.word&&this.tokens[e+2]&&this.tokens[e+2][m.FIELDS.TYPE]===y.slash},_.namedCombinator=function(){if(this.isNamedCombinator()){var e=this.content(this.tokens[this.position+1]),t=(0,Ne.unesc)(e).toLowerCase(),n={};t!==e&&(n.value=\"/\"+e+\"/\");var r=new p.default({value:\"/\"+t+\"/\",source:N(this.currToken[m.FIELDS.START_LINE],this.currToken[m.FIELDS.START_COL],this.tokens[this.position+2][m.FIELDS.END_LINE],this.tokens[this.position+2][m.FIELDS.END_COL]),sourceIndex:this.currToken[m.FIELDS.START_POS],raws:n});return this.position=this.position+3,r}this.unexpected()},_.combinator=function(){var e=this;if(\"|\"===this.content())return this.namespace();var t=this.locateNextMeaningfulToken(this.position);if(!(t<0||this.tokens[t][m.FIELDS.TYPE]===y.comma)){var n,r=this.currToken,o=void 0;if(t>this.position&&(o=this.parseWhitespaceEquivalentTokens(t)),this.isNamedCombinator()?n=this.namedCombinator():this.currToken[m.FIELDS.TYPE]===y.combinator?(n=new p.default({value:this.content(),source:T(this.currToken),sourceIndex:this.currToken[m.FIELDS.START_POS]}),this.position++):k[this.currToken[m.FIELDS.TYPE]]||o||this.unexpected(),n){if(o){var i=this.convertWhitespaceNodesToSpace(o),s=i.space,a=i.rawSpace;n.spaces.before=s,n.rawSpaceBefore=a}}else{var u=this.convertWhitespaceNodesToSpace(o,!0),c=u.space,l=u.rawSpace;l||(l=c);var d={},h={spaces:{}};c.endsWith(\" \")&&l.endsWith(\" \")?(d.before=c.slice(0,c.length-1),h.spaces.before=l.slice(0,l.length-1)):c.startsWith(\" \")&&l.startsWith(\" \")?(d.after=c.slice(1),h.spaces.after=l.slice(1)):h.value=l,n=new p.default({value:\" \",source:M(r,this.tokens[this.position-1]),sourceIndex:r[m.FIELDS.START_POS],spaces:d,raws:h})}return this.currToken&&this.currToken[m.FIELDS.TYPE]===y.space&&(n.spaces.after=this.optionalSpace(this.content()),this.position++),this.newNode(n)}var f=this.parseWhitespaceEquivalentTokens(t);if(f.length>0){var g=this.current.last;if(g){var v=this.convertWhitespaceNodesToSpace(f),b=v.space,_=v.rawSpace;void 0!==_&&(g.rawSpaceAfter+=_),g.spaces.after+=b}else f.forEach((function(t){return e.newNode(t)}))}},_.comma=function(){if(this.position===this.tokens.length-1)return this.root.trailingComma=!0,void this.position++;this.current._inferEndPosition();var e=new i.default({source:{start:C(this.tokens[this.position+1])}});this.current.parent.append(e),this.current=e,this.position++},_.comment=function(){var e=this.currToken;this.newNode(new a.default({value:this.content(),source:T(e),sourceIndex:e[m.FIELDS.START_POS]})),this.position++},_.error=function(e,t){throw this.root.error(e,t)},_.missingBackslash=function(){return this.error(\"Expected a backslash preceding the semicolon.\",{index:this.currToken[m.FIELDS.START_POS]})},_.missingParenthesis=function(){return this.expected(\"opening parenthesis\",this.currToken[m.FIELDS.START_POS])},_.missingSquareBracket=function(){return this.expected(\"opening square bracket\",this.currToken[m.FIELDS.START_POS])},_.unexpected=function(){return this.error(\"Unexpected '\"+this.content()+\"'. Escaping special characters with \\\\ may help.\",this.currToken[m.FIELDS.START_POS])},_.namespace=function(){var e=this.prevToken&&this.content(this.prevToken)||!0;return this.nextToken[m.FIELDS.TYPE]===y.word?(this.position++,this.word(e)):this.nextToken[m.FIELDS.TYPE]===y.asterisk?(this.position++,this.universal(e)):void 0},_.nesting=function(){if(this.nextToken&&\"|\"===this.content(this.nextToken))return void this.position++;var e=this.currToken;this.newNode(new g.default({value:this.content(),source:T(e),sourceIndex:e[m.FIELDS.START_POS]})),this.position++},_.parentheses=function(){var e=this.current.last,t=1;if(this.position++,e&&e.type===b.PSEUDO){var n=new i.default({source:{start:C(this.tokens[this.position-1])}}),r=this.current;for(e.append(n),this.current=n;this.position<this.tokens.length&&t;)this.currToken[m.FIELDS.TYPE]===y.openParenthesis&&t++,this.currToken[m.FIELDS.TYPE]===y.closeParenthesis&&t--,t?this.parse():(this.current.source.end=O(this.currToken),this.current.parent.source.end=O(this.currToken),this.position++);this.current=r}else{for(var o,s=this.currToken,a=\"(\";this.position<this.tokens.length&&t;)this.currToken[m.FIELDS.TYPE]===y.openParenthesis&&t++,this.currToken[m.FIELDS.TYPE]===y.closeParenthesis&&t--,o=this.currToken,a+=this.parseParenthesisToken(this.currToken),this.position++;e?e.appendToPropertyAndEscape(\"value\",a,a):this.newNode(new l.default({value:a,source:N(s[m.FIELDS.START_LINE],s[m.FIELDS.START_COL],o[m.FIELDS.END_LINE],o[m.FIELDS.END_COL]),sourceIndex:s[m.FIELDS.START_POS]}))}if(t)return this.expected(\"closing parenthesis\",this.currToken[m.FIELDS.START_POS])},_.pseudo=function(){for(var e=this,t=\"\",n=this.currToken;this.currToken&&this.currToken[m.FIELDS.TYPE]===y.colon;)t+=this.content(),this.position++;return this.currToken?this.currToken[m.FIELDS.TYPE]!==y.word?this.expected([\"pseudo-class\",\"pseudo-element\"],this.currToken[m.FIELDS.START_POS]):void this.splitWord(!1,(function(r,o){t+=r,e.newNode(new d.default({value:t,source:M(n,e.currToken),sourceIndex:n[m.FIELDS.START_POS]})),o>1&&e.nextToken&&e.nextToken[m.FIELDS.TYPE]===y.openParenthesis&&e.error(\"Misplaced parenthesis.\",{index:e.nextToken[m.FIELDS.START_POS]})})):this.expected([\"pseudo-class\",\"pseudo-element\"],this.position-1)},_.space=function(){var e=this.content();0===this.position||this.prevToken[m.FIELDS.TYPE]===y.comma||this.prevToken[m.FIELDS.TYPE]===y.openParenthesis||this.current.nodes.every((function(e){return\"comment\"===e.type}))?(this.spaces=this.optionalSpace(e),this.position++):this.position===this.tokens.length-1||this.nextToken[m.FIELDS.TYPE]===y.comma||this.nextToken[m.FIELDS.TYPE]===y.closeParenthesis?(this.current.last.spaces.after=this.optionalSpace(e),this.position++):this.combinator()},_.string=function(){var e=this.currToken;this.newNode(new l.default({value:this.content(),source:T(e),sourceIndex:e[m.FIELDS.START_POS]})),this.position++},_.universal=function(e){var t=this.nextToken;if(t&&\"|\"===this.content(t))return this.position++,this.namespace();var n=this.currToken;this.newNode(new f.default({value:this.content(),source:T(n),sourceIndex:n[m.FIELDS.START_POS]}),e),this.position++},_.splitWord=function(e,t){for(var n=this,r=this.nextToken,o=this.content();r&&~[y.dollar,y.caret,y.equals,y.word].indexOf(r[m.FIELDS.TYPE]);){this.position++;var i=this.content();if(o+=i,i.lastIndexOf(\"\\\\\")===i.length-1){var a=this.nextToken;a&&a[m.FIELDS.TYPE]===y.space&&(o+=this.requiredSpace(this.content(a)),this.position++)}r=this.nextToken}var l=x(o,\".\").filter((function(e){return\"\\\\\"!==o[e-1]})),d=x(o,\"#\").filter((function(e){return\"\\\\\"!==o[e-1]})),h=x(o,\"#{\");h.length&&(d=d.filter((function(e){return!~h.indexOf(e)})));var f=(0,v.default)(function(){var e=Array.prototype.concat.apply([],arguments);return e.filter((function(t,n){return n===e.indexOf(t)}))}([0].concat(l,d)));f.forEach((function(r,i){var a,h=f[i+1]||o.length,p=o.slice(r,h);if(0===i&&t)return t.call(n,p,f.length);var g=n.currToken,v=g[m.FIELDS.START_POS]+f[i],y=N(g[1],g[2]+r,g[3],g[2]+(h-1));if(~l.indexOf(r)){var b={value:p.slice(1),source:y,sourceIndex:v};a=new s.default(A(b,\"value\"))}else if(~d.indexOf(r)){var _={value:p.slice(1),source:y,sourceIndex:v};a=new u.default(A(_,\"value\"))}else{var w={value:p,source:y,sourceIndex:v};A(w,\"value\"),a=new c.default(w)}n.newNode(a,e),e=null})),this.position++},_.word=function(e){var t=this.nextToken;return t&&\"|\"===this.content(t)?(this.position++,this.namespace()):this.splitWord(e)},_.loop=function(){for(;this.position<this.tokens.length;)this.parse(!0);return this.current._inferEndPosition(),this.root},_.parse=function(e){switch(this.currToken[m.FIELDS.TYPE]){case y.space:this.space();break;case y.comment:this.comment();break;case y.openParenthesis:this.parentheses();break;case y.closeParenthesis:e&&this.missingParenthesis();break;case y.openSquare:this.attribute();break;case y.dollar:case y.caret:case y.equals:case y.word:this.word();break;case y.colon:this.pseudo();break;case y.comma:this.comma();break;case y.asterisk:this.universal();break;case y.ampersand:this.nesting();break;case y.slash:case y.combinator:this.combinator();break;case y.str:this.string();break;case y.closeSquare:this.missingSquareBracket();case y.semicolon:this.missingBackslash();default:this.unexpected()}},_.expected=function(e,t,n){if(Array.isArray(e)){var r=e.pop();e=e.join(\", \")+\" or \"+r}var o=/^[aeiou]/.test(e[0])?\"an\":\"a\";return n?this.error(\"Expected \"+o+\" \"+e+', found \"'+n+'\" instead.',{index:t}):this.error(\"Expected \"+o+\" \"+e+\".\",{index:t})},_.requiredSpace=function(e){return this.options.lossy?\" \":e},_.optionalSpace=function(e){return this.options.lossy?\"\":e},_.lossySpace=function(e,t){return this.options.lossy?t?\" \":\"\":e},_.parseParenthesisToken=function(e){var t=this.content(e);return e[m.FIELDS.TYPE]===y.space?this.requiredSpace(t):t},_.newNode=function(e,t){return t&&(/^ +$/.test(t)&&(this.options.lossy||(this.spaces=(this.spaces||\"\")+t),t=!0),e.namespace=t,A(e,\"namespace\")),this.spaces&&(e.spaces.before=this.spaces,this.spaces=\"\"),this.current.append(e)},_.content=function(e){return void 0===e&&(e=this.currToken),this.css.slice(e[m.FIELDS.START_POS],e[m.FIELDS.END_POS])},_.locateNextMeaningfulToken=function(e){void 0===e&&(e=this.position+1);for(var t=e;t<this.tokens.length;){if(!E[this.tokens[t][m.FIELDS.TYPE]])return t;t++}return-1},t=e,(n=[{key:\"currToken\",get:function(){return this.tokens[this.position]}},{key:\"nextToken\",get:function(){return this.tokens[this.position+1]}},{key:\"prevToken\",get:function(){return this.tokens[this.position-1]}}])&&I(t.prototype,n),r&&I(t,r),e}();t.default=P,e.exports=t.default}));_e(nt);var rt=we((function(e,t){t.__esModule=!0,t.default=void 0;var n,r=(n=nt)&&n.__esModule?n:{default:n};var o=function(){function e(e,t){this.func=e||function(){},this.funcRes=null,this.options=t}var t=e.prototype;return t._shouldUpdateSelector=function(e,t){return void 0===t&&(t={}),!1!==Object.assign({},this.options,t).updateSelector&&\"string\"!=typeof e},t._isLossy=function(e){return void 0===e&&(e={}),!1===Object.assign({},this.options,e).lossless},t._root=function(e,t){return void 0===t&&(t={}),new r.default(e,this._parseOptions(t)).root},t._parseOptions=function(e){return{lossy:this._isLossy(e)}},t._run=function(e,t){var n=this;return void 0===t&&(t={}),new Promise((function(r,o){try{var i=n._root(e,t);Promise.resolve(n.func(i)).then((function(r){var o=void 0;return n._shouldUpdateSelector(e,t)&&(o=i.toString(),e.selector=o),{transform:r,root:i,string:o}})).then(r,o)}catch(e){return void o(e)}}))},t._runSync=function(e,t){void 0===t&&(t={});var n=this._root(e,t),r=this.func(n);if(r&&\"function\"==typeof r.then)throw new Error(\"Selector processor returned a promise to a synchronous call.\");var o=void 0;return t.updateSelector&&\"string\"!=typeof e&&(o=n.toString(),e.selector=o),{transform:r,root:n,string:o}},t.ast=function(e,t){return this._run(e,t).then((function(e){return e.root}))},t.astSync=function(e,t){return this._runSync(e,t).root},t.transform=function(e,t){return this._run(e,t).then((function(e){return e.transform}))},t.transformSync=function(e,t){return this._runSync(e,t).transform},t.process=function(e,t){return this._run(e,t).then((function(e){return e.string||e.root.toString()}))},t.processSync=function(e,t){var n=this._runSync(e,t);return n.string||n.root.toString()},e}();t.default=o,e.exports=t.default}));_e(rt);var ot=we((function(e,t){t.__esModule=!0,t.universal=t.tag=t.string=t.selector=t.root=t.pseudo=t.nesting=t.id=t.comment=t.combinator=t.className=t.attribute=void 0;var n=p(Je),r=p(Ue),o=p($e),i=p(ze),s=p(qe),a=p(Xe),u=p(We),c=p(xe),l=p(Pe),d=p(Ye),h=p(Ge),f=p(Qe);function p(e){return e&&e.__esModule?e:{default:e}}t.attribute=function(e){return new n.default(e)};t.className=function(e){return new r.default(e)};t.combinator=function(e){return new o.default(e)};t.comment=function(e){return new i.default(e)};t.id=function(e){return new s.default(e)};t.nesting=function(e){return new a.default(e)};t.pseudo=function(e){return new u.default(e)};t.root=function(e){return new c.default(e)};t.selector=function(e){return new l.default(e)};t.string=function(e){return new d.default(e)};t.tag=function(e){return new h.default(e)};t.universal=function(e){return new f.default(e)}}));_e(ot);ot.universal,ot.tag,ot.string,ot.selector,ot.root,ot.pseudo,ot.nesting,ot.id,ot.comment,ot.combinator,ot.className,ot.attribute;var it=we((function(e,t){var n;t.__esModule=!0,t.isNode=o,t.isPseudoElement=y,t.isPseudoClass=function(e){return h(e)&&!y(e)},t.isContainer=function(e){return!(!o(e)||!e.walk)},t.isNamespace=function(e){return s(e)||v(e)},t.isUniversal=t.isTag=t.isString=t.isSelector=t.isRoot=t.isPseudo=t.isNesting=t.isIdentifier=t.isComment=t.isCombinator=t.isClassName=t.isAttribute=void 0;var r=((n={})[Me.ATTRIBUTE]=!0,n[Me.CLASS]=!0,n[Me.COMBINATOR]=!0,n[Me.COMMENT]=!0,n[Me.ID]=!0,n[Me.NESTING]=!0,n[Me.PSEUDO]=!0,n[Me.ROOT]=!0,n[Me.SELECTOR]=!0,n[Me.STRING]=!0,n[Me.TAG]=!0,n[Me.UNIVERSAL]=!0,n);function o(e){return\"object\"==typeof e&&r[e.type]}function i(e,t){return o(t)&&t.type===e}var s=i.bind(null,Me.ATTRIBUTE);t.isAttribute=s;var a=i.bind(null,Me.CLASS);t.isClassName=a;var u=i.bind(null,Me.COMBINATOR);t.isCombinator=u;var c=i.bind(null,Me.COMMENT);t.isComment=c;var l=i.bind(null,Me.ID);t.isIdentifier=l;var d=i.bind(null,Me.NESTING);t.isNesting=d;var h=i.bind(null,Me.PSEUDO);t.isPseudo=h;var f=i.bind(null,Me.ROOT);t.isRoot=f;var p=i.bind(null,Me.SELECTOR);t.isSelector=p;var g=i.bind(null,Me.STRING);t.isString=g;var v=i.bind(null,Me.TAG);t.isTag=v;var m=i.bind(null,Me.UNIVERSAL);function y(e){return h(e)&&e.value&&(e.value.startsWith(\"::\")||\":before\"===e.value.toLowerCase()||\":after\"===e.value.toLowerCase())}t.isUniversal=m}));_e(it);it.isNode,it.isPseudoElement,it.isPseudoClass,it.isContainer,it.isNamespace,it.isUniversal,it.isTag,it.isString,it.isSelector,it.isRoot,it.isPseudo,it.isNesting,it.isIdentifier,it.isComment,it.isCombinator,it.isClassName,it.isAttribute;var st=we((function(e,t){t.__esModule=!0,Object.keys(Me).forEach((function(e){\"default\"!==e&&\"__esModule\"!==e&&(e in t&&t[e]===Me[e]||(t[e]=Me[e]))})),Object.keys(ot).forEach((function(e){\"default\"!==e&&\"__esModule\"!==e&&(e in t&&t[e]===ot[e]||(t[e]=ot[e]))})),Object.keys(it).forEach((function(e){\"default\"!==e&&\"__esModule\"!==e&&(e in t&&t[e]===it[e]||(t[e]=it[e]))}))}));_e(st);var at,ut=_e(we((function(e,t){t.__esModule=!0,t.default=void 0;var n,r=(n=rt)&&n.__esModule?n:{default:n},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!=typeof e&&\"function\"!=typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var s=r?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(n,o,s):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(st);function i(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}var s=function(e){return new r.default(e)};Object.assign(s,o),delete s.__esModule;var a=s;t.default=a,e.exports=t.default})));function ct(e,t){var n=e.matches||e.webkitMatchesSelector;if(n)try{return n.call(e,t)}catch(e){}return!1}function lt(e){return function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}([],e,!0).sort((function(e,t){return dt(e)-dt(t)}))}function dt(e){return 1===e.matchingSelectors.length?ft(e.rule.selectorList.selectors[0].text):bt(e.matchingSelectors.map((function(t){return e.rule.selectorList.selectors[t].text})))}!function(e){e[e.ClassA=65536]=\"ClassA\",e[e.ClassB=256]=\"ClassB\",e[e.ClassC=1]=\"ClassC\"}(at||(at={}));var ht={};function ft(e){if(\"string\"==typeof e&&ht[e])return ht[e];var t,n=0;return\"string\"==typeof e&&ut((function(e){e.nodes&&e.nodes.length&&(t=e.nodes[0])})).process(e),t.nodes&&t.nodes.length&&t.nodes.forEach((function(e){n=yt(n,function(e){switch(e.type){case\"id\":return at.ClassA;case\"pseudo\":switch((e.value.match(/^:+(\\w+)/)||[])[1]){case\"is\":case\"match\":case\"not\":return bt(e.nodes);case\"where\":return 0;case\"nth-child\":case\"nth-last-child\":return yt(at.ClassB,e.nodes?bt(e.nodes):0);case\"before\":case\"after\":return at.ClassC}return at.ClassB;case\"class\":case\"attribute\":return at.ClassB;case\"tag\":return at.ClassC}return 0}(e))})),\"string\"==typeof e&&(ht[e]=n),n}var pt;function gt(e){return 16711680&e}function vt(e){return 65280&e}function mt(e){return 255&e}function yt(e,t){var n=e,r=gt(t);!function(e){return-16711681&e}(gt(n)+r)?n+=r:n=function(e){return 16711680|e}(n);var o=vt(t);!function(e){return-65281&e}(vt(n)+o)?n+=o:n=function(e){return 65280|e}(n);var i=mt(t);return!function(e){return-256&e}(mt(n)+i)?n+=i:n=function(e){return 255|e}(n),n}function bt(e){return Math.max.apply(Math,e.map((function(e){return ft(e)})))}function _t(e,t){var n;if(\"decl\"===e.type)n={disabled:!1,important:Boolean(e.important),name:e.prop,value:wt(e)};else if(\"comment\"===e.type){var r=void 0;try{var o=Ie.parse(e.text);o.first&&\"decl\"===o.first.type&&(r=o.first)}catch(e){}if(!r)return;n={disabled:!0,name:r.prop,value:wt(r)}}return n&&t&&(n.range={endColumn:e.source.end.column,endLine:e.source.end.line-1,startColumn:e.source.start.column-1,startLine:e.source.start.line-1},n.text=e.toString()),n}function wt(e){return e.important?\"\"+e.value+(e.raws.important||\" !important\"):e.value}function St(e,t){var n=e.nodes,r=void 0===n?[]:n,o=e.first,i=e.last,s=r[0],a=0;s&&s.raws.before&&(a=s.raws.before.split(\"\\n\").length-1);var u=[];r.forEach((function(e){var n=_t(e,t);n&&u.push(n)}));var c={cssProperties:u,shorthandEntries:[]};return t&&(c.styleSheetId=t,c.cssText=Ie.root({nodes:r,raws:{semicolon:e.raws.semicolon}}).toString(),c.range={endColumn:i?i.source.end.column:0,endLine:i?i.source.end.line-1:0,startColumn:a?0:o?o.source.start.column-1:0,startLine:o?o.source.start.line-1-a:0}),c}function It(e,t){var n;try{n=Ie.parse(e)}catch(e){return void console.warn(e)}var r=[];(n.nodes||[]).forEach((function(e){var n=_t(e,t);n&&r.push(n)}));var o={cssProperties:r,shorthandEntries:[]};return t&&(o.styleSheetId=t,o.cssText=e,o.range={endColumn:e.length,endLine:0,startColumn:0,startLine:0}),o}function kt(e,t,n,r){var o=[];return e.selectors.length>1?e.selectors.forEach((function(e,n){(r?r.test(e)&&ct(t,e.replace(r,\"\")):ct(t,e))&&o.push(n)})):o.push(0),{matchingSelectors:o,rule:{origin:\"regular\",selectorList:{selectors:e.selectors.map((function(t){return{range:n?{endColumn:e.source.start.column+e.selector.length-1,endLine:e.source.start.line-1,startColumn:e.source.start.column-1,startLine:e.source.start.line-1}:void 0,text:t}})),text:e.selector},style:St(e,n),styleSheetId:n}}}var Et,Ct=new Map,Ot=/::?before\\b/,Nt=/::?after\\b/;function Tt(){if(!Ct.size)for(var e=0,t=Array.from(document.styleSheets);e<t.length;e++){var n=t[e];if(!n.href&&n.ownerNode&&n.ownerNode.hasAttribute(\"data-page-path\"))try{var r=n.ownerNode.textContent,o=Ie.parse(r),i=\"1000.\"+Ct.size;Ct.set(i,{ownerNode:n.ownerNode,postCSSRoot:o,styleSheetId:i})}catch(e){console.warn(e)}}return Ct}function Mt(e){return Ct.get(e)}function At(e){var t=Ct.get(e).ownerNode;if(t)try{Ct.set(e,{ownerNode:t,postCSSRoot:Ie.parse(t.textContent),styleSheetId:e})}catch(n){Ct.set(e,{ownerNode:t,postCSSRoot:Ie.parse(\"\"),styleSheetId:e}),console.warn(n)}}function xt(e){var t=e.postCSSRoot,n=e.ownerNode,r=e.styleSheetId;return{disabled:!1,endColumn:t.last?t.last.source.end.column-1:0,endLine:t.last?t.last.source.end.line-1:0,frameId:\"MOCK_FRAME_ID\",isInline:!0,length:n.textContent.length,origin:\"regular\",sourceURL:\"\",startColumn:t.first?t.first.source.start.column-1:0,startLine:t.first?t.first.source.start.line-1:0,styleSheetId:r,title:\"\"}}function Pt(e){Tt().forEach((function(t,n){(t.postCSSRoot.nodes||[]).forEach((function(t){\"rule\"===t.type&&e(t,n)}))}))}function Rt(e){return It(e.getInlineStyle()||\"\",e.inlineStyleSheetId)}function Dt(e){Et||(Et=document.createElement(\"div\"));var t={};try{Et.innerHTML=\"<div \"+e+\"></div>\";for(var n=Et.firstChild.attributes,r=0,o=Array.from(n);r<o.length;r++){var i=o[r];t[i.name]=i.value}}catch(e){console.warn(e)}return t}function Lt(e,t,n){var r,o,i,s,a,u=Mt(e);if(u){var c;try{c=Ie.parse(n)}catch(e){return void console.warn(\"setStyleTexts4StyleSheet parse text error\",e)}var l=t.startLine,d=t.startColumn,h=((null===(o=null===(r=c.first)||void 0===r?void 0:r.raws)||void 0===o?void 0:o.before)||\"\").split(\"\\n\").length-1;h&&(l+=h,d=(null===(a=null===(s=null===(i=c.first)||void 0===i?void 0:i.source)||void 0===s?void 0:s.start)||void 0===a?void 0:a.column)||1);var f,p=u.postCSSRoot,g=u.ownerNode;return(p.nodes||[]).some((function(t,n){var r;if(\"rule\"!==t.type)return!1;var o=null===(r=t.first)||void 0===r?void 0:r.source;if(o&&o.start.line===l&&o.start.column===d){try{t.nodes=c.nodes,t.raws.semicolon=c.raws.semicolon,Bt(g,p.toString()),At(e);var i=(Mt(e)||{}).postCSSRoot;f=St(i.nodes[n],e)}catch(e){console.warn(e)}return!0}})),f}}function Bt(e,t){return Object.getOwnPropertyDescriptor(Node.prototype,\"textContent\").set.call(e,t)}function Ft(e){var t={matchedCSSRules:[],pseudoElements:[]},n=[],r=[],o=function(e){var t=e.node.getAttribute(\"style\");if(t)return It(t)}(e);o&&(t.inlineStyle=o);var i=e.node,s=function(e,o){var s=e.selector;ct(i,s)?t.matchedCSSRules.push(kt(e,i,o)):(Ot.test(s)&&ct(i,s.replace(Ot,\"\"))&&n.push(kt(e,i,o,Ot)),Nt.test(s)&&ct(i,s.replace(Nt,\"\"))&&r.push(kt(e,i,o,Nt)))};pt&&(pt.postCSSRoot.nodes||[]).forEach((function(e){\"rule\"===e.type&&s(e,void 0)})),Pt((function(e,t){s(e,t)}));try{t.matchedCSSRules=lt(t.matchedCSSRules),n.length&&t.pseudoElements.push({matches:lt(n),pseudoType:\"before\"}),r.length&&t.pseudoElements.push({matches:lt(r),pseudoType:\"after\"})}catch(e){}return t}var jt=Object.freeze({__proto__:null,enable:function(e,t,n){n(null,{})},getMatchedStylesForNode:function(e,t,n){var r=t.nodeId,o=e.nodeId2ZNode.get(r),i=e.nodeId2DOMNode.get(r),s=e.nodeId2PseudoElement.get(r),a={matchedCSSRules:[]};o&&o.nodeType===L.Element?a=function(e){var t={matchedCSSRules:[],pseudoElements:[]},n=[],r=[],o=Rt(e);if(o&&(t.inlineStyle=o),e.dom){var i=e.dom.node;Pt((function(e,o){var s=e.selector;ct(i,s)?t.matchedCSSRules.push(kt(e,i,o)):(Ot.test(s)&&ct(i,s.replace(Ot,\"\"))&&n.push(kt(e,i,o,Ot)),Nt.test(s)&&ct(i,s.replace(Nt,\"\"))&&r.push(kt(e,i,o,Nt)))}))}try{t.matchedCSSRules=lt(t.matchedCSSRules),n.length&&t.pseudoElements.push({matches:lt(n),pseudoType:\"before\"}),r.length&&t.pseudoElements.push({matches:lt(r),pseudoType:\"after\"})}catch(e){}return t}(o):i&&1===i.nodeType?a=Ft(i):s&&(a=function(e,t){var n={matchedCSSRules:[]},r=new RegExp(\"::?\"+t+\"\\\\b\");Pt((function(t,o){r.test(t.selector)&&ct(e,t.selector.replace(r,\"\"))&&n.matchedCSSRules.push(kt(t,e,o,r))}));try{n.matchedCSSRules=lt(n.matchedCSSRules)}catch(e){}return n}(s.root,s.pseudoType)),n(null,a)},setStyleTexts:function(e,t,n){var r=[];t.edits.forEach((function(t){var n=t.styleSheetId;if(0===n.indexOf(\"2000.\")){var o=Number(n.replace(\"2000.\",\"\")),i=e.nodeId2ZNode.get(o);if(i&&i.nodeType===L.Element){i.updateInlineStyle(t.text);var s=Rt(i);s&&r.push(s),e.getZRuntimeHelper().X(i.node,i.getLinkedContext(),i.getClassName()||\"\",!1,i.getInlineStyle(),!0,i.getProperties(),{},2),e.flushUpdatedQueue()}}else{t.range.startLine+=1,t.range.startColumn+=1;var a=Lt(n,t.range,t.text);a&&r.push(a)}})),n(null,{styles:r})},getComputedStyleForNode:function(e,t,n){var r,o=t.nodeId,i=e.nodeId2ZNode.get(o),s=e.nodeId2DOMNode.get(o),a=e.nodeId2PseudoElement.get(o),u=[];if(i&&i.nodeType===L.Element){var c=i.getPlatformRootDOM();c.nodeType===Node.ELEMENT_NODE&&(r=getComputedStyle(c))}else s&&1===s.nodeType?r=getComputedStyle(s.node):a&&(r=getComputedStyle(a.root,a.pseudoType));r&&(u=Array.from(r).map((function(e){return{name:e,value:r[e]}}))),n(null,{computedStyle:u})},getInlineStylesForNode:function(e,t,n){var r,o=t.nodeId,i=e.nodeId2ZNode.get(o);i&&i.nodeType===L.Element&&(r=Rt(i)),r?n(null,{inlineStyle:r}):n(-32e3)},getStyleSheetText:function(e,t,n){var r=\"\",o=Mt(t.styleSheetId);o&&(r=o.ownerNode.textContent),n(null,{text:r})}}),Ut=function(e,t,n){n(null,{nodeIds:t.backendNodeIds})},zt=function(e,t,n){var r=t.nodeId,o=e.nodeId2ZNode.get(r),i=e.shadowRootNodeId2ZNode.get(r),s=e.nodeId2DOMNode.get(r);if(o){var a=o.serialize(1);a.children&&e.sendMessage(\"DOM.setChildNodes\",{nodes:a.children,parentId:t.nodeId})}else if(i)if(i.nodeType===L.Element){var u=i.getShadowRootDebugNode().serialize(0);u&&e.sendMessage(\"DOM.setChildNodes\",{nodes:[u],parentId:r})}else e.sendMessage(\"DOM.setChildNodes\",{nodes:[],parentId:r});else if(s){var c=s.serialize(1);c.children&&e.sendMessage(\"DOM.setChildNodes\",{nodes:c.children,parentId:r})}n(null,{})};var qt=Object.freeze({__proto__:null,pushNodesByBackendIdsToFrontend:Ut,requestChildNodes:zt,enable:function(e,t,n){n(null,{})},getDocument:function(e,t,n){!function(e,t,n){e.resetZNodeActivatedState(),n(null,{root:e.getDocumentNode()})}(e,0,n),Tt().forEach((function(t){e.sendMessageWithPriority(\"CSS.styleSheetRemoved\",{styleSheetId:t.styleSheetId}),e.sendMessageWithPriority(\"CSS.styleSheetAdded\",{header:xt(t)});var n=t.ownerNode;Object.getOwnPropertyDescriptor(n,\"textContent\")||Object.defineProperty(n,\"textContent\",{get:function(){return function(e){return Object.getOwnPropertyDescriptor(Node.prototype,\"textContent\").get.call(e)}(n)},set:function(r){var o=Bt(n,r),i=t.styleSheetId;return e.sendMessage(\"CSS.styleSheetRemoved\",{styleSheetId:i}),At(i),e.sendMessage(\"CSS.styleSheetAdded\",{header:xt(t)}),o},configurable:!0})}))},markUndoableState:function(e,t,n){n(null,{})},setNodeName:function(e,t,n){n(-32e3)},setAttributesAsText:function(e,t,n){var r,o=t.nodeId,i=t.text,s=t.name,a=e.nodeId2ZNode.get(o);if(a&&a.nodeType===L.Element){var u=a,c=Dt(i),l=u.getClassName(),d=!1,h=u.getInlineStyle(),f=!1;if(\"class\"===s&&c.class!==l&&(l=c.class,d=!0,u.updateClassName(l)),\"style\"===s&&c.style!==h&&(h=c.style,f=!0,u.updateInlineStyle(h)),d||f)return e.getZRuntimeHelper().X(u.node,u.getLinkedContext(),l||\"\",d,h||\"\",f,u.getProperties(),{},3),void e.flushUpdatedQueue();if(0===s.indexOf(\"data-\")){var p=s.replace(\"data-\",\"\"),g=u.getDataset().get(p),v=c[s];switch(typeof g){case\"number\":isNaN(Number(v))||(v=Number(v));break;case\"boolean\":\"true\"===v?v=!0:\"false\"===v&&(v=!1)}if(v!==g){var m=((r={})[p]=v,r);a.node.updateDatasetPartial(m),u.updateDataset(m)}}u.invalidate()}n(null,{})},setNodeValue:function(e,t,n){var r=t.nodeId,o=t.value,i=e.nodeId2ZNode.get(r);if(i&&i.nodeType===L.Text)return i.dom.node.textContent=o,n(null,{}),void e.sendMessage(\"DOM.characterDataModified\",{characterData:o,nodeId:r});n(-32e3,{})}});var Ht=Object.freeze({__proto__:null,enable:function(e,t,n){n(null,{})},hideHighlight:function(e,t,n){e.getOverlayManager().hidehighlight(),n(null,{})},highlightNode:function(e,t,n){var r=t.nodeId,o=t.highlightConfig,i=t.selector,s=e.nodeId2ZNode.get(r),a=e.nodeId2DOMNode.get(r);if(i)n(null,{});else{if(s){if(s.nodeType===L.Element)(u=s.getPlatformRootDOM()).nodeType===Node.ELEMENT_NODE&&e.getOverlayManager().highlightNode(s.getPlatformRootDOM(),o);else if(s.nodeType===L.Component){var u,c=s.getChildNodes();if(1===c.length&&c[0].nodeType===L.Element)(u=c[0].getPlatformRootDOM()).nodeType===Node.ELEMENT_NODE&&e.getOverlayManager().highlightNode(u,o)}}else a?1===a.nodeType&&e.getOverlayManager().highlightNode(a.node,o):e.getOverlayManager().hidehighlight();n(null,{})}},setInspectMode:function(e,t,n){var r=t.mode,o=t.highlightConfig;\"none\"===r?e.getOverlayManager().leaveInspectMode():e.getOverlayManager().enterInspectMode(o),n(null,{})}}),Gt=function(e,t,n){var r=t.nodeId,o=e.nodeId2ZNode.get(r);if(o&&o.nodeType===L.Component)return e.activatedCustomComponentId=o.nodeId,void n(void 0,{data:ie(o.getData()).data,props:ie(o.getProps()).data});e.activatedCustomComponentId=void 0,n(void 0,{})},Yt=Object.freeze({__proto__:null,getComponentData:Gt}),Wt=Object.freeze({__proto__:null,Elements:Yt}),Zt=Object.freeze({__proto__:null,CSS:jt,DOM:qt,Overlay:Ht,Tiny:Wt});function Vt(e){var t,n,r,o,i;!function(e,t){e._handlers=Object.create(null),e._bind=t._bind,e.options=t,e.root=t.root||e,e.store=e.root.store||t.store}(this,e),this._state=Kt({},e.data),this._fragment=(t=this._state,{c:function(){n=Jt(\"div\"),r=Jt(\"div\"),o=Jt(\"div\"),i=Jt(\"div\"),this.h()},h:function(){Qt(i,\"background-color\",t.content.color),Qt(i,\"box-sizing\",\"border-box\"),Qt(i,\"height\",\"100%\"),Qt(i,\"width\",\"100%\"),Qt(o,\"border-color\",t.padding.color),Qt(o,\"border-bottom-width\",t.padding.bottom),Qt(o,\"border-left-width\",t.padding.left),Qt(o,\"border-right-width\",t.padding.right),Qt(o,\"border-top-width\",t.padding.top),Qt(o,\"border-style\",\"solid\"),Qt(o,\"box-sizing\",\"border-box\"),Qt(o,\"height\",\"100%\"),Qt(o,\"width\",\"100%\"),Qt(r,\"border-color\",t.border.color),Qt(r,\"border-bottom-width\",t.border.bottom),Qt(r,\"border-left-width\",t.border.left),Qt(r,\"border-right-width\",t.border.right),Qt(r,\"border-top-width\",t.border.top),Qt(r,\"border-style\",\"solid\"),Qt(r,\"box-sizing\",\"border-box\"),Qt(r,\"height\",t.rect.height),Qt(r,\"width\",t.rect.width),Qt(n,\"border-color\",t.margin.color),Qt(n,\"border-bottom-width\",t.margin.bottom),Qt(n,\"border-left-width\",t.margin.left),Qt(n,\"border-right-width\",t.margin.right),Qt(n,\"border-top-width\",t.margin.top),Qt(n,\"border-style\",\"solid\"),Qt(n,\"box-sizing\",\"border-box\"),Qt(n,\"left\",t.rect.left),Qt(n,\"position\",\"fixed\"),Qt(n,\"top\",t.rect.top),Qt(n,\"z-index\",\"99999\"),Qt(n,\"display\",t.show?\"block\":\"none\"),Qt(n,\"pointer-events\",\"none\")},m:function(e,t){!function(e,t,n){t.insertBefore(e,n)}(n,e,t),$t(r,n),$t(o,r),$t(i,o)},p:function(e,t){e.content&&Qt(i,\"background-color\",t.content.color),e.padding&&(Qt(o,\"border-color\",t.padding.color),Qt(o,\"border-bottom-width\",t.padding.bottom),Qt(o,\"border-left-width\",t.padding.left),Qt(o,\"border-right-width\",t.padding.right),Qt(o,\"border-top-width\",t.padding.top)),e.border&&(Qt(r,\"border-color\",t.border.color),Qt(r,\"border-bottom-width\",t.border.bottom),Qt(r,\"border-left-width\",t.border.left),Qt(r,\"border-right-width\",t.border.right),Qt(r,\"border-top-width\",t.border.top)),e.rect&&(Qt(r,\"height\",t.rect.height),Qt(r,\"width\",t.rect.width)),e.margin&&(Qt(n,\"border-color\",t.margin.color),Qt(n,\"border-bottom-width\",t.margin.bottom),Qt(n,\"border-left-width\",t.margin.left),Qt(n,\"border-right-width\",t.margin.right),Qt(n,\"border-top-width\",t.margin.top)),e.rect&&(Qt(n,\"left\",t.rect.left),Qt(n,\"top\",t.rect.top)),e.show&&Qt(n,\"display\",t.show?\"block\":\"none\")},u:function(){!function(e){e.parentNode.removeChild(e)}(n)},d:Xt}),e.target&&(this._fragment.c(),this._mount(e.target,e.anchor))}function Jt(e){return document.createElement(e)}function Qt(e,t,n){e.style.setProperty(t,n)}function $t(e,t){t.appendChild(e)}function Xt(){}function Kt(e,t){for(var n in t)e[n]=t[n];return e}function en(e){this.destroy=Xt,this.fire(\"destroy\"),this.set=this.get=Xt,!1!==e&&this._fragment.u(),this._fragment.d(),this._fragment=this._state=null}function tn(e){for(;e&&e.length;)e.shift()()}Kt(Vt.prototype,{destroy:en,get:function(e){return e?this._state[e]:this._state},fire:function(e,t){var n=e in this._handlers&&this._handlers[e].slice();if(!n)return;for(var r=0;r<n.length;r+=1){var o=n[r];o.__calling||(o.__calling=!0,o.call(this,t),o.__calling=!1)}},observe:function(e,t,n){var r=t.bind(this);n&&!1===n.init||r(this.get()[e],void 0);return this.on(n&&n.defer?\"update\":\"state\",(function(t){t.changed[e]&&r(t.current[e],t.previous&&t.previous[e])}))},on:function(e,t){if(\"teardown\"===e)return this.on(\"destroy\",t);var n=this._handlers[e]||(this._handlers[e]=[]);return n.push(t),{cancel:function(){var e=n.indexOf(t);~e&&n.splice(e,1)}}},set:function(e){if(this._set(Kt({},e)),this.root._lock)return;this.root._lock=!0,tn(this.root._beforecreate),tn(this.root._oncreate),tn(this.root._aftercreate),this.root._lock=!1},teardown:en,_set:function(e){var t=this._state,n={},r=!1;for(var o in e)this._differs(e[o],t[o])&&(n[o]=r=!0);if(!r)return;this._state=Kt(Kt({},t),e),this._recompute(n,this._state),this._bind&&this._bind(n,this._state);this._fragment&&(this.fire(\"state\",{changed:n,current:this._state,previous:t}),this._fragment.p(n,this._state),this.fire(\"update\",{changed:n,current:this._state,previous:t}))},_mount:function(e,t){this._fragment[this._fragment.i?\"i\":\"m\"](e,t||null)},_unmount:function(){this._fragment&&this._fragment.u()},_differs:function(e,t){return e!=e?t==t:e!==t||e&&\"object\"==typeof e||\"function\"==typeof e}}),Vt.prototype._recompute=Xt;var nn={borderColor:{r:255,g:229,b:153,a:.66},contentColor:{r:111,g:168,b:220,a:.66},marginColor:{r:246,g:178,b:107,a:.66},paddingColor:{r:147,g:196,b:125,a:.55}},rn=!1;function on(e){rn&&e.stopImmediatePropagation()}var sn=function(){function e(){this.inspectModeHighlightConfig=nn,this.hidehighlight=this.hidehighlight.bind(this),this.handleInspectMouseOver=Y(this.handleInspectMouseOver.bind(this),200,setTimeout,clearTimeout),this.handleInspectClick=this.handleInspectClick.bind(this)}return e.initGlobalEventListener=function(){window.addEventListener(\"mouseup\",on,!0),window.addEventListener(\"mousedown\",on,!0),window.addEventListener(\"touchstart\",on,!0),window.addEventListener(\"touchend\",on,!0)},e.prototype.highlightNode=function(e,t){void 0===t&&(t={});var n=e.getBoundingClientRect();if(n.height||n.width){var r=function(e){var t=window.getComputedStyle(e),n=function(e){return Number(e.slice(0,-2))<0?\"0px\":e};return{border:{bottom:t.borderBottomWidth,left:t.borderLeftWidth,right:t.borderRightWidth,top:t.borderTopWidth},boxSizing:t.boxSizing,margin:{bottom:n(t.marginBottom),left:n(t.marginLeft),right:n(t.marginRight),top:n(t.marginTop)},padding:{bottom:t.paddingBottom,left:t.paddingLeft,right:t.paddingRight,top:t.paddingTop}}}(e),o=function(e){return e?\"rgba(\"+e.r+\", \"+e.g+\", \"+e.b+\", \"+e.a+\")\":\"transparent\"},i={border:z(z({},r.border),{color:o(t.borderColor)}),content:{color:o(t.contentColor)},margin:z(z({},r.margin),{color:o(t.marginColor)}),padding:z(z({},r.padding),{color:o(t.paddingColor)}),rect:{height:n.height+\"px\",left:n.left-Number(r.margin.left.slice(0,-2))+\"px\",top:n.top-Number(r.margin.top.slice(0,-2))+\"px\",width:n.width+\"px\"},show:!0};this.overlayComponent?this.overlayComponent.set(i):this.overlayComponent=new Vt({data:i,target:document.body})}else this.hidehighlight()},e.prototype.hidehighlight=function(){this.overlayComponent&&this.overlayComponent.set({rect:{height:\"0px\",left:\"0px\",top:\"0px\",width:\"0px\"},show:!1})},e.prototype.enterInspectMode=function(e){e&&(this.inspectModeHighlightConfig=e),document.addEventListener(\"mouseover\",this.handleInspectMouseOver,!1),document.addEventListener(\"mouseout\",this.hidehighlight,!1),document.addEventListener(\"click\",this.handleInspectClick,!0),rn=!0},e.prototype.leaveInspectMode=function(){document.removeEventListener(\"mouseover\",this.handleInspectMouseOver,!1),document.removeEventListener(\"mouseout\",this.hidehighlight,!1),document.removeEventListener(\"click\",this.handleInspectClick,!0),rn=!1,this.inspectModeHighlightConfig=nn},e.prototype.handleInspectMouseOver=function(e){},e.prototype.handleInspectClick=function(e){},e}();var an,un=function(e){function t(){var n=e.call(this)||this;return t.initGlobalEventListener(),n}return U(t,e),t.prototype.bindBridge=function(e){this.bridge=e},t.prototype.handleInspectMouseOver=function(e){var t=this,n=e.target;if(n.nodeType===Node.ELEMENT_NODE){var r=n.__zInstance__;if(r){this.highlightNode(n,this.inspectModeHighlightConfig);var o=this.bridge.getZNodeDebugInfo(r);if(!o.activated){for(var i=[],s=o.getParentNode();s&&!s.activated;)i.unshift(s),s=s.getParentNode();s&&i.unshift(s),i.forEach((function(e){var n=e.serialize(1);n&&n.children&&t.bridge.sendMessage(\"DOM.setChildNodes\",{nodes:n.children,parentId:n.nodeId})}))}o.nodeId&&this.bridge.sendMessage(\"Overlay.nodeHighlightRequested\",{nodeId:o.nodeId})}}},t.prototype.handleInspectClick=function(e){e.stopPropagation(),this.hidehighlight(),this.leaveInspectMode();var t=e.target;if(t.nodeType===Node.ELEMENT_NODE){var n=t.__zInstance__;if(n){var r=this.bridge.getZNodeDebugInfo(n);this.bridge.sendMessage(\"Overlay.inspectNodeRequested\",{backendNodeId:r.nodeId})}}},t}(sn),cn=function(e){function t(t){var n=e.call(this,t)||this;return n.option.connection.onMessage((function(e,t,r){var o=e.split(\".\"),i=n.getMessageHandler(o);i?i(n,t,r):console.warn(\"unhandlered message:\"+e)})),n}return U(t,e),t.prototype.getOverlayManager=function(){return this.overlayManager||(this.overlayManager=new un,this.overlayManager.bindBridge(this)),this.overlayManager},t.prototype.enableShadowRootElements=function(){!function(){if(!pt){for(var e=document.head.querySelectorAll(\"link\"),t=\"\",n=0,r=Array.from(e);n<r.length;n++){var o=r[n];if(/af-appx\\.min\\.css$/.test(o.href)){t=o.href;break}}if(t){var i=new XMLHttpRequest;i.open(\"GET\",t),i.onload=function(){if(i.responseText)try{var e=Ie.parse(i.responseText);pt={ownerNode:null,postCSSRoot:e,styleSheetId:void 0}}catch(e){console.warn(e)}else console.warn(\"failed to request \"+t)},i.send()}else console.warn(\"failed to find af-appx.min.css link\")}}(),e.prototype.enableShadowRootElements.call(this)},t.prototype.getMessageHandler=function(e){for(var t=Zt,n=0,r=e;n<r.length;n++){if(!(t=t[r[n]]))break}return t},t}(ve);function ln(e,t,n){var r=new cn({clientProxy:e,connection:n,debugProxy:t,dependencyFactory:{createDOMElement:function(e,t,n,r,o){return new be(e,t,n,r,o)},createZNodeElement:function(e,t,n,r,o,i){return new ye(e,t,n,r,o,i)}}});return function(e){var t=e.getZRuntimeHelper();function n(t,n,r,o,i,s){var a=e.getZNodeDebugInfo(t);e.pageInstance||(e.pageInstance=n.root),a.nodeType===L.Element&&(a.setLinkedContext(n),r&&a.updateClassName(r),o&&a.updateInlineStyle(t.cachedNormalizedStyleString||o),a.updateProperties(i))}function r(t,n){var r=e.getZNodeDebugInfo(t);r.nodeType===L.Element&&(r.updateDataset(n),r.invalidate())}function o(t){var n=t._debug;if(n){if(n.activated&&e.sendMessage(\"DOM.childNodeRemoved\",{nodeId:n.nodeId,parentNodeId:n.getParentNodeId()}),e.nodeId2ZNode.delete(n.nodeId),e.nodeId2DOMNode.delete(n.nodeId),n.nodeType===L.Element){e.shadowRootNodeId2ZNode.delete(n.shadowRootNodeId);var r=n.pseudoNodeType2Id;r&&Object.keys(r).forEach((function(t){e.nodeId2PseudoElement.delete(r[t])}))}delete t._debug}}function i(t,n){var r=e.getZNodeDebugInfo(n),o=r.getParentNode();if(o.activated)if(o.childrenActivated){var i=r.getPreviousElementOrTextSibling();e.sendMessage(\"DOM.childNodeInserted\",{node:r.serialize(0),parentNodeId:o.nodeId,previousNodeId:i?i.nodeId:0})}else e.sendMessage(\"DOM.childNodeCountUpdated\",{childNodeCount:o.getChildNodeCount(),nodeId:o.nodeId})}if(re(t,\"x\",(function(e,t){n.apply(void 0,t)})),re(t,\"W\",(function(e,t){n.apply(void 0,t)})),re(t,\"X\",(function(t,n){var r=n[0],o=(n[1],n[2]),i=n[3],s=n[4],a=n[5],u=n[6],c=e.getZNodeDebugInfo(r);c.nodeType===L.Element&&(i&&c.updateClassName(o),a&&c.updateInlineStyle(r.cachedNormalizedStyleString||s),c.updateProperties(u),c.invalidate())})),re(t,\"y\",(function(t,n){var r=n[0],o=(n[1],n[2]),i=n[3],s=n[4],a=e.getZNodeDebugInfo(r);a.nodeType===L.Element&&(i&&a.updateClassName(o),a.updateProperties(s),a.invalidate())})),re(t,\"Y\",(function(t,n){var r=n[0],o=(n[1],n[2]),i=n[3],s=n[4],a=e.getZNodeDebugInfo(r);a.nodeType===L.Element&&(i&&a.updateInlineStyle(r.cachedNormalizedStyleString||o),a.updateProperties(s),a.invalidate())})),re(t,\"w\",(function(t,n){var r=n[0],o=(n[1],n[2]),i=e.getZNodeDebugInfo(r);i.nodeType===L.Element&&(i.updateProperties(o),i.invalidate())})),re(t,\"ea\",(function(t,n){var r=n[0],o=n[1],i=n[2],s=e.getZNodeDebugInfo(r);s.nodeType===L.Element&&(s.updateAttribute(o,i),s.invalidate())})),re(t,\"g\",(function(e,t){r.apply(void 0,t)})),re(t,\"Q\",(function(e,t){r.apply(void 0,t)})),re(t,\"G\",(function(e,t){r.apply(void 0,t)})),re(t,\"n\",(function(t,n){var r=n[0],o=n[1];if(r.firstChild){var i=r.firstChild._debug;i&&i.activated&&e.sendMessage(\"DOM.characterDataModified\",{characterData:o,nodeId:i.nodeId})}else{var s={destroy:function(){},eType:2,formattedText:null,nextSibling:null,parent:r,previousSibling:null,get root(){var e=this.parent.root;return function(e){return e&&\"childNodes\"in e}(e)?e.childNodes[0]:null},text:o};s.root&&(r.firstChild=r.lastChild=s)}})),re(t,\"N\",(function(t,n){var r=n[0],o=n[1],i=r._debug;i&&i.activated&&e.sendMessage(\"DOM.characterDataModified\",{characterData:o,nodeId:i.nodeId})})),oe(t,\"r\",(function(e){o(e[0])})),oe(t,\"R\",(function(e){o(e[0])})),re(t,\"i\",(function(e,t){t[0];i(0,t[1])})),re(t,\"a\",(function(e,t){t[0];i(0,t[1])})),re(t,\"I\",(function(e,t){t[0];i(0,t[1])})),re(t,\"A\",(function(e,t){t[0];i(0,t[1])})),re(t,\"t\",(function(t,n){var r=n[0];e.getZNodeDebugInfo(t).setLinkedContext(r)})),re(t,\"p\",(function(t,n){var r=n[0],o=n[1],i=n[2],s=r.getTargetId();if(e.componentTargetId2ZNode.has(s)){var a=e.componentTargetId2ZNode.get(s);a.activated&&(a.updateProperties(o,i),a.invalidate())}})),oe(t,\"m\",(function(t){var n=t[0],r=t[1],o=t[2];e.componentTargetId2LinkedInstance.set(n.targetId,n);var i=n.root.document.createComment(se(n.getTargetId()));n._anchor4Head=i,r.insertBefore(i,o)})),re(t,\"m\",(function(t,n){var r=n[0],o=n[1],i=n[2],s=r.root.document.createComment(ae(r.getTargetId()));r._anchor4Tail=s,o.insertBefore(s,i);var a=e.getZNodeComponentDebugInfo(r.getTargetId()),u=a.getParentNode();if(u&&u.activated)if(u.childrenActivated){var c=a.getPreviousElementOrTextSibling();e.sendMessage(\"DOM.childNodeInserted\",{node:a.serialize(0),parentNodeId:u.nodeId,previousNodeId:c?c.nodeId:0})}else e.sendMessage(\"DOM.childNodeCountUpdated\",{childNodeCount:u.getChildNodeCount(),nodeId:u.nodeId})})),oe(t,\"q\",(function(e){var t=e[0],n=e[1],r=te(t,n),o=r.root.textContent;\"b\"===o[0]&&(r.root.textContent=\"e\"+o.slice(1)),function(e,t){e.stopReverseIndex=t,e.stopReverseIndexStack.push(t)}(t,X(t,r)),n._anchor4Head=r})),re(t,\"q\",(function(t,n){var r=n[0],o=n[1],i=o.getTargetId();!function(e){e.stopReverseIndexStack.pop(),e.stopReverseIndex=e.stopReverseIndexStack[e.stopReverseIndexStack.length-1]||0}(r);var s=o._anchor4Head,a=o._anchor4Tail=te(r,o,s);s.root.textContent=se(i),a.root.textContent=ae(i),e.componentTargetId2LinkedInstance.set(i,o),e.componentTargetId2ZNode.delete(o.targetId)})),re(t,\"o\",(function(t,n){var r=n[0],o=r._anchor4Head;o&&(o.parent.removeChild(o),r._anchor4Head=null);var i=r._anchor4Tail;i&&(i.parent.removeChild(i),r._anchor4Tail=null);var s=e.componentTargetId2ZNode.get(r.targetId);s.activated&&e.sendMessage(\"DOM.childNodeRemoved\",{nodeId:s.nodeId,parentNodeId:s.getParentNodeId()}),e.componentTargetId2ZNode.delete(r.targetId),e.componentTargetId2LinkedInstance.delete(r.targetId)})),\"object\"==typeof $AppxHMRProxy&&\"function\"==typeof $AppxHMRProxy.applyUpdates){var s=$AppxHMRProxy.applyUpdates;$AppxHMRProxy.applyUpdates=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=s.apply($AppxHMRProxy,t);return setTimeout((function(){e.sendMessage(\"DOM.documentUpdated\",null)}),0),r}}}(r),r}!function(e){e[e.Element=1]=\"Element\",e[e.Text=2]=\"Text\",e[e.Component=3]=\"Component\"}(an||(an={}));\"undefined\"!=typeof ZEPHYR_HAS_INSIDE_FEATURE&&ZEPHYR_HAS_INSIDE_FEATURE,\"undefined\"!=typeof ZEPHYR_IS_INSIDE_UNSUPPORT_ELEMENT&&ZEPHYR_IS_INSIDE_UNSUPPORT_ELEMENT;var dn=function(){function e(e,t,n,r,o){this.bindLinkNode=o,this.updatingDiff=null,this.scopedBlocks=[],this.unscopedBlocks=[],this.disposing=!1,this.factory=e,this.currentData=t,this.slotProviderParentContextInstance=n,this.scopeId=r}return e.prototype.createBlockWithScope=function(e,t){var n,r,o=this.scopeId;return e&&o?(n=hn(e,this.currentData,o),(r=this.createBlock(this.slotProviderParentContextInstance,t,n,!0)).__scopeContext__=e):(n=this.currentData,r=this.createBlock(this.slotProviderParentContextInstance,t,n,!1)),r.bType=1,r},e.prototype.createBlockWithoutScope=function(e){var t=this.createBlock(this.slotProviderParentContextInstance,e,this.currentData,!1);return t.bType=1,t},e.prototype.updateBlockWithDynamicNameScopeAndFallback=function(e,t,n,r,o,i){if(t._name===e){var s=this.scopeId;if(n&&s){var a=hn(n,this.currentData,s),u=Object.create(this.updatingDiff);u[s]=!0,t.updateScopeContext(n),t.updateScopeAndFallbackContext(u,a,r,o)}else t.updateFallbackContext(r,o)}else{var c=void 0;c=n?this.createBlockWithScope(n,i):this.createBlockWithoutScope(i),t.updateDynamicNameAndFallbackContext(e,c,r,o)}return null},e.prototype.updateBlockWithScopeAndFallback=function(e,t,n,r){var o=this.scopeId;if(t&&o){var i=hn(t,this.currentData,o),s=Object.create(this.updatingDiff);s[o]=!0,e.updateScopeContext(t),e.updateScopeAndFallbackContext(s,i,n,r)}else e.updateFallbackContext(n,r)},e.prototype.updateBlockWithScope=function(e,t){var n=this.scopeId;if(t&&n){var r=hn(t,this.currentData,n),o=Object.create(this.updatingDiff);o[n]=!0,e.__scopeContext__=t,e.u(o,r)}},e.prototype.createBlock=function(e,t,n,r){var o,i,s=this.factory(e,n);return this.bindLinkNode&&(s=this.bindLinkNode(s,this)),s.d=this.destroyBlock.bind(this,s,s.d),r?(i=1,o=this.scopedBlocks.length,this.scopedBlocks.push(s)):(i=0,o=this.unscopedBlocks.length,this.unscopedBlocks.push(s)),s.__slotIndex__=o,s.__slotType__=i,s},e.prototype.destroyBlock=function(e,t,n){var r=e.__slotIndex__;if(r>=0){if(!this.disposing){var o=1===e.__slotType__?this.scopedBlocks:this.unscopedBlocks,i=o.length-1,s=o[i];s.__slotIndex__=r,o[r]=s,o.length=i}t.call(e,n),e.__slotIndex__=-1}},e}();function hn(e,t,n){var r=Object.create(t);return r[n]=e[0],e.length>1&&(r[n+\"d\"]=e[1],r[n+\"n\"]=e[2]),r}(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}M(t,e),t.prototype.exitProviderUpdating=function(){},t.prototype.enterProviderUpdating=function(e,t){this.currentData=t;for(var n=this.scopeId,r=0,o=this.unscopedBlocks;r<o.length;r++){(u=o[r]).u(e,t)}if(n&&this.scopedBlocks.length){var i=Object.create(e);i[n]=!1;for(var s=0,a=this.scopedBlocks;s<a.length;s++){var u,c=hn((u=a[s]).__scopeContext__,t,n);u.u(i,c)}}},t.prototype.destroyBlocks=function(e){if(this.disposing=!0,this.scopeId){for(var t=0,n=this.scopedBlocks;t<n.length;t++){n[t].d(e)}this.scopedBlocks=[]}for(var r=0,o=this.unscopedBlocks;r<o.length;r++){o[r].d(e)}this.unscopedBlocks=[]}})(dn),function(e){function t(){return null!==e&&e.apply(this,arguments)||this}M(t,e),t.prototype.enterProviderUpdating=function(e,t){this.updatingDiff=e,this.currentData=t;for(var n=this.scopeId,r=0,o=this.unscopedBlocks;r<o.length;r++){o[r].__slotUpdating__=!0}if(n&&this.scopedBlocks.length)for(var i=0,s=this.scopedBlocks;i<s.length;i++){s[i].__slotUpdating__=!0}},t.prototype.destroyBlocks=function(e){this.disposing=!0,this.scopeId&&(this.scopedBlocks=[]),this.unscopedBlocks=[]},t.prototype.exitProviderUpdating=function(){for(var e=this.updatingDiff,t=this.currentData,n=this.scopeId,r=0,o=this.unscopedBlocks;r<o.length;r++){(u=o[r]).__slotUpdating__&&(u.__slotUpdating__=!1,u.u(e,t))}if(n&&this.scopedBlocks.length){var i=Object.create(e);i[n]=!1;for(var s=0,a=this.scopedBlocks;s<a.length;s++){var u;if((u=a[s]).__slotUpdating__){u.__slotUpdating__=!1;var c=hn(u.__scopeContext__,t,n);u.u(i,c)}}}this.updatingDiff=null}}(dn);function fn(e,t){if(\"className\"===e)return[\"class\",String(t).trim()];if(\"function\"==typeof t){if(t.handleName)return[e,t.handleName]}else{if(null===t)return[e,\"null\"];if(void 0!==t){var n=\"unknown\";try{n=\"object\"==typeof t?Object.prototype.toString.call(t):t.toString()}catch(n){console.warn(\"failed to stringify node props value\",e,t)}return[e,n]}}return[]}function pn(e){var t=\"\";try{JSON.stringify(e).length>1e6&&(t=\"data is too large to display\")}catch(e){t=e.message||\"stringify error\"}return t?{data:{error:t}}:{data:e}}function gn(e){if(!e.treeTargetIds){for(var t=e,n=[];t;){t=t.previousSibling?t.previousSibling:t.parent;for(var r=0;t;){if(0===t.eType){if(\"e\"===t.root.textContent[0])r++;else if(\"b\"===t.root.textContent[0]){if(0===r){n.push({begin:t.root,targetId:parseInt(t.root.textContent.slice(2),10)});break}r--}}else{if(1===t.eType&&0===r){n.push.apply(n,gn(t)),t=null;break}if(2===t.eType&&0===r){n.push.apply(n,gn(t)),t=null;break}}t=t.previousSibling?t.previousSibling:t.parent}}n.length||n.push({begin:null,targetId:0}),e.treeTargetIds=n}return e.treeTargetIds}var vn,mn=function(){function e(e,t){this.devtool=e,this.node=t}return e.prototype.setParentNodeId=function(e){this.parentNodeId=e},e.prototype.getParentNodeId=function(){return this.parentNodeId||(this.parentNodeId=this.getParentNode().nodeId),this.parentNodeId},e.prototype.getPreviousElementOrTextSibling=function(){for(var e=this.node.previousSibling;e&&1!==e.eType&&2!==e.eType;){if(0===e.eType){if(\"b\"===e.root.textContent[0])return null;if(\"e\"===e.root.textContent[0])return this.devtool.getZNodeComponentDebugInfo(parseInt(e.root.textContent.slice(2),10))}e=e.previousSibling}return e?this.devtool.getZNodeDebugInfo(e):null},e.prototype.getParentNode=function(){var e=this.devtool.getZNodeDebugInfo(this.node.parent),t=gn(this.node);return gn(e.node)[0].targetId===t[0].targetId?e:this.devtool.getZNodeComponentDebugInfo(t[0].targetId)},e.prototype.setLinkedContext=function(e){this.linkedContext=e},e.prototype.getLinkedContext=function(){return this.linkedContext},e}();(function(e){function t(t,n,r,o,i,s){var a=e.call(this,t,r)||this;return a.devtool=t,a.nodeName=n,a.node=r,a.nodeId=o,a.shadowRootNodeId=i,a.shadowSlotNodeId=s,a.nodeType=an.Element,a.activated=!1,a.childrenActivated=!1,a.pendingAttributes=[],a.dataset=new Map,a.properties=new Map,a.attributes=new Map,a.inlineStyleSheetId=\"2000.\"+o,a}M(t,e),Object.defineProperty(t.prototype,\"dom\",{get:function(){return this.devtool.getDOMNodeDebugInfo(this.node.root,this,this.shadowRootNodeId)},enumerable:!1,configurable:!0}),t.prototype.getPlatformRootDOM=function(){return this.node.root},t.prototype.getShadowRootDebugNode=function(){var e=this.node.root;return this.devtool.getDOMNodeDebugInfo(e,this,this.shadowRootNodeId)},t.prototype.getClassName=function(){return this.attrClass},t.prototype.getInlineStyle=function(){return this.attrStyle},t.prototype.getDataset=function(){return this.dataset},t.prototype.updateClassName=function(e){var t=e||\"\";this.attrClass!==t&&(this.attrClass=t,this.activated&&this.pendingAttributes.push([\"class\",\"\"+t]))},t.prototype.updateInlineStyle=function(e){this.attrStyle!==e&&(this.attrStyle=e,this.activated&&this.pendingAttributes.push([\"style\",\"\"+e]))},t.prototype.invalidate=function(){var e=this;if(this.activated&&this.pendingAttributes.length){for(var t={},n=0,r=this.pendingAttributes;n<r.length;n++){var o=r[n],i=o[0],s=o[1];t[i]=s}Object.keys(t).forEach((function(n){e.onAttributeModifiedByEngine(n,t[n]),\"style\"===n&&e.node.setStyleInline(t[n])})),this.pendingAttributes=[],t={},this.devtool.enableShadowRootElements&&(this.devtool.flushUpdatedQueue(),this.dom&&this.dom.invalidate())}},t.prototype.getProperties=function(){var e={};return this.properties.forEach((function(t,n){e[n]=t})),e},t.prototype.updateProperties=function(e){if(e)for(var t=this.properties,n=0,r=Object.keys(e);n<r.length;n++){var o=r[n];e[o]!==t.get(o)&&(t.set(o,e[o]),this.activated&&this.pendingAttributes.push([o,\"\"+e[o]]))}},t.prototype.updateDataset=function(e){for(var t=this.dataset,n=0,r=Object.keys(e);n<r.length;n++){var o=r[n];e[o]!==t.get(o)&&(t.set(o,e[o]),this.activated&&this.pendingAttributes.push([\"data-\"+o,\"\"+e[o]]))}},t.prototype.updateAttribute=function(e,t){t!==this.attributes.get(e)&&(this.attributes.set(e,t),this.activated&&this.pendingAttributes.push([e,\"\"+t]))},t.prototype.getChildNodes=function(){return function(e,t,n){for(var r=[],o=e,i=null;o&&!t(o);){switch(o.eType){case 1:case 2:null===i&&r.push(n.getZNodeDebugInfo(o));break;case 0:var s=o.root.textContent;null===i&&\"b\"===s[0]?i=parseInt(s.slice(2),10):null!==i&&s===\"e:\"+i&&(r.push(n.getZNodeComponentDebugInfo(i)),i=null)}o=o.nextSibling}return r}(this.node.firstChild,(function(){return!1}),this.devtool)},t.prototype.serialize=function(e){this.activated=!0;var t,n=this.getChildNodes(),r=n.length;return e>0&&r&&(t=n.map((function(t){return t.serialize(e-1)}))),t||1!==r||n[0].nodeType!==an.Text||(t=[n[0].serialize(0)]),t&&t.length&&(this.childrenActivated=!0),{attributes:this.getAllAttributes(),backendNodeId:this.nodeId,childNodeCount:r,children:t,localName:this.nodeName.toLowerCase(),nodeId:this.nodeId,nodeName:this.nodeName,nodeType:1,nodeValue:\"\",parentId:this.getParentNodeId(),pseudoElements:this.getPseudoElements(),shadowRoots:this.devtool.shadowRootElementsEnabled?[{childNodeCount:1,localName:\"\",nodeId:this.shadowRootNodeId,nodeName:\"#document-fragment\",nodeType:11,nodeValue:\"\",shadowRootType:\"dom\"}]:void 0}},t.prototype.getAllAttributes=function(){var e=[];return this.attrClass&&e.push(\"class\",\"\"+this.attrClass),this.attrStyle&&e.push(\"style\",\"\"+this.attrStyle),this.properties.forEach((function(t,n){e.push(n,\"\"+t)})),this.attributes.forEach((function(t,n){e.push(n,\"\"+t)})),this.dataset.forEach((function(t,n){e.push(\"data-\"+n,\"\"+t)})),e},t.prototype.getChildNodeCount=function(){return this.getChildNodes().length},t.prototype.onAttributeModifiedByEngine=function(e,t){this.devtool.sendMessage(\"DOM.attributeModified\",{name:e,nodeId:this.nodeId,value:\"\"+t})},t.prototype.getPseudoElements=function(){return[]}})(mn),function(e){function t(t,n,r,o){var i=e.call(this,t,n)||this;return i.devtool=t,i.node=n,i.nodeId=r,i.shadowSlotNodeId=o,i.nodeType=an.Text,i.activated=!1,i.nodeName=\"#text\",i.dom=t.getDOMNodeDebugInfo(n.root,i),i}M(t,e),t.prototype.getPlatformRootDOM=function(){return this.node.root},t.prototype.serialize=function(e){return this.activated=!0,{backendNodeId:this.nodeId,childNodeCount:0,localName:\"\",nodeId:this.nodeId,nodeName:this.nodeName,nodeType:3,nodeValue:this.node.root.textContent,parentId:this.getParentNodeId()}}}(mn);function yn(e,t){for(var n=e.child;n&&(n.tag===vn.HostComponent||n.tag===vn.HostPortal||n.tag===vn.HostRoot);)n=n.child;n&&function(e){var t=[],n=e;for(;n;)t.push(n),n=n.sibling;return t}(n).forEach((function(e){Sn(e)?t(e):yn(e,t)}))}function bn(e){var t=_n(e);return/AppX\\(\\S+\\)/.test(t)||\"PageComponent\"===t}function _n(e){var t,n=e.type,r=\"\";return\"string\"==typeof n?r=n:n&&\"string\"==typeof n.displayName?(r=n.displayName,wn(e)&&(r=(null===(t=e.memoizedProps)||void 0===t?void 0:t.__tag)||r)):n&&\"string\"==typeof n.name&&(r=n.name),r||\"Anonymous\"}function wn(e){var t=e.tag,n=e.type;return(t===vn.ClassComponent||t===vn.FunctionComponent)&&!(!n||!n.isCustomComponent)}function Sn(e){return e.tag===vn.HostText||(!!bn(e)||!!wn(e))}function In(e){var t=e.tag;return t===vn.HostComponent||t===vn.HostText?e:e.child?In(e.child):void 0}function kn(e){var t=In(e);if(t)return t.stateNode}function En(e){for(var t=e.return;t;){if(Sn(t))return t;t=t.return}}function Cn(e){var t;return Boolean(e.__debug_serialized||(null===(t=e.alternate)||void 0===t?void 0:t.__debug_serialized))}function On(e){var t=r({},e);return delete t.$isCustomComponent,delete t.__tag,delete t.className,delete t.children,t.__owner&&t.__owner.pluginId&&delete t.__owner,t}function Nn(e){var t=[];if(e.memoizedProps){e.memoizedProps.className&&t.push.apply(t,fn(\"className\",e.memoizedProps.className));var n=On(e.memoizedProps);Object.keys(n).forEach((function(e){t.push.apply(t,fn(e,n[e]))}))}return t}function Tn(e,t){t.__debug_serialized=!0,t.alternate&&(t.alternate.__debug_serialized=!0);var n=e.getFiberId(e.getPrimaryFiber(t)),r=0;return t.return&&(r=e.getFiberId(e.getPrimaryFiber(t.return))),{backendNodeId:n,childNodeCount:0,localName:\"\",nodeId:n,nodeName:\"#text\",nodeType:3,nodeValue:t.stateNode.textContent,parentId:r}}function Mn(e,t,n){var r,o,i;void 0===n&&(n=0),t.__debug_serialized=!0,t.alternate&&(t.alternate.__debug_serialized=!0);var s=e.getFiberId(e.getPrimaryFiber(t)),a=_n(t);a=a.replace(/^AppX\\((\\S+)\\)$/,\"$1\");var u,c,l,d=0;if(yn(t,(function(t){if(c||(c=t),n>0){u||(u=[]);var r=An(e,t,n-1);r&&u.push(r)}d+=1})),!u&&1===d&&c&&c.tag===vn.HostText){u||(u=[]);var h=An(e,c,n-1);h&&u.push(h)}if(!d&&t.memoizedProps&&\"string\"==typeof t.memoizedProps.children){u||(u=[]);for(var f=t.child;f&&f.child;)f=f.child;if((null===(i=null===(o=null===(r=null==f?void 0:f.stateNode)||void 0===r?void 0:r.childNodes)||void 0===o?void 0:o[0])||void 0===i?void 0:i.nodeType)===Node.TEXT_NODE){var p=f.stateNode.childNodes[0],g={alternate:null,child:null,effectTag:0,key:null,memoizedProps:l=t.memoizedProps.children,memoizedState:null,pendingProps:l,return:null,sibling:null,stateNode:p,tag:vn.HostText,type:null};e.recordMount(g),u.push(Tn(e,g))}else console.warn(\"bugme failed to create a fiber-like text node, the parent is\",t)}u&&u.length&&(t.__debug_children_serialized=!0,t.alternate&&(t.alternate.__debug_children_serialized=!0));var v=0;return t.return&&(v=e.getFiberId(e.getPrimaryFiber(t.return))),{attributes:Nn(t),backendNodeId:s,childNodeCount:d,children:u,localName:a,nodeId:s,nodeName:a,nodeType:1,nodeValue:\"\",parentId:v,shadowRoots:void 0}}function An(e,t,n){var r;switch(void 0===n&&(n=0),t.tag){case vn.FunctionComponent:case vn.ClassComponent:case vn.HostComponent:r=Mn(e,t,n);break;case vn.HostText:r=Tn(e,t);break;default:console.debug(\"unhandled node type\",t.tag,t)}return r}!function(e){e[e.FunctionComponent=0]=\"FunctionComponent\",e[e.ClassComponent=1]=\"ClassComponent\",e[e.IndeterminateComponent=2]=\"IndeterminateComponent\",e[e.HostRoot=3]=\"HostRoot\",e[e.HostPortal=4]=\"HostPortal\",e[e.HostComponent=5]=\"HostComponent\",e[e.HostText=6]=\"HostText\",e[e.Fragment=7]=\"Fragment\",e[e.Mode=8]=\"Mode\",e[e.ContextConsumer=9]=\"ContextConsumer\",e[e.ContextProvider=10]=\"ContextProvider\",e[e.ForwardRef=11]=\"ForwardRef\",e[e.Profiler=12]=\"Profiler\",e[e.SuspenseComponent=13]=\"SuspenseComponent\",e[e.MemoComponent=14]=\"MemoComponent\",e[e.SimpleMemoComponent=15]=\"SimpleMemoComponent\",e[e.LazyComponent=16]=\"LazyComponent\",e[e.IncompleteClassComponent=17]=\"IncompleteClassComponent\"}(vn||(vn={}));var xn=Object.freeze({__proto__:null,enable:function(e,t,n){n(void 0,{})},markUndoableState:function(e,t,n){n(void 0,{})},setNodeName:function(e,t,n){n(-32e3)},pushNodesByBackendIdsToFrontend:function(e,t,n){n(void 0,{nodeIds:t.backendNodeIds})},requestChildNodes:function(e,t,n){var r=t.nodeId,o=e.getFiberNodeById(r);if(o){var i=An(e,o,1);i&&i.children&&e.sendMessage(\"DOM.setChildNodes\",{nodes:i.children,parentId:r})}else console.warn(\"requestChildNodes node not exists\",r);n(void 0,{})},getDocument:function(e,t,n){e.resetFiberSerializedState();var r=e.getPageComponent();if(r){var o=An(e,r,1);o.localName=o.nodeName=\"page\",o.attributes=[],n(void 0,{root:{backendNodeId:1,childNodeCount:1,children:[o],localName:\"\",nodeId:1,nodeName:\"#document\",nodeType:9,nodeValue:\"\"}})}else{n(void 0,{root:{backendNodeId:1,childNodeCount:1,children:[{attributes:[],backendNodeId:2,childNodeCount:0,localName:\"page-not-found\",nodeId:2,nodeName:\"page-not-found\",nodeType:1,nodeValue:\"\",parentId:1}],localName:\"\",nodeId:1,nodeName:\"#document\",nodeType:9,nodeValue:\"\"}})}Tt().forEach((function(t){e.sendMessageWithPriority(\"CSS.styleSheetRemoved\",{styleSheetId:t.styleSheetId}),e.sendMessageWithPriority(\"CSS.styleSheetAdded\",{header:xt(t)})}))},setAttributesAsText:function(e,t,n){var r=t.nodeId,o=t.text,i=t.name,s=e.getFiberNodeById(r);if(s&&s.memoizedProps){var a=Dt(o);if(\"class\"===i){if((h=In(s))&&h.stateNode&&h.stateNode.classList){var u=h.stateNode,c=h.memoizedProps.className||\"\";u.className=c;var l=s.memoizedProps.className||\"\";if(l)try{l.split(/\\s/).filter(Boolean).forEach((function(e){u.classList.remove(e)}))}catch(e){console.warn(\"setAttributesAsText remove class error, className=\"+l)}var d=a.class||\"\";d&&d.split(/\\s/).filter(Boolean).forEach((function(e){u.classList.add(e)})),e.sendMessage(\"DOM.attributeModified\",{name:i,nodeId:r,value:d})}}else if(\"style\"===i){var h;if((h=In(s))&&h.stateNode&&h.stateNode.nodeType===Node.ELEMENT_NODE)h.stateNode.setAttribute(i,a.style),e.sendMessage(\"DOM.attributeModified\",{name:i,nodeId:r,value:a.style})}}n(void 0,{})},setNodeValue:function(e,t,n){var r=t.nodeId,o=t.value,i=e.getFiberNodeById(r);if(i&&i.tag===vn.HostText)return i.stateNode.textContent=o,n(void 0,{}),void e.sendMessage(\"DOM.characterDataModified\",{characterData:o,nodeId:r});n(-32e3,{})}});function Pn(e,t){if(e&&bn(e)){var n=kn(e);if(n&&n.nodeType===Node.ELEMENT_NODE)return Rt({getInlineStyle:function(){return n.getAttribute(\"style\")||\"\"},inlineStyleSheetId:\"2000.\"+t})}}var Rn=Object.freeze({__proto__:null,enable:function(e,t,n){n(void 0,{})},getMatchedStylesForNode:function(e,t,n){var r=t.nodeId,o=e.getFiberNodeById(r),i={matchedCSSRules:[]};if(o&&bn(o)){var s=kn(o);if(s&&s.nodeType===Node.ELEMENT_NODE){Pt((function(e,t){ct(s,e.selector)&&i.matchedCSSRules.push(kt(e,s,t))}));var a=Pn(o,r);a&&(i.inlineStyle=a)}}if(i.matchedCSSRules.length)try{i.matchedCSSRules=lt(i.matchedCSSRules)}catch(e){}n(void 0,i)},setStyleTexts:function(e,t,n){var r=[];t.edits.forEach((function(t){var n=t.styleSheetId;if(0===n.indexOf(\"2000.\")){var o=Number(n.replace(\"2000.\",\"\")),i=e.getFiberNodeById(o);if(i){var s=kn(i);if(s&&s.nodeType===Node.ELEMENT_NODE){s.setAttribute(\"style\",t.text);var a=Pn(i,o);a&&r.push(a)}}}else{t.range.startLine+=1,t.range.startColumn+=1;var u=Lt(n,t.range,t.text);u&&r.push(u)}})),n(void 0,{styles:r})},getComputedStyleForNode:function(e,t,n){var r=t.nodeId,o=e.getFiberNodeById(r),i=[];if(o&&bn(o)){var s=kn(o);if(s&&s.nodeType===Node.ELEMENT_NODE){var a=getComputedStyle(s);i=Array.from(a).map((function(e){return{name:e,value:a[e]}}))}}n(void 0,{computedStyle:i})},getInlineStylesForNode:function(e,t,n){var r,o=t.nodeId,i=e.getFiberNodeById(o);if(i&&bn(i)){var s=kn(i);if(s&&s.nodeType===Node.ELEMENT_NODE){r={cssProperties:[],cssText:\"\",range:{endColumn:0,endLine:0,startColumn:0,startLine:0},shorthandEntries:[],styleSheetId:\"2000.\"+o};var a=Pn(i,o);a&&(r=a)}}r?n(void 0,{inlineStyle:r}):n(-32e3)},getStyleSheetText:function(e,t,n){var r=\"\",o=Mt(t.styleSheetId);o&&(r=o.ownerNode.textContent||\"\"),n(void 0,{text:r})}});var Dn=Object.freeze({__proto__:null,enable:function(e,t,n){n(void 0,{})},hideHighlight:function(e,t,n){e.getOverlayManager().hidehighlight(),n(void 0,{})},highlightNode:function(e,t,n){var r=t.nodeId,o=t.highlightConfig;if(t.selector)n(void 0,{});else{var i=e.getFiberNodeById(r);if(i){var s=kn(i);s&&s.nodeType===Node.ELEMENT_NODE&&e.getOverlayManager().highlightNode(s,o)}n(void 0,{})}},setInspectMode:function(e,t,n){var r=t.mode,o=t.highlightConfig;\"none\"===r?e.getOverlayManager().leaveInspectMode():e.getOverlayManager().enterInspectMode(o),n(void 0,{})}});var Ln=Object.freeze({__proto__:null,getComponentData:function(e,t,n){var r=t.nodeId,o=e.getFiberNodeById(r);o&&wn(o)?(e.activatedCustomComponentId=r,n(void 0,{data:pn(o.memoizedState&&o.memoizedState.data||{}).data,props:pn(On(o.memoizedProps||{})).data})):(e.activatedCustomComponentId=void 0,n(void 0,{}))}}),Bn=Object.freeze({__proto__:null,Elements:Ln}),Fn=Object.freeze({__proto__:null,DOM:xn,CSS:Rn,Overlay:Dn,Tiny:Bn});function jn(e,t){var n=t.current,r=n.alternate;if(r){var o=null!=r.memoizedState&&null!=r.memoizedState.element,i=null!=n.memoizedState&&null!=n.memoizedState.element;!o&&i?Hn(e,n):o&&i&&function e(t,n,r){if(Sn(n)){var o=r?t.getFiberId(r):0,i=t.getFiberId(n);if(r&&o&&!i){if(t.recordMount(n),Cn(r)&&(4==(4&n.effectTag)||1==(1&n.effectTag))){var s=t.activatedCustomComponentId===o;n.memoizedProps&&r.memoizedProps&&n.memoizedProps!==r.memoizedProps&&\"object\"==typeof n.memoizedProps&&Object.keys(n.memoizedProps).forEach((function(e){if(\"children\"!==e&&n.memoizedProps[e]!==r.memoizedProps[e]){var i=fn(e,n.memoizedProps[e]);2===i.length&&t.sendMessage(\"DOM.attributeModified\",{name:i[0],nodeId:o,value:i[1]}),s&&(Un||(Un=O(t.sendMessage.bind(t),500,setTimeout,clearTimeout)),Un(\"Tiny.Elements.componentDataChanged\",{nodeId:o,props:pn(On(n.memoizedProps||{})).data}))}})),s&&n.memoizedState&&r.memoizedState&&n.memoizedState.data!==r.memoizedState.data&&(Un||(Un=O(t.sendMessage.bind(t),500,setTimeout,clearTimeout)),Un(\"Tiny.Elements.componentDataChanged\",{nodeId:o,data:pn(n.memoizedState.data||{}).data}))}}else o||i||(Hn(t,n),qn.add(n))}var a=n.child;for(;a;)e(t,a,a.alternate),a=a.sibling}(e,n,r)}else Hn(e,n);!function(e){zn.forEach((function(t){var n=t.nodeId,r=t.parentNodeId;e.sendMessage(\"DOM.childNodeRemoved\",{nodeId:n,parentNodeId:r})})),zn.clear(),qn.forEach((function(t){var n=En(t);if(n&&Cn(n)){var r=e.getFiberId(n),o=0;if(yn(n,(function(){o+=1})),function(e){var t;return Boolean(e.__debug_children_serialized||(null===(t=e.alternate)||void 0===t?void 0:t.__debug_children_serialized))}(n)){var i=function(e){var t=En(e);if(!t)return null;var n=null,r=null;return yn(t,(function(t){t===e&&(r=n),n=t})),r}(t);e.sendMessage(\"DOM.childNodeInserted\",{node:An(e,t),parentNodeId:r,previousNodeId:i?e.getFiberId(i):0})}else e.sendMessage(\"DOM.childNodeCountUpdated\",{childNodeCount:o,nodeId:r})}})),qn.clear()}(e)}var Un,zn=new Set,qn=new Set;function Hn(e,t){Sn(t)&&e.recordMount(t);for(var n=t.child;n;)Hn(e,n),n=n.sibling}function Gn(e){var t;window.__REACT_DEVTOOLS_GLOBAL_HOOK__&&console.warn(\"bugme ReactDevtoolHook has been injected\");var n={},r={supportsFiber:!0,inject:function(e){if(t)throw new Error(\"FiberRender has been already injected\");return t=e,r.uniqueFiberRenderer=e,1},onCommitFiberRoot:function(t,n){var o=n.current,i=e.getFiberRoot()===n,s=null==o.memoizedState||null==o.memoizedState.element;i||s?i&&s&&e.setFiberRoot():e.setFiberRoot(n),r.wasCommited||(r.wasCommited=!0,r.emit(\"first-commit\"));try{jn(e,n)}catch(e){console.warn(e)}},onCommitFiberUnmount:function(t,n){try{!function(e,t){Sn(t)&&(Array.from(zn).some((function(e){if(function(e,t){for(var n=t.return;n;){if(n===e)return!0;n=n.return}return!1}(e.node,t))return!0}))||zn.add({node:t,nodeId:e.getFiberId(t),parentNodeId:e.getFiberId(En(t))}))}(e,n)}catch(e){console.warn(e)}},wasCommited:!1,on:function(e,t){n[e]||(n[e]=[]),n[e].push(t)},off:function(e,t){var r=n[e];if(r){var o=r.indexOf(t);-1!==o&&r.splice(o,1),r.length||delete n[e]}},emit:function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var o=n[e];o&&o.forEach((function(e){e.apply(void 0,t)}))}};window.__REACT_DEVTOOLS_GLOBAL_HOOK__=r}var Yn=function(e){function n(){var t,n=e.call(this)||this;return n.fiberRenderer=null===(t=window.__REACT_DEVTOOLS_GLOBAL_HOOK__)||void 0===t?void 0:t.uniqueFiberRenderer,n}return t(n,e),n.prototype.bindBridge=function(e){this.bridge=e},n.prototype.handleInspectMouseOver=function(e){var t=this,n=e.target;if(this.fiberRenderer&&n.nodeType===Node.ELEMENT_NODE){var r=this.fiberRenderer.findFiberByHostInstance(n);if(r){var o=En(r);if(o){if(!this.bridge.getFiberId(o)&&this.bridge.getFiberId(o.alternate)&&(o=o.alternate),this.highlightNode(n,this.inspectModeHighlightConfig),!Cn(o)){for(var i=[],s=En(o);s&&!Cn(s);)i.unshift(s),s=En(s);s&&i.unshift(s),i.forEach((function(e){var n=An(t.bridge,e,1);n&&n.children&&t.bridge.sendMessage(\"DOM.setChildNodes\",{nodes:n.children,parentId:n.nodeId})}))}var a=this.bridge.getFiberId(this.bridge.getPrimaryFiber(o));a&&this.bridge.sendMessage(\"Overlay.nodeHighlightRequested\",{nodeId:a})}}}},n.prototype.handleInspectClick=function(e){e.stopPropagation(),this.hidehighlight(),this.leaveInspectMode();var t=e.target;if(this.fiberRenderer&&t.nodeType===Node.ELEMENT_NODE){var n=this.fiberRenderer.findFiberByHostInstance(t);if(n){var r=En(n);if(r){var o=this.bridge.getFiberId(this.bridge.getPrimaryFiber(r));o&&this.bridge.sendMessage(\"Overlay.inspectNodeRequested\",{backendNodeId:o})}}}},n}(sn),Wn=2;var Zn,Vn,Jn,Qn,$n,Xn=function(){function e(e){var t=this;this.connection=e,this.fiberToIdMap=new Map,this.idToFiberMap=new Map,this.connection.onMessage((function(e,n,r){for(var o=e.split(\".\"),i=Fn,s=0,a=o;s<a.length;s++){if(!(i=i[a[s]]))break}i?i(t,n,r):console.warn(\"unhandled protocol\",e)})),Gn(this)}return e.prototype.setFiberRoot=function(e){this.uniqueFiberRoot=e},e.prototype.getFiberRoot=function(){return this.uniqueFiberRoot},e.prototype.sendMessage=function(e,t){this.connection.sendSocketMessage(JSON.stringify({method:e,params:t}))},e.prototype.sendMessageWithPriority=function(e,t){this.connection.sendSocketMessage(JSON.stringify({method:e,params:t}),!0)},e.prototype.getPageComponent=function(){if(!this.uniqueFiberRoot)return null;for(var e=this.uniqueFiberRoot.current;e&&(!e.type||\"PageComponent\"!==e.type.displayName);)e=e.child;return e},e.prototype.recordMount=function(e){if(!this.getFiberId(e)){var t=e.alternate;if(t&&this.fiberToIdMap.has(t)){var n=this.fiberToIdMap.get(t);return this.fiberToIdMap.delete(t),this.fiberToIdMap.set(e,n),void this.idToFiberMap.set(n,e)}var r=Wn++;this.fiberToIdMap.set(e,r),this.idToFiberMap.set(r,e)}},e.prototype.recordUnMount=function(e){},e.prototype.getFiberId=function(e){return this.fiberToIdMap.get(e)||0},e.prototype.getPrimaryFiber=function(e){if(this.fiberToIdMap.has(e))return e;var t=e.alternate;return t&&this.fiberToIdMap.has(t)?t:e},e.prototype.getFiberNodeById=function(e){return this.idToFiberMap.get(e)},e.prototype.resetFiberSerializedState=function(){this.idToFiberMap.forEach((function(e){e.__debug_serialized=!1,e.__debug_children_serialized&&(e.__debug_children_serialized=!1),e.alternate&&(e.alternate.__debug_serialized=!1,e.alternate.__debug_children_serialized&&(e.alternate.__debug_children_serialized=!1))}))},e.prototype.getOverlayManager=function(){return this.overlayManager||(this.overlayManager=new Yn,this.overlayManager.bindBridge(this)),this.overlayManager},e}();function Kn(){Jn=new F,$n=new Xn(Jn),function(){o(this,void 0,void 0,(function(){var e;return i(this,(function(t){switch(t.label){case 0:return[4,b()];case 1:return t.sent(),C(window.AlipayJSBridge.startupParams||{})?[2]:(Vn=String(window.APVIEWID),Zn=w(),(e=S(Zn,Vn))?(Jn.setUrl(e),(Qn=new B(Jn,Zn,Vn)).setup(),Qn.resetAxmlVisitedState=function(){$n&&$n.resetFiberSerializedState()},[2]):[2])}}))}))}(),Yn.initGlobalEventListener()}var er,tr,nr,rr,or,ir,sr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return M(t,e),t.prototype.setupWithClientProxy=function(t){this.clientProxy=t,e.prototype.setup.call(this)},t.prototype.startDebugSession=function(){var t=this;if(e.prototype.startDebugSession.call(this),this.clientProxy.platform.renderMountCommited)this.checkHostBeforeAgentConnect();else{var n=this.clientProxy.platform.afterRenderMountCommit;this.clientProxy.platform.afterRenderMountCommit=function(){n.call(t.clientProxy.platform),t.checkHostBeforeAgentConnect()}}},t}(y),ar=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.messageBeforeHandler=[],t.isActive=!0,t.onCloseHandlerSet=new Set,t}return M(t,e),Object.defineProperty(t.prototype,\"isActivated\",{get:function(){return this.isActive},enumerable:!1,configurable:!0}),t.prototype.sendMessage=function(e,t,n){this.sendSocketMessage(JSON.stringify({method:e,params:t}),n)},t.prototype.onMessage=function(e){var t=this;this.devtoolHandler=e,this.messageBeforeHandler.length&&(this.messageBeforeHandler.forEach((function(e){t.handleMessage(e)})),this.messageBeforeHandler=[])},t.prototype.sendSocketMessage=function(t,n){(this.isActive||n)&&e.prototype.sendSocketMessage.call(this,t)},t.prototype.activate=function(){this.isActive=!0},t.prototype.inActivate=function(){this.isActive=!1},t.prototype.addOnCloseHandler=function(e){this.onCloseHandlerSet.add(e)},t.prototype.onSocketMessage=function(e){\"HOST:LEAVE\"!==e||k()?this.devtoolHandler?this.handleMessage(e):this.messageBeforeHandler.push(e):E()},t.prototype.onSocketClose=function(){e.prototype.onSocketClose.call(this),this.onCloseHandlerSet.forEach((function(e){try{e()}catch(e){console.warn(e)}}))},t.prototype.handleMessage=function(e){var t,n=this;try{t=JSON.parse(e)}catch(t){return void console.warn(\"invalid json message: \",e)}t.sessionId||(t.method?this.devtoolHandler(t.method,t.params,(function(e,r){e?n.sendSocketMessage(JSON.stringify({id:t.id,error:{code:e,message:\"\"+e}}),!0):n.sendSocketMessage(JSON.stringify({id:t.id,result:r}),!0)})):console.warn(\"invalid message: \",e))},t}(D);function ur(){nr=new ar,window.__APPXNG_DEVTOOL_HOOK__={init:cr,connection:nr}}function cr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return or=e[0],ir=ln.apply(null,e),lr(),ir}function lr(){var e;return A(this,void 0,void 0,(function(){var t;return x(this,(function(n){switch(n.label){case 0:return[4,b()];case 1:return n.sent(),tr=String(window.APVIEWID),er=w(),(t=S(er,tr))?(nr.setUrl(t),(rr=new sr(nr,er,tr)).setupWithClientProxy(or),rr.resetAxmlVisitedState=function(){ir&&ir.resetZNodeActivatedState()},ir&&window.AlipayJSBridge&&function(e){return!0===e||\"yes\"===e||\"YES\"===e}(null===(e=window.AlipayJSBridge.startupParams)||void 0===e?void 0:e.devtoolShadowRootEnabled)&&ir.enableShadowRootElements(),[2]):[2]}}))}))}try{window.__BUGME_ON__||(window.__BUGME_ON__=!0,function(){if(\"undefined\"!=typeof AlipayJSBridge&&AlipayJSBridge.startupParams){var e=C(AlipayJSBridge.startupParams);e?ur():Kn(),console.debug(\"[DEBUG] uniweb - isNg: \"+e)}else ur(),Kn(),console.debug(\"[DEBUG] uniweb - concurrent\")}())}catch(e){console.error(e)}}();\n</script>","bugmeRPreview":"","bugmeWRemote":"!function(){\"use strict\";var EWorkerAppEvent,EBugmePanelId;!function(e){e.PageResume=\"pageResume\",e.PagePause=\"pagePause\",e.DebugPanelClick=\"tinyRemoteDebugPanelButtonClick\",e.DebugConsole=\"onTinyDebugConsole\",e.DebugNetworkRequest=\"tinyAppRemoteDebug_network_request\",e.DebugNetworkResponse=\"tinyAppRemoteDebug_network_response\",e.DebugNetworkError=\"tinyAppRemoteDebug_network_error\",e.DebugStorageChanged=\"tinyAppRemoteDebug_storage\",e.MessageFromVConsole=\"onMessageFromVConsole\"}(EWorkerAppEvent||(EWorkerAppEvent={})),function(e){e.Data=\"data\",e.Storage=\"storage\",e.AppLog=\"applog\"}(EBugmePanelId||(EBugmePanelId={}));var counter=Date.now()%1e9;function WeakSet$1(e){this.name=\"__st\"+(1e9*Math.random()>>>0)+counter+++\"__\",e&&e.forEach&&e.forEach(this.add,this)}var proto=WeakSet$1.prototype;proto.add=function(e){var t=this.name;return e[t]||Object.defineProperty(e,t,{value:!0,writable:!0}),this},proto.delete=function(e){return!!e[this.name]&&(e[this.name]=void 0,!0)},proto.has=function(e){return!!e[this.name]};var weakset=WeakSet$1,workerGlobal=self;function noop(){}var DEBUG_TAG=\"[DEBUG]\";function error(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];console.error.apply(console,[DEBUG_TAG].concat(e))}var debug=noop,originImportScripts=workerGlobal.importScripts,isAppXImportHooked=!1,appxLoadedCallbacks=[];function runAfterAppx(e){void 0!==workerGlobal.AFAppX?e():(appxLoadedCallbacks.push(e),isAppXImportHooked||(isAppXImportHooked=!0,workerGlobal.importScripts=function(e){originImportScripts(e),/af-appx\\.worker\\.min\\.js$/.test(e)&&(appxLoadedCallbacks.forEach((function(e){return e()})),appxLoadedCallbacks=[])}))}function runAfterAppXBridgeReady(e){if(\"undefined\"==typeof AFAppX&&workerGlobal.AFAppX&&(AFAppX=workerGlobal.AFAppX),\"undefined\"==typeof $AppxFramework)e();else if(AFAppX.Plugin){var t=AFAppX.Plugin;AFAppX.Plugin=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var o=n[0];if(\"object\"==typeof o&&o.run){var a=o.run;o.run=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e(),a.apply(o,t)}}return t.apply(AFAppX,n)}}else if($AppxFramework.bootstrapInAppContextByProtocol){var n=$AppxFramework.bootstrapInAppContextByProtocol;$AppxFramework.bootstrapInAppContextByProtocol=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var o=t[0];if(\"object\"==typeof o){var a=o.callback;if(a&&(o.callback=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e(),a.apply(this,t)}),o.pageInfo){var i=o.pageInfo.init;i&&(o.pageInfo.init=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e(),i.apply(this,t)})}}return n.apply($AppxFramework,t)}}}function getStartupParams(){return workerGlobal.__appxStartupParams&&\"appId\"in workerGlobal.__appxStartupParams?workerGlobal.__appxStartupParams:workerGlobal.AFAppX&&workerGlobal.AFAppX.bridge&&workerGlobal.AFAppX.bridge.callSync&&workerGlobal.AFAppX.bridge.callSync(\"getStartupParams\")||{}}function guardSingleMsgSize(e){var t=\"string\"==typeof e?e:JSON.stringify(e);return t.length>5e6?void debug(\"abort send websocket message due to size:\",t.length):t}function createWeakSet(){return\"undefined\"==typeof WeakSet?new weakset:new WeakSet}var getCircularReplacer=function(){var e=createWeakSet();return function(t,n){if(\"object\"==typeof n&&null!==n)try{if(e.has(n))return;e.add(n)}catch(e){console.error(e)}return n}};function circularJSONStringify(e){return JSON.stringify(e,getCircularReplacer())}function throttle(e,t,n,r,o){var a,i,s=null,c=0;o||(o={});var p=function(){c=!1===o.leading?0:Date.now(),s=null,i=e.apply(null,a),a=null};return function(){for(var u=[],l=0;l<arguments.length;l++)u[l]=arguments[l];var g=Date.now();c||!1!==o.leading||(c=g);var f=t-(g-c);return a=u,f<=0||f>t?(r(s),s=null,c=g,i=e.apply(null,a),a=null):s||!1===o.trailing||(s=n(p,f)),i}}var weakElementKey=\"__weak_set_key__yek_tes_kaew__\",weakSetKey=1,WeakSetKlass;function getWeakSetPolyfillConstructor(){return function(){function e(){this.elementKey=weakElementKey+weakSetKey++}return e.prototype.has=function(e){return 1===e[this.elementKey]},e.prototype.add=function(e){return e[this.elementKey]=1,this},e.prototype.delete=function(e){e[this.elementKey]=null},e}()}function getWeakMapConstructorMayBePolyfill(){var e=\"undefined\"!=typeof WeakSet;WeakSetKlass=e?WeakSet:getWeakSetPolyfillConstructor()}function createWeakSet$1(){return WeakSetKlass||getWeakMapConstructorMayBePolyfill(),new WeakSetKlass}var extendStatics=function(e,t){return(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function __extends(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Class extends value \"+String(t)+\" is not a constructor or null\");function n(){this.constructor=e}extendStatics(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var __assign=function(){return(__assign=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},InterceptContext=function(){function e(e,t){var n=this;this.interceptors=e,this.callback=t,this.nextRequestId=1e5,this.notifyDataChange=throttle((function(){n.callback({ext:{origin:\"data\"},method:\"Tiny.Data.dataChanged\"})}),300,setTimeout,clearTimeout)}return e.prototype.getNextRequestId=function(){return++this.nextRequestId},e}(),getCircularReplacer$1=function(){var e=createWeakSet$1();return function(t,n){if(\"object\"==typeof n&&null!==n){if(e.has(n))return;e.add(n)}return n}};function circularJSONStringify$1(e){return JSON.stringify(e,getCircularReplacer$1())}var precisionTimestampBasis=0;function resetPrecisionTimestampBasis(){precisionTimestampBasis=1e3*Date.now()-getPrecisionTimestamp()}var getPrecisionTimestamp=\"object\"==typeof performance&&performance&&\"function\"==typeof performance.now?function(){return 1e3*performance.now()+precisionTimestampBasis}:function(){return 1e3*Date.now()};function interceptLifecycle(e){e.interceptors.appLifecycleManagerInterceptor.before(\"performLifeHook\",(function(t,n){var r={aTime:getPrecisionTimestamp()/1e3,args:n,context:circularJSONStringify$1(normalizeAppLifecycleManagerThisContext(t))};onAppLifecycle(e,r)})),e.interceptors.pageLifecycleManagerInterceptor.before(\"performLifeHook\",(function(t,n){var r={aTime:getPrecisionTimestamp()/1e3,args:n,context:circularJSONStringify$1(normalizePageLifecycleManagerThisContext(t))};onPageLifecycle(e,r)}))}function onAppLifecycle(e,t){try{var n={ext:{origin:\"applog\"},method:\"MiniAppLog.\"+t.args[0],params:t};e.callback(n)}catch(e){}}function normalizeAppLifecycleManagerThisContext(e){var t=e.app;return{app:{appInstanceId:t.appInstanceId,initTime:t.initTime,launchOptions:t.getLaunchOptions(),launchTime:t.launchTime},state:e.state}}function onPageLifecycle(e,t){try{var n=getLifecycleName(t.args[0]);if(!n)return;var r={ext:{origin:\"applog\"},method:\"MiniAppLog.\"+n,params:t};e.callback(r),\"onPageShow\"===n&&e.notifyDataChange()}catch(e){}}function getLifecycleName(e){var t;switch(e){case 0:t=\"onPageLoad\";break;case 2:t=\"onPageReady\";break;case 1:t=\"onPageShow\";break;case 3:t=\"onPageHide\";break;case 4:t=\"onPageUnload\"}return t}function normalizePageLifecycleManagerThisContext(e){var t=e.page;return{page:{initTime:t.initTime,loadTime:t.loadTime,pageId:t.pageId,pagePath:t.pagePath,plugin:t.plugin},state:e.state}}function interceptJSAPI(e){e.interceptors.bridgeSyncCallContextMethodInterceptor.all(\"invoke\",(function(t,n){var r=e.getNextRequestId(),o=getPrecisionTimestamp()/1e3;return onApiSyncCall(e,{context:t,args:n,reqId:r,aTime:o}),[[r,o],n]}),(function(t,n,r,o){var a=n[0],i=a[0],s=a[1],c=n[1],p=getPrecisionTimestamp()/1e3;onApiSyncCallback(e,{context:t,args:c,reqId:i,result:r,bTime:p,aTime:s})})),e.interceptors.bridgeAsyncCallContextMethodInterceptor.before(\"invoke\",(function(t,n){var r=e.getNextRequestId(),o=getPrecisionTimestamp()/1e3;return t.__reqId=r,onApiCall(e,{context:t,args:n,reqId:r,aTime:o}),\"rpc\"===t.apiName&&(t.option.getResponse||(t.$$rpcGetResponseToTrue=!0,t.option=__assign(__assign({},t.option),{getResponse:!0}))),n})),e.interceptors.bridgeAsyncCallContextMethodInterceptor.before(\"dispatchResultCallback\",(function(t,n){var r=t.__reqId,o=getPrecisionTimestamp()/1e3;return onApiCallback(e,{context:t,args:n,reqId:r,bTime:o}),\"rpc\"===t.apiName&&t.$$rpcGetResponseToTrue&&void 0!==n[0].resData?[n[0].resData]:n}))}function onApiSyncCallback(e,t){try{var n={ext:{origin:\"applog\"},method:\"MiniAppLog.onApiSyncCallback\",params:minimizeApiHookInfo(t)};e.callback(n)}catch(e){}}function onApiSyncCall(e,t){try{var n={ext:{origin:\"applog\"},method:\"MiniAppLog.onApiSyncCall\",params:minimizeApiHookInfo(t)};e.callback(n)}catch(e){}}function onApiCall(e,t){try{var n={ext:{origin:\"applog\"},method:\"MiniAppLog.onApiCall\",params:minimizeApiHookInfo(t)};e.callback(n)}catch(e){}}function onApiCallback(e,t){try{var n={ext:{origin:\"applog\"},method:\"MiniAppLog.onApiCallback\",params:minimizeApiHookInfo(t)};e.callback(n)}catch(e){}}function minimizeApiHookInfo(e){if(e.context){var t=e.context,n=t.apiName,r=t.extraInfo,o=t.isMiniExtension,a=t.option,i=t.startTime,s=t.taskId,c=t.__reqId;return __assign(__assign({},e),{context:{__reqId:c,apiName:n,extraInfo:r,isMiniExtension:o,option:a,startTime:i,taskId:s}})}return e}var originalError=console.error;function interceptError(e){e.interceptors.appBaseInstanceInterceptor.after(\"reportError\",(function(e,t){t[0];onError({code:t[1],formatted:t[2]})}))}function onError(e){var t=new Error(e.formatted.message);t.stack=e.formatted.stack,setTimeout(originalError.bind(console,t),0)}function interceptSetData(e){e.interceptors.pageFlexibleLogicInstanceMethodInterceptor.all(\"setData\",(function(t,n){var r=e.getNextRequestId(),o=getPrecisionTimestamp()/1e3,a={aTime:o,args:n,context:circularJSONStringify$1(normalizePageLogicInstanceThisContext(t)),reqId:r};return onSetData(e,a),[[r,o],n]}),(function(t,n,r,o){var a=n[0],i=a[0],s=a[1],c=n[1],p=getPrecisionTimestamp()/1e3;onSetDataCallback(e,{aTime:s,args:c,bTime:p,context:circularJSONStringify$1(normalizePageLogicInstanceThisContext(t)),reqId:i})})),e.interceptors.componentFlexibleLogicInstanceMethodInterceptor.all(\"setData\",(function(t,n){var r=e.getNextRequestId(),o=getPrecisionTimestamp()/1e3;return onSetData(e,{aTime:o,args:n,context:circularJSONStringify$1(normalizeComponentLogicInstanceThisContext(t)),reqId:r}),[[r,o],n]}),(function(t,n,r,o){var a=n[0],i=a[0],s=a[1],c=n[1],p=getPrecisionTimestamp()/1e3;onSetDataCallback(e,{aTime:s,args:c,bTime:p,context:circularJSONStringify$1(normalizeComponentLogicInstanceThisContext(t)),reqId:i})}))}function onSetData(e,t){try{e.notifyDataChange();var n={ext:{origin:\"applog\"},method:\"MiniAppLog.onSetData\",params:minimizeSetDataInfo(t)};e.callback(n)}catch(e){}}function onSetDataCallback(e,t){try{var n={ext:{origin:\"applog\"},method:\"MiniAppLog.onSetDataCallback\",params:t};e.callback(n)}catch(e){}}function minimizeSetDataInfo(e){return e.context?e:{componentIs:e.component?e.component.is:void 0,isPage:e.isPage,option:e.options,pagePath:e.isPage?e.page.route:e.component.$page.route}}function normalizePageLogicInstanceThisContext(e){var t=e.page;return{page:{appInstanceId:t.appInstanceId,initTime:t.initTime,loadTime:t.loadTime},pageId:e.pageId,pagePath:e.pagePath}}function normalizeComponentLogicInstanceThisContext(e){var t=e.page;return{componentPath:e.componentPath,page:{appInstanceId:t.appInstanceId,initTime:t.initTime,loadTime:t.loadTime},pageId:t.pageId,pagePath:t.pagePath}}function setup(e,t,n){resetPrecisionTimestampBasis();var r=new InterceptContext(t,n);interceptSetData(r),interceptLifecycle(r),interceptJSAPI(r),interceptError(r)}var AgentContext=function(){this.channelConfigKey=\"0\",this.silentMode=!1,this.userAgent=\"undefined\"!=typeof navigator?navigator.swuserAgent||navigator.userAgent:\"\",this.isIOS=/iPhone|iPad|iOS/i.test(this.userAgent),this.isLyra=/LyraVM/i.test(this.userAgent),this.startupParams=getStartupParams(),this.channelId=this.startupParams.channelId||\"\",this.channel=this.startupParams.channel||\"\",(this.isLyra||this.startupParams.__bugmeSlientMode)&&(this.silentMode=!0),this.startupParams.remoteCh&&(this.channelConfigKey=String(this.startupParams.remoteCh))},NetworkCollection=function(){function e(){this.records=new Map}return e.prototype.setRequest=function(e,t){this.records.set(e,__assign(__assign({},this.records.get(e)||{}),t))},e.prototype.getRequest=function(e){return this.records.get(e)},e.prototype.removeRequest=function(e){this.records.has(e)&&this.records.delete(e)},e}();function createProtocol4RequestWillBeSent(e){var t=(e.method||\"GET\").toUpperCase(),n=mapValueToString(e.headers),r=getTimestamp();return{method:\"Network.requestWillBeSent\",params:{documentURL:\"\",loaderId:\"\",requestId:e.requestId,request:{method:t,url:e.url,headers:n,postData:e.postBody,mixedContentType:\"none\",initialPriority:\"High\",isLinkPreload:!1,referrerPolicy:\"origin\"},wallTime:r,initiator:{type:\"script\"},timestamp:r,type:\"XHR\"}}}function createProtocol4ResponseReceived(e,t){var n=e.profile,r=e.headers,o=n&&n.totalTime,a=getTimestamp(),i=a-(o?n.totalTime-n.Waiting-n.domainLookup-n.connect-n.SSLconnection:0)/1e3;return{method:\"Network.responseReceived\",params:{requestId:e.requestId,loaderId:\"\",type:\"XHR\",timestamp:i,response:{url:t.url||\"\",status:Number(e.status),headers:mapValueToString(r),requestHeaders:t.requestHeaders,connectionReused:!1,connectionId:1e3,encodedDataLength:0,securityState:\"unknown\",statusText:\"\",protocol:\"\",mimeType:r[\"Content-Type\"]||r[\"content-type\"],timing:o?createResourceTiming(n,a-n.totalTime/1e3):void 0}}}}function createProtocol4LoadingFinished(e){return{method:\"Network.loadingFinished\",params:{requestId:e.requestId,timestamp:getTimestamp(),encodedDataLength:0}}}function createProtocol4LoadingFailed(e){return{method:\"Networkw.loadingFailed\",params:{canceled:!1,errorText:e.errorMsg||\"\",requestId:e.requestId,timestamp:getTimestamp(),type:\"XHR\"}}}function mapValueToString(e){if(!e||\"object\"!=typeof e)return{};var t={};return Object.keys(e).forEach((function(n){t[n]=\"\"+e[n]})),t}function getTimestamp(){return Date.now()/1e3}function createResourceTiming(e,t){var n=e.domainLookup,r=e.connect,o=e.SSLconnection,a=n+r+o;return{requestTime:t,dnsStart:n?1e-4:-1,dnsEnd:n?n:-1,connectStart:n||-1,connectEnd:a||-1,sslStart:a-o||-1,sslEnd:a||-1,sendStart:a?-1:1e-4,sendEnd:a?-1:1e-4,receiveHeadersEnd:a+e.Waiting,proxyStart:-1,proxyEnd:-1,workerStart:-1,workerReady:-1,workerFetchStart:-1,workerRespondWithSettled:-1,pushStart:0,pushEnd:0}}var MAX_QUEUE_SIZE=1e8,MessageQueue=function(){function e(e){void 0===e&&(e=[]),this._messageQueue=e,this._queueSize=0,this.isApplogEnabled=!1}return e.prototype.push=function(e){this._queueSize;var t=guardSingleMsgSize(e);null!=t&&(this._messageQueue.push(t),this._queueSize+=t.length)},e.prototype.sendQueuedMessages=function(){if(0!==this._messageQueue.length){var e=getInjector().getWorkerSocket();e&&(this._messageQueue.forEach((function(t){return e.send(t)})),this._messageQueue=[],this._queueSize=0)}},e.prototype.setApplogEnabled=function(e){this.isApplogEnabled=e},e}(),channelDomainConfig={0:{openchannel:\"openchannel.alipay.com\",hpmweb:\"hpmweb.alipay.com\"},1:{openchannel:\"miniprogram.alipay.com\",hpmweb:\"hpmweb.alipay.com\"},2:{openchannel:\"openchannel-pre.alipay.com\",hpmweb:\"hpmweb-pre.alipay.com\"}};function throttle$1(e,t,n,r,o){var a,i,s=null,c=0;o||(o={});var p=function(){c=!1===o.leading?0:Date.now(),s=null,i=e.apply(null,a),a=null};return function(){for(var u=[],l=0;l<arguments.length;l++)u[l]=arguments[l];var g=Date.now();c||!1!==o.leading||(c=g);var f=t-(g-c);return a=u,f<=0||f>t?(r(s),s=null,c=g,i=e.apply(null,a),a=null):s||!1===o.trailing||(s=n(p,f)),i}}function debounce(e,t,n,r){var o;return function(){for(var a=[],i=0;i<arguments.length;i++)a[i]=arguments[i];r(o),o=n((function(){e.apply(null,a)}),t)}}function compareVersion(e,t){if(e&&t){for(var n=stringToIntArraySplitBy(e,\".\"),r=stringToIntArraySplitBy(t,\".\"),o=0,a=0,i=void 0,s=void 0;a<n.length;a++){if((i=r[a]||0)>(s=n[a]||0)){o=-1;break}if(i<s){o=1;break}}return o}return 0}function stringToIntArraySplitBy(e,t){for(var n=[],r=0,o=e.split(t);r<o.length;r++){var a=o[r];n.push(parseInt(a,10))}return n}var WebSocketBaseImpl=function(){function e(e){this.url=\"\",this.opened=!1,e&&(this.url=e),this.onSocketError=this.onSocketError.bind(this),this.onSocketClose=this.onSocketClose.bind(this),this.onSocketMessage=this.onSocketMessage.bind(this),this.onSocketOpen=this.onSocketOpen.bind(this)}return Object.defineProperty(e.prototype,\"isSocketOpened\",{get:function(){return this.opened},enumerable:!1,configurable:!0}),e.prototype.setUrl=function(e){this.url=e},e}(),internalWebSocket;\"undefined\"!=typeof WebSocket&&WebSocket.OPEN&&(internalWebSocket=WebSocket);var WebSocketBrowserImpl=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.messageBeforeSocketOpen=[],t}return __extends(t,e),t.prototype.open=function(){var e=this;if(!this.url)throw new Error(\"WebSocket url required\");this.socket=new internalWebSocket(this.url),this.socket.onopen=this.onSocketOpen,this.socket.onmessage=function(t){\"string\"==typeof t.data?e.onSocketMessage(t.data):console.warn(\"[DEBUG] invalid message\",t.data)},this.socket.onclose=this.onSocketClose,this.socket.onerror=this.onSocketError},t.prototype.close=function(){this.socket&&this.socket.close()},t.prototype.sendSocketMessage=function(e){var t=\"string\"==typeof e?e:JSON.stringify(e);t.length>5e6||(this.opened?this.socket.send(t):this.messageBeforeSocketOpen.push(t))},t.prototype.onSocketMessage=function(e){},t.prototype.onSocketOpen=function(){var e=this;this.opened=!0,this.messageBeforeSocketOpen.length&&(this.messageBeforeSocketOpen.forEach((function(t){e.sendSocketMessage(t)})),this.messageBeforeSocketOpen=[])},t.prototype.onSocketClose=function(){this.opened=!1,console.log(\"[DEBUG] connection closed\")},t.prototype.onSocketError=function(e){console.error(\"[DEBUG] connection onerror\",e)},t}(WebSocketBaseImpl);function getUserAgent(){return\"undefined\"!=typeof navigator&&(navigator.swuserAgent||navigator.userAgent)||\"\"}function getAriverVersion(e){var t=e.match(/Ariver\\/(\\d+\\.\\d+\\.\\d+)/);if(t)return t[1]}var WebSocketNativeImpl=function(e){function t(t){var n=e.call(this,t)||this;n.messageBeforeSocketOpen=[],n.useFromRemoteDebugFlag=!1;var r=getAriverVersion(getUserAgent());return r&&compareVersion(r,\"1.1.0\")>=0&&(n.useFromRemoteDebugFlag=!0),n}return __extends(t,e),t.prototype.open=function(){var e=this;this.socketTask=AFAppX.bridge.connectSocket({fromRemoteDebug:this.useFromRemoteDebugFlag,url:this.url,multiple:!0,fail:function(t){e.onSocketError(t)}}),this.socketTask.onOpen((function(){e.handleSocketOpen()})),this.socketTask.onError((function(t){e.onSocketError(t.data)})),this.socketTask.onClose((function(){e.opened=!1,e.onSocketClose()})),this.socketTask.onMessage((function(t){e.opened||e.handleSocketOpen(),e.onSocketMessage(t.data.data)}))},t.prototype.sendSocketMessage=function(e){var t=\"string\"==typeof e?e:JSON.stringify(e);t.length>5e6||(this.opened?this.socketTask.send({fromRemoteDebug:this.useFromRemoteDebugFlag,data:t,isBuffer:!1}):this.messageBeforeSocketOpen.push(t))},t.prototype.close=function(){this.opened&&this.socketTask.close({fromRemoteDebug:this.useFromRemoteDebugFlag})},t.prototype.onSocketMessage=function(e){},t.prototype.onSocketOpen=function(){},t.prototype.onSocketError=function(e){},t.prototype.onSocketClose=function(){},t.prototype.handleSocketOpen=function(){var e=this;this.opened||(this.opened=!0,this.messageBeforeSocketOpen.length&&(this.messageBeforeSocketOpen.forEach((function(t){e.sendSocketMessage(t)})),this.messageBeforeSocketOpen=[]),this.onSocketOpen())},t}(WebSocketBaseImpl),messages={\"本次真机调试已结束,请重新生成调试版本\":function(e){return\"本次真机调试已结束,请重新生成调试版本。\\n \"+e.reason},\"调试结束\":\"调试结束\",\"callExitApp_退出\":\"退出\",\"退出\":\"退出\",\"准备中\":\"准备中\",\"已断开\":\"已断开\",\"已连接\":\"已连接\",\"真机调试{text}\":function(e){return\"真机调试\"+e.text}},messages$1={\"本次真机调试已结束,请重新生成调试版本\":function(e){return\"Debug interrupted. Scan debug QR code to restart debugging.\"},\"调试结束\":\"Debugging Ended\",\"callExitApp_退出\":\"OK\",\"退出\":\"Done\",\"准备中\":\"Connecting\",\"已断开\":\"Disconnected\",\"已连接\":\"Connected\",\"真机调试{text}\":function(e){return\"\"+e.text}};function formatLocaleString(e){switch(e){case\"zhCN\":case\"zh-SG\":case\"zh-HK\":case\"zh-TW\":case\"zh-Hans\":case\"zh-CN\":return\"zhCN\";default:return\"enUS\"}}var I18NFormatter=function(){function e(e){var t={zhCN:messages,enUS:messages$1};this.i18nMessages=t[formatLocaleString(e)]}return e.getLocaleFromNavigator=function(){return formatLocaleString(navigator.language)},e.prototype.format=function(e,t){var n=this.i18nMessages[e];return\"string\"==typeof n?n:\"function\"==typeof n?n(t):e},e}(),globalInjector,Injector=function(){function e(){}return e.prototype.getAgentContext=function(){return this.agentContext||(this.agentContext=new AgentContext),this.agentContext},e.prototype.setWorkerSocket=function(e){this.workerSocket=e},e.prototype.getWorkerSocket=function(){return this.workerSocket},e.prototype.getNetworkRecorder=function(){return this.networkRecorder||(this.networkRecorder=new NetworkCollection),this.networkRecorder},e.prototype.getMessageQueue=function(){return null==this.messageQueue&&(this.messageQueue=new MessageQueue),this.messageQueue},e.prototype.setRuntime=function(e){this.runtime=e},e.prototype.getRuntime=function(){return this.runtime},e.prototype.getI18NFormatter=function(){return this.i18NFormatter||(this.i18NFormatter=new I18NFormatter(this.getLanguage())),this.i18NFormatter},e.prototype.getLanguage=function(){var e,t,n=null===(t=null===(e=this.runtime)||void 0===e?void 0:e.getEnv())||void 0===t?void 0:t.language;return n||this.getLanguageFromUA()},e.prototype.getLanguageFromUA=function(){if(!this.userAgent)return\"\";var e=this.userAgent.match(/Language\\/([\\w-]+)/);return e?e[1]:\"\"},Object.defineProperty(e.prototype,\"userAgent\",{get:function(){return\"undefined\"!=typeof navigator&&(navigator.swuserAgent||navigator.userAgent)||\"\"},enumerable:!1,configurable:!0}),e}();function getInjector(){return globalInjector||(globalInjector=new Injector),globalInjector}function sendOrQueueApplogMsg(e){try{var t=getInjector().getWorkerSocket(),n=getInjector().getMessageQueue();t&&n.isApplogEnabled?t.send(circularJSONStringify(e)):n.push(circularJSONStringify(e))}catch(e){}}function getHookFn(e){if(workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__&&\"function\"==typeof workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__[e])return workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__[e]}var throttledEmitDataChangedEvent=throttle$1((function(){var e=getInjector().getWorkerSocket();e&&e.send({method:\"Tiny.Data.dataChanged\",ext:{origin:EBugmePanelId.Data}})}),300,setTimeout,clearTimeout,{leading:!1});function getFn(e){if(workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__&&workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__[e]&&\"function\"==typeof workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__[e])return workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__[e]}function onErrorHook(e){var t=new Error(e.formatted.message);t.stack=e.formatted.stack,setTimeout(console.error.bind(console,t))}function registerLegacyAppxHook(){null==workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__&&(workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__={});var e={onSetData:getFn(\"onSetData\"),onSetDataCallback:getFn(\"onSetDataCallback\"),onApiSyncCall:getFn(\"onApiSyncCall\"),onApiSyncCallback:getFn(\"onApiSyncCallback\"),onApiCall:getFn(\"onApiCall\"),onApiCallback:getFn(\"onApiCallback\"),onError:getFn(\"onError\")};workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__.onSetData=function(t){try{if(e.onSetData)try{e.onSetData.call(workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__,t)}catch(e){debug(e)}throttledEmitDataChangedEvent(),sendOrQueueApplogMsg$1({method:\"MiniAppLog.onSetData\",params:minimizeSetDataInfo$1(t),ext:{origin:EBugmePanelId.AppLog}})}catch(e){}},workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__.onSetDataCallback=function(t){try{if(e.onSetDataCallback)try{e.onSetDataCallback.call(workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__,t)}catch(e){debug(e)}sendOrQueueApplogMsg$1({method:\"MiniAppLog.onSetDataCallback\",params:t,ext:{origin:EBugmePanelId.AppLog}})}catch(e){}},workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__.onApiSyncCall=function(t){try{if(e.onApiSyncCall)try{e.onApiSyncCall.call(workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__,t)}catch(e){debug(e)}sendOrQueueApplogMsg$1({method:\"MiniAppLog.onApiSyncCall\",params:minimizeApiHookInfo$1(t),ext:{origin:EBugmePanelId.AppLog}})}catch(e){}},workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__.onApiSyncCallback=function(t){try{if(e.onApiSyncCallback)try{e.onApiSyncCallback.call(workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__,t)}catch(e){debug(e)}sendOrQueueApplogMsg$1({method:\"MiniAppLog.onApiSyncCallback\",params:minimizeApiHookInfo$1(t),ext:{origin:EBugmePanelId.AppLog}})}catch(e){}},workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__.onApiCall=function(t){try{if(e.onApiCall)try{e.onApiCall.call(workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__,t)}catch(e){debug(e)}sendOrQueueApplogMsg$1({method:\"MiniAppLog.onApiCall\",params:minimizeApiHookInfo$1(t),ext:{origin:EBugmePanelId.AppLog}})}catch(e){}},workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__.onApiCallback=function(t){try{if(e.onApiCallback)try{e.onApiCallback.call(workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__,t)}catch(e){debug(e)}sendOrQueueApplogMsg$1({method:\"MiniAppLog.onApiCallback\",params:minimizeApiHookInfo$1(t),ext:{origin:EBugmePanelId.AppLog}})}catch(e){}},workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__.onError=function(t){try{if(e.onError)try{e.onError.call(workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__,t)}catch(e){}onErrorHook(t)}catch(e){}},registerV1PageLifecycleHooks(workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__,e),registerV2PageLifecycleHooks(workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__,e),registerV1AppLifecycleHooks(workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__,e),registerV2AppLifecycleHooks(workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__,e)}function getLifecycleName$1(e){var t;switch(e){case 0:t=\"onPageLoad\";break;case 2:t=\"onPageReady\";break;case 1:t=\"onPageShow\";break;case 3:t=\"onPageHide\";break;case 4:t=\"onPageUnload\"}return t}function registerV1PageLifecycleHooks(e,t){for(var n=[\"onPageLoad\",\"onPageShow\",\"onPageHide\",\"onPageReady\",\"onPageUnload\"],r=0,o=n;r<o.length;r++){t[c=o[r]]=getFn(c)}for(var a=function(n){e[n]=function(e){try{if(t[n])try{t[n].call(workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__,e)}catch(e){debug(e)}var r=e.context?e:__assign({route:e.page.route},e);sendOrQueueApplogMsg$1({method:\"MiniAppLog.\"+n,params:minimizePageLifecycleInfo1(r),ext:{origin:EBugmePanelId.AppLog}}),\"onPageShow\"===n&&throttledEmitDataChangedEvent()}catch(e){}}},i=0,s=n;i<s.length;i++){var c;a(c=s[i])}}function registerV2PageLifecycleHooks(e,t){t.onPageLifecycle=getFn(\"onPageLifecycle\"),e.onPageLifecycle=function(e){try{if(t.onPageLifecycle)try{t.onPageLifecycle.call(workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__,e)}catch(e){debug(e)}var n=getLifecycleName$1(e.args[0]);if(!n)return;sendOrQueueApplogMsg$1({method:\"MiniAppLog.\"+n,params:e,ext:{origin:EBugmePanelId.AppLog}}),\"onPageShow\"===n&&throttledEmitDataChangedEvent()}catch(e){}}}function registerV1AppLifecycleHooks(e,t){for(var n=[\"onAppLaunch\",\"onAppShow\",\"onAppHide\",\"onAppError\",\"onAppUnhandledRejection\"],r=0,o=n;r<o.length;r++){t[c=o[r]]=getFn(c)}for(var a=function(n){e[n]=function(e){try{if(t[n])try{t[n].call(workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__,e)}catch(e){debug(e)}sendOrQueueApplogMsg$1({method:\"MiniAppLog.\"+n,params:e,ext:{origin:EBugmePanelId.AppLog}})}catch(e){}}},i=0,s=n;i<s.length;i++){var c;a(c=s[i])}}function registerV2AppLifecycleHooks(e,t){t.onAppLifecycle=getFn(\"onAppLifecycle\"),e.onAppLifecycle=function(e){try{if(t.onAppLifecycle)try{t.onAppLifecycle.call(workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__,e)}catch(e){debug(e)}sendOrQueueApplogMsg$1({method:\"MiniAppLog.\"+e.args[0],params:e,ext:{origin:EBugmePanelId.AppLog}})}catch(e){}}}function sendOrQueueApplogMsg$1(e){try{var t=getInjector().getWorkerSocket(),n=getInjector().getMessageQueue();t&&n.isApplogEnabled?t.send(circularJSONStringify(e)):n.push(circularJSONStringify(e))}catch(e){}}function minimizeApiHookInfo$1(e){if(e.context){var t=e.context;return __assign(__assign({},e),{context:pick(t,[\"apiName\",\"extraInfo\",\"isMiniExtension\",\"option\",\"startTime\",\"taskId\",\"__reqId\"])})}return e}function minimizeSetDataInfo$1(e){return e.context?e:{pagePath:e.isPage?e.page.route:e.component.$page.route,isPage:e.isPage,option:e.options,componentIs:e.component?e.component.is:void 0}}function minimizePageLifecycleInfo1(e){return __assign(__assign({},e),{page:pick(e.page,[\"$id\",\"$page\",\"$viewId\",\"data\"])})}function pick(e,t){var n={};return t.forEach((function(t){n[t]=e[t]})),n}function registerAppxHook(){null==workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__&&(workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__={}),registerLegacyAppxHook();var e=getHookFn(\"setup\");workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__.setup=function(t,n){if(e&&\"function\"==typeof e)try{e(t,n)}catch(e){}getInjector().setRuntime(t),setup(t,n,(function(e){if(\"string\"==typeof e.method&&e.method.includes(\"MiniAppLog\"))sendOrQueueApplogMsg(e);else{var t=getInjector().getWorkerSocket();t&&t.send(e)}}))}}function getObjectOwnPropertyDescriptors(e){return Object.getOwnPropertyDescriptors?Object.getOwnPropertyDescriptors(e):Object.getOwnPropertyNames(e).reduce((function(t,n){return t[n]=Object.getOwnPropertyDescriptor(e,n),t}),Object.create(null))}function isError(e){return\"[object Error]\"===Object.prototype.toString.call(e)||e instanceof Error}function isDate(e){return\"[object Date]\"===Object.prototype.toString.call(e)||e instanceof Date}function isRegExp(e){return\"[object RegExp]\"===Object.prototype.toString.call(e)||e instanceof RegExp}function isPromise(e){return\"[object Promise]\"===Object.prototype.toString.call(e)||e instanceof Promise}var ObjectMapper=function(){function e(e){this.objectStore=e}return e.prototype.mapFrom=function(e,t){var n=this;return Array.from(e).map((function(e){return n.mapFromOne(e,t)}))},e.prototype.mapFromOne=function(e,t){switch(typeof e){case\"string\":return this.mapString(e);case\"number\":return this.mapNumber(e);case\"object\":return Array.isArray(e)?this.mapArray(e,\"table\"===t):null===e?this.mapNull():this.mapObject(e,\"table\"===t);case\"function\":return this.mapFunction(e);case\"undefined\":return this.mapUndef();case\"boolean\":return this.mapBoolean(e);default:return{type:typeof e,value:e}}},e.prototype.mapString=function(e){return{type:\"string\",value:e}},e.prototype.mapNumber=function(e){return{type:\"number\",value:e,description:String(e)}},e.prototype.mapBoolean=function(e){return{type:\"boolean\",value:e}},e.prototype.mapFunction=function(e){var t=this.objectStore.save(e);return{type:\"function\",className:\"Function\",description:e.toString(),objectId:t}},e.prototype.mapUndef=function(){return{type:\"undefined\"}},e.prototype.mapNull=function(){return{type:\"object\",subtype:\"null\",value:null}},e.prototype.mapObject=function(e,t){var n,r,o=this,a=getObjectOwnPropertyDescriptors(e),i=Object.keys(a),s=this.objectStore.save(e),c=e.constructor?e.constructor.name:\"Object\",p=i.length>5&&!t,u={type:\"object\",className:c,description:c,objectId:s,preview:{type:\"object\",description:c,overflow:p,properties:(p?i.slice(0,5):i).map((function(e){return o.getPropertyPreview4ObjectProperty(e,a[e],t)})).filter(Boolean)}};return isError(e)?(n=\"error\",-1===(r=e.stack||\"\").indexOf(e.name)&&(r=e.toString()+\"\\n\"+r)):isDate(e)?(n=\"date\",r=e.toString()):isRegExp(e)?(n=\"regexp\",r=e.toString()):isPromise(e)&&(n=\"promise\",r=\"Promise\"),n&&(u.subtype=n,u.preview&&(u.preview.subtype=n)),r&&(u.description=r,u.preview&&(u.preview.description=r)),u},e.prototype.mapArray=function(e,t){var n=this,r=e.length>100&&!t,o=\"Array(\"+e.length+\")\";return{type:\"object\",subtype:\"array\",className:\"Array\",description:o,objectId:this.objectStore.save(e),preview:{type:\"object\",subtype:\"array\",description:o,overflow:r,properties:(r?e.slice(0,100):e).map((function(e,r){return n.getPropertyPreview4ArrayProperty(r,e,t)}))}}},e.prototype.getPropertyPreview4ArrayProperty=function(e,t,n){return this.getPropertyPreview4AnyValue(String(e),t,n)},e.prototype.getPropertyPreview4ObjectProperty=function(e,t,n){return t.get?{name:e,type:\"accessor\"}:t.set?void 0:this.getPropertyPreview4AnyValue(e,t.value,n)},e.prototype.getPropertyPreview4AnyValue=function(e,t,n){switch(void 0===n&&(n=!1),typeof t){case\"object\":if(Array.isArray(t)){var r={name:e,type:\"object\",subtype:\"array\",value:\"Array(\"+t.length+\")\"};return n&&(r.valuePreview=this.getValuePreview4TableArray(t)),r}if(null===t)return{name:e,type:\"object\",subtype:\"null\",value:\"null\"};r={name:e,type:\"object\",value:t.constructor?t.constructor.name:\"Object\"};return n&&(r.valuePreview=this.getValuePreview4TableObject(t)),r;case\"function\":return{type:\"function\",value:\"\",name:e};default:return{name:e,type:typeof t,value:String(t)}}},e.prototype.getValuePreview4TableArray=function(e){var t=this;return{type:\"object\",subtype:\"array\",description:\"Array(\"+e.length+\")\",overflow:!1,properties:e.map((function(e,n){return t.getPropertyPreview4AnyValue(String(n),e)}))}},e.prototype.getValuePreview4TableObject=function(e){var t=this;return{type:\"object\",description:\"Object\",overflow:!1,properties:Object.keys(e).map((function(n){return t.getPropertyPreview4AnyValue(n,e[n])}))}},e}(),ExtractStackLine=function(){function e(){this.e1=/\\s*at\\s(\\S+)\\s(\\S+)\\:(\\d+)\\:(\\d+)\\)/,this.e2=/\\s*at\\s(\\S+)\\:(\\d+)\\:(\\d+)/}return e.prototype.testType1=function(e){return this.e1.test(e)},e.prototype.testType2=function(e){return this.e2.test(e)},e.prototype.extractType1=function(e){var t=e.match(this.e1);return null==t?null:{functionName:t[1],url:t[2].slice(1),lineNumber:Number(t[3]),columnNumber:Number(t[4])}},e.prototype.extractType2=function(e){var t=e.match(this.e2);return null==t?null:{functionName:\"\",url:t[1].slice(1),lineNumber:Number(t[2]),columnNumber:Number(t[3])}},e}(),CallFramesMapper=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.mapFrom=function(e){var t=this;return e.split(\"\\n\").slice(2).map((function(e,n){return t.testType1(e)?t.extractType1(e):t.testType2(e)?t.extractType2(e):void 0})).filter((function(e){return null!=e}))},t}(ExtractStackLine),executionContextId=1,injectedScriptId=1,ObjectStore=function(){function e(){this.id=0,this.id2Object=new Map,this.object2Id=new Map}return e.prototype.save=function(e){if(this.object2Id.has(e))return this.object2Id.get(e);var t=this.getNextObjectId();return this.id2Object.set(t,e),this.object2Id.set(e,t),t},e.prototype.query=function(e){return this.id2Object.get(e)},e.prototype.clear=function(e){var t=this.id2Object.get(e);t&&(this.id2Object.delete(e),this.object2Id.delete(t))},e.prototype.clearAll=function(){this.id2Object.clear(),this.object2Id.clear()},e.prototype.getNextObjectId=function(){return this.id++,'{\"injectedScriptId\":'+injectedScriptId+',\"id\":'+this.id+\"}\"},e}(),GetPropertiesHandler=function(){function e(e,t){this.objectStore=e,this.objectMapper=t}return e.prototype.handle=function(e){var t=this.objectStore.query(e.objectId);return t?{result:this.mapObject(t,Boolean(e.ownProperties),Boolean(e.accessorPropertiesOnly))}:{result:[]}},e.prototype.mapObject=function(e,t,n){var r=this;if(t){var o=getObjectOwnPropertyDescriptors(e),a=Object.keys(o).filter((function(e){return!(n&&!o[e].get&&!o[e].set)})).map((function(e){return r.mapResultOne(e,o[e],!0)}));return e.__proto__&&a.push(this.mapResultOne(\"__proto__\",{configurable:!0,enumerable:!1,writable:!0,value:e.__proto__},!0)),a}for(var i=[],s={},c=e,p=!1,u=!0,l=function(){var e=getObjectOwnPropertyDescriptors(c);if(Object.keys(e).forEach((function(t){if(!s[t]){s[t]=!0;var o=e[t];(!n||o.get||o.set)&&i.push(r.mapResultOne(t,o,u))}})),!p){var t=Object.getOwnPropertyDescriptor(c,\"__proto__\");t&&(p=!0,i.push(g.mapResultOne(\"__proto__\",t,u)))}c=c.__proto__,u=!1},g=this;c;)l();return i},e.prototype.mapResultOne=function(e,t,n){var r={writable:t.writable,configurable:Boolean(t.configurable),enumerable:Boolean(t.enumerable),isOwn:n,name:String(e)};return\"value\"in t&&(r.value=this.objectMapper.mapFromOne(t.value)),t.get&&(r.get=this.objectMapper.mapFromOne(t.get)),t.set&&(r.set=this.objectMapper.mapFromOne(t.set)),r},e}(),RemoteObjectParser=function(){function e(){this.objectStore=new ObjectStore,this.objectMapper=new ObjectMapper(this.objectStore),this.callFramesMapper=new CallFramesMapper,this.getPropertiesHandler=new GetPropertiesHandler(this.objectStore,this.objectMapper)}return e.prototype.parseObject=function(e,t){return this.objectMapper.mapFromOne(e,t)},e.prototype.getProperties=function(e){return this.getPropertiesHandler.handle(e)},e.prototype.getObjectById=function(e){return this.objectStore.query(e)},e.prototype.consoleAPICalled=function(e,t,n){var r=e;return\"warn\"===e&&(r=\"warning\"),{method:\"Runtime.consoleAPICalled\",params:{type:r,args:this.objectMapper.mapFrom(n,e),executionContextId:executionContextId,timestamp:Date.now(),stackTrace:{callFrames:this.callFramesMapper.mapFrom(t)}}}},e}(),globalConsoleOverrider;function initConsoleOverrider(){\"boolean\"==typeof __BUGME_CONSOLE_ENABLE__&&__BUGME_CONSOLE_ENABLE__&&(globalConsoleOverrider=new ConsoleOverrider).overrideConsole()}function getConsoleOverrider(){return globalConsoleOverrider}var ConsoleOverrider=function(){function e(){this.executionContextId=1,this.messageBeforeAgentInit=[],this.webSocketCheckingLoop=!1,this.parser=new RemoteObjectParser,this.createExecutionContext()}return e.prototype.createExecutionContext=function(){this.sendMesasge({method:\"Runtime.executionContextsCleared\",params:{}}),this.sendMesasge({method:\"Runtime.executionContextCreated\",params:{context:{id:this.executionContextId,origin:\"app://\",name:\"app\"}}})},e.prototype.overrideConsole=function(){var e=this;Object.defineProperties(console,[\"debug\",\"log\",\"info\",\"warn\",\"error\",\"table\"].reduce((function(t,n){var r=console[n].bind(console);return t[n]={value:function(){var t=arguments;if(t.length){try{var o=/^(\\[framework\\]|dispatchEvent|onMessage push|unsupported protocol)/;if(\"string\"==typeof t[0]&&o.test(t[0]))return r.apply(null,t);var a=new Error;a.stack&&e.sendMesasge(e.parser.consoleAPICalled(n,a.stack,t))}catch(e){}return r.apply(null,t)}}},t}),{}))},e.prototype.sendMesasge=function(e){var t=getInjector().getWorkerSocket();t?(this.flushPendingMessasges(),t.sendAfterReceivingMessage(e)):(this.messageBeforeAgentInit.push(e),this.checkWebSocketReady())},e.prototype.flushPendingMessasges=function(){if(this.messageBeforeAgentInit.length){var e=getInjector().getWorkerSocket();e&&(this.messageBeforeAgentInit.forEach((function(t){e.sendAfterReceivingMessage(t)})),this.messageBeforeAgentInit=[])}},e.prototype.checkWebSocketReady=function(){var e=this;if(!this.webSocketCheckingLoop){this.webSocketCheckingLoop=!0;var t=setInterval((function(){getInjector().getWorkerSocket()&&(clearInterval(t),e.flushPendingMessasges())}),1e3)}},e}(),requirePluginName=\"requirePlugin\",EPanelStatus;function hookRequirePlugin(){var e,t=Object.getOwnPropertyDescriptor(workerGlobal,requirePluginName);t&&!t.configurable||(t&&(e=workerGlobal.requirePlugin),Object.defineProperty(workerGlobal,requirePluginName,{get:function(){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=Date.now();sendOrQueueApplogMsg({method:\"MiniAppLog.onApiSyncCall\",params:{aTime:r,context:{apiName:requirePluginName,option:{arguments:t}}},ext:{origin:EBugmePanelId.AppLog}});try{var o=e.apply(void 0,t);return sendOrQueueApplogMsg({method:\"MiniAppLog.onApiSyncCallback\",params:{args:o?void 0:[{error:1,errorMessage:\"未找到对应插件\"}],bTime:Date.now()===r?r+.01:Date.now(),context:{apiName:requirePluginName}},ext:{origin:EBugmePanelId.AppLog}}),o}catch(e){throw sendOrQueueApplogMsg({method:\"MiniAppLog.onApiSyncCallback\",params:{args:[{error:2,errorMessage:e.message}],bTime:Date.now()===r?r+.01:Date.now(),context:{apiName:requirePluginName}},ext:{origin:EBugmePanelId.AppLog}}),e}}},set:function(t){e=t},enumerable:!0,configurable:!0}))}function updateDebugPanel(e){if(getInjector().getAgentContext().silentMode)return!1;var t=getInjector().getI18NFormatter(),n=\"\";switch(e){case EPanelStatus.Connecting:n=t.format(\"准备中\");break;case EPanelStatus.Connected:n=t.format(\"已连接\");break;case EPanelStatus.Disconnected:n=t.format(\"已断开\")}AFAppX.bridge.call(\"showRemoteDebugPanel\",{status:e,text:t.format(\"真机调试{text}\",{text:n}),buttonTitle:t.format(\"退出\")})}function enable(e){getInjector().getWorkerSocket().send({id:e.id,result:{}})}function getResponseBody(e){var t=e.params.requestId,n=getInjector(),r=n.getNetworkRecorder(),o=r.getRequest(t);o?n.getWorkerSocket().send({id:e.id,result:{base64Encoded:o.isBase64Body,body:o.responseBody}}):n.getWorkerSocket().send({id:e.id,result:{}}),r.removeRequest(t)}!function(e){e.Connecting=\"connecting\",e.Connected=\"connected\",e.Disconnected=\"disconnected\"}(EPanelStatus||(EPanelStatus={}));var network=Object.freeze({__proto__:null,enable:enable,getResponseBody:getResponseBody});function enable$1(e){getInjector().getWorkerSocket().send({id:e.id,result:{}});var t=getConsoleOverrider();t&&t.createExecutionContext()}function getProperties(e){var t=getConsoleOverrider();t&&getInjector().getWorkerSocket().send({id:e.id,result:t.parser.getProperties(e.params)})}function compileScript(e){getInjector().getWorkerSocket().send({id:e.id,result:{}})}var evalFunc=\"function\"==typeof __eval?__eval:\"function\"==typeof eval?eval:function(){};function evaluate(payload){var consoleOverrider=getConsoleOverrider();if(consoleOverrider){var parser=consoleOverrider.parser;\"function\"!=typeof eval&&(workerGlobal.eval=evalFunc);try{var returnValue=function(){return eval(payload.params.expression)}();getInjector().getWorkerSocket().send({id:payload.id,result:{result:parser.parseObject(returnValue)}})}catch(e){e.stack=e.name+\": \"+e.message,getInjector().getWorkerSocket().send({id:payload.id,result:{exceptionDetails:{columnNumber:20,exception:parser.parseObject(e),exceptionId:1,lineNumber:0,text:\"Uncaught\"},result:parser.parseObject(e)}})}}}var runtime=Object.freeze({__proto__:null,enable:enable$1,getProperties:getProperties,compileScript:compileScript,evaluate:evaluate});function createCommonjsModule(e,t){return e(t={exports:{}},t.exports),t.exports}var stringify_1=createCommonjsModule((function(e,t){function n(e,t){var n=[],r=[];return null==t&&(t=function(e,t){return n[0]===t?\"[Circular ~]\":\"[Circular ~.\"+r.slice(0,n.indexOf(t)).join(\".\")+\"]\"}),function(o,a){if(n.length>0){var i=n.indexOf(this);~i?n.splice(i+1):n.push(this),~i?r.splice(i,1/0,o):r.push(o),~n.indexOf(a)&&(a=t.call(this,o,a))}else n.push(a);return null==e?a:e.call(this,o,a)}}(e.exports=function(e,t,r,o){return JSON.stringify(e,n(t,o),r)}).getSerialize=n})),stringify_2=stringify_1.getSerialize,sharedGetCurrentPages;function callGetCurrentPages(){return sharedGetCurrentPages?sharedGetCurrentPages():workerGlobal.getCurrentPages?(sharedGetCurrentPages=workerGlobal.getCurrentPages)():workerGlobal.AFAppX&&AFAppX.getCurrentPages?(sharedGetCurrentPages=AFAppX.getCurrentPages)():[]}function getPagesData(e){var t;var n=getInjector().getRuntime();t=null==n?callGetCurrentPages().filter(Boolean).map((function(e){return{viewId:e.$viewId,data:stringify_1(e.data),route:e.route}})):n.getNav().currentStack.map((function(e){var t=e.getPageLogicInstance().publicInstance;return{viewId:t.$viewId,data:stringify_1(t.data),route:t.route}})),getInjector().getWorkerSocket().send({id:e.id,ext:e.ext,result:{data:t}})}function setPageData(e){var t,n=e.params||{},r=n.viewId,o=n.data;var a=getInjector().getRuntime();(t=null==a?callGetCurrentPages().filter((function(e){return e&&\"\"+e.$viewId===r}))[0]:a.getNav().currentStack.map((function(e){return e.getPageLogicInstance().publicInstance})).filter((function(e){return e&&\"\"+e.$viewId===r}))[0])&&o&&t.setData(o)}var data=Object.freeze({__proto__:null,getPagesData:getPagesData,setPageData:setPageData});function getStorageItem(e){return new Promise((function(t){AFAppX.bridge.getStorage({key:e,success:function(n){var r=n.data;t({key:e,value:r,type:typeof r})},fail:function(){t()}})}))}function getStorageInfo(e){AFAppX.bridge.getStorageInfo({success:function(t){Promise.all(t.keys.map((function(e){return getStorageItem(e)}))).then((function(n){var r=n.filter((function(e){return e}));getInjector().getWorkerSocket().send({id:e.id,ext:e.ext,result:{currentSize:t.currentSize,limitSize:t.limitSize,data:r}})}))}})}function clearStorage(e){AFAppX.bridge.clearStorage()}function removeStorage(e){var t=e.params;t&&t.key&&AFAppX.bridge.removeStorage({key:t.key})}function setStorage(e){var t=e.params;t&&t.key&&AFAppX.bridge.setStorage({key:t.key,data:t.value})}var storage=Object.freeze({__proto__:null,getStorageInfo:getStorageInfo,clearStorage:clearStorage,removeStorage:removeStorage,setStorage:setStorage});function enable$2(){var e=getInjector().getMessageQueue();e.setApplogEnabled(!0),e.sendQueuedMessages()}var applog=Object.freeze({__proto__:null,enable:enable$2});function ping(e){getInjector().getWorkerSocket().send({id:e.id,result:{}})}function getSystemInfo(e){AFAppX.bridge.getSystemInfo({success:function(t){var n={userAgent:getInjector().getAgentContext().userAgent,sdkVersion:AFAppX.bridge.SDKVersion,alipayVersion:t.version,model:t.model,system:t.system};getInjector().getWorkerSocket().send({id:e.id,result:n})}})}function getStartupParams$1(e){var t=getStartupParams();getInjector().getWorkerSocket().send({id:e.id,result:t})}var index=Object.freeze({__proto__:null,Data:data,Storage:storage,Applog:applog,ping:ping,getSystemInfo:getSystemInfo,getStartupParams:getStartupParams$1});function getResourceTree(e){getInjector().getWorkerSocket().send({id:e.id,result:{}})}var page=Object.freeze({__proto__:null,getResourceTree:getResourceTree}),protoHandler=Object.freeze({__proto__:null,Network:network,Runtime:runtime,Tiny:index,Page:page}),isWebPlatform=!1;if(\"undefined\"!=typeof WebSocket&&WebSocket.OPEN){isWebPlatform=!0;try{delete workerGlobal.WebSocket}catch(e){}}var BaseImpl=isWebPlatform?WebSocketBrowserImpl:WebSocketNativeImpl,WorkerSocket=function(e){function t(t){var n=e.call(this,t)||this;return n.isMessageReceived=!1,n.isSocketOpenedOnce=!1,n.messageBeforeReceived=[],updateDebugPanel(EPanelStatus.Connecting),n}return __extends(t,e),t.prototype.send=function(e){return this.sendSocketMessage(e)},t.prototype.sendAfterReceivingMessage=function(e){this.isMessageReceived?this.send(e):this.messageBeforeReceived.push(\"string\"==typeof e?e:JSON.stringify(e))},t.prototype.exitDebug=function(){updateDebugPanel(EPanelStatus.Disconnected),this.close(),!isWebPlatform&&getInjector().getAgentContext().isIOS&&[1,2].forEach((function(e){AFAppX.bridge.call(\"closeSocket\",{socketTaskId:e})}))},t.prototype.onSocketOpen=function(){e.prototype.onSocketOpen.call(this),this.isSocketOpenedOnce=!0,this.send({method:\"MiniAppLog.enable\",params:{},ext:{origin:EBugmePanelId.AppLog}}),throttledEmitDataChangedEvent()},t.prototype.onSocketClose=function(){e.prototype.onSocketClose.call(this)},t.prototype.onSocketError=function(e){if(!this.isSocketOpenedOnce&&!getInjector().getAgentContext().silentMode){updateDebugPanel(EPanelStatus.Disconnected);var t=e?e.errorMessage||e.message:\"closed\";AFAppX.bridge.showToast({content:getInjector().getI18NFormatter().format(\"本次真机调试已结束,请重新生成调试版本\",{reason:t}),duration:2e3,success:function(){}})}},t.prototype.onSocketMessage=function(e){var t,n=this;this.isMessageReceived||(this.isMessageReceived=!0,this.messageBeforeReceived.forEach((function(e){n.send(e)})),this.messageBeforeReceived=[]);try{t=JSON.parse(e)}catch(t){return void(\"CLIENT:JOIN\"===e?updateDebugPanel(EPanelStatus.Connected):\"CLIENT:LEAVE\"===e&&this.exitDebug())}var r=getProtocolHandler(t.method);r?r(t):this.send({id:t.id,error:{code:-32e3,message:\"unsupported\"}})},t}(BaseImpl);function getProtocolHandler(e){if(e){for(var t=e.split(\".\"),n=protoHandler,r=0,o=t;r<o.length;r++){if(!(n=n[o[r]]))break}return n}}var ignoreDomain=/\\/(tyro\\/agent|bugme\\/channel\\/paused)$/,DebugEventListener=function(){function e(){this.isIOS=getInjector().getAgentContext().isIOS,this.isLyra=getInjector().getAgentContext().isLyra}return e.prototype.setup=function(){this.isLyra||this.isIOS?this.listenDebugEvent4IOS():this.listenDebugEvent()},e.prototype.onNetworkRequest=function(e){if(!ignoreDomain.test(e.url)){var t=createProtocol4RequestWillBeSent(e),n=getInjector();n.getWorkerSocket().send(t),n.getNetworkRecorder().setRequest(e.requestId,{method:t.params.request.method,requestHeaders:t.params.request.headers,url:e.url})}},e.prototype.onNetworkResponse=function(e){if(!ignoreDomain.test(e.url)){var t=getInjector(),n=t.getNetworkRecorder().getRequest(e.requestId)||{};t.getWorkerSocket().send(createProtocol4ResponseReceived(e,n)),t.getWorkerSocket().send(createProtocol4LoadingFinished(e)),t.getNetworkRecorder().setRequest(e.requestId,{responseBody:e.body,isBase64Body:!1})}},e.prototype.onNetworkError=function(e){ignoreDomain.test(e.url)||getInjector().getWorkerSocket().send(createProtocol4LoadingFailed(e))},e.prototype.onStorageChanged=function(e){var t={};Object.keys(e.data).forEach((function(n){try{t[n]=JSON.parse(e.data[n]).APDataStorage}catch(e){}})),getInjector().getWorkerSocket().send({method:\"Tiny.Storage.storageChanged\",params:{data:t},ext:{origin:EBugmePanelId.Storage}})},e.prototype.listenDebugEvent4IOS=function(){var e=this,t=AFAppX.bridge;t.on(EWorkerAppEvent.DebugNetworkRequest,(function(t){e.onNetworkRequest(t.data)})),t.on(EWorkerAppEvent.DebugNetworkResponse,(function(t){e.onNetworkResponse(t.data)})),t.on(EWorkerAppEvent.DebugNetworkError,(function(t){e.onNetworkError(t.data)})),t.on(EWorkerAppEvent.DebugStorageChanged,(function(t){e.onStorageChanged(t.data)}))},e.prototype.listenDebugEvent=function(){var e=this;AFAppX.bridge.on(EWorkerAppEvent.DebugConsole,(function(t){var n,r=t.data,o=r.type,a=r.content;try{n=JSON.parse(a)}catch(e){return}switch(o){case EWorkerAppEvent.DebugNetworkRequest:e.onNetworkRequest(n);break;case EWorkerAppEvent.DebugNetworkResponse:e.onNetworkResponse(n);break;case EWorkerAppEvent.DebugNetworkError:e.onNetworkError(n);break;case EWorkerAppEvent.DebugStorageChanged:e.onStorageChanged(n)}}))},e}(),WorkerListener=function(){function e(){this.inited=!1}return e.prototype.setup=function(){if(this.inited)return!1;var e=AFAppX.bridge;if(/^1\\./.test(e.SDKVersion)){var t=debounce(this.onPageResumeOrPause.bind(this),300,setTimeout,clearTimeout);e.on(EWorkerAppEvent.PageResume,t),e.on(EWorkerAppEvent.PagePause,t)}e.on(EWorkerAppEvent.DebugPanelClick,this.onDebugPanelClick),this.debugEventListener=new DebugEventListener,this.debugEventListener.setup(),this.inited=!0},e.prototype.onPageResumeOrPause=function(){throttledEmitDataChangedEvent()},e.prototype.onDebugPanelClick=function(){var e=getInjector().getWorkerSocket();e&&e.exitDebug()},e}(),globalListener;function getGlobalWorkerEventListener(){return globalListener||(globalListener=new WorkerListener),globalListener}function getChannelUrl(){if(\"string\"==typeof __BUGME_EXTERNAL_WORKER_URL__&&__BUGME_EXTERNAL_WORKER_URL__)return __BUGME_EXTERNAL_WORKER_URL__;var e,t=getInjector().getAgentContext(),n=t.channel,r=t.channelId,o=t.channelConfigKey;\"\"!==n?e=n:e=\"wss://\"+(channelDomainConfig[o]||channelDomainConfig[0]).hpmweb;return e+\"/bugme/client_w/\"+r}var DebugAgent=function(){function e(){}return e.prototype.init=function(){getGlobalWorkerEventListener().setup(),this.makeConnection(),this.printSDKVersion()},e.prototype.makeConnection=function(){var e=getInjector(),t=getChannelUrl(),n=new WorkerSocket(t);e.setWorkerSocket(n),e.getAgentContext().isIOS?n.open():setTimeout((function(){n.open()}),1200)},e.prototype.printSDKVersion=function(){var e=AFAppX.bridge.SDKVersion;/^2\\./.test(e)&&setTimeout(console.log.bind(console,\"SDKVersion: \"+e))},e}(),globalAgent;function getAgent(){return globalAgent||(globalAgent=new DebugAgent),globalAgent}var LOG_STYLE=\"color: #3D80F3; font-weight: bold;\";function printStaticPlugins(){var e=getStartupParams().__appxPluginsExtra||{},t=Object.keys(e).map((function(t){return{plugin_id:t,deploy_version:e[t].version}}));t.length&&(console.log(\"%c--- Static Plugin List ---\",LOG_STYLE),console.table(t))}var loadPluginName=\"loadPlugin\";function hookLoadPlugin(){var e,t=Object.getOwnPropertyDescriptor(workerGlobal.my,loadPluginName);t&&!t.configurable||(t&&(e=workerGlobal.my.loadPlugin),Object.defineProperty(workerGlobal.my,loadPluginName,{get:function(){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(\"object\"==typeof t[0]){var r=t[0].success;t[0].success=function(){printDynamicPlugin(t[0].plugin),void 0!==r&&r.apply(this,arguments)}}return e.apply(void 0,t)}},set:function(t){e=t},enumerable:!0,configurable:!0}))}function printDynamicPlugin(e){var t=e.split(\"@\")[0],n=getInjector().getRuntime().getMiniExtensionManager().extensionVersions;setTimeout((function(){console.log(\"%c--- Loaded Dynamic Plugin ---\",LOG_STYLE),console.table([{plugin_id:t,deploy_version:n.get(t)}])}),100)}function setupPluginInfo(){console.log(\"%cTip: you can type `printPlugins()` anytime to print loaded plugins info\",\"color: #3D80F3;\"),hookLoadPlugin(),printStaticPlugins(),workerGlobal.printPlugins=printPlugins}function isUsePlugin(){var e=getInjector().getRuntime();if(void 0===e)return!1;var t=e.getMeta().meta;return\"object\"==typeof t.plugins&&0!==Object.keys(t.plugins).length||t.useDynamicPlugins}function printPlugins(){var e;printStaticPlugins();var t=(null===(e=getStartupParams())||void 0===e?void 0:e.__appxPluginsExtra)||{},n=getInjector().getRuntime().getMiniExtensionManager().extensionVersions,r=[];n.forEach((function(e,o){void 0===t[o]&&r.push({plugin_id:o,deploy_version:n.get(o)})})),console.log(\"%c--- Loaded Dynamic Plugin List ---\",LOG_STYLE),console.table(r)}function main(){try{registerAppxHook(),initConsoleOverrider(),hookRequirePlugin()}catch(e){error(\"sync task error\",e)}runAfterAppx((function(){runAfterAppXBridgeReady((function(){try{getAgent().init(),isUsePlugin()&&setupPluginInfo()}catch(e){error(\"init agent error\",e)}}))}))}var inPluginWorker=\"object\"==typeof AFAppX&&AFAppX.Plugin;if(!workerGlobal.__BUGME_ON__&&!inPluginWorker){workerGlobal.__BUGME_ON__=!0;try{main()}catch(e){error(\"init error\",e)}}}();\n","bugmeWPreview":"!function(){\"use strict\";var e,n,t,o,r,a,i,c,s,u;!function(e){e.PageResume=\"pageResume\",e.PagePause=\"pagePause\",e.DebugPanelClick=\"tinyRemoteDebugPanelButtonClick\",e.DebugConsole=\"onTinyDebugConsole\",e.DebugNetworkRequest=\"tinyAppRemoteDebug_network_request\",e.DebugNetworkResponse=\"tinyAppRemoteDebug_network_response\",e.DebugNetworkError=\"tinyAppRemoteDebug_network_error\",e.DebugStorageChanged=\"tinyAppRemoteDebug_storage\",e.MessageFromVConsole=\"onMessageFromVConsole\"}(e||(e={})),function(e){e.GetPagesData=\"Tiny.Data.getPageData\",e.SetPageData=\"Tiny.Data.setPageData\"}(n||(n={})),function(e){e.DataChanged=\"Tiny.Data.dataChanged\"}(t||(t={})),function(e){e.GetStorageInfo=\"Tiny.Storage.getStorageInfo\",e.ClearStorage=\"Tiny.Storage.clearStorage\",e.RemoveStorage=\"Tiny.Storage.removeStorage\",e.SetStorage=\"Tiny.Storage.setStorage\"}(o||(o={})),function(e){e.StorageChanged=\"Tiny.Storage.storageChanged\"}(r||(r={})),function(e){e.Enable=\"MiniAppLog.enable\"}(a||(a={})),function(e){e.ApiSyncCall=\"MiniAppLog.onApiSyncCall\",e.ApiSyncCallback=\"MiniAppLog.onApiSyncCallback\",e.ApiCall=\"MiniAppLog.onApiCall\",e.ApiCallback=\"MiniAppLog.onApiCallback\",e.SetData=\"MiniAppLog.onSetData\",e.SetDataCallback=\"MiniAppLog.onSetDataCallback\",e.ShareAppMessage=\"MiniAppLog.onShareAppMessage\"}(i||(i={})),function(e){e.consoleAPICalled=\"Runtime.consoleAPICalled\",e.executionContextDestroyed=\"Runtime.executionContextDestroyed\",e.executionContextsCleared=\"Runtime.executionContextsCleared\",e.executionContextCreated=\"Runtime.executionContextCreated\"}(c||(c={})),function(e){e.RequestWillBeSent=\"Network.requestWillBeSent\",e.ResponseReceived=\"Network.responseReceived\",e.LoadingFinished=\"Network.loadingFinished\",e.LoadingFailed=\"Networkw.loadingFailed\",e.GetResponseBody=\"Network.getResponseBody\"}(s||(s={})),function(e){e.Data=\"data\",e.Storage=\"storage\",e.AppLog=\"applog\"}(u||(u={}));var l=self,g=\"\\\\x\"+(\"0\"+\"~\".charCodeAt(0).toString(16)).slice(-2),p=\"\\\\\"+g,f=new RegExp(g,\"g\"),d=new RegExp(p,\"g\"),y=new RegExp(\"(?:^|([^\\\\\\\\]))\"+p),h=[].indexOf||function(e){for(var n=this.length;n--&&this[n]!==e;);return n},C=String;function m(e,n,t){return n instanceof Array?function(e,n,t){for(var o=0,r=n.length;o<r;o++)n[o]=m(e,n[o],t);return n}(e,n,t):n instanceof C?n.length?t.hasOwnProperty(n)?t[n]:t[n]=function(e,n){for(var t=0,o=n.length;t<o;e=e[n[t++].replace(d,\"~\")]);return e}(e,n.split(\"~\")):e:n instanceof Object?function(e,n,t){for(var o in n)n.hasOwnProperty(o)&&(n[o]=m(e,n[o],t));return n}(e,n,t):n}var S={stringify:function(e,n,t,o){return S.parser.stringify(e,function(e,n,t){var o,r,a=!1,i=!!n,c=[],s=[e],u=[e],l=[t?\"~\":\"[Circular]\"],d=e,y=1;return i&&(r=\"object\"==typeof n?function(e,t){return\"\"!==e&&n.indexOf(e)<0?void 0:t}:n),function(e,n){return i&&(n=r.call(this,e,n)),a?(d!==this&&(o=y-h.call(s,this)-1,y-=o,s.splice(y,s.length),c.splice(y-1,c.length),d=this),\"object\"==typeof n&&n?(h.call(s,n)<0&&s.push(d=n),y=s.length,(o=h.call(u,n))<0?(o=u.push(n)-1,t?(c.push((\"\"+e).replace(f,g)),l[o]=\"~\"+c.join(\"~\")):l[o]=l[0]):n=l[o]):\"string\"==typeof n&&t&&(n=n.replace(g,p).replace(\"~\",g))):a=!0,n}}(e,n,!o),t)},parse:function(e,n){return S.parser.parse(e,function(e){return function(n,t){var o=\"string\"==typeof t;return o&&\"~\"===t.charAt(0)?new C(t.slice(1)):(\"\"===n&&(t=m(t,t,{})),o&&(t=t.replace(y,\"$1~\").replace(p,g)),e?e.call(this,n,t):t)}}(n))},parser:JSON},b=S.stringify,A=l.fetch,D=l.AlipayJSBridge&&l.AlipayJSBridge.call;function v(e,n){if(A){var t=encodeURIComponent(JSON.stringify({action:\"internalAPI\",data:{method:e,param:n}}));A(\"https://alipay.kylinBridge/?data=\"+t,{mode:\"no-cors\"}).then((function(){})).catch((function(){}))}else D&&D(\"internalAPI\",{method:e,param:n})}function R(e,n){return void 0===n?\"©undefined\":null===n?\"©null\":n===-1/0?\"©-Infinity\":n===1/0?\"©Infinity\":\"number\"==typeof n&&isNaN(n)?\"©NaN\":\"function\"==typeof n?\"©Function\":n}var k=Function;function w(){l.document&&l.document.addEventListener(\"push\",(function(e){var n=e.data;if(n&&\"onMessageFromVConsole\"===n.func){var t;try{var o=n.param.content||n.param.data.content;if(!o)return;t=JSON.parse(o)}catch(e){return}if(t.fromVConsoleToWorker&&\"exec\"===t.method)try{new k(\"requestId\",\"sendBack\",\"var res = \"+t.script+\";console.log(res);\")(t.requestId,(function(e){return function(e,n){v(\"tinyDebugConsole\",{type:\"msgFromWorkerToVConsole\",content:b({requestId:e,returnValue:n},R)})}(t.requestId,e)}))}catch(e){console.warn(\"bugme execute script error\",e)}}}))}if(!l.__BUGME_ON__){l.__BUGME_ON__=!0;try{w(),Object.defineProperties(console,[\"log\",\"info\",\"error\",\"debug\",\"warn\"].reduce((function(e,n){var t=console[n];return e[n]={value:function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];t.apply(console,e);try{var r=b(e.map((function(e){return e instanceof Error?e.name+\": \"+e.message:e})),R);v(\"tinyDebugConsole\",{content:r,type:\"console_\"+n})}catch(e){t(\"bugme console error\",e)}},configurable:!0,writable:!0,enumerable:!0},e}),{}))}catch(e){console.warn(\"bugme init error\",e)}}}();\n","tyroAgent":"!function(){\"use strict\";function getObjectOwnPropertyDescriptors(e){return Object.getOwnPropertyDescriptors?Object.getOwnPropertyDescriptors(e):Object.getOwnPropertyNames(e).reduce((function(t,r){return t[r]=Object.getOwnPropertyDescriptor(e,r),t}),Object.create(null))}function isError(e){return\"[object Error]\"===Object.prototype.toString.call(e)||e instanceof Error}function isDate(e){return\"[object Date]\"===Object.prototype.toString.call(e)||e instanceof Date}function isRegExp(e){return\"[object RegExp]\"===Object.prototype.toString.call(e)||e instanceof RegExp}function isPromise(e){return\"[object Promise]\"===Object.prototype.toString.call(e)||e instanceof Promise}var ObjectMapper=function(){function e(e){this.objectStore=e}return e.prototype.mapFrom=function(e,t){var r=this;return Array.from(e).map((function(e){return r.mapFromOne(e,t)}))},e.prototype.mapFromOne=function(e,t){switch(typeof e){case\"string\":return this.mapString(e);case\"number\":return this.mapNumber(e);case\"object\":return Array.isArray(e)?this.mapArray(e,\"table\"===t):null===e?this.mapNull():this.mapObject(e,\"table\"===t);case\"function\":return this.mapFunction(e);case\"undefined\":return this.mapUndef();case\"boolean\":return this.mapBoolean(e);default:return{type:typeof e,value:e}}},e.prototype.mapString=function(e){return{type:\"string\",value:e}},e.prototype.mapNumber=function(e){return{type:\"number\",value:e,description:String(e)}},e.prototype.mapBoolean=function(e){return{type:\"boolean\",value:e}},e.prototype.mapFunction=function(e){var t=this.objectStore.save(e);return{type:\"function\",className:\"Function\",description:e.toString(),objectId:t}},e.prototype.mapUndef=function(){return{type:\"undefined\"}},e.prototype.mapNull=function(){return{type:\"object\",subtype:\"null\",value:null}},e.prototype.mapObject=function(e,t){var r,n,s=this,i=getObjectOwnPropertyDescriptors(e),o=Object.keys(i),a=this.objectStore.save(e),c=e.constructor?e.constructor.name:\"Object\",p=o.length>5&&!t,u={type:\"object\",className:c,description:c,objectId:a,preview:{type:\"object\",description:c,overflow:p,properties:(p?o.slice(0,5):o).map((function(e){return s.getPropertyPreview4ObjectProperty(e,i[e],t)})).filter(Boolean)}};return isError(e)?(r=\"error\",-1===(n=e.stack||\"\").indexOf(e.name)&&(n=e.toString()+\"\\n\"+n)):isDate(e)?(r=\"date\",n=e.toString()):isRegExp(e)?(r=\"regexp\",n=e.toString()):isPromise(e)&&(r=\"promise\",n=\"Promise\"),r&&(u.subtype=r,u.preview&&(u.preview.subtype=r)),n&&(u.description=n,u.preview&&(u.preview.description=n)),u},e.prototype.mapArray=function(e,t){var r=this,n=e.length>100&&!t,s=\"Array(\"+e.length+\")\";return{type:\"object\",subtype:\"array\",className:\"Array\",description:s,objectId:this.objectStore.save(e),preview:{type:\"object\",subtype:\"array\",description:s,overflow:n,properties:(n?e.slice(0,100):e).map((function(e,n){return r.getPropertyPreview4ArrayProperty(n,e,t)}))}}},e.prototype.getPropertyPreview4ArrayProperty=function(e,t,r){return this.getPropertyPreview4AnyValue(String(e),t,r)},e.prototype.getPropertyPreview4ObjectProperty=function(e,t,r){return t.get?{name:e,type:\"accessor\"}:t.set?void 0:this.getPropertyPreview4AnyValue(e,t.value,r)},e.prototype.getPropertyPreview4AnyValue=function(e,t,r){switch(void 0===r&&(r=!1),typeof t){case\"object\":if(Array.isArray(t)){var n={name:e,type:\"object\",subtype:\"array\",value:\"Array(\"+t.length+\")\"};return r&&(n.valuePreview=this.getValuePreview4TableArray(t)),n}if(null===t)return{name:e,type:\"object\",subtype:\"null\",value:\"null\"};n={name:e,type:\"object\",value:t.constructor?t.constructor.name:\"Object\"};return r&&(n.valuePreview=this.getValuePreview4TableObject(t)),n;case\"function\":return{type:\"function\",value:\"\",name:e};default:return{name:e,type:typeof t,value:String(t)}}},e.prototype.getValuePreview4TableArray=function(e){var t=this;return{type:\"object\",subtype:\"array\",description:\"Array(\"+e.length+\")\",overflow:!1,properties:e.map((function(e,r){return t.getPropertyPreview4AnyValue(String(r),e)}))}},e.prototype.getValuePreview4TableObject=function(e){var t=this;return{type:\"object\",description:\"Object\",overflow:!1,properties:Object.keys(e).map((function(r){return t.getPropertyPreview4AnyValue(r,e[r])}))}},e}(),extendStatics=function(e,t){return(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)};function __extends(e,t){function r(){this.constructor=e}extendStatics(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var ExtractStackLine=function(){function e(){this.e1=/\\s*at\\s(\\S+)\\s(\\S+)\\:(\\d+)\\:(\\d+)\\)/,this.e2=/\\s*at\\s(\\S+)\\:(\\d+)\\:(\\d+)/}return e.prototype.testType1=function(e){return this.e1.test(e)},e.prototype.testType2=function(e){return this.e2.test(e)},e.prototype.extractType1=function(e){var t=e.match(this.e1);return null==t?null:{functionName:t[1],url:t[2].slice(1),lineNumber:Number(t[3]),columnNumber:Number(t[4])}},e.prototype.extractType2=function(e){var t=e.match(this.e2);return null==t?null:{functionName:\"\",url:t[1].slice(1),lineNumber:Number(t[2]),columnNumber:Number(t[3])}},e}(),CallFramesMapper=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.mapFrom=function(e){var t=this;return e.split(\"\\n\").slice(2).map((function(e,r){return t.testType1(e)?t.extractType1(e):t.testType2(e)?t.extractType2(e):void 0})).filter((function(e){return null!=e}))},t}(ExtractStackLine),executionContextId=1,injectedScriptId=1,ObjectStore=function(){function e(){this.id=0,this.id2Object=new Map,this.object2Id=new Map}return e.prototype.save=function(e){if(this.object2Id.has(e))return this.object2Id.get(e);var t=this.getNextObjectId();return this.id2Object.set(t,e),this.object2Id.set(e,t),t},e.prototype.query=function(e){return this.id2Object.get(e)},e.prototype.clear=function(e){var t=this.id2Object.get(e);t&&(this.id2Object.delete(e),this.object2Id.delete(t))},e.prototype.clearAll=function(){this.id2Object.clear(),this.object2Id.clear()},e.prototype.getNextObjectId=function(){return this.id++,'{\"injectedScriptId\":'+injectedScriptId+',\"id\":'+this.id+\"}\"},e}(),GetPropertiesHandler=function(){function e(e,t){this.objectStore=e,this.objectMapper=t}return e.prototype.handle=function(e){var t=this.objectStore.query(e.objectId);return t?{result:this.mapObject(t,Boolean(e.ownProperties),Boolean(e.accessorPropertiesOnly))}:{result:[]}},e.prototype.mapObject=function(e,t,r){var n=this;if(t){var s=getObjectOwnPropertyDescriptors(e),i=Object.keys(s).filter((function(e){return!(r&&!s[e].get&&!s[e].set)})).map((function(e){return n.mapResultOne(e,s[e],!0)}));return e.__proto__&&i.push(this.mapResultOne(\"__proto__\",{configurable:!0,enumerable:!1,writable:!0,value:e.__proto__},!0)),i}for(var o=[],a={},c=e,p=!1,u=!0,l=function(){var e=getObjectOwnPropertyDescriptors(c);if(Object.keys(e).forEach((function(t){if(!a[t]){a[t]=!0;var s=e[t];(!r||s.get||s.set)&&o.push(n.mapResultOne(t,s,u))}})),!p){var t=Object.getOwnPropertyDescriptor(c,\"__proto__\");t&&(p=!0,o.push(y.mapResultOne(\"__proto__\",t,u)))}c=c.__proto__,u=!1},y=this;c;)l();return o},e.prototype.mapResultOne=function(e,t,r){var n={writable:t.writable,configurable:Boolean(t.configurable),enumerable:Boolean(t.enumerable),isOwn:r,name:String(e)};return\"value\"in t&&(n.value=this.objectMapper.mapFromOne(t.value)),t.get&&(n.get=this.objectMapper.mapFromOne(t.get)),t.set&&(n.set=this.objectMapper.mapFromOne(t.set)),n},e}(),RemoteObjectParser=function(){function e(){this.objectStore=new ObjectStore,this.objectMapper=new ObjectMapper(this.objectStore),this.callFramesMapper=new CallFramesMapper,this.getPropertiesHandler=new GetPropertiesHandler(this.objectStore,this.objectMapper)}return e.prototype.parseObject=function(e,t){return this.objectMapper.mapFromOne(e,t)},e.prototype.getProperties=function(e){return this.getPropertiesHandler.handle(e)},e.prototype.getObjectById=function(e){return this.objectStore.query(e)},e.prototype.consoleAPICalled=function(e,t,r){var n=e;return\"warn\"===e&&(n=\"warning\"),{method:\"Runtime.consoleAPICalled\",params:{type:n,args:this.objectMapper.mapFrom(r,e),executionContextId:executionContextId,timestamp:Date.now(),stackTrace:{callFrames:this.callFramesMapper.mapFrom(t)}}}},e}(),ResponseEvent,RequestMethod,BreakStepType,FingerType;function getStartupParams(){if(\"undefined\"!=typeof __appxStartupParams&&__appxStartupParams&&__appxStartupParams.appId)return __appxStartupParams;if(\"undefined\"!=typeof my)try{return my.callSync(\"getStartupParams\")||{}}catch(e){}return{}}!function(e){e.ById=\"Tyro.byId\",e.Sticky=\"Tyro.sticky\",e.StickyNotSendPaused=\"Tyro.stickyNotSendPaused\",e.StickyAsync=\"Tyro.stickyAsync\",e.ScriptSource=\"Tyro.scriptSource\",e.Resumed=\"Debugger.resumed\",e.ConsoleAPICalled=\"Runtime.consoleAPICalled\"}(ResponseEvent||(ResponseEvent={})),function(e){e.DiscardConsoleEntries=\"Tyro.discardConsoleEntries\",e.Evaluate=\"Tyro.evaluate\",e.EvaluateOnCallFrame=\"Tyro.evaluateOnCallFrame\",e.CallFunctionOn=\"Tyro.callFunctionOn\",e.CompileScript=\"Tyro.compileScript\",e.SetBreakpointsActive=\"Tyro.setBreakpointsActive\",e.SetSkipAllPauses=\"Tyro.setSkipAllPauses\",e.Resume=\"Tyro.resume\",e.StepInto=\"Tyro.stepInto\",e.StepOver=\"Tyro.stepOver\",e.StepOut=\"Tyro.stepOut\",e.Pause=\"Tyro.pause\",e.GetPossibleBreakpoints=\"Tyro.getPossibleBreakpoints\",e.SetBreakpointByUrl=\"Tyro.setBreakpointByUrl\",e.SetBreakpoint=\"Tyro.setBreakpoint\",e.RemoveBreakpoint=\"Tyro.removeBreakpoint\",e.REPL=\"Tyro.repl\",e.GetVariableValue=\"Tyro.getVariableValue\",e.SetPauseOnExceptions=\"Tyro.setPauseOnExceptions\",e.SetAsyncCallStackDepth=\"Tyro.setAsyncCallStackDepth\",e.GetProperties=\"Tyro.getProperties\"}(RequestMethod||(RequestMethod={})),function(e){e[e.Non=0]=\"Non\",e[e.NextSticky=1]=\"NextSticky\",e[e.StepOver=2]=\"StepOver\",e[e.StepOut=3]=\"StepOut\"}(BreakStepType||(BreakStepType={})),function(e){e[e.Entry=0]=\"Entry\",e[e.Exit=1]=\"Exit\"}(FingerType||(FingerType={}));var serverConfig={default:{domain:\"hpmweb.alipay.com\"},1:{domain:\"hpmweb.alipay.com\"}};function getServerConfig(){var e=getStartupParams().remoteCh;return e&&serverConfig[e]?serverConfig[e]:serverConfig.default}var appxStackLine=/https:\\/\\/appx\\/af-appx\\.worker\\.min\\.js:\\d+:\\d+/,nativeScriptLine=/https:\\/\\/www\\.alipay\\.com\\/?:\\d+:\\d+|\\[native code\\]/,pluginWorkerStackLine=/https:\\/\\/\\d+\\.hybrid\\.\\S+\\.com\\/__plugins__\\/(\\d+)\\/index\\.worker\\.js:\\d+:\\d+/,appWorkerStackLine=/https:\\/\\/\\d+\\.hybrid\\.\\S+\\.com\\/index\\.worker\\.js:\\d+:\\d+/;function transformSourceUrl(e){try{return pluginWorkerStackLine.test(e)?e.replace(pluginWorkerStackLine,\"Plugin-$1\"):e.replace(appWorkerStackLine,\"App\")}catch(t){return e}}function formatErrorStack(e){var t=e.split(\"\\n\"),r=t[0],n=t.slice(1).filter((function(e){return!appxStackLine.test(e)&&!nativeScriptLine.test(e)})).map(transformSourceUrl);return n.unshift(r),n.join(\"\\n\")}function formatErrorRemoteObject(e){return e.description&&(e.description=formatErrorStack(e.description)),e.preview&&e.preview.description&&(e.preview.description=e.description),e}var TYRO_EXECUTION_CONTEXT_ID=0,TyroUtil=function(){function e(){}return e.throwsMessage=function(e){return\"[Throws: \"+(e?e.message:\"?\")+\"]\"},e.safeGetValueFromPropertyOnObject=function(t,r){if(Object.prototype.hasOwnProperty.call(t,r))try{return t[r]}catch(t){return e.throwsMessage(t)}return t[r]},e.ensureProperties=function(t){var r=[];return function t(n){if(null===n||\"object\"!=typeof n)return n;if(-1!==r.indexOf(n))return\"[Circular]\";if(r.push(n),\"function\"==typeof n.toJSON)try{var s=t(n.toJSON());return r.pop(),s}catch(t){return e.throwsMessage(t)}if(Array.isArray(n)){var i=n.map(t);return r.pop(),i}var o=Object.keys(n).reduce((function(r,s){return r[s]=t(e.safeGetValueFromPropertyOnObject(n,s)),r}),{});return r.pop(),o}(t)},e.safeJSONStringify=function(t,r,n){return JSON.stringify(e.ensureProperties(t),r,n)},e.isWebIDE=function(){return!(\"undefined\"==typeof navigator||!navigator)&&(navigator.swuserAgent||navigator.userAgent||\"\").indexOf(\"AlipayIDE\")>-1},e}(),StickyFinger=function(){function StickyFinger(e,t,r,n){var s=this;this.isWebIDE=!1,this.asyncRequestMethod=\"tyroRequest\",this.host=t,this.contextMap={},this.contextUrlMap={},this.breakpointMap={},this.breakpointIdMap={},this.debuggerMap={},this.originConsoleAPI={},this.requestTaskId=0,this.stickyMsgQueue=[],this.wsMsgQueue=[],this.wsIsOpen=!1,this.instrumentId=r,this.stickyFlag=n.stickyFlag,this.fingerFlag=n.fingerFlag,this.remoteObjectParser=new RemoteObjectParser,this.hookConsole(),this.stickyFlag&&(setTimeout((function(){s.socketTask=my.connectSocket({url:\"wss://\"+getServerConfig().domain+\"/tyro/agent/\"+s.instrumentId,multiple:!0});var e=function(){if(!s.wsIsOpen){s.originConsoleAPI.log(\"[tyro-agent] WebSocket 连接成功\"),s.wsIsOpen=!0;for(var e=0,t=s.wsMsgQueue;e<t.length;e++){var r=t[e];s.socketTask.send({data:r})}s.wsMsgQueue=[]}};s.socketTask.onOpen((function(){e()})),s.socketTask.onClose((function(){s.originConsoleAPI.log(\"[tyro-agent] WebSocket 连接已关闭\")})),s.socketTask.onMessage((function(t){s.wsIsOpen||e(),s.handleStickyAsync(JSON.parse(t.data.data))}))}),2e3),this.breakpointsActive=!0,this.skipAllPauses=!1,this.breakStepType=BreakStepType.Non,this.stackDepth=0,this.pauseOnExceptions=\"none\",this.asyncCallStackDepth=0,this.lastStickyAsyncError=0,this.globalExecutionContext=e,this.evaluateOnCallFrameExpression=\"\",this.stickyNotSendPaused=!1,this.sendStickyParams=!1),this.fingerFlag&&(this.fingerId=0,this.fingerCache=[],this.fingerSendInterval=1e3,this.jsapiCallId=0,setInterval((function(){0!==s.fingerCache.length&&(s.sendPerf(\"Perf.trace\",s.fingerCache),s.fingerCache=[])}),this.fingerSendInterval)),this.isWebIDE=TyroUtil.isWebIDE(),this.isWebIDE&&(this.asyncRequestMethod=\"tyroRequestAsync\")}return StickyFinger.rewritePath=function(e){var t=e;return\".\"===t[0]&&(t=t.replace(\".\",\"\")),t=\"app://\"+(t=t.replace(\"tmp/data/build/\",\"\"))},StickyFinger.processRawContext=function(e){var t={path:this.rewritePath(e.path),contextId:String(e.contextId),scope:{0:[]},function:{},debuggerLine:e.debuggerLine,stickyLine:e.stickyLine};return e.scope&&Object.keys(e.scope).map((function(r){var n=e.scope[r],s=n.shift(),i=t.scope[s];t.scope[r]=i?i.concat(n.filter((function(e){return i.indexOf(e)<0}))):n})),e.function&&Object.keys(e.function).map((function(r){var n=e.function[r];t.function[r]={name:n[0],line:n[1]}})),t},StickyFinger.prototype.register=function(e,t){var r=String(e.contextId),n=StickyFinger.rewritePath(e.path);this.originConsoleAPI.log(\"[tyro-agent] register contextId \"+r+\" path \"+n),this.contextMap[r]||this.breakpointMap[r]?this.originConsoleAPI.warn(\"[tyro-agent] duplicate context register \"+r+\" \"+n):(this.contextMap[r]=StickyFinger.processRawContext(e),this.contextUrlMap[n]=r,this.breakpointMap[r]={},this.debuggerMap[r]=this.contextMap[r].debuggerLine.reduce((function(e,t){return e[t-1]=!0,e}),{}),this.stickyFlag&&this.xhrSend(ResponseEvent.ScriptSource,{scriptSource:t,scriptId:String(r),executionContextId:TYRO_EXECUTION_CONTEXT_ID,url:n}))},StickyFinger.prototype.sticky=function(e,t,r){if(!this.skipAllPauses&&this.breakpointsActive&&((this.debuggerMap[e]||{})[t]||(this.breakpointMap[e]||{})[t]||this.breakStepType===BreakStepType.NextSticky||this.breakStepType===BreakStepType.StepOver&&(new Error).stack.split(\"\\n\").length<=this.stackDepth||this.breakStepType===BreakStepType.StepOut&&(new Error).stack.split(\"\\n\").length<this.stackDepth||!0===this.sendStickyParams)){this.originConsoleAPI.log(\"[tyro-agent] sticky \"+e+\" \"+t),this.breakStepType=BreakStepType.Non;var n={};if(this.stickyNotSendPaused)this.originConsoleAPI.log(\"[tyro-agent] stickyNotSendPaused\");else{if(!this.sendStickyParams){this.originConsoleAPI.log(\"[tyro-agent] sticky sendStickyParams step 1\"),n={callFrames:null,reason:\"other\",hitBreakpoints:[]};var s=this.breakpointMap[e][t];s&&n.hitBreakpoints.push(s);var i=(new Error).stack.split(\"\\n\");return this.stackDepth=i.length,Agent.isPhone?n.callFrames=this.processCallFramesPhone(String(e),t,r,i):n.callFrames=this.processCallFrames(String(e),t,r,i),this.stickyParams=n,this.sendStickyParams=!0,\"(function(){\\n var localObject = {};\\n Agent.getScopeVariables().forEach(function (key) {\\n localObject[key] = (function(){try{return eval(key)}catch(e){return undefined}})();\\n });\\n Agent.inflateStickyParamsObject(localObject);\\n return true;\\n })()\"}this.originConsoleAPI.log(\"[tyro-agent] sticky sendStickyParams step 2\"),n=this.stickyParams,this.sendStickyParams=!1}this.originConsoleAPI.log(\"[tyro-agent] sticky params \"+TyroUtil.safeJSONStringify(n));var o=JSON.parse(this.xhrSend(ResponseEvent.Sticky,n));return this.handleSticky(o)}},StickyFinger.prototype.fingerEntry=function(e,t){var r=this.contextMap[e].path,n=this.contextMap[e].function[t],s=this.generateFingerId(),i={time:Date.now(),file:r,line:n.line,name:n.name,id:s,type:FingerType.Entry};return this.fingerCache.push(i),s},StickyFinger.prototype.fingerExit=function(e,t,r){var n=this.contextMap[e].path,s=this.contextMap[e].function[t],i={time:Date.now(),file:n,line:s.line,name:s.name,id:r,type:FingerType.Exit};this.fingerCache.push(i)},StickyFinger.prototype.sendPerf=function(e,t){self.bugmeAPI?self.bugmeAPI.send({method:e,params:t}):self.document?self.document.addEventListener(\"bugmeInjected\",(function(){self.bugmeAPI.send({method:e,params:t})})):self.addEventListener&&self.addEventListener(\"bugmeInjected\",(function(){self.bugmeAPI.send({method:e,params:t})}))},StickyFinger.prototype.consoleAPICalled=function(e,t){var r=this,n=e;return\"warn\"===e&&(n=\"warning\"),{method:\"Runtime.consoleAPICalled\",params:{type:n,args:Array.from(t).map((function(t){return r.remoteObjectParser.parseObject(t,e)})),executionContextId:TYRO_EXECUTION_CONTEXT_ID,timestamp:Date.now()}}},StickyFinger.prototype.hookConsole=function(){var e=this,t=this;Object.defineProperties(console,[\"debug\",\"log\",\"info\",\"warn\",\"error\",\"table\"].reduce((function(r,n){var s=console[n].bind(console);return e.originConsoleAPI[n]=s,r[n]={value:function(){var e=arguments;if(e.length){try{var r=/^(\\[framework\\]|dispatchEvent|onMessage push|unsupported protocol)/;if(\"string\"==typeof e[0]&&r.test(e[0]))return s.apply(null,e);var i=t.consoleAPICalled(n,e).params;i.args.forEach((function(e){\"error\"===e.subtype&&formatErrorRemoteObject(e)})),t.xhrSend(ResponseEvent.ConsoleAPICalled,i,null,!1)}catch(e){}return s.apply(null,e)}}},r}),{}))},StickyFinger.prototype.inflateStickyParamsObject=function(e){if(0!==this.stickyParams.callFrames.length){var t=this.remoteObjectParser.parseObject(e).objectId;this.stickyParams.callFrames[0].scopeChain.push({type:\"local\",name:this.stickyParams.callFrames[0].functionName,object:{className:\"Object\",description:\"Object\",objectId:t,type:\"object\"}})}},StickyFinger.prototype.processCallFrames=function(e,t,r,n){var s=this,i=[],o=n.slice(3,n.length).map((function(e){return e.substr(0,e.lastIndexOf(\":\")).replace(\" at \",\"\").replace(\" (\",\":\")})),a=0,c=!0;return o.map((function(t){var n=t.split(\":\"),o=n[0],p=s.contextMap[e].path,u=Number(n[n.length-1]),l=s.contextUrlMap[p]||\"none\",y=a+\":\"+u+\":\"+p;c&&(s.scopeVariables=void 0!==s.contextMap[e]?s.contextMap[e].scope[r]:[],c=!1);var h={callFrameId:y,functionName:o,location:{scriptId:l,lineNumber:u,columnNumber:0},url:p,scopeChain:[],this:{}};i.push(h),a+=1})),i},StickyFinger.prototype.processCallFramesPhone=function(e,t,r,n){var s=this,i=[],o=n.slice(2,n.length).map((function(e){return e.substr(0,e.lastIndexOf(\":\")).replace(\" at \",\"\").replace(\" (\",\":\").replace(\"@\",\":\")})),a=0,c=!0;return o.map((function(n){var o=n.split(\":\"),p=o[0],u=s.contextMap[e].path,l=Number(o[o.length-1]),y=s.contextUrlMap[u]||\"none\",h=a+\":\"+l+\":\"+u;c&&(s.scopeVariables=void 0!==s.contextMap[e]?s.contextMap[e].scope[r]:[],s.originConsoleAPI.log(\"scopeVariables \"+TyroUtil.safeJSONStringify(s.scopeVariables)),s.originConsoleAPI.log(\"scopeVariables \"+TyroUtil.safeJSONStringify(s.contextMap[e])+\" \"+s.contextMap[e].scope+\" \"+r),c=!1);var d={callFrameId:h,functionName:p,location:{scriptId:y,lineNumber:t,columnNumber:0},url:u,scopeChain:[],this:{}};i.push(d),a+=1})),i},StickyFinger.prototype.stickyAsyncLoop=function(){this.xhrSend(ResponseEvent.StickyAsync,{})},StickyFinger.prototype.xhrSendJSAPI=function(e,t,r,n){var s,i=this;if(e===ResponseEvent.Sticky){var o;this.stickyMsgQueue.length>0?(this.stickyMsgQueue.push({method:this.stickyNotSendPaused?ResponseEvent.StickyNotSendPaused:ResponseEvent.Sticky,params:t}),o=TyroUtil.safeJSONStringify(this.stickyMsgQueue),this.stickyMsgQueue=[]):o=TyroUtil.safeJSONStringify({method:this.stickyNotSendPaused?ResponseEvent.StickyNotSendPaused:ResponseEvent.Sticky,params:t}),my.call(\"showRemoteDebugMask\",{text:\" \",buttonTitle:\"断点命中\",hide:!1}),this.stickyNotSendPaused=!1;var a=Date.now(),c=my.callSync(\"tyroRequest\",{url:this.host+\"/tyro/agent\",method:\"POST\",headers:{\"Content-Type\":\"application/json;charset=UTF-8\",\"instrument-id\":this.instrumentId},data:o,timeout:6e5,blockTimeout:6e5,dataType:\"json\",requestTaskId:this.requestTaskId++});return my.call(\"showRemoteDebugMask\",{hide:!0}),c.error||null===c?(null===c?this.originConsoleAPI.error(\"[tyro-agent] xhrSend error result is \"+c):this.originConsoleAPI.error(\"[tyro-agent] xhrSend error \"+c.error+\" \"+c.errorMessage),Date.now()-a>=5e3?this.xhrSendJSAPI(e,t,r,n):TyroUtil.safeJSONStringify({method:\"default\"})):200!==c.status?(this.originConsoleAPI.error(\"[tyro-agent] xhrSend status fail \"+e+\" \"+c.status),TyroUtil.safeJSONStringify({method:\"default\"})):c.data}if(e===ResponseEvent.StickyAsync){var p=TyroUtil.safeJSONStringify({method:ResponseEvent.StickyAsync,params:t});this.originConsoleAPI.info(\"[tyro-agent] xhrSend async send \"+p),my.call(this.asyncRequestMethod,{url:this.host+\"/tyro/agent\",method:\"POST\",headers:{\"Content-Type\":\"application/json;charset=UTF-8\",\"instrument-id\":this.instrumentId},data:p,timeout:6e5,dataType:\"json\",requestTaskId:this.requestTaskId++,success:function(e){i.lastStickyAsyncError=0,i.stickyAsyncLoop(),200===e.status?(i.originConsoleAPI.info(\"[tyro-agent] xhrSend async success \"+e.status+\" \"+e.data),i.handleStickyAsync(JSON.parse(e.data))):i.originConsoleAPI.error(\"[tyro-agent] xhrSend async fail \"+e.status+\" \"+e.data)},fail:function(e){i.lastStickyAsyncError>=3?setTimeout((function(){i.stickyAsyncLoop()}),3e3):(i.lastStickyAsyncError+=1,i.stickyAsyncLoop()),i.originConsoleAPI.error(\"[tyro-agent] xhrSend async error \"+TyroUtil.safeJSONStringify(e))}})}switch(e){case ResponseEvent.ById:s={id:r,result:t};break;case ResponseEvent.ScriptSource:s={method:ResponseEvent.ScriptSource,params:t};break;case ResponseEvent.Resumed:s={method:ResponseEvent.Resumed,params:t};break;case ResponseEvent.ConsoleAPICalled:s={method:ResponseEvent.ConsoleAPICalled,params:t};break;default:return}n?this.stickyMsgQueue.push(s):this.wsIsOpen?this.socketTask.send({data:TyroUtil.safeJSONStringify(s)}):this.wsMsgQueue.push(TyroUtil.safeJSONStringify(s))},StickyFinger.prototype.xhrSend=function(e,t,r,n){var s=this;if(Agent.isPhone)return this.xhrSendJSAPI(e,t,r,n);var i,o=new XMLHttpRequest;if(e===ResponseEvent.Sticky){var a;if(o.open(\"POST\",this.host+\"/tyro/agent\",!1),o.setRequestHeader(\"Content-Type\",\"application/json;charset=UTF-8\"),o.setRequestHeader(\"instrument-id\",this.instrumentId),this.stickyMsgQueue.length>0){this.stickyMsgQueue.push({method:this.stickyNotSendPaused?ResponseEvent.StickyNotSendPaused:ResponseEvent.Sticky,params:t});try{a=TyroUtil.safeJSONStringify(this.stickyMsgQueue)}catch(e){this.originConsoleAPI.error(e),a=TyroUtil.safeJSONStringify({method:this.stickyNotSendPaused?ResponseEvent.StickyNotSendPaused:ResponseEvent.Sticky,params:t})}finally{this.stickyMsgQueue=[]}}else a=TyroUtil.safeJSONStringify({method:this.stickyNotSendPaused?ResponseEvent.StickyNotSendPaused:ResponseEvent.Sticky,params:t});if(this.stickyNotSendPaused=!1,o.send(a),200===o.status)return o.responseText;throw new Error(\"[sticky-finger] xhrSend error \"+e+\" \"+o.status)}if(e===ResponseEvent.StickyAsync)return o.open(\"POST\",this.host+\"/tyro/agent\",!0),o.setRequestHeader(\"Content-Type\",\"application/json;charset=UTF-8\"),o.setRequestHeader(\"instrument-id\",this.instrumentId),o.onload=function(){if(s.lastStickyAsyncError=0,s.stickyAsyncLoop(),4!==o.readyState||200!==o.status)throw new Error(\"[tyro-agent] xhrSend async fail \"+e+\" \"+o.readyState+\" \"+o.status);s.handleStickyAsync(JSON.parse(o.responseText))},o.onerror=function(){throw s.lastStickyAsyncError>=3?setTimeout((function(){s.stickyAsyncLoop()}),3e3):(s.lastStickyAsyncError+=1,s.stickyAsyncLoop()),new Error(\"[tyro-agent] xhrSend async error \"+e+\" \"+o.readyState+\" \"+o.status)},void o.send(TyroUtil.safeJSONStringify({method:ResponseEvent.StickyAsync,params:t}));switch(o.open(\"POST\",this.host+\"/tyro/agent\",!0),o.setRequestHeader(\"Content-Type\",\"application/json;charset=UTF-8\"),o.setRequestHeader(\"instrument-id\",this.instrumentId),o.onload=function(){if(4!==o.readyState||200!==o.status)throw new Error(\"[tyro-agent] xhrSend async fail \"+e+\" \"+o.readyState+\" \"+o.status)},o.onerror=function(){throw new Error(\"[tyro-agent] xhrSend async error \"+e+\" \"+o.readyState+\" \"+o.status)},e){case ResponseEvent.ById:i={id:r,result:t};break;case ResponseEvent.ScriptSource:i={method:ResponseEvent.ScriptSource,params:t};break;case ResponseEvent.Resumed:i={method:ResponseEvent.Resumed,params:t};break;case ResponseEvent.ConsoleAPICalled:i={method:ResponseEvent.ConsoleAPICalled,params:t};break;default:return}n?this.stickyMsgQueue.push(i):o.send(TyroUtil.safeJSONStringify(i))},StickyFinger.prototype.handleSticky=function(e){var t=e.id,r=e.method,n=e.params;switch(r){case RequestMethod.DiscardConsoleEntries:return this.stickyNotSendPaused=!0,this.originConsoleAPI.log(\"[tyro-agent] DiscardConsoleEntries success\"),\"true\";case RequestMethod.CallFunctionOn:return this.stickyNotSendPaused=!0,this.originConsoleAPI.log(\"[tyro-agent] CallFunctionOn TODO sticky\"),\"true\";case RequestMethod.CompileScript:return this.stickyNotSendPaused=!0,this.originConsoleAPI.log(\"[tyro-agent] CompileScript success, \"+TyroUtil.safeJSONStringify(n)),\"true\";case RequestMethod.SetBreakpointsActive:return this.stickyNotSendPaused=!0,this.breakpointsActive=n.active,this.originConsoleAPI.log(\"[tyro-agent] SetBreakpointsActive success, breakpointsActive \"+this.breakpointsActive),this.breakStepType=BreakStepType.NextSticky,\"true\";case RequestMethod.SetSkipAllPauses:return this.stickyNotSendPaused=!0,this.skipAllPauses=n.skip,this.originConsoleAPI.log(\"[tyro-agent] SetSkipAllPauses success, skipAllPauses \"+this.skipAllPauses),this.breakStepType=BreakStepType.NextSticky,\"true\";case RequestMethod.Resume:return this.xhrSend(ResponseEvent.Resumed,{}),this.originConsoleAPI.log(\"[tyro-agent] Resume success\"),\"false\";case RequestMethod.StepInto:return this.xhrSend(ResponseEvent.Resumed,{}),this.breakStepType=BreakStepType.NextSticky,this.originConsoleAPI.log(\"[tyro-agent] StepInto success\"),\"false\";case RequestMethod.StepOver:return this.xhrSend(ResponseEvent.Resumed,{}),this.breakStepType=BreakStepType.StepOver,this.originConsoleAPI.log(\"[tyro-agent] StepOver success\"),\"false\";case RequestMethod.StepOut:return this.xhrSend(ResponseEvent.Resumed,{}),this.breakStepType=BreakStepType.StepOut,this.originConsoleAPI.log(\"[tyro-agent] StepOut success\"),\"false\";case RequestMethod.GetPossibleBreakpoints:return this.stickyNotSendPaused=!0,this.getPossibleBreakpoints(t,n,!0),this.breakStepType=BreakStepType.NextSticky,\"true\";case RequestMethod.SetBreakpointByUrl:return this.stickyNotSendPaused=!0,this.setBreakpointByUrl(t,n,!0),this.breakStepType=BreakStepType.NextSticky,\"true\";case RequestMethod.SetBreakpoint:return this.stickyNotSendPaused=!0,this.setBreakpoint(t,n,!0),this.breakStepType=BreakStepType.NextSticky,\"true\";case RequestMethod.RemoveBreakpoint:return this.stickyNotSendPaused=!0,this.removeBreakpoint(t,n),this.breakStepType=BreakStepType.NextSticky,\"true\";case RequestMethod.REPL:return this.stickyNotSendPaused=!0,this.breakStepType=BreakStepType.NextSticky,\"(function(){(function(){\"+n.statement+\"})();return true})()\";case RequestMethod.GetVariableValue:this.stickyNotSendPaused=!0;var s=e.params;return this.breakStepType=BreakStepType.NextSticky,\"(function(){(function(){\\n Agent.variableValue({\"+s.map((function(e){return e+\": (function(){try{return \"+e+\"}catch(e){return undefined}})()\"})).join(\",\")+\"})\\n })();return true})()\";case RequestMethod.SetPauseOnExceptions:return this.stickyNotSendPaused=!0,this.setPauseOnExceptions(t,n),this.breakStepType=BreakStepType.NextSticky,\"true\";case RequestMethod.SetAsyncCallStackDepth:return this.stickyNotSendPaused=!0,this.setAsyncCallStackDepth(t,n),this.breakStepType=BreakStepType.NextSticky,\"true\";case RequestMethod.EvaluateOnCallFrame:return this.stickyNotSendPaused=!0,this.evaluateOnCallFrameExpression=n.expression,this.breakStepType=BreakStepType.NextSticky,\"(function(){\\n var tyroRet,tyroErr;\\n try{tyroRet=eval(Agent.getEvaluateOnCallFrameExpression())}\\n catch(e){tyroErr=e}\\n Agent.evaluateOnCallFrame(\"+t+\",tyroRet,tyroErr,\"+n.generatePreview+\");\\n return true;\\n })()\";case RequestMethod.GetProperties:return this.stickyNotSendPaused=!0,this.getProperties(t,n,!0),this.breakStepType=BreakStepType.NextSticky,\"true\";default:return this.breakStepType=BreakStepType.NextSticky,\"true\"}},StickyFinger.prototype.handleStickyAsync=function(e){var t=e.id,r=e.method,n=e.params;switch(this.originConsoleAPI.log(\"[tyro-agent] handleStickyAsync \"+t+\", \"+r+\", \"+n),r){case RequestMethod.DiscardConsoleEntries:this.originConsoleAPI.log(\"[tyro-agent] DiscardConsoleEntries success\");break;case RequestMethod.Evaluate:this.originConsoleAPI.log(\"[tyro-agent] Evaluate start, expression \"+n.expression);var s=this.evaluate(this.globalExecutionContext,t,n);this.originConsoleAPI.log(\"[tyro-agent] Evaluate success, expression \"+n.expression+\", result \"+TyroUtil.safeJSONStringify(s));break;case RequestMethod.CallFunctionOn:this.originConsoleAPI.log(\"[tyro-agent] CallFunctionOn TODO stickyAsync\");break;case RequestMethod.CompileScript:this.originConsoleAPI.log(\"[tyro-agent] CompileScript success, params \"+TyroUtil.safeJSONStringify(n));break;case RequestMethod.SetBreakpointsActive:this.breakpointsActive=n.active,this.originConsoleAPI.log(\"[tyro-agent] SetBreakpointsActive success, breakpointsActive \"+this.breakpointsActive);break;case RequestMethod.SetSkipAllPauses:this.skipAllPauses=n.skip,this.originConsoleAPI.log(\"[tyro-agent] SetSkipAllPauses success, skipAllPauses \"+this.skipAllPauses);break;case RequestMethod.Pause:this.breakStepType=BreakStepType.NextSticky,this.originConsoleAPI.log(\"[tyro-agent] Pause success\");break;case RequestMethod.GetPossibleBreakpoints:this.getPossibleBreakpoints(t,n);break;case RequestMethod.SetBreakpointByUrl:this.setBreakpointByUrl(t,n);break;case RequestMethod.SetBreakpoint:this.setBreakpoint(t,n);break;case RequestMethod.RemoveBreakpoint:this.removeBreakpoint(t,n);break;case RequestMethod.SetPauseOnExceptions:this.setPauseOnExceptions(t,n);break;case RequestMethod.SetAsyncCallStackDepth:this.setAsyncCallStackDepth(t,n);break;case RequestMethod.GetProperties:this.getProperties(t,n)}},StickyFinger.prototype.evaluateOnCallFrame=function(e,t,r,n){var s;if(r){var i=this.remoteObjectParser.parseObject(r);formatErrorRemoteObject(i),s={exceptionDetails:{columnNumber:20,exception:i,exceptionId:1,lineNumber:0,text:\"Uncaught\"},result:i}}else s={result:this.remoteObjectParser.parseObject(t)};return this.xhrSend(ResponseEvent.ById,s,e,!0),s},StickyFinger.prototype.evaluate=function(executionContext,id,params){var returnValue,error,result;try{returnValue=function(expression){return\"function\"==typeof eval?eval(expression):Agent.evalReference(expression)}.call(executionContext,params.expression)}catch(e){error=e}if(error){var errorRemoteObject=this.remoteObjectParser.parseObject(error);formatErrorRemoteObject(errorRemoteObject),result={exceptionDetails:{columnNumber:20,exception:errorRemoteObject,exceptionId:1,lineNumber:0,text:\"Uncaught\"},result:errorRemoteObject}}else result={result:this.remoteObjectParser.parseObject(returnValue)};return this.xhrSend(ResponseEvent.ById,result,id),result},StickyFinger.prototype.getPossibleBreakpoints=function(e,t,r){var n=t.scriptId,s=t.startLine,i=t.endLine===t.startLine?t.endLine+1:t.endLine,o={locations:[]};if(this.contextMap[n])for(var a=this.contextMap[n].stickyLine,c=s;c<i;c++)a.includes(c)&&o.locations.push({scriptId:n,lineNumber:c,columnNumber:0});else this.originConsoleAPI.warn(\"[tyro-agent] getPossibleBreakpoints no scriptId \"+n+\" in contextMap\");this.originConsoleAPI.log(\"[tyro-agent] getPossibleBreakpoints success, result: \"+TyroUtil.safeJSONStringify(o)),this.xhrSend(ResponseEvent.ById,o,e,r)},StickyFinger.prototype.setBreakpointByUrl=function(e,t,r){var n=t.scriptId,s=t.url,i=t.lineNumber;if(this.contextMap[n])if(this.contextMap[n].stickyLine.includes(i)){var o=n+\":\"+i+\":0:\"+s,a={breakpointId:o,locations:[{scriptId:n,lineNumber:i,columnNumber:0}]};this.breakpointMap[n][i]=o,this.breakpointIdMap[o]={contextId:n,line:i},this.originConsoleAPI.log(\"[tyro-agent] setBreakpointByUrl success, scriptId: \"+n+\", url: \"+s+\", lineNumber: \"+i),this.xhrSend(ResponseEvent.ById,a,e,r)}else this.originConsoleAPI.warn(\"[tyro-agent] setBreakpointByUrl not sticky line, scriptId: \"+n+\", url: \"+s+\", lineNumber: \"+i);else this.originConsoleAPI.warn(\"[tyro-agent] setBreakpointByUrl no contextMap, scriptId: \"+n)},StickyFinger.prototype.setBreakpoint=function(e,t,r){var n=t.scriptId,s=t.lineNumber;if(this.contextMap[n])if(this.contextMap[n].stickyLine.includes(s)){var i=n+\":\"+s+\":0\",o={breakpointId:i,actualLocation:{scriptId:n,lineNumber:s,columnNumber:0}};this.breakpointMap[n][s]=i,this.breakpointIdMap[i]={contextId:n,line:s},this.originConsoleAPI.log(\"[tyro-agent] setBreakpoint success, scriptId: \"+n+\", lineNumber: \"+s),this.xhrSend(ResponseEvent.ById,o,e,r)}else this.originConsoleAPI.warn(\"[tyro-agent] setBreakpoint not sticky line, scriptId: \"+n+\", lineNumber: \"+s);else this.originConsoleAPI.warn(\"[tyro-agent] setBreakpoint no contextMap, scriptId: \"+n)},StickyFinger.prototype.removeBreakpoint=function(e,t){var r=t.breakpointId,n=this.breakpointIdMap[r];n||this.originConsoleAPI.warn(\"[tyro-agent] removeBreakpoint no breakpointId \"+r);var s=n.contextId,i=n.line;delete this.breakpointMap[s][i],this.originConsoleAPI.log(\"[tyro-agent] removeBreakpoint success, breakpointId: \"+r+\", scriptId: \"+s+\", line: \"+i)},StickyFinger.prototype.setPauseOnExceptions=function(e,t){t&&[\"none\",\"uncaught\",\"all\"].includes(t.state)?(this.pauseOnExceptions=t.state,this.originConsoleAPI.log(\"[tyro-agent] setPauseOnExceptions success, pauseOnExceptions state \"+this.pauseOnExceptions)):this.originConsoleAPI.warn(\"[tyro-agent] setPauseOnExceptions state invalid: \"+TyroUtil.safeJSONStringify(t))},StickyFinger.prototype.setAsyncCallStackDepth=function(e,t){!t||\"number\"!=typeof t.maxDepth||t.maxDepth<0?this.originConsoleAPI.warn(\"[tyro-agent] setAsyncCallStackDepth maxDepth invalid: \"+TyroUtil.safeJSONStringify(t)):(this.asyncCallStackDepth=t.maxDepth,this.originConsoleAPI.log(\"[tyro-agent] setAsyncCallStackDepth success, maxDepth \"+this.asyncCallStackDepth))},StickyFinger.prototype.getProperties=function(e,t,r){this.xhrSend(ResponseEvent.ById,this.remoteObjectParser.getProperties(t),e,r)},StickyFinger.prototype.generateFingerId=function(){return this.fingerId+=1,this.fingerId},StickyFinger}(),Agent=function(){function e(t,r){if(e.singleton)return e.singleton;this.host=\"https://\"+getServerConfig().domain,this.stickyFinger=new StickyFinger(\"undefined\"!=typeof window?window:self,this.host,t,r)}return e.getShadowMethod=function(){this.globalReference=self,\"function\"==typeof eval?this.evalReference=eval:\"function\"==typeof __eval&&(this.evalReference=__eval)},e.setShadowMethod=function(){this.globalReference.eval=this.evalReference},e.setInstrumentId=function(e){this.instrumentId=e},e.register=function(t,r){if(!e.singleton){if(!this.instrumentId&&\"undefined\"!=typeof my)try{this.instrumentId=getStartupParams().tyroId}catch(e){}e.instance(this.instrumentId,t)}e.singleton.stickyFinger.register(t,r)},e.sticky=function(t,r,n){return e.singleton.stickyFinger.sticky(t,r,n)},e.getEvaluateOnCallFrameExpression=function(){return e.singleton.stickyFinger.evaluateOnCallFrameExpression},e.evaluateOnCallFrame=function(t,r,n,s){return e.singleton.stickyFinger.evaluateOnCallFrame(t,r,n,s)},e.getScopeVariables=function(){return e.singleton.stickyFinger.scopeVariables},e.inflateStickyParamsObject=function(t){return e.singleton.stickyFinger.inflateStickyParamsObject(t)},e.entry=function(t,r){return e.singleton.stickyFinger.fingerEntry(t,r)},e.exit=function(t,r,n){e.singleton.stickyFinger.fingerExit(t,r,n)},e.instance=function(t,r){e.singleton=new e(t,r)},e.isPhone=!0,e.instrumentId=null,e}();Agent.getShadowMethod();var globalReference=\"undefined\"!=typeof window?window:self;globalReference.Agent||(globalReference.StickyFinger=StickyFinger,globalReference.Agent=Agent)}();\n"}
|
|
1
|
+
{"bugmeRRemote":"<script snapshot-delete=\"\">!function(){\"use strict\";var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};function t(t,n){if(\"function\"!=typeof n&&null!==n)throw new TypeError(\"Class extends value \"+String(n)+\" is not a constructor or null\");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}var n,r=function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function o(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{u(r.next(e))}catch(e){i(e)}}function a(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))}function i(e,t){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},\"function\"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(a){return function(u){return function(a){if(n)throw new TypeError(\"Generator is already executing.\");for(;i&&(i=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){s.label=a[1];break}if(6===a[0]&&s.label<o[1]){s.label=o[1],o=a;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(a);break}o[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(e,s)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,u])}}}function s(e){var t=\"function\"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&\"number\"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?\"Object is not iterable.\":\"Symbol.iterator is not defined.\")}!function(e){e.pageResume=\"pageResume\",e.pagePause=\"pagePause\",e.resume=\"resume\",e.hashchange=\"hashchange\"}(n||(n={}));var a=function(e,t){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function u(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Class extends value \"+String(t)+\" is not a constructor or null\");function n(){this.constructor=e}a(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function c(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{u(r.next(e))}catch(e){i(e)}}function a(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))}function l(e,t){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},\"function\"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(a){return function(u){return function(a){if(n)throw new TypeError(\"Generator is already executing.\");for(;i&&(i=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){s.label=a[1];break}if(6===a[0]&&s.label<o[1]){s.label=o[1],o=a;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(a);break}o[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(e,s)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,u])}}}var d={0:{openchannel:\"openchannel.alipay.com\",hpmweb:\"hpmweb.alipay.com\"},1:{openchannel:\"miniprogram.alipay.com\",hpmweb:\"hpmweb.alipay.com\"},2:{openchannel:\"openchannel-pre.alipay.com\",hpmweb:\"hpmweb-pre.alipay.com\"}};function h(e,t){for(var n=[],r=0,o=e.split(t);r<o.length;r++){var i=o[r];n.push(parseInt(i,10))}return n}var p,f=function(){function e(e){this.url=\"\",this.opened=!1,e&&(this.url=e),this.onSocketError=this.onSocketError.bind(this),this.onSocketClose=this.onSocketClose.bind(this),this.onSocketMessage=this.onSocketMessage.bind(this),this.onSocketOpen=this.onSocketOpen.bind(this)}return Object.defineProperty(e.prototype,\"isSocketOpened\",{get:function(){return this.opened},enumerable:!1,configurable:!0}),e.prototype.setUrl=function(e){this.url=e},e}();\"undefined\"!=typeof WebSocket&&WebSocket.OPEN&&(p=WebSocket),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.messageBeforeSocketOpen=[],t}u(t,e),t.prototype.open=function(){var e=this;if(!this.url)throw new Error(\"WebSocket url required\");this.socket=new p(this.url),this.socket.onopen=this.onSocketOpen,this.socket.onmessage=function(t){\"string\"==typeof t.data?e.onSocketMessage(t.data):console.warn(\"[DEBUG] invalid message\",t.data)},this.socket.onclose=this.onSocketClose,this.socket.onerror=this.onSocketError},t.prototype.close=function(){this.socket&&this.socket.close()},t.prototype.sendSocketMessage=function(e){var t=\"string\"==typeof e?e:JSON.stringify(e);t.length>5e6||(this.opened?this.socket.send(t):this.messageBeforeSocketOpen.push(t))},t.prototype.onSocketMessage=function(e){},t.prototype.onSocketOpen=function(){var e=this;this.opened=!0,this.messageBeforeSocketOpen.length&&(this.messageBeforeSocketOpen.forEach((function(t){e.sendSocketMessage(t)})),this.messageBeforeSocketOpen=[])},t.prototype.onSocketClose=function(){this.opened=!1,console.log(\"[DEBUG] connection closed\")},t.prototype.onSocketError=function(e){console.error(\"[DEBUG] connection onerror\",e)}}(f),function(e){function t(t){var n=e.call(this,t)||this;n.messageBeforeSocketOpen=[],n.useFromRemoteDebugFlag=!1;var r=function(e){var t=(\"undefined\"!=typeof navigator&&(navigator.swuserAgent||navigator.userAgent)||\"\").match(/Ariver\\/(\\d+\\.\\d+\\.\\d+)/);if(t)return t[1]}();return r&&function(e,t){if(e){for(var n=h(e,\".\"),r=h(t,\".\"),o=0,i=0,s=void 0,a=void 0;i<n.length;i++){if((s=r[i]||0)>(a=n[i]||0)){o=-1;break}if(s<a){o=1;break}}return o}return 0}(r,\"1.1.0\")>=0&&(n.useFromRemoteDebugFlag=!0),n}u(t,e),t.prototype.open=function(){var e=this;this.socketTask=AFAppX.bridge.connectSocket({fromRemoteDebug:this.useFromRemoteDebugFlag,url:this.url,multiple:!0,fail:function(t){e.onSocketError(t)}}),this.socketTask.onOpen((function(){e.handleSocketOpen()})),this.socketTask.onError((function(t){e.onSocketError(t.data)})),this.socketTask.onClose((function(){e.opened=!1,e.onSocketClose()})),this.socketTask.onMessage((function(t){e.opened||e.handleSocketOpen(),e.onSocketMessage(t.data.data)}))},t.prototype.sendSocketMessage=function(e){var t=\"string\"==typeof e?e:JSON.stringify(e);t.length>5e6||(this.opened?this.socketTask.send({fromRemoteDebug:this.useFromRemoteDebugFlag,data:t,isBuffer:!1}):this.messageBeforeSocketOpen.push(t))},t.prototype.close=function(){this.opened&&this.socketTask.close({fromRemoteDebug:this.useFromRemoteDebugFlag})},t.prototype.onSocketMessage=function(e){},t.prototype.onSocketOpen=function(){},t.prototype.onSocketError=function(e){},t.prototype.onSocketClose=function(){},t.prototype.handleSocketOpen=function(){var e=this;this.opened||(this.opened=!0,this.messageBeforeSocketOpen.length&&(this.messageBeforeSocketOpen.forEach((function(t){e.sendSocketMessage(t)})),this.messageBeforeSocketOpen=[]),this.onSocketOpen())}}(f);var g={\"本次真机调试已结束,请重新生成调试版本\":function(e){return\"本次真机调试已结束,请重新生成调试版本。\\n \"+e.reason},\"调试结束\":\"调试结束\",\"callExitApp_退出\":\"退出\",\"退出\":\"退出\",\"准备中\":\"准备中\",\"已断开\":\"已断开\",\"已连接\":\"已连接\",\"真机调试{text}\":function(e){return\"真机调试\"+e.text}},v={\"本次真机调试已结束,请重新生成调试版本\":function(e){return\"Debug interrupted. Scan debug QR code to restart debugging.\"},\"调试结束\":\"Debugging Ended\",\"callExitApp_退出\":\"OK\",\"退出\":\"Done\",\"准备中\":\"Connecting\",\"已断开\":\"Disconnected\",\"已连接\":\"Connected\",\"真机调试{text}\":function(e){return\"\"+e.text}};function m(e){switch(e){case\"zhCN\":case\"zh-SG\":case\"zh-HK\":case\"zh-TW\":case\"zh-Hans\":case\"zh-CN\":return\"zhCN\";default:return\"enUS\"}}var y=function(){function e(e){var t={zhCN:g,enUS:v};this.i18nMessages=t[m(e)]}return e.getLocaleFromNavigator=function(){return m(navigator.language)},e.prototype.format=function(e,t){var n=this.i18nMessages[e];return\"string\"==typeof n?n:\"function\"==typeof n?n(t):e},e}(),b=function(){function e(e,t,n){var r=this;this.connection=e,this.uuid=t,this.agentId=n,e.addOnCloseHandler((function(){return c(r,void 0,void 0,(function(){return l(this,(function(e){switch(e.label){case 0:return[4,w()];case 1:return e.sent(),this.checkHostBeforeAgentConnect(),[2]}}))}))})),this.startDebugSession=this.startDebugSession.bind(this)}return e.prototype.setup=function(){window.location.hash?this.startDebugSession():window.addEventListener(n.hashchange,this.startDebugSession)},e.prototype.checkHostBeforeAgentConnect=function(){var e=this;if(this.connection.isActivated){if(\"string\"==typeof __BUGME_EXTERNAL_URL__&&__BUGME_EXTERNAL_URL__)return this.connection.open(),void this.emitDocumentUpdated();var t=new XMLHttpRequest;t.onloadend=function(){return c(e,void 0,void 0,(function(){return l(this,(function(e){switch(e.label){case 0:try{if(console.log(\"bugme check host response\",t.responseText),JSON.parse(t.responseText||\"{}\").status)return this.connection.open(),this.emitDocumentUpdated(),[2]}catch(e){}return[4,w()];case 1:return e.sent(),this.checkHostBeforeAgentConnect(),[2]}}))}))},t.timeout=5e3;var n,r,o=k();o.startsWith(\"wss\")?(n=\"https\",r=o.split(\"wss://\")[1]):o.startsWith(\"ws\")&&(n=\"http\",r=o.split(\"ws://\")[1]),t.open(\"GET\",n+\"://\"+r+\"/bugme/channel/checkHost?id=\"+this.uuid),t.send()}},e.prototype.emitDocumentUpdated=function(){this.connection.sendSocketMessage(JSON.stringify({method:\"DOM.documentUpdated\",params:{bugmeAgentId:this.agentId}}))},e.prototype.resetAxmlVisitedState=function(){},e.prototype.startDebugSession=function(){var e,t=this;window.removeEventListener(n.hashchange,this.startDebugSession),document.addEventListener(n.pageResume,(function(){t.connection.activate(),e=setTimeout((function(){t.connection.isSocketOpened&&t.emitDocumentUpdated()}),500)})),document.addEventListener(n.pagePause,(function(){t.connection.inActivate(),t.resetAxmlVisitedState(),clearTimeout(e)})),document.addEventListener(n.resume,(function(){t.connection.activate(),t.connection.isSocketOpened||t.checkHostBeforeAgentConnect()}))},e}();function _(){return c(this,void 0,void 0,(function(){return l(this,(function(e){return window.AlipayJSBridge?[2]:[2,new Promise((function(e){document.addEventListener(\"AlipayJSBridgeReady\",e)}))]}))}))}function w(e){return void 0===e&&(e=2e3),new Promise((function(t){setTimeout((function(){t()}),e)}))}function S(){var e,t;return\"string\"==typeof __BUGME_EXTERNAL_CHANNEL__&&__BUGME_EXTERNAL_CHANNEL__?__BUGME_EXTERNAL_CHANNEL__:null===(t=null===(e=window.AlipayJSBridge)||void 0===e?void 0:e.startupParams)||void 0===t?void 0:t.channelId}function I(e,t){return\"string\"==typeof __BUGME_EXTERNAL_URL__&&/^wss?:\\/\\//.test(__BUGME_EXTERNAL_URL__)?__BUGME_EXTERNAL_URL__:(console.log(\"bugme uuid=\"+e+\", agentId=\"+t),e&&t?k()+\"/bugme/agent/\"+e+\"?agentId=\"+t:\"\")}function k(){var e,t,n,r,o=null===(t=null===(e=window.AlipayJSBridge)||void 0===e?void 0:e.startupParams)||void 0===t?void 0:t.remoteCh,i=null===(r=null===(n=window.AlipayJSBridge)||void 0===n?void 0:n.startupParams)||void 0===r?void 0:r.channel;return null!=i?i:\"wss://\"+(d[o]||d[0]).hpmweb}function C(){return/LyraVM/i.test(navigator.userAgent)||\"string\"==typeof __BUGME_EXTERNAL_CHANNEL__&&__BUGME_EXTERNAL_CHANNEL__}function E(){var e=new y(navigator.language);window.AlipayJSBridge.call(\"alert\",{title:e.format(\"调试结束\"),button:e.format(\"callExitApp_退出\")},(function(){window.AlipayJSBridge.call(\"exitApp\")}))}function T(e){var t=e.appxRouteFramework;return!0===t||\"YES\"===t}function x(e,t,n,r,o){var i,s,a=null,u=0;o||(o={});var c=function(){u=!1===o.leading?0:Date.now(),a=null,s=e.apply(null,i),i=null};return function(){for(var l=[],d=0;d<arguments.length;d++)l[d]=arguments[d];var h=Date.now();u||!1!==o.leading||(u=h);var p=t-(h-u);return i=l,p<=0||p>t?(r(a),a=null,u=h,s=e.apply(null,i),i=null):a||!1===o.trailing||(a=n(c,p)),s}}function O(e,t){for(var n=[],r=0,o=e.split(t);r<o.length;r++){var i=o[r];n.push(parseInt(i,10))}return n}var N,A=function(){function e(e){this.url=\"\",this.opened=!1,e&&(this.url=e),this.onSocketError=this.onSocketError.bind(this),this.onSocketClose=this.onSocketClose.bind(this),this.onSocketMessage=this.onSocketMessage.bind(this),this.onSocketOpen=this.onSocketOpen.bind(this)}return Object.defineProperty(e.prototype,\"isSocketOpened\",{get:function(){return this.opened},enumerable:!1,configurable:!0}),e.prototype.setUrl=function(e){this.url=e},e}();\"undefined\"!=typeof WebSocket&&WebSocket.OPEN&&(N=WebSocket);var M=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.messageBeforeSocketOpen=[],t}return t(n,e),n.prototype.open=function(){var e=this;if(!this.url)throw new Error(\"WebSocket url required\");this.socket=new N(this.url),this.socket.onopen=this.onSocketOpen,this.socket.onmessage=function(t){\"string\"==typeof t.data?e.onSocketMessage(t.data):console.warn(\"[DEBUG] invalid message\",t.data)},this.socket.onclose=this.onSocketClose,this.socket.onerror=this.onSocketError},n.prototype.close=function(){this.socket&&this.socket.close()},n.prototype.sendSocketMessage=function(e){var t=\"string\"==typeof e?e:JSON.stringify(e);t.length>5e6||(this.opened?this.socket.send(t):this.messageBeforeSocketOpen.push(t))},n.prototype.onSocketMessage=function(e){},n.prototype.onSocketOpen=function(){var e=this;this.opened=!0,this.messageBeforeSocketOpen.length&&(this.messageBeforeSocketOpen.forEach((function(t){e.sendSocketMessage(t)})),this.messageBeforeSocketOpen=[])},n.prototype.onSocketClose=function(){this.opened=!1,console.log(\"[DEBUG] connection closed\")},n.prototype.onSocketError=function(e){console.error(\"[DEBUG] connection onerror\",e)},n}(A);!function(e){function n(t){var n=e.call(this,t)||this;n.messageBeforeSocketOpen=[],n.useFromRemoteDebugFlag=!1;var r=function(e){var t=e.match(/Ariver\\/(\\d+\\.\\d+\\.\\d+)/);if(t)return t[1]}(\"undefined\"!=typeof navigator&&(navigator.swuserAgent||navigator.userAgent)||\"\");return r&&function(e,t){if(e&&t){for(var n=O(e,\".\"),r=O(t,\".\"),o=0,i=0,s=void 0,a=void 0;i<n.length;i++){if((s=r[i]||0)>(a=n[i]||0)){o=-1;break}if(s<a){o=1;break}}return o}return 0}(r,\"1.1.0\")>=0&&(n.useFromRemoteDebugFlag=!0),n}t(n,e),n.prototype.open=function(){var e=this;this.socketTask=AFAppX.bridge.connectSocket({fromRemoteDebug:this.useFromRemoteDebugFlag,url:this.url,multiple:!0,fail:function(t){e.onSocketError(t)}}),this.socketTask.onOpen((function(){e.handleSocketOpen()})),this.socketTask.onError((function(t){e.onSocketError(t.data)})),this.socketTask.onClose((function(){e.opened=!1,e.onSocketClose()})),this.socketTask.onMessage((function(t){e.opened||e.handleSocketOpen(),e.onSocketMessage(t.data.data)}))},n.prototype.sendSocketMessage=function(e){var t=\"string\"==typeof e?e:JSON.stringify(e);t.length>5e6||(this.opened?this.socketTask.send({fromRemoteDebug:this.useFromRemoteDebugFlag,data:t,isBuffer:!1}):this.messageBeforeSocketOpen.push(t))},n.prototype.close=function(){this.opened&&this.socketTask.close({fromRemoteDebug:this.useFromRemoteDebugFlag})},n.prototype.onSocketMessage=function(e){},n.prototype.onSocketOpen=function(){},n.prototype.onSocketError=function(e){},n.prototype.onSocketClose=function(){},n.prototype.handleSocketOpen=function(){var e=this;this.opened||(this.opened=!0,this.messageBeforeSocketOpen.length&&(this.messageBeforeSocketOpen.forEach((function(t){e.sendSocketMessage(t)})),this.messageBeforeSocketOpen=[]),this.onSocketOpen())}}(A);var P,L=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return t(n,e),n.prototype.startDebugSession=function(){var t=this;e.prototype.startDebugSession.call(this);var n=window.__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!n)throw new Error(\"bugme no react hook\");n.wasCommited?this.checkHostBeforeAgentConnect():n.on(\"first-commit\",(function(){t.checkHostBeforeAgentConnect()}))},n}(b),D=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.onCloseHandlerSet=new Set,t.isActive=!0,t.messageBeforeHandler=[],t}return t(n,e),Object.defineProperty(n.prototype,\"isActivated\",{get:function(){return this.isActive},enumerable:!1,configurable:!0}),n.prototype.activate=function(){this.isActive=!0},n.prototype.inActivate=function(){this.isActive=!1},n.prototype.sendMessage=function(e,t){this.sendSocketMessage(JSON.stringify({method:e,params:t}))},n.prototype.sendSocketMessage=function(t,n){(this.isActive||n)&&e.prototype.sendSocketMessage.call(this,t)},n.prototype.onMessage=function(e){if(this.devtoolHandler)throw new Error(\"conflict handler\");this.devtoolHandler=e,this.messageBeforeHandler.forEach(this.handleMessage),this.messageBeforeHandler=[]},n.prototype.addOnCloseHandler=function(e){this.onCloseHandlerSet.add(e)},n.prototype.onSocketMessage=function(e){\"HOST:LEAVE\"!==e||C()?this.devtoolHandler?this.handleMessage(e):this.messageBeforeHandler.push(e):E()},n.prototype.onSocketClose=function(){e.prototype.onSocketClose.call(this),this.onCloseHandlerSet.forEach((function(e){try{e()}catch(e){console.warn(e)}}))},n.prototype.handleMessage=function(e){var t,n=this;try{t=JSON.parse(e)}catch(t){return void console.warn(\"invalid json message: \",e)}t.sessionId||(t.method?this.devtoolHandler&&this.devtoolHandler(t.method,t.params,(function(e,r){e?n.sendSocketMessage(JSON.stringify({id:t.id,error:{code:e,message:\"\"+e}}),!0):n.sendSocketMessage(JSON.stringify({id:t.id,result:r}),!0)})):console.warn(\"invalid json message: \",e))},n}(M);!function(e){e[e.Element=1]=\"Element\",e[e.Text=2]=\"Text\",e[e.Component=3]=\"Component\"}(P||(P={}));var B=function(e,t){return(B=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function R(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Class extends value \"+String(t)+\" is not a constructor or null\");function n(){this.constructor=e}B(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var F=function(){return(F=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function j(e,t){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},\"function\"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError(\"Generator is already executing.\");for(;s;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}}function U(e){var t=\"function\"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&\"number\"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?\"Object is not iterable.\":\"Symbol.iterator is not defined.\")}var z=Function.prototype.apply.call.bind(Function.prototype.apply);function H(e,t,n){return z(e,t,n)}function q(e,t,n,r,o){var i,s,a=null,u=0;o||(o={});var c=function(){u=!1===o.leading?0:Date.now(),a=null,s=H(e,null,i),i=null};return function(){for(var l=[],d=0;d<arguments.length;d++)l[d]=arguments[d];var h=Date.now();u||!1!==o.leading||(u=h);var p=t-(h-u);return i=l,p<=0||p>t?(r(a),a=null,u=h,s=H(e,null,i),i=null):a||!1===o.trailing||(a=n(c,p)),s}}var Z,W,G,Y=1;function V(){var e=\"undefined\"!=typeof Map;Z=e?Map:function(){function e(){this.keyList=[],this.valueList=[]}return e.prototype.set=function(e,t){var n=this.keyList,r=n.indexOf(e);if(-1===r){var o=n.push(e)-1;this.valueList[o]=t}else this.valueList[r]=t;return this},e.prototype.get=function(e){var t=this.keyList.indexOf(e);return-1===t?void 0:this.valueList[t]},e.prototype.forEach=function(e){for(var t=this.keyList.slice(),n=this.valueList.slice(),r=t.length,o=0;o<r;o++){var i=t[o];e(n[o],i,this)}},Object.defineProperty(e.prototype,\"size\",{get:function(){return this.keyList.length},enumerable:!1,configurable:!0}),e.prototype.has=function(e){return-1!==this.keyList.indexOf(e)},e.prototype.delete=function(e){var t=this.keyList.indexOf(e);return-1!==t&&(this.keyList.splice(t,1),this.valueList.splice(t,1),!0)},e.prototype.clear=function(){this.keyList=[],this.valueList=[]},e}()}function J(){var e=\"undefined\"!=typeof WeakMap;W=e?WeakMap:function(){var e=Object.prototype.hasOwnProperty,t=function(e,t,n){Object.defineProperty?Object.defineProperty(e,t,{configurable:!0,value:n,writable:!0}):e[t]=n};function n(e){return Object(e)===e}function r(){if(void 0===this)throw new TypeError(\"Constructor WeakMap requires 'new'\");if(t(this,\"_id\",i(\"_WeakMap\")),arguments.length>0)throw new TypeError(\"WeakMap iterable is not supported\")}function o(t,r){if(!n(t)||!e.call(t,\"_id\"))throw new TypeError(r+\" method called on incompatible receiver \"+typeof t)}function i(e){return e+\"_\"+s()+\".\"+s()}function s(){return Math.random().toString().substring(2)}return t(r.prototype,\"delete\",(function(e){if(o(this,\"delete\"),!n(e))return!1;var t=e[this._id];return!(!t||t[0]!==e)&&(delete e[this._id],!0)})),t(r.prototype,\"get\",(function(e){if(o(this,\"get\"),n(e)){var t=e[this._id];return t&&t[0]===e?t[1]:void 0}})),t(r.prototype,\"has\",(function(e){if(o(this,\"has\"),!n(e))return!1;var t=e[this._id];return!(!t||t[0]!==e)})),t(r.prototype,\"set\",(function(e,r){if(o(this,\"set\"),!n(e))throw new TypeError(\"Invalid value used as weak map key\");var i=e[this._id];return i&&i[0]===e?(i[1]=r,this):(t(e,this._id,[e,r]),this)})),t(r,\"_polyfill\",!0),r}()}function X(){return W||J(),new W}function Q(){var e=\"undefined\"!=typeof WeakSet;G=e?WeakSet:function(){function e(){this.elementKey=\"__weak_set_key__yek_tes_kaew__\"+Y++}return e.prototype.has=function(e){return 1===e[this.elementKey]},e.prototype.add=function(e){return e[this.elementKey]=1,this},e.prototype.delete=function(e){e[this.elementKey]=null},e}()}X();var $=function(){function e(e){this.provider=e,this.index=0}return e.prototype[Symbol.iterator]=function(){return this},e.prototype.next=function(e){return this.provider.item(this.index++)},e.prototype.throw=function(e){throw new Error(\"throw unimplemented\")},e.prototype.return=function(e){throw new Error(\"return unimplemented\")},e}(),K=function(){function e(e){this.generator=e,this.done=!1,this.results=[]}return e.prototype.ref=function(){return new $(this)},e.prototype.item=function(e){for(;e>this.results.length-1;){var t=this.generator.next();if(!1!==t.done){this.done=!0;break}this.results.push(t.value)}return this.done?{done:!0,value:null}:{done:!1,value:this.results[e]}},e}();function ee(e){if(e&&e.node)for(var t=e.node&&e.node.nextSibling;;){if(!t)return;var n=t.component;if(n&&2===n.type)return n;t=t.nextSibling}}!function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.cache=X(),t}R(t,e),t.prototype.iterateTargetAXML=function(t,n){return this.createIterator(e.prototype.iterateTargetAXML,[t,n])},t.prototype.iterateChildTargetByOwnerId=function(t,n,r){return this.createIterator(e.prototype.iterateChildTargetByOwnerId,[t,n,r])},t.prototype.iterateDeepSlotBlockByOwnerId=function(t,n){return this.createIterator(e.prototype.iterateDeepSlotBlockByOwnerId,[t,n])},t.prototype.iterateTargetDeep=function(t,n){return this.createIterator(e.prototype.iterateTargetDeep,[t,n])},t.prototype.iterateDeepXML=function(t){return this.createIterator(e.prototype.iterateDeepXML,[t])},t.prototype.createIterator=function(e,t){var n=this.cache.get(e);n||(Z||V(),n=new Z,this.cache.set(e,n));var r=t.map((function(e){return\"\".concat(\"object\"==typeof e&&e?e.targetId:e)})).join(\"_\"),o=n.get(r);return o||(o=new K(e.apply(this,t))),o.ref()}}(function(){function e(){}return e.prototype.iterateTargetAXML=function(e,t){var n,r,o,i;return j(this,(function(s){switch(s.label){case 0:if(!(n=function(e){for(var t=e.node&&e.node.firstChild;;){if(!t)return;var n=t.component;if(n&&2===n.type)return n;t=t.nextSibling}}(e)))return[2,null];r=n.node,s.label=1;case 1:return r?(o=r).component&&2===o.component.type?[4,i=o.component]:[3,4]:[3,5];case 2:return s.sent(),[5,U(this.iterateChildTargetByOwnerId(i,t))];case 3:s.sent(),s.label=4;case 4:return r=r.nextSibling,[3,1];case 5:return[2,null]}}))},e.prototype.iterateChildTargetByOwnerId=function(e,t,n){var r,o,i,s,a,u,c,l,d,h,p,f,g;return j(this,(function(v){switch(v.label){case 0:if(!e.slotProviders)return[2,null];r=e.slotProviders,v.label=1;case 1:v.trys.push([1,13,14,15]),o=U(r),i=o.next(),v.label=2;case 2:if(i.done)return[3,12];s=i.value,a=this.iterateDeepSlotBlockByOwnerId(e,t),v.label=3;case 3:if(!1!==(u=a.next()).done)return[3,9];if(!(c=u.value).node)return[3,8];if(c.provider!==s)return[3,8];l=c.node.firstChild,v.label=4;case 4:return l?(d=l).component?2!==d.component.type?[3,7]:[4,h=d.component]:[3,7]:[3,8];case 5:return v.sent(),n?[3,7]:[5,U(this.iterateChildTargetByOwnerId(h,t))];case 6:v.sent(),v.label=7;case 7:return l=l.nextSibling,[3,4];case 8:return[3,10];case 9:return[3,11];case 10:return[3,3];case 11:return i=o.next(),[3,2];case 12:return[3,15];case 13:return p=v.sent(),f={error:p},[3,15];case 14:try{i&&!i.done&&(g=o.return)&&g.call(o)}finally{if(f)throw f.error}return[7];case 15:return[2,null]}}))},e.prototype.iterateDeepSlotBlockByOwnerId=function(e,t){var n,r,o,i;return j(this,(function(s){switch(s.label){case 0:if(!e.node)return[2,null];n=e.node.firstChild,s.label=1;case 1:return n?(r=n).component&&1===r.component.type?(o=r.component,a=o.provider,((u=a.slotProviderParentContextInstance).type<2?u.option.parentTarget:u).targetId!==t?[3,3]:[4,o]):[3,6]:[3,9];case 2:return s.sent(),[3,5];case 3:return[5,U(this.iterateDeepSlotBlockByOwnerId(o,t))];case 4:s.sent(),s.label=5;case 5:return[3,8];case 6:return r.component&&2===r.component.type&&(i=r.component).slotProviders?[5,U(this.iterateDeepSlotBlockByOwnerId(i,t))]:[3,8];case 7:s.sent(),s.label=8;case 8:return n=n.nextSibling,[3,1];case 9:return[2,null]}var a,u}))},e.prototype.iterateTargetDeep=function(e,t){var n,r;return j(this,(function(o){switch(o.label){case 0:return[5,U(this.iterateDeepXML(e))];case 1:o.sent(),n=this.iterateChildTargetByOwnerId(e,t),o.label=2;case 2:return!1!==(r=n.next()).done?[3,5]:[4,r.value];case 3:return o.sent(),[5,U(this.iterateDeepXML(r.value))];case 4:return o.sent(),[3,6];case 5:return[3,7];case 6:return[3,2];case 7:return[2,null]}}))},e.prototype.iterateDeepXML=function(e){var t,n,r;return j(this,(function(o){switch(o.label){case 0:if(!e.slotProviders||!e.node)return[2,null];t=e.node.firstChild,o.label=1;case 1:return t?(n=t.component)&&2===n.type?[4,n]:[3,8]:[3,10];case 2:return o.sent(),[5,U(this.iterateTargetDeep(n,e.targetId))];case 3:o.sent(),r=ee(n),o.label=4;case 4:return r?[4,r]:[3,7];case 5:return o.sent(),[5,U(this.iterateDeepXML(r))];case 6:return o.sent(),r=ee(r),[3,4];case 7:return[3,10];case 8:t=t.nextSibling,o.label=9;case 9:return[3,1];case 10:return[2,null]}}))},e}());\"undefined\"!=typeof ZEPHYR_HAS_INSIDE_FEATURE&&ZEPHYR_HAS_INSIDE_FEATURE,\"undefined\"!=typeof ZEPHYR_IS_INSIDE_UNSUPPORT_ELEMENT&&ZEPHYR_IS_INSIDE_UNSUPPORT_ELEMENT;var te=function(){function e(e,t,n,r,o){this.bindLinkNode=o,this.updatingDiff=null,this.scopedBlocks=[],this.unscopedBlocks=[],this.disposing=!1,this.detaching=!1,this.factory=e,this.currentData=t,this.slotProviderParentContextInstance=n,this.scopeId=r}return e.prototype.createBlockWithScope=function(e,t){var n,r,o=this.scopeId;return e&&o?(n=ne(e,this.currentData,o),(r=this.createBlock(this.slotProviderParentContextInstance,t,n,!0)).__scopeContext__=e):(n=this.currentData,r=this.createBlock(this.slotProviderParentContextInstance,t,n,!1)),r.bType=1,r},e.prototype.createBlockWithoutScope=function(e){var t=this.createBlock(this.slotProviderParentContextInstance,e,this.currentData,!1);return t.bType=1,t},e.prototype.updateBlockWithDynamicNameScopeAndFallback=function(e,t,n,r,o,i){if(t._name===e){var s=this.scopeId;if(n&&s){var a=ne(n,this.currentData,s),u=Object.create(this.updatingDiff);u[s]=!0,t.updateScopeContext(n),t.updateScopeAndFallbackContext(u,a,r,o)}else t.updateFallbackContext(r,o)}else{var c=void 0;c=n?this.createBlockWithScope(n,i):this.createBlockWithoutScope(i),t.updateDynamicNameAndFallbackContext(e,c,r,o)}return null},e.prototype.updateBlockWithScopeAndFallback=function(e,t,n,r){var o=this.scopeId;if(t&&o){var i=ne(t,this.currentData,o),s=Object.create(this.updatingDiff);s[o]=!0,e.updateScopeContext(t),e.updateScopeAndFallbackContext(s,i,n,r)}else e.updateFallbackContext(n,r)},e.prototype.updateBlockWithScope=function(e,t){var n=this.scopeId;if(t&&n){var r=ne(t,this.currentData,n),o=Object.create(this.updatingDiff);o[n]=!0,e.__scopeContext__=t,e.u(o,r)}},e.prototype.enterProviderDetaching=function(){this.detaching=!0},e.prototype.exitProviderDetaching=function(){this.detaching=!1;var e=this.detachedBlocks;if(e){this.detachedBlocks=null;for(var t=0,n=e;t<n.length;t++){var r=n[t],o=1===r.__slotType__?this.scopedBlocks:this.unscopedBlocks;r.__slotIndex__=o.push(r)-1,r.d(!0)}}},e.prototype.createBlock=function(e,t,n,r){var o,i,s;if(r?(i=1,o=this.scopedBlocks.length,s=this.scopedBlocks):(i=0,o=this.unscopedBlocks.length,s=this.unscopedBlocks),this.detaching){var a=this.detachedBlocks;if(a){var u=a.shift();if(u)return s.push(u),u.__slotIndex__=o,u.__slotType__=i,u}}var c=this.factory(e,n);return this.bindLinkNode&&(c=this.bindLinkNode(c,this)),c.d=this.destroyBlock.bind(this,c,c.d),s.push(c),c.__slotIndex__=o,c.__slotType__=i,c},e.prototype.destroyBlock=function(e,t,n){var r=e.__slotIndex__;if(r>=0){if(!this.disposing){var o=1===e.__slotType__?this.scopedBlocks:this.unscopedBlocks,i=o.length-1,s=o[i];s.__slotIndex__=r,o[r]=s,o.length=i}if(this.detaching){var a=this.detachedBlocks;a||(a=this.detachedBlocks=[]),a.push(e)}else t.call(e,n);e.__slotIndex__=-1}},e}();function ne(e,t,n){var r=Object.create(t);return r[n]=e[0],e.length>1&&(r[n+\"d\"]=e[1],r[n+\"n\"]=e[2]),r}function re(){}function oe(e,t,n){if(e)return e(t,n)}function ie(e){if(e){var t=e.parent;t&&t.removeChild(e)}}function se(e,t,n){return t?e.document.cloneComment(t):e.document.createComment(n)}function ae(e,t){var n=t.nextSibling,r=t.previousSibling;n?(n.previousSibling=r,t.nextSibling=null):e.lastChild=r,r?(r.nextSibling=n,t.previousSibling=null):e.firstChild=n,t.parent=null}function ue(e,t){var n=t.parent;n&&ae(n,t),t.parent=e;var r=e.lastChild;r?(t.previousSibling=r,r.nextSibling=t):e.firstChild=t,e.lastChild=t}function ce(e,t,n){e.insertBefore(t,n||null),t.parent||(t.parent=e)}function le(e,t){e.stopReverseIndex=t,e.stopReverseIndexStack.push(t)}function de(e){e.stopReverseIndexStack.pop(),e.stopReverseIndex=e.stopReverseIndexStack[e.stopReverseIndexStack.length-1]||0}!function(e){function t(){return null!==e&&e.apply(this,arguments)||this}R(t,e),t.prototype.exitProviderUpdating=function(){},t.prototype.enterProviderUpdating=function(e,t){this.currentData=t;for(var n=this.scopeId,r=0,o=this.unscopedBlocks;r<o.length;r++){(u=o[r]).u(e,t)}if(n&&this.scopedBlocks.length){var i=Object.create(e);i[n]=!1;for(var s=0,a=this.scopedBlocks;s<a.length;s++){var u,c=ne((u=a[s]).__scopeContext__,t,n);u.u(i,c)}}},t.prototype.destroyBlocks=function(e){if(this.disposing=!0,this.scopeId){for(var t=0,n=this.scopedBlocks;t<n.length;t++){n[t].d(e)}this.scopedBlocks=[]}for(var r=0,o=this.unscopedBlocks;r<o.length;r++){o[r].d(e)}this.unscopedBlocks=[]}}(te),function(e){function t(){return null!==e&&e.apply(this,arguments)||this}R(t,e),t.prototype.enterProviderUpdating=function(e,t){this.updatingDiff=e,this.currentData=t;for(var n=this.scopeId,r=0,o=this.unscopedBlocks;r<o.length;r++){o[r].__slotUpdating__=!0}if(n&&this.scopedBlocks.length)for(var i=0,s=this.scopedBlocks;i<s.length;i++){s[i].__slotUpdating__=!0}},t.prototype.destroyBlocks=function(e){this.disposing=!0,this.scopeId&&(this.scopedBlocks=[]),this.unscopedBlocks=[]},t.prototype.exitProviderUpdating=function(){for(var e=this.updatingDiff,t=this.currentData,n=this.scopeId,r=0,o=this.unscopedBlocks;r<o.length;r++){(u=o[r]).__slotUpdating__&&(u.__slotUpdating__=!1,u.u(e,t))}if(n&&this.scopedBlocks.length){var i=Object.create(e);i[n]=!1;for(var s=0,a=this.scopedBlocks;s<a.length;s++){var u;if((u=a[s]).__slotUpdating__){u.__slotUpdating__=!1;var c=ne(u.__scopeContext__,t,n);u.u(i,c)}}}this.updatingDiff=null}}(te),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.detaching=!1,t}R(t,e),t.prototype.detach=function(){this.detaching=!0},t.prototype.attach=function(){this.detaching=!1},t.prototype.c=function(){if(this.detaching){var t=this._bc[5];return this._currentBlock&&(t&=this._currentBlock.c()),t}return e.prototype.c.call(this)},t.prototype.m=function(t,n){if(!this.detaching)return e.prototype.m.call(this,t,n);this._currentBlock&&this._currentBlock.m(this._currentTarget,this._currentAnchor)},t.prototype.resetCurrentBranch=function(e,t){this._component=e;var n=this._bc[3],r=this._bc[4],o=this._bc[0];this._selectedBlockIndex=n?n(this._component,t):1,this._selectedBlockType=r?r(this._selectedBlockIndex):o(this._component,t),this._currentBlock=oe(this._selectedBlockType,this._component,t)},t.prototype.d=function(t){if(!this.detaching)return e.prototype.d.call(this,t);this._currentBlock&&(this._currentBlock.d(t),this._currentBlock=null)}}(function(){function e(e,t,n){this._bc=e,this._component=t;var r=e[3],o=e[4],i=e[0];this._selectedBlockIndex=r?r(t,n):1,this._selectedBlockType=o?o(this._selectedBlockIndex):i(t,n),this._currentBlock=oe(this._selectedBlockType,t,n)}return e.prototype.a=function(){return this._currentAnchorHead},e.prototype.c=function(){var e=this._bc[5];return this._currentAnchorHead=se(this._component),this._currentAnchor4Index=se(this._component,null,me(this._selectedBlockIndex)),this._currentBlock&&(e&=this._currentBlock.c()),this._currentAnchor=se(this._component,this._currentAnchorHead),e},e.prototype.l=function(e){var t=this._bc[5];this._currentAnchorHead=ve(e,this._component),le(e,he(e,this._currentAnchorHead));var n=ge(e,this._component,\"c\",me(this._selectedBlockIndex));return this._currentAnchor4Index=n[0],e.treatErrorAsWarning+=n[1],this._currentBlock&&(t&=this._currentBlock.l(e)),e.treatErrorAsWarning-=n[1],de(e),this._currentAnchor=ve(e,this._component,this._currentAnchorHead),this._currentTarget=e.target,t},e.prototype.m=function(e,t){this._currentTarget=e,ce(e,this._currentAnchorHead,t),ce(e,this._currentAnchor4Index,t),this._currentBlock&&this._currentBlock.m(e,t),ce(e,this._currentAnchor,t)},e.prototype.u=function(e,t){var n=this._bc[5],r=this._bc[3],o=this._bc[4],i=this._bc[0],s=r?r(this._component,t):1,a=o?o(s):i(this._component,t);if(this._selectedBlockType!==a){this._selectedBlockIndex=s,this._selectedBlockType=a;var u=this._currentAnchor4Index.root;u&&(u.textContent=me(this._selectedBlockIndex)),this._currentBlock&&this._currentBlock.d(!0),this._currentBlock=oe(this._selectedBlockType,this._component,t),this._currentBlock&&(n&=this._currentBlock.c(),this._currentBlock.m(this._currentTarget,this._currentAnchor))}else this._currentBlock&&(n&=this._currentBlock.u(e,t));return n},e.prototype.d=function(e){this._currentBlock&&(this._currentBlock.d(e),this._currentBlock=null),e&&(ie(this._currentAnchorHead),ie(this._currentAnchor4Index),ie(this._currentAnchor),this._currentAnchorHead=null,this._currentAnchor4Index=null,this._currentAnchor=null)},e}());var he=function(e,t){var n,r=t.root.textContent,o=e.index,i=e.nodes.length;for(;o<i&&(n=e.nodes.item(o))&&(8!==n.nodeType||n.textContent!==r);)o++;return i-o};var pe=0;var fe=function(){return\"z:\".concat(++pe)},ge=function(e,t,n,r){var o,i=e.target,s=e.nodes.item(e.index),a=0,u=0;if(s&&8===s.nodeType&&s.textContent[0]===n)s.textContent===r?o={destroy:re,eType:0,nextSibling:null,parent:i,previousSibling:null,root:s}:(s.textContent=r,o={destroy:re,eType:0,nextSibling:null,parent:i,previousSibling:null,root:s},a=1,u=1);else{var c=t.document.document.createComment(r);if(o={destroy:re,eType:0,nextSibling:null,parent:i,previousSibling:null,root:c},s){var l={destroy:re,eType:0,nextSibling:null,parent:i,previousSibling:null,root:s};i.insertBefore(o,l)}else i.appendChild(o);a=1}if(e.index++,a)for(var d=e.index,h={destroy:re,eType:0,nextSibling:null,parent:i,previousSibling:null,root:null};(s=e.nodes.item(d))&&e.stopReverseIndex!==e.nodes.length-d;)h.root=s,i.removeChild(h);return[o,u]};var ve=function(e,t,n){var r,o=e.target,i={destroy:re,eType:0,nextSibling:null,parent:null,previousSibling:null,root:null};if(n){for(var s=n.root.textContent,a=e.index,u=void 0;;){if(!(u=e.nodes.item(a))){var c=t.document.document.createComment(s);i.root=c,o.appendChild(i);break}if(i.root=u,8===u.nodeType&&u.textContent===s){ue(o,i);break}if(e.stopReverseIndex===e.nodes.length-a){var l={destroy:re,eType:0,nextSibling:null,parent:null,previousSibling:null,root:u};c=t.document.document.createComment(s);i.root=c,ue(o,l),o.insertBefore(i,l),ae(o,l);break}o.removeChild(i)}return e.index++,i}u=e.nodes.item(e.index++);if(i.root=u,u&&8===u.nodeType)ue(o,i);else{var d=t.document.document.createComment(fe());r={destroy:re,eType:0,nextSibling:null,parent:null,previousSibling:null,root:d},u?(ue(o,i),o.insertBefore(r,i),e.stopReverseIndex===e.nodes.length-e.index?ae(o,i):o.removeChild(i)):o.appendChild(r)}return r||i};function me(e){return\"\".concat(\"c\",\":\").concat(e||\"\")}function ye(e,t,n){for(var r=[],o=e,i=null;o&&!t(o);){switch(o.eType){case 1:case 2:null===i&&r.push(n.getZNodeDebugInfo(o));break;case 0:var s=o.root.textContent;null===i&&\"b\"===s[0]?i=parseInt(s.slice(2),10):null!==i&&s===Ie(i)&&(r.push(n.getZNodeComponentDebugInfo(i)),i=null)}o=o.nextSibling}return r}function be(e,t,n){var r=e[t];e[t]=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var o=r.apply(void 0,e);try{n(o,e)}catch(e){console.error(e)}return o}}function _e(e,t,n){var r=e[t];e[t]=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];try{n(e)}catch(e){console.error(e)}var o=r.apply(void 0,e);return o}}function we(e){var t=\"\";try{JSON.stringify(e).length>1e6&&(t=\"data is too large to display\")}catch(e){t=e.message||\"stringify error\"}return t?{data:{error:t}}:{data:e}}function Se(e){return\"\".concat(\"b\",\":\").concat(e)}function Ie(e){return\"\".concat(\"e\",\":\").concat(e)}function ke(e){if(!e.treeTargetIds){for(var t=e,n=[];t;){t=t.previousSibling?t.previousSibling:t.parent;for(var r=0;t;){if(0===t.eType){if(\"e\"===t.root.textContent[0])r++;else if(\"b\"===t.root.textContent[0]){if(0===r){n.push({begin:t.root,targetId:parseInt(t.root.textContent.slice(2),10)});break}r--}}else{if(1===t.eType&&0===r){n.push.apply(n,ke(t)),t=null;break}if(2===t.eType&&0===r){n.push.apply(n,ke(t)),t=null;break}}t=t.previousSibling?t.previousSibling:t.parent}}n.length||n.push({begin:null,targetId:0}),e.treeTargetIds=n}return e.treeTargetIds}var Ce=function(){function e(e,t){this.devtool=e,this.node=t}return e.prototype.setParentNodeId=function(e){this.parentNodeId=e},e.prototype.getParentNodeId=function(){var e;return this.parentNodeId||(this.parentNodeId=null===(e=this.getParentNode())||void 0===e?void 0:e.nodeId),this.parentNodeId},e.prototype.getPreviousElementOrTextSibling=function(){for(var e=this.node.previousSibling;e&&1!==e.eType&&2!==e.eType;){if(0===e.eType){if(\"b\"===e.root.textContent[0])return null;if(\"e\"===e.root.textContent[0])return this.devtool.getZNodeComponentDebugInfo(parseInt(e.root.textContent.slice(2),10))}e=e.previousSibling}return e?this.devtool.getZNodeDebugInfo(e):null},e.prototype.getParentNode=function(){if(this.node.parent){var e=this.devtool.getZNodeDebugInfo(this.node.parent),t=ke(this.node);return ke(e.node)[0].targetId===t[0].targetId?e:this.devtool.getZNodeComponentDebugInfo(t[0].targetId)}},e.prototype.setLinkedContext=function(e){this.linkedContext=e},e.prototype.getLinkedContext=function(){return this.linkedContext},e}(),Ee=function(e){function t(t,n,r,o,i,s){var a=e.call(this,t,r)||this;return a.devtool=t,a.nodeName=n,a.node=r,a.nodeId=o,a.shadowRootNodeId=i,a.shadowSlotNodeId=s,a.nodeType=P.Element,a.activated=!1,a.childrenActivated=!1,a.pendingAttributes=[],a.dataset=new Map,a.properties=new Map,a.attributes=new Map,a.inlineStyleSheetId=\"2000.\".concat(o),a}return R(t,e),Object.defineProperty(t.prototype,\"dom\",{get:function(){return this.devtool.getDOMNodeDebugInfo(this.node.root,this,this.shadowRootNodeId)},enumerable:!1,configurable:!0}),t.prototype.getPlatformRootDOM=function(){return this.node.root},t.prototype.getShadowRootDebugNode=function(){var e=this.node.root;return this.devtool.getDOMNodeDebugInfo(e,this,this.shadowRootNodeId)},t.prototype.getClassName=function(){return this.attrClass},t.prototype.getInlineStyle=function(){return this.attrStyle},t.prototype.getDataset=function(){return this.dataset},t.prototype.updateClassName=function(e){var t=e||\"\";this.attrClass!==t&&(this.attrClass=t,this.activated&&this.pendingAttributes.push([\"class\",\"\".concat(t)]))},t.prototype.updateInlineStyle=function(e){this.attrStyle!==e&&(this.attrStyle=e,this.activated&&this.pendingAttributes.push([\"style\",\"\".concat(e)]))},t.prototype.invalidate=function(){var e=this;if(this.activated&&this.pendingAttributes.length){for(var t={},n=0,r=this.pendingAttributes;n<r.length;n++){var o=r[n],i=o[0],s=o[1];t[i]=s}Object.keys(t).forEach((function(n){e.onAttributeModifiedByEngine(n,t[n]),\"style\"===n&&e.node.setStyleInline(t[n])})),this.pendingAttributes=[],t={},this.devtool.enableShadowRootElements&&(this.devtool.flushUpdatedQueue(),this.dom&&this.dom.invalidate())}},t.prototype.getProperties=function(){var e={};return this.properties.forEach((function(t,n){e[n]=t})),e},t.prototype.updateProperties=function(e){if(e)for(var t=this.properties,n=0,r=Object.keys(e);n<r.length;n++){var o=r[n];e[o]!==t.get(o)&&(t.set(o,e[o]),this.activated&&this.pendingAttributes.push([o,\"\".concat(e[o])]))}},t.prototype.updateDataset=function(e){for(var t=this.dataset,n=0,r=Object.keys(e);n<r.length;n++){var o=r[n];e[o]!==t.get(o)&&(t.set(o,e[o]),this.activated&&this.pendingAttributes.push([\"data-\".concat(o),\"\".concat(e[o])]))}},t.prototype.updateAttribute=function(e,t){t!==this.attributes.get(e)&&(this.attributes.set(e,t),this.activated&&this.pendingAttributes.push([e,\"\".concat(t)]))},t.prototype.getChildNodes=function(){return ye(this.node.firstChild,(function(){return!1}),this.devtool)},t.prototype.serialize=function(e){this.activated=!0;var t,n=this.getChildNodes(),r=n.length;return e>0&&r&&(t=n.map((function(t){return t.serialize(e-1)}))),t||1!==r||n[0].nodeType!==P.Text||(t=[n[0].serialize(0)]),t&&t.length&&(this.childrenActivated=!0),{attributes:this.getAllAttributes(),backendNodeId:this.nodeId,childNodeCount:r,children:t,localName:this.nodeName.toLowerCase(),nodeId:this.nodeId,nodeName:this.nodeName,nodeType:1,nodeValue:\"\",parentId:this.getParentNodeId(),pseudoElements:this.getPseudoElements(),shadowRoots:this.devtool.shadowRootElementsEnabled?[{childNodeCount:1,localName:\"\",nodeId:this.shadowRootNodeId,nodeName:\"#document-fragment\",nodeType:11,nodeValue:\"\",shadowRootType:\"dom\"}]:void 0}},t.prototype.getAllAttributes=function(){var e=[];return this.attrClass&&e.push(\"class\",\"\".concat(this.attrClass)),this.attrStyle&&e.push(\"style\",\"\".concat(this.attrStyle)),this.properties.forEach((function(t,n){e.push(n,\"\".concat(t))})),this.attributes.forEach((function(t,n){e.push(n,\"\".concat(t))})),this.dataset.forEach((function(t,n){e.push(\"data-\".concat(n),\"\".concat(t))})),e},t.prototype.getChildNodeCount=function(){return this.getChildNodes().length},t.prototype.onAttributeModifiedByEngine=function(e,t){this.devtool.sendMessage(\"DOM.attributeModified\",{name:e,nodeId:this.nodeId,value:\"\".concat(t)})},t.prototype.getPseudoElements=function(){return[]},t}(Ce),Te=function(e){function t(t,n,r,o){var i=e.call(this,t,n)||this;return i.devtool=t,i.node=n,i.nodeId=r,i.shadowSlotNodeId=o,i.nodeType=P.Text,i.activated=!1,i.nodeName=\"#text\",i.dom=t.getDOMNodeDebugInfo(n.root,i),i}return R(t,e),t.prototype.getPlatformRootDOM=function(){return this.node.root},t.prototype.serialize=function(e){return this.activated=!0,{backendNodeId:this.nodeId,childNodeCount:0,localName:\"\",nodeId:this.nodeId,nodeName:this.nodeName,nodeType:3,nodeValue:this.node.root.textContent,parentId:this.getParentNodeId()}},t}(Ce),xe=function(){function e(e,t,n){var r=this;this.devtool=e,this.targetId=t,this.nodeId=n,this.nodeType=P.Component,this.nodeName=\"component\",this.activated=!1,this.childrenActivated=!1,this.pendingAttributes=[],this.componentInstance=e.componentTargetId2LinkedInstance.get(t),this.beginAnchor=this.componentInstance._anchor4Head,this.parentNodeId=this.getParentNodeId();var o=q(e.sendMessage.bind(e),500,setTimeout,clearTimeout),i=this.componentInstance._fragment.u;this.componentInstance._fragment.u=function(){for(var t=[],s=0;s<arguments.length;s++)t[s]=arguments[s];var a=i.apply(r.componentInstance._fragment,t);return e.activatedCustomComponentId===n&&o(\"Tiny.Elements.componentDataChanged\",{data:we(r.getData()).data,nodeId:n}),a};var s=q(e.sendMessage.bind(e),500,setTimeout,clearTimeout),a=this.componentInstance.receiveProps;this.componentInstance.receiveProps=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];a.apply(r.componentInstance,t),e.activatedCustomComponentId===n&&s(\"Tiny.Elements.componentDataChanged\",{nodeId:n,props:we(r.getProps()).data})},this.invalidate=q(this.invalidate.bind(this),500,setTimeout,clearTimeout)}return e.prototype.getChildNodes=function(){var e=this;return ye(this.beginAnchor.nextSibling,(function(t){if(0===t.eType&&t.root.textContent===Ie(e.targetId))return!0}),this.devtool)},e.prototype.serialize=function(e){this.activated=!0;var t,n=this.getChildNodes(),r=n.length;return e>0&&(t=n.map((function(t){return t.serialize(e-1)}))),t||1!==r||n[0].nodeType!==P.Text||(t=[n[0].serialize(0)]),t&&t.length&&(this.childrenActivated=!0),{attributes:this.getAllAttributes(),backendNodeId:this.nodeId,childNodeCount:r,children:t,localName:this.nodeName.toLowerCase(),nodeId:this.nodeId,nodeName:this.nodeName,nodeType:1,nodeValue:\"\",parentId:this.getParentNodeId()}},e.prototype.getAllAttributes=function(){var e=this,t=this.componentInstance.fixedReceivedPropKeys,n=this.componentInstance.componentIs;\"string\"==typeof n&&\"/\"===n[0]&&(n=n.substring(1));var r=[\"is\",n];return t&&t.forEach((function(t){r.push.apply(r,function(e,t){if(\"className\"===e)return[\"class\",String(t).trim()];if(\"function\"==typeof t){if(t.handleName)return[e,t.handleName]}else{if(null===t)return[e,\"null\"];if(void 0!==t){var n=\"unknown\";try{n=\"object\"==typeof t?Object.prototype.toString.call(t):t.toString()}catch(n){console.warn(\"failed to stringify node props value\",e,t)}return[e,n]}}return[]}(t,e.componentInstance._state[t]))})),r},e.prototype.getComponentIs=function(){return this.componentInstance.componentIs},e.prototype.getComponentInstance=function(){return this.componentInstance},e.prototype.getParentNodeId=function(){var e;return this.parentNodeId||(this.parentNodeId=null===(e=this.getParentNode())||void 0===e?void 0:e.nodeId),this.parentNodeId},e.prototype.getParentNode=function(){if(this.beginAnchor.parent){var e=this.devtool.getZNodeDebugInfo(this.beginAnchor.parent),t=ke(this.beginAnchor);return ke(e.node)[0].targetId===t[0].targetId?e:this.devtool.getZNodeComponentDebugInfo(t[0].targetId)}},e.prototype.getData=function(){var e=this,t={},n=this.componentInstance.fixedReceivedPropKeys,r=void 0===n?[]:n;return Object.keys(this.componentInstance._state).forEach((function(n){\"$id\"!==n&&-1===r.indexOf(n)&&(t[n]=e.componentInstance._state[n])})),t},e.prototype.getProps=function(){var e=this,t={},n=this.componentInstance.fixedReceivedPropKeys;return(void 0===n?[]:n).forEach((function(n){t[n]=e.componentInstance._state[n]})),t},e.prototype.getChildNodeCount=function(){return this.getChildNodes().length},e.prototype.getPreviousElementOrTextSibling=function(){for(var e=this.beginAnchor.previousSibling;e&&1!==e.eType&&2!==e.eType;){if(0===e.eType){if(\"b\"===e.root.textContent[0])return null;if(\"e\"===e.root.textContent[0])return this.devtool.getZNodeComponentDebugInfo(parseInt(e.root.textContent.slice(2),10))}e=e.previousSibling}return e?this.devtool.getZNodeDebugInfo(e):null},e.prototype.updateProperties=function(e,t){var n=this;Object.keys(t).forEach((function(r){t[r]&&n.pendingAttributes.push([r,\"\".concat(e[r])])}))},e.prototype.invalidate=function(){var e=this;if(this.activated&&this.pendingAttributes.length){for(var t={},n=0,r=this.pendingAttributes;n<r.length;n++){var o=r[n],i=o[0],s=o[1];t[i]=s}Object.keys(t).forEach((function(n){e.onAttributeModifiedByEngine(n,t[n])})),this.pendingAttributes=[],t={}}},e.prototype.onAttributeModifiedByEngine=function(e,t){this.devtool.sendMessage(\"DOM.attributeModified\",{name:e,nodeId:this.nodeId,value:\"\".concat(t)})},e}(),Oe=function(){function e(e,t,n,r,o){this.devtool=e,this.node=t,this.nodeId=n,this.parentNodeId=r,this.znode=o,this.nodeType=1,this.activated=!1}return e.prototype.invalidate=function(){if(this.lastSerializedJSON){var e=this.serialize(this.lastSerializedJSON.children?1:0,!1);this.checkAttributesModified(this.lastSerializedJSON.attributes||[],e.attributes||[]),this.lastSerializedJSON.children&&this.checkChildNodesUpdated(this.lastSerializedJSON.children,e.children||[]),this.lastSerializedJSON=e}},e.prototype.serialize=function(e,t){void 0===t&&(t=!0),this.activated=!0;for(var n,r,o=this.node,i=0,s=0,a=o.childNodes;s<a.length;s++){var u=a[s];if(1===u.nodeType||3===u.nodeType){var c=this.devtool.getDOMNodeDebugInfo(u,null,this.nodeId);if(c.znode){if(!r){var l=c.znode.shadowSlotNodeId;r={backendNodeId:l,childNodeCount:0,children:[],distributedNodes:[],localName:\"slot\",nodeId:l,nodeName:\"SLOT\",nodeType:1,nodeValue:\"\",parentId:this.nodeId}}var d=r.distributedNodes;d||(d=r.distributedNodes=[]),d.push({backendNodeId:c.znode.nodeId,nodeName:c.znode.nodeName,nodeType:u.nodeType});continue}r&&(e>0&&(n||(n=[]),n.push(r)),i++),r=null,e>0&&(n||(n=[]),n.push(c.serialize(e-1,t))),i++}}r&&(e>0&&(n||(n=[]),n.push(r)),i++);for(var h=[],p=0,f=o.attributes;p<f.length;p++){var g=f[p];h.push(g.name,g.value)}var v={attributes:h,backendNodeId:this.nodeId,childNodeCount:i,children:n,localName:o.nodeName.toLowerCase(),nodeId:this.nodeId,nodeName:o.nodeName,nodeType:1,nodeValue:\"\",parentId:this.parentNodeId,pseudoElements:this.getPseudoElements()};return t&&(this.lastSerializedJSON=v),v},e.prototype.checkAttributesModified=function(e,t){for(var n=this,r=new Map,o=0;o<e.length-1;o+=2)r.set(e[o],e[o+1]);for(o=0;o<t.length-1;o+=2){var i=t[o],s=t[o+1];if(r.has(i)){var a=r.get(i);r.delete(i),a!==s&&this.devtool.sendMessage(\"DOM.attributeModified\",{name:i,nodeId:this.nodeId,value:s})}else this.devtool.sendMessage(\"DOM.attributeModified\",{name:i,nodeId:this.nodeId,value:s})}r.forEach((function(e,t){n.devtool.sendMessage(\"DOM.attributeRemoved\",{name:t,nodeId:n.nodeId})}))},e.prototype.checkChildNodesUpdated=function(e,t){var n=this;Ne(e,t,(function(e,t){return e.nodeId===t.nodeId}),(function(e){var r=t[t.indexOf(e)-1];n.devtool.sendMessage(\"DOM.childNodeInserted\",{node:e,parentNodeId:e.parentId,previousNodeId:r?r.nodeId:0})}),(function(e){n.devtool.sendMessage(\"DOM.childNodeRemoved\",{nodeId:e.nodeId,parentNodeId:e.parentId})}),(function(e,t){if(\"SLOT\"===e.nodeName){var r=function(){n.devtool.sendMessage(\"DOM.distributedNodesUpdated\",{distributedNodes:t.distributedNodes||[],insertionPointId:t.nodeId})};Ne(e.distributedNodes||[],t.distributedNodes||[],(function(e,t){return e.backendNodeId===t.backendNodeId}),r,r)}else{var o=n.devtool.nodeId2DOMNode.get(e.nodeId);o&&1===o.nodeType&&o.invalidate()}}))},e.prototype.getPseudoElements=function(){return[]},e}();function Ne(e,t,n,r,o,i){var s=t.slice();e.forEach((function(e){var t=-1;s.some((function(r,o){if(n(e,r))return t=o,!0})),t>-1?(i&&i(e,s[t]),s.splice(t,1)):o(e)})),s.forEach(r)}var Ae=function(){function e(e,t,n,r){this.devtool=e,this.node=t,this.nodeId=n,this.znode=r,this.nodeType=3,this.activated=!1}return e.prototype.serialize=function(){var e=this.node;return{backendNodeId:this.nodeId,childNodeCount:0,localName:\"\",nodeId:this.nodeId,nodeName:\"#text\",nodeType:3,nodeValue:e.textContent,parentId:this.devtool.getDOMNodeDebugInfo(this.node.parentNode,this.znode).nodeId}},e}(),Me=function(){function e(e){this.option=e,this.nodeId2ZNode=new Map,this.shadowRootNodeId2ZNode=new Map,this.nodeId2DOMNode=new Map,this.nodeId2PseudoElement=new Map,this.componentTargetId2ZNode=new Map,this.componentTargetId2LinkedInstance=new Map,this.shadowRootElementsEnabled=!1,this.rootNodeId=1,this.nextNodeId=this.rootNodeId+1,this.dependecyFactory=e.dependencyFactory}return e.prototype.sendMessage=function(e,t){this.option.connection.sendMessage(e,t)},e.prototype.sendMessageWithPriority=function(e,t){this.option.connection.sendMessage(e,t,!0)},e.prototype.getZRuntimeHelper=function(){return this.option.debugProxy.getZRuntime().h},e.prototype.getZNodeDebugInfo=function(e){if(!e._debug)if(1===e.eType){var t=this.option.debugProxy.getTagNameByPlatformElement(e)||\"unknown\";0===t.indexOf(\"unknown\")&&(t=e.tagName||e.externalElementName||t);var n=this.dependecyFactory.createZNodeElement(this,t.toUpperCase(),e,this.nextNodeId++,this.nextNodeId++,this.nextNodeId++);this.nodeId2ZNode.set(n.nodeId,n),this.shadowRootNodeId2ZNode.set(n.shadowRootNodeId,n),e._debug=n}else if(2===e.eType){var r=new Te(this,e,this.nextNodeId++,this.nextNodeId++);this.nodeId2ZNode.set(r.nodeId,r),e._debug=r}return e._debug},e.prototype.getZNodeComponentDebugInfo=function(e){if(!this.componentTargetId2ZNode.has(e)){var t=new xe(this,e,this.nextNodeId++);this.nodeId2ZNode.set(t.nodeId,t),this.componentTargetId2ZNode.set(e,t)}return this.componentTargetId2ZNode.get(e)},e.prototype.getDOMNodeDebugInfo=function(e,t,n){if(!e._debug)if(1===e.nodeType){var r=this.dependecyFactory.createDOMElement(this,e,this.nextNodeId++,n,t);this.nodeId2DOMNode.set(r.nodeId,r),e._debug=r}else if(3===e.nodeType){var o=new Ae(this,e,this.nextNodeId++,t);this.nodeId2DOMNode.set(o.nodeId,o),e._debug=o}return e._debug},e.prototype.getDocumentNode=function(){try{var e=[],t=this.getZNodeDebugInfo(this.option.clientProxy.renderer.documentInstance);t.setParentNodeId(1),e.push(t.serialize(1));var n=this.option.clientProxy.renderer.tabBarInstance;if(n){var r=this.getZNodeDebugInfo(n);if(r.setParentNodeId(1),r&&r.serialize(1).children){var o=r.serialize(1).children[0];o&&(o.nodeName=\"tab-bar\",o.attributes=[],e.push(o))}}return{backendNodeId:1,childNodeCount:1,children:e,localName:\"\",nodeId:1,nodeName:\"#document\",nodeType:9,nodeValue:\"\"}}catch(e){console.warn(\"getDocumentRoot error\",e);return{backendNodeId:1,childNodeCount:1,children:[{attributes:[],backendNodeId:2,childNodeCount:0,localName:\"page-not-found\",nodeId:2,nodeName:\"page-not-found\",nodeType:1,nodeValue:\"\",parentId:1}],localName:\"\",nodeId:1,nodeName:\"#document\",nodeType:9,nodeValue:\"\"}}},e.prototype.flushUpdatedQueue=function(){this.pageInstance&&this.pageInstance.flushUpdatedQueue()},e.prototype.resetZNodeActivatedState=function(){this.nodeId2ZNode.forEach((function(e){e.activated=!1,e.nodeType===P.Element&&e.childrenActivated&&(e.childrenActivated=!1)}))},e.prototype.enableShadowRootElements=function(){this.shadowRootElementsEnabled=!0},e.prototype.getNextNodeId=function(){return this.nextNodeId++},e}(),Pe=function(){function e(e,t){this.devtool=e,this.zruntime=t,this.rootZInstanceToLocation=X(),this.rootZTargetToLocation=X(),this.zInstanceToLocation=X(),this.zTargetToLocation=X(),this.zInstanceLocationStack=[],this.locationVisited=(G||Q(),new G),this.bindZElement=this.bindZElement.bind(this),this.bindZComponent=this.bindZComponent.bind(this),this.overwriteLocation=this.overwriteLocation.bind(this)}return e.prototype.bindZElement=function(e){var t=this.zInstanceLocationStack[this.zInstanceLocationStack.length-1];t&&(this.locationVisited.has(t)||(this.rootZInstanceToLocation.set(e,t),this.locationVisited.add(t)),this.zInstanceToLocation.set(e,t))},e.prototype.bindZComponent=function(e){var t=e[0],n=this.zInstanceLocationStack[this.zInstanceLocationStack.length-1];n&&(this.locationVisited.has(n)||(this.rootZTargetToLocation.set(t,n),this.locationVisited.add(n)),this.zTargetToLocation.set(t,n))},e.prototype.overwriteLocation=function(e){if(e.length>=3){var t=e[0],n=e[1],r=e[2],o=e[3],i=e[4],s={path:\"string\"==typeof i?i:this.getComponentInstancePathInfo(t),line:n,column:r};4&o&&(s.blockType=\"each\"),this.zInstanceLocationStack.push(s)}else e.length<=1&&this.zInstanceLocationStack.pop()},e.prototype.getZElementCompositedPathInfo=function(e){for(var t=[],n=this.devtool.getZNodeDebugInfo(e);n&&n.nodeType!==P.Text;){if(n.nodeType===P.Element){var r=n.node;if(r.document)break;var o=this.getZNodeOffsetInfo(n,n.node.ownerTargetId,this.zInstanceToLocation.get(n.node));t.push({pathInfo:o,element:r,type:\"Element\"})}else if(n.nodeType===P.Component){o=this.getZNodeOffsetInfo(n,n.getComponentInstance().option.parentTarget.targetId,this.zTargetToLocation.get(n.getComponentInstance()));t.push({pathInfo:o,componentIs:n.getComponentIs(),type:\"Component\"})}n=n.getParentNode()}return t},e.prototype.getComponentInstancePathInfo=function(e){var t,n;return 2===(t=e.type<2?e.option.parentTarget:e).type?n=t.componentIs:3===t.type&&(n=t.option.runtime.proxy.pagePath),n},e.prototype.getZElementDescription=function(e){var t=this.devtool.getZNodeDebugInfo(e),n=\"\";if(t.nodeType===P.Element){var r=t.getClassName();\"string\"==typeof r&&(n=r.split(/\\s+/).map((function(e){return\".\".concat(e)})).join(\"\"))}return\"\".concat(t.nodeName.toLowerCase()).concat(n)},e.prototype.getZNodeOffsetInfo=function(e,t,n){for(var r=e,o=[];r&&r.nodeType!==P.Text;){var i=void 0;if(r.nodeType===P.Element){var s=r.node;s.ownerTargetId===t&&(i={index:-1,description:this.getZElementDescription(s),element:s})}else if(r.nodeType===P.Component){if(r===e)i={index:-1,componentIs:r.getComponentInstance().componentIs}}if(i){for(var a=r,u=void 0;a;){var c=void 0;if(a.nodeType===P.Element?(c=this.zInstanceToLocation.get(a.node),u=this.rootZInstanceToLocation.get(a.node)):a.nodeType===P.Component&&(c=this.zTargetToLocation.get(a.getComponentInstance()),u=this.rootZTargetToLocation.get(a.getComponentInstance())),c===n&&(i.index+=1,u))break;a=a.getPreviousElementOrTextSibling()}if(o.unshift(i),u)return{location:u,offsets:o}}r=r.getParentNode()}return{location:void 0,offsets:o}},e}();var Le=function(e,t,n){this.nodeId=e,this.pseudoType=t,this.root=n},De=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return R(t,e),t.prototype.getPseudoElements=function(){var e=this,t=[],n=this.getPlatformRootDOM();return n.nodeType===Node.ELEMENT_NODE&&[\"before\",\"after\"].forEach((function(r){var o=\"::\".concat(r),i=getComputedStyle(n,o).getPropertyValue(\"content\");if(i&&\"none\"!==i){e.pseudoNodeType2Id||(e.pseudoNodeType2Id={});var s=e.pseudoNodeType2Id[r];s||(s=e.pseudoNodeType2Id[r]=e.devtool.getNextNodeId()),e.devtool.nodeId2PseudoElement.set(s,new Le(s,r,e.getPlatformRootDOM())),t.push({attributes:[],backendNodeId:s,childNodeCount:0,localName:o,nodeId:s,nodeName:o,nodeType:1,nodeValue:\"\",parentId:e.nodeId,pseudoType:r})}})),t},t}(Ee),Be=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return R(t,e),t.prototype.getPseudoElements=function(){var e=this,t=[],n=this.node;return 1===n.nodeType&&[\"before\",\"after\"].forEach((function(r){var o=\"::\".concat(r);if(\"none\"!==getComputedStyle(n,o).getPropertyValue(\"content\")){e.pseudoNodeType2Id||(e.pseudoNodeType2Id={});var i=e.pseudoNodeType2Id[r];i||(i=e.pseudoNodeType2Id[r]=e.devtool.getNextNodeId()),e.devtool.nodeId2PseudoElement.set(i,new Le(i,r,e.node)),t.push({attributes:[],backendNodeId:i,childNodeCount:0,localName:o,nodeId:i,nodeName:o,nodeType:1,nodeValue:\"\",parentId:e.nodeId,pseudoType:r})}})),t},t}(Oe);function Re(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,\"default\")?e.default:e}function Fe(e,t){return e(t={exports:{}},t.exports),t.exports}var je=Fe((function(e,t){window,e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){\"undefined\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:\"Module\"}),Object.defineProperty(e,\"__esModule\",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&\"object\"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,\"default\",{enumerable:!0,value:e}),2&t&&\"string\"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,\"a\",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p=\"\",n(n.s=21)}([function(e,t){t.getArg=function(e,t,n){if(t in e)return e[t];if(3===arguments.length)return n;throw new Error('\"'+t+'\" is a required argument.')};var n=/^(?:([\\w+\\-.]+):)?\\/\\/(?:(\\w+:\\w+)@)?([\\w.-]*)(?::(\\d+))?(.*)$/,r=/^data:.+\\,.+$/;function o(e){var t=e.match(n);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}function i(e){var t=\"\";return e.scheme&&(t+=e.scheme+\":\"),t+=\"//\",e.auth&&(t+=e.auth+\"@\"),e.host&&(t+=e.host),e.port&&(t+=\":\"+e.port),e.path&&(t+=e.path),t}function s(e){var n=e,r=o(e);if(r){if(!r.path)return e;n=r.path}for(var s,a=t.isAbsolute(n),u=n.split(/\\/+/),c=0,l=u.length-1;l>=0;l--)\".\"===(s=u[l])?u.splice(l,1):\"..\"===s?c++:c>0&&(\"\"===s?(u.splice(l+1,c),c=0):(u.splice(l,2),c--));return\"\"===(n=u.join(\"/\"))&&(n=a?\"/\":\".\"),r?(r.path=n,i(r)):n}function a(e,t){\"\"===e&&(e=\".\"),\"\"===t&&(t=\".\");var n=o(t),a=o(e);if(a&&(e=a.path||\"/\"),n&&!n.scheme)return a&&(n.scheme=a.scheme),i(n);if(n||t.match(r))return t;if(a&&!a.host&&!a.path)return a.host=t,i(a);var u=\"/\"===t.charAt(0)?t:s(e.replace(/\\/+$/,\"\")+\"/\"+t);return a?(a.path=u,i(a)):u}t.urlParse=o,t.urlGenerate=i,t.normalize=s,t.join=a,t.isAbsolute=function(e){return\"/\"===e.charAt(0)||n.test(e)},t.relative=function(e,t){\"\"===e&&(e=\".\"),e=e.replace(/\\/$/,\"\");for(var n=0;0!==t.indexOf(e+\"/\");){var r=e.lastIndexOf(\"/\");if(r<0)return t;if((e=e.slice(0,r)).match(/^([^\\/]+:\\/)?\\/*$/))return t;++n}return Array(n+1).join(\"../\")+t.substr(e.length+1)};var u=!(\"__proto__\"in Object.create(null));function c(e){return e}function l(e){if(!e)return!1;var t=e.length;if(t<9)return!1;if(95!==e.charCodeAt(t-1)||95!==e.charCodeAt(t-2)||111!==e.charCodeAt(t-3)||116!==e.charCodeAt(t-4)||111!==e.charCodeAt(t-5)||114!==e.charCodeAt(t-6)||112!==e.charCodeAt(t-7)||95!==e.charCodeAt(t-8)||95!==e.charCodeAt(t-9))return!1;for(var n=t-10;n>=0;n--)if(36!==e.charCodeAt(n))return!1;return!0}function d(e,t){return e===t?0:null===e?1:null===t?-1:e>t?1:-1}t.toSetString=u?c:function(e){return l(e)?\"$\"+e:e},t.fromSetString=u?c:function(e){return l(e)?e.slice(1):e},t.compareByOriginalPositions=function(e,t,n){var r=d(e.source,t.source);return 0!==r||0!=(r=e.originalLine-t.originalLine)||0!=(r=e.originalColumn-t.originalColumn)||n||0!=(r=e.generatedColumn-t.generatedColumn)||0!=(r=e.generatedLine-t.generatedLine)?r:d(e.name,t.name)},t.compareByGeneratedPositionsDeflated=function(e,t,n){var r=e.generatedLine-t.generatedLine;return 0!==r||0!=(r=e.generatedColumn-t.generatedColumn)||n||0!==(r=d(e.source,t.source))||0!=(r=e.originalLine-t.originalLine)||0!=(r=e.originalColumn-t.originalColumn)?r:d(e.name,t.name)},t.compareByGeneratedPositionsInflated=function(e,t){var n=e.generatedLine-t.generatedLine;return 0!==n||0!=(n=e.generatedColumn-t.generatedColumn)||0!==(n=d(e.source,t.source))||0!=(n=e.originalLine-t.originalLine)||0!=(n=e.originalColumn-t.originalColumn)?n:d(e.name,t.name)},t.parseSourceMapInput=function(e){return JSON.parse(e.replace(/^\\)]}'[^\\n]*\\n/,\"\"))},t.computeSourceURL=function(e,t,n){if(t=t||\"\",e&&(\"/\"!==e[e.length-1]&&\"/\"!==t[0]&&(e+=\"/\"),t=e+t),n){var r=o(n);if(!r)throw new Error(\"sourceMapURL could not be parsed\");if(r.path){var u=r.path.lastIndexOf(\"/\");u>=0&&(r.path=r.path.substring(0,u+1))}t=a(i(r),t)}return s(t)}},function(e,t,n){var r;t.__esModule=!0,t.default=void 0;var o=function(e){var t,n;function r(t){var n;return(n=e.call(this,t)||this).type=\"decl\",n}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r}(((r=n(2))&&r.__esModule?r:{default:r}).default);t.default=o,e.exports=t.default},function(e,t,n){t.__esModule=!0,t.default=void 0;var r=s(n(10)),o=s(n(11)),i=s(n(3));function s(e){return e&&e.__esModule?e:{default:e}}var a=function(){function e(e){for(var t in void 0===e&&(e={}),this.raws={},e)this[t]=e[t]}var t=e.prototype;return t.error=function(e,t){if(void 0===t&&(t={}),this.source){var n=this.positionBy(t);return this.source.input.error(e,n.line,n.column,t)}return new r.default(e)},t.warn=function(e,t,n){var r={node:this};for(var o in n)r[o]=n[o];return e.warn(t,r)},t.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},t.toString=function(e){void 0===e&&(e=i.default),e.stringify&&(e=e.stringify);var t=\"\";return e(this,(function(e){t+=e})),t},t.clone=function(e){void 0===e&&(e={});var t=function e(t,n){var r=new t.constructor;for(var o in t)if(t.hasOwnProperty(o)){var i=t[o],s=typeof i;\"parent\"===o&&\"object\"===s?n&&(r[o]=n):\"source\"===o?r[o]=i:i instanceof Array?r[o]=i.map((function(t){return e(t,r)})):(\"object\"===s&&null!==i&&(i=e(i)),r[o]=i)}return r}(this);for(var n in e)t[n]=e[n];return t},t.cloneBefore=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertBefore(this,t),t},t.cloneAfter=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertAfter(this,t),t},t.replaceWith=function(){if(this.parent){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(var r=0,o=t;r<o.length;r++){var i=o[r];this.parent.insertBefore(this,i)}this.remove()}return this},t.next=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}},t.prev=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e-1]}},t.before=function(e){return this.parent.insertBefore(this,e),this},t.after=function(e){return this.parent.insertAfter(this,e),this},t.toJSON=function(){var e={};for(var t in this)if(this.hasOwnProperty(t)&&\"parent\"!==t){var n=this[t];n instanceof Array?e[t]=n.map((function(e){return\"object\"==typeof e&&e.toJSON?e.toJSON():e})):\"object\"==typeof n&&n.toJSON?e[t]=n.toJSON():e[t]=n}return e},t.raw=function(e,t){return(new o.default).raw(this,e,t)},t.root=function(){for(var e=this;e.parent;)e=e.parent;return e},t.cleanRaws=function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between},t.positionInside=function(e){for(var t=this.toString(),n=this.source.start.column,r=this.source.start.line,o=0;o<e;o++)\"\\n\"===t[o]?(n=1,r+=1):n+=1;return{line:r,column:n}},t.positionBy=function(e){var t=this.source.start;if(e.index)t=this.positionInside(e.index);else if(e.word){var n=this.toString().indexOf(e.word);-1!==n&&(t=this.positionInside(n))}return t},e}();t.default=a,e.exports=t.default},function(e,t,n){t.__esModule=!0,t.default=void 0;var r,o=(r=n(11))&&r.__esModule?r:{default:r};t.default=function(e,t){new o.default(t).stringify(e)},e.exports=t.default},function(e,t,n){(function(e){function n(e,t){for(var n=0,r=e.length-1;r>=0;r--){var o=e[r];\".\"===o?e.splice(r,1):\"..\"===o?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift(\"..\");return e}function r(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r<e.length;r++)t(e[r],r,e)&&n.push(e[r]);return n}t.resolve=function(){for(var t=\"\",o=!1,i=arguments.length-1;i>=-1&&!o;i--){var s=i>=0?arguments[i]:e.cwd();if(\"string\"!=typeof s)throw new TypeError(\"Arguments to path.resolve must be strings\");s&&(t=s+\"/\"+t,o=\"/\"===s.charAt(0))}return(o?\"/\":\"\")+(t=n(r(t.split(\"/\"),(function(e){return!!e})),!o).join(\"/\"))||\".\"},t.normalize=function(e){var i=t.isAbsolute(e),s=\"/\"===o(e,-1);return(e=n(r(e.split(\"/\"),(function(e){return!!e})),!i).join(\"/\"))||i||(e=\".\"),e&&s&&(e+=\"/\"),(i?\"/\":\"\")+e},t.isAbsolute=function(e){return\"/\"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(r(e,(function(e,t){if(\"string\"!=typeof e)throw new TypeError(\"Arguments to path.join must be strings\");return e})).join(\"/\"))},t.relative=function(e,n){function r(e){for(var t=0;t<e.length&&\"\"===e[t];t++);for(var n=e.length-1;n>=0&&\"\"===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}e=t.resolve(e).substr(1),n=t.resolve(n).substr(1);for(var o=r(e.split(\"/\")),i=r(n.split(\"/\")),s=Math.min(o.length,i.length),a=s,u=0;u<s;u++)if(o[u]!==i[u]){a=u;break}var c=[];for(u=a;u<o.length;u++)c.push(\"..\");return(c=c.concat(i.slice(a))).join(\"/\")},t.sep=\"/\",t.delimiter=\":\",t.dirname=function(e){if(\"string\"!=typeof e&&(e+=\"\"),0===e.length)return\".\";for(var t=e.charCodeAt(0),n=47===t,r=-1,o=!0,i=e.length-1;i>=1;--i)if(47===(t=e.charCodeAt(i))){if(!o){r=i;break}}else o=!1;return-1===r?n?\"/\":\".\":n&&1===r?\"/\":e.slice(0,r)},t.basename=function(e,t){var n=function(e){\"string\"!=typeof e&&(e+=\"\");var t,n=0,r=-1,o=!0;for(t=e.length-1;t>=0;--t)if(47===e.charCodeAt(t)){if(!o){n=t+1;break}}else-1===r&&(o=!1,r=t+1);return-1===r?\"\":e.slice(n,r)}(e);return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},t.extname=function(e){\"string\"!=typeof e&&(e+=\"\");for(var t=-1,n=0,r=-1,o=!0,i=0,s=e.length-1;s>=0;--s){var a=e.charCodeAt(s);if(47!==a)-1===r&&(o=!1,r=s+1),46===a?-1===t?t=s:1!==i&&(i=1):-1!==t&&(i=-1);else if(!o){n=s+1;break}}return-1===t||-1===r||0===i||1===i&&t===r-1&&t===n+1?\"\":e.slice(t,r)};var o=\"b\"===\"ab\".substr(-1)?function(e,t,n){return e.substr(t,n)}:function(e,t,n){return t<0&&(t=e.length+t),e.substr(t,n)}}).call(this,n(36))},function(e,t,n){t.__esModule=!0,t.default=void 0;var r=i(n(40)),o=i(n(42));function i(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t){var n=new o.default(e,t),i=new r.default(n);try{i.parse()}catch(e){throw e}return i.root},e.exports=t.default},function(e,t,n){var r;t.__esModule=!0,t.default=void 0;var o=function(e){var t,n;function r(t){var n;return(n=e.call(this,t)||this).type=\"comment\",n}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r}(((r=n(2))&&r.__esModule?r:{default:r}).default);t.default=o,e.exports=t.default},function(e,t,n){var r;t.__esModule=!0,t.default=void 0;var o=function(e){var t,n;function r(t){var n;return(n=e.call(this,t)||this).type=\"atrule\",n}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.append=function(){var t;this.nodes||(this.nodes=[]);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.prototype.append).call.apply(t,[this].concat(r))},o.prepend=function(){var t;this.nodes||(this.nodes=[]);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.prototype.prepend).call.apply(t,[this].concat(r))},r}(((r=n(8))&&r.__esModule?r:{default:r}).default);t.default=o,e.exports=t.default},function(e,t,n){t.__esModule=!0,t.default=void 0;var r=i(n(1)),o=i(n(6));function i(e){return e&&e.__esModule?e:{default:e}}var s=function(e){var t,i;function s(){return e.apply(this,arguments)||this}i=e,(t=s).prototype=Object.create(i.prototype),t.prototype.constructor=t,t.__proto__=i;var a,u=s.prototype;return u.push=function(e){return e.parent=this,this.nodes.push(e),this},u.each=function(e){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var t=this.lastEach;if(this.indexes[t]=0,this.nodes){for(var n,r;this.indexes[t]<this.nodes.length&&(n=this.indexes[t],!1!==(r=e(this.nodes[n],n)));)this.indexes[t]+=1;return delete this.indexes[t],r}},u.walk=function(e){return this.each((function(t,n){var r;try{r=e(t,n)}catch(e){if(e.postcssNode=t,e.stack&&t.source&&/\\n\\s{4}at /.test(e.stack)){var o=t.source;e.stack=e.stack.replace(/\\n\\s{4}at /,\"$&\"+o.input.from+\":\"+o.start.line+\":\"+o.start.column+\"$&\")}throw e}return!1!==r&&t.walk&&(r=t.walk(e)),r}))},u.walkDecls=function(e,t){return t?e instanceof RegExp?this.walk((function(n,r){if(\"decl\"===n.type&&e.test(n.prop))return t(n,r)})):this.walk((function(n,r){if(\"decl\"===n.type&&n.prop===e)return t(n,r)})):(t=e,this.walk((function(e,n){if(\"decl\"===e.type)return t(e,n)})))},u.walkRules=function(e,t){return t?e instanceof RegExp?this.walk((function(n,r){if(\"rule\"===n.type&&e.test(n.selector))return t(n,r)})):this.walk((function(n,r){if(\"rule\"===n.type&&n.selector===e)return t(n,r)})):(t=e,this.walk((function(e,n){if(\"rule\"===e.type)return t(e,n)})))},u.walkAtRules=function(e,t){return t?e instanceof RegExp?this.walk((function(n,r){if(\"atrule\"===n.type&&e.test(n.name))return t(n,r)})):this.walk((function(n,r){if(\"atrule\"===n.type&&n.name===e)return t(n,r)})):(t=e,this.walk((function(e,n){if(\"atrule\"===e.type)return t(e,n)})))},u.walkComments=function(e){return this.walk((function(t,n){if(\"comment\"===t.type)return e(t,n)}))},u.append=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(var r=0,o=t;r<o.length;r++){var i=o[r],s=this.normalize(i,this.last),a=s,u=Array.isArray(a),c=0;for(a=u?a:a[Symbol.iterator]();;){var l;if(u){if(c>=a.length)break;l=a[c++]}else{if((c=a.next()).done)break;l=c.value}var d=l;this.nodes.push(d)}}return this},u.prepend=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t=t.reverse(),o=Array.isArray(r),i=0;for(r=o?r:r[Symbol.iterator]();;){var s;if(o){if(i>=r.length)break;s=r[i++]}else{if((i=r.next()).done)break;s=i.value}var a=s,u=this.normalize(a,this.first,\"prepend\").reverse(),c=u,l=Array.isArray(c),d=0;for(c=l?c:c[Symbol.iterator]();;){var h;if(l){if(d>=c.length)break;h=c[d++]}else{if((d=c.next()).done)break;h=d.value}var p=h;this.nodes.unshift(p)}for(var f in this.indexes)this.indexes[f]=this.indexes[f]+u.length}return this},u.cleanRaws=function(t){if(e.prototype.cleanRaws.call(this,t),this.nodes){var n=this.nodes,r=Array.isArray(n),o=0;for(n=r?n:n[Symbol.iterator]();;){var i;if(r){if(o>=n.length)break;i=n[o++]}else{if((o=n.next()).done)break;i=o.value}i.cleanRaws(t)}}},u.insertBefore=function(e,t){var n,r=0===(e=this.index(e))&&\"prepend\",o=this.normalize(t,this.nodes[e],r).reverse(),i=o,s=Array.isArray(i),a=0;for(i=s?i:i[Symbol.iterator]();;){var u;if(s){if(a>=i.length)break;u=i[a++]}else{if((a=i.next()).done)break;u=a.value}var c=u;this.nodes.splice(e,0,c)}for(var l in this.indexes)e<=(n=this.indexes[l])&&(this.indexes[l]=n+o.length);return this},u.insertAfter=function(e,t){e=this.index(e);var n,r=this.normalize(t,this.nodes[e]).reverse(),o=r,i=Array.isArray(o),s=0;for(o=i?o:o[Symbol.iterator]();;){var a;if(i){if(s>=o.length)break;a=o[s++]}else{if((s=o.next()).done)break;a=s.value}var u=a;this.nodes.splice(e+1,0,u)}for(var c in this.indexes)e<(n=this.indexes[c])&&(this.indexes[c]=n+r.length);return this},u.removeChild=function(e){var t;for(var n in e=this.index(e),this.nodes[e].parent=void 0,this.nodes.splice(e,1),this.indexes)(t=this.indexes[n])>=e&&(this.indexes[n]=t-1);return this},u.removeAll=function(){var e=this.nodes,t=Array.isArray(e),n=0;for(e=t?e:e[Symbol.iterator]();;){var r;if(t){if(n>=e.length)break;r=e[n++]}else{if((n=e.next()).done)break;r=n.value}r.parent=void 0}return this.nodes=[],this},u.replaceValues=function(e,t,n){return n||(n=t,t={}),this.walkDecls((function(r){t.props&&-1===t.props.indexOf(r.prop)||t.fast&&-1===r.value.indexOf(t.fast)||(r.value=r.value.replace(e,n))})),this},u.every=function(e){return this.nodes.every(e)},u.some=function(e){return this.nodes.some(e)},u.index=function(e){return\"number\"==typeof e?e:this.nodes.indexOf(e)},u.normalize=function(e,t){var i=this;if(\"string\"==typeof e)e=function e(t){return t.map((function(t){return t.nodes&&(t.nodes=e(t.nodes)),delete t.source,t}))}(n(5)(e).nodes);else if(Array.isArray(e)){var s=e=e.slice(0),a=Array.isArray(s),u=0;for(s=a?s:s[Symbol.iterator]();;){var c;if(a){if(u>=s.length)break;c=s[u++]}else{if((u=s.next()).done)break;c=u.value}var l=c;l.parent&&l.parent.removeChild(l,\"ignore\")}}else if(\"root\"===e.type){var d=e=e.nodes.slice(0),h=Array.isArray(d),p=0;for(d=h?d:d[Symbol.iterator]();;){var f;if(h){if(p>=d.length)break;f=d[p++]}else{if((p=d.next()).done)break;f=p.value}var g=f;g.parent&&g.parent.removeChild(g,\"ignore\")}}else if(e.type)e=[e];else if(e.prop){if(void 0===e.value)throw new Error(\"Value field is missed in node creation\");\"string\"!=typeof e.value&&(e.value=String(e.value)),e=[new r.default(e)]}else if(e.selector)e=[new(n(9))(e)];else if(e.name)e=[new(n(7))(e)];else{if(!e.text)throw new Error(\"Unknown node type in node creation\");e=[new o.default(e)]}return e.map((function(e){return e.parent&&e.parent.removeChild(e),void 0===e.raws.before&&t&&void 0!==t.raws.before&&(e.raws.before=t.raws.before.replace(/[^\\s]/g,\"\")),e.parent=i,e}))},(a=[{key:\"first\",get:function(){if(this.nodes)return this.nodes[0]}},{key:\"last\",get:function(){if(this.nodes)return this.nodes[this.nodes.length-1]}}])&&function(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)}}(s.prototype,a),s}(i(n(2)).default);t.default=s,e.exports=t.default},function(e,t,n){t.__esModule=!0,t.default=void 0;var r=i(n(8)),o=i(n(19));function i(e){return e&&e.__esModule?e:{default:e}}var s=function(e){var t,n,r;function i(t){var n;return(n=e.call(this,t)||this).type=\"rule\",n.nodes||(n.nodes=[]),n}return n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,(r=[{key:\"selectors\",get:function(){return o.default.comma(this.selector)},set:function(e){var t=this.selector?this.selector.match(/,\\s*/):null,n=t?t[0]:\",\"+this.raw(\"between\",\"beforeOpen\");this.selector=e.join(n)}}])&&function(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)}}(i.prototype,r),i}(r.default);t.default=s,e.exports=t.default},function(e,t,n){t.__esModule=!0,t.default=void 0;var r=s(n(22)),o=s(n(23)),i=s(n(24));function s(e){return e&&e.__esModule?e:{default:e}}function a(e){var t=\"function\"==typeof Map?new Map:void 0;return(a=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf(\"[native code]\")))return e;var n;if(\"function\"!=typeof e)throw new TypeError(\"Super expression must either be null or a function\");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return c(e,arguments,d(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),l(r,e)})(e)}function u(){if(\"undefined\"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(\"function\"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function c(e,t,n){return(c=u()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&l(o,n.prototype),o}).apply(null,arguments)}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var h=function(e){var t,n;function s(t,n,r,o,i,a){var u;return(u=e.call(this,t)||this).name=\"CssSyntaxError\",u.reason=t,i&&(u.file=i),o&&(u.source=o),a&&(u.plugin=a),void 0!==n&&void 0!==r&&(u.line=n,u.column=r),u.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(function(e){if(void 0===e)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return e}(u),s),u}n=e,(t=s).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var a=s.prototype;return a.setMessage=function(){this.message=this.plugin?this.plugin+\": \":\"\",this.message+=this.file?this.file:\"<css input>\",void 0!==this.line&&(this.message+=\":\"+this.line+\":\"+this.column),this.message+=\": \"+this.reason},a.showSourceCode=function(e){var t=this;if(!this.source)return\"\";var n=this.source;i.default&&(void 0===e&&(e=r.default.stdout),e&&(n=(0,i.default)(n)));var s=n.split(/\\r?\\n/),a=Math.max(this.line-3,0),u=Math.min(this.line+2,s.length),c=String(u).length;function l(t){return e&&o.default.red?o.default.red.bold(t):t}function d(t){return e&&o.default.gray?o.default.gray(t):t}return s.slice(a,u).map((function(e,n){var r=a+1+n,o=\" \"+(\" \"+r).slice(-c)+\" | \";if(r===t.line){var i=d(o.replace(/\\d/g,\" \"))+e.slice(0,t.column-1).replace(/[^\\t]/g,\" \");return l(\">\")+d(o)+e+\"\\n \"+i+l(\"^\")}return\" \"+d(o)+e})).join(\"\\n\")},a.toString=function(){var e=this.showSourceCode();return e&&(e=\"\\n\\n\"+e+\"\\n\"),this.name+\": \"+this.message+e},s}(a(Error));t.default=h,e.exports=t.default},function(e,t,n){t.__esModule=!0,t.default=void 0;var r={colon:\": \",indent:\" \",beforeDecl:\"\\n\",beforeRule:\"\\n\",beforeOpen:\" \",beforeClose:\"\\n\",beforeComment:\"\\n\",after:\"\\n\",emptyBody:\"\",commentLeft:\" \",commentRight:\" \",semicolon:!1},o=function(){function e(e){this.builder=e}var t=e.prototype;return t.stringify=function(e,t){this[e.type](e,t)},t.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},t.comment=function(e){var t=this.raw(e,\"left\",\"commentLeft\"),n=this.raw(e,\"right\",\"commentRight\");this.builder(\"/*\"+t+e.text+n+\"*/\",e)},t.decl=function(e,t){var n=this.raw(e,\"between\",\"colon\"),r=e.prop+n+this.rawValue(e,\"value\");e.important&&(r+=e.raws.important||\" !important\"),t&&(r+=\";\"),this.builder(r,e)},t.rule=function(e){this.block(e,this.rawValue(e,\"selector\")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,\"end\")},t.atrule=function(e,t){var n=\"@\"+e.name,r=e.params?this.rawValue(e,\"params\"):\"\";if(void 0!==e.raws.afterName?n+=e.raws.afterName:r&&(n+=\" \"),e.nodes)this.block(e,n+r);else{var o=(e.raws.between||\"\")+(t?\";\":\"\");this.builder(n+r+o,e)}},t.body=function(e){for(var t=e.nodes.length-1;t>0&&\"comment\"===e.nodes[t].type;)t-=1;for(var n=this.raw(e,\"semicolon\"),r=0;r<e.nodes.length;r++){var o=e.nodes[r],i=this.raw(o,\"before\");i&&this.builder(i),this.stringify(o,t!==r||n)}},t.block=function(e,t){var n,r=this.raw(e,\"between\",\"beforeOpen\");this.builder(t+r+\"{\",e,\"start\"),e.nodes&&e.nodes.length?(this.body(e),n=this.raw(e,\"after\")):n=this.raw(e,\"after\",\"emptyBody\"),n&&this.builder(n),this.builder(\"}\",e,\"end\")},t.raw=function(e,t,n){var o;if(n||(n=t),t&&void 0!==(o=e.raws[t]))return o;var i=e.parent;if(\"before\"===n&&(!i||\"root\"===i.type&&i.first===e))return\"\";if(!i)return r[n];var s=e.root();if(s.rawCache||(s.rawCache={}),void 0!==s.rawCache[n])return s.rawCache[n];if(\"before\"===n||\"after\"===n)return this.beforeAfter(e,n);var a,u=\"raw\"+((a=n)[0].toUpperCase()+a.slice(1));return this[u]?o=this[u](s,e):s.walk((function(e){if(void 0!==(o=e.raws[t]))return!1})),void 0===o&&(o=r[n]),s.rawCache[n]=o,o},t.rawSemicolon=function(e){var t;return e.walk((function(e){if(e.nodes&&e.nodes.length&&\"decl\"===e.last.type&&void 0!==(t=e.raws.semicolon))return!1})),t},t.rawEmptyBody=function(e){var t;return e.walk((function(e){if(e.nodes&&0===e.nodes.length&&void 0!==(t=e.raws.after))return!1})),t},t.rawIndent=function(e){return e.raws.indent?e.raws.indent:(e.walk((function(n){var r=n.parent;if(r&&r!==e&&r.parent&&r.parent===e&&void 0!==n.raws.before){var o=n.raws.before.split(\"\\n\");return t=(t=o[o.length-1]).replace(/[^\\s]/g,\"\"),!1}})),t);var t},t.rawBeforeComment=function(e,t){var n;return e.walkComments((function(e){if(void 0!==e.raws.before)return-1!==(n=e.raws.before).indexOf(\"\\n\")&&(n=n.replace(/[^\\n]+$/,\"\")),!1})),void 0===n?n=this.raw(t,null,\"beforeDecl\"):n&&(n=n.replace(/[^\\s]/g,\"\")),n},t.rawBeforeDecl=function(e,t){var n;return e.walkDecls((function(e){if(void 0!==e.raws.before)return-1!==(n=e.raws.before).indexOf(\"\\n\")&&(n=n.replace(/[^\\n]+$/,\"\")),!1})),void 0===n?n=this.raw(t,null,\"beforeRule\"):n&&(n=n.replace(/[^\\s]/g,\"\")),n},t.rawBeforeRule=function(e){var t;return e.walk((function(n){if(n.nodes&&(n.parent!==e||e.first!==n)&&void 0!==n.raws.before)return-1!==(t=n.raws.before).indexOf(\"\\n\")&&(t=t.replace(/[^\\n]+$/,\"\")),!1})),t&&(t=t.replace(/[^\\s]/g,\"\")),t},t.rawBeforeClose=function(e){var t;return e.walk((function(e){if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return-1!==(t=e.raws.after).indexOf(\"\\n\")&&(t=t.replace(/[^\\n]+$/,\"\")),!1})),t&&(t=t.replace(/[^\\s]/g,\"\")),t},t.rawBeforeOpen=function(e){var t;return e.walk((function(e){if(\"decl\"!==e.type&&void 0!==(t=e.raws.between))return!1})),t},t.rawColon=function(e){var t;return e.walkDecls((function(e){if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\\s:]/g,\"\"),!1})),t},t.beforeAfter=function(e,t){var n;n=\"decl\"===e.type?this.raw(e,null,\"beforeDecl\"):\"comment\"===e.type?this.raw(e,null,\"beforeComment\"):\"before\"===t?this.raw(e,null,\"beforeRule\"):this.raw(e,null,\"beforeClose\");for(var r=e.parent,o=0;r&&\"root\"!==r.type;)o+=1,r=r.parent;if(-1!==n.indexOf(\"\\n\")){var i=this.raw(e,null,\"indent\");if(i.length)for(var s=0;s<o;s++)n+=i}return n},t.rawValue=function(e,t){var n=e[t],r=e.raws[t];return r&&r.value===n?r.raw:n},e}();t.default=o,e.exports=t.default},function(e,t,n){t.__esModule=!0,t.default=void 0;var r,o=(r=n(13))&&r.__esModule?r:{default:r},i=function(){function e(e){void 0===e&&(e=[]),this.version=\"7.0.32\",this.plugins=this.normalize(e)}var t=e.prototype;return t.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},t.process=function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e,t){return void 0===t&&(t={}),0===this.plugins.length&&(t.parser,t.stringifier),new o.default(this,e,t)})),t.normalize=function(e){var t=[],n=e,r=Array.isArray(n),o=0;for(n=r?n:n[Symbol.iterator]();;){var i;if(r){if(o>=n.length)break;i=n[o++]}else{if((o=n.next()).done)break;i=o.value}var s=i;if(s.postcss&&(s=s.postcss),\"object\"==typeof s&&Array.isArray(s.plugins))t=t.concat(s.plugins);else if(\"function\"==typeof s)t.push(s);else if(\"object\"!=typeof s||!s.parse&&!s.stringify)throw new Error(s+\" is not a PostCSS plugin\")}return t},e}();t.default=i,e.exports=t.default},function(e,t,n){t.__esModule=!0,t.default=void 0;var r=a(n(25)),o=a(n(3)),i=(a(n(37)),a(n(38))),s=a(n(5));function a(e){return e&&e.__esModule?e:{default:e}}function u(e){return\"object\"==typeof e&&\"function\"==typeof e.then}var c=function(){function e(t,n,r){var o;if(this.stringified=!1,this.processed=!1,\"object\"==typeof n&&null!==n&&\"root\"===n.type)o=n;else if(n instanceof e||n instanceof i.default)o=n.root,n.map&&(void 0===r.map&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=n.map);else{var a=s.default;r.syntax&&(a=r.syntax.parse),r.parser&&(a=r.parser),a.parse&&(a=a.parse);try{o=a(n,r)}catch(e){this.error=e}}this.result=new i.default(t,o,r)}var t,n=e.prototype;return n.warnings=function(){return this.sync().warnings()},n.toString=function(){return this.css},n.then=function(e,t){return this.async().then(e,t)},n.catch=function(e){return this.async().catch(e)},n.finally=function(e){return this.async().then(e,e)},n.handleError=function(e,t){try{this.error=e,\"CssSyntaxError\"!==e.name||e.plugin?t.postcssVersion:(e.plugin=t.postcssPlugin,e.setMessage())}catch(e){console&&console.error&&console.error(e)}},n.asyncTick=function(e,t){var n=this;if(this.plugin>=this.processor.plugins.length)return this.processed=!0,e();try{var r=this.processor.plugins[this.plugin],o=this.run(r);this.plugin+=1,u(o)?o.then((function(){n.asyncTick(e,t)})).catch((function(e){n.handleError(e,r),n.processed=!0,t(e)})):this.asyncTick(e,t)}catch(e){this.processed=!0,t(e)}},n.async=function(){var e=this;return this.processed?new Promise((function(t,n){e.error?n(e.error):t(e.stringify())})):(this.processing||(this.processing=new Promise((function(t,n){if(e.error)return n(e.error);e.plugin=0,e.asyncTick(t,n)})).then((function(){return e.processed=!0,e.stringify()}))),this.processing)},n.sync=function(){if(this.processed)return this.result;if(this.processed=!0,this.processing)throw new Error(\"Use process(css).then(cb) to work with async plugins\");if(this.error)throw this.error;var e=this.result.processor.plugins,t=Array.isArray(e),n=0;for(e=t?e:e[Symbol.iterator]();;){var r;if(t){if(n>=e.length)break;r=e[n++]}else{if((n=e.next()).done)break;r=n.value}var o=r;if(u(this.run(o)))throw new Error(\"Use process(css).then(cb) to work with async plugins\")}return this.result},n.run=function(e){this.result.lastPlugin=e;try{return e(this.result.root,this.result)}catch(t){throw this.handleError(t,e),t}},n.stringify=function(){if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,t=o.default;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var n=new r.default(t,this.result.root,this.result.opts).generate();return this.result.css=n[0],this.result.map=n[1],this.result},(t=[{key:\"processor\",get:function(){return this.result.processor}},{key:\"opts\",get:function(){return this.result.opts}},{key:\"css\",get:function(){return this.stringify().css}},{key:\"content\",get:function(){return this.stringify().content}},{key:\"map\",get:function(){return this.stringify().map}},{key:\"root\",get:function(){return this.sync().root}},{key:\"messages\",get:function(){return this.sync().messages}}])&&function(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)}}(e.prototype,t),e}();t.default=c,e.exports=t.default},function(e,t,n){(function(e){var r=n(27),o=n(28),i=n(29);function s(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function a(e,t){if(s()<t)throw new RangeError(\"Invalid typed array length\");return u.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=u.prototype:(null===e&&(e=new u(t)),e.length=t),e}function u(e,t,n){if(!(u.TYPED_ARRAY_SUPPORT||this instanceof u))return new u(e,t,n);if(\"number\"==typeof e){if(\"string\"==typeof t)throw new Error(\"If encoding is specified then the first argument must be a string\");return d(this,e)}return c(this,e,t,n)}function c(e,t,n,r){if(\"number\"==typeof t)throw new TypeError('\"value\" argument must not be a number');return\"undefined\"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError(\"'offset' is out of bounds\");if(t.byteLength<n+(r||0))throw new RangeError(\"'length' is out of bounds\");return t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r),u.TYPED_ARRAY_SUPPORT?(e=t).__proto__=u.prototype:e=h(e,t),e}(e,t,n,r):\"string\"==typeof t?function(e,t,n){if(\"string\"==typeof n&&\"\"!==n||(n=\"utf8\"),!u.isEncoding(n))throw new TypeError('\"encoding\" must be a valid string encoding');var r=0|f(t,n),o=(e=a(e,r)).write(t,n);return o!==r&&(e=e.slice(0,o)),e}(e,t,n):function(e,t){if(u.isBuffer(t)){var n=0|p(t.length);return 0===(e=a(e,n)).length||t.copy(e,0,0,n),e}if(t){if(\"undefined\"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||\"length\"in t)return\"number\"!=typeof t.length||(r=t.length)!=r?a(e,0):h(e,t);if(\"Buffer\"===t.type&&i(t.data))return h(e,t.data)}var r;throw new TypeError(\"First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.\")}(e,t)}function l(e){if(\"number\"!=typeof e)throw new TypeError('\"size\" argument must be a number');if(e<0)throw new RangeError('\"size\" argument must not be negative')}function d(e,t){if(l(t),e=a(e,t<0?0:0|p(t)),!u.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function h(e,t){var n=t.length<0?0:0|p(t.length);e=a(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function p(e){if(e>=s())throw new RangeError(\"Attempt to allocate Buffer larger than maximum size: 0x\"+s().toString(16)+\" bytes\");return 0|e}function f(e,t){if(u.isBuffer(e))return e.length;if(\"undefined\"!=typeof ArrayBuffer&&\"function\"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;\"string\"!=typeof e&&(e=\"\"+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case\"ascii\":case\"latin1\":case\"binary\":return n;case\"utf8\":case\"utf-8\":case void 0:return U(e).length;case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return 2*n;case\"hex\":return n>>>1;case\"base64\":return z(e).length;default:if(r)return U(e).length;t=(\"\"+t).toLowerCase(),r=!0}}function g(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return\"\";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return\"\";if((n>>>=0)<=(t>>>=0))return\"\";for(e||(e=\"utf8\");;)switch(e){case\"hex\":return O(this,t,n);case\"utf8\":case\"utf-8\":return E(this,t,n);case\"ascii\":return T(this,t,n);case\"latin1\":case\"binary\":return x(this,t,n);case\"base64\":return C(this,t,n);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return N(this,t,n);default:if(r)throw new TypeError(\"Unknown encoding: \"+e);e=(e+\"\").toLowerCase(),r=!0}}function v(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function m(e,t,n,r,o){if(0===e.length)return-1;if(\"string\"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if(\"string\"==typeof t&&(t=u.from(t,r)),u.isBuffer(t))return 0===t.length?-1:y(e,t,n,r,o);if(\"number\"==typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&\"function\"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):y(e,[t],n,r,o);throw new TypeError(\"val must be string, number or Buffer\")}function y(e,t,n,r,o){var i,s=1,a=e.length,u=t.length;if(void 0!==r&&(\"ucs2\"===(r=String(r).toLowerCase())||\"ucs-2\"===r||\"utf16le\"===r||\"utf-16le\"===r)){if(e.length<2||t.length<2)return-1;s=2,a/=2,u/=2,n/=2}function c(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(o){var l=-1;for(i=n;i<a;i++)if(c(e,i)===c(t,-1===l?0:i-l)){if(-1===l&&(l=i),i-l+1===u)return l*s}else-1!==l&&(i-=i-l),l=-1}else for(n+u>a&&(n=a-u),i=n;i>=0;i--){for(var d=!0,h=0;h<u;h++)if(c(e,i+h)!==c(t,h)){d=!1;break}if(d)return i}return-1}function b(e,t,n,r){n=Number(n)||0;var o=e.length-n;r?(r=Number(r))>o&&(r=o):r=o;var i=t.length;if(i%2!=0)throw new TypeError(\"Invalid hex string\");r>i/2&&(r=i/2);for(var s=0;s<r;++s){var a=parseInt(t.substr(2*s,2),16);if(isNaN(a))return s;e[n+s]=a}return s}function _(e,t,n,r){return H(U(t,e.length-n),e,n,r)}function w(e,t,n,r){return H(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function S(e,t,n,r){return w(e,t,n,r)}function I(e,t,n,r){return H(z(t),e,n,r)}function k(e,t,n,r){return H(function(e,t){for(var n,r,o,i=[],s=0;s<e.length&&!((t-=2)<0);++s)r=(n=e.charCodeAt(s))>>8,o=n%256,i.push(o),i.push(r);return i}(t,e.length-n),e,n,r)}function C(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function E(e,t,n){n=Math.min(e.length,n);for(var r=[],o=t;o<n;){var i,s,a,u,c=e[o],l=null,d=c>239?4:c>223?3:c>191?2:1;if(o+d<=n)switch(d){case 1:c<128&&(l=c);break;case 2:128==(192&(i=e[o+1]))&&(u=(31&c)<<6|63&i)>127&&(l=u);break;case 3:i=e[o+1],s=e[o+2],128==(192&i)&&128==(192&s)&&(u=(15&c)<<12|(63&i)<<6|63&s)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:i=e[o+1],s=e[o+2],a=e[o+3],128==(192&i)&&128==(192&s)&&128==(192&a)&&(u=(15&c)<<18|(63&i)<<12|(63&s)<<6|63&a)>65535&&u<1114112&&(l=u)}null===l?(l=65533,d=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),o+=d}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);for(var n=\"\",r=0;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=4096));return n}(r)}function T(e,t,n){var r=\"\";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(127&e[o]);return r}function x(e,t,n){var r=\"\";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(e[o]);return r}function O(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var o=\"\",i=t;i<n;++i)o+=j(e[i]);return o}function N(e,t,n){for(var r=e.slice(t,n),o=\"\",i=0;i<r.length;i+=2)o+=String.fromCharCode(r[i]+256*r[i+1]);return o}function A(e,t,n){if(e%1!=0||e<0)throw new RangeError(\"offset is not uint\");if(e+t>n)throw new RangeError(\"Trying to access beyond buffer length\")}function M(e,t,n,r,o,i){if(!u.isBuffer(e))throw new TypeError('\"buffer\" argument must be a Buffer instance');if(t>o||t<i)throw new RangeError('\"value\" argument is out of bounds');if(n+r>e.length)throw new RangeError(\"Index out of range\")}function P(e,t,n,r){t<0&&(t=65535+t+1);for(var o=0,i=Math.min(e.length-n,2);o<i;++o)e[n+o]=(t&255<<8*(r?o:1-o))>>>8*(r?o:1-o)}function L(e,t,n,r){t<0&&(t=4294967295+t+1);for(var o=0,i=Math.min(e.length-n,4);o<i;++o)e[n+o]=t>>>8*(r?o:3-o)&255}function D(e,t,n,r,o,i){if(n+r>e.length)throw new RangeError(\"Index out of range\");if(n<0)throw new RangeError(\"Index out of range\")}function B(e,t,n,r,i){return i||D(e,0,n,4),o.write(e,t,n,r,23,4),n+4}function R(e,t,n,r,i){return i||D(e,0,n,8),o.write(e,t,n,r,52,8),n+8}t.Buffer=u,t.SlowBuffer=function(e){return+e!=e&&(e=0),u.alloc(+e)},t.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&\"function\"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=s(),u.poolSize=8192,u._augment=function(e){return e.__proto__=u.prototype,e},u.from=function(e,t,n){return c(null,e,t,n)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,\"undefined\"!=typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(e,t,n){return function(e,t,n,r){return l(t),t<=0?a(e,t):void 0!==n?\"string\"==typeof r?a(e,t).fill(n,r):a(e,t).fill(n):a(e,t)}(null,e,t,n)},u.allocUnsafe=function(e){return d(null,e)},u.allocUnsafeSlow=function(e){return d(null,e)},u.isBuffer=function(e){return!(null==e||!e._isBuffer)},u.compare=function(e,t){if(!u.isBuffer(e)||!u.isBuffer(t))throw new TypeError(\"Arguments must be Buffers\");if(e===t)return 0;for(var n=e.length,r=t.length,o=0,i=Math.min(n,r);o<i;++o)if(e[o]!==t[o]){n=e[o],r=t[o];break}return n<r?-1:r<n?1:0},u.isEncoding=function(e){switch(String(e).toLowerCase()){case\"hex\":case\"utf8\":case\"utf-8\":case\"ascii\":case\"latin1\":case\"binary\":case\"base64\":case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return!0;default:return!1}},u.concat=function(e,t){if(!i(e))throw new TypeError('\"list\" argument must be an Array of Buffers');if(0===e.length)return u.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=u.allocUnsafe(t),o=0;for(n=0;n<e.length;++n){var s=e[n];if(!u.isBuffer(s))throw new TypeError('\"list\" argument must be an Array of Buffers');s.copy(r,o),o+=s.length}return r},u.byteLength=f,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError(\"Buffer size must be a multiple of 16-bits\");for(var t=0;t<e;t+=2)v(this,t,t+1);return this},u.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError(\"Buffer size must be a multiple of 32-bits\");for(var t=0;t<e;t+=4)v(this,t,t+3),v(this,t+1,t+2);return this},u.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError(\"Buffer size must be a multiple of 64-bits\");for(var t=0;t<e;t+=8)v(this,t,t+7),v(this,t+1,t+6),v(this,t+2,t+5),v(this,t+3,t+4);return this},u.prototype.toString=function(){var e=0|this.length;return 0===e?\"\":0===arguments.length?E(this,0,e):g.apply(this,arguments)},u.prototype.equals=function(e){if(!u.isBuffer(e))throw new TypeError(\"Argument must be a Buffer\");return this===e||0===u.compare(this,e)},u.prototype.inspect=function(){var e=\"\",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString(\"hex\",0,n).match(/.{2}/g).join(\" \"),this.length>n&&(e+=\" ... \")),\"<Buffer \"+e+\">\"},u.prototype.compare=function(e,t,n,r,o){if(!u.isBuffer(e))throw new TypeError(\"Argument must be a Buffer\");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError(\"out of range index\");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(this===e)return 0;for(var i=(o>>>=0)-(r>>>=0),s=(n>>>=0)-(t>>>=0),a=Math.min(i,s),c=this.slice(r,o),l=e.slice(t,n),d=0;d<a;++d)if(c[d]!==l[d]){i=c[d],s=l[d];break}return i<s?-1:s<i?1:0},u.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},u.prototype.indexOf=function(e,t,n){return m(this,e,t,n,!0)},u.prototype.lastIndexOf=function(e,t,n){return m(this,e,t,n,!1)},u.prototype.write=function(e,t,n,r){if(void 0===t)r=\"utf8\",n=this.length,t=0;else if(void 0===n&&\"string\"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error(\"Buffer.write(string, encoding, offset[, length]) is no longer supported\");t|=0,isFinite(n)?(n|=0,void 0===r&&(r=\"utf8\")):(r=n,n=void 0)}var o=this.length-t;if((void 0===n||n>o)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError(\"Attempt to write outside buffer bounds\");r||(r=\"utf8\");for(var i=!1;;)switch(r){case\"hex\":return b(this,e,t,n);case\"utf8\":case\"utf-8\":return _(this,e,t,n);case\"ascii\":return w(this,e,t,n);case\"latin1\":case\"binary\":return S(this,e,t,n);case\"base64\":return I(this,e,t,n);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return k(this,e,t,n);default:if(i)throw new TypeError(\"Unknown encoding: \"+r);r=(\"\"+r).toLowerCase(),i=!0}},u.prototype.toJSON=function(){return{type:\"Buffer\",data:Array.prototype.slice.call(this._arr||this,0)}},u.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),u.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=u.prototype;else{var o=t-e;n=new u(o,void 0);for(var i=0;i<o;++i)n[i]=this[i+e]}return n},u.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||A(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r},u.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||A(e,t,this.length);for(var r=this[e+--t],o=1;t>0&&(o*=256);)r+=this[e+--t]*o;return r},u.prototype.readUInt8=function(e,t){return t||A(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||A(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||A(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||A(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return t||A(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||A(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r>=(o*=128)&&(r-=Math.pow(2,8*t)),r},u.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||A(e,t,this.length);for(var r=t,o=1,i=this[e+--r];r>0&&(o*=256);)i+=this[e+--r]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},u.prototype.readInt8=function(e,t){return t||A(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||A(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(e,t){t||A(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(e,t){return t||A(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return t||A(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return t||A(e,4,this.length),o.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||A(e,4,this.length),o.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||A(e,8,this.length),o.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||A(e,8,this.length),o.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,n,r){e=+e,t|=0,n|=0,r||M(this,e,t,n,Math.pow(2,8*n)-1,0);var o=1,i=0;for(this[t]=255&e;++i<n&&(o*=256);)this[t+i]=e/o&255;return t+n},u.prototype.writeUIntBE=function(e,t,n,r){e=+e,t|=0,n|=0,r||M(this,e,t,n,Math.pow(2,8*n)-1,0);var o=n-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+n},u.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):P(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):P(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):L(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):L(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);M(this,e,t,n,o-1,-o)}var i=0,s=1,a=0;for(this[t]=255&e;++i<n&&(s*=256);)e<0&&0===a&&0!==this[t+i-1]&&(a=1),this[t+i]=(e/s>>0)-a&255;return t+n},u.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);M(this,e,t,n,o-1,-o)}var i=n-1,s=1,a=0;for(this[t+i]=255&e;--i>=0&&(s*=256);)e<0&&0===a&&0!==this[t+i+1]&&(a=1),this[t+i]=(e/s>>0)-a&255;return t+n},u.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):P(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):P(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):L(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):L(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,n){return B(this,e,t,!0,n)},u.prototype.writeFloatBE=function(e,t,n){return B(this,e,t,!1,n)},u.prototype.writeDoubleLE=function(e,t,n){return R(this,e,t,!0,n)},u.prototype.writeDoubleBE=function(e,t,n){return R(this,e,t,!1,n)},u.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError(\"targetStart out of bounds\");if(n<0||n>=this.length)throw new RangeError(\"sourceStart out of bounds\");if(r<0)throw new RangeError(\"sourceEnd out of bounds\");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var o,i=r-n;if(this===e&&n<t&&t<r)for(o=i-1;o>=0;--o)e[o+t]=this[o+n];else if(i<1e3||!u.TYPED_ARRAY_SUPPORT)for(o=0;o<i;++o)e[o+t]=this[o+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+i),t);return i},u.prototype.fill=function(e,t,n,r){if(\"string\"==typeof e){if(\"string\"==typeof t?(r=t,t=0,n=this.length):\"string\"==typeof n&&(r=n,n=this.length),1===e.length){var o=e.charCodeAt(0);o<256&&(e=o)}if(void 0!==r&&\"string\"!=typeof r)throw new TypeError(\"encoding must be a string\");if(\"string\"==typeof r&&!u.isEncoding(r))throw new TypeError(\"Unknown encoding: \"+r)}else\"number\"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError(\"Out of range index\");if(n<=t)return this;var i;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),\"number\"==typeof e)for(i=t;i<n;++i)this[i]=e;else{var s=u.isBuffer(e)?e:U(new u(e,r).toString()),a=s.length;for(i=0;i<n-t;++i)this[i+t]=s[i%a]}return this};var F=/[^+\\/0-9A-Za-z-_]/g;function j(e){return e<16?\"0\"+e.toString(16):e.toString(16)}function U(e,t){var n;t=t||1/0;for(var r=e.length,o=null,i=[],s=0;s<r;++s){if((n=e.charCodeAt(s))>55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(s+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error(\"Invalid code point\");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function z(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\\s+|\\s+$/g,\"\")}(e).replace(F,\"\")).length<2)return\"\";for(;e.length%4!=0;)e+=\"=\";return e}(e))}function H(e,t,n,r){for(var o=0;o<r&&!(o+n>=t.length||o>=e.length);++o)t[o+n]=e[o];return o}}).call(this,n(26))},function(e,t,n){t.SourceMapGenerator=n(16).SourceMapGenerator,t.SourceMapConsumer=n(32).SourceMapConsumer,t.SourceNode=n(35).SourceNode},function(e,t,n){var r=n(17),o=n(0),i=n(18).ArraySet,s=n(31).MappingList;function a(e){e||(e={}),this._file=o.getArg(e,\"file\",null),this._sourceRoot=o.getArg(e,\"sourceRoot\",null),this._skipValidation=o.getArg(e,\"skipValidation\",!1),this._sources=new i,this._names=new i,this._mappings=new s,this._sourcesContents=null}a.prototype._version=3,a.fromSourceMap=function(e){var t=e.sourceRoot,n=new a({file:e.file,sourceRoot:t});return e.eachMapping((function(e){var r={generated:{line:e.generatedLine,column:e.generatedColumn}};null!=e.source&&(r.source=e.source,null!=t&&(r.source=o.relative(t,r.source)),r.original={line:e.originalLine,column:e.originalColumn},null!=e.name&&(r.name=e.name)),n.addMapping(r)})),e.sources.forEach((function(r){var i=r;null!==t&&(i=o.relative(t,r)),n._sources.has(i)||n._sources.add(i);var s=e.sourceContentFor(r);null!=s&&n.setSourceContent(r,s)})),n},a.prototype.addMapping=function(e){var t=o.getArg(e,\"generated\"),n=o.getArg(e,\"original\",null),r=o.getArg(e,\"source\",null),i=o.getArg(e,\"name\",null);this._skipValidation||this._validateMapping(t,n,r,i),null!=r&&(r=String(r),this._sources.has(r)||this._sources.add(r)),null!=i&&(i=String(i),this._names.has(i)||this._names.add(i)),this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:null!=n&&n.line,originalColumn:null!=n&&n.column,source:r,name:i})},a.prototype.setSourceContent=function(e,t){var n=e;null!=this._sourceRoot&&(n=o.relative(this._sourceRoot,n)),null!=t?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[o.toSetString(n)]=t):this._sourcesContents&&(delete this._sourcesContents[o.toSetString(n)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))},a.prototype.applySourceMap=function(e,t,n){var r=t;if(null==t){if(null==e.file)throw new Error('SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\\'s \"file\" property. Both were omitted.');r=e.file}var s=this._sourceRoot;null!=s&&(r=o.relative(s,r));var a=new i,u=new i;this._mappings.unsortedForEach((function(t){if(t.source===r&&null!=t.originalLine){var i=e.originalPositionFor({line:t.originalLine,column:t.originalColumn});null!=i.source&&(t.source=i.source,null!=n&&(t.source=o.join(n,t.source)),null!=s&&(t.source=o.relative(s,t.source)),t.originalLine=i.line,t.originalColumn=i.column,null!=i.name&&(t.name=i.name))}var c=t.source;null==c||a.has(c)||a.add(c);var l=t.name;null==l||u.has(l)||u.add(l)}),this),this._sources=a,this._names=u,e.sources.forEach((function(t){var r=e.sourceContentFor(t);null!=r&&(null!=n&&(t=o.join(n,t)),null!=s&&(t=o.relative(s,t)),this.setSourceContent(t,r))}),this)},a.prototype._validateMapping=function(e,t,n,r){if(t&&\"number\"!=typeof t.line&&\"number\"!=typeof t.column)throw new Error(\"original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.\");if((!(e&&\"line\"in e&&\"column\"in e&&e.line>0&&e.column>=0)||t||n||r)&&!(e&&\"line\"in e&&\"column\"in e&&t&&\"line\"in t&&\"column\"in t&&e.line>0&&e.column>=0&&t.line>0&&t.column>=0&&n))throw new Error(\"Invalid mapping: \"+JSON.stringify({generated:e,source:n,original:t,name:r}))},a.prototype._serializeMappings=function(){for(var e,t,n,i,s=0,a=1,u=0,c=0,l=0,d=0,h=\"\",p=this._mappings.toArray(),f=0,g=p.length;f<g;f++){if(e=\"\",(t=p[f]).generatedLine!==a)for(s=0;t.generatedLine!==a;)e+=\";\",a++;else if(f>0){if(!o.compareByGeneratedPositionsInflated(t,p[f-1]))continue;e+=\",\"}e+=r.encode(t.generatedColumn-s),s=t.generatedColumn,null!=t.source&&(i=this._sources.indexOf(t.source),e+=r.encode(i-d),d=i,e+=r.encode(t.originalLine-1-c),c=t.originalLine-1,e+=r.encode(t.originalColumn-u),u=t.originalColumn,null!=t.name&&(n=this._names.indexOf(t.name),e+=r.encode(n-l),l=n)),h+=e}return h},a.prototype._generateSourcesContent=function(e,t){return e.map((function(e){if(!this._sourcesContents)return null;null!=t&&(e=o.relative(t,e));var n=o.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,n)?this._sourcesContents[n]:null}),this)},a.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(e.file=this._file),null!=this._sourceRoot&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e},a.prototype.toString=function(){return JSON.stringify(this.toJSON())},t.SourceMapGenerator=a},function(e,t,n){var r=n(30);t.encode=function(e){var t,n=\"\",o=function(e){return e<0?1+(-e<<1):0+(e<<1)}(e);do{t=31&o,(o>>>=5)>0&&(t|=32),n+=r.encode(t)}while(o>0);return n},t.decode=function(e,t,n){var o,i,s,a,u=e.length,c=0,l=0;do{if(t>=u)throw new Error(\"Expected more digits in base 64 VLQ value.\");if(-1===(i=r.decode(e.charCodeAt(t++))))throw new Error(\"Invalid base64 digit: \"+e.charAt(t-1));o=!!(32&i),c+=(i&=31)<<l,l+=5}while(o);n.value=(a=(s=c)>>1,1==(1&s)?-a:a),n.rest=t}},function(e,t,n){var r=n(0),o=Object.prototype.hasOwnProperty,i=\"undefined\"!=typeof Map;function s(){this._array=[],this._set=i?new Map:Object.create(null)}s.fromArray=function(e,t){for(var n=new s,r=0,o=e.length;r<o;r++)n.add(e[r],t);return n},s.prototype.size=function(){return i?this._set.size:Object.getOwnPropertyNames(this._set).length},s.prototype.add=function(e,t){var n=i?e:r.toSetString(e),s=i?this.has(e):o.call(this._set,n),a=this._array.length;s&&!t||this._array.push(e),s||(i?this._set.set(e,a):this._set[n]=a)},s.prototype.has=function(e){if(i)return this._set.has(e);var t=r.toSetString(e);return o.call(this._set,t)},s.prototype.indexOf=function(e){if(i){var t=this._set.get(e);if(t>=0)return t}else{var n=r.toSetString(e);if(o.call(this._set,n))return this._set[n]}throw new Error('\"'+e+'\" is not in the set.')},s.prototype.at=function(e){if(e>=0&&e<this._array.length)return this._array[e];throw new Error(\"No element indexed by \"+e)},s.prototype.toArray=function(){return this._array.slice()},t.ArraySet=s},function(e,t,n){t.__esModule=!0,t.default=void 0;var r={split:function(e,t,n){for(var r=[],o=\"\",i=!1,s=0,a=!1,u=!1,c=0;c<e.length;c++){var l=e[c];a?u?u=!1:\"\\\\\"===l?u=!0:l===a&&(a=!1):'\"'===l||\"'\"===l?a=l:\"(\"===l?s+=1:\")\"===l?s>0&&(s-=1):0===s&&-1!==t.indexOf(l)&&(i=!0),i?(\"\"!==o&&r.push(o.trim()),o=\"\",i=!1):o+=l}return(n||\"\"!==o)&&r.push(o.trim()),r},space:function(e){return r.split(e,[\" \",\"\\n\",\"\\t\"])},comma:function(e){return r.split(e,[\",\"],!0)}},o=r;t.default=o,e.exports=t.default},function(e,t,n){var r;t.__esModule=!0,t.default=void 0;var o=function(e){var t,r;function o(t){var n;return(n=e.call(this,t)||this).type=\"root\",n.nodes||(n.nodes=[]),n}r=e,(t=o).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r;var i=o.prototype;return i.removeChild=function(t,n){var r=this.index(t);return!n&&0===r&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),e.prototype.removeChild.call(this,t)},i.normalize=function(t,n,r){var o=e.prototype.normalize.call(this,t);if(n)if(\"prepend\"===r)this.nodes.length>1?n.raws.before=this.nodes[1].raws.before:delete n.raws.before;else if(this.first!==n){var i=o,s=Array.isArray(i),a=0;for(i=s?i:i[Symbol.iterator]();;){var u;if(s){if(a>=i.length)break;u=i[a++]}else{if((a=i.next()).done)break;u=a.value}u.raws.before=n.raws.before}}return o},i.toResult=function(e){return void 0===e&&(e={}),new(n(13))(new(n(12)),this,e).stringify()},o}(((r=n(8))&&r.__esModule?r:{default:r}).default);t.default=o,e.exports=t.default},function(e,t,n){t.__esModule=!0,t.default=void 0;var r=p(n(1)),o=p(n(12)),i=p(n(3)),s=p(n(6)),a=p(n(7)),u=p(n(45)),c=p(n(5)),l=p(n(19)),d=p(n(9)),h=p(n(20));function p(e){return e&&e.__esModule?e:{default:e}}function f(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 1===t.length&&Array.isArray(t[0])&&(t=t[0]),new o.default(t)}f.plugin=function(e,t){function n(){var n=t.apply(void 0,arguments);return n.postcssPlugin=e,n.postcssVersion=(new o.default).version,n}var r;return Object.defineProperty(n,\"postcss\",{get:function(){return r||(r=n()),r}}),n.process=function(e,t,r){return f([n(r)]).process(e,t)},n},f.stringify=i.default,f.parse=c.default,f.vendor=u.default,f.list=l.default,f.comment=function(e){return new s.default(e)},f.atRule=function(e){return new a.default(e)},f.decl=function(e){return new r.default(e)},f.rule=function(e){return new d.default(e)},f.root=function(e){return new h.default(e)};var g=f;t.default=g,e.exports=t.default},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){(function(r){t.__esModule=!0,t.default=void 0;var o=s(n(15)),i=s(n(4));function s(e){return e&&e.__esModule?e:{default:e}}var a=function(){function e(e,t,n){this.stringify=e,this.mapOpts=n.map||{},this.root=t,this.opts=n}var t=e.prototype;return t.isMap=function(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0},t.previous=function(){var e=this;return this.previousMaps||(this.previousMaps=[],this.root.walk((function(t){if(t.source&&t.source.input.map){var n=t.source.input.map;-1===e.previousMaps.indexOf(n)&&e.previousMaps.push(n)}}))),this.previousMaps},t.isInline=function(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;var e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some((function(e){return e.inline})))},t.isSourcesContent=function(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some((function(e){return e.withContent()}))},t.clearAnnotation=function(){if(!1!==this.mapOpts.annotation)for(var e,t=this.root.nodes.length-1;t>=0;t--)\"comment\"===(e=this.root.nodes[t]).type&&0===e.text.indexOf(\"# sourceMappingURL=\")&&this.root.removeChild(t)},t.setSourcesContent=function(){var e=this,t={};this.root.walk((function(n){if(n.source){var r=n.source.input.from;if(r&&!t[r]){t[r]=!0;var o=e.relative(r);e.map.setSourceContent(o,n.source.input.css)}}}))},t.applyPrevMaps=function(){var e=this.previous(),t=Array.isArray(e),n=0;for(e=t?e:e[Symbol.iterator]();;){var r;if(t){if(n>=e.length)break;r=e[n++]}else{if((n=e.next()).done)break;r=n.value}var s=r,a=this.relative(s.file),u=s.root||i.default.dirname(s.file),c=void 0;!1===this.mapOpts.sourcesContent?(c=new o.default.SourceMapConsumer(s.text)).sourcesContent&&(c.sourcesContent=c.sourcesContent.map((function(){return null}))):c=s.consumer(),this.map.applySourceMap(c,a,this.relative(u))}},t.isAnnotation=function(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some((function(e){return e.annotation})))},t.toBase64=function(e){return r?r.from(e).toString(\"base64\"):window.btoa(unescape(encodeURIComponent(e)))},t.addAnnotation=function(){var e;e=this.isInline()?\"data:application/json;base64,\"+this.toBase64(this.map.toString()):\"string\"==typeof this.mapOpts.annotation?this.mapOpts.annotation:this.outputFile()+\".map\";var t=\"\\n\";-1!==this.css.indexOf(\"\\r\\n\")&&(t=\"\\r\\n\"),this.css+=t+\"/*# sourceMappingURL=\"+e+\" */\"},t.outputFile=function(){return this.opts.to?this.relative(this.opts.to):this.opts.from?this.relative(this.opts.from):\"to.css\"},t.generateMap=function(){return this.generateString(),this.isSourcesContent()&&this.setSourcesContent(),this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]},t.relative=function(e){if(0===e.indexOf(\"<\"))return e;if(/^\\w+:\\/\\//.test(e))return e;var t=this.opts.to?i.default.dirname(this.opts.to):\".\";return\"string\"==typeof this.mapOpts.annotation&&(t=i.default.dirname(i.default.resolve(t,this.mapOpts.annotation))),e=i.default.relative(t,e),\"\\\\\"===i.default.sep?e.replace(/\\\\/g,\"/\"):e},t.sourcePath=function(e){return this.mapOpts.from?this.mapOpts.from:this.relative(e.source.input.from)},t.generateString=function(){var e=this;this.css=\"\",this.map=new o.default.SourceMapGenerator({file:this.outputFile()});var t,n,r=1,i=1;this.stringify(this.root,(function(o,s,a){if(e.css+=o,s&&\"end\"!==a&&(s.source&&s.source.start?e.map.addMapping({source:e.sourcePath(s),generated:{line:r,column:i-1},original:{line:s.source.start.line,column:s.source.start.column-1}}):e.map.addMapping({source:\"<no source>\",original:{line:1,column:0},generated:{line:r,column:i-1}})),(t=o.match(/\\n/g))?(r+=t.length,n=o.lastIndexOf(\"\\n\"),i=o.length-n):i+=o.length,s&&\"start\"!==a){var u=s.parent||{raws:{}};(\"decl\"!==s.type||s!==u.last||u.raws.semicolon)&&(s.source&&s.source.end?e.map.addMapping({source:e.sourcePath(s),generated:{line:r,column:i-2},original:{line:s.source.end.line,column:s.source.end.column-1}}):e.map.addMapping({source:\"<no source>\",original:{line:1,column:0},generated:{line:r,column:i-1}}))}}))},t.generate=function(){if(this.clearAnnotation(),this.isMap())return this.generateMap();var e=\"\";return this.stringify(this.root,(function(t){e+=t})),[e]},e}();t.default=a,e.exports=t.default}).call(this,n(14).Buffer)},function(e,t){var n;n=function(){return this}();try{n=n||new Function(\"return this\")()}catch(e){\"object\"==typeof window&&(n=window)}e.exports=n},function(e,t,n){t.byteLength=function(e){var t=c(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){for(var t,n=c(e),r=n[0],s=n[1],a=new i(function(e,t,n){return 3*(t+n)/4-n}(0,r,s)),u=0,l=s>0?r-4:r,d=0;d<l;d+=4)t=o[e.charCodeAt(d)]<<18|o[e.charCodeAt(d+1)]<<12|o[e.charCodeAt(d+2)]<<6|o[e.charCodeAt(d+3)],a[u++]=t>>16&255,a[u++]=t>>8&255,a[u++]=255&t;return 2===s&&(t=o[e.charCodeAt(d)]<<2|o[e.charCodeAt(d+1)]>>4,a[u++]=255&t),1===s&&(t=o[e.charCodeAt(d)]<<10|o[e.charCodeAt(d+1)]<<4|o[e.charCodeAt(d+2)]>>2,a[u++]=t>>8&255,a[u++]=255&t),a},t.fromByteArray=function(e){for(var t,n=e.length,o=n%3,i=[],s=0,a=n-o;s<a;s+=16383)i.push(l(e,s,s+16383>a?a:s+16383));return 1===o?(t=e[n-1],i.push(r[t>>2]+r[t<<4&63]+\"==\")):2===o&&(t=(e[n-2]<<8)+e[n-1],i.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+\"=\")),i.join(\"\")};for(var r=[],o=[],i=\"undefined\"!=typeof Uint8Array?Uint8Array:Array,s=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\",a=0,u=s.length;a<u;++a)r[a]=s[a],o[s.charCodeAt(a)]=a;function c(e){var t=e.length;if(t%4>0)throw new Error(\"Invalid string. Length must be a multiple of 4\");var n=e.indexOf(\"=\");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function l(e,t,n){for(var o,i,s=[],a=t;a<n;a+=3)o=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),s.push(r[(i=o)>>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return s.join(\"\")}o[\"-\".charCodeAt(0)]=62,o[\"_\".charCodeAt(0)]=63},function(e,t){t.read=function(e,t,n,r,o){var i,s,a=8*o-r-1,u=(1<<a)-1,c=u>>1,l=-7,d=n?o-1:0,h=n?-1:1,p=e[t+d];for(d+=h,i=p&(1<<-l)-1,p>>=-l,l+=a;l>0;i=256*i+e[t+d],d+=h,l-=8);for(s=i&(1<<-l)-1,i>>=-l,l+=r;l>0;s=256*s+e[t+d],d+=h,l-=8);if(0===i)i=1-c;else{if(i===u)return s?NaN:1/0*(p?-1:1);s+=Math.pow(2,r),i-=c}return(p?-1:1)*s*Math.pow(2,i-r)},t.write=function(e,t,n,r,o,i){var s,a,u,c=8*i-o-1,l=(1<<c)-1,d=l>>1,h=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:i-1,f=r?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=l):(s=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-s))<1&&(s--,u*=2),(t+=s+d>=1?h/u:h*Math.pow(2,1-d))*u>=2&&(s++,u/=2),s+d>=l?(a=0,s=l):s+d>=1?(a=(t*u-1)*Math.pow(2,o),s+=d):(a=t*Math.pow(2,d-1)*Math.pow(2,o),s=0));o>=8;e[n+p]=255&a,p+=f,a/=256,o-=8);for(s=s<<o|a,c+=o;c>0;e[n+p]=255&s,p+=f,s/=256,c-=8);e[n+p-f]|=128*g}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return\"[object Array]\"==n.call(e)}},function(e,t){var n=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\".split(\"\");t.encode=function(e){if(0<=e&&e<n.length)return n[e];throw new TypeError(\"Must be between 0 and 63: \"+e)},t.decode=function(e){return 65<=e&&e<=90?e-65:97<=e&&e<=122?e-97+26:48<=e&&e<=57?e-48+52:43==e?62:47==e?63:-1}},function(e,t,n){var r=n(0);function o(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}o.prototype.unsortedForEach=function(e,t){this._array.forEach(e,t)},o.prototype.add=function(e){var t,n,o,i,s,a;n=e,o=(t=this._last).generatedLine,i=n.generatedLine,s=t.generatedColumn,a=n.generatedColumn,i>o||i==o&&a>=s||r.compareByGeneratedPositionsInflated(t,n)<=0?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))},o.prototype.toArray=function(){return this._sorted||(this._array.sort(r.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},t.MappingList=o},function(e,t,n){var r=n(0),o=n(33),i=n(18).ArraySet,s=n(17),a=n(34).quickSort;function u(e,t){var n=e;return\"string\"==typeof e&&(n=r.parseSourceMapInput(e)),null!=n.sections?new d(n,t):new c(n,t)}function c(e,t){var n=e;\"string\"==typeof e&&(n=r.parseSourceMapInput(e));var o=r.getArg(n,\"version\"),s=r.getArg(n,\"sources\"),a=r.getArg(n,\"names\",[]),u=r.getArg(n,\"sourceRoot\",null),c=r.getArg(n,\"sourcesContent\",null),l=r.getArg(n,\"mappings\"),d=r.getArg(n,\"file\",null);if(o!=this._version)throw new Error(\"Unsupported version: \"+o);u&&(u=r.normalize(u)),s=s.map(String).map(r.normalize).map((function(e){return u&&r.isAbsolute(u)&&r.isAbsolute(e)?r.relative(u,e):e})),this._names=i.fromArray(a.map(String),!0),this._sources=i.fromArray(s,!0),this._absoluteSources=this._sources.toArray().map((function(e){return r.computeSourceURL(u,e,t)})),this.sourceRoot=u,this.sourcesContent=c,this._mappings=l,this._sourceMapURL=t,this.file=d}function l(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}function d(e,t){var n=e;\"string\"==typeof e&&(n=r.parseSourceMapInput(e));var o=r.getArg(n,\"version\"),s=r.getArg(n,\"sections\");if(o!=this._version)throw new Error(\"Unsupported version: \"+o);this._sources=new i,this._names=new i;var a={line:-1,column:0};this._sections=s.map((function(e){if(e.url)throw new Error(\"Support for url field in sections not implemented.\");var n=r.getArg(e,\"offset\"),o=r.getArg(n,\"line\"),i=r.getArg(n,\"column\");if(o<a.line||o===a.line&&i<a.column)throw new Error(\"Section offsets must be ordered and non-overlapping.\");return a=n,{generatedOffset:{generatedLine:o+1,generatedColumn:i+1},consumer:new u(r.getArg(e,\"map\"),t)}}))}u.fromSourceMap=function(e,t){return c.fromSourceMap(e,t)},u.prototype._version=3,u.prototype.__generatedMappings=null,Object.defineProperty(u.prototype,\"_generatedMappings\",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),u.prototype.__originalMappings=null,Object.defineProperty(u.prototype,\"_originalMappings\",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),u.prototype._charIsMappingSeparator=function(e,t){var n=e.charAt(t);return\";\"===n||\",\"===n},u.prototype._parseMappings=function(e,t){throw new Error(\"Subclasses must implement _parseMappings\")},u.GENERATED_ORDER=1,u.ORIGINAL_ORDER=2,u.GREATEST_LOWER_BOUND=1,u.LEAST_UPPER_BOUND=2,u.prototype.eachMapping=function(e,t,n){var o,i=t||null;switch(n||u.GENERATED_ORDER){case u.GENERATED_ORDER:o=this._generatedMappings;break;case u.ORIGINAL_ORDER:o=this._originalMappings;break;default:throw new Error(\"Unknown order of iteration.\")}var s=this.sourceRoot;o.map((function(e){var t=null===e.source?null:this._sources.at(e.source);return{source:t=r.computeSourceURL(s,t,this._sourceMapURL),generatedLine:e.generatedLine,generatedColumn:e.generatedColumn,originalLine:e.originalLine,originalColumn:e.originalColumn,name:null===e.name?null:this._names.at(e.name)}}),this).forEach(e,i)},u.prototype.allGeneratedPositionsFor=function(e){var t=r.getArg(e,\"line\"),n={source:r.getArg(e,\"source\"),originalLine:t,originalColumn:r.getArg(e,\"column\",0)};if(n.source=this._findSourceIndex(n.source),n.source<0)return[];var i=[],s=this._findMapping(n,this._originalMappings,\"originalLine\",\"originalColumn\",r.compareByOriginalPositions,o.LEAST_UPPER_BOUND);if(s>=0){var a=this._originalMappings[s];if(void 0===e.column)for(var u=a.originalLine;a&&a.originalLine===u;)i.push({line:r.getArg(a,\"generatedLine\",null),column:r.getArg(a,\"generatedColumn\",null),lastColumn:r.getArg(a,\"lastGeneratedColumn\",null)}),a=this._originalMappings[++s];else for(var c=a.originalColumn;a&&a.originalLine===t&&a.originalColumn==c;)i.push({line:r.getArg(a,\"generatedLine\",null),column:r.getArg(a,\"generatedColumn\",null),lastColumn:r.getArg(a,\"lastGeneratedColumn\",null)}),a=this._originalMappings[++s]}return i},t.SourceMapConsumer=u,c.prototype=Object.create(u.prototype),c.prototype.consumer=u,c.prototype._findSourceIndex=function(e){var t,n=e;if(null!=this.sourceRoot&&(n=r.relative(this.sourceRoot,n)),this._sources.has(n))return this._sources.indexOf(n);for(t=0;t<this._absoluteSources.length;++t)if(this._absoluteSources[t]==e)return t;return-1},c.fromSourceMap=function(e,t){var n=Object.create(c.prototype),o=n._names=i.fromArray(e._names.toArray(),!0),s=n._sources=i.fromArray(e._sources.toArray(),!0);n.sourceRoot=e._sourceRoot,n.sourcesContent=e._generateSourcesContent(n._sources.toArray(),n.sourceRoot),n.file=e._file,n._sourceMapURL=t,n._absoluteSources=n._sources.toArray().map((function(e){return r.computeSourceURL(n.sourceRoot,e,t)}));for(var u=e._mappings.toArray().slice(),d=n.__generatedMappings=[],h=n.__originalMappings=[],p=0,f=u.length;p<f;p++){var g=u[p],v=new l;v.generatedLine=g.generatedLine,v.generatedColumn=g.generatedColumn,g.source&&(v.source=s.indexOf(g.source),v.originalLine=g.originalLine,v.originalColumn=g.originalColumn,g.name&&(v.name=o.indexOf(g.name)),h.push(v)),d.push(v)}return a(n.__originalMappings,r.compareByOriginalPositions),n},c.prototype._version=3,Object.defineProperty(c.prototype,\"sources\",{get:function(){return this._absoluteSources.slice()}}),c.prototype._parseMappings=function(e,t){for(var n,o,i,u,c,d=1,h=0,p=0,f=0,g=0,v=0,m=e.length,y=0,b={},_={},w=[],S=[];y<m;)if(\";\"===e.charAt(y))d++,y++,h=0;else if(\",\"===e.charAt(y))y++;else{for((n=new l).generatedLine=d,u=y;u<m&&!this._charIsMappingSeparator(e,u);u++);if(i=b[o=e.slice(y,u)])y+=o.length;else{for(i=[];y<u;)s.decode(e,y,_),c=_.value,y=_.rest,i.push(c);if(2===i.length)throw new Error(\"Found a source, but no line and column\");if(3===i.length)throw new Error(\"Found a source and line, but no column\");b[o]=i}n.generatedColumn=h+i[0],h=n.generatedColumn,i.length>1&&(n.source=g+i[1],g+=i[1],n.originalLine=p+i[2],p=n.originalLine,n.originalLine+=1,n.originalColumn=f+i[3],f=n.originalColumn,i.length>4&&(n.name=v+i[4],v+=i[4])),S.push(n),\"number\"==typeof n.originalLine&&w.push(n)}a(S,r.compareByGeneratedPositionsDeflated),this.__generatedMappings=S,a(w,r.compareByOriginalPositions),this.__originalMappings=w},c.prototype._findMapping=function(e,t,n,r,i,s){if(e[n]<=0)throw new TypeError(\"Line must be greater than or equal to 1, got \"+e[n]);if(e[r]<0)throw new TypeError(\"Column must be greater than or equal to 0, got \"+e[r]);return o.search(e,t,i,s)},c.prototype.computeColumnSpans=function(){for(var e=0;e<this._generatedMappings.length;++e){var t=this._generatedMappings[e];if(e+1<this._generatedMappings.length){var n=this._generatedMappings[e+1];if(t.generatedLine===n.generatedLine){t.lastGeneratedColumn=n.generatedColumn-1;continue}}t.lastGeneratedColumn=1/0}},c.prototype.originalPositionFor=function(e){var t={generatedLine:r.getArg(e,\"line\"),generatedColumn:r.getArg(e,\"column\")},n=this._findMapping(t,this._generatedMappings,\"generatedLine\",\"generatedColumn\",r.compareByGeneratedPositionsDeflated,r.getArg(e,\"bias\",u.GREATEST_LOWER_BOUND));if(n>=0){var o=this._generatedMappings[n];if(o.generatedLine===t.generatedLine){var i=r.getArg(o,\"source\",null);null!==i&&(i=this._sources.at(i),i=r.computeSourceURL(this.sourceRoot,i,this._sourceMapURL));var s=r.getArg(o,\"name\",null);return null!==s&&(s=this._names.at(s)),{source:i,line:r.getArg(o,\"originalLine\",null),column:r.getArg(o,\"originalColumn\",null),name:s}}}return{source:null,line:null,column:null,name:null}},c.prototype.hasContentsOfAllSources=function(){return!!this.sourcesContent&&this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some((function(e){return null==e}))},c.prototype.sourceContentFor=function(e,t){if(!this.sourcesContent)return null;var n=this._findSourceIndex(e);if(n>=0)return this.sourcesContent[n];var o,i=e;if(null!=this.sourceRoot&&(i=r.relative(this.sourceRoot,i)),null!=this.sourceRoot&&(o=r.urlParse(this.sourceRoot))){var s=i.replace(/^file:\\/\\//,\"\");if(\"file\"==o.scheme&&this._sources.has(s))return this.sourcesContent[this._sources.indexOf(s)];if((!o.path||\"/\"==o.path)&&this._sources.has(\"/\"+i))return this.sourcesContent[this._sources.indexOf(\"/\"+i)]}if(t)return null;throw new Error('\"'+i+'\" is not in the SourceMap.')},c.prototype.generatedPositionFor=function(e){var t=r.getArg(e,\"source\");if((t=this._findSourceIndex(t))<0)return{line:null,column:null,lastColumn:null};var n={source:t,originalLine:r.getArg(e,\"line\"),originalColumn:r.getArg(e,\"column\")},o=this._findMapping(n,this._originalMappings,\"originalLine\",\"originalColumn\",r.compareByOriginalPositions,r.getArg(e,\"bias\",u.GREATEST_LOWER_BOUND));if(o>=0){var i=this._originalMappings[o];if(i.source===n.source)return{line:r.getArg(i,\"generatedLine\",null),column:r.getArg(i,\"generatedColumn\",null),lastColumn:r.getArg(i,\"lastGeneratedColumn\",null)}}return{line:null,column:null,lastColumn:null}},t.BasicSourceMapConsumer=c,d.prototype=Object.create(u.prototype),d.prototype.constructor=u,d.prototype._version=3,Object.defineProperty(d.prototype,\"sources\",{get:function(){for(var e=[],t=0;t<this._sections.length;t++)for(var n=0;n<this._sections[t].consumer.sources.length;n++)e.push(this._sections[t].consumer.sources[n]);return e}}),d.prototype.originalPositionFor=function(e){var t={generatedLine:r.getArg(e,\"line\"),generatedColumn:r.getArg(e,\"column\")},n=o.search(t,this._sections,(function(e,t){return e.generatedLine-t.generatedOffset.generatedLine||e.generatedColumn-t.generatedOffset.generatedColumn})),i=this._sections[n];return i?i.consumer.originalPositionFor({line:t.generatedLine-(i.generatedOffset.generatedLine-1),column:t.generatedColumn-(i.generatedOffset.generatedLine===t.generatedLine?i.generatedOffset.generatedColumn-1:0),bias:e.bias}):{source:null,line:null,column:null,name:null}},d.prototype.hasContentsOfAllSources=function(){return this._sections.every((function(e){return e.consumer.hasContentsOfAllSources()}))},d.prototype.sourceContentFor=function(e,t){for(var n=0;n<this._sections.length;n++){var r=this._sections[n].consumer.sourceContentFor(e,!0);if(r)return r}if(t)return null;throw new Error('\"'+e+'\" is not in the SourceMap.')},d.prototype.generatedPositionFor=function(e){for(var t=0;t<this._sections.length;t++){var n=this._sections[t];if(-1!==n.consumer._findSourceIndex(r.getArg(e,\"source\"))){var o=n.consumer.generatedPositionFor(e);if(o)return{line:o.line+(n.generatedOffset.generatedLine-1),column:o.column+(n.generatedOffset.generatedLine===o.line?n.generatedOffset.generatedColumn-1:0)}}}return{line:null,column:null}},d.prototype._parseMappings=function(e,t){this.__generatedMappings=[],this.__originalMappings=[];for(var n=0;n<this._sections.length;n++)for(var o=this._sections[n],i=o.consumer._generatedMappings,s=0;s<i.length;s++){var u=i[s],c=o.consumer._sources.at(u.source);c=r.computeSourceURL(o.consumer.sourceRoot,c,this._sourceMapURL),this._sources.add(c),c=this._sources.indexOf(c);var l=null;u.name&&(l=o.consumer._names.at(u.name),this._names.add(l),l=this._names.indexOf(l));var d={source:c,generatedLine:u.generatedLine+(o.generatedOffset.generatedLine-1),generatedColumn:u.generatedColumn+(o.generatedOffset.generatedLine===u.generatedLine?o.generatedOffset.generatedColumn-1:0),originalLine:u.originalLine,originalColumn:u.originalColumn,name:l};this.__generatedMappings.push(d),\"number\"==typeof d.originalLine&&this.__originalMappings.push(d)}a(this.__generatedMappings,r.compareByGeneratedPositionsDeflated),a(this.__originalMappings,r.compareByOriginalPositions)},t.IndexedSourceMapConsumer=d},function(e,t){t.GREATEST_LOWER_BOUND=1,t.LEAST_UPPER_BOUND=2,t.search=function(e,n,r,o){if(0===n.length)return-1;var i=function e(n,r,o,i,s,a){var u=Math.floor((r-n)/2)+n,c=s(o,i[u],!0);return 0===c?u:c>0?r-u>1?e(u,r,o,i,s,a):a==t.LEAST_UPPER_BOUND?r<i.length?r:-1:u:u-n>1?e(n,u,o,i,s,a):a==t.LEAST_UPPER_BOUND?u:n<0?-1:n}(-1,n.length,e,n,r,o||t.GREATEST_LOWER_BOUND);if(i<0)return-1;for(;i-1>=0&&0===r(n[i],n[i-1],!0);)--i;return i}},function(e,t){function n(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}t.quickSort=function(e,t){!function e(t,r,o,i){if(o<i){var s=o-1;n(t,(l=o,d=i,Math.round(l+Math.random()*(d-l))),i);for(var a=t[i],u=o;u<i;u++)r(t[u],a)<=0&&n(t,s+=1,u);n(t,s+1,u);var c=s+1;e(t,r,o,c-1),e(t,r,c+1,i)}var l,d}(e,t,0,e.length-1)}},function(e,t,n){var r=n(16).SourceMapGenerator,o=n(0),i=/(\\r?\\n)/,s=\"$$$isSourceNode$$$\";function a(e,t,n,r,o){this.children=[],this.sourceContents={},this.line=null==e?null:e,this.column=null==t?null:t,this.source=null==n?null:n,this.name=null==o?null:o,this[s]=!0,null!=r&&this.add(r)}a.fromStringWithSourceMap=function(e,t,n){var r=new a,s=e.split(i),u=0,c=function(){return e()+(e()||\"\");function e(){return u<s.length?s[u++]:void 0}},l=1,d=0,h=null;return t.eachMapping((function(e){if(null!==h){if(!(l<e.generatedLine)){var t=(n=s[u]||\"\").substr(0,e.generatedColumn-d);return s[u]=n.substr(e.generatedColumn-d),d=e.generatedColumn,p(h,t),void(h=e)}p(h,c()),l++,d=0}for(;l<e.generatedLine;)r.add(c()),l++;if(d<e.generatedColumn){var n=s[u]||\"\";r.add(n.substr(0,e.generatedColumn)),s[u]=n.substr(e.generatedColumn),d=e.generatedColumn}h=e}),this),u<s.length&&(h&&p(h,c()),r.add(s.splice(u).join(\"\"))),t.sources.forEach((function(e){var i=t.sourceContentFor(e);null!=i&&(null!=n&&(e=o.join(n,e)),r.setSourceContent(e,i))})),r;function p(e,t){if(null===e||void 0===e.source)r.add(t);else{var i=n?o.join(n,e.source):e.source;r.add(new a(e.originalLine,e.originalColumn,i,t,e.name))}}},a.prototype.add=function(e){if(Array.isArray(e))e.forEach((function(e){this.add(e)}),this);else{if(!e[s]&&\"string\"!=typeof e)throw new TypeError(\"Expected a SourceNode, string, or an array of SourceNodes and strings. Got \"+e);e&&this.children.push(e)}return this},a.prototype.prepend=function(e){if(Array.isArray(e))for(var t=e.length-1;t>=0;t--)this.prepend(e[t]);else{if(!e[s]&&\"string\"!=typeof e)throw new TypeError(\"Expected a SourceNode, string, or an array of SourceNodes and strings. Got \"+e);this.children.unshift(e)}return this},a.prototype.walk=function(e){for(var t,n=0,r=this.children.length;n<r;n++)(t=this.children[n])[s]?t.walk(e):\"\"!==t&&e(t,{source:this.source,line:this.line,column:this.column,name:this.name})},a.prototype.join=function(e){var t,n,r=this.children.length;if(r>0){for(t=[],n=0;n<r-1;n++)t.push(this.children[n]),t.push(e);t.push(this.children[n]),this.children=t}return this},a.prototype.replaceRight=function(e,t){var n=this.children[this.children.length-1];return n[s]?n.replaceRight(e,t):\"string\"==typeof n?this.children[this.children.length-1]=n.replace(e,t):this.children.push(\"\".replace(e,t)),this},a.prototype.setSourceContent=function(e,t){this.sourceContents[o.toSetString(e)]=t},a.prototype.walkSourceContents=function(e){for(var t=0,n=this.children.length;t<n;t++)this.children[t][s]&&this.children[t].walkSourceContents(e);var r=Object.keys(this.sourceContents);for(t=0,n=r.length;t<n;t++)e(o.fromSetString(r[t]),this.sourceContents[r[t]])},a.prototype.toString=function(){var e=\"\";return this.walk((function(t){e+=t})),e},a.prototype.toStringWithSourceMap=function(e){var t={code:\"\",line:1,column:0},n=new r(e),o=!1,i=null,s=null,a=null,u=null;return this.walk((function(e,r){t.code+=e,null!==r.source&&null!==r.line&&null!==r.column?(i===r.source&&s===r.line&&a===r.column&&u===r.name||n.addMapping({source:r.source,original:{line:r.line,column:r.column},generated:{line:t.line,column:t.column},name:r.name}),i=r.source,s=r.line,a=r.column,u=r.name,o=!0):o&&(n.addMapping({generated:{line:t.line,column:t.column}}),i=null,o=!1);for(var c=0,l=e.length;c<l;c++)10===e.charCodeAt(c)?(t.line++,t.column=0,c+1===l?(i=null,o=!1):o&&n.addMapping({source:r.source,original:{line:r.line,column:r.column},generated:{line:t.line,column:t.column},name:r.name})):t.column++})),this.walkSourceContents((function(e,t){n.setSourceContent(e,t)})),{code:t.code,map:n}},t.SourceNode=a},function(e,t){var n,r,o=e.exports={};function i(){throw new Error(\"setTimeout has not been defined\")}function s(){throw new Error(\"clearTimeout has not been defined\")}function a(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n=\"function\"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{r=\"function\"==typeof clearTimeout?clearTimeout:s}catch(e){r=s}}();var u,c=[],l=!1,d=-1;function h(){l&&u&&(l=!1,u.length?c=u.concat(c):d=-1,c.length&&p())}function p(){if(!l){var e=a(h);l=!0;for(var t=c.length;t;){for(u=c,c=[];++d<t;)u&&u[d].run();d=-1,t=c.length}u=null,l=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===s||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function f(e,t){this.fun=e,this.array=t}function g(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new f(e,t)),1!==c.length||l||a(p)},f.prototype.run=function(){this.fun.apply(null,this.array)},o.title=\"browser\",o.browser=!0,o.env={},o.argv=[],o.version=\"\",o.versions={},o.on=g,o.addListener=g,o.once=g,o.off=g,o.removeListener=g,o.removeAllListeners=g,o.emit=g,o.prependListener=g,o.prependOnceListener=g,o.listeners=function(e){return[]},o.binding=function(e){throw new Error(\"process.binding is not supported\")},o.cwd=function(){return\"/\"},o.chdir=function(e){throw new Error(\"process.chdir is not supported\")},o.umask=function(){return 0}},function(e,t,n){t.__esModule=!0,t.default=function(e){r[e]||(r[e]=!0,\"undefined\"!=typeof console&&console.warn&&console.warn(e))};var r={};e.exports=t.default},function(e,t,n){t.__esModule=!0,t.default=void 0;var r,o=(r=n(39))&&r.__esModule?r:{default:r},i=function(){function e(e,t,n){this.processor=e,this.messages=[],this.root=t,this.opts=n,this.css=void 0,this.map=void 0}var t,n=e.prototype;return n.toString=function(){return this.css},n.warn=function(e,t){void 0===t&&(t={}),t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);var n=new o.default(e,t);return this.messages.push(n),n},n.warnings=function(){return this.messages.filter((function(e){return\"warning\"===e.type}))},(t=[{key:\"content\",get:function(){return this.css}}])&&function(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)}}(e.prototype,t),e}();t.default=i,e.exports=t.default},function(e,t,n){t.__esModule=!0,t.default=void 0;var r=function(){function e(e,t){if(void 0===t&&(t={}),this.type=\"warning\",this.text=e,t.node&&t.node.source){var n=t.node.positionBy(t);this.line=n.line,this.column=n.column}for(var r in t)this[r]=t[r]}return e.prototype.toString=function(){return this.node?this.node.error(this.text,{plugin:this.plugin,index:this.index,word:this.word}).message:this.plugin?this.plugin+\": \"+this.text:this.text},e}();t.default=r,e.exports=t.default},function(e,t,n){t.__esModule=!0,t.default=void 0;var r=c(n(1)),o=c(n(41)),i=c(n(6)),s=c(n(7)),a=c(n(20)),u=c(n(9));function c(e){return e&&e.__esModule?e:{default:e}}var l=function(){function e(e){this.input=e,this.root=new a.default,this.current=this.root,this.spaces=\"\",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{line:1,column:1}}}var t=e.prototype;return t.createTokenizer=function(){this.tokenizer=(0,o.default)(this.input)},t.parse=function(){for(var e;!this.tokenizer.endOfFile();)switch((e=this.tokenizer.nextToken())[0]){case\"space\":this.spaces+=e[1];break;case\";\":this.freeSemicolon(e);break;case\"}\":this.end(e);break;case\"comment\":this.comment(e);break;case\"at-word\":this.atrule(e);break;case\"{\":this.emptyRule(e);break;default:this.other(e)}this.endFile()},t.comment=function(e){var t=new i.default;this.init(t,e[2],e[3]),t.source.end={line:e[4],column:e[5]};var n=e[1].slice(2,-2);if(/^\\s*$/.test(n))t.text=\"\",t.raws.left=n,t.raws.right=\"\";else{var r=n.match(/^(\\s*)([^]*[^\\s])(\\s*)$/);t.text=r[2],t.raws.left=r[1],t.raws.right=r[3]}},t.emptyRule=function(e){var t=new u.default;this.init(t,e[2],e[3]),t.selector=\"\",t.raws.between=\"\",this.current=t},t.other=function(e){for(var t=!1,n=null,r=!1,o=null,i=[],s=[],a=e;a;){if(n=a[0],s.push(a),\"(\"===n||\"[\"===n)o||(o=a),i.push(\"(\"===n?\")\":\"]\");else if(0===i.length){if(\";\"===n){if(r)return void this.decl(s);break}if(\"{\"===n)return void this.rule(s);if(\"}\"===n){this.tokenizer.back(s.pop()),t=!0;break}\":\"===n&&(r=!0)}else n===i[i.length-1]&&(i.pop(),0===i.length&&(o=null));a=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),i.length>0&&this.unclosedBracket(o),t&&r){for(;s.length&&(\"space\"===(a=s[s.length-1][0])||\"comment\"===a);)this.tokenizer.back(s.pop());this.decl(s)}else this.unknownWord(s)},t.rule=function(e){e.pop();var t=new u.default;this.init(t,e[0][2],e[0][3]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,\"selector\",e),this.current=t},t.decl=function(e){var t=new r.default;this.init(t);var n,o=e[e.length-1];for(\";\"===o[0]&&(this.semicolon=!0,e.pop()),o[4]?t.source.end={line:o[4],column:o[5]}:t.source.end={line:o[2],column:o[3]};\"word\"!==e[0][0];)1===e.length&&this.unknownWord(e),t.raws.before+=e.shift()[1];for(t.source.start={line:e[0][2],column:e[0][3]},t.prop=\"\";e.length;){var i=e[0][0];if(\":\"===i||\"space\"===i||\"comment\"===i)break;t.prop+=e.shift()[1]}for(t.raws.between=\"\";e.length;){if(\":\"===(n=e.shift())[0]){t.raws.between+=n[1];break}\"word\"===n[0]&&/\\w/.test(n[1])&&this.unknownWord([n]),t.raws.between+=n[1]}\"_\"!==t.prop[0]&&\"*\"!==t.prop[0]||(t.raws.before+=t.prop[0],t.prop=t.prop.slice(1)),t.raws.between+=this.spacesAndCommentsFromStart(e),this.precheckMissedSemicolon(e);for(var s=e.length-1;s>0;s--){if(\"!important\"===(n=e[s])[1].toLowerCase()){t.important=!0;var a=this.stringFrom(e,s);\" !important\"!==(a=this.spacesFromEnd(e)+a)&&(t.raws.important=a);break}if(\"important\"===n[1].toLowerCase()){for(var u=e.slice(0),c=\"\",l=s;l>0;l--){var d=u[l][0];if(0===c.trim().indexOf(\"!\")&&\"space\"!==d)break;c=u.pop()[1]+c}0===c.trim().indexOf(\"!\")&&(t.important=!0,t.raws.important=c,e=u)}if(\"space\"!==n[0]&&\"comment\"!==n[0])break}this.raw(t,\"value\",e),-1!==t.value.indexOf(\":\")&&this.checkMissedSemicolon(e)},t.atrule=function(e){var t,n,r=new s.default;r.name=e[1].slice(1),\"\"===r.name&&this.unnamedAtrule(r,e),this.init(r,e[2],e[3]);for(var o=!1,i=!1,a=[];!this.tokenizer.endOfFile();){if(\";\"===(e=this.tokenizer.nextToken())[0]){r.source.end={line:e[2],column:e[3]},this.semicolon=!0;break}if(\"{\"===e[0]){i=!0;break}if(\"}\"===e[0]){if(a.length>0){for(t=a[n=a.length-1];t&&\"space\"===t[0];)t=a[--n];t&&(r.source.end={line:t[4],column:t[5]})}this.end(e);break}if(a.push(e),this.tokenizer.endOfFile()){o=!0;break}}r.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(r.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(r,\"params\",a),o&&(e=a[a.length-1],r.source.end={line:e[4],column:e[5]},this.spaces=r.raws.between,r.raws.between=\"\")):(r.raws.afterName=\"\",r.params=\"\"),i&&(r.nodes=[],this.current=r)},t.end=function(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||\"\")+this.spaces,this.spaces=\"\",this.current.parent?(this.current.source.end={line:e[2],column:e[3]},this.current=this.current.parent):this.unexpectedClose(e)},t.endFile=function(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||\"\")+this.spaces},t.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var t=this.current.nodes[this.current.nodes.length-1];t&&\"rule\"===t.type&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces=\"\")}},t.init=function(e,t,n){this.current.push(e),e.source={start:{line:t,column:n},input:this.input},e.raws.before=this.spaces,this.spaces=\"\",\"comment\"!==e.type&&(this.semicolon=!1)},t.raw=function(e,t,n){for(var r,o,i,s,a=n.length,u=\"\",c=!0,l=/^([.|#])?([\\w])+/i,d=0;d<a;d+=1)\"comment\"!==(o=(r=n[d])[0])||\"rule\"!==e.type?\"comment\"===o||\"space\"===o&&d===a-1?c=!1:u+=r[1]:(s=n[d-1],i=n[d+1],\"space\"!==s[0]&&\"space\"!==i[0]&&l.test(s[1])&&l.test(i[1])?u+=r[1]:c=!1);if(!c){var h=n.reduce((function(e,t){return e+t[1]}),\"\");e.raws[t]={value:u,raw:h}}e[t]=u},t.spacesAndCommentsFromEnd=function(e){for(var t,n=\"\";e.length&&(\"space\"===(t=e[e.length-1][0])||\"comment\"===t);)n=e.pop()[1]+n;return n},t.spacesAndCommentsFromStart=function(e){for(var t,n=\"\";e.length&&(\"space\"===(t=e[0][0])||\"comment\"===t);)n+=e.shift()[1];return n},t.spacesFromEnd=function(e){for(var t=\"\";e.length&&\"space\"===e[e.length-1][0];)t=e.pop()[1]+t;return t},t.stringFrom=function(e,t){for(var n=\"\",r=t;r<e.length;r++)n+=e[r][1];return e.splice(t,e.length-t),n},t.colon=function(e){for(var t,n,r,o=0,i=0;i<e.length;i++){if(\"(\"===(n=(t=e[i])[0])&&(o+=1),\")\"===n&&(o-=1),0===o&&\":\"===n){if(r){if(\"word\"===r[0]&&\"progid\"===r[1])continue;return i}this.doubleColon(t)}r=t}return!1},t.unclosedBracket=function(e){throw this.input.error(\"Unclosed bracket\",e[2],e[3])},t.unknownWord=function(e){throw this.input.error(\"Unknown word\",e[0][2],e[0][3])},t.unexpectedClose=function(e){throw this.input.error(\"Unexpected }\",e[2],e[3])},t.unclosedBlock=function(){var e=this.current.source.start;throw this.input.error(\"Unclosed block\",e.line,e.column)},t.doubleColon=function(e){throw this.input.error(\"Double colon\",e[2],e[3])},t.unnamedAtrule=function(e,t){throw this.input.error(\"At-rule without name\",t[2],t[3])},t.precheckMissedSemicolon=function(){},t.checkMissedSemicolon=function(e){var t=this.colon(e);if(!1!==t){for(var n,r=0,o=t-1;o>=0&&(\"space\"===(n=e[o])[0]||2!==(r+=1));o--);throw this.input.error(\"Missed semicolon\",n[2],n[3])}},e}();t.default=l,e.exports=t.default},function(e,t,n){t.__esModule=!0,t.default=function(e,t){void 0===t&&(t={});var n,E,T,x,O,N,A,M,P,L,D,B,R,F,j=e.css.valueOf(),U=t.ignoreErrors,z=j.length,H=-1,q=1,Z=0,W=[],G=[];function Y(t){throw e.error(\"Unclosed \"+t,q,Z-H)}return{back:function(e){G.push(e)},nextToken:function(e){if(G.length)return G.pop();if(!(Z>=z)){var t=!!e&&e.ignoreUnclosed;switch(((n=j.charCodeAt(Z))===a||n===c||n===d&&j.charCodeAt(Z+1)!==a)&&(H=Z,q+=1),n){case a:case u:case l:case d:case c:E=Z;do{E+=1,(n=j.charCodeAt(E))===a&&(H=E,q+=1)}while(n===u||n===a||n===l||n===d||n===c);F=[\"space\",j.slice(Z,E)],Z=E-1;break;case h:case p:case v:case m:case _:case y:case g:var V=String.fromCharCode(n);F=[V,V,q,Z-H];break;case f:if(B=W.length?W.pop()[1]:\"\",R=j.charCodeAt(Z+1),\"url\"===B&&R!==r&&R!==o&&R!==u&&R!==a&&R!==l&&R!==c&&R!==d){E=Z;do{if(L=!1,-1===(E=j.indexOf(\")\",E+1))){if(U||t){E=Z;break}Y(\"bracket\")}for(D=E;j.charCodeAt(D-1)===i;)D-=1,L=!L}while(L);F=[\"brackets\",j.slice(Z,E+1),q,Z-H,q,E-H],Z=E}else E=j.indexOf(\")\",Z+1),N=j.slice(Z,E+1),-1===E||k.test(N)?F=[\"(\",\"(\",q,Z-H]:(F=[\"brackets\",N,q,Z-H,q,E-H],Z=E);break;case r:case o:T=n===r?\"'\":'\"',E=Z;do{if(L=!1,-1===(E=j.indexOf(T,E+1))){if(U||t){E=Z+1;break}Y(\"string\")}for(D=E;j.charCodeAt(D-1)===i;)D-=1,L=!L}while(L);N=j.slice(Z,E+1),x=N.split(\"\\n\"),(O=x.length-1)>0?(M=q+O,P=E-x[O].length):(M=q,P=H),F=[\"string\",j.slice(Z,E+1),q,Z-H,M,E-P],H=P,q=M,Z=E;break;case w:S.lastIndex=Z+1,S.test(j),E=0===S.lastIndex?j.length-1:S.lastIndex-2,F=[\"at-word\",j.slice(Z,E+1),q,Z-H,q,E-H],Z=E;break;case i:for(E=Z,A=!0;j.charCodeAt(E+1)===i;)E+=1,A=!A;if(n=j.charCodeAt(E+1),A&&n!==s&&n!==u&&n!==a&&n!==l&&n!==d&&n!==c&&(E+=1,C.test(j.charAt(E)))){for(;C.test(j.charAt(E+1));)E+=1;j.charCodeAt(E+1)===u&&(E+=1)}F=[\"word\",j.slice(Z,E+1),q,Z-H,q,E-H],Z=E;break;default:n===s&&j.charCodeAt(Z+1)===b?(0===(E=j.indexOf(\"*/\",Z+2)+1)&&(U||t?E=j.length:Y(\"comment\")),N=j.slice(Z,E+1),x=N.split(\"\\n\"),(O=x.length-1)>0?(M=q+O,P=E-x[O].length):(M=q,P=H),F=[\"comment\",N,q,Z-H,M,E-P],H=P,q=M,Z=E):(I.lastIndex=Z+1,I.test(j),E=0===I.lastIndex?j.length-1:I.lastIndex-2,F=[\"word\",j.slice(Z,E+1),q,Z-H,q,E-H],W.push(F),Z=E)}return Z++,F}},endOfFile:function(){return 0===G.length&&Z>=z},position:function(){return Z}}};var r=\"'\".charCodeAt(0),o='\"'.charCodeAt(0),i=\"\\\\\".charCodeAt(0),s=\"/\".charCodeAt(0),a=\"\\n\".charCodeAt(0),u=\" \".charCodeAt(0),c=\"\\f\".charCodeAt(0),l=\"\\t\".charCodeAt(0),d=\"\\r\".charCodeAt(0),h=\"[\".charCodeAt(0),p=\"]\".charCodeAt(0),f=\"(\".charCodeAt(0),g=\")\".charCodeAt(0),v=\"{\".charCodeAt(0),m=\"}\".charCodeAt(0),y=\";\".charCodeAt(0),b=\"*\".charCodeAt(0),_=\":\".charCodeAt(0),w=\"@\".charCodeAt(0),S=/[ \\n\\t\\r\\f{}()'\"\\\\;/[\\]#]/g,I=/[ \\n\\t\\r\\f(){}:;@!'\"\\\\\\][#]|\\/(?=\\*)/g,k=/.[\\\\/(\"'\\n]/,C=/[a-f0-9]/i;e.exports=t.default},function(e,t,n){t.__esModule=!0,t.default=void 0;var r=s(n(4)),o=s(n(10)),i=s(n(43));function s(e){return e&&e.__esModule?e:{default:e}}var a=0,u=function(){function e(e,t){if(void 0===t&&(t={}),null==e||\"object\"==typeof e&&!e.toString)throw new Error(\"PostCSS received \"+e+\" instead of CSS string\");this.css=e.toString(),\"\\ufeff\"===this.css[0]||\"\"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(/^\\w+:\\/\\//.test(t.from)||r.default.isAbsolute(t.from)?this.file=t.from:this.file=r.default.resolve(t.from));var n=new i.default(this.css,t);if(n.text){this.map=n;var o=n.consumer().file;!this.file&&o&&(this.file=this.mapResolve(o))}this.file||(a+=1,this.id=\"<input css \"+a+\">\"),this.map&&(this.map.file=this.from)}var t,n=e.prototype;return n.error=function(e,t,n,r){var i;void 0===r&&(r={});var s=this.origin(t,n);return(i=s?new o.default(e,s.line,s.column,s.source,s.file,r.plugin):new o.default(e,t,n,this.css,this.file,r.plugin)).input={line:t,column:n,source:this.css},this.file&&(i.input.file=this.file),i},n.origin=function(e,t){if(!this.map)return!1;var n=this.map.consumer(),r=n.originalPositionFor({line:e,column:t});if(!r.source)return!1;var o={file:this.mapResolve(r.source),line:r.line,column:r.column},i=n.sourceContentFor(r.source);return i&&(o.source=i),o},n.mapResolve=function(e){return/^\\w+:\\/\\//.test(e)?e:r.default.resolve(this.map.consumer().sourceRoot||\".\",e)},(t=[{key:\"from\",get:function(){return this.file||this.id}}])&&function(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)}}(e.prototype,t),e}();t.default=u,e.exports=t.default},function(e,t,n){(function(r){t.__esModule=!0,t.default=void 0;var o=a(n(15)),i=a(n(4)),s=a(n(44));function a(e){return e&&e.__esModule?e:{default:e}}var u=function(){function e(e,t){this.loadAnnotation(e),this.inline=this.startWith(this.annotation,\"data:\");var n=t.map?t.map.prev:void 0,r=this.loadMap(t.from,n);r&&(this.text=r)}var t=e.prototype;return t.consumer=function(){return this.consumerCache||(this.consumerCache=new o.default.SourceMapConsumer(this.text)),this.consumerCache},t.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},t.startWith=function(e,t){return!!e&&e.substr(0,t.length)===t},t.getAnnotationURL=function(e){return e.match(/\\/\\*\\s*# sourceMappingURL=(.*)\\s*\\*\\//)[1].trim()},t.loadAnnotation=function(e){var t=e.match(/\\/\\*\\s*# sourceMappingURL=(.*)\\s*\\*\\//gm);if(t&&t.length>0){var n=t[t.length-1];n&&(this.annotation=this.getAnnotationURL(n))}},t.decodeInline=function(e){var t,n=\"data:application/json,\";if(this.startWith(e,n))return decodeURIComponent(e.substr(n.length));if(/^data:application\\/json;charset=utf-?8;base64,/.test(e)||/^data:application\\/json;base64,/.test(e))return t=e.substr(RegExp.lastMatch.length),r?r.from(t,\"base64\").toString():window.atob(t);var o=e.match(/data:application\\/json;([^,]+),/)[1];throw new Error(\"Unsupported source map encoding \"+o)},t.loadMap=function(e,t){if(!1===t)return!1;if(t){if(\"string\"==typeof t)return t;if(\"function\"==typeof t){var n=t(e);if(n&&s.default.existsSync&&s.default.existsSync(n))return s.default.readFileSync(n,\"utf-8\").toString().trim();throw new Error(\"Unable to load previous source map: \"+n.toString())}if(t instanceof o.default.SourceMapConsumer)return o.default.SourceMapGenerator.fromSourceMap(t).toString();if(t instanceof o.default.SourceMapGenerator)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error(\"Unsupported previous source map format: \"+t.toString())}if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var r=this.annotation;return e&&(r=i.default.join(i.default.dirname(e),r)),this.root=i.default.dirname(r),!(!s.default.existsSync||!s.default.existsSync(r))&&s.default.readFileSync(r,\"utf-8\").toString().trim()}},t.isMap=function(e){return\"object\"==typeof e&&(\"string\"==typeof e.mappings||\"string\"==typeof e._mappings)},e}();t.default=u,e.exports=t.default}).call(this,n(14).Buffer)},function(e,t){},function(e,t,n){t.__esModule=!0,t.default=void 0,t.default={prefix:function(e){var t=e.match(/^(-\\w+-)/);return t?t[0]:\"\"},unprefixed:function(e){return e.replace(/^-\\w+-/,\"\")}},e.exports=t.default}])})),Ue=Re(je);je.postcss;var ze=Fe((function(e,t){function n(e){for(var t=e.toLowerCase(),n=\"\",r=!1,o=0;o<6&&void 0!==t[o];o++){var i=t.charCodeAt(o);if(r=32===i,!(i>=97&&i<=102||i>=48&&i<=57))break;n+=t[o]}if(0!==n.length){var s=parseInt(n,16);return s>=55296&&s<=57343||0===s||s>1114111?[\"�\",n.length+(r?1:0)]:[String.fromCodePoint(s),n.length+(r?1:0)]}}t.__esModule=!0,t.default=function(e){if(!r.test(e))return e;for(var t=\"\",o=0;o<e.length;o++)if(\"\\\\\"!==e[o])t+=e[o];else{var i=n(e.slice(o+1,o+7));if(void 0!==i){t+=i[0],o+=i[1];continue}if(\"\\\\\"===e[o+1]){t+=\"\\\\\",o++;continue}e.length===o+1&&(t+=e[o])}return t};var r=/\\\\/;e.exports=t.default}));Re(ze);var He=Fe((function(e,t){t.__esModule=!0,t.default=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(;n.length>0;){var o=n.shift();if(!e[o])return;e=e[o]}return e},e.exports=t.default}));Re(He);var qe=Fe((function(e,t){t.__esModule=!0,t.default=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(;n.length>0;){var o=n.shift();e[o]||(e[o]={}),e=e[o]}},e.exports=t.default}));Re(qe);var Ze=Fe((function(e,t){t.__esModule=!0,t.default=function(e){var t=\"\",n=e.indexOf(\"/*\"),r=0;for(;n>=0;){t+=e.slice(r,n);var o=e.indexOf(\"*/\",n+2);if(o<0)return t;r=o+2,n=e.indexOf(\"/*\",r)}return t+=e.slice(r)},e.exports=t.default}));Re(Ze);var We=Fe((function(e,t){t.__esModule=!0,t.stripComments=t.ensureObject=t.getProp=t.unesc=void 0;var n=s(ze);t.unesc=n.default;var r=s(He);t.getProp=r.default;var o=s(qe);t.ensureObject=o.default;var i=s(Ze);function s(e){return e&&e.__esModule?e:{default:e}}t.stripComments=i.default}));Re(We),We.stripComments,We.ensureObject,We.getProp,We.unesc;var Ge=Fe((function(e,t){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)}}t.__esModule=!0,t.default=void 0;var r=function(){function e(e){void 0===e&&(e={}),Object.assign(this,e),this.spaces=this.spaces||{},this.spaces.before=this.spaces.before||\"\",this.spaces.after=this.spaces.after||\"\"}var t,r,o,i=e.prototype;return i.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},i.replaceWith=function(){if(this.parent){for(var e in arguments)this.parent.insertBefore(this,arguments[e]);this.remove()}return this},i.next=function(){return this.parent.at(this.parent.index(this)+1)},i.prev=function(){return this.parent.at(this.parent.index(this)-1)},i.clone=function(e){void 0===e&&(e={});var t=function e(t,n){if(\"object\"!=typeof t||null===t)return t;var r=new t.constructor;for(var o in t)if(t.hasOwnProperty(o)){var i=t[o];\"parent\"===o&&\"object\"===typeof i?n&&(r[o]=n):r[o]=i instanceof Array?i.map((function(t){return e(t,r)})):e(i,r)}return r}(this);for(var n in e)t[n]=e[n];return t},i.appendToPropertyAndEscape=function(e,t,n){this.raws||(this.raws={});var r=this[e],o=this.raws[e];this[e]=r+t,o||n!==t?this.raws[e]=(o||r)+n:delete this.raws[e]},i.setPropertyAndEscape=function(e,t,n){this.raws||(this.raws={}),this[e]=t,this.raws[e]=n},i.setPropertyWithoutEscape=function(e,t){this[e]=t,this.raws&&delete this.raws[e]},i.isAtPosition=function(e,t){if(this.source&&this.source.start&&this.source.end)return!(this.source.start.line>e)&&(!(this.source.end.line<e)&&(!(this.source.start.line===e&&this.source.start.column>t)&&!(this.source.end.line===e&&this.source.end.column<t)))},i.stringifyProperty=function(e){return this.raws&&this.raws[e]||this[e]},i.valueToString=function(){return String(this.stringifyProperty(\"value\"))},i.toString=function(){return[this.rawSpaceBefore,this.valueToString(),this.rawSpaceAfter].join(\"\")},t=e,(r=[{key:\"rawSpaceBefore\",get:function(){var e=this.raws&&this.raws.spaces&&this.raws.spaces.before;return void 0===e&&(e=this.spaces&&this.spaces.before),e||\"\"},set:function(e){(0,We.ensureObject)(this,\"raws\",\"spaces\"),this.raws.spaces.before=e}},{key:\"rawSpaceAfter\",get:function(){var e=this.raws&&this.raws.spaces&&this.raws.spaces.after;return void 0===e&&(e=this.spaces.after),e||\"\"},set:function(e){(0,We.ensureObject)(this,\"raws\",\"spaces\"),this.raws.spaces.after=e}}])&&n(t.prototype,r),o&&n(t,o),e}();t.default=r,e.exports=t.default}));Re(Ge);var Ye=Fe((function(e,t){t.__esModule=!0,t.UNIVERSAL=t.ATTRIBUTE=t.CLASS=t.COMBINATOR=t.COMMENT=t.ID=t.NESTING=t.PSEUDO=t.ROOT=t.SELECTOR=t.STRING=t.TAG=void 0;t.TAG=\"tag\";t.STRING=\"string\";t.SELECTOR=\"selector\";t.ROOT=\"root\";t.PSEUDO=\"pseudo\";t.NESTING=\"nesting\";t.ID=\"id\";t.COMMENT=\"comment\";t.COMBINATOR=\"combinator\";t.CLASS=\"class\";t.ATTRIBUTE=\"attribute\";t.UNIVERSAL=\"universal\"}));Re(Ye),Ye.UNIVERSAL,Ye.ATTRIBUTE,Ye.CLASS,Ye.COMBINATOR,Ye.COMMENT,Ye.ID,Ye.NESTING,Ye.PSEUDO,Ye.ROOT,Ye.SELECTOR,Ye.STRING,Ye.TAG;var Ve=Fe((function(e,t){t.__esModule=!0,t.default=void 0;var n,r=(n=Ge)&&n.__esModule?n:{default:n},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!=typeof e&&\"function\"!=typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var s=r?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(n,o,s):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(Ye);function i(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}function s(e,t){var n;if(\"undefined\"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if(\"string\"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);\"Object\"===n&&e.constructor&&(n=e.constructor.name);if(\"Map\"===n||\"Set\"===n)return Array.from(e);if(\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(e,t)}(e))||t&&e&&\"number\"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}return(n=e[Symbol.iterator]()).next.bind(n)}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function u(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 c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var l=function(e){var t,n;function r(t){var n;return(n=e.call(this,t)||this).nodes||(n.nodes=[]),n}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,c(t,n);var i,a,l,d=r.prototype;return d.append=function(e){return e.parent=this,this.nodes.push(e),this},d.prepend=function(e){return e.parent=this,this.nodes.unshift(e),this},d.at=function(e){return this.nodes[e]},d.index=function(e){return\"number\"==typeof e?e:this.nodes.indexOf(e)},d.removeChild=function(e){var t;for(var n in e=this.index(e),this.at(e).parent=void 0,this.nodes.splice(e,1),this.indexes)(t=this.indexes[n])>=e&&(this.indexes[n]=t-1);return this},d.removeAll=function(){for(var e,t=s(this.nodes);!(e=t()).done;){e.value.parent=void 0}return this.nodes=[],this},d.empty=function(){return this.removeAll()},d.insertAfter=function(e,t){t.parent=this;var n,r=this.index(e);for(var o in this.nodes.splice(r+1,0,t),t.parent=this,this.indexes)r<=(n=this.indexes[o])&&(this.indexes[o]=n+1);return this},d.insertBefore=function(e,t){t.parent=this;var n,r=this.index(e);for(var o in this.nodes.splice(r,0,t),t.parent=this,this.indexes)(n=this.indexes[o])<=r&&(this.indexes[o]=n+1);return this},d._findChildAtPosition=function(e,t){var n=void 0;return this.each((function(r){if(r.atPosition){var o=r.atPosition(e,t);if(o)return n=o,!1}else if(r.isAtPosition(e,t))return n=r,!1})),n},d.atPosition=function(e,t){return this.isAtPosition(e,t)?this._findChildAtPosition(e,t)||this:void 0},d._inferEndPosition=function(){this.last&&this.last.source&&this.last.source.end&&(this.source=this.source||{},this.source.end=this.source.end||{},Object.assign(this.source.end,this.last.source.end))},d.each=function(e){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach++;var t=this.lastEach;if(this.indexes[t]=0,this.length){for(var n,r;this.indexes[t]<this.length&&(n=this.indexes[t],!1!==(r=e(this.at(n),n)));)this.indexes[t]+=1;return delete this.indexes[t],!1!==r&&void 0}},d.walk=function(e){return this.each((function(t,n){var r=e(t,n);if(!1!==r&&t.length&&(r=t.walk(e)),!1===r)return!1}))},d.walkAttributes=function(e){var t=this;return this.walk((function(n){if(n.type===o.ATTRIBUTE)return e.call(t,n)}))},d.walkClasses=function(e){var t=this;return this.walk((function(n){if(n.type===o.CLASS)return e.call(t,n)}))},d.walkCombinators=function(e){var t=this;return this.walk((function(n){if(n.type===o.COMBINATOR)return e.call(t,n)}))},d.walkComments=function(e){var t=this;return this.walk((function(n){if(n.type===o.COMMENT)return e.call(t,n)}))},d.walkIds=function(e){var t=this;return this.walk((function(n){if(n.type===o.ID)return e.call(t,n)}))},d.walkNesting=function(e){var t=this;return this.walk((function(n){if(n.type===o.NESTING)return e.call(t,n)}))},d.walkPseudos=function(e){var t=this;return this.walk((function(n){if(n.type===o.PSEUDO)return e.call(t,n)}))},d.walkTags=function(e){var t=this;return this.walk((function(n){if(n.type===o.TAG)return e.call(t,n)}))},d.walkUniversals=function(e){var t=this;return this.walk((function(n){if(n.type===o.UNIVERSAL)return e.call(t,n)}))},d.split=function(e){var t=this,n=[];return this.reduce((function(r,o,i){var s=e.call(t,o);return n.push(o),s?(r.push(n),n=[]):i===t.length-1&&r.push(n),r}),[])},d.map=function(e){return this.nodes.map(e)},d.reduce=function(e,t){return this.nodes.reduce(e,t)},d.every=function(e){return this.nodes.every(e)},d.some=function(e){return this.nodes.some(e)},d.filter=function(e){return this.nodes.filter(e)},d.sort=function(e){return this.nodes.sort(e)},d.toString=function(){return this.map(String).join(\"\")},i=r,(a=[{key:\"first\",get:function(){return this.at(0)}},{key:\"last\",get:function(){return this.at(this.length-1)}},{key:\"length\",get:function(){return this.nodes.length}}])&&u(i.prototype,a),l&&u(i,l),r}(r.default);t.default=l,e.exports=t.default}));Re(Ve);var Je=Fe((function(e,t){var n;function r(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 o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}t.__esModule=!0,t.default=void 0;var i=function(e){var t,n;function i(t){var n;return(n=e.call(this,t)||this).type=Ye.ROOT,n}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,o(t,n);var s,a,u,c=i.prototype;return c.toString=function(){var e=this.reduce((function(e,t){return e.push(String(t)),e}),[]).join(\",\");return this.trailingComma?e+\",\":e},c.error=function(e,t){return this._error?this._error(e,t):new Error(e)},s=i,(a=[{key:\"errorGenerator\",set:function(e){this._error=e}}])&&r(s.prototype,a),u&&r(s,u),i}(((n=Ve)&&n.__esModule?n:{default:n}).default);t.default=i,e.exports=t.default}));Re(Je);var Xe=Fe((function(e,t){var n;function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}t.__esModule=!0,t.default=void 0;var o=function(e){var t,n;function o(t){var n;return(n=e.call(this,t)||this).type=Ye.SELECTOR,n}return n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n),o}(((n=Ve)&&n.__esModule?n:{default:n}).default);t.default=o,e.exports=t.default}));Re(Xe);var Qe={}.hasOwnProperty,$e=/[ -,\\.\\/:-@\\[-\\^`\\{-~]/,Ke=/[ -,\\.\\/:-@\\[\\]\\^`\\{-~]/,et=/(^|\\\\+)?(\\\\[A-F0-9]{1,6})\\x20(?![a-fA-F0-9\\x20])/g,tt=function e(t,n){\"single\"!=(n=function(e,t){if(!e)return t;var n={};for(var r in t)n[r]=Qe.call(e,r)?e[r]:t[r];return n}(n,e.options)).quotes&&\"double\"!=n.quotes&&(n.quotes=\"single\");for(var r=\"double\"==n.quotes?'\"':\"'\",o=n.isIdentifier,i=t.charAt(0),s=\"\",a=0,u=t.length;a<u;){var c=t.charAt(a++),l=c.charCodeAt(),d=void 0;if(l<32||l>126){if(l>=55296&&l<=56319&&a<u){var h=t.charCodeAt(a++);56320==(64512&h)?l=((1023&l)<<10)+(1023&h)+65536:a--}d=\"\\\\\"+l.toString(16).toUpperCase()+\" \"}else d=n.escapeEverything?$e.test(c)?\"\\\\\"+c:\"\\\\\"+l.toString(16).toUpperCase()+\" \":/[\\t\\n\\f\\r\\x0B]/.test(c)?\"\\\\\"+l.toString(16).toUpperCase()+\" \":\"\\\\\"==c||!o&&('\"'==c&&r==c||\"'\"==c&&r==c)||o&&Ke.test(c)?\"\\\\\"+c:c;s+=d}return o&&(/^-[-\\d]/.test(s)?s=\"\\\\-\"+s.slice(1):/\\d/.test(i)&&(s=\"\\\\3\"+i+\" \"+s.slice(1))),s=s.replace(et,(function(e,t,n){return t&&t.length%2?e:(t||\"\")+n})),!o&&n.wrap?r+s+r:s};tt.options={escapeEverything:!1,isIdentifier:!1,quotes:\"single\",wrap:!1},tt.version=\"3.0.0\";var nt=tt,rt=Fe((function(e,t){t.__esModule=!0,t.default=void 0;var n=r(nt);function r(e){return e&&e.__esModule?e:{default:e}}function o(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 i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var s=function(e){var t,r,s,a,u;function c(t){var n;return(n=e.call(this,t)||this).type=Ye.CLASS,n._constructed=!0,n}return r=e,(t=c).prototype=Object.create(r.prototype),t.prototype.constructor=t,i(t,r),c.prototype.valueToString=function(){return\".\"+e.prototype.valueToString.call(this)},s=c,(a=[{key:\"value\",get:function(){return this._value},set:function(e){if(this._constructed){var t=(0,n.default)(e,{isIdentifier:!0});t!==e?((0,We.ensureObject)(this,\"raws\"),this.raws.value=t):this.raws&&delete this.raws.value}this._value=e}}])&&o(s.prototype,a),u&&o(s,u),c}(r(Ge).default);t.default=s,e.exports=t.default}));Re(rt);var ot=Fe((function(e,t){var n;function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}t.__esModule=!0,t.default=void 0;var o=function(e){var t,n;function o(t){var n;return(n=e.call(this,t)||this).type=Ye.COMMENT,n}return n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n),o}(((n=Ge)&&n.__esModule?n:{default:n}).default);t.default=o,e.exports=t.default}));Re(ot);var it=Fe((function(e,t){var n;function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}t.__esModule=!0,t.default=void 0;var o=function(e){var t,n;function o(t){var n;return(n=e.call(this,t)||this).type=Ye.ID,n}return n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n),o.prototype.valueToString=function(){return\"#\"+e.prototype.valueToString.call(this)},o}(((n=Ge)&&n.__esModule?n:{default:n}).default);t.default=o,e.exports=t.default}));Re(it);var st=Fe((function(e,t){t.__esModule=!0,t.default=void 0;var n=r(nt);function r(e){return e&&e.__esModule?e:{default:e}}function o(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 i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var s=function(e){var t,r;function s(){return e.apply(this,arguments)||this}r=e,(t=s).prototype=Object.create(r.prototype),t.prototype.constructor=t,i(t,r);var a,u,c,l=s.prototype;return l.qualifiedName=function(e){return this.namespace?this.namespaceString+\"|\"+e:e},l.valueToString=function(){return this.qualifiedName(e.prototype.valueToString.call(this))},a=s,(u=[{key:\"namespace\",get:function(){return this._namespace},set:function(e){if(!0===e||\"*\"===e||\"&\"===e)return this._namespace=e,void(this.raws&&delete this.raws.namespace);var t=(0,n.default)(e,{isIdentifier:!0});this._namespace=e,t!==e?((0,We.ensureObject)(this,\"raws\"),this.raws.namespace=t):this.raws&&delete this.raws.namespace}},{key:\"ns\",get:function(){return this._namespace},set:function(e){this.namespace=e}},{key:\"namespaceString\",get:function(){if(this.namespace){var e=this.stringifyProperty(\"namespace\");return!0===e?\"\":e}return\"\"}}])&&o(a.prototype,u),c&&o(a,c),s}(r(Ge).default);t.default=s,e.exports=t.default}));Re(st);var at=Fe((function(e,t){var n;function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}t.__esModule=!0,t.default=void 0;var o=function(e){var t,n;function o(t){var n;return(n=e.call(this,t)||this).type=Ye.TAG,n}return n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n),o}(((n=st)&&n.__esModule?n:{default:n}).default);t.default=o,e.exports=t.default}));Re(at);var ut=Fe((function(e,t){var n;function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}t.__esModule=!0,t.default=void 0;var o=function(e){var t,n;function o(t){var n;return(n=e.call(this,t)||this).type=Ye.STRING,n}return n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n),o}(((n=Ge)&&n.__esModule?n:{default:n}).default);t.default=o,e.exports=t.default}));Re(ut);var ct=Fe((function(e,t){var n;function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}t.__esModule=!0,t.default=void 0;var o=function(e){var t,n;function o(t){var n;return(n=e.call(this,t)||this).type=Ye.PSEUDO,n}return n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n),o.prototype.toString=function(){var e=this.length?\"(\"+this.map(String).join(\",\")+\")\":\"\";return[this.rawSpaceBefore,this.stringifyProperty(\"value\"),e,this.rawSpaceAfter].join(\"\")},o}(((n=Ve)&&n.__esModule?n:{default:n}).default);t.default=o,e.exports=t.default}));Re(ct);var lt=function(e,t){if(dt(\"noDeprecation\"))return e;var n=!1;return function(){if(!n){if(dt(\"throwDeprecation\"))throw new Error(t);dt(\"traceDeprecation\")?console.trace(t):console.warn(t),n=!0}return e.apply(this,arguments)}};function dt(e){try{if(!global.localStorage)return!1}catch(e){return!1}var t=global.localStorage[e];return null!=t&&\"true\"===String(t).toLowerCase()}var ht=Fe((function(e,t){t.__esModule=!0,t.unescapeValue=p,t.default=void 0;var n,r=s(nt),o=s(ze),i=s(st);function s(e){return e&&e.__esModule?e:{default:e}}function a(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 u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var c=/^('|\")(.*)\\1$/,l=lt((function(){}),\"Assigning an attribute a value containing characters that might need to be escaped is deprecated. Call attribute.setValue() instead.\"),d=lt((function(){}),\"Assigning attr.quoted is deprecated and has no effect. Assign to attr.quoteMark instead.\"),h=lt((function(){}),\"Constructing an Attribute selector with a value without specifying quoteMark is deprecated. Note: The value should be unescaped now.\");function p(e){var t=!1,n=null,r=e,i=r.match(c);return i&&(n=i[1],r=i[2]),(r=(0,o.default)(r))!==e&&(t=!0),{deprecatedUsage:t,unescaped:r,quoteMark:n}}var f=function(e){var t,n;function o(t){var n;return void 0===t&&(t={}),(n=e.call(this,function(e){if(void 0!==e.quoteMark)return e;if(void 0===e.value)return e;h();var t=p(e.value),n=t.quoteMark,r=t.unescaped;return e.raws||(e.raws={}),void 0===e.raws.value&&(e.raws.value=e.value),e.value=r,e.quoteMark=n,e}(t))||this).type=Ye.ATTRIBUTE,n.raws=n.raws||{},Object.defineProperty(n.raws,\"unquoted\",{get:lt((function(){return n.value}),\"attr.raws.unquoted is deprecated. Call attr.value instead.\"),set:lt((function(){return n.value}),\"Setting attr.raws.unquoted is deprecated and has no effect. attr.value is unescaped by default now.\")}),n._constructed=!0,n}n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,u(t,n);var i,s,c,f=o.prototype;return f.getQuotedValue=function(e){void 0===e&&(e={});var t=this._determineQuoteMark(e),n=g[t];return(0,r.default)(this._value,n)},f._determineQuoteMark=function(e){return e.smart?this.smartQuoteMark(e):this.preferredQuoteMark(e)},f.setValue=function(e,t){void 0===t&&(t={}),this._value=e,this._quoteMark=this._determineQuoteMark(t),this._syncRawValue()},f.smartQuoteMark=function(e){var t=this.value,n=t.replace(/[^']/g,\"\").length,i=t.replace(/[^\"]/g,\"\").length;if(n+i===0){var s=(0,r.default)(t,{isIdentifier:!0});if(s===t)return o.NO_QUOTE;var a=this.preferredQuoteMark(e);if(a===o.NO_QUOTE){var u=this.quoteMark||e.quoteMark||o.DOUBLE_QUOTE,c=g[u];if((0,r.default)(t,c).length<s.length)return u}return a}return i===n?this.preferredQuoteMark(e):i<n?o.DOUBLE_QUOTE:o.SINGLE_QUOTE},f.preferredQuoteMark=function(e){var t=e.preferCurrentQuoteMark?this.quoteMark:e.quoteMark;return void 0===t&&(t=e.preferCurrentQuoteMark?e.quoteMark:this.quoteMark),void 0===t&&(t=o.DOUBLE_QUOTE),t},f._syncRawValue=function(){var e=(0,r.default)(this._value,g[this.quoteMark]);e===this._value?this.raws&&delete this.raws.value:this.raws.value=e},f._handleEscapes=function(e,t){if(this._constructed){var n=(0,r.default)(t,{isIdentifier:!0});n!==t?this.raws[e]=n:delete this.raws[e]}},f._spacesFor=function(e){var t=this.spaces[e]||{},n=this.raws.spaces&&this.raws.spaces[e]||{};return Object.assign({before:\"\",after:\"\"},t,n)},f._stringFor=function(e,t,n){void 0===t&&(t=e),void 0===n&&(n=v);var r=this._spacesFor(t);return n(this.stringifyProperty(e),r)},f.offsetOf=function(e){var t=1,n=this._spacesFor(\"attribute\");if(t+=n.before.length,\"namespace\"===e||\"ns\"===e)return this.namespace?t:-1;if(\"attributeNS\"===e)return t;if(t+=this.namespaceString.length,this.namespace&&(t+=1),\"attribute\"===e)return t;t+=this.stringifyProperty(\"attribute\").length,t+=n.after.length;var r=this._spacesFor(\"operator\");t+=r.before.length;var o=this.stringifyProperty(\"operator\");if(\"operator\"===e)return o?t:-1;t+=o.length,t+=r.after.length;var i=this._spacesFor(\"value\");t+=i.before.length;var s=this.stringifyProperty(\"value\");return\"value\"===e?s?t:-1:(t+=s.length,t+=i.after.length,t+=this._spacesFor(\"insensitive\").before.length,\"insensitive\"===e&&this.insensitive?t:-1)},f.toString=function(){var e=this,t=[this.rawSpaceBefore,\"[\"];return t.push(this._stringFor(\"qualifiedAttribute\",\"attribute\")),this.operator&&(this.value||\"\"===this.value)&&(t.push(this._stringFor(\"operator\")),t.push(this._stringFor(\"value\")),t.push(this._stringFor(\"insensitiveFlag\",\"insensitive\",(function(t,n){return!(t.length>0)||e.quoted||0!==n.before.length||e.spaces.value&&e.spaces.value.after||(n.before=\" \"),v(t,n)})))),t.push(\"]\"),t.push(this.rawSpaceAfter),t.join(\"\")},i=o,(s=[{key:\"quoted\",get:function(){var e=this.quoteMark;return\"'\"===e||'\"'===e},set:function(e){d()}},{key:\"quoteMark\",get:function(){return this._quoteMark},set:function(e){this._constructed?this._quoteMark!==e&&(this._quoteMark=e,this._syncRawValue()):this._quoteMark=e}},{key:\"qualifiedAttribute\",get:function(){return this.qualifiedName(this.raws.attribute||this.attribute)}},{key:\"insensitiveFlag\",get:function(){return this.insensitive?\"i\":\"\"}},{key:\"value\",get:function(){return this._value},set:function(e){if(this._constructed){var t=p(e),n=t.deprecatedUsage,r=t.unescaped,o=t.quoteMark;if(n&&l(),r===this._value&&o===this._quoteMark)return;this._value=r,this._quoteMark=o,this._syncRawValue()}else this._value=e}},{key:\"attribute\",get:function(){return this._attribute},set:function(e){this._handleEscapes(\"attribute\",e),this._attribute=e}}])&&a(i.prototype,s),c&&a(i,c),o}(i.default);t.default=f,f.NO_QUOTE=null,f.SINGLE_QUOTE=\"'\",f.DOUBLE_QUOTE='\"';var g=((n={\"'\":{quotes:\"single\",wrap:!0},'\"':{quotes:\"double\",wrap:!0}}).null={isIdentifier:!0},n);function v(e,t){return\"\"+t.before+e+t.after}}));Re(ht),ht.unescapeValue;var pt=Fe((function(e,t){var n;function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}t.__esModule=!0,t.default=void 0;var o=function(e){var t,n;function o(t){var n;return(n=e.call(this,t)||this).type=Ye.UNIVERSAL,n.value=\"*\",n}return n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n),o}(((n=st)&&n.__esModule?n:{default:n}).default);t.default=o,e.exports=t.default}));Re(pt);var ft=Fe((function(e,t){var n;function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}t.__esModule=!0,t.default=void 0;var o=function(e){var t,n;function o(t){var n;return(n=e.call(this,t)||this).type=Ye.COMBINATOR,n}return n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n),o}(((n=Ge)&&n.__esModule?n:{default:n}).default);t.default=o,e.exports=t.default}));Re(ft);var gt=Fe((function(e,t){var n;function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}t.__esModule=!0,t.default=void 0;var o=function(e){var t,n;function o(t){var n;return(n=e.call(this,t)||this).type=Ye.NESTING,n.value=\"&\",n}return n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n),o}(((n=Ge)&&n.__esModule?n:{default:n}).default);t.default=o,e.exports=t.default}));Re(gt);var vt=Fe((function(e,t){t.__esModule=!0,t.default=function(e){return e.sort((function(e,t){return e-t}))},e.exports=t.default}));Re(vt);var mt=Fe((function(e,t){t.__esModule=!0,t.combinator=t.word=t.comment=t.str=t.tab=t.newline=t.feed=t.cr=t.backslash=t.bang=t.slash=t.doubleQuote=t.singleQuote=t.space=t.greaterThan=t.pipe=t.equals=t.plus=t.caret=t.tilde=t.dollar=t.closeSquare=t.openSquare=t.closeParenthesis=t.openParenthesis=t.semicolon=t.colon=t.comma=t.at=t.asterisk=t.ampersand=void 0;t.ampersand=38;t.asterisk=42;t.at=64;t.comma=44;t.colon=58;t.semicolon=59;t.openParenthesis=40;t.closeParenthesis=41;t.openSquare=91;t.closeSquare=93;t.dollar=36;t.tilde=126;t.caret=94;t.plus=43;t.equals=61;t.pipe=124;t.greaterThan=62;t.space=32;t.singleQuote=39;t.doubleQuote=34;t.slash=47;t.bang=33;t.backslash=92;t.cr=13;t.feed=12;t.newline=10;t.tab=9;t.str=39;t.comment=-1;t.word=-2;t.combinator=-3}));Re(mt),mt.combinator,mt.word,mt.comment,mt.str,mt.tab,mt.newline,mt.feed,mt.cr,mt.backslash,mt.bang,mt.slash,mt.doubleQuote,mt.singleQuote,mt.space,mt.greaterThan,mt.pipe,mt.equals,mt.plus,mt.caret,mt.tilde,mt.dollar,mt.closeSquare,mt.openSquare,mt.closeParenthesis,mt.openParenthesis,mt.semicolon,mt.colon,mt.comma,mt.at,mt.asterisk,mt.ampersand;var yt=Fe((function(e,t){t.__esModule=!0,t.default=function(e){var t,n,r,i,s,a,u,c,d,h,p,f,g,v=[],m=e.css.valueOf(),y=m.length,b=-1,_=1,w=0,S=0;function I(t,n){if(!e.safe)throw e.error(\"Unclosed \"+t,_,w-b,w);d=(m+=n).length-1}for(;w<y;){switch((t=m.charCodeAt(w))===o.newline&&(b=w,_+=1),t){case o.space:case o.tab:case o.newline:case o.cr:case o.feed:d=w;do{d+=1,(t=m.charCodeAt(d))===o.newline&&(b=d,_+=1)}while(t===o.space||t===o.newline||t===o.tab||t===o.cr||t===o.feed);g=o.space,i=_,r=d-b-1,S=d;break;case o.plus:case o.greaterThan:case o.tilde:case o.pipe:d=w;do{d+=1,t=m.charCodeAt(d)}while(t===o.plus||t===o.greaterThan||t===o.tilde||t===o.pipe);g=o.combinator,i=_,r=w-b,S=d;break;case o.asterisk:case o.ampersand:case o.bang:case o.comma:case o.equals:case o.dollar:case o.caret:case o.openSquare:case o.closeSquare:case o.colon:case o.semicolon:case o.openParenthesis:case o.closeParenthesis:g=t,i=_,r=w-b,S=(d=w)+1;break;case o.singleQuote:case o.doubleQuote:f=t===o.singleQuote?\"'\":'\"',d=w;do{for(s=!1,-1===(d=m.indexOf(f,d+1))&&I(\"quote\",f),a=d;m.charCodeAt(a-1)===o.backslash;)a-=1,s=!s}while(s);g=o.str,i=_,r=w-b,S=d+1;break;default:t===o.slash&&m.charCodeAt(w+1)===o.asterisk?(0===(d=m.indexOf(\"*/\",w+2)+1)&&I(\"comment\",\"*/\"),n=m.slice(w,d+1),c=n.split(\"\\n\"),(u=c.length-1)>0?(h=_+u,p=d-c[u].length):(h=_,p=b),g=o.comment,_=h,i=h,r=d-p):t===o.slash?(g=t,i=_,r=w-b,S=(d=w)+1):(d=l(m,w),g=o.word,i=_,r=d-b),S=d+1}v.push([g,_,w-b,i,r,w,S]),p&&(b=p,p=null),w=S}return v},t.FIELDS=void 0;var n,r,o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!=typeof e&&\"function\"!=typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var s=r?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(n,o,s):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(mt);function i(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}for(var s=((n={})[o.tab]=!0,n[o.newline]=!0,n[o.cr]=!0,n[o.feed]=!0,n),a=((r={})[o.space]=!0,r[o.tab]=!0,r[o.newline]=!0,r[o.cr]=!0,r[o.feed]=!0,r[o.ampersand]=!0,r[o.asterisk]=!0,r[o.bang]=!0,r[o.comma]=!0,r[o.colon]=!0,r[o.semicolon]=!0,r[o.openParenthesis]=!0,r[o.closeParenthesis]=!0,r[o.openSquare]=!0,r[o.closeSquare]=!0,r[o.singleQuote]=!0,r[o.doubleQuote]=!0,r[o.plus]=!0,r[o.pipe]=!0,r[o.tilde]=!0,r[o.greaterThan]=!0,r[o.equals]=!0,r[o.dollar]=!0,r[o.caret]=!0,r[o.slash]=!0,r),u={},c=0;c<\"0123456789abcdefABCDEF\".length;c++)u[\"0123456789abcdefABCDEF\".charCodeAt(c)]=!0;function l(e,t){var n,r=t;do{if(n=e.charCodeAt(r),a[n])return r-1;n===o.backslash?r=d(e,r)+1:r++}while(r<e.length);return r-1}function d(e,t){var n=t,r=e.charCodeAt(n+1);if(s[r]);else if(u[r]){var i=0;do{n++,i++,r=e.charCodeAt(n+1)}while(u[r]&&i<6);i<6&&r===o.space&&n++}else n++;return n}t.FIELDS={TYPE:0,START_LINE:1,START_COL:2,END_LINE:3,END_COL:4,START_POS:5,END_POS:6}}));Re(yt),yt.FIELDS;var bt=Fe((function(e,t){t.__esModule=!0,t.default=void 0;var n,r,o=S(Je),i=S(Xe),s=S(rt),a=S(ot),u=S(it),c=S(at),l=S(ut),d=S(ct),h=w(ht),p=S(pt),f=S(ft),g=S(gt),v=S(vt),m=w(yt),y=w(mt),b=w(Ye);function _(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return _=function(){return e},e}function w(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!=typeof e&&\"function\"!=typeof e)return{default:e};var t=_();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}function S(e){return e&&e.__esModule?e:{default:e}}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,r.key,r)}}var k=((n={})[y.space]=!0,n[y.cr]=!0,n[y.feed]=!0,n[y.newline]=!0,n[y.tab]=!0,n),C=Object.assign({},k,((r={})[y.comment]=!0,r));function E(e){return{line:e[m.FIELDS.START_LINE],column:e[m.FIELDS.START_COL]}}function T(e){return{line:e[m.FIELDS.END_LINE],column:e[m.FIELDS.END_COL]}}function x(e,t,n,r){return{start:{line:e,column:t},end:{line:n,column:r}}}function O(e){return x(e[m.FIELDS.START_LINE],e[m.FIELDS.START_COL],e[m.FIELDS.END_LINE],e[m.FIELDS.END_COL])}function N(e,t){if(e)return x(e[m.FIELDS.START_LINE],e[m.FIELDS.START_COL],t[m.FIELDS.END_LINE],t[m.FIELDS.END_COL])}function A(e,t){var n=e[t];if(\"string\"==typeof n)return-1!==n.indexOf(\"\\\\\")&&((0,We.ensureObject)(e,\"raws\"),e[t]=(0,We.unesc)(n),void 0===e.raws[t]&&(e.raws[t]=n)),e}function M(e,t){for(var n=-1,r=[];-1!==(n=e.indexOf(t,n+1));)r.push(n);return r}var P=function(){function e(e,t){void 0===t&&(t={}),this.rule=e,this.options=Object.assign({lossy:!1,safe:!1},t),this.position=0,this.css=\"string\"==typeof this.rule?this.rule:this.rule.selector,this.tokens=(0,m.default)({css:this.css,error:this._errorGenerator(),safe:this.options.safe});var n=N(this.tokens[0],this.tokens[this.tokens.length-1]);this.root=new o.default({source:n}),this.root.errorGenerator=this._errorGenerator();var r=new i.default({source:{start:{line:1,column:1}}});this.root.append(r),this.current=r,this.loop()}var t,n,r,_=e.prototype;return _._errorGenerator=function(){var e=this;return function(t,n){return\"string\"==typeof e.rule?new Error(t):e.rule.error(t,n)}},_.attribute=function(){var e=[],t=this.currToken;for(this.position++;this.position<this.tokens.length&&this.currToken[m.FIELDS.TYPE]!==y.closeSquare;)e.push(this.currToken),this.position++;if(this.currToken[m.FIELDS.TYPE]!==y.closeSquare)return this.expected(\"closing square bracket\",this.currToken[m.FIELDS.START_POS]);var n=e.length,r={source:x(t[1],t[2],this.currToken[3],this.currToken[4]),sourceIndex:t[m.FIELDS.START_POS]};if(1===n&&!~[y.word].indexOf(e[0][m.FIELDS.TYPE]))return this.expected(\"attribute\",e[0][m.FIELDS.START_POS]);for(var o=0,i=\"\",s=\"\",a=null,u=!1;o<n;){var c=e[o],l=this.content(c),d=e[o+1];switch(c[m.FIELDS.TYPE]){case y.space:if(u=!0,this.options.lossy)break;if(a){(0,We.ensureObject)(r,\"spaces\",a);var p=r.spaces[a].after||\"\";r.spaces[a].after=p+l;var f=(0,We.getProp)(r,\"raws\",\"spaces\",a,\"after\")||null;f&&(r.raws.spaces[a].after=f+l)}else i+=l,s+=l;break;case y.asterisk:if(d[m.FIELDS.TYPE]===y.equals)r.operator=l,a=\"operator\";else if((!r.namespace||\"namespace\"===a&&!u)&&d){i&&((0,We.ensureObject)(r,\"spaces\",\"attribute\"),r.spaces.attribute.before=i,i=\"\"),s&&((0,We.ensureObject)(r,\"raws\",\"spaces\",\"attribute\"),r.raws.spaces.attribute.before=i,s=\"\"),r.namespace=(r.namespace||\"\")+l,((0,We.getProp)(r,\"raws\",\"namespace\")||null)&&(r.raws.namespace+=l),a=\"namespace\"}u=!1;break;case y.dollar:if(\"value\"===a){var g=(0,We.getProp)(r,\"raws\",\"value\");r.value+=\"$\",g&&(r.raws.value=g+\"$\");break}case y.caret:d[m.FIELDS.TYPE]===y.equals&&(r.operator=l,a=\"operator\"),u=!1;break;case y.combinator:if(\"~\"===l&&d[m.FIELDS.TYPE]===y.equals&&(r.operator=l,a=\"operator\"),\"|\"!==l){u=!1;break}d[m.FIELDS.TYPE]===y.equals?(r.operator=l,a=\"operator\"):r.namespace||r.attribute||(r.namespace=!0),u=!1;break;case y.word:if(d&&\"|\"===this.content(d)&&e[o+2]&&e[o+2][m.FIELDS.TYPE]!==y.equals&&!r.operator&&!r.namespace)r.namespace=l,a=\"namespace\";else if(!r.attribute||\"attribute\"===a&&!u){i&&((0,We.ensureObject)(r,\"spaces\",\"attribute\"),r.spaces.attribute.before=i,i=\"\"),s&&((0,We.ensureObject)(r,\"raws\",\"spaces\",\"attribute\"),r.raws.spaces.attribute.before=s,s=\"\"),r.attribute=(r.attribute||\"\")+l,((0,We.getProp)(r,\"raws\",\"attribute\")||null)&&(r.raws.attribute+=l),a=\"attribute\"}else if(!r.value&&\"\"!==r.value||\"value\"===a&&!u){var v=(0,We.unesc)(l),b=(0,We.getProp)(r,\"raws\",\"value\")||\"\",_=r.value||\"\";r.value=_+v,r.quoteMark=null,(v!==l||b)&&((0,We.ensureObject)(r,\"raws\"),r.raws.value=(b||_)+l),a=\"value\"}else{var w=\"i\"===l||\"I\"===l;!r.value&&\"\"!==r.value||!r.quoteMark&&!u?(r.value||\"\"===r.value)&&(a=\"value\",r.value+=l,r.raws.value&&(r.raws.value+=l)):(r.insensitive=w,w&&\"I\"!==l||((0,We.ensureObject)(r,\"raws\"),r.raws.insensitiveFlag=l),a=\"insensitive\",i&&((0,We.ensureObject)(r,\"spaces\",\"insensitive\"),r.spaces.insensitive.before=i,i=\"\"),s&&((0,We.ensureObject)(r,\"raws\",\"spaces\",\"insensitive\"),r.raws.spaces.insensitive.before=s,s=\"\"))}u=!1;break;case y.str:if(!r.attribute||!r.operator)return this.error(\"Expected an attribute followed by an operator preceding the string.\",{index:c[m.FIELDS.START_POS]});var S=(0,h.unescapeValue)(l),I=S.unescaped,k=S.quoteMark;r.value=I,r.quoteMark=k,a=\"value\",(0,We.ensureObject)(r,\"raws\"),r.raws.value=l,u=!1;break;case y.equals:if(!r.attribute)return this.expected(\"attribute\",c[m.FIELDS.START_POS],l);if(r.value)return this.error('Unexpected \"=\" found; an operator was already defined.',{index:c[m.FIELDS.START_POS]});r.operator=r.operator?r.operator+l:l,a=\"operator\",u=!1;break;case y.comment:if(a)if(u||d&&d[m.FIELDS.TYPE]===y.space||\"insensitive\"===a){var C=(0,We.getProp)(r,\"spaces\",a,\"after\")||\"\",E=(0,We.getProp)(r,\"raws\",\"spaces\",a,\"after\")||C;(0,We.ensureObject)(r,\"raws\",\"spaces\",a),r.raws.spaces[a].after=E+l}else{var T=r[a]||\"\",O=(0,We.getProp)(r,\"raws\",a)||T;(0,We.ensureObject)(r,\"raws\"),r.raws[a]=O+l}else s+=l;break;default:return this.error('Unexpected \"'+l+'\" found.',{index:c[m.FIELDS.START_POS]})}o++}A(r,\"attribute\"),A(r,\"namespace\"),this.newNode(new h.default(r)),this.position++},_.parseWhitespaceEquivalentTokens=function(e){e<0&&(e=this.tokens.length);var t=this.position,n=[],r=\"\",o=void 0;do{if(k[this.currToken[m.FIELDS.TYPE]])this.options.lossy||(r+=this.content());else if(this.currToken[m.FIELDS.TYPE]===y.comment){var i={};r&&(i.before=r,r=\"\"),o=new a.default({value:this.content(),source:O(this.currToken),sourceIndex:this.currToken[m.FIELDS.START_POS],spaces:i}),n.push(o)}}while(++this.position<e);if(r)if(o)o.spaces.after=r;else if(!this.options.lossy){var s=this.tokens[t],u=this.tokens[this.position-1];n.push(new l.default({value:\"\",source:x(s[m.FIELDS.START_LINE],s[m.FIELDS.START_COL],u[m.FIELDS.END_LINE],u[m.FIELDS.END_COL]),sourceIndex:s[m.FIELDS.START_POS],spaces:{before:r,after:\"\"}}))}return n},_.convertWhitespaceNodesToSpace=function(e,t){var n=this;void 0===t&&(t=!1);var r=\"\",o=\"\";return e.forEach((function(e){var i=n.lossySpace(e.spaces.before,t),s=n.lossySpace(e.rawSpaceBefore,t);r+=i+n.lossySpace(e.spaces.after,t&&0===i.length),o+=i+e.value+n.lossySpace(e.rawSpaceAfter,t&&0===s.length)})),o===r&&(o=void 0),{space:r,rawSpace:o}},_.isNamedCombinator=function(e){return void 0===e&&(e=this.position),this.tokens[e+0]&&this.tokens[e+0][m.FIELDS.TYPE]===y.slash&&this.tokens[e+1]&&this.tokens[e+1][m.FIELDS.TYPE]===y.word&&this.tokens[e+2]&&this.tokens[e+2][m.FIELDS.TYPE]===y.slash},_.namedCombinator=function(){if(this.isNamedCombinator()){var e=this.content(this.tokens[this.position+1]),t=(0,We.unesc)(e).toLowerCase(),n={};t!==e&&(n.value=\"/\"+e+\"/\");var r=new f.default({value:\"/\"+t+\"/\",source:x(this.currToken[m.FIELDS.START_LINE],this.currToken[m.FIELDS.START_COL],this.tokens[this.position+2][m.FIELDS.END_LINE],this.tokens[this.position+2][m.FIELDS.END_COL]),sourceIndex:this.currToken[m.FIELDS.START_POS],raws:n});return this.position=this.position+3,r}this.unexpected()},_.combinator=function(){var e=this;if(\"|\"===this.content())return this.namespace();var t=this.locateNextMeaningfulToken(this.position);if(!(t<0||this.tokens[t][m.FIELDS.TYPE]===y.comma)){var n,r=this.currToken,o=void 0;if(t>this.position&&(o=this.parseWhitespaceEquivalentTokens(t)),this.isNamedCombinator()?n=this.namedCombinator():this.currToken[m.FIELDS.TYPE]===y.combinator?(n=new f.default({value:this.content(),source:O(this.currToken),sourceIndex:this.currToken[m.FIELDS.START_POS]}),this.position++):k[this.currToken[m.FIELDS.TYPE]]||o||this.unexpected(),n){if(o){var i=this.convertWhitespaceNodesToSpace(o),s=i.space,a=i.rawSpace;n.spaces.before=s,n.rawSpaceBefore=a}}else{var u=this.convertWhitespaceNodesToSpace(o,!0),c=u.space,l=u.rawSpace;l||(l=c);var d={},h={spaces:{}};c.endsWith(\" \")&&l.endsWith(\" \")?(d.before=c.slice(0,c.length-1),h.spaces.before=l.slice(0,l.length-1)):c.startsWith(\" \")&&l.startsWith(\" \")?(d.after=c.slice(1),h.spaces.after=l.slice(1)):h.value=l,n=new f.default({value:\" \",source:N(r,this.tokens[this.position-1]),sourceIndex:r[m.FIELDS.START_POS],spaces:d,raws:h})}return this.currToken&&this.currToken[m.FIELDS.TYPE]===y.space&&(n.spaces.after=this.optionalSpace(this.content()),this.position++),this.newNode(n)}var p=this.parseWhitespaceEquivalentTokens(t);if(p.length>0){var g=this.current.last;if(g){var v=this.convertWhitespaceNodesToSpace(p),b=v.space,_=v.rawSpace;void 0!==_&&(g.rawSpaceAfter+=_),g.spaces.after+=b}else p.forEach((function(t){return e.newNode(t)}))}},_.comma=function(){if(this.position===this.tokens.length-1)return this.root.trailingComma=!0,void this.position++;this.current._inferEndPosition();var e=new i.default({source:{start:E(this.tokens[this.position+1])}});this.current.parent.append(e),this.current=e,this.position++},_.comment=function(){var e=this.currToken;this.newNode(new a.default({value:this.content(),source:O(e),sourceIndex:e[m.FIELDS.START_POS]})),this.position++},_.error=function(e,t){throw this.root.error(e,t)},_.missingBackslash=function(){return this.error(\"Expected a backslash preceding the semicolon.\",{index:this.currToken[m.FIELDS.START_POS]})},_.missingParenthesis=function(){return this.expected(\"opening parenthesis\",this.currToken[m.FIELDS.START_POS])},_.missingSquareBracket=function(){return this.expected(\"opening square bracket\",this.currToken[m.FIELDS.START_POS])},_.unexpected=function(){return this.error(\"Unexpected '\"+this.content()+\"'. Escaping special characters with \\\\ may help.\",this.currToken[m.FIELDS.START_POS])},_.namespace=function(){var e=this.prevToken&&this.content(this.prevToken)||!0;return this.nextToken[m.FIELDS.TYPE]===y.word?(this.position++,this.word(e)):this.nextToken[m.FIELDS.TYPE]===y.asterisk?(this.position++,this.universal(e)):void 0},_.nesting=function(){if(this.nextToken&&\"|\"===this.content(this.nextToken))return void this.position++;var e=this.currToken;this.newNode(new g.default({value:this.content(),source:O(e),sourceIndex:e[m.FIELDS.START_POS]})),this.position++},_.parentheses=function(){var e=this.current.last,t=1;if(this.position++,e&&e.type===b.PSEUDO){var n=new i.default({source:{start:E(this.tokens[this.position-1])}}),r=this.current;for(e.append(n),this.current=n;this.position<this.tokens.length&&t;)this.currToken[m.FIELDS.TYPE]===y.openParenthesis&&t++,this.currToken[m.FIELDS.TYPE]===y.closeParenthesis&&t--,t?this.parse():(this.current.source.end=T(this.currToken),this.current.parent.source.end=T(this.currToken),this.position++);this.current=r}else{for(var o,s=this.currToken,a=\"(\";this.position<this.tokens.length&&t;)this.currToken[m.FIELDS.TYPE]===y.openParenthesis&&t++,this.currToken[m.FIELDS.TYPE]===y.closeParenthesis&&t--,o=this.currToken,a+=this.parseParenthesisToken(this.currToken),this.position++;e?e.appendToPropertyAndEscape(\"value\",a,a):this.newNode(new l.default({value:a,source:x(s[m.FIELDS.START_LINE],s[m.FIELDS.START_COL],o[m.FIELDS.END_LINE],o[m.FIELDS.END_COL]),sourceIndex:s[m.FIELDS.START_POS]}))}if(t)return this.expected(\"closing parenthesis\",this.currToken[m.FIELDS.START_POS])},_.pseudo=function(){for(var e=this,t=\"\",n=this.currToken;this.currToken&&this.currToken[m.FIELDS.TYPE]===y.colon;)t+=this.content(),this.position++;return this.currToken?this.currToken[m.FIELDS.TYPE]!==y.word?this.expected([\"pseudo-class\",\"pseudo-element\"],this.currToken[m.FIELDS.START_POS]):void this.splitWord(!1,(function(r,o){t+=r,e.newNode(new d.default({value:t,source:N(n,e.currToken),sourceIndex:n[m.FIELDS.START_POS]})),o>1&&e.nextToken&&e.nextToken[m.FIELDS.TYPE]===y.openParenthesis&&e.error(\"Misplaced parenthesis.\",{index:e.nextToken[m.FIELDS.START_POS]})})):this.expected([\"pseudo-class\",\"pseudo-element\"],this.position-1)},_.space=function(){var e=this.content();0===this.position||this.prevToken[m.FIELDS.TYPE]===y.comma||this.prevToken[m.FIELDS.TYPE]===y.openParenthesis||this.current.nodes.every((function(e){return\"comment\"===e.type}))?(this.spaces=this.optionalSpace(e),this.position++):this.position===this.tokens.length-1||this.nextToken[m.FIELDS.TYPE]===y.comma||this.nextToken[m.FIELDS.TYPE]===y.closeParenthesis?(this.current.last.spaces.after=this.optionalSpace(e),this.position++):this.combinator()},_.string=function(){var e=this.currToken;this.newNode(new l.default({value:this.content(),source:O(e),sourceIndex:e[m.FIELDS.START_POS]})),this.position++},_.universal=function(e){var t=this.nextToken;if(t&&\"|\"===this.content(t))return this.position++,this.namespace();var n=this.currToken;this.newNode(new p.default({value:this.content(),source:O(n),sourceIndex:n[m.FIELDS.START_POS]}),e),this.position++},_.splitWord=function(e,t){for(var n=this,r=this.nextToken,o=this.content();r&&~[y.dollar,y.caret,y.equals,y.word].indexOf(r[m.FIELDS.TYPE]);){this.position++;var i=this.content();if(o+=i,i.lastIndexOf(\"\\\\\")===i.length-1){var a=this.nextToken;a&&a[m.FIELDS.TYPE]===y.space&&(o+=this.requiredSpace(this.content(a)),this.position++)}r=this.nextToken}var l=M(o,\".\").filter((function(e){return\"\\\\\"!==o[e-1]})),d=M(o,\"#\").filter((function(e){return\"\\\\\"!==o[e-1]})),h=M(o,\"#{\");h.length&&(d=d.filter((function(e){return!~h.indexOf(e)})));var p=(0,v.default)(function(){var e=Array.prototype.concat.apply([],arguments);return e.filter((function(t,n){return n===e.indexOf(t)}))}([0].concat(l,d)));p.forEach((function(r,i){var a,h=p[i+1]||o.length,f=o.slice(r,h);if(0===i&&t)return t.call(n,f,p.length);var g=n.currToken,v=g[m.FIELDS.START_POS]+p[i],y=x(g[1],g[2]+r,g[3],g[2]+(h-1));if(~l.indexOf(r)){var b={value:f.slice(1),source:y,sourceIndex:v};a=new s.default(A(b,\"value\"))}else if(~d.indexOf(r)){var _={value:f.slice(1),source:y,sourceIndex:v};a=new u.default(A(_,\"value\"))}else{var w={value:f,source:y,sourceIndex:v};A(w,\"value\"),a=new c.default(w)}n.newNode(a,e),e=null})),this.position++},_.word=function(e){var t=this.nextToken;return t&&\"|\"===this.content(t)?(this.position++,this.namespace()):this.splitWord(e)},_.loop=function(){for(;this.position<this.tokens.length;)this.parse(!0);return this.current._inferEndPosition(),this.root},_.parse=function(e){switch(this.currToken[m.FIELDS.TYPE]){case y.space:this.space();break;case y.comment:this.comment();break;case y.openParenthesis:this.parentheses();break;case y.closeParenthesis:e&&this.missingParenthesis();break;case y.openSquare:this.attribute();break;case y.dollar:case y.caret:case y.equals:case y.word:this.word();break;case y.colon:this.pseudo();break;case y.comma:this.comma();break;case y.asterisk:this.universal();break;case y.ampersand:this.nesting();break;case y.slash:case y.combinator:this.combinator();break;case y.str:this.string();break;case y.closeSquare:this.missingSquareBracket();case y.semicolon:this.missingBackslash();default:this.unexpected()}},_.expected=function(e,t,n){if(Array.isArray(e)){var r=e.pop();e=e.join(\", \")+\" or \"+r}var o=/^[aeiou]/.test(e[0])?\"an\":\"a\";return n?this.error(\"Expected \"+o+\" \"+e+', found \"'+n+'\" instead.',{index:t}):this.error(\"Expected \"+o+\" \"+e+\".\",{index:t})},_.requiredSpace=function(e){return this.options.lossy?\" \":e},_.optionalSpace=function(e){return this.options.lossy?\"\":e},_.lossySpace=function(e,t){return this.options.lossy?t?\" \":\"\":e},_.parseParenthesisToken=function(e){var t=this.content(e);return e[m.FIELDS.TYPE]===y.space?this.requiredSpace(t):t},_.newNode=function(e,t){return t&&(/^ +$/.test(t)&&(this.options.lossy||(this.spaces=(this.spaces||\"\")+t),t=!0),e.namespace=t,A(e,\"namespace\")),this.spaces&&(e.spaces.before=this.spaces,this.spaces=\"\"),this.current.append(e)},_.content=function(e){return void 0===e&&(e=this.currToken),this.css.slice(e[m.FIELDS.START_POS],e[m.FIELDS.END_POS])},_.locateNextMeaningfulToken=function(e){void 0===e&&(e=this.position+1);for(var t=e;t<this.tokens.length;){if(!C[this.tokens[t][m.FIELDS.TYPE]])return t;t++}return-1},t=e,(n=[{key:\"currToken\",get:function(){return this.tokens[this.position]}},{key:\"nextToken\",get:function(){return this.tokens[this.position+1]}},{key:\"prevToken\",get:function(){return this.tokens[this.position-1]}}])&&I(t.prototype,n),r&&I(t,r),e}();t.default=P,e.exports=t.default}));Re(bt);var _t=Fe((function(e,t){t.__esModule=!0,t.default=void 0;var n,r=(n=bt)&&n.__esModule?n:{default:n};var o=function(){function e(e,t){this.func=e||function(){},this.funcRes=null,this.options=t}var t=e.prototype;return t._shouldUpdateSelector=function(e,t){return void 0===t&&(t={}),!1!==Object.assign({},this.options,t).updateSelector&&\"string\"!=typeof e},t._isLossy=function(e){return void 0===e&&(e={}),!1===Object.assign({},this.options,e).lossless},t._root=function(e,t){return void 0===t&&(t={}),new r.default(e,this._parseOptions(t)).root},t._parseOptions=function(e){return{lossy:this._isLossy(e)}},t._run=function(e,t){var n=this;return void 0===t&&(t={}),new Promise((function(r,o){try{var i=n._root(e,t);Promise.resolve(n.func(i)).then((function(r){var o=void 0;return n._shouldUpdateSelector(e,t)&&(o=i.toString(),e.selector=o),{transform:r,root:i,string:o}})).then(r,o)}catch(e){return void o(e)}}))},t._runSync=function(e,t){void 0===t&&(t={});var n=this._root(e,t),r=this.func(n);if(r&&\"function\"==typeof r.then)throw new Error(\"Selector processor returned a promise to a synchronous call.\");var o=void 0;return t.updateSelector&&\"string\"!=typeof e&&(o=n.toString(),e.selector=o),{transform:r,root:n,string:o}},t.ast=function(e,t){return this._run(e,t).then((function(e){return e.root}))},t.astSync=function(e,t){return this._runSync(e,t).root},t.transform=function(e,t){return this._run(e,t).then((function(e){return e.transform}))},t.transformSync=function(e,t){return this._runSync(e,t).transform},t.process=function(e,t){return this._run(e,t).then((function(e){return e.string||e.root.toString()}))},t.processSync=function(e,t){var n=this._runSync(e,t);return n.string||n.root.toString()},e}();t.default=o,e.exports=t.default}));Re(_t);var wt=Fe((function(e,t){t.__esModule=!0,t.universal=t.tag=t.string=t.selector=t.root=t.pseudo=t.nesting=t.id=t.comment=t.combinator=t.className=t.attribute=void 0;var n=f(ht),r=f(rt),o=f(ft),i=f(ot),s=f(it),a=f(gt),u=f(ct),c=f(Je),l=f(Xe),d=f(ut),h=f(at),p=f(pt);function f(e){return e&&e.__esModule?e:{default:e}}t.attribute=function(e){return new n.default(e)};t.className=function(e){return new r.default(e)};t.combinator=function(e){return new o.default(e)};t.comment=function(e){return new i.default(e)};t.id=function(e){return new s.default(e)};t.nesting=function(e){return new a.default(e)};t.pseudo=function(e){return new u.default(e)};t.root=function(e){return new c.default(e)};t.selector=function(e){return new l.default(e)};t.string=function(e){return new d.default(e)};t.tag=function(e){return new h.default(e)};t.universal=function(e){return new p.default(e)}}));Re(wt),wt.universal,wt.tag,wt.string,wt.selector,wt.root,wt.pseudo,wt.nesting,wt.id,wt.comment,wt.combinator,wt.className,wt.attribute;var St=Fe((function(e,t){var n;t.__esModule=!0,t.isNode=o,t.isPseudoElement=y,t.isPseudoClass=function(e){return h(e)&&!y(e)},t.isContainer=function(e){return!(!o(e)||!e.walk)},t.isNamespace=function(e){return s(e)||v(e)},t.isUniversal=t.isTag=t.isString=t.isSelector=t.isRoot=t.isPseudo=t.isNesting=t.isIdentifier=t.isComment=t.isCombinator=t.isClassName=t.isAttribute=void 0;var r=((n={})[Ye.ATTRIBUTE]=!0,n[Ye.CLASS]=!0,n[Ye.COMBINATOR]=!0,n[Ye.COMMENT]=!0,n[Ye.ID]=!0,n[Ye.NESTING]=!0,n[Ye.PSEUDO]=!0,n[Ye.ROOT]=!0,n[Ye.SELECTOR]=!0,n[Ye.STRING]=!0,n[Ye.TAG]=!0,n[Ye.UNIVERSAL]=!0,n);function o(e){return\"object\"==typeof e&&r[e.type]}function i(e,t){return o(t)&&t.type===e}var s=i.bind(null,Ye.ATTRIBUTE);t.isAttribute=s;var a=i.bind(null,Ye.CLASS);t.isClassName=a;var u=i.bind(null,Ye.COMBINATOR);t.isCombinator=u;var c=i.bind(null,Ye.COMMENT);t.isComment=c;var l=i.bind(null,Ye.ID);t.isIdentifier=l;var d=i.bind(null,Ye.NESTING);t.isNesting=d;var h=i.bind(null,Ye.PSEUDO);t.isPseudo=h;var p=i.bind(null,Ye.ROOT);t.isRoot=p;var f=i.bind(null,Ye.SELECTOR);t.isSelector=f;var g=i.bind(null,Ye.STRING);t.isString=g;var v=i.bind(null,Ye.TAG);t.isTag=v;var m=i.bind(null,Ye.UNIVERSAL);function y(e){return h(e)&&e.value&&(e.value.startsWith(\"::\")||\":before\"===e.value.toLowerCase()||\":after\"===e.value.toLowerCase())}t.isUniversal=m}));Re(St),St.isNode,St.isPseudoElement,St.isPseudoClass,St.isContainer,St.isNamespace,St.isUniversal,St.isTag,St.isString,St.isSelector,St.isRoot,St.isPseudo,St.isNesting,St.isIdentifier,St.isComment,St.isCombinator,St.isClassName,St.isAttribute;var It=Fe((function(e,t){t.__esModule=!0,Object.keys(Ye).forEach((function(e){\"default\"!==e&&\"__esModule\"!==e&&(e in t&&t[e]===Ye[e]||(t[e]=Ye[e]))})),Object.keys(wt).forEach((function(e){\"default\"!==e&&\"__esModule\"!==e&&(e in t&&t[e]===wt[e]||(t[e]=wt[e]))})),Object.keys(St).forEach((function(e){\"default\"!==e&&\"__esModule\"!==e&&(e in t&&t[e]===St[e]||(t[e]=St[e]))}))}));Re(It);var kt,Ct=Re(Fe((function(e,t){t.__esModule=!0,t.default=void 0;var n,r=(n=_t)&&n.__esModule?n:{default:n},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!=typeof e&&\"function\"!=typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var s=r?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(n,o,s):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(It);function i(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}var s=function(e){return new r.default(e)};Object.assign(s,o),delete s.__esModule;var a=s;t.default=a,e.exports=t.default})));function Et(e,t){var n=e.matches||e.webkitMatchesSelector;if(n)try{return n.call(e,t)}catch(e){}return!1}function Tt(e){return function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}([],e,!0).sort((function(e,t){return xt(e)-xt(t)}))}function xt(e){return 1===e.matchingSelectors.length?Nt(e.rule.selectorList.selectors[0].text):Bt(e.matchingSelectors.map((function(t){return e.rule.selectorList.selectors[t].text})))}!function(e){e[e.ClassA=65536]=\"ClassA\",e[e.ClassB=256]=\"ClassB\",e[e.ClassC=1]=\"ClassC\"}(kt||(kt={}));var Ot={};function Nt(e){if(\"string\"==typeof e&&Ot[e])return Ot[e];var t,n=0;return\"string\"==typeof e&&Ct((function(e){e.nodes&&e.nodes.length&&(t=e.nodes[0])})).process(e),t.nodes&&t.nodes.length&&t.nodes.forEach((function(e){n=Dt(n,function(e){switch(e.type){case\"id\":return kt.ClassA;case\"pseudo\":switch((e.value.match(/^:+(\\w+)/)||[])[1]){case\"is\":case\"match\":case\"not\":return Bt(e.nodes);case\"where\":return 0;case\"nth-child\":case\"nth-last-child\":return Dt(kt.ClassB,e.nodes?Bt(e.nodes):0);case\"before\":case\"after\":return kt.ClassC}return kt.ClassB;case\"class\":case\"attribute\":return kt.ClassB;case\"tag\":return kt.ClassC}return 0}(e))})),\"string\"==typeof e&&(Ot[e]=n),n}var At;function Mt(e){return 16711680&e}function Pt(e){return 65280&e}function Lt(e){return 255&e}function Dt(e,t){var n=e,r=Mt(t);!function(e){return-16711681&e}(Mt(n)+r)?n+=r:n=function(e){return 16711680|e}(n);var o=Pt(t);!function(e){return-65281&e}(Pt(n)+o)?n+=o:n=function(e){return 65280|e}(n);var i=Lt(t);return!function(e){return-256&e}(Lt(n)+i)?n+=i:n=function(e){return 255|e}(n),n}function Bt(e){return Math.max.apply(Math,e.map((function(e){return Nt(e)})))}function Rt(e,t){var n;if(\"decl\"===e.type)n={disabled:!1,important:Boolean(e.important),name:e.prop,value:Ft(e)};else if(\"comment\"===e.type){var r=void 0;try{var o=Ue.parse(e.text);o.first&&\"decl\"===o.first.type&&(r=o.first)}catch(e){}if(!r)return;n={disabled:!0,name:r.prop,value:Ft(r)}}return n&&t&&(n.range={endColumn:e.source.end.column,endLine:e.source.end.line-1,startColumn:e.source.start.column-1,startLine:e.source.start.line-1},n.text=e.toString()),n}function Ft(e){return e.important?\"\".concat(e.value).concat(e.raws.important||\" !important\"):e.value}function jt(e,t){var n=e.nodes,r=void 0===n?[]:n,o=e.first,i=e.last,s=r[0],a=0;s&&s.raws.before&&(a=s.raws.before.split(\"\\n\").length-1);var u=[];r.forEach((function(e){var n=Rt(e,t);n&&u.push(n)}));var c={cssProperties:u,shorthandEntries:[]};return t&&(c.styleSheetId=t,c.cssText=Ue.root({nodes:r,raws:{semicolon:e.raws.semicolon}}).toString(),c.range={endColumn:i?i.source.end.column:0,endLine:i?i.source.end.line-1:0,startColumn:a?0:o?o.source.start.column-1:0,startLine:o?o.source.start.line-1-a:0}),c}function Ut(e,t){var n;try{n=Ue.parse(e)}catch(e){return void console.warn(e)}var r=[];(n.nodes||[]).forEach((function(e){var n=Rt(e,t);n&&r.push(n)}));var o={cssProperties:r,shorthandEntries:[]};return t&&(o.styleSheetId=t,o.cssText=e,o.range={endColumn:e.length,endLine:0,startColumn:0,startLine:0}),o}function zt(e,t,n,r){var o=[];return e.selectors.length>1?e.selectors.forEach((function(e,n){(r?r.test(e)&&Et(t,e.replace(r,\"\")):Et(t,e))&&o.push(n)})):o.push(0),{matchingSelectors:o,rule:{origin:\"regular\",selectorList:{selectors:e.selectors.map((function(t){return{range:n?{endColumn:e.source.start.column+e.selector.length-1,endLine:e.source.start.line-1,startColumn:e.source.start.column-1,startLine:e.source.start.line-1}:void 0,text:t}})),text:e.selector},style:jt(e,n),styleSheetId:n}}}var Ht,qt=new Map,Zt=/::?before\\b/,Wt=/::?after\\b/;function Gt(){if(!qt.size)for(var e=0,t=Array.from(document.styleSheets);e<t.length;e++){var n=t[e];if(!n.href&&n.ownerNode&&n.ownerNode.hasAttribute(\"data-page-path\"))try{var r=n.ownerNode.textContent,o=Ue.parse(r),i=\"1000.\".concat(qt.size);qt.set(i,{ownerNode:n.ownerNode,postCSSRoot:o,styleSheetId:i})}catch(e){console.warn(e)}}return qt}function Yt(e){return qt.get(e)}function Vt(e){var t=qt.get(e).ownerNode;if(t)try{qt.set(e,{ownerNode:t,postCSSRoot:Ue.parse(t.textContent),styleSheetId:e})}catch(n){qt.set(e,{ownerNode:t,postCSSRoot:Ue.parse(\"\"),styleSheetId:e}),console.warn(n)}}function Jt(e){var t=e.postCSSRoot,n=e.ownerNode,r=e.styleSheetId;return{disabled:!1,endColumn:t.last?t.last.source.end.column-1:0,endLine:t.last?t.last.source.end.line-1:0,frameId:\"MOCK_FRAME_ID\",isInline:!0,length:n.textContent.length,origin:\"regular\",sourceURL:\"\",startColumn:t.first?t.first.source.start.column-1:0,startLine:t.first?t.first.source.start.line-1:0,styleSheetId:r,title:\"\"}}function Xt(e){Gt().forEach((function(t,n){(t.postCSSRoot.nodes||[]).forEach((function(t){\"rule\"===t.type&&e(t,n)}))}))}function Qt(e){return Ut(e.getInlineStyle()||\"\",e.inlineStyleSheetId)}function $t(e){Ht||(Ht=document.createElement(\"div\"));var t={};try{Ht.innerHTML=\"<div \".concat(e,\"></div>\");for(var n=Ht.firstChild.attributes,r=0,o=Array.from(n);r<o.length;r++){var i=o[r];t[i.name]=i.value}}catch(e){console.warn(e)}return t}function Kt(e,t,n){var r,o,i,s,a,u=Yt(e);if(u){var c;try{c=Ue.parse(n)}catch(e){return void console.warn(\"setStyleTexts4StyleSheet parse text error\",e)}var l=t.startLine,d=t.startColumn,h=((null===(o=null===(r=c.first)||void 0===r?void 0:r.raws)||void 0===o?void 0:o.before)||\"\").split(\"\\n\").length-1;h&&(l+=h,d=(null===(a=null===(s=null===(i=c.first)||void 0===i?void 0:i.source)||void 0===s?void 0:s.start)||void 0===a?void 0:a.column)||1);var p,f=u.postCSSRoot,g=u.ownerNode;return(f.nodes||[]).some((function(t,n){var r;if(\"rule\"!==t.type)return!1;var o=null===(r=t.first)||void 0===r?void 0:r.source;if(o&&o.start.line===l&&o.start.column===d){try{t.nodes=c.nodes,t.raws.semicolon=c.raws.semicolon,en(g,f.toString()),Vt(e);var i=(Yt(e)||{}).postCSSRoot;p=jt(i.nodes[n],e)}catch(e){console.warn(e)}return!0}})),p}}function en(e,t){return Object.getOwnPropertyDescriptor(Node.prototype,\"textContent\").set.call(e,t)}function tn(e){var t={matchedCSSRules:[],pseudoElements:[]},n=[],r=[],o=function(e){var t=e.node.getAttribute(\"style\");if(t)return Ut(t)}(e);o&&(t.inlineStyle=o);var i=e.node,s=function(e,o){var s=e.selector;Et(i,s)?t.matchedCSSRules.push(zt(e,i,o)):(Zt.test(s)&&Et(i,s.replace(Zt,\"\"))&&n.push(zt(e,i,o,Zt)),Wt.test(s)&&Et(i,s.replace(Wt,\"\"))&&r.push(zt(e,i,o,Wt)))};At&&(At.postCSSRoot.nodes||[]).forEach((function(e){\"rule\"===e.type&&s(e,void 0)})),Xt((function(e,t){s(e,t)}));try{t.matchedCSSRules=Tt(t.matchedCSSRules),n.length&&t.pseudoElements.push({matches:Tt(n),pseudoType:\"before\"}),r.length&&t.pseudoElements.push({matches:Tt(r),pseudoType:\"after\"})}catch(e){}return t}var nn=Object.freeze({__proto__:null,enable:function(e,t,n){n(null,{})},getMatchedStylesForNode:function(e,t,n){var r=t.nodeId,o=e.nodeId2ZNode.get(r),i=e.nodeId2DOMNode.get(r),s=e.nodeId2PseudoElement.get(r),a={matchedCSSRules:[]};o&&o.nodeType===P.Element?a=function(e){var t={matchedCSSRules:[],pseudoElements:[]},n=[],r=[],o=Qt(e);if(o&&(t.inlineStyle=o),e.dom){var i=e.dom.node;Xt((function(e,o){var s=e.selector;Et(i,s)?t.matchedCSSRules.push(zt(e,i,o)):(Zt.test(s)&&Et(i,s.replace(Zt,\"\"))&&n.push(zt(e,i,o,Zt)),Wt.test(s)&&Et(i,s.replace(Wt,\"\"))&&r.push(zt(e,i,o,Wt)))}))}try{t.matchedCSSRules=Tt(t.matchedCSSRules),n.length&&t.pseudoElements.push({matches:Tt(n),pseudoType:\"before\"}),r.length&&t.pseudoElements.push({matches:Tt(r),pseudoType:\"after\"})}catch(e){}return t}(o):i&&1===i.nodeType?a=tn(i):s&&(a=function(e,t){var n={matchedCSSRules:[]},r=new RegExp(\"::?\".concat(t,\"\\\\b\"));Xt((function(t,o){r.test(t.selector)&&Et(e,t.selector.replace(r,\"\"))&&n.matchedCSSRules.push(zt(t,e,o,r))}));try{n.matchedCSSRules=Tt(n.matchedCSSRules)}catch(e){}return n}(s.root,s.pseudoType)),n(null,a)},setStyleTexts:function(e,t,n){var r=[];t.edits.forEach((function(t){var n=t.styleSheetId;if(0===n.indexOf(\"2000.\")){var o=Number(n.replace(\"2000.\",\"\")),i=e.nodeId2ZNode.get(o);if(i&&i.nodeType===P.Element){i.updateInlineStyle(t.text);var s=Qt(i);s&&r.push(s),e.getZRuntimeHelper().X(i.node,i.getLinkedContext(),i.getClassName()||\"\",!1,i.getInlineStyle(),!0,i.getProperties(),{},2),e.flushUpdatedQueue()}}else{t.range.startLine+=1,t.range.startColumn+=1;var a=Kt(n,t.range,t.text);a&&r.push(a)}})),n(null,{styles:r})},getComputedStyleForNode:function(e,t,n){var r,o=t.nodeId,i=e.nodeId2ZNode.get(o),s=e.nodeId2DOMNode.get(o),a=e.nodeId2PseudoElement.get(o),u=[];if(i&&i.nodeType===P.Element){var c=i.getPlatformRootDOM();c.nodeType===Node.ELEMENT_NODE&&(r=getComputedStyle(c))}else s&&1===s.nodeType?r=getComputedStyle(s.node):a&&(r=getComputedStyle(a.root,a.pseudoType));r&&(u=Array.from(r).map((function(e){return{name:e,value:r[e]}}))),n(null,{computedStyle:u})},getInlineStylesForNode:function(e,t,n){var r,o=t.nodeId,i=e.nodeId2ZNode.get(o);i&&i.nodeType===P.Element&&(r=Qt(i)),r?n(null,{inlineStyle:r}):n(-32e3)},getStyleSheetText:function(e,t,n){var r=\"\",o=Yt(t.styleSheetId);o&&(r=o.ownerNode.textContent),n(null,{text:r})}}),rn=function(e,t,n){n(null,{nodeIds:t.backendNodeIds})},on=function(e,t,n){var r=t.nodeId,o=e.nodeId2ZNode.get(r),i=e.shadowRootNodeId2ZNode.get(r),s=e.nodeId2DOMNode.get(r);if(o){var a=o.serialize(1);a.children&&e.sendMessage(\"DOM.setChildNodes\",{nodes:a.children,parentId:t.nodeId})}else if(i)if(i.nodeType===P.Element){var u=i.getShadowRootDebugNode().serialize(0);u&&e.sendMessage(\"DOM.setChildNodes\",{nodes:[u],parentId:r})}else e.sendMessage(\"DOM.setChildNodes\",{nodes:[],parentId:r});else if(s){var c=s.serialize(1);c.children&&e.sendMessage(\"DOM.setChildNodes\",{nodes:c.children,parentId:r})}n(null,{})};var sn=Object.freeze({__proto__:null,pushNodesByBackendIdsToFrontend:rn,requestChildNodes:on,enable:function(e,t,n){n(null,{})},getDocument:function(e,t,n){!function(e,t,n){e.resetZNodeActivatedState(),n(null,{root:e.getDocumentNode()})}(e,0,n),Gt().forEach((function(t){e.sendMessageWithPriority(\"CSS.styleSheetRemoved\",{styleSheetId:t.styleSheetId}),e.sendMessageWithPriority(\"CSS.styleSheetAdded\",{header:Jt(t)});var n=t.ownerNode;Object.getOwnPropertyDescriptor(n,\"textContent\")||Object.defineProperty(n,\"textContent\",{get:function(){return function(e){return Object.getOwnPropertyDescriptor(Node.prototype,\"textContent\").get.call(e)}(n)},set:function(r){var o=en(n,r),i=t.styleSheetId;return e.sendMessage(\"CSS.styleSheetRemoved\",{styleSheetId:i}),Vt(i),e.sendMessage(\"CSS.styleSheetAdded\",{header:Jt(t)}),o},configurable:!0})}))},markUndoableState:function(e,t,n){n(null,{})},setNodeName:function(e,t,n){n(-32e3)},setAttributesAsText:function(e,t,n){var r,o=t.nodeId,i=t.text,s=t.name,a=e.nodeId2ZNode.get(o);if(a&&a.nodeType===P.Element){var u=a,c=$t(i),l=u.getClassName(),d=!1,h=u.getInlineStyle(),p=!1;if(\"class\"===s&&c.class!==l&&(l=c.class,d=!0,u.updateClassName(l)),\"style\"===s&&c.style!==h&&(h=c.style,p=!0,u.updateInlineStyle(h)),d||p)return e.getZRuntimeHelper().X(u.node,u.getLinkedContext(),l||\"\",d,h||\"\",p,u.getProperties(),{},3),void e.flushUpdatedQueue();if(0===s.indexOf(\"data-\")){var f=s.replace(\"data-\",\"\"),g=u.getDataset().get(f),v=c[s];switch(typeof g){case\"number\":isNaN(Number(v))||(v=Number(v));break;case\"boolean\":\"true\"===v?v=!0:\"false\"===v&&(v=!1)}if(v!==g){var m=((r={})[f]=v,r);a.node.updateDatasetPartial(m),u.updateDataset(m)}}u.invalidate()}n(null,{})},setNodeValue:function(e,t,n){var r=t.nodeId,o=t.value,i=e.nodeId2ZNode.get(r);if(i&&i.nodeType===P.Text)return i.dom.node.textContent=o,n(null,{}),void e.sendMessage(\"DOM.characterDataModified\",{characterData:o,nodeId:r});n(-32e3,{})}});var an=Object.freeze({__proto__:null,enable:function(e,t,n){n(null,{})},hideHighlight:function(e,t,n){e.getOverlayManager().hidehighlight(),n(null,{})},highlightNode:function(e,t,n){var r=t.nodeId,o=t.highlightConfig,i=t.selector,s=e.nodeId2ZNode.get(r),a=e.nodeId2DOMNode.get(r);if(i)n(null,{});else{if(s){if(s.nodeType===P.Element)(u=s.getPlatformRootDOM()).nodeType===Node.ELEMENT_NODE&&e.getOverlayManager().highlightNode(s.getPlatformRootDOM(),o);else if(s.nodeType===P.Component){var u,c=s.getChildNodes();if(1===c.length&&c[0].nodeType===P.Element)(u=c[0].getPlatformRootDOM()).nodeType===Node.ELEMENT_NODE&&e.getOverlayManager().highlightNode(u,o)}}else a?1===a.nodeType&&e.getOverlayManager().highlightNode(a.node,o):e.getOverlayManager().hidehighlight();n(null,{})}},setInspectMode:function(e,t,n){var r=t.mode,o=t.highlightConfig;\"none\"===r?e.getOverlayManager().leaveInspectMode():e.getOverlayManager().enterInspectMode(o),n(null,{})}}),un=function(e,t,n){var r=t.nodeId,o=e.nodeId2ZNode.get(r);if(o&&o.nodeType===P.Component)return e.activatedCustomComponentId=o.nodeId,void n(void 0,{data:we(o.getData()).data,props:we(o.getProps()).data});e.activatedCustomComponentId=void 0,n(void 0,{})},cn=Object.freeze({__proto__:null,getComponentData:un}),ln=Object.freeze({__proto__:null,Elements:cn}),dn=Object.freeze({__proto__:null,CSS:nn,DOM:sn,Overlay:an,Tiny:ln});function hn(e,t){if(\"rgb\"===t){var n=e[0],r=e[1],o=e[2],i=e[3];return\"rgb(\".concat((255*n).toFixed(),\" \").concat((255*r).toFixed(),\" \").concat((255*o).toFixed()).concat(1===i?\"\":\" / \"+Math.round(100*i)/100,\")\")}if(\"hsl\"===t){var s=function(e){var t=e[0],n=e[1],r=e[2],o=e[3],i=Math.max(t,n,r),s=Math.min(t,n,r),a=i-s,u=i+s,c=.5*u;return[s===i?0:t===i?(1/6*(n-r)/a+1)%1:n===i?1/6*(r-t)/a+1/3:1/6*(t-n)/a+2/3,0===c||1===c?0:c<=.5?a/u:a/(2-u),c,o]}(e),a=s[0],u=s[1],c=s[2];i=s[3];return\"hsl(\".concat(Math.round(360*a),\"deg \").concat(Math.round(100*u),\" \").concat(Math.round(100*c)).concat(1===i?\"\":\" / \"+Math.round(100*i)/100,\")\")}throw new Error(\"NOT_REACHED\")}function pn(e,t,n){return e<t?e=t:e>n&&(e=n),e}function fn(e,t){var n=Math.pow(10,t);return Math.round(e*n)/n}function gn(e,t){var n,r,o,i,s,a=function(){s&&(s.innerHTML=\"\")};function u(e,t){var n=mn(\"div\",\"element-info\"),r=kn(n,\"div\",\"element-info-header\"),o=function(e){if(e.layoutObjectName&&e.layoutObjectName.endsWith(\"Grid\"))return\"grid\";if(e.layoutObjectName&&\"LayoutNGFlexibleBox\"===e.layoutObjectName)return\"flex\";return null}(e);o&&kn(r,\"div\",\"element-layout-type \".concat(o));var i=kn(r,\"div\",\"element-description monospace\");kn(i,\"span\",\"material-tag-name\").textContent=e.tagName;var s=kn(i,\"span\",\"material-node-id\");s.textContent=e.idValue?\"#\"+Cn(e.idValue,80):\"\",s.classList.toggle(\"hidden\",!e.idValue);var a=kn(i,\"span\",\"material-class-name\");s.textContent.length<80&&(a.textContent=Cn(e.className||\"\",80-s.textContent.length)),a.classList.toggle(\"hidden\",!e.className);var u=kn(r,\"div\",\"dimensions\");kn(u,\"span\",\"material-node-width\").textContent=String(Math.round(100*e.nodeWidth)/100),En(u,\"×\"),kn(u,\"span\",\"material-node-height\").textContent=String(Math.round(100*e.nodeHeight)/100);var c,l=e.style||{},d=l.color;d&&\"#00000000\"!==d&&b(\"Color\",d,t);var h=l[\"font-family\"],p=l[\"font-size\"];h&&\"0px\"!==p&&y(\"Font\",\"\".concat(p,\" \").concat(h));var f=l[\"background-color\"];f&&\"#00000000\"!==f&&b(\"Background\",f,t);var g=l.margin;g&&\"0px\"!==g&&y(\"Margin\",g);var v=l.padding;function m(e,t,r){c||(c=kn(n,\"div\",\"element-info-body\"));var o=kn(c,\"div\",\"element-info-row\");return t&&o.classList.add(t),kn(o,\"div\",\"element-info-name\").textContent=e,kn(o,\"div\",\"element-info-gap\"),kn(o,\"div\",r||\"\")}function y(e,t){En(m(e,\"\",\"element-info-value-text\"),t)}function b(e,t,n){var r=m(e,\"\",\"element-info-value-color\"),o=kn(r,\"div\",\"color-swatch\");kn(o,\"div\",\"color-swatch-inner\").style.backgroundColor=t,En(r,function(e,t){if(\"rgb\"===t||\"hsl\"===t)return hn(function(e){return(e.match(/#(\\w\\w)(\\w\\w)(\\w\\w)(\\w\\w)/)||[]).slice(1).map((function(e){return parseInt(e,16)/255}))}(e),t);if(e.endsWith(\"FF\"))return e.substr(0,7);return e}(t,n))}return v&&\"0px\"!==v&&y(\"Padding\",v),n}var c=function(e){var t,n,r,o;if(a(),!e.elementInfo||0!==Object.keys(e.elementInfo).length){var i=null!==(t=e.elementInfo.nodeLeft)&&void 0!==t?t:Number.MAX_VALUE,c=null!==(n=e.elementInfo.nodeTop)&&void 0!==n?n:Number.MAX_VALUE,l=null!==(r=e.elementInfo.nodeLeft+e.elementInfo.nodeWidth)&&void 0!==r?r:-Number.MAX_VALUE,d=null!==(o=e.elementInfo.nodeTop+e.elementInfo.nodeHeight)&&void 0!==o?o:-Number.MAX_VALUE,h=kn(s,\"div\"),p=kn(h,\"div\",\"tooltip-content\"),f=u(e.elementInfo,e.colorFormat);p.appendChild(f);var g,v=fn(document.documentElement.clientWidth,4),m=fn(document.documentElement.clientHeight,4),y=p.offsetWidth,b=p.offsetHeight,_=v-2-10-16;if(l-i<36)g=.5*(i+l)-8;else{var w=i+10;g=w>12&&w<_?w:pn(12,w,l-10-16)}var S=g<12||g>_,I=g-10;I=pn(I,2,v-y-2);var k=c-8-b,C=!0;k<0?(k=Math.min(m-b,d+8),C=!1):c>m&&(k=m-8-b);var E=I>=i&&I+y<=l&&k>=c&&k+b<=d;!(I<l&&I+y>i&&k<d&&k+b>c)||E?(p.style.top=k+\"px\",p.style.left=I+\"px\",p.style.setProperty(\"--arrow-visibility\",S||E?\"hidden\":\"visible\"),S||(p.style.setProperty(\"--arrow\",C?\"var(--arrow-down)\":\"var(--arrow-up)\"),p.style.setProperty(\"--shadow-direction\",C?\"var(--shadow-up)\":\"var(--shadow-down)\"),p.style.setProperty(\"--arrow-top\",(C?b-2:-8)+\"px\"),p.style.setProperty(\"--arrow-left\",g-I+\"px\"))):p.style.display=\"none\"}};return{c:function(){n=mn(\"div\"),r=mn(\"div\"),o=mn(\"div\"),i=mn(\"div\"),(s=mn(\"div\")).id=\"tinybugme-tooltip-container\",this.h()},h:function(){yn(i,\"background-color\",t.content.color),yn(i,\"box-sizing\",\"border-box\"),yn(i,\"height\",\"100%\"),yn(i,\"width\",\"100%\"),yn(o,\"border-color\",t.padding.color),yn(o,\"border-bottom-width\",t.padding.bottom),yn(o,\"border-left-width\",t.padding.left),yn(o,\"border-right-width\",t.padding.right),yn(o,\"border-top-width\",t.padding.top),yn(o,\"border-style\",\"solid\"),yn(o,\"box-sizing\",\"border-box\"),yn(o,\"height\",\"100%\"),yn(o,\"width\",\"100%\"),yn(r,\"border-color\",t.border.color),yn(r,\"border-bottom-width\",t.border.bottom),yn(r,\"border-left-width\",t.border.left),yn(r,\"border-right-width\",t.border.right),yn(r,\"border-top-width\",t.border.top),yn(r,\"border-style\",\"solid\"),yn(r,\"box-sizing\",\"border-box\"),yn(r,\"height\",t.rect.height),yn(r,\"width\",t.rect.width),yn(n,\"border-color\",t.margin.color),yn(n,\"border-bottom-width\",t.margin.bottom),yn(n,\"border-left-width\",t.margin.left),yn(n,\"border-right-width\",t.margin.right),yn(n,\"border-top-width\",t.margin.top),yn(n,\"border-style\",\"solid\"),yn(n,\"box-sizing\",\"border-box\"),yn(n,\"left\",t.rect.left),yn(n,\"position\",\"fixed\"),yn(n,\"top\",t.rect.top),yn(n,\"z-index\",\"999999\"),yn(n,\"display\",t.show?\"block\":\"none\"),yn(n,\"pointer-events\",\"none\"),c(t)},m:function(e,t){bn(n,e,t),_n(r,n),_n(o,r),_n(i,o),bn(s,e,t)},p:function(e,t){e.content&&yn(i,\"background-color\",t.content.color),e.padding&&(yn(o,\"border-color\",t.padding.color),yn(o,\"border-bottom-width\",t.padding.bottom),yn(o,\"border-left-width\",t.padding.left),yn(o,\"border-right-width\",t.padding.right),yn(o,\"border-top-width\",t.padding.top)),e.border&&(yn(r,\"border-color\",t.border.color),yn(r,\"border-bottom-width\",t.border.bottom),yn(r,\"border-left-width\",t.border.left),yn(r,\"border-right-width\",t.border.right),yn(r,\"border-top-width\",t.border.top)),e.rect&&(yn(r,\"height\",t.rect.height),yn(r,\"width\",t.rect.width)),e.margin&&(yn(n,\"border-color\",t.margin.color),yn(n,\"border-bottom-width\",t.margin.bottom),yn(n,\"border-left-width\",t.margin.left),yn(n,\"border-right-width\",t.margin.right),yn(n,\"border-top-width\",t.margin.top)),e.rect&&(yn(n,\"left\",t.rect.left),yn(n,\"top\",t.rect.top)),e.elementInfo&&c(t),e.show&&(yn(n,\"display\",t.show?\"block\":\"none\"),t.show||a())},u:function(){!function(e){e.parentNode.removeChild(e)}(n)},d:wn}}var vn=function(){function e(e){this.options=e,this._handlers=Object.create(null),this._bind=e._bind,this.options=e,this.root=e.root||this,this.store=this.root.store||e.store,this._state=Sn({},e.data),this._fragment=gn(0,this._state),e.target&&(this._fragment.c(),this._mount(e.target,e.anchor));for(var t=0,n=['\\nbody {\\n --arrow-width: 15px;\\n --arrow-height: 8px;\\n --shadow-up: 5px;\\n --shadow-down: -5px;\\n --shadow-direction: var(--shadow-up);\\n --arrow-down: polygon(0 0, 100% 0, 50% 100%);\\n --arrow-up: polygon(50% 0, 0 100%, 100% 100%);\\n}\\n\\n#tinybugme-tooltip-container {\\n margin: 0px;\\n padding: 0px;\\n font-size: 13px;\\n inset: 0px;\\n z-index: 100000000000;\\n}\\n\\n#tinybugme-tooltip-container .px {\\n color: rgb(128 128 128);\\n}\\n\\n#tinybugme-tooltip-container #element-title {\\n position: absolute;\\n z-index: 100000000001;\\n}\\n/* Material */\\n\\n#tinybugme-tooltip-container .tooltip-content {\\n position: absolute;\\n user-select: none;\\n background-color: #fff;\\n padding: 5px 8px;\\n border: 1px solid #fff;\\n border-radius: 3px;\\n box-sizing: border-box;\\n min-width: 100px;\\n max-width: min(300px, 100% - 4px);\\n z-index: 100000000002;\\n background-clip: padding-box;\\n will-change: transform;\\n text-rendering: optimizeLegibility;\\n pointer-events: none;\\n filter: drop-shadow(0 2px 4px rgb(0 0 0 / 35%));\\n}\\n\\n#tinybugme-tooltip-container .tooltip-content::after {\\n content: \"\";\\n background: #fff;\\n width: var(--arrow-width);\\n height: var(--arrow-height);\\n clip-path: var(--arrow);\\n position: absolute;\\n top: var(--arrow-top);\\n left: var(--arrow-left);\\n visibility: var(--arrow-visibility);\\n}\\n\\n#tinybugme-tooltip-container .element-info-section {\\n margin-top: 12px;\\n margin-bottom: 6px;\\n}\\n\\n#tinybugme-tooltip-container .section-name {\\n color: #333;\\n font-weight: 500;\\n font-size: 10px;\\n text-transform: uppercase;\\n letter-spacing: 0.05em;\\n line-height: 12px;\\n}\\n\\n#tinybugme-tooltip-container .element-info {\\n display: flex;\\n flex-direction: column;\\n}\\n\\n#tinybugme-tooltip-container .element-info-header {\\n display: flex;\\n align-items: center;\\n}\\n\\n#tinybugme-tooltip-container .element-info-body {\\n display: flex;\\n flex-direction: column;\\n padding-top: 2px;\\n margin-top: 2px;\\n}\\n\\n#tinybugme-tooltip-container .element-info-row {\\n display: flex;\\n line-height: 19px;\\n}\\n\\n#tinybugme-tooltip-container .separator-container {\\n display: flex;\\n align-items: center;\\n flex: auto;\\n margin-left: 7px;\\n}\\n\\n#tinybugme-tooltip-container .separator {\\n border-top: 1px solid #ddd;\\n width: 100%;\\n}\\n\\n#tinybugme-tooltip-container .element-info-name {\\n flex-shrink: 0;\\n color: #666;\\n}\\n\\n#tinybugme-tooltip-container .element-info-gap {\\n flex: auto;\\n}\\n\\n#tinybugme-tooltip-container .element-info-value-color {\\n display: flex;\\n color: rgb(48 57 66);\\n margin-left: 10px;\\n align-items: baseline;\\n}\\n\\n#tinybugme-tooltip-container .a11y-icon {\\n width: 16px;\\n height: 16px;\\n background-repeat: no-repeat;\\n display: inline-block;\\n}\\n\\n#tinybugme-tooltip-container .element-info-value-contrast {\\n display: flex;\\n align-items: center;\\n text-align: right;\\n color: rgb(48 57 66);\\n margin-left: 10px;\\n}\\n\\n#tinybugme-tooltip-container .element-info-value-contrast .a11y-icon {\\n margin-left: 8px;\\n}\\n\\n#tinybugme-tooltip-container .element-info-value-icon {\\n display: flex;\\n align-items: center;\\n}\\n\\n#tinybugme-tooltip-container .element-info-value-text {\\n text-align: right;\\n color: rgb(48 57 66);\\n margin-left: 10px;\\n align-items: baseline;\\n overflow: hidden;\\n text-overflow: ellipsis;\\n white-space: nowrap;\\n}\\n\\n#tinybugme-tooltip-container .color-swatch {\\n display: flex;\\n margin-right: 2px;\\n width: 10px;\\n height: 10px;\\n background-image: url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==\");\\n line-height: 10px;\\n}\\n\\n#tinybugme-tooltip-container .color-swatch-inner {\\n flex: auto;\\n border: 1px solid rgb(128 128 128 / 60%);\\n}\\n\\n#tinybugme-tooltip-container .element-layout-type {\\n margin-right: 10px;\\n width: 16px;\\n height: 16px;\\n}\\n\\n#tinybugme-tooltip-container .element-layout-type.grid {\\n background-image: url(\\'data:image/svg+xml,<svg width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><rect x=\"2.5\" y=\"2.5\" width=\"4\" height=\"4\" stroke=\"%231A73E8\"/><rect x=\"9.5\" y=\"2.5\" width=\"4\" height=\"4\" stroke=\"%231A73E8\"/><rect x=\"9.5\" y=\"9.5\" width=\"4\" height=\"4\" stroke=\"%231A73E8\"/><rect x=\"2.5\" y=\"9.5\" width=\"4\" height=\"4\" stroke=\"%231A73E8\"/></svg>\\');\\n}\\n\\n#tinybugme-tooltip-container .element-layout-type.flex {\\n background-image: url(\\'data:image/svg+xml,<svg fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 16 16\"><path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M1 3.5h8v3H1v-3zm-1 0a1 1 0 011-1h8a1 1 0 011 1v3a1 1 0 01-1 1H1a1 1 0 01-1-1v-3zm12 0h3v3h-3v-3zm-1 0a1 1 0 011-1h3a1 1 0 011 1v3a1 1 0 01-1 1h-3a1 1 0 01-1-1v-3zm-7 6H1v3h3v-3zm-3-1a1 1 0 00-1 1v3a1 1 0 001 1h3a1 1 0 001-1v-3a1 1 0 00-1-1H1zm6 4v-3h8v3H7zm-1-3a1 1 0 011-1h8a1 1 0 011 1v3a1 1 0 01-1 1H7a1 1 0 01-1-1v-3z\" fill=\"%231A73E8\"/></svg>\\');\\n}\\n\\n#tinybugme-tooltip-container .element-description {\\n flex: 1 1;\\n font-weight: bold;\\n word-wrap: break-word;\\n word-break: break-all;\\n}\\n\\n#tinybugme-tooltip-container .dimensions {\\n color: hsl(0deg 0% 45%);\\n text-align: right;\\n margin-left: 10px;\\n}\\n\\n#tinybugme-tooltip-container .material-node-width {\\n margin-right: 2px;\\n}\\n\\n#tinybugme-tooltip-container .material-node-height {\\n margin-left: 2px;\\n}\\n\\n#tinybugme-tooltip-container .material-tag-name {\\n /* Keep this in sync with inspectorSyntaxHighlight.css (--override-dom-tag-name-color) */\\n color: rgb(136 18 128);\\n}\\n\\n#tinybugme-tooltip-container .material-class-name,\\n.material-node-id {\\n /* Keep this in sync with inspectorSyntaxHighlight.css (.webkit-html-attribute-value) */\\n color: rgb(26 26 166);\\n}\\n\\n#tinybugme-tooltip-container .contrast-text {\\n width: 16px;\\n height: 16px;\\n text-align: center;\\n line-height: 16px;\\n margin-right: 8px;\\n border: 1px solid rgb(0 0 0 / 10%);\\n padding: 0 1px;\\n}\\n\\n#tinybugme-tooltip-container .a11y-icon-not-ok {\\n background-image: url(\\'data:image/svg+xml,<svg fill=\"none\" viewBox=\"0 0 18 18\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"m9 1.5c-4.14 0-7.5 3.36-7.5 7.5s3.36 7.5 7.5 7.5 7.5-3.36 7.5-7.5-3.36-7.5-7.5-7.5zm0 13.5c-3.315 0-6-2.685-6-6 0-1.3875.4725-2.6625 1.2675-3.675l8.4075 8.4075c-1.0125.795-2.2875 1.2675-3.675 1.2675zm4.7325-2.325-8.4075-8.4075c1.0125-.795 2.2875-1.2675 3.675-1.2675 3.315 0 6 2.685 6 6 0 1.3875-.4725 2.6625-1.2675 3.675z\" fill=\"%239e9e9e\"/></svg>\\');\\n}\\n\\n#tinybugme-tooltip-container .a11y-icon-warning {\\n background-image: url(\\'data:image/svg+xml,<svg fill=\"none\" viewBox=\"0 0 18 18\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"m8.25 11.25h1.5v1.5h-1.5zm0-6h1.5v4.5h-1.5zm.7425-3.75c-4.14 0-7.4925 3.36-7.4925 7.5s3.3525 7.5 7.4925 7.5c4.1475 0 7.5075-3.36 7.5075-7.5s-3.36-7.5-7.5075-7.5zm.0075 13.5c-3.315 0-6-2.685-6-6s2.685-6 6-6 6 2.685 6 6-2.685 6-6 6z\" fill=\"%23e37400\"/></svg>\\');\\n}\\n\\n#tinybugme-tooltip-container .a11y-icon-ok {\\n background-image: url(\\'data:image/svg+xml,<svg fill=\"none\" viewBox=\"0 0 18 18\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"m9 1.5c-4.14 0-7.5 3.36-7.5 7.5s3.36 7.5 7.5 7.5 7.5-3.36 7.5-7.5-3.36-7.5-7.5-7.5zm0 13.5c-3.3075 0-6-2.6925-6-6s2.6925-6 6-6 6 2.6925 6 6-2.6925 6-6 6zm-1.5-4.35-1.95-1.95-1.05 1.05 3 3 6-6-1.05-1.05z\" fill=\"%230ca40c\"/></svg>\\');\\n}\\n\\n@media (forced-colors: active) {\\n :root,\\n body {\\n background-color: transparent;\\n forced-color-adjust: none;\\n }\\n\\n #tinybugme-tooltip-container .tooltip-content {\\n // border-color: Highlight;\\n // background-color: canvas;\\n color: text;\\n forced-color-adjust: none;\\n }\\n\\n #tinybugme-tooltip-container .tooltip-content::after {\\n // background-color: Highlight;\\n }\\n\\n #tinybugme-tooltip-container .color-swatch-inner,\\n .contrast-text,\\n .separator {\\n // border-color: Highlight;\\n }\\n\\n #tinybugme-tooltip-container .section-name {\\n // color: Highlight;\\n }\\n\\n #tinybugme-tooltip-container .dimensions,\\n .element-info-name,\\n .element-info-value-color,\\n .element-info-value-contrast,\\n .element-info-value-icon,\\n .element-info-value-text,\\n .material-tag-name,\\n .material-class-name,\\n .material-node-id {\\n // color: canvastext;\\n }\\n}\\n'];t<n.length;t++){r=n[t],o=void 0,(o=document.createElement(\"style\")).innerHTML=r,document.head.appendChild(o)}var r,o}return e.prototype._recompute=function(e,t){},e.prototype._differs=function(e,t){return e!=e?t==t:e!==t||e&&\"object\"==typeof e||\"function\"==typeof e},e.prototype._unmount=function(){this._fragment&&this._fragment.u()},e.prototype.destroy=function(e){this.destroy=wn,this.fire(\"destroy\"),this.set=this.get=wn,!1!==e&&this._fragment.u(),this._fragment.d(),this._fragment=this._state=null},e.prototype.get=function(e){return e?this._state[e]:this._state},e.prototype.fire=function(e,t){var n=e in this._handlers&&this._handlers[e].slice();if(n)for(var r=0;r<n.length;r+=1){var o=n[r];o.__calling||(o.__calling=!0,o.call(this,t),o.__calling=!1)}},e.prototype.observe=function(e,t,n){var r=t.bind(this);return n&&!1===n.init||r(this.get()[e],void 0),this.on(n&&n.defer?\"update\":\"state\",(function(t){t.changed[e]&&r(t.current[e],t.previous&&t.previous[e])}))},e.prototype.on=function(e,t){if(\"teardown\"===e)return this.on(\"destroy\",t);var n=this._handlers[e]||(this._handlers[e]=[]);return n.push(t),{cancel:function(){var e=n.indexOf(t);~e&&n.splice(e,1)}}},e.prototype.set=function(e){this._set(Sn({},e)),this.root._lock||(this.root._lock=!0,In(this.root._beforecreate),In(this.root._oncreate),In(this.root._aftercreate),this.root._lock=!1)},e.prototype._set=function(e){var t=this._state,n={},r=!1;for(var o in e)this._differs(e[o],t[o])&&(n[o]=r=!0);r&&(this._state=Sn(Sn({},t),e),this._recompute(n,this._state),this._bind&&this._bind(n,this._state),this._fragment&&(this.fire(\"state\",{changed:n,current:this._state,previous:t}),this._fragment.p(n,this._state),this.fire(\"update\",{changed:n,current:this._state,previous:t})))},e.prototype._mount=function(e,t){this._fragment[this._fragment.i?\"i\":\"m\"](e,t||null)},e}();function mn(e,t){var n=document.createElement(e);return t&&(n.className=t),n}function yn(e,t,n){e.style.setProperty(t,n)}function bn(e,t,n){t.insertBefore(e,n)}function _n(e,t){t.appendChild(e)}function wn(){}function Sn(e,t){for(var n in t)e[n]=t[n];return e}function In(e){for(;e&&e.length;)e.shift()()}function kn(e,t,n){var r=mn(t,n);return r.addEventListener(\"click\",(function(e){e.stopPropagation()}),!1),e.appendChild(r),r}function Cn(e,t){return e.length<=t?String(e):e.substr(0,t-1)+\"…\"}function En(e,t){var n=document.createTextNode(t);return e.appendChild(n),n}var Tn={borderColor:{r:255,g:229,b:153,a:.66},contentColor:{r:111,g:168,b:220,a:.66},marginColor:{r:246,g:178,b:107,a:.66},paddingColor:{r:147,g:196,b:125,a:.55}},xn=!1;function On(e){xn&&e.stopImmediatePropagation()}var Nn=function(){function e(){this.inspectModeHighlightConfig=Tn,this.hidehighlight=this.hidehighlight.bind(this),this.handleInspectMouseOver=q(this.handleInspectMouseOver.bind(this),200,setTimeout,clearTimeout),this.handleInspectClick=this.handleInspectClick.bind(this)}return e.initGlobalEventListener=function(){window.addEventListener(\"mouseup\",On,!0),window.addEventListener(\"mousedown\",On,!0),window.addEventListener(\"touchstart\",On,!0),window.addEventListener(\"touchend\",On,!0)},e.prototype.highlightNode=function(e,t){void 0===t&&(t={});var n=e.getBoundingClientRect();if(n.height||n.width){var r={},o=e.__zInstance__;if(t.showInfo&&o){var i=o._debug;if(i){if(r.tagName=i.nodeName.toLowerCase(),i.attrClass){var s=i.attrClass.split(\" \").map((function(e){return e.trim()})).filter(Boolean).join(\".\");s.length>0&&(r.className=\".\".concat(s))}r.idValue=i.attributes.get(\"id\")}r.nodeHeight=fn(n.height,4),r.nodeWidth=fn(n.width,4),r.nodeLeft=fn(n.left,4),r.nodeTop=fn(n.top,4);var a=window.getComputedStyle(e);r.style=a}var u=function(e){var t=window.getComputedStyle(e),n=function(e){return Number(e.slice(0,-2))<0?\"0px\":e};return{border:{bottom:t.borderBottomWidth,left:t.borderLeftWidth,right:t.borderRightWidth,top:t.borderTopWidth},boxSizing:t.boxSizing,margin:{bottom:n(t.marginBottom),left:n(t.marginLeft),right:n(t.marginRight),top:n(t.marginTop)},padding:{bottom:t.paddingBottom,left:t.paddingLeft,right:t.paddingRight,top:t.paddingTop}}}(e),c=function(e){return e?\"rgba(\".concat(e.r,\", \").concat(e.g,\", \").concat(e.b,\", \").concat(e.a,\")\"):\"transparent\"},l={border:F(F({},u.border),{color:c(t.borderColor)}),content:{color:c(t.contentColor)},elementInfo:r,margin:F(F({},u.margin),{color:c(t.marginColor)}),padding:F(F({},u.padding),{color:c(t.paddingColor)}),rect:{height:\"\".concat(n.height,\"px\"),left:\"\".concat(n.left-Number(u.margin.left.slice(0,-2)),\"px\"),top:\"\".concat(n.top-Number(u.margin.top.slice(0,-2)),\"px\"),width:\"\".concat(n.width,\"px\")},show:!0};window.config=JSON.stringify(l),this.overlayComponent?this.overlayComponent.set(l):this.overlayComponent=new vn({data:l,target:document.body})}else this.hidehighlight()},e.prototype.hidehighlight=function(){this.overlayComponent&&this.overlayComponent.set({rect:{height:\"0px\",left:\"0px\",top:\"0px\",width:\"0px\"},show:!1})},e.prototype.enterInspectMode=function(e){e&&(this.inspectModeHighlightConfig=e),document.addEventListener(\"mouseover\",this.handleInspectMouseOver,!1),document.addEventListener(\"mouseout\",this.hidehighlight,!1),document.addEventListener(\"click\",this.handleInspectClick,!0),xn=!0},e.prototype.leaveInspectMode=function(){document.removeEventListener(\"mouseover\",this.handleInspectMouseOver,!1),document.removeEventListener(\"mouseout\",this.hidehighlight,!1),document.removeEventListener(\"click\",this.handleInspectClick,!0),xn=!1,this.inspectModeHighlightConfig=Tn},e.prototype.handleInspectMouseOver=function(e){},e.prototype.handleInspectClick=function(e){},e}();var An,Mn,Pn,Ln=function(e){function t(){var n=e.call(this)||this;return t.initGlobalEventListener(),n}return R(t,e),t.prototype.bindBridge=function(e){this.bridge=e},t.prototype.highlightNode=function(t,n){if(t.nodeType===Node.ELEMENT_NODE){var r=t.__zInstance__;r&&this.bridge.getZNodeDebugInfo(r),e.prototype.highlightNode.call(this,t,n)}else e.prototype.highlightNode.call(this,t,n)},t.prototype.handleInspectMouseOver=function(e){var t=this,n=e.target;if(n.nodeType===Node.ELEMENT_NODE){var r=n.__zInstance__;if(r){this.highlightNode(n,this.inspectModeHighlightConfig);var o=this.bridge.getZNodeDebugInfo(r);if(!o.activated){for(var i=[],s=o.getParentNode();s&&!s.activated;)i.unshift(s),s=s.getParentNode();s&&i.unshift(s),i.forEach((function(e){var n=e.serialize(1);n&&n.children&&t.bridge.sendMessage(\"DOM.setChildNodes\",{nodes:n.children,parentId:n.nodeId})}))}o.nodeId&&this.bridge.sendMessage(\"Overlay.nodeHighlightRequested\",{nodeId:o.nodeId})}}},t.prototype.handleInspectClick=function(e){e.stopPropagation(),this.hidehighlight(),this.leaveInspectMode();var t=e.target;if(t.nodeType===Node.ELEMENT_NODE){var n=t.__zInstance__;if(n){var r=this.bridge.getZNodeDebugInfo(n);this.bridge.sendMessage(\"Overlay.inspectNodeRequested\",{backendNodeId:r.nodeId})}}},t}(Nn),Dn=function(e){function t(t){var n=e.call(this,t)||this;return n.option.connection.onMessage((function(e,t,r){var o=e.split(\".\"),i=n.getMessageHandler(o);i?i(n,t,r):console.warn(\"unhandlered message:\"+e)})),n}return R(t,e),t.prototype.getOverlayManager=function(){return this.overlayManager||(this.overlayManager=new Ln,this.overlayManager.bindBridge(this)),this.overlayManager},t.prototype.enableShadowRootElements=function(){!function(){if(!At){for(var e=document.head.querySelectorAll(\"link\"),t=\"\",n=0,r=Array.from(e);n<r.length;n++){var o=r[n];if(/af-appx\\.min\\.css$/.test(o.href)){t=o.href;break}}if(t){var i=new XMLHttpRequest;i.open(\"GET\",t),i.onload=function(){if(i.responseText)try{var e=Ue.parse(i.responseText);At={ownerNode:null,postCSSRoot:e,styleSheetId:void 0}}catch(e){console.warn(e)}else console.warn(\"failed to request \".concat(t))},i.send()}else console.warn(\"failed to find af-appx.min.css link\")}}(),e.prototype.enableShadowRootElements.call(this)},t.prototype.getMessageHandler=function(e){for(var t=dn,n=0,r=e;n<r.length;n++){if(!(t=t[r[n]]))break}return t},t}(Me);function Bn(e,t,n){var r=new Dn({clientProxy:e,connection:n,debugProxy:t,dependencyFactory:{createDOMElement:function(e,t,n,r,o){return new Be(e,t,n,r,o)},createZNodeElement:function(e,t,n,r,o,i){return new De(e,t,n,r,o,i)}}});return function(e){var t=e.getZRuntimeHelper();function n(t,n,r,o,i,s){var a=e.getZNodeDebugInfo(t);e.pageInstance||(e.pageInstance=n.root),a.nodeType===P.Element&&(a.setLinkedContext(n),r&&a.updateClassName(r),o&&a.updateInlineStyle(t.cachedNormalizedStyleString||o),a.updateProperties(i))}function r(t,n){var r=e.getZNodeDebugInfo(t);r.nodeType===P.Element&&(r.updateDataset(n),r.invalidate())}function o(t){var n=t._debug;if(n){if(n.activated&&e.sendMessage(\"DOM.childNodeRemoved\",{nodeId:n.nodeId,parentNodeId:n.getParentNodeId()}),e.nodeId2ZNode.delete(n.nodeId),e.nodeId2DOMNode.delete(n.nodeId),n.nodeType===P.Element){e.shadowRootNodeId2ZNode.delete(n.shadowRootNodeId);var r=n.pseudoNodeType2Id;r&&Object.keys(r).forEach((function(t){e.nodeId2PseudoElement.delete(r[t])}))}delete t._debug}}function i(t,n){var r=e.getZNodeDebugInfo(n),o=r.getParentNode();if(o.activated)if(o.childrenActivated){var i=r.getPreviousElementOrTextSibling();e.sendMessage(\"DOM.childNodeInserted\",{node:r.serialize(0),parentNodeId:o.nodeId,previousNodeId:i?i.nodeId:0})}else e.sendMessage(\"DOM.childNodeCountUpdated\",{childNodeCount:o.getChildNodeCount(),nodeId:o.nodeId})}if(be(t,\"x\",(function(e,t){n.apply(void 0,t)})),be(t,\"W\",(function(e,t){n.apply(void 0,t)})),be(t,\"X\",(function(t,n){var r=n[0],o=(n[1],n[2]),i=n[3],s=n[4],a=n[5],u=n[6],c=e.getZNodeDebugInfo(r);c.nodeType===P.Element&&(i&&c.updateClassName(o),a&&c.updateInlineStyle(r.cachedNormalizedStyleString||s),c.updateProperties(u),c.invalidate())})),be(t,\"y\",(function(t,n){var r=n[0],o=(n[1],n[2]),i=n[3],s=n[4],a=e.getZNodeDebugInfo(r);a.nodeType===P.Element&&(i&&a.updateClassName(o),a.updateProperties(s),a.invalidate())})),be(t,\"Y\",(function(t,n){var r=n[0],o=(n[1],n[2]),i=n[3],s=n[4],a=e.getZNodeDebugInfo(r);a.nodeType===P.Element&&(i&&a.updateInlineStyle(r.cachedNormalizedStyleString||o),a.updateProperties(s),a.invalidate())})),be(t,\"w\",(function(t,n){var r=n[0],o=(n[1],n[2]),i=e.getZNodeDebugInfo(r);i.nodeType===P.Element&&(i.updateProperties(o),i.invalidate())})),be(t,\"ea\",(function(t,n){var r=n[0],o=n[1],i=n[2],s=e.getZNodeDebugInfo(r);s.nodeType===P.Element&&(s.updateAttribute(o,i),s.invalidate())})),be(t,\"g\",(function(e,t){r.apply(void 0,t)})),be(t,\"Q\",(function(e,t){r.apply(void 0,t)})),be(t,\"G\",(function(e,t){r.apply(void 0,t)})),be(t,\"n\",(function(t,n){var r=n[0],o=n[1];if(r.firstChild){var i=r.firstChild._debug;i&&i.activated&&e.sendMessage(\"DOM.characterDataModified\",{characterData:o,nodeId:i.nodeId})}else{var s={destroy:function(){},eType:2,formattedText:null,nextSibling:null,parent:r,previousSibling:null,get root(){var e=this.parent.root;return function(e){return e&&\"childNodes\"in e}(e)?e.childNodes[0]:null},text:o};s.root&&(r.firstChild=r.lastChild=s)}})),be(t,\"N\",(function(t,n){var r=n[0],o=n[1],i=r._debug;i&&i.activated&&e.sendMessage(\"DOM.characterDataModified\",{characterData:o,nodeId:i.nodeId})})),_e(t,\"r\",(function(e){o(e[0])})),_e(t,\"R\",(function(e){o(e[0])})),be(t,\"i\",(function(e,t){t[0];i(0,t[1])})),be(t,\"a\",(function(e,t){t[0];i(0,t[1])})),be(t,\"I\",(function(e,t){t[0];i(0,t[1])})),be(t,\"A\",(function(e,t){t[0];i(0,t[1])})),be(t,\"t\",(function(t,n){var r=n[0];e.getZNodeDebugInfo(t).setLinkedContext(r)})),be(t,\"p\",(function(t,n){var r=n[0],o=n[1],i=n[2],s=r.getTargetId();if(e.componentTargetId2ZNode.has(s)){var a=e.componentTargetId2ZNode.get(s);a.activated&&(a.updateProperties(o,i),a.invalidate())}})),_e(t,\"m\",(function(t){var n=t[0],r=t[1],o=t[2];e.componentTargetId2LinkedInstance.set(n.targetId,n);var i=n.root.document.createComment(Se(n.getTargetId()));n._anchor4Head=i,r.insertBefore(i,o)})),be(t,\"m\",(function(t,n){var r=n[0],o=n[1],i=n[2],s=r.root.document.createComment(Ie(r.getTargetId()));r._anchor4Tail=s,o.insertBefore(s,i);var a=e.getZNodeComponentDebugInfo(r.getTargetId()),u=a.getParentNode();if(u&&u.activated)if(u.childrenActivated){var c=a.getPreviousElementOrTextSibling();e.sendMessage(\"DOM.childNodeInserted\",{node:a.serialize(0),parentNodeId:u.nodeId,previousNodeId:c?c.nodeId:0})}else e.sendMessage(\"DOM.childNodeCountUpdated\",{childNodeCount:u.getChildNodeCount(),nodeId:u.nodeId})})),_e(t,\"q\",(function(e){var t=e[0],n=e[1],r=ve(t,n),o=r.root.textContent;\"b\"===o[0]&&(r.root.textContent=\"e\"+o.slice(1)),le(t,he(t,r)),n._anchor4Head=r})),be(t,\"q\",(function(t,n){var r=n[0],o=n[1],i=o.getTargetId();de(r);var s=o._anchor4Head,a=o._anchor4Tail=ve(r,o,s);s.root.textContent=Se(i),a.root.textContent=Ie(i),e.componentTargetId2LinkedInstance.set(i,o),e.componentTargetId2ZNode.delete(o.targetId)})),be(t,\"o\",(function(t,n){var r=n[0],o=r._anchor4Head;o&&(o.parent.removeChild(o),r._anchor4Head=null);var i=r._anchor4Tail;i&&(i.parent.removeChild(i),r._anchor4Tail=null);var s=e.componentTargetId2ZNode.get(r.targetId);s.activated&&e.sendMessage(\"DOM.childNodeRemoved\",{nodeId:s.nodeId,parentNodeId:s.getParentNodeId()}),e.componentTargetId2ZNode.delete(r.targetId),e.componentTargetId2LinkedInstance.delete(r.targetId)})),\"object\"==typeof $AppxHMRProxy&&\"function\"==typeof $AppxHMRProxy.applyUpdates){var s=$AppxHMRProxy.applyUpdates;$AppxHMRProxy.applyUpdates=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=s.apply($AppxHMRProxy,t);return setTimeout((function(){e.sendMessage(\"DOM.documentUpdated\",null)}),0),r}}}(r),function(e,t){var n=t.h,r=window.$ZElementLocationResolver=new Pe(e,t);t.L||(t.L=function(){}),_e(t,\"L\",r.overwriteLocation),be(n,\"e\",r.bindZElement),_e(n,\"c\",r.bindZComponent)}(r,t.getZRuntime()),r}function Rn(){var e=\"undefined\"!=typeof Map;Mn=e?Map:function(){function e(){this.keyList=[],this.valueList=[]}return e.prototype.set=function(e,t){var n=this.keyList,r=n.indexOf(e);if(-1===r){var o=n.push(e)-1;this.valueList[o]=t}else this.valueList[r]=t;return this},e.prototype.get=function(e){var t=this.keyList.indexOf(e);return-1===t?void 0:this.valueList[t]},e.prototype.forEach=function(e){for(var t=this.keyList.slice(),n=this.valueList.slice(),r=t.length,o=0;o<r;o++){var i=t[o];e(n[o],i,this)}},Object.defineProperty(e.prototype,\"size\",{get:function(){return this.keyList.length},enumerable:!1,configurable:!0}),e.prototype.has=function(e){return-1!==this.keyList.indexOf(e)},e.prototype.delete=function(e){var t=this.keyList.indexOf(e);return-1!==t&&(this.keyList.splice(t,1),this.valueList.splice(t,1),!0)},e.prototype.clear=function(){this.keyList=[],this.valueList=[]},e}()}function Fn(){var e=\"undefined\"!=typeof WeakMap;Pn=e?WeakMap:function(){var e=Object.prototype.hasOwnProperty,t=function(e,t,n){Object.defineProperty?Object.defineProperty(e,t,{configurable:!0,value:n,writable:!0}):e[t]=n};function n(e){return Object(e)===e}function r(){if(void 0===this)throw new TypeError(\"Constructor WeakMap requires 'new'\");if(t(this,\"_id\",i(\"_WeakMap\")),arguments.length>0)throw new TypeError(\"WeakMap iterable is not supported\")}function o(t,r){if(!n(t)||!e.call(t,\"_id\"))throw new TypeError(r+\" method called on incompatible receiver \"+typeof t)}function i(e){return e+\"_\"+s()+\".\"+s()}function s(){return Math.random().toString().substring(2)}return t(r.prototype,\"delete\",(function(e){if(o(this,\"delete\"),!n(e))return!1;var t=e[this._id];return!(!t||t[0]!==e)&&(delete e[this._id],!0)})),t(r.prototype,\"get\",(function(e){if(o(this,\"get\"),n(e)){var t=e[this._id];return t&&t[0]===e?t[1]:void 0}})),t(r.prototype,\"has\",(function(e){if(o(this,\"has\"),!n(e))return!1;var t=e[this._id];return!(!t||t[0]!==e)})),t(r.prototype,\"set\",(function(e,r){if(o(this,\"set\"),!n(e))throw new TypeError(\"Invalid value used as weak map key\");var i=e[this._id];return i&&i[0]===e?(i[1]=r,this):(t(e,this._id,[e,r]),this)})),t(r,\"_polyfill\",!0),r}()}function jn(){return Pn||Fn(),new Pn}!function(e){e[e.Element=1]=\"Element\",e[e.Text=2]=\"Text\",e[e.Component=3]=\"Component\"}(An||(An={})),jn();var Un=function(){function e(e){this.provider=e,this.index=0}return e.prototype[Symbol.iterator]=function(){return this},e.prototype.next=function(e){return this.provider.item(this.index++)},e.prototype.throw=function(e){throw new Error(\"throw unimplemented\")},e.prototype.return=function(e){throw new Error(\"return unimplemented\")},e}(),zn=function(){function e(e){this.generator=e,this.done=!1,this.results=[]}return e.prototype.ref=function(){return new Un(this)},e.prototype.item=function(e){for(;e>this.results.length-1;){var t=this.generator.next();if(!1!==t.done){this.done=!0;break}this.results.push(t.value)}return this.done?{done:!0,value:null}:{done:!1,value:this.results[e]}},e}();function Hn(e){if(e&&e.node)for(var t=e.node&&e.node.nextSibling;;){if(!t)return;var n=t.component;if(n&&2===n.type)return n;t=t.nextSibling}}!function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.cache=jn(),t}t(n,e),n.prototype.iterateTargetAXML=function(t,n){return this.createIterator(e.prototype.iterateTargetAXML,[t,n])},n.prototype.iterateChildTargetByOwnerId=function(t,n,r){return this.createIterator(e.prototype.iterateChildTargetByOwnerId,[t,n,r])},n.prototype.iterateDeepSlotBlockByOwnerId=function(t,n){return this.createIterator(e.prototype.iterateDeepSlotBlockByOwnerId,[t,n])},n.prototype.iterateTargetDeep=function(t,n){return this.createIterator(e.prototype.iterateTargetDeep,[t,n])},n.prototype.iterateDeepXML=function(t){return this.createIterator(e.prototype.iterateDeepXML,[t])},n.prototype.createIterator=function(e,t){var n=this.cache.get(e);n||(Mn||Rn(),n=new Mn,this.cache.set(e,n));var r=t.map((function(e){return\"\".concat(\"object\"==typeof e&&e?e.targetId:e)})).join(\"_\"),o=n.get(r);return o||(o=new zn(e.apply(this,t))),o.ref()}}(function(){function e(){}return e.prototype.iterateTargetAXML=function(e,t){var n,r,o,a;return i(this,(function(i){switch(i.label){case 0:if(!(n=function(e){for(var t=e.node&&e.node.firstChild;;){if(!t)return;var n=t.component;if(n&&2===n.type)return n;t=t.nextSibling}}(e)))return[2,null];r=n.node,i.label=1;case 1:return r?(o=r).component&&2===o.component.type?[4,a=o.component]:[3,4]:[3,5];case 2:return i.sent(),[5,s(this.iterateChildTargetByOwnerId(a,t))];case 3:i.sent(),i.label=4;case 4:return r=r.nextSibling,[3,1];case 5:return[2,null]}}))},e.prototype.iterateChildTargetByOwnerId=function(e,t,n){var r,o,a,u,c,l,d,h,p,f,g,v,m;return i(this,(function(i){switch(i.label){case 0:if(!e.slotProviders)return[2,null];r=e.slotProviders,i.label=1;case 1:i.trys.push([1,13,14,15]),o=s(r),a=o.next(),i.label=2;case 2:if(a.done)return[3,12];u=a.value,c=this.iterateDeepSlotBlockByOwnerId(e,t),i.label=3;case 3:if(!1!==(l=c.next()).done)return[3,9];if(!(d=l.value).node)return[3,8];if(d.provider!==u)return[3,8];h=d.node.firstChild,i.label=4;case 4:return h?(p=h).component?2!==p.component.type?[3,7]:[4,f=p.component]:[3,7]:[3,8];case 5:return i.sent(),n?[3,7]:[5,s(this.iterateChildTargetByOwnerId(f,t))];case 6:i.sent(),i.label=7;case 7:return h=h.nextSibling,[3,4];case 8:return[3,10];case 9:return[3,11];case 10:return[3,3];case 11:return a=o.next(),[3,2];case 12:return[3,15];case 13:return g=i.sent(),v={error:g},[3,15];case 14:try{a&&!a.done&&(m=o.return)&&m.call(o)}finally{if(v)throw v.error}return[7];case 15:return[2,null]}}))},e.prototype.iterateDeepSlotBlockByOwnerId=function(e,t){var n,r,o,a;return i(this,(function(i){switch(i.label){case 0:if(!e.node)return[2,null];n=e.node.firstChild,i.label=1;case 1:return n?(r=n).component&&1===r.component.type?(o=r.component,u=o.provider,((c=u.slotProviderParentContextInstance).type<2?c.option.parentTarget:c).targetId!==t?[3,3]:[4,o]):[3,6]:[3,9];case 2:return i.sent(),[3,5];case 3:return[5,s(this.iterateDeepSlotBlockByOwnerId(o,t))];case 4:i.sent(),i.label=5;case 5:return[3,8];case 6:return r.component&&2===r.component.type&&(a=r.component).slotProviders?[5,s(this.iterateDeepSlotBlockByOwnerId(a,t))]:[3,8];case 7:i.sent(),i.label=8;case 8:return n=n.nextSibling,[3,1];case 9:return[2,null]}var u,c}))},e.prototype.iterateTargetDeep=function(e,t){var n,r;return i(this,(function(o){switch(o.label){case 0:return[5,s(this.iterateDeepXML(e))];case 1:o.sent(),n=this.iterateChildTargetByOwnerId(e,t),o.label=2;case 2:return!1!==(r=n.next()).done?[3,5]:[4,r.value];case 3:return o.sent(),[5,s(this.iterateDeepXML(r.value))];case 4:return o.sent(),[3,6];case 5:return[3,7];case 6:return[3,2];case 7:return[2,null]}}))},e.prototype.iterateDeepXML=function(e){var t,n,r;return i(this,(function(o){switch(o.label){case 0:if(!e.slotProviders||!e.node)return[2,null];t=e.node.firstChild,o.label=1;case 1:return t?(n=t.component)&&2===n.type?[4,n]:[3,8]:[3,10];case 2:return o.sent(),[5,s(this.iterateTargetDeep(n,e.targetId))];case 3:o.sent(),r=Hn(n),o.label=4;case 4:return r?[4,r]:[3,7];case 5:return o.sent(),[5,s(this.iterateDeepXML(r))];case 6:return o.sent(),r=Hn(r),[3,4];case 7:return[3,10];case 8:t=t.nextSibling,o.label=9;case 9:return[3,1];case 10:return[2,null]}}))},e}());\"undefined\"!=typeof ZEPHYR_HAS_INSIDE_FEATURE&&ZEPHYR_HAS_INSIDE_FEATURE,\"undefined\"!=typeof ZEPHYR_IS_INSIDE_UNSUPPORT_ELEMENT&&ZEPHYR_IS_INSIDE_UNSUPPORT_ELEMENT;var qn=function(){function e(e,t,n,r,o){this.bindLinkNode=o,this.updatingDiff=null,this.scopedBlocks=[],this.unscopedBlocks=[],this.disposing=!1,this.detaching=!1,this.factory=e,this.currentData=t,this.slotProviderParentContextInstance=n,this.scopeId=r}return e.prototype.createBlockWithScope=function(e,t){var n,r,o=this.scopeId;return e&&o?(n=Zn(e,this.currentData,o),(r=this.createBlock(this.slotProviderParentContextInstance,t,n,!0)).__scopeContext__=e):(n=this.currentData,r=this.createBlock(this.slotProviderParentContextInstance,t,n,!1)),r.bType=1,r},e.prototype.createBlockWithoutScope=function(e){var t=this.createBlock(this.slotProviderParentContextInstance,e,this.currentData,!1);return t.bType=1,t},e.prototype.updateBlockWithDynamicNameScopeAndFallback=function(e,t,n,r,o,i){if(t._name===e){var s=this.scopeId;if(n&&s){var a=Zn(n,this.currentData,s),u=Object.create(this.updatingDiff);u[s]=!0,t.updateScopeContext(n),t.updateScopeAndFallbackContext(u,a,r,o)}else t.updateFallbackContext(r,o)}else{var c=void 0;c=n?this.createBlockWithScope(n,i):this.createBlockWithoutScope(i),t.updateDynamicNameAndFallbackContext(e,c,r,o)}return null},e.prototype.updateBlockWithScopeAndFallback=function(e,t,n,r){var o=this.scopeId;if(t&&o){var i=Zn(t,this.currentData,o),s=Object.create(this.updatingDiff);s[o]=!0,e.updateScopeContext(t),e.updateScopeAndFallbackContext(s,i,n,r)}else e.updateFallbackContext(n,r)},e.prototype.updateBlockWithScope=function(e,t){var n=this.scopeId;if(t&&n){var r=Zn(t,this.currentData,n),o=Object.create(this.updatingDiff);o[n]=!0,e.__scopeContext__=t,e.u(o,r)}},e.prototype.enterProviderDetaching=function(){this.detaching=!0},e.prototype.exitProviderDetaching=function(){this.detaching=!1;var e=this.detachedBlocks;if(e){this.detachedBlocks=null;for(var t=0,n=e;t<n.length;t++){var r=n[t],o=1===r.__slotType__?this.scopedBlocks:this.unscopedBlocks;r.__slotIndex__=o.push(r)-1,r.d(!0)}}},e.prototype.createBlock=function(e,t,n,r){var o,i,s;if(r?(i=1,o=this.scopedBlocks.length,s=this.scopedBlocks):(i=0,o=this.unscopedBlocks.length,s=this.unscopedBlocks),this.detaching){var a=this.detachedBlocks;if(a){var u=a.shift();if(u)return s.push(u),u.__slotIndex__=o,u.__slotType__=i,u}}var c=this.factory(e,n);return this.bindLinkNode&&(c=this.bindLinkNode(c,this)),c.d=this.destroyBlock.bind(this,c,c.d),s.push(c),c.__slotIndex__=o,c.__slotType__=i,c},e.prototype.destroyBlock=function(e,t,n){var r=e.__slotIndex__;if(r>=0){if(!this.disposing){var o=1===e.__slotType__?this.scopedBlocks:this.unscopedBlocks,i=o.length-1,s=o[i];s.__slotIndex__=r,o[r]=s,o.length=i}if(this.detaching){var a=this.detachedBlocks;a||(a=this.detachedBlocks=[]),a.push(e)}else t.call(e,n);e.__slotIndex__=-1}},e}();function Zn(e,t,n){var r=Object.create(t);return r[n]=e[0],e.length>1&&(r[n+\"d\"]=e[1],r[n+\"n\"]=e[2]),r}function Wn(){}function Gn(e,t,n){if(e)return e(t,n)}function Yn(e){if(e){var t=e.parent;t&&t.removeChild(e)}}function Vn(e,t,n){return t?e.document.cloneComment(t):e.document.createComment(n)}function Jn(e,t){var n=t.nextSibling,r=t.previousSibling;n?(n.previousSibling=r,t.nextSibling=null):e.lastChild=r,r?(r.nextSibling=n,t.previousSibling=null):e.firstChild=n,t.parent=null}function Xn(e,t){var n=t.parent;n&&Jn(n,t),t.parent=e;var r=e.lastChild;r?(t.previousSibling=r,r.nextSibling=t):e.firstChild=t,e.lastChild=t}function Qn(e,t,n){e.insertBefore(t,n||null),t.parent||(t.parent=e)}!function(e){function n(){return null!==e&&e.apply(this,arguments)||this}t(n,e),n.prototype.exitProviderUpdating=function(){},n.prototype.enterProviderUpdating=function(e,t){this.currentData=t;for(var n=this.scopeId,r=0,o=this.unscopedBlocks;r<o.length;r++){(u=o[r]).u(e,t)}if(n&&this.scopedBlocks.length){var i=Object.create(e);i[n]=!1;for(var s=0,a=this.scopedBlocks;s<a.length;s++){var u,c=Zn((u=a[s]).__scopeContext__,t,n);u.u(i,c)}}},n.prototype.destroyBlocks=function(e){if(this.disposing=!0,this.scopeId){for(var t=0,n=this.scopedBlocks;t<n.length;t++){n[t].d(e)}this.scopedBlocks=[]}for(var r=0,o=this.unscopedBlocks;r<o.length;r++){o[r].d(e)}this.unscopedBlocks=[]}}(qn),function(e){function n(){return null!==e&&e.apply(this,arguments)||this}t(n,e),n.prototype.enterProviderUpdating=function(e,t){this.updatingDiff=e,this.currentData=t;for(var n=this.scopeId,r=0,o=this.unscopedBlocks;r<o.length;r++){o[r].__slotUpdating__=!0}if(n&&this.scopedBlocks.length)for(var i=0,s=this.scopedBlocks;i<s.length;i++){s[i].__slotUpdating__=!0}},n.prototype.destroyBlocks=function(e){this.disposing=!0,this.scopeId&&(this.scopedBlocks=[]),this.unscopedBlocks=[]},n.prototype.exitProviderUpdating=function(){for(var e=this.updatingDiff,t=this.currentData,n=this.scopeId,r=0,o=this.unscopedBlocks;r<o.length;r++){(u=o[r]).__slotUpdating__&&(u.__slotUpdating__=!1,u.u(e,t))}if(n&&this.scopedBlocks.length){var i=Object.create(e);i[n]=!1;for(var s=0,a=this.scopedBlocks;s<a.length;s++){var u;if((u=a[s]).__slotUpdating__){u.__slotUpdating__=!1;var c=Zn(u.__scopeContext__,t,n);u.u(i,c)}}}this.updatingDiff=null}}(qn),function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.detaching=!1,t}t(n,e),n.prototype.detach=function(){this.detaching=!0},n.prototype.attach=function(){this.detaching=!1},n.prototype.c=function(){if(this.detaching){var t=this._bc[5];return this._currentBlock&&(t&=this._currentBlock.c()),t}return e.prototype.c.call(this)},n.prototype.m=function(t,n){if(!this.detaching)return e.prototype.m.call(this,t,n);this._currentBlock&&this._currentBlock.m(this._currentTarget,this._currentAnchor)},n.prototype.resetCurrentBranch=function(e,t){this._component=e;var n=this._bc[3],r=this._bc[4],o=this._bc[0];this._selectedBlockIndex=n?n(this._component,t):1,this._selectedBlockType=r?r(this._selectedBlockIndex):o(this._component,t),this._currentBlock=Gn(this._selectedBlockType,this._component,t)},n.prototype.d=function(t){if(!this.detaching)return e.prototype.d.call(this,t);this._currentBlock&&(this._currentBlock.d(t),this._currentBlock=null)}}(function(){function e(e,t,n){this._bc=e,this._component=t;var r=e[3],o=e[4],i=e[0];this._selectedBlockIndex=r?r(t,n):1,this._selectedBlockType=o?o(this._selectedBlockIndex):i(t,n),this._currentBlock=Gn(this._selectedBlockType,t,n)}return e.prototype.a=function(){return this._currentAnchorHead},e.prototype.c=function(){var e=this._bc[5];return this._currentAnchorHead=Vn(this._component),this._currentAnchor4Index=Vn(this._component,null,rr(this._selectedBlockIndex)),this._currentBlock&&(e&=this._currentBlock.c()),this._currentAnchor=Vn(this._component,this._currentAnchorHead),e},e.prototype.l=function(e){var t=this._bc[5];this._currentAnchorHead=nr(e,this._component),function(e,t){e.stopReverseIndex=t,e.stopReverseIndexStack.push(t)}(e,$n(e,this._currentAnchorHead));var n,r=tr(e,this._component,\"c\",rr(this._selectedBlockIndex));return this._currentAnchor4Index=r[0],e.treatErrorAsWarning+=r[1],this._currentBlock&&(t&=this._currentBlock.l(e)),e.treatErrorAsWarning-=r[1],(n=e).stopReverseIndexStack.pop(),n.stopReverseIndex=n.stopReverseIndexStack[n.stopReverseIndexStack.length-1]||0,this._currentAnchor=nr(e,this._component,this._currentAnchorHead),this._currentTarget=e.target,t},e.prototype.m=function(e,t){this._currentTarget=e,Qn(e,this._currentAnchorHead,t),Qn(e,this._currentAnchor4Index,t),this._currentBlock&&this._currentBlock.m(e,t),Qn(e,this._currentAnchor,t)},e.prototype.u=function(e,t){var n=this._bc[5],r=this._bc[3],o=this._bc[4],i=this._bc[0],s=r?r(this._component,t):1,a=o?o(s):i(this._component,t);if(this._selectedBlockType!==a){this._selectedBlockIndex=s,this._selectedBlockType=a;var u=this._currentAnchor4Index.root;u&&(u.textContent=rr(this._selectedBlockIndex)),this._currentBlock&&this._currentBlock.d(!0),this._currentBlock=Gn(this._selectedBlockType,this._component,t),this._currentBlock&&(n&=this._currentBlock.c(),this._currentBlock.m(this._currentTarget,this._currentAnchor))}else this._currentBlock&&(n&=this._currentBlock.u(e,t));return n},e.prototype.d=function(e){this._currentBlock&&(this._currentBlock.d(e),this._currentBlock=null),e&&(Yn(this._currentAnchorHead),Yn(this._currentAnchor4Index),Yn(this._currentAnchor),this._currentAnchorHead=null,this._currentAnchor4Index=null,this._currentAnchor=null)},e}());var $n=function(e,t){var n,r=t.root.textContent,o=e.index,i=e.nodes.length;for(;o<i&&(n=e.nodes.item(o))&&(8!==n.nodeType||n.textContent!==r);)o++;return i-o};var Kn=0;var er=function(){return\"z:\".concat(++Kn)},tr=function(e,t,n,r){var o,i=e.target,s=e.nodes.item(e.index),a=0,u=0;if(s&&8===s.nodeType&&s.textContent[0]===n)s.textContent===r?o={destroy:Wn,eType:0,nextSibling:null,parent:i,previousSibling:null,root:s}:(s.textContent=r,o={destroy:Wn,eType:0,nextSibling:null,parent:i,previousSibling:null,root:s},a=1,u=1);else{var c=t.document.document.createComment(r);if(o={destroy:Wn,eType:0,nextSibling:null,parent:i,previousSibling:null,root:c},s){var l={destroy:Wn,eType:0,nextSibling:null,parent:i,previousSibling:null,root:s};i.insertBefore(o,l)}else i.appendChild(o);a=1}if(e.index++,a)for(var d=e.index,h={destroy:Wn,eType:0,nextSibling:null,parent:i,previousSibling:null,root:null};(s=e.nodes.item(d))&&e.stopReverseIndex!==e.nodes.length-d;)h.root=s,i.removeChild(h);return[o,u]};var nr=function(e,t,n){var r,o=e.target,i={destroy:Wn,eType:0,nextSibling:null,parent:null,previousSibling:null,root:null};if(n){for(var s=n.root.textContent,a=e.index,u=void 0;;){if(!(u=e.nodes.item(a))){var c=t.document.document.createComment(s);i.root=c,o.appendChild(i);break}if(i.root=u,8===u.nodeType&&u.textContent===s){Xn(o,i);break}if(e.stopReverseIndex===e.nodes.length-a){var l={destroy:Wn,eType:0,nextSibling:null,parent:null,previousSibling:null,root:u};c=t.document.document.createComment(s);i.root=c,Xn(o,l),o.insertBefore(i,l),Jn(o,l);break}o.removeChild(i)}return e.index++,i}u=e.nodes.item(e.index++);if(i.root=u,u&&8===u.nodeType)Xn(o,i);else{var d=t.document.document.createComment(er());r={destroy:Wn,eType:0,nextSibling:null,parent:null,previousSibling:null,root:d},u?(Xn(o,i),o.insertBefore(r,i),e.stopReverseIndex===e.nodes.length-e.index?Jn(o,i):o.removeChild(i)):o.appendChild(r)}return r||i};function rr(e){return\"\".concat(\"c\",\":\").concat(e||\"\")}function or(e,t){if(\"className\"===e)return[\"class\",String(t).trim()];if(\"function\"==typeof t){if(t.handleName)return[e,t.handleName]}else{if(null===t)return[e,\"null\"];if(void 0!==t){var n=\"unknown\";try{n=\"object\"==typeof t?Object.prototype.toString.call(t):t.toString()}catch(n){console.warn(\"failed to stringify node props value\",e,t)}return[e,n]}}return[]}function ir(e){var t=\"\";try{JSON.stringify(e).length>1e6&&(t=\"data is too large to display\")}catch(e){t=e.message||\"stringify error\"}return t?{data:{error:t}}:{data:e}}function sr(e){if(!e.treeTargetIds){for(var t=e,n=[];t;){t=t.previousSibling?t.previousSibling:t.parent;for(var r=0;t;){if(0===t.eType){if(\"e\"===t.root.textContent[0])r++;else if(\"b\"===t.root.textContent[0]){if(0===r){n.push({begin:t.root,targetId:parseInt(t.root.textContent.slice(2),10)});break}r--}}else{if(1===t.eType&&0===r){n.push.apply(n,sr(t)),t=null;break}if(2===t.eType&&0===r){n.push.apply(n,sr(t)),t=null;break}}t=t.previousSibling?t.previousSibling:t.parent}}n.length||n.push({begin:null,targetId:0}),e.treeTargetIds=n}return e.treeTargetIds}var ar,ur=function(){function e(e,t){this.devtool=e,this.node=t}return e.prototype.setParentNodeId=function(e){this.parentNodeId=e},e.prototype.getParentNodeId=function(){var e;return this.parentNodeId||(this.parentNodeId=null===(e=this.getParentNode())||void 0===e?void 0:e.nodeId),this.parentNodeId},e.prototype.getPreviousElementOrTextSibling=function(){for(var e=this.node.previousSibling;e&&1!==e.eType&&2!==e.eType;){if(0===e.eType){if(\"b\"===e.root.textContent[0])return null;if(\"e\"===e.root.textContent[0])return this.devtool.getZNodeComponentDebugInfo(parseInt(e.root.textContent.slice(2),10))}e=e.previousSibling}return e?this.devtool.getZNodeDebugInfo(e):null},e.prototype.getParentNode=function(){if(this.node.parent){var e=this.devtool.getZNodeDebugInfo(this.node.parent),t=sr(this.node);return sr(e.node)[0].targetId===t[0].targetId?e:this.devtool.getZNodeComponentDebugInfo(t[0].targetId)}},e.prototype.setLinkedContext=function(e){this.linkedContext=e},e.prototype.getLinkedContext=function(){return this.linkedContext},e}();function cr(e,t){for(var n=e.child;n&&(n.tag===ar.HostComponent||n.tag===ar.HostPortal||n.tag===ar.HostRoot);)n=n.child;n&&function(e){var t=[],n=e;for(;n;)t.push(n),n=n.sibling;return t}(n).forEach((function(e){pr(e)?t(e):cr(e,t)}))}function lr(e){var t=dr(e);return/AppX\\(\\S+\\)/.test(t)||\"PageComponent\"===t}function dr(e){var t,n=e.type,r=\"\";return\"string\"==typeof n?r=n:n&&\"string\"==typeof n.displayName?(r=n.displayName,hr(e)&&(r=(null===(t=e.memoizedProps)||void 0===t?void 0:t.__tag)||r)):n&&\"string\"==typeof n.name&&(r=n.name),r||\"Anonymous\"}function hr(e){var t=e.tag,n=e.type;return(t===ar.ClassComponent||t===ar.FunctionComponent)&&!(!n||!n.isCustomComponent)}function pr(e){return e.tag===ar.HostText||(!!lr(e)||!!hr(e))}function fr(e){var t=e.tag;return t===ar.HostComponent||t===ar.HostText?e:e.child?fr(e.child):void 0}function gr(e){var t=fr(e);if(t)return t.stateNode}function vr(e){for(var t=e.return;t;){if(pr(t))return t;t=t.return}}function mr(e){var t;return Boolean(e.__debug_serialized||(null===(t=e.alternate)||void 0===t?void 0:t.__debug_serialized))}function yr(e){var t=r({},e);return delete t.$isCustomComponent,delete t.__tag,delete t.className,delete t.children,t.__owner&&t.__owner.pluginId&&delete t.__owner,t}function br(e){var t=[];if(e.memoizedProps){e.memoizedProps.className&&t.push.apply(t,or(\"className\",e.memoizedProps.className));var n=yr(e.memoizedProps);Object.keys(n).forEach((function(e){t.push.apply(t,or(e,n[e]))}))}return t}function _r(e,t){t.__debug_serialized=!0,t.alternate&&(t.alternate.__debug_serialized=!0);var n=e.getFiberId(e.getPrimaryFiber(t)),r=0;return t.return&&(r=e.getFiberId(e.getPrimaryFiber(t.return))),{backendNodeId:n,childNodeCount:0,localName:\"\",nodeId:n,nodeName:\"#text\",nodeType:3,nodeValue:t.stateNode.textContent,parentId:r}}function wr(e,t,n){var r,o,i;void 0===n&&(n=0),t.__debug_serialized=!0,t.alternate&&(t.alternate.__debug_serialized=!0);var s=e.getFiberId(e.getPrimaryFiber(t)),a=dr(t);a=a.replace(/^AppX\\((\\S+)\\)$/,\"$1\");var u,c,l,d=0;if(cr(t,(function(t){if(c||(c=t),n>0){u||(u=[]);var r=Sr(e,t,n-1);r&&u.push(r)}d+=1})),!u&&1===d&&c&&c.tag===ar.HostText){u||(u=[]);var h=Sr(e,c,n-1);h&&u.push(h)}if(!d&&t.memoizedProps&&\"string\"==typeof t.memoizedProps.children){u||(u=[]);for(var p=t.child;p&&p.child;)p=p.child;if((null===(i=null===(o=null===(r=null==p?void 0:p.stateNode)||void 0===r?void 0:r.childNodes)||void 0===o?void 0:o[0])||void 0===i?void 0:i.nodeType)===Node.TEXT_NODE){var f=p.stateNode.childNodes[0],g={alternate:null,child:null,effectTag:0,key:null,memoizedProps:l=t.memoizedProps.children,memoizedState:null,pendingProps:l,return:null,sibling:null,stateNode:f,tag:ar.HostText,type:null};e.recordMount(g),u.push(_r(e,g))}else console.warn(\"bugme failed to create a fiber-like text node, the parent is\",t)}u&&u.length&&(t.__debug_children_serialized=!0,t.alternate&&(t.alternate.__debug_children_serialized=!0));var v=0;return t.return&&(v=e.getFiberId(e.getPrimaryFiber(t.return))),{attributes:br(t),backendNodeId:s,childNodeCount:d,children:u,localName:a,nodeId:s,nodeName:a,nodeType:1,nodeValue:\"\",parentId:v,shadowRoots:void 0}}function Sr(e,t,n){var r;switch(void 0===n&&(n=0),t.tag){case ar.FunctionComponent:case ar.ClassComponent:case ar.HostComponent:r=wr(e,t,n);break;case ar.HostText:r=_r(e,t);break;default:console.debug(\"unhandled node type\",t.tag,t)}return r}!function(e){function n(t,n,r,o,i,s){var a=e.call(this,t,r)||this;return a.devtool=t,a.nodeName=n,a.node=r,a.nodeId=o,a.shadowRootNodeId=i,a.shadowSlotNodeId=s,a.nodeType=An.Element,a.activated=!1,a.childrenActivated=!1,a.pendingAttributes=[],a.dataset=new Map,a.properties=new Map,a.attributes=new Map,a.inlineStyleSheetId=\"2000.\".concat(o),a}t(n,e),Object.defineProperty(n.prototype,\"dom\",{get:function(){return this.devtool.getDOMNodeDebugInfo(this.node.root,this,this.shadowRootNodeId)},enumerable:!1,configurable:!0}),n.prototype.getPlatformRootDOM=function(){return this.node.root},n.prototype.getShadowRootDebugNode=function(){var e=this.node.root;return this.devtool.getDOMNodeDebugInfo(e,this,this.shadowRootNodeId)},n.prototype.getClassName=function(){return this.attrClass},n.prototype.getInlineStyle=function(){return this.attrStyle},n.prototype.getDataset=function(){return this.dataset},n.prototype.updateClassName=function(e){var t=e||\"\";this.attrClass!==t&&(this.attrClass=t,this.activated&&this.pendingAttributes.push([\"class\",\"\".concat(t)]))},n.prototype.updateInlineStyle=function(e){this.attrStyle!==e&&(this.attrStyle=e,this.activated&&this.pendingAttributes.push([\"style\",\"\".concat(e)]))},n.prototype.invalidate=function(){var e=this;if(this.activated&&this.pendingAttributes.length){for(var t={},n=0,r=this.pendingAttributes;n<r.length;n++){var o=r[n],i=o[0],s=o[1];t[i]=s}Object.keys(t).forEach((function(n){e.onAttributeModifiedByEngine(n,t[n]),\"style\"===n&&e.node.setStyleInline(t[n])})),this.pendingAttributes=[],t={},this.devtool.enableShadowRootElements&&(this.devtool.flushUpdatedQueue(),this.dom&&this.dom.invalidate())}},n.prototype.getProperties=function(){var e={};return this.properties.forEach((function(t,n){e[n]=t})),e},n.prototype.updateProperties=function(e){if(e)for(var t=this.properties,n=0,r=Object.keys(e);n<r.length;n++){var o=r[n];e[o]!==t.get(o)&&(t.set(o,e[o]),this.activated&&this.pendingAttributes.push([o,\"\".concat(e[o])]))}},n.prototype.updateDataset=function(e){for(var t=this.dataset,n=0,r=Object.keys(e);n<r.length;n++){var o=r[n];e[o]!==t.get(o)&&(t.set(o,e[o]),this.activated&&this.pendingAttributes.push([\"data-\".concat(o),\"\".concat(e[o])]))}},n.prototype.updateAttribute=function(e,t){t!==this.attributes.get(e)&&(this.attributes.set(e,t),this.activated&&this.pendingAttributes.push([e,\"\".concat(t)]))},n.prototype.getChildNodes=function(){return function(e,t,n){for(var r,o=[],i=e,s=null;i&&!t(i);){switch(i.eType){case 1:case 2:null===s&&o.push(n.getZNodeDebugInfo(i));break;case 0:var a=i.root.textContent;null===s&&\"b\"===a[0]?s=parseInt(a.slice(2),10):null!==s&&a===(r=s,\"\".concat(\"e\",\":\").concat(r))&&(o.push(n.getZNodeComponentDebugInfo(s)),s=null)}i=i.nextSibling}return o}(this.node.firstChild,(function(){return!1}),this.devtool)},n.prototype.serialize=function(e){this.activated=!0;var t,n=this.getChildNodes(),r=n.length;return e>0&&r&&(t=n.map((function(t){return t.serialize(e-1)}))),t||1!==r||n[0].nodeType!==An.Text||(t=[n[0].serialize(0)]),t&&t.length&&(this.childrenActivated=!0),{attributes:this.getAllAttributes(),backendNodeId:this.nodeId,childNodeCount:r,children:t,localName:this.nodeName.toLowerCase(),nodeId:this.nodeId,nodeName:this.nodeName,nodeType:1,nodeValue:\"\",parentId:this.getParentNodeId(),pseudoElements:this.getPseudoElements(),shadowRoots:this.devtool.shadowRootElementsEnabled?[{childNodeCount:1,localName:\"\",nodeId:this.shadowRootNodeId,nodeName:\"#document-fragment\",nodeType:11,nodeValue:\"\",shadowRootType:\"dom\"}]:void 0}},n.prototype.getAllAttributes=function(){var e=[];return this.attrClass&&e.push(\"class\",\"\".concat(this.attrClass)),this.attrStyle&&e.push(\"style\",\"\".concat(this.attrStyle)),this.properties.forEach((function(t,n){e.push(n,\"\".concat(t))})),this.attributes.forEach((function(t,n){e.push(n,\"\".concat(t))})),this.dataset.forEach((function(t,n){e.push(\"data-\".concat(n),\"\".concat(t))})),e},n.prototype.getChildNodeCount=function(){return this.getChildNodes().length},n.prototype.onAttributeModifiedByEngine=function(e,t){this.devtool.sendMessage(\"DOM.attributeModified\",{name:e,nodeId:this.nodeId,value:\"\".concat(t)})},n.prototype.getPseudoElements=function(){return[]}}(ur),function(e){function n(t,n,r,o){var i=e.call(this,t,n)||this;return i.devtool=t,i.node=n,i.nodeId=r,i.shadowSlotNodeId=o,i.nodeType=An.Text,i.activated=!1,i.nodeName=\"#text\",i.dom=t.getDOMNodeDebugInfo(n.root,i),i}t(n,e),n.prototype.getPlatformRootDOM=function(){return this.node.root},n.prototype.serialize=function(e){return this.activated=!0,{backendNodeId:this.nodeId,childNodeCount:0,localName:\"\",nodeId:this.nodeId,nodeName:this.nodeName,nodeType:3,nodeValue:this.node.root.textContent,parentId:this.getParentNodeId()}}}(ur),function(e){e[e.FunctionComponent=0]=\"FunctionComponent\",e[e.ClassComponent=1]=\"ClassComponent\",e[e.IndeterminateComponent=2]=\"IndeterminateComponent\",e[e.HostRoot=3]=\"HostRoot\",e[e.HostPortal=4]=\"HostPortal\",e[e.HostComponent=5]=\"HostComponent\",e[e.HostText=6]=\"HostText\",e[e.Fragment=7]=\"Fragment\",e[e.Mode=8]=\"Mode\",e[e.ContextConsumer=9]=\"ContextConsumer\",e[e.ContextProvider=10]=\"ContextProvider\",e[e.ForwardRef=11]=\"ForwardRef\",e[e.Profiler=12]=\"Profiler\",e[e.SuspenseComponent=13]=\"SuspenseComponent\",e[e.MemoComponent=14]=\"MemoComponent\",e[e.SimpleMemoComponent=15]=\"SimpleMemoComponent\",e[e.LazyComponent=16]=\"LazyComponent\",e[e.IncompleteClassComponent=17]=\"IncompleteClassComponent\"}(ar||(ar={}));var Ir=Object.freeze({__proto__:null,enable:function(e,t,n){n(void 0,{})},markUndoableState:function(e,t,n){n(void 0,{})},setNodeName:function(e,t,n){n(-32e3)},pushNodesByBackendIdsToFrontend:function(e,t,n){n(void 0,{nodeIds:t.backendNodeIds})},requestChildNodes:function(e,t,n){var r=t.nodeId,o=e.getFiberNodeById(r);if(o){var i=Sr(e,o,1);i&&i.children&&e.sendMessage(\"DOM.setChildNodes\",{nodes:i.children,parentId:r})}else console.warn(\"requestChildNodes node not exists\",r);n(void 0,{})},getDocument:function(e,t,n){e.resetFiberSerializedState();var r=e.getPageComponent();if(r){var o=Sr(e,r,1);o.localName=o.nodeName=\"page\",o.attributes=[],n(void 0,{root:{backendNodeId:1,childNodeCount:1,children:[o],localName:\"\",nodeId:1,nodeName:\"#document\",nodeType:9,nodeValue:\"\"}})}else{n(void 0,{root:{backendNodeId:1,childNodeCount:1,children:[{attributes:[],backendNodeId:2,childNodeCount:0,localName:\"page-not-found\",nodeId:2,nodeName:\"page-not-found\",nodeType:1,nodeValue:\"\",parentId:1}],localName:\"\",nodeId:1,nodeName:\"#document\",nodeType:9,nodeValue:\"\"}})}Gt().forEach((function(t){e.sendMessageWithPriority(\"CSS.styleSheetRemoved\",{styleSheetId:t.styleSheetId}),e.sendMessageWithPriority(\"CSS.styleSheetAdded\",{header:Jt(t)})}))},setAttributesAsText:function(e,t,n){var r=t.nodeId,o=t.text,i=t.name,s=e.getFiberNodeById(r);if(s&&s.memoizedProps){var a=$t(o);if(\"class\"===i){if((h=fr(s))&&h.stateNode&&h.stateNode.classList){var u=h.stateNode,c=h.memoizedProps.className||\"\";u.className=c;var l=s.memoizedProps.className||\"\";if(l)try{l.split(/\\s/).filter(Boolean).forEach((function(e){u.classList.remove(e)}))}catch(e){console.warn(\"setAttributesAsText remove class error, className=\"+l)}var d=a.class||\"\";d&&d.split(/\\s/).filter(Boolean).forEach((function(e){u.classList.add(e)})),e.sendMessage(\"DOM.attributeModified\",{name:i,nodeId:r,value:d})}}else if(\"style\"===i){var h;if((h=fr(s))&&h.stateNode&&h.stateNode.nodeType===Node.ELEMENT_NODE)h.stateNode.setAttribute(i,a.style),e.sendMessage(\"DOM.attributeModified\",{name:i,nodeId:r,value:a.style})}}n(void 0,{})},setNodeValue:function(e,t,n){var r=t.nodeId,o=t.value,i=e.getFiberNodeById(r);if(i&&i.tag===ar.HostText)return i.stateNode.textContent=o,n(void 0,{}),void e.sendMessage(\"DOM.characterDataModified\",{characterData:o,nodeId:r});n(-32e3,{})}});function kr(e,t){if(e&&lr(e)){var n=gr(e);if(n&&n.nodeType===Node.ELEMENT_NODE)return Qt({getInlineStyle:function(){return n.getAttribute(\"style\")||\"\"},inlineStyleSheetId:\"2000.\"+t})}}var Cr=Object.freeze({__proto__:null,enable:function(e,t,n){n(void 0,{})},getMatchedStylesForNode:function(e,t,n){var r=t.nodeId,o=e.getFiberNodeById(r),i={matchedCSSRules:[]};if(o&&lr(o)){var s=gr(o);if(s&&s.nodeType===Node.ELEMENT_NODE){Xt((function(e,t){Et(s,e.selector)&&i.matchedCSSRules.push(zt(e,s,t))}));var a=kr(o,r);a&&(i.inlineStyle=a)}}if(i.matchedCSSRules.length)try{i.matchedCSSRules=Tt(i.matchedCSSRules)}catch(e){}n(void 0,i)},setStyleTexts:function(e,t,n){var r=[];t.edits.forEach((function(t){var n=t.styleSheetId;if(0===n.indexOf(\"2000.\")){var o=Number(n.replace(\"2000.\",\"\")),i=e.getFiberNodeById(o);if(i){var s=gr(i);if(s&&s.nodeType===Node.ELEMENT_NODE){s.setAttribute(\"style\",t.text);var a=kr(i,o);a&&r.push(a)}}}else{t.range.startLine+=1,t.range.startColumn+=1;var u=Kt(n,t.range,t.text);u&&r.push(u)}})),n(void 0,{styles:r})},getComputedStyleForNode:function(e,t,n){var r=t.nodeId,o=e.getFiberNodeById(r),i=[];if(o&&lr(o)){var s=gr(o);if(s&&s.nodeType===Node.ELEMENT_NODE){var a=getComputedStyle(s);i=Array.from(a).map((function(e){return{name:e,value:a[e]}}))}}n(void 0,{computedStyle:i})},getInlineStylesForNode:function(e,t,n){var r,o=t.nodeId,i=e.getFiberNodeById(o);if(i&&lr(i)){var s=gr(i);if(s&&s.nodeType===Node.ELEMENT_NODE){r={cssProperties:[],cssText:\"\",range:{endColumn:0,endLine:0,startColumn:0,startLine:0},shorthandEntries:[],styleSheetId:\"2000.\"+o};var a=kr(i,o);a&&(r=a)}}r?n(void 0,{inlineStyle:r}):n(-32e3)},getStyleSheetText:function(e,t,n){var r=\"\",o=Yt(t.styleSheetId);o&&(r=o.ownerNode.textContent||\"\"),n(void 0,{text:r})}});var Er=Object.freeze({__proto__:null,enable:function(e,t,n){n(void 0,{})},hideHighlight:function(e,t,n){e.getOverlayManager().hidehighlight(),n(void 0,{})},highlightNode:function(e,t,n){var r=t.nodeId,o=t.highlightConfig;if(t.selector)n(void 0,{});else{var i=e.getFiberNodeById(r);if(i){var s=gr(i);s&&s.nodeType===Node.ELEMENT_NODE&&e.getOverlayManager().highlightNode(s,o)}n(void 0,{})}},setInspectMode:function(e,t,n){var r=t.mode,o=t.highlightConfig;\"none\"===r?e.getOverlayManager().leaveInspectMode():e.getOverlayManager().enterInspectMode(o),n(void 0,{})}});var Tr=Object.freeze({__proto__:null,getComponentData:function(e,t,n){var r=t.nodeId,o=e.getFiberNodeById(r);o&&hr(o)?(e.activatedCustomComponentId=r,n(void 0,{data:ir(o.memoizedState&&o.memoizedState.data||{}).data,props:ir(yr(o.memoizedProps||{})).data})):(e.activatedCustomComponentId=void 0,n(void 0,{}))}}),xr=Object.freeze({__proto__:null,Elements:Tr}),Or=Object.freeze({__proto__:null,DOM:Ir,CSS:Cr,Overlay:Er,Tiny:xr});function Nr(e,t){var n=t.current,r=n.alternate;if(r){var o=null!=r.memoizedState&&null!=r.memoizedState.element,i=null!=n.memoizedState&&null!=n.memoizedState.element;!o&&i?Lr(e,n):o&&i&&function e(t,n,r){if(pr(n)){var o=r?t.getFiberId(r):0,i=t.getFiberId(n);if(r&&o&&!i){if(t.recordMount(n),mr(r)&&(4==(4&n.effectTag)||1==(1&n.effectTag))){var s=t.activatedCustomComponentId===o;n.memoizedProps&&r.memoizedProps&&n.memoizedProps!==r.memoizedProps&&\"object\"==typeof n.memoizedProps&&Object.keys(n.memoizedProps).forEach((function(e){if(\"children\"!==e&&n.memoizedProps[e]!==r.memoizedProps[e]){var i=or(e,n.memoizedProps[e]);2===i.length&&t.sendMessage(\"DOM.attributeModified\",{name:i[0],nodeId:o,value:i[1]}),s&&(Ar||(Ar=x(t.sendMessage.bind(t),500,setTimeout,clearTimeout)),Ar(\"Tiny.Elements.componentDataChanged\",{nodeId:o,props:ir(yr(n.memoizedProps||{})).data}))}})),s&&n.memoizedState&&r.memoizedState&&n.memoizedState.data!==r.memoizedState.data&&(Ar||(Ar=x(t.sendMessage.bind(t),500,setTimeout,clearTimeout)),Ar(\"Tiny.Elements.componentDataChanged\",{nodeId:o,data:ir(n.memoizedState.data||{}).data}))}}else o||i||(Lr(t,n),Pr.add(n))}var a=n.child;for(;a;)e(t,a,a.alternate),a=a.sibling}(e,n,r)}else Lr(e,n);!function(e){Mr.forEach((function(t){var n=t.nodeId,r=t.parentNodeId;e.sendMessage(\"DOM.childNodeRemoved\",{nodeId:n,parentNodeId:r})})),Mr.clear(),Pr.forEach((function(t){var n=vr(t);if(n&&mr(n)){var r=e.getFiberId(n),o=0;if(cr(n,(function(){o+=1})),function(e){var t;return Boolean(e.__debug_children_serialized||(null===(t=e.alternate)||void 0===t?void 0:t.__debug_children_serialized))}(n)){var i=function(e){var t=vr(e);if(!t)return null;var n=null,r=null;return cr(t,(function(t){t===e&&(r=n),n=t})),r}(t);e.sendMessage(\"DOM.childNodeInserted\",{node:Sr(e,t),parentNodeId:r,previousNodeId:i?e.getFiberId(i):0})}else e.sendMessage(\"DOM.childNodeCountUpdated\",{childNodeCount:o,nodeId:r})}})),Pr.clear()}(e)}var Ar,Mr=new Set,Pr=new Set;function Lr(e,t){pr(t)&&e.recordMount(t);for(var n=t.child;n;)Lr(e,n),n=n.sibling}function Dr(e){var t;window.__REACT_DEVTOOLS_GLOBAL_HOOK__&&console.warn(\"bugme ReactDevtoolHook has been injected\");var n={},r={supportsFiber:!0,inject:function(e){if(t)throw new Error(\"FiberRender has been already injected\");return t=e,r.uniqueFiberRenderer=e,1},onCommitFiberRoot:function(t,n){var o=n.current,i=e.getFiberRoot()===n,s=null==o.memoizedState||null==o.memoizedState.element;i||s?i&&s&&e.setFiberRoot():e.setFiberRoot(n),r.wasCommited||(r.wasCommited=!0,r.emit(\"first-commit\"));try{Nr(e,n)}catch(e){console.warn(e)}},onCommitFiberUnmount:function(t,n){try{!function(e,t){pr(t)&&(Array.from(Mr).some((function(e){if(function(e,t){for(var n=t.return;n;){if(n===e)return!0;n=n.return}return!1}(e.node,t))return!0}))||Mr.add({node:t,nodeId:e.getFiberId(t),parentNodeId:e.getFiberId(vr(t))}))}(e,n)}catch(e){console.warn(e)}},wasCommited:!1,on:function(e,t){n[e]||(n[e]=[]),n[e].push(t)},off:function(e,t){var r=n[e];if(r){var o=r.indexOf(t);-1!==o&&r.splice(o,1),r.length||delete n[e]}},emit:function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var o=n[e];o&&o.forEach((function(e){e.apply(void 0,t)}))}};window.__REACT_DEVTOOLS_GLOBAL_HOOK__=r}var Br=function(e){function n(){var t,n=e.call(this)||this;return n.fiberRenderer=null===(t=window.__REACT_DEVTOOLS_GLOBAL_HOOK__)||void 0===t?void 0:t.uniqueFiberRenderer,n}return t(n,e),n.prototype.bindBridge=function(e){this.bridge=e},n.prototype.handleInspectMouseOver=function(e){var t=this,n=e.target;if(this.fiberRenderer&&n.nodeType===Node.ELEMENT_NODE){var r=this.fiberRenderer.findFiberByHostInstance(n);if(r){var o=vr(r);if(o){if(!this.bridge.getFiberId(o)&&this.bridge.getFiberId(o.alternate)&&(o=o.alternate),this.highlightNode(n,this.inspectModeHighlightConfig),!mr(o)){for(var i=[],s=vr(o);s&&!mr(s);)i.unshift(s),s=vr(s);s&&i.unshift(s),i.forEach((function(e){var n=Sr(t.bridge,e,1);n&&n.children&&t.bridge.sendMessage(\"DOM.setChildNodes\",{nodes:n.children,parentId:n.nodeId})}))}var a=this.bridge.getFiberId(this.bridge.getPrimaryFiber(o));a&&this.bridge.sendMessage(\"Overlay.nodeHighlightRequested\",{nodeId:a})}}}},n.prototype.handleInspectClick=function(e){e.stopPropagation(),this.hidehighlight(),this.leaveInspectMode();var t=e.target;if(this.fiberRenderer&&t.nodeType===Node.ELEMENT_NODE){var n=this.fiberRenderer.findFiberByHostInstance(t);if(n){var r=vr(n);if(r){var o=this.bridge.getFiberId(this.bridge.getPrimaryFiber(r));o&&this.bridge.sendMessage(\"Overlay.inspectNodeRequested\",{backendNodeId:o})}}}},n}(Nn),Rr=2;var Fr,jr,Ur,zr,Hr,qr=function(){function e(e){var t=this;this.connection=e,this.fiberToIdMap=new Map,this.idToFiberMap=new Map,this.connection.onMessage((function(e,n,r){for(var o=e.split(\".\"),i=Or,s=0,a=o;s<a.length;s++){if(!(i=i[a[s]]))break}i?i(t,n,r):console.warn(\"unhandled protocol\",e)})),Dr(this)}return e.prototype.setFiberRoot=function(e){this.uniqueFiberRoot=e},e.prototype.getFiberRoot=function(){return this.uniqueFiberRoot},e.prototype.sendMessage=function(e,t){this.connection.sendSocketMessage(JSON.stringify({method:e,params:t}))},e.prototype.sendMessageWithPriority=function(e,t){this.connection.sendSocketMessage(JSON.stringify({method:e,params:t}),!0)},e.prototype.getPageComponent=function(){if(!this.uniqueFiberRoot)return null;for(var e=this.uniqueFiberRoot.current;e&&(!e.type||\"PageComponent\"!==e.type.displayName);)e=e.child;return e},e.prototype.recordMount=function(e){if(!this.getFiberId(e)){var t=e.alternate;if(t&&this.fiberToIdMap.has(t)){var n=this.fiberToIdMap.get(t);return this.fiberToIdMap.delete(t),this.fiberToIdMap.set(e,n),void this.idToFiberMap.set(n,e)}var r=Rr++;this.fiberToIdMap.set(e,r),this.idToFiberMap.set(r,e)}},e.prototype.recordUnMount=function(e){},e.prototype.getFiberId=function(e){return this.fiberToIdMap.get(e)||0},e.prototype.getPrimaryFiber=function(e){if(this.fiberToIdMap.has(e))return e;var t=e.alternate;return t&&this.fiberToIdMap.has(t)?t:e},e.prototype.getFiberNodeById=function(e){return this.idToFiberMap.get(e)},e.prototype.resetFiberSerializedState=function(){this.idToFiberMap.forEach((function(e){e.__debug_serialized=!1,e.__debug_children_serialized&&(e.__debug_children_serialized=!1),e.alternate&&(e.alternate.__debug_serialized=!1,e.alternate.__debug_children_serialized&&(e.alternate.__debug_children_serialized=!1))}))},e.prototype.getOverlayManager=function(){return this.overlayManager||(this.overlayManager=new Br,this.overlayManager.bindBridge(this)),this.overlayManager},e}();function Zr(){Ur=new D,Hr=new qr(Ur),function(){o(this,void 0,void 0,(function(){var e;return i(this,(function(t){switch(t.label){case 0:return[4,_()];case 1:return t.sent(),T(window.AlipayJSBridge.startupParams||{})?[2]:(jr=String(window.APVIEWID),Fr=S(),(e=I(Fr,jr))?(Ur.setUrl(e),(zr=new L(Ur,Fr,jr)).setup(),zr.resetAxmlVisitedState=function(){Hr&&Hr.resetFiberSerializedState()},[2]):[2])}}))}))}(),Br.initGlobalEventListener()}var Wr,Gr,Yr,Vr,Jr,Xr,Qr=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return t(n,e),n.prototype.setupWithClientProxy=function(t){this.clientProxy=t,e.prototype.setup.call(this)},n.prototype.startDebugSession=function(){var t=this;if(e.prototype.startDebugSession.call(this),this.clientProxy.platform.renderMountCommited)this.checkHostBeforeAgentConnect();else{var n=this.clientProxy.platform.afterRenderMountCommit;this.clientProxy.platform.afterRenderMountCommit=function(){n.call(t.clientProxy.platform),t.checkHostBeforeAgentConnect()}}},n}(b),$r=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.messageBeforeHandler=[],t.isActive=!0,t.onCloseHandlerSet=new Set,t}return t(n,e),Object.defineProperty(n.prototype,\"isActivated\",{get:function(){return this.isActive},enumerable:!1,configurable:!0}),n.prototype.sendMessage=function(e,t,n){this.sendSocketMessage(JSON.stringify({method:e,params:t}),n)},n.prototype.onMessage=function(e){var t=this;this.devtoolHandler=e,this.messageBeforeHandler.length&&(this.messageBeforeHandler.forEach((function(e){t.handleMessage(e)})),this.messageBeforeHandler=[])},n.prototype.sendSocketMessage=function(t,n){(this.isActive||n)&&e.prototype.sendSocketMessage.call(this,t)},n.prototype.activate=function(){this.isActive=!0},n.prototype.inActivate=function(){this.isActive=!1},n.prototype.addOnCloseHandler=function(e){this.onCloseHandlerSet.add(e)},n.prototype.onSocketMessage=function(e){\"HOST:LEAVE\"!==e||C()?this.devtoolHandler?this.handleMessage(e):this.messageBeforeHandler.push(e):E()},n.prototype.onSocketClose=function(){e.prototype.onSocketClose.call(this),this.onCloseHandlerSet.forEach((function(e){try{e()}catch(e){console.warn(e)}}))},n.prototype.handleMessage=function(e){var t,n=this;try{t=JSON.parse(e)}catch(t){return void console.warn(\"invalid json message: \",e)}t.sessionId||(t.method?this.devtoolHandler(t.method,t.params,(function(e,r){e?n.sendSocketMessage(JSON.stringify({id:t.id,error:{code:e,message:\"\"+e}}),!0):n.sendSocketMessage(JSON.stringify({id:t.id,result:r}),!0)})):console.warn(\"invalid message: \",e))},n}(M);function Kr(){Yr=new $r,window.__APPXNG_DEVTOOL_HOOK__={init:eo,connection:Yr}}function eo(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Jr=e[0],Xr=Bn.apply(null,e),to(),Xr}function to(){var e;return o(this,void 0,void 0,(function(){var t;return i(this,(function(n){switch(n.label){case 0:return[4,_()];case 1:return n.sent(),Gr=String(window.APVIEWID),Wr=S(),(t=I(Wr,Gr))?(Yr.setUrl(t),(Vr=new Qr(Yr,Wr,Gr)).setupWithClientProxy(Jr),Vr.resetAxmlVisitedState=function(){Xr&&Xr.resetZNodeActivatedState()},Xr&&window.AlipayJSBridge&&function(e){return!0===e||\"yes\"===e||\"YES\"===e}(null===(e=window.AlipayJSBridge.startupParams)||void 0===e?void 0:e.devtoolShadowRootEnabled)&&Xr.enableShadowRootElements(),[2]):[2]}}))}))}try{window.__BUGME_ON__||(window.__BUGME_ON__=!0,function(){if(\"undefined\"!=typeof AlipayJSBridge&&AlipayJSBridge.startupParams){var e=T(AlipayJSBridge.startupParams);e?Kr():Zr(),console.debug(\"[DEBUG] uniweb - isNg: \"+e)}else Kr(),Zr(),console.debug(\"[DEBUG] uniweb - concurrent\")}())}catch(e){console.error(e)}}();\n</script>","bugmeRPreview":"","bugmeWRemote":"!function(){\"use strict\";var EWorkerAppEvent,EBugmePanelId;!function(e){e.PageResume=\"pageResume\",e.PagePause=\"pagePause\",e.DebugPanelClick=\"tinyRemoteDebugPanelButtonClick\",e.DebugConsole=\"onTinyDebugConsole\",e.DebugNetworkRequest=\"tinyAppRemoteDebug_network_request\",e.DebugNetworkResponse=\"tinyAppRemoteDebug_network_response\",e.DebugNetworkError=\"tinyAppRemoteDebug_network_error\",e.DebugStorageChanged=\"tinyAppRemoteDebug_storage\",e.MessageFromVConsole=\"onMessageFromVConsole\"}(EWorkerAppEvent||(EWorkerAppEvent={})),function(e){e.Data=\"data\",e.Storage=\"storage\",e.AppLog=\"applog\"}(EBugmePanelId||(EBugmePanelId={}));var counter=Date.now()%1e9;function WeakSet$1(e){this.name=\"__st\"+(1e9*Math.random()>>>0)+counter+++\"__\",e&&e.forEach&&e.forEach(this.add,this)}var proto=WeakSet$1.prototype;proto.add=function(e){var t=this.name;return e[t]||Object.defineProperty(e,t,{value:!0,writable:!0}),this},proto.delete=function(e){return!!e[this.name]&&(e[this.name]=void 0,!0)},proto.has=function(e){return!!e[this.name]};var weakset=WeakSet$1,workerGlobal=self;function noop(){}var DEBUG_TAG=\"[DEBUG]\";function error(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];console.error.apply(console,[DEBUG_TAG].concat(e))}var debug=noop,originImportScripts=workerGlobal.importScripts,isAppXImportHooked=!1,appxLoadedCallbacks=[];function runAfterAppx(e){void 0!==workerGlobal.AFAppX?e():(appxLoadedCallbacks.push(e),isAppXImportHooked||(isAppXImportHooked=!0,workerGlobal.importScripts=function(e){originImportScripts(e),/af-appx\\.worker\\.min\\.js$/.test(e)&&(appxLoadedCallbacks.forEach((function(e){return e()})),appxLoadedCallbacks=[])}))}function runAfterAppXBridgeReady(e){if(\"undefined\"==typeof AFAppX&&workerGlobal.AFAppX&&(AFAppX=workerGlobal.AFAppX),\"undefined\"==typeof $AppxFramework)e();else if(AFAppX.Plugin){var t=AFAppX.Plugin;AFAppX.Plugin=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var o=n[0];if(\"object\"==typeof o&&o.run){var a=o.run;o.run=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e(),a.apply(o,t)}}return t.apply(AFAppX,n)}}else if($AppxFramework.bootstrapInAppContextByProtocol){var n=$AppxFramework.bootstrapInAppContextByProtocol;$AppxFramework.bootstrapInAppContextByProtocol=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var o=t[0];if(\"object\"==typeof o){var a=o.callback;if(a&&(o.callback=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e(),a.apply(this,t)}),o.pageInfo){var i=o.pageInfo.init;i&&(o.pageInfo.init=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e(),i.apply(this,t)})}}return n.apply($AppxFramework,t)}}}function getStartupParams$1(){return workerGlobal.__appxStartupParams&&\"appId\"in workerGlobal.__appxStartupParams?workerGlobal.__appxStartupParams:workerGlobal.AFAppX&&workerGlobal.AFAppX.bridge&&workerGlobal.AFAppX.bridge.callSync&&workerGlobal.AFAppX.bridge.callSync(\"getStartupParams\")||{}}function guardSingleMsgSize(e){var t=\"string\"==typeof e?e:JSON.stringify(e);return t.length>5e6?void debug(\"abort send websocket message due to size:\",t.length):t}function createWeakSet$1(){return\"undefined\"==typeof WeakSet?new weakset:new WeakSet}var getCircularReplacer$1=function(){var e=createWeakSet$1();return function(t,n){if(\"object\"==typeof n&&null!==n)try{if(e.has(n))return;e.add(n)}catch(e){console.error(e)}return n}};function circularJSONStringify$1(e){return JSON.stringify(e,getCircularReplacer$1())}var extendStatics=function(e,t){return(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function __extends(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Class extends value \"+String(t)+\" is not a constructor or null\");function n(){this.constructor=e}extendStatics(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var __assign=function(){return(__assign=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},FunctionApply=Function.prototype.apply.call.bind(Function.prototype.apply);function functionApply(e,t,n){return FunctionApply(e,t,n)}function throttle$1(e,t,n,r,o){var a,i,s=null,c=0;o||(o={});var p=function(){c=!1===o.leading?0:Date.now(),s=null,i=functionApply(e,null,a),a=null};return function(){for(var u=[],l=0;l<arguments.length;l++)u[l]=arguments[l];var g=Date.now();c||!1!==o.leading||(c=g);var f=t-(g-c);return a=u,f<=0||f>t?(r(s),s=null,c=g,i=functionApply(e,null,a),a=null):s||!1===o.trailing||(s=n(p,f)),i}}var weakElementKey=\"__weak_set_key__yek_tes_kaew__\",weakSetKey=1,WeakMapKlass,WeakSetKlass;function getWeakSetPolyfillConstructor(){return function(){function e(){this.elementKey=weakElementKey+weakSetKey++}return e.prototype.has=function(e){return 1===e[this.elementKey]},e.prototype.add=function(e){return e[this.elementKey]=1,this},e.prototype.delete=function(e){e[this.elementKey]=null},e}()}function getWeakMapPolyfillConstructor(){var e=Object.prototype.hasOwnProperty,t=function(e,t,n){Object.defineProperty?Object.defineProperty(e,t,{configurable:!0,value:n,writable:!0}):e[t]=n};function n(e){return Object(e)===e}function r(){if(void 0===this)throw new TypeError(\"Constructor WeakMap requires 'new'\");if(t(this,\"_id\",a(\"_WeakMap\")),arguments.length>0)throw new TypeError(\"WeakMap iterable is not supported\")}function o(t,r){if(!n(t)||!e.call(t,\"_id\"))throw new TypeError(r+\" method called on incompatible receiver \"+typeof t)}function a(e){return e+\"_\"+i()+\".\"+i()}function i(){return Math.random().toString().substring(2)}return t(r.prototype,\"delete\",(function(e){if(o(this,\"delete\"),!n(e))return!1;var t=e[this._id];return!(!t||t[0]!==e)&&(delete e[this._id],!0)})),t(r.prototype,\"get\",(function(e){if(o(this,\"get\"),n(e)){var t=e[this._id];return t&&t[0]===e?t[1]:void 0}})),t(r.prototype,\"has\",(function(e){if(o(this,\"has\"),!n(e))return!1;var t=e[this._id];return!(!t||t[0]!==e)})),t(r.prototype,\"set\",(function(e,r){if(o(this,\"set\"),!n(e))throw new TypeError(\"Invalid value used as weak map key\");var a=e[this._id];return a&&a[0]===e?(a[1]=r,this):(t(e,this._id,[e,r]),this)})),t(r,\"_polyfill\",!0),r}function getWeakMapConstructorMayBePolyfill$1(){var e=\"undefined\"!=typeof WeakMap;WeakMapKlass=e?WeakMap:getWeakMapPolyfillConstructor()}function createWeakMap(){return WeakMapKlass||getWeakMapConstructorMayBePolyfill$1(),new WeakMapKlass}function getWeakMapConstructorMayBePolyfill(){var e=\"undefined\"!=typeof WeakSet;WeakSetKlass=e?WeakSet:getWeakSetPolyfillConstructor()}function createWeakSet(){return WeakSetKlass||getWeakMapConstructorMayBePolyfill(),new WeakSetKlass}createWeakMap();var InterceptContext=function(){function e(e,t){var n=this;this.interceptors=e,this.callback=t,this.nextRequestId=1e5,this.notifyDataChange=throttle$1((function(){n.callback({ext:{origin:\"data\"},method:\"Tiny.Data.dataChanged\"})}),300,setTimeout,clearTimeout)}return e.prototype.getNextRequestId=function(){return++this.nextRequestId},e}(),getCircularReplacer=function(){var e=createWeakSet();return function(t,n){if(\"object\"==typeof n&&null!==n){if(e.has(n))return;e.add(n)}return n}};function circularJSONStringify(e){return JSON.stringify(e,getCircularReplacer())}var precisionTimestampBasis=0;function resetPrecisionTimestampBasis(){precisionTimestampBasis=1e3*Date.now()-getPrecisionTimestamp()}var getPrecisionTimestamp=\"object\"==typeof performance&&performance&&\"function\"==typeof performance.now?function(){return 1e3*performance.now()+precisionTimestampBasis}:function(){return 1e3*Date.now()};function interceptLifecycle(e){e.interceptors.appLifecycleManagerInterceptor.before(\"performLifeHook\",(function(t,n){var r={aTime:getPrecisionTimestamp()/1e3,args:n,context:circularJSONStringify(normalizeAppLifecycleManagerThisContext(t))};onAppLifecycle(e,r)})),e.interceptors.pageLifecycleManagerInterceptor.before(\"performLifeHook\",(function(t,n){var r={aTime:getPrecisionTimestamp()/1e3,args:n,context:circularJSONStringify(normalizePageLifecycleManagerThisContext(t))};onPageLifecycle(e,r)}))}function onAppLifecycle(e,t){try{var n={ext:{origin:\"applog\"},method:\"MiniAppLog.\"+t.args[0],params:t};e.callback(n)}catch(e){}}function normalizeAppLifecycleManagerThisContext(e){var t=e.app;return{app:{appInstanceId:t.appInstanceId,initTime:t.initTime,launchOptions:t.getLaunchOptions(),launchTime:t.launchTime},state:e.state}}function onPageLifecycle(e,t){try{var n=getLifecycleName$1(t.args[0]);if(!n)return;var r={ext:{origin:\"applog\"},method:\"MiniAppLog.\"+n,params:t};e.callback(r),\"onPageShow\"===n&&e.notifyDataChange()}catch(e){}}function getLifecycleName$1(e){var t;switch(e){case 0:t=\"onPageLoad\";break;case 2:t=\"onPageReady\";break;case 1:t=\"onPageShow\";break;case 3:t=\"onPageHide\";break;case 4:t=\"onPageUnload\"}return t}function normalizePageLifecycleManagerThisContext(e){var t=e.page;return{page:{initTime:t.initTime,loadTime:t.loadTime,pageId:t.pageId,pagePath:t.pagePath,plugin:t.plugin},state:e.state}}function interceptJSAPI(e){e.interceptors.bridgeSyncCallContextMethodInterceptor.all(\"invoke\",(function(t,n){var r=e.getNextRequestId(),o=getPrecisionTimestamp()/1e3;return onApiSyncCall(e,{context:t,args:n,reqId:r,aTime:o}),[[r,o],n]}),(function(t,n,r,o){var a=n[0],i=a[0],s=a[1],c=n[1],p=getPrecisionTimestamp()/1e3;onApiSyncCallback(e,{context:t,args:c,reqId:i,result:r,bTime:p,aTime:s})})),e.interceptors.bridgeAsyncCallContextMethodInterceptor.before(\"invoke\",(function(t,n){var r=e.getNextRequestId(),o=getPrecisionTimestamp()/1e3;return t.__reqId=r,onApiCall(e,{context:t,args:n,reqId:r,aTime:o}),\"rpc\"===t.apiName&&(t.option.getResponse||(t.$$rpcGetResponseToTrue=!0,t.option=__assign(__assign({},t.option),{getResponse:!0}))),n})),e.interceptors.bridgeAsyncCallContextMethodInterceptor.before(\"dispatchResultCallback\",(function(t,n){var r=t.__reqId,o=getPrecisionTimestamp()/1e3;return onApiCallback(e,{context:t,args:n,reqId:r,bTime:o}),\"rpc\"===t.apiName&&t.$$rpcGetResponseToTrue&&void 0!==n[0].resData?[n[0].resData]:n}))}function onApiSyncCallback(e,t){try{var n={ext:{origin:\"applog\"},method:\"MiniAppLog.onApiSyncCallback\",params:minimizeApiHookInfo$1(t)};e.callback(n)}catch(e){}}function onApiSyncCall(e,t){try{var n={ext:{origin:\"applog\"},method:\"MiniAppLog.onApiSyncCall\",params:minimizeApiHookInfo$1(t)};e.callback(n)}catch(e){}}function onApiCall(e,t){try{var n={ext:{origin:\"applog\"},method:\"MiniAppLog.onApiCall\",params:minimizeApiHookInfo$1(t)};e.callback(n)}catch(e){}}function onApiCallback(e,t){try{var n={ext:{origin:\"applog\"},method:\"MiniAppLog.onApiCallback\",params:minimizeApiHookInfo$1(t)};e.callback(n)}catch(e){}}function minimizeApiHookInfo$1(e){if(e.context){var t=e.context,n=t.apiName,r=t.extraInfo,o=t.isMiniExtension,a=t.option,i=t.startTime,s=t.taskId,c=t.__reqId;return __assign(__assign({},e),{context:{__reqId:c,apiName:n,extraInfo:r,isMiniExtension:o,option:a,startTime:i,taskId:s}})}return e}var originalError=console.error;function interceptError(e){e.interceptors.appBaseInstanceInterceptor.after(\"reportError\",(function(e,t){t[0],onError({code:t[1],formatted:t[2]})}))}function onError(e){var t=new Error(e.formatted.message);t.stack=e.formatted.stack,setTimeout(originalError.bind(console,t),0)}function interceptSetData(e){e.interceptors.pageFlexibleLogicInstanceMethodInterceptor.all(\"setData\",(function(t,n){var r=e.getNextRequestId(),o=getPrecisionTimestamp()/1e3,a={aTime:o,args:n,context:circularJSONStringify(normalizePageLogicInstanceThisContext(t)),reqId:r};return onSetData(e,a),[[r,o],n]}),(function(t,n,r,o){var a=n[0],i=a[0],s=a[1],c=n[1],p=getPrecisionTimestamp()/1e3;onSetDataCallback(e,{aTime:s,args:c,bTime:p,context:circularJSONStringify(normalizePageLogicInstanceThisContext(t)),reqId:i})})),e.interceptors.componentFlexibleLogicInstanceMethodInterceptor.all(\"setData\",(function(t,n){var r=e.getNextRequestId(),o=getPrecisionTimestamp()/1e3;return onSetData(e,{aTime:o,args:n,context:circularJSONStringify(normalizeComponentLogicInstanceThisContext(t)),reqId:r}),[[r,o],n]}),(function(t,n,r,o){var a=n[0],i=a[0],s=a[1],c=n[1],p=getPrecisionTimestamp()/1e3;onSetDataCallback(e,{aTime:s,args:c,bTime:p,context:circularJSONStringify(normalizeComponentLogicInstanceThisContext(t)),reqId:i})}))}function onSetData(e,t){try{e.notifyDataChange();var n={ext:{origin:\"applog\"},method:\"MiniAppLog.onSetData\",params:minimizeSetDataInfo$1(t)};e.callback(n)}catch(e){}}function onSetDataCallback(e,t){try{var n={ext:{origin:\"applog\"},method:\"MiniAppLog.onSetDataCallback\",params:t};e.callback(n)}catch(e){}}function minimizeSetDataInfo$1(e){return e.context?e:{componentIs:e.component?e.component.is:void 0,isPage:e.isPage,option:e.options,pagePath:e.isPage?e.page.route:e.component.$page.route}}function normalizePageLogicInstanceThisContext(e){var t=e.page;return{page:{appInstanceId:t.appInstanceId,initTime:t.initTime,loadTime:t.loadTime},pageId:e.pageId,pagePath:e.pagePath}}function normalizeComponentLogicInstanceThisContext(e){var t=e.page;return{componentPath:e.componentPath,page:{appInstanceId:t.appInstanceId,initTime:t.initTime,loadTime:t.loadTime},pageId:t.pageId,pagePath:t.pagePath}}function setup(e,t,n){resetPrecisionTimestampBasis();var r=new InterceptContext(t,n);interceptSetData(r),interceptLifecycle(r),interceptJSAPI(r),interceptError(r)}var AgentContext=function(){this.channelConfigKey=\"0\",this.silentMode=!1,this.userAgent=\"undefined\"!=typeof navigator?navigator.swuserAgent||navigator.userAgent:\"\",this.isIOS=/iPhone|iPad|iOS/i.test(this.userAgent),this.isLyra=/LyraVM/i.test(this.userAgent),this.startupParams=getStartupParams$1(),this.channelId=this.startupParams.channelId||\"\",this.channel=this.startupParams.channel||\"\",(this.isLyra||this.startupParams.__bugmeSlientMode)&&(this.silentMode=!0),this.startupParams.remoteCh&&(this.channelConfigKey=String(this.startupParams.remoteCh))},NetworkCollection=function(){function e(){this.records=new Map}return e.prototype.setRequest=function(e,t){this.records.set(e,__assign(__assign({},this.records.get(e)||{}),t))},e.prototype.getRequest=function(e){return this.records.get(e)},e.prototype.removeRequest=function(e){this.records.has(e)&&this.records.delete(e)},e}();function createProtocol4RequestWillBeSent(e){var t=(e.method||\"GET\").toUpperCase(),n=mapValueToString(e.headers),r=getTimestamp();return{method:\"Network.requestWillBeSent\",params:{documentURL:\"\",loaderId:\"\",requestId:e.requestId,request:{method:t,url:e.url,headers:n,postData:e.postBody,mixedContentType:\"none\",initialPriority:\"High\",isLinkPreload:!1,referrerPolicy:\"origin\"},wallTime:r,initiator:{type:\"script\"},timestamp:r,type:\"XHR\"}}}function createProtocol4ResponseReceived(e,t){var n=e.profile,r=e.headers,o=n&&n.totalTime,a=getTimestamp(),i=a-(o?n.totalTime-n.Waiting-n.domainLookup-n.connect-n.SSLconnection:0)/1e3;return{method:\"Network.responseReceived\",params:{requestId:e.requestId,loaderId:\"\",type:\"XHR\",timestamp:i,response:{url:t.url||\"\",status:Number(e.status),headers:mapValueToString(r),requestHeaders:t.requestHeaders,connectionReused:!1,connectionId:1e3,encodedDataLength:0,securityState:\"unknown\",statusText:\"\",protocol:\"\",mimeType:r[\"Content-Type\"]||r[\"content-type\"],timing:o?createResourceTiming(n,a-n.totalTime/1e3):void 0}}}}function createProtocol4LoadingFinished(e){return{method:\"Network.loadingFinished\",params:{requestId:e.requestId,timestamp:getTimestamp(),encodedDataLength:0}}}function createProtocol4LoadingFailed(e){return{method:\"Networkw.loadingFailed\",params:{canceled:!1,errorText:e.errorMsg||\"\",requestId:e.requestId,timestamp:getTimestamp(),type:\"XHR\"}}}function mapValueToString(e){if(!e||\"object\"!=typeof e)return{};var t={};return Object.keys(e).forEach((function(n){t[n]=\"\"+e[n]})),t}function getTimestamp(){return Date.now()/1e3}function createResourceTiming(e,t){var n=e.domainLookup,r=e.connect,o=e.SSLconnection,a=n+r+o;return{requestTime:t,dnsStart:n?1e-4:-1,dnsEnd:n?n:-1,connectStart:n||-1,connectEnd:a||-1,sslStart:a-o||-1,sslEnd:a||-1,sendStart:a?-1:1e-4,sendEnd:a?-1:1e-4,receiveHeadersEnd:a+e.Waiting,proxyStart:-1,proxyEnd:-1,workerStart:-1,workerReady:-1,workerFetchStart:-1,workerRespondWithSettled:-1,pushStart:0,pushEnd:0}}var MAX_QUEUE_SIZE=1e8,MessageQueue=function(){function e(e){void 0===e&&(e=[]),this._messageQueue=e,this._queueSize=0,this.isApplogEnabled=!1}return e.prototype.push=function(e){this._queueSize;var t=guardSingleMsgSize(e);null!=t&&(this._messageQueue.push(t),this._queueSize+=t.length)},e.prototype.sendQueuedMessages=function(){if(0!==this._messageQueue.length){var e=getInjector().getWorkerSocket();e&&(this._messageQueue.forEach((function(t){return e.send(t)})),this._messageQueue=[],this._queueSize=0)}},e.prototype.setApplogEnabled=function(e){this.isApplogEnabled=e},e}(),channelDomainConfig={0:{openchannel:\"openchannel.alipay.com\",hpmweb:\"hpmweb.alipay.com\"},1:{openchannel:\"miniprogram.alipay.com\",hpmweb:\"hpmweb.alipay.com\"},2:{openchannel:\"openchannel-pre.alipay.com\",hpmweb:\"hpmweb-pre.alipay.com\"}};function throttle(e,t,n,r,o){var a,i,s=null,c=0;o||(o={});var p=function(){c=!1===o.leading?0:Date.now(),s=null,i=e.apply(null,a),a=null};return function(){for(var u=[],l=0;l<arguments.length;l++)u[l]=arguments[l];var g=Date.now();c||!1!==o.leading||(c=g);var f=t-(g-c);return a=u,f<=0||f>t?(r(s),s=null,c=g,i=e.apply(null,a),a=null):s||!1===o.trailing||(s=n(p,f)),i}}function debounce(e,t,n,r){var o;return function(){for(var a=[],i=0;i<arguments.length;i++)a[i]=arguments[i];r(o),o=n((function(){e.apply(null,a)}),t)}}function compareVersion(e,t){if(e&&t){for(var n=stringToIntArraySplitBy(e,\".\"),r=stringToIntArraySplitBy(t,\".\"),o=0,a=0,i=void 0,s=void 0;a<n.length;a++){if((i=r[a]||0)>(s=n[a]||0)){o=-1;break}if(i<s){o=1;break}}return o}return 0}function stringToIntArraySplitBy(e,t){for(var n=[],r=0,o=e.split(t);r<o.length;r++){var a=o[r];n.push(parseInt(a,10))}return n}var WebSocketBaseImpl=function(){function e(e){this.url=\"\",this.opened=!1,e&&(this.url=e),this.onSocketError=this.onSocketError.bind(this),this.onSocketClose=this.onSocketClose.bind(this),this.onSocketMessage=this.onSocketMessage.bind(this),this.onSocketOpen=this.onSocketOpen.bind(this)}return Object.defineProperty(e.prototype,\"isSocketOpened\",{get:function(){return this.opened},enumerable:!1,configurable:!0}),e.prototype.setUrl=function(e){this.url=e},e}(),internalWebSocket;\"undefined\"!=typeof WebSocket&&WebSocket.OPEN&&(internalWebSocket=WebSocket);var WebSocketBrowserImpl=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.messageBeforeSocketOpen=[],t}return __extends(t,e),t.prototype.open=function(){var e=this;if(!this.url)throw new Error(\"WebSocket url required\");this.socket=new internalWebSocket(this.url),this.socket.onopen=this.onSocketOpen,this.socket.onmessage=function(t){\"string\"==typeof t.data?e.onSocketMessage(t.data):console.warn(\"[DEBUG] invalid message\",t.data)},this.socket.onclose=this.onSocketClose,this.socket.onerror=this.onSocketError},t.prototype.close=function(){this.socket&&this.socket.close()},t.prototype.sendSocketMessage=function(e){var t=\"string\"==typeof e?e:JSON.stringify(e);t.length>5e6||(this.opened?this.socket.send(t):this.messageBeforeSocketOpen.push(t))},t.prototype.onSocketMessage=function(e){},t.prototype.onSocketOpen=function(){var e=this;this.opened=!0,this.messageBeforeSocketOpen.length&&(this.messageBeforeSocketOpen.forEach((function(t){e.sendSocketMessage(t)})),this.messageBeforeSocketOpen=[])},t.prototype.onSocketClose=function(){this.opened=!1,console.log(\"[DEBUG] connection closed\")},t.prototype.onSocketError=function(e){console.error(\"[DEBUG] connection onerror\",e)},t}(WebSocketBaseImpl);function getUserAgent(){return\"undefined\"!=typeof navigator&&(navigator.swuserAgent||navigator.userAgent)||\"\"}function getAriverVersion(e){var t=e.match(/Ariver\\/(\\d+\\.\\d+\\.\\d+)/);if(t)return t[1]}var WebSocketNativeImpl=function(e){function t(t){var n=e.call(this,t)||this;n.messageBeforeSocketOpen=[],n.useFromRemoteDebugFlag=!1;var r=getAriverVersion(getUserAgent());return r&&compareVersion(r,\"1.1.0\")>=0&&(n.useFromRemoteDebugFlag=!0),n}return __extends(t,e),t.prototype.open=function(){var e=this;this.socketTask=AFAppX.bridge.connectSocket({fromRemoteDebug:this.useFromRemoteDebugFlag,url:this.url,multiple:!0,fail:function(t){e.onSocketError(t)}}),this.socketTask.onOpen((function(){e.handleSocketOpen()})),this.socketTask.onError((function(t){e.onSocketError(t.data)})),this.socketTask.onClose((function(){e.opened=!1,e.onSocketClose()})),this.socketTask.onMessage((function(t){e.opened||e.handleSocketOpen(),e.onSocketMessage(t.data.data)}))},t.prototype.sendSocketMessage=function(e){var t=\"string\"==typeof e?e:JSON.stringify(e);t.length>5e6||(this.opened?this.socketTask.send({fromRemoteDebug:this.useFromRemoteDebugFlag,data:t,isBuffer:!1}):this.messageBeforeSocketOpen.push(t))},t.prototype.close=function(){this.opened&&this.socketTask.close({fromRemoteDebug:this.useFromRemoteDebugFlag})},t.prototype.onSocketMessage=function(e){},t.prototype.onSocketOpen=function(){},t.prototype.onSocketError=function(e){},t.prototype.onSocketClose=function(){},t.prototype.handleSocketOpen=function(){var e=this;this.opened||(this.opened=!0,this.messageBeforeSocketOpen.length&&(this.messageBeforeSocketOpen.forEach((function(t){e.sendSocketMessage(t)})),this.messageBeforeSocketOpen=[]),this.onSocketOpen())},t}(WebSocketBaseImpl),messages$1={\"本次真机调试已结束,请重新生成调试版本\":function(e){return\"本次真机调试已结束,请重新生成调试版本。\\n \"+e.reason},\"调试结束\":\"调试结束\",\"callExitApp_退出\":\"退出\",\"退出\":\"退出\",\"准备中\":\"准备中\",\"已断开\":\"已断开\",\"已连接\":\"已连接\",\"真机调试{text}\":function(e){return\"真机调试\"+e.text}},messages={\"本次真机调试已结束,请重新生成调试版本\":function(e){return\"Debug interrupted. Scan debug QR code to restart debugging.\"},\"调试结束\":\"Debugging Ended\",\"callExitApp_退出\":\"OK\",\"退出\":\"Done\",\"准备中\":\"Connecting\",\"已断开\":\"Disconnected\",\"已连接\":\"Connected\",\"真机调试{text}\":function(e){return\"\"+e.text}};function formatLocaleString(e){switch(e){case\"zhCN\":case\"zh-SG\":case\"zh-HK\":case\"zh-TW\":case\"zh-Hans\":case\"zh-CN\":return\"zhCN\";default:return\"enUS\"}}var I18NFormatter=function(){function e(e){var t={zhCN:messages$1,enUS:messages};this.i18nMessages=t[formatLocaleString(e)]}return e.getLocaleFromNavigator=function(){return formatLocaleString(navigator.language)},e.prototype.format=function(e,t){var n=this.i18nMessages[e];return\"string\"==typeof n?n:\"function\"==typeof n?n(t):e},e}(),globalInjector,Injector=function(){function e(){}return e.prototype.getAgentContext=function(){return this.agentContext||(this.agentContext=new AgentContext),this.agentContext},e.prototype.setWorkerSocket=function(e){this.workerSocket=e},e.prototype.getWorkerSocket=function(){return this.workerSocket},e.prototype.getNetworkRecorder=function(){return this.networkRecorder||(this.networkRecorder=new NetworkCollection),this.networkRecorder},e.prototype.getMessageQueue=function(){return null==this.messageQueue&&(this.messageQueue=new MessageQueue),this.messageQueue},e.prototype.setRuntime=function(e){this.runtime=e},e.prototype.getRuntime=function(){return this.runtime},e.prototype.getI18NFormatter=function(){return this.i18NFormatter||(this.i18NFormatter=new I18NFormatter(this.getLanguage())),this.i18NFormatter},e.prototype.getLanguage=function(){var e,t,n=null===(t=null===(e=this.runtime)||void 0===e?void 0:e.getEnv())||void 0===t?void 0:t.language;return n||this.getLanguageFromUA()},e.prototype.getLanguageFromUA=function(){if(!this.userAgent)return\"\";var e=this.userAgent.match(/Language\\/([\\w-]+)/);return e?e[1]:\"\"},Object.defineProperty(e.prototype,\"userAgent\",{get:function(){return\"undefined\"!=typeof navigator&&(navigator.swuserAgent||navigator.userAgent)||\"\"},enumerable:!1,configurable:!0}),e}();function getInjector(){return globalInjector||(globalInjector=new Injector),globalInjector}function sendOrQueueApplogMsg$1(e){try{var t=getInjector().getWorkerSocket(),n=getInjector().getMessageQueue();t&&n.isApplogEnabled?t.send(circularJSONStringify$1(e)):n.push(circularJSONStringify$1(e))}catch(e){}}function getHookFn(e){if(workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__&&\"function\"==typeof workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__[e])return workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__[e]}var throttledEmitDataChangedEvent=throttle((function(){var e=getInjector().getWorkerSocket();e&&e.send({method:\"Tiny.Data.dataChanged\",ext:{origin:EBugmePanelId.Data}})}),300,setTimeout,clearTimeout,{leading:!1});function getFn(e){if(workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__&&workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__[e]&&\"function\"==typeof workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__[e])return workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__[e]}function onErrorHook(e){var t=new Error(e.formatted.message);t.stack=e.formatted.stack,setTimeout(console.error.bind(console,t))}function registerLegacyAppxHook(){null==workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__&&(workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__={});var e={onSetData:getFn(\"onSetData\"),onSetDataCallback:getFn(\"onSetDataCallback\"),onApiSyncCall:getFn(\"onApiSyncCall\"),onApiSyncCallback:getFn(\"onApiSyncCallback\"),onApiCall:getFn(\"onApiCall\"),onApiCallback:getFn(\"onApiCallback\"),onError:getFn(\"onError\")};workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__.onSetData=function(t){try{if(e.onSetData)try{e.onSetData.call(workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__,t)}catch(e){debug(e)}throttledEmitDataChangedEvent(),sendOrQueueApplogMsg({method:\"MiniAppLog.onSetData\",params:minimizeSetDataInfo(t),ext:{origin:EBugmePanelId.AppLog}})}catch(e){}},workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__.onSetDataCallback=function(t){try{if(e.onSetDataCallback)try{e.onSetDataCallback.call(workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__,t)}catch(e){debug(e)}sendOrQueueApplogMsg({method:\"MiniAppLog.onSetDataCallback\",params:t,ext:{origin:EBugmePanelId.AppLog}})}catch(e){}},workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__.onApiSyncCall=function(t){try{if(e.onApiSyncCall)try{e.onApiSyncCall.call(workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__,t)}catch(e){debug(e)}sendOrQueueApplogMsg({method:\"MiniAppLog.onApiSyncCall\",params:minimizeApiHookInfo(t),ext:{origin:EBugmePanelId.AppLog}})}catch(e){}},workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__.onApiSyncCallback=function(t){try{if(e.onApiSyncCallback)try{e.onApiSyncCallback.call(workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__,t)}catch(e){debug(e)}sendOrQueueApplogMsg({method:\"MiniAppLog.onApiSyncCallback\",params:minimizeApiHookInfo(t),ext:{origin:EBugmePanelId.AppLog}})}catch(e){}},workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__.onApiCall=function(t){try{if(e.onApiCall)try{e.onApiCall.call(workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__,t)}catch(e){debug(e)}sendOrQueueApplogMsg({method:\"MiniAppLog.onApiCall\",params:minimizeApiHookInfo(t),ext:{origin:EBugmePanelId.AppLog}})}catch(e){}},workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__.onApiCallback=function(t){try{if(e.onApiCallback)try{e.onApiCallback.call(workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__,t)}catch(e){debug(e)}sendOrQueueApplogMsg({method:\"MiniAppLog.onApiCallback\",params:minimizeApiHookInfo(t),ext:{origin:EBugmePanelId.AppLog}})}catch(e){}},workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__.onError=function(t){try{if(e.onError)try{e.onError.call(workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__,t)}catch(e){}onErrorHook(t)}catch(e){}},registerV1PageLifecycleHooks(workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__,e),registerV2PageLifecycleHooks(workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__,e),registerV1AppLifecycleHooks(workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__,e),registerV2AppLifecycleHooks(workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__,e)}function getLifecycleName(e){var t;switch(e){case 0:t=\"onPageLoad\";break;case 2:t=\"onPageReady\";break;case 1:t=\"onPageShow\";break;case 3:t=\"onPageHide\";break;case 4:t=\"onPageUnload\"}return t}function registerV1PageLifecycleHooks(e,t){for(var n=[\"onPageLoad\",\"onPageShow\",\"onPageHide\",\"onPageReady\",\"onPageUnload\"],r=0,o=n;r<o.length;r++){t[c=o[r]]=getFn(c)}for(var a=function(n){e[n]=function(e){try{if(t[n])try{t[n].call(workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__,e)}catch(e){debug(e)}var r=e.context?e:__assign({route:e.page.route},e);sendOrQueueApplogMsg({method:\"MiniAppLog.\"+n,params:minimizePageLifecycleInfo1(r),ext:{origin:EBugmePanelId.AppLog}}),\"onPageShow\"===n&&throttledEmitDataChangedEvent()}catch(e){}}},i=0,s=n;i<s.length;i++){var c;a(c=s[i])}}function registerV2PageLifecycleHooks(e,t){t.onPageLifecycle=getFn(\"onPageLifecycle\"),e.onPageLifecycle=function(e){try{if(t.onPageLifecycle)try{t.onPageLifecycle.call(workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__,e)}catch(e){debug(e)}var n=getLifecycleName(e.args[0]);if(!n)return;sendOrQueueApplogMsg({method:\"MiniAppLog.\"+n,params:e,ext:{origin:EBugmePanelId.AppLog}}),\"onPageShow\"===n&&throttledEmitDataChangedEvent()}catch(e){}}}function registerV1AppLifecycleHooks(e,t){for(var n=[\"onAppLaunch\",\"onAppShow\",\"onAppHide\",\"onAppError\",\"onAppUnhandledRejection\"],r=0,o=n;r<o.length;r++){t[c=o[r]]=getFn(c)}for(var a=function(n){e[n]=function(e){try{if(t[n])try{t[n].call(workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__,e)}catch(e){debug(e)}sendOrQueueApplogMsg({method:\"MiniAppLog.\"+n,params:e,ext:{origin:EBugmePanelId.AppLog}})}catch(e){}}},i=0,s=n;i<s.length;i++){var c;a(c=s[i])}}function registerV2AppLifecycleHooks(e,t){t.onAppLifecycle=getFn(\"onAppLifecycle\"),e.onAppLifecycle=function(e){try{if(t.onAppLifecycle)try{t.onAppLifecycle.call(workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__,e)}catch(e){debug(e)}sendOrQueueApplogMsg({method:\"MiniAppLog.\"+e.args[0],params:e,ext:{origin:EBugmePanelId.AppLog}})}catch(e){}}}function sendOrQueueApplogMsg(e){try{var t=getInjector().getWorkerSocket(),n=getInjector().getMessageQueue();t&&n.isApplogEnabled?t.send(circularJSONStringify$1(e)):n.push(circularJSONStringify$1(e))}catch(e){}}function minimizeApiHookInfo(e){if(e.context){var t=e.context;return __assign(__assign({},e),{context:pick(t,[\"apiName\",\"extraInfo\",\"isMiniExtension\",\"option\",\"startTime\",\"taskId\",\"__reqId\"])})}return e}function minimizeSetDataInfo(e){return e.context?e:{pagePath:e.isPage?e.page.route:e.component.$page.route,isPage:e.isPage,option:e.options,componentIs:e.component?e.component.is:void 0}}function minimizePageLifecycleInfo1(e){return __assign(__assign({},e),{page:pick(e.page,[\"$id\",\"$page\",\"$viewId\",\"data\"])})}function pick(e,t){var n={};return t.forEach((function(t){n[t]=e[t]})),n}function registerAppxHook(){null==workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__&&(workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__={}),registerLegacyAppxHook();var e=getHookFn(\"setup\");workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__.setup=function(t,n){if(e&&\"function\"==typeof e)try{e(t,n)}catch(e){}getInjector().setRuntime(t),setup(t,n,(function(e){if(\"string\"==typeof e.method&&e.method.includes(\"MiniAppLog\"))sendOrQueueApplogMsg$1(e);else{var t=getInjector().getWorkerSocket();t&&t.send(e)}}))}}function getObjectOwnPropertyDescriptors(e){return Object.getOwnPropertyDescriptors?Object.getOwnPropertyDescriptors(e):Object.getOwnPropertyNames(e).reduce((function(t,n){return t[n]=Object.getOwnPropertyDescriptor(e,n),t}),Object.create(null))}function isError(e){return\"[object Error]\"===Object.prototype.toString.call(e)||e instanceof Error}function isDate(e){return\"[object Date]\"===Object.prototype.toString.call(e)||e instanceof Date}function isRegExp(e){return\"[object RegExp]\"===Object.prototype.toString.call(e)||e instanceof RegExp}function isPromise(e){return\"[object Promise]\"===Object.prototype.toString.call(e)||e instanceof Promise}var ObjectMapper=function(){function e(e){this.objectStore=e}return e.prototype.mapFrom=function(e,t){var n=this;return Array.from(e).map((function(e){return n.mapFromOne(e,t)}))},e.prototype.mapFromOne=function(e,t){switch(typeof e){case\"string\":return this.mapString(e);case\"number\":return this.mapNumber(e);case\"object\":return Array.isArray(e)?this.mapArray(e,\"table\"===t):null===e?this.mapNull():this.mapObject(e,\"table\"===t);case\"function\":return this.mapFunction(e);case\"undefined\":return this.mapUndef();case\"boolean\":return this.mapBoolean(e);default:return{type:typeof e,value:e}}},e.prototype.mapString=function(e){return{type:\"string\",value:e}},e.prototype.mapNumber=function(e){return{type:\"number\",value:e,description:String(e)}},e.prototype.mapBoolean=function(e){return{type:\"boolean\",value:e}},e.prototype.mapFunction=function(e){var t=this.objectStore.save(e);return{type:\"function\",className:\"Function\",description:e.toString(),objectId:t}},e.prototype.mapUndef=function(){return{type:\"undefined\"}},e.prototype.mapNull=function(){return{type:\"object\",subtype:\"null\",value:null}},e.prototype.mapObject=function(e,t){var n,r,o=this,a=getObjectOwnPropertyDescriptors(e),i=Object.keys(a),s=this.objectStore.save(e),c=e.constructor?e.constructor.name:\"Object\",p=i.length>5&&!t,u={type:\"object\",className:c,description:c,objectId:s,preview:{type:\"object\",description:c,overflow:p,properties:(p?i.slice(0,5):i).map((function(e){return o.getPropertyPreview4ObjectProperty(e,a[e],t)})).filter(Boolean)}};return isError(e)?(n=\"error\",-1===(r=e.stack||\"\").indexOf(e.name)&&(r=e.toString()+\"\\n\"+r)):isDate(e)?(n=\"date\",r=e.toString()):isRegExp(e)?(n=\"regexp\",r=e.toString()):isPromise(e)&&(n=\"promise\",r=\"Promise\"),n&&(u.subtype=n,u.preview&&(u.preview.subtype=n)),r&&(u.description=r,u.preview&&(u.preview.description=r)),u},e.prototype.mapArray=function(e,t){var n=this,r=e.length>100&&!t,o=\"Array(\"+e.length+\")\";return{type:\"object\",subtype:\"array\",className:\"Array\",description:o,objectId:this.objectStore.save(e),preview:{type:\"object\",subtype:\"array\",description:o,overflow:r,properties:(r?e.slice(0,100):e).map((function(e,r){return n.getPropertyPreview4ArrayProperty(r,e,t)}))}}},e.prototype.getPropertyPreview4ArrayProperty=function(e,t,n){return this.getPropertyPreview4AnyValue(String(e),t,n)},e.prototype.getPropertyPreview4ObjectProperty=function(e,t,n){return t.get?{name:e,type:\"accessor\"}:t.set?void 0:this.getPropertyPreview4AnyValue(e,t.value,n)},e.prototype.getPropertyPreview4AnyValue=function(e,t,n){switch(void 0===n&&(n=!1),typeof t){case\"object\":if(Array.isArray(t)){var r={name:e,type:\"object\",subtype:\"array\",value:\"Array(\"+t.length+\")\"};return n&&(r.valuePreview=this.getValuePreview4TableArray(t)),r}if(null===t)return{name:e,type:\"object\",subtype:\"null\",value:\"null\"};r={name:e,type:\"object\",value:t.constructor?t.constructor.name:\"Object\"};return n&&(r.valuePreview=this.getValuePreview4TableObject(t)),r;case\"function\":return{type:\"function\",value:\"\",name:e};default:return{name:e,type:typeof t,value:String(t)}}},e.prototype.getValuePreview4TableArray=function(e){var t=this;return{type:\"object\",subtype:\"array\",description:\"Array(\"+e.length+\")\",overflow:!1,properties:e.map((function(e,n){return t.getPropertyPreview4AnyValue(String(n),e)}))}},e.prototype.getValuePreview4TableObject=function(e){var t=this;return{type:\"object\",description:\"Object\",overflow:!1,properties:Object.keys(e).map((function(n){return t.getPropertyPreview4AnyValue(n,e[n])}))}},e}(),ExtractStackLine=function(){function e(){this.e1=/\\s*at\\s(\\S+)\\s(\\S+)\\:(\\d+)\\:(\\d+)\\)/,this.e2=/\\s*at\\s(\\S+)\\:(\\d+)\\:(\\d+)/}return e.prototype.testType1=function(e){return this.e1.test(e)},e.prototype.testType2=function(e){return this.e2.test(e)},e.prototype.extractType1=function(e){var t=e.match(this.e1);return null==t?null:{functionName:t[1],url:t[2].slice(1),lineNumber:Number(t[3]),columnNumber:Number(t[4])}},e.prototype.extractType2=function(e){var t=e.match(this.e2);return null==t?null:{functionName:\"\",url:t[1].slice(1),lineNumber:Number(t[2]),columnNumber:Number(t[3])}},e}(),CallFramesMapper=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.mapFrom=function(e){var t=this;return e.split(\"\\n\").slice(2).map((function(e,n){return t.testType1(e)?t.extractType1(e):t.testType2(e)?t.extractType2(e):void 0})).filter((function(e){return null!=e}))},t}(ExtractStackLine),executionContextId=1,injectedScriptId=1,ObjectStore=function(){function e(){this.id=0,this.id2Object=new Map,this.object2Id=new Map}return e.prototype.save=function(e){if(this.object2Id.has(e))return this.object2Id.get(e);var t=this.getNextObjectId();return this.id2Object.set(t,e),this.object2Id.set(e,t),t},e.prototype.query=function(e){return this.id2Object.get(e)},e.prototype.clear=function(e){var t=this.id2Object.get(e);t&&(this.id2Object.delete(e),this.object2Id.delete(t))},e.prototype.clearAll=function(){this.id2Object.clear(),this.object2Id.clear()},e.prototype.getNextObjectId=function(){return this.id++,'{\"injectedScriptId\":'+injectedScriptId+',\"id\":'+this.id+\"}\"},e}(),GetPropertiesHandler=function(){function e(e,t){this.objectStore=e,this.objectMapper=t}return e.prototype.handle=function(e){var t=this.objectStore.query(e.objectId);return t?{result:this.mapObject(t,Boolean(e.ownProperties),Boolean(e.accessorPropertiesOnly))}:{result:[]}},e.prototype.mapObject=function(e,t,n){var r=this;if(t){var o=getObjectOwnPropertyDescriptors(e),a=Object.keys(o).filter((function(e){return!(n&&!o[e].get&&!o[e].set)})).map((function(e){return r.mapResultOne(e,o[e],!0)}));return e.__proto__&&a.push(this.mapResultOne(\"__proto__\",{configurable:!0,enumerable:!1,writable:!0,value:e.__proto__},!0)),a}for(var i=[],s={},c=e,p=!1,u=!0,l=function(){var e=getObjectOwnPropertyDescriptors(c);if(Object.keys(e).forEach((function(t){if(!s[t]){s[t]=!0;var o=e[t];(!n||o.get||o.set)&&i.push(r.mapResultOne(t,o,u))}})),!p){var t=Object.getOwnPropertyDescriptor(c,\"__proto__\");t&&(p=!0,i.push(g.mapResultOne(\"__proto__\",t,u)))}c=c.__proto__,u=!1},g=this;c;)l();return i},e.prototype.mapResultOne=function(e,t,n){var r={writable:t.writable,configurable:Boolean(t.configurable),enumerable:Boolean(t.enumerable),isOwn:n,name:String(e)};return\"value\"in t&&(r.value=this.objectMapper.mapFromOne(t.value)),t.get&&(r.get=this.objectMapper.mapFromOne(t.get)),t.set&&(r.set=this.objectMapper.mapFromOne(t.set)),r},e}(),RemoteObjectParser=function(){function e(){this.objectStore=new ObjectStore,this.objectMapper=new ObjectMapper(this.objectStore),this.callFramesMapper=new CallFramesMapper,this.getPropertiesHandler=new GetPropertiesHandler(this.objectStore,this.objectMapper)}return e.prototype.parseObject=function(e,t){return this.objectMapper.mapFromOne(e,t)},e.prototype.getProperties=function(e){return this.getPropertiesHandler.handle(e)},e.prototype.getObjectById=function(e){return this.objectStore.query(e)},e.prototype.consoleAPICalled=function(e,t,n){var r=e;return\"warn\"===e&&(r=\"warning\"),{method:\"Runtime.consoleAPICalled\",params:{type:r,args:this.objectMapper.mapFrom(n,e),executionContextId:executionContextId,timestamp:Date.now(),stackTrace:{callFrames:this.callFramesMapper.mapFrom(t)}}}},e}(),globalConsoleOverrider;function initConsoleOverrider(){\"boolean\"==typeof __BUGME_CONSOLE_ENABLE__&&__BUGME_CONSOLE_ENABLE__&&(globalConsoleOverrider=new ConsoleOverrider).overrideConsole()}function getConsoleOverrider(){return globalConsoleOverrider}var ConsoleOverrider=function(){function e(){this.executionContextId=1,this.messageBeforeAgentInit=[],this.webSocketCheckingLoop=!1,this.parser=new RemoteObjectParser,this.createExecutionContext()}return e.prototype.createExecutionContext=function(){this.sendMesasge({method:\"Runtime.executionContextsCleared\",params:{}}),this.sendMesasge({method:\"Runtime.executionContextCreated\",params:{context:{id:this.executionContextId,origin:\"app://\",name:\"app\"}}})},e.prototype.overrideConsole=function(){var e=this;Object.defineProperties(console,[\"debug\",\"log\",\"info\",\"warn\",\"error\",\"table\"].reduce((function(t,n){var r=console[n].bind(console);return t[n]={value:function(){var t=arguments;if(t.length){try{var o=/^(\\[framework\\]|dispatchEvent|onMessage push|unsupported protocol)/;if(\"string\"==typeof t[0]&&o.test(t[0]))return r.apply(null,t);var a=new Error;a.stack&&e.sendMesasge(e.parser.consoleAPICalled(n,a.stack,t))}catch(e){}return r.apply(null,t)}}},t}),{}))},e.prototype.sendMesasge=function(e){var t=getInjector().getWorkerSocket();t?(this.flushPendingMessasges(),t.sendAfterReceivingMessage(e)):(this.messageBeforeAgentInit.push(e),this.checkWebSocketReady())},e.prototype.flushPendingMessasges=function(){if(this.messageBeforeAgentInit.length){var e=getInjector().getWorkerSocket();e&&(this.messageBeforeAgentInit.forEach((function(t){e.sendAfterReceivingMessage(t)})),this.messageBeforeAgentInit=[])}},e.prototype.checkWebSocketReady=function(){var e=this;if(!this.webSocketCheckingLoop){this.webSocketCheckingLoop=!0;var t=setInterval((function(){getInjector().getWorkerSocket()&&(clearInterval(t),e.flushPendingMessasges())}),1e3)}},e}(),requirePluginName=\"requirePlugin\",EPanelStatus;function hookRequirePlugin(){var e,t=Object.getOwnPropertyDescriptor(workerGlobal,requirePluginName);t&&!t.configurable||(t&&(e=workerGlobal.requirePlugin),Object.defineProperty(workerGlobal,requirePluginName,{get:function(){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=Date.now();sendOrQueueApplogMsg$1({method:\"MiniAppLog.onApiSyncCall\",params:{aTime:r,context:{apiName:requirePluginName,option:{arguments:t}}},ext:{origin:EBugmePanelId.AppLog}});try{var o=e.apply(void 0,t);return sendOrQueueApplogMsg$1({method:\"MiniAppLog.onApiSyncCallback\",params:{args:o?void 0:[{error:1,errorMessage:\"未找到对应插件\"}],bTime:Date.now()===r?r+.01:Date.now(),context:{apiName:requirePluginName}},ext:{origin:EBugmePanelId.AppLog}}),o}catch(e){throw sendOrQueueApplogMsg$1({method:\"MiniAppLog.onApiSyncCallback\",params:{args:[{error:2,errorMessage:e.message}],bTime:Date.now()===r?r+.01:Date.now(),context:{apiName:requirePluginName}},ext:{origin:EBugmePanelId.AppLog}}),e}}},set:function(t){e=t},enumerable:!0,configurable:!0}))}function updateDebugPanel(e){if(getInjector().getAgentContext().silentMode)return!1;var t=getInjector().getI18NFormatter(),n=\"\";switch(e){case EPanelStatus.Connecting:n=t.format(\"准备中\");break;case EPanelStatus.Connected:n=t.format(\"已连接\");break;case EPanelStatus.Disconnected:n=t.format(\"已断开\")}AFAppX.bridge.call(\"showRemoteDebugPanel\",{status:e,text:t.format(\"真机调试{text}\",{text:n}),buttonTitle:t.format(\"退出\")})}function enable$2(e){getInjector().getWorkerSocket().send({id:e.id,result:{}})}function getResponseBody(e){var t=e.params.requestId,n=getInjector(),r=n.getNetworkRecorder(),o=r.getRequest(t);o?n.getWorkerSocket().send({id:e.id,result:{base64Encoded:o.isBase64Body,body:o.responseBody}}):n.getWorkerSocket().send({id:e.id,result:{}}),r.removeRequest(t)}!function(e){e.Connecting=\"connecting\",e.Connected=\"connected\",e.Disconnected=\"disconnected\"}(EPanelStatus||(EPanelStatus={}));var network=Object.freeze({__proto__:null,enable:enable$2,getResponseBody:getResponseBody});function enable$1(e){getInjector().getWorkerSocket().send({id:e.id,result:{}});var t=getConsoleOverrider();t&&t.createExecutionContext()}function getProperties(e){var t=getConsoleOverrider();t&&getInjector().getWorkerSocket().send({id:e.id,result:t.parser.getProperties(e.params)})}function compileScript(e){getInjector().getWorkerSocket().send({id:e.id,result:{}})}var evalFunc=\"function\"==typeof __eval?__eval:\"function\"==typeof eval?eval:function(){};function evaluate(payload){var consoleOverrider=getConsoleOverrider();if(consoleOverrider){var parser=consoleOverrider.parser;\"function\"!=typeof eval&&(workerGlobal.eval=evalFunc);try{var returnValue=function(){return eval(payload.params.expression)}();getInjector().getWorkerSocket().send({id:payload.id,result:{result:parser.parseObject(returnValue)}})}catch(e){e.stack=e.name+\": \"+e.message,getInjector().getWorkerSocket().send({id:payload.id,result:{exceptionDetails:{columnNumber:20,exception:parser.parseObject(e),exceptionId:1,lineNumber:0,text:\"Uncaught\"},result:parser.parseObject(e)}})}}}var runtime=Object.freeze({__proto__:null,enable:enable$1,getProperties:getProperties,compileScript:compileScript,evaluate:evaluate});function createCommonjsModule(e,t){return e(t={exports:{}},t.exports),t.exports}var stringify_1=createCommonjsModule((function(e,t){function n(e,t){var n=[],r=[];return null==t&&(t=function(e,t){return n[0]===t?\"[Circular ~]\":\"[Circular ~.\"+r.slice(0,n.indexOf(t)).join(\".\")+\"]\"}),function(o,a){if(n.length>0){var i=n.indexOf(this);~i?n.splice(i+1):n.push(this),~i?r.splice(i,1/0,o):r.push(o),~n.indexOf(a)&&(a=t.call(this,o,a))}else n.push(a);return null==e?a:e.call(this,o,a)}}(e.exports=function(e,t,r,o){return JSON.stringify(e,n(t,o),r)}).getSerialize=n})),sharedGetCurrentPages;function callGetCurrentPages(){return sharedGetCurrentPages?sharedGetCurrentPages():workerGlobal.getCurrentPages?(sharedGetCurrentPages=workerGlobal.getCurrentPages)():workerGlobal.AFAppX&&AFAppX.getCurrentPages?(sharedGetCurrentPages=AFAppX.getCurrentPages)():[]}function getPagesData(e){var t;var n=getInjector().getRuntime();t=null==n?callGetCurrentPages().filter(Boolean).map((function(e){return{viewId:e.$viewId,data:stringify_1(e.data),route:e.route}})):n.getNav().currentStack.map((function(e){var t=e.getPageLogicInstance().publicInstance;return{viewId:t.$viewId,data:stringify_1(t.data),route:t.route}})),getInjector().getWorkerSocket().send({id:e.id,ext:e.ext,result:{data:t}})}function setPageData(e){var t,n=e.params||{},r=n.viewId,o=n.data;var a=getInjector().getRuntime();(t=null==a?callGetCurrentPages().filter((function(e){return e&&\"\"+e.$viewId===r}))[0]:a.getNav().currentStack.map((function(e){return e.getPageLogicInstance().publicInstance})).filter((function(e){return e&&\"\"+e.$viewId===r}))[0])&&o&&t.setData(o)}stringify_1.getSerialize;var data=Object.freeze({__proto__:null,getPagesData:getPagesData,setPageData:setPageData});function getStorageItem(e){return new Promise((function(t){AFAppX.bridge.getStorage({key:e,success:function(n){var r=n.data;t({key:e,value:r,type:typeof r})},fail:function(){t()}})}))}function getStorageInfo(e){AFAppX.bridge.getStorageInfo({success:function(t){Promise.all(t.keys.map((function(e){return getStorageItem(e)}))).then((function(n){var r=n.filter((function(e){return e}));getInjector().getWorkerSocket().send({id:e.id,ext:e.ext,result:{currentSize:t.currentSize,limitSize:t.limitSize,data:r}})}))}})}function clearStorage(e){AFAppX.bridge.clearStorage()}function removeStorage(e){var t=e.params;t&&t.key&&AFAppX.bridge.removeStorage({key:t.key})}function setStorage(e){var t=e.params;t&&t.key&&AFAppX.bridge.setStorage({key:t.key,data:t.value})}var storage=Object.freeze({__proto__:null,getStorageInfo:getStorageInfo,clearStorage:clearStorage,removeStorage:removeStorage,setStorage:setStorage});function enable(){var e=getInjector().getMessageQueue();e.setApplogEnabled(!0),e.sendQueuedMessages()}var applog=Object.freeze({__proto__:null,enable:enable});function ping(e){getInjector().getWorkerSocket().send({id:e.id,result:{}})}function getSystemInfo(e){AFAppX.bridge.getSystemInfo({success:function(t){var n={userAgent:getInjector().getAgentContext().userAgent,sdkVersion:AFAppX.bridge.SDKVersion,alipayVersion:t.version,model:t.model,system:t.system};getInjector().getWorkerSocket().send({id:e.id,result:n})}})}function getStartupParams(e){var t=getStartupParams$1();getInjector().getWorkerSocket().send({id:e.id,result:t})}var index=Object.freeze({__proto__:null,Data:data,Storage:storage,Applog:applog,ping:ping,getSystemInfo:getSystemInfo,getStartupParams:getStartupParams});function getResourceTree(e){getInjector().getWorkerSocket().send({id:e.id,result:{}})}var page=Object.freeze({__proto__:null,getResourceTree:getResourceTree}),protoHandler=Object.freeze({__proto__:null,Network:network,Runtime:runtime,Tiny:index,Page:page}),isWebPlatform=!1;if(\"undefined\"!=typeof WebSocket&&WebSocket.OPEN){isWebPlatform=!0;try{delete workerGlobal.WebSocket}catch(e){}}var BaseImpl=isWebPlatform?WebSocketBrowserImpl:WebSocketNativeImpl,WorkerSocket=function(e){function t(t){var n=e.call(this,t)||this;return n.isMessageReceived=!1,n.isSocketOpenedOnce=!1,n.messageBeforeReceived=[],updateDebugPanel(EPanelStatus.Connecting),n}return __extends(t,e),t.prototype.send=function(e){return this.sendSocketMessage(e)},t.prototype.sendAfterReceivingMessage=function(e){this.isMessageReceived?this.send(e):this.messageBeforeReceived.push(\"string\"==typeof e?e:JSON.stringify(e))},t.prototype.exitDebug=function(){updateDebugPanel(EPanelStatus.Disconnected),this.close(),!isWebPlatform&&getInjector().getAgentContext().isIOS&&[1,2].forEach((function(e){AFAppX.bridge.call(\"closeSocket\",{socketTaskId:e})}))},t.prototype.onSocketOpen=function(){e.prototype.onSocketOpen.call(this),this.isSocketOpenedOnce=!0,this.send({method:\"MiniAppLog.enable\",params:{},ext:{origin:EBugmePanelId.AppLog}}),throttledEmitDataChangedEvent()},t.prototype.onSocketClose=function(){e.prototype.onSocketClose.call(this)},t.prototype.onSocketError=function(e){if(!this.isSocketOpenedOnce&&!getInjector().getAgentContext().silentMode){updateDebugPanel(EPanelStatus.Disconnected);var t=e?e.errorMessage||e.message:\"closed\";AFAppX.bridge.showToast({content:getInjector().getI18NFormatter().format(\"本次真机调试已结束,请重新生成调试版本\",{reason:t}),duration:2e3,success:function(){}})}},t.prototype.onSocketMessage=function(e){var t,n=this;this.isMessageReceived||(this.isMessageReceived=!0,this.messageBeforeReceived.forEach((function(e){n.send(e)})),this.messageBeforeReceived=[]);try{t=JSON.parse(e)}catch(t){return void(\"CLIENT:JOIN\"===e?updateDebugPanel(EPanelStatus.Connected):\"CLIENT:LEAVE\"===e&&this.exitDebug())}var r=getProtocolHandler(t.method);r?r(t):this.send({id:t.id,error:{code:-32e3,message:\"unsupported\"}})},t}(BaseImpl);function getProtocolHandler(e){if(e){for(var t=e.split(\".\"),n=protoHandler,r=0,o=t;r<o.length;r++){if(!(n=n[o[r]]))break}return n}}var ignoreDomain=/\\/(tyro\\/agent|bugme\\/channel\\/paused)$/,DebugEventListener=function(){function e(){this.isIOS=getInjector().getAgentContext().isIOS,this.isLyra=getInjector().getAgentContext().isLyra}return e.prototype.setup=function(){this.isLyra||this.isIOS?this.listenDebugEvent4IOS():this.listenDebugEvent()},e.prototype.onNetworkRequest=function(e){if(!ignoreDomain.test(e.url)){var t=createProtocol4RequestWillBeSent(e),n=getInjector();n.getWorkerSocket().send(t),n.getNetworkRecorder().setRequest(e.requestId,{method:t.params.request.method,requestHeaders:t.params.request.headers,url:e.url})}},e.prototype.onNetworkResponse=function(e){if(!ignoreDomain.test(e.url)){var t=getInjector(),n=t.getNetworkRecorder().getRequest(e.requestId)||{};t.getWorkerSocket().send(createProtocol4ResponseReceived(e,n)),t.getWorkerSocket().send(createProtocol4LoadingFinished(e)),t.getNetworkRecorder().setRequest(e.requestId,{responseBody:e.body,isBase64Body:!1})}},e.prototype.onNetworkError=function(e){ignoreDomain.test(e.url)||getInjector().getWorkerSocket().send(createProtocol4LoadingFailed(e))},e.prototype.onStorageChanged=function(e){var t={};Object.keys(e.data).forEach((function(n){try{t[n]=JSON.parse(e.data[n]).APDataStorage}catch(e){}})),getInjector().getWorkerSocket().send({method:\"Tiny.Storage.storageChanged\",params:{data:t},ext:{origin:EBugmePanelId.Storage}})},e.prototype.listenDebugEvent4IOS=function(){var e=this,t=AFAppX.bridge;t.on(EWorkerAppEvent.DebugNetworkRequest,(function(t){e.onNetworkRequest(t.data)})),t.on(EWorkerAppEvent.DebugNetworkResponse,(function(t){e.onNetworkResponse(t.data)})),t.on(EWorkerAppEvent.DebugNetworkError,(function(t){e.onNetworkError(t.data)})),t.on(EWorkerAppEvent.DebugStorageChanged,(function(t){e.onStorageChanged(t.data)}))},e.prototype.listenDebugEvent=function(){var e=this;AFAppX.bridge.on(EWorkerAppEvent.DebugConsole,(function(t){var n,r=t.data,o=r.type,a=r.content;try{n=JSON.parse(a)}catch(e){return}switch(o){case EWorkerAppEvent.DebugNetworkRequest:e.onNetworkRequest(n);break;case EWorkerAppEvent.DebugNetworkResponse:e.onNetworkResponse(n);break;case EWorkerAppEvent.DebugNetworkError:e.onNetworkError(n);break;case EWorkerAppEvent.DebugStorageChanged:e.onStorageChanged(n)}}))},e}(),WorkerListener=function(){function e(){this.inited=!1}return e.prototype.setup=function(){if(this.inited)return!1;var e=AFAppX.bridge;if(/^1\\./.test(e.SDKVersion)){var t=debounce(this.onPageResumeOrPause.bind(this),300,setTimeout,clearTimeout);e.on(EWorkerAppEvent.PageResume,t),e.on(EWorkerAppEvent.PagePause,t)}e.on(EWorkerAppEvent.DebugPanelClick,this.onDebugPanelClick),this.debugEventListener=new DebugEventListener,this.debugEventListener.setup(),this.inited=!0},e.prototype.onPageResumeOrPause=function(){throttledEmitDataChangedEvent()},e.prototype.onDebugPanelClick=function(){var e=getInjector().getWorkerSocket();e&&e.exitDebug()},e}(),globalListener;function getGlobalWorkerEventListener(){return globalListener||(globalListener=new WorkerListener),globalListener}function getChannelUrl(){if(\"string\"==typeof __BUGME_EXTERNAL_WORKER_URL__&&__BUGME_EXTERNAL_WORKER_URL__)return __BUGME_EXTERNAL_WORKER_URL__;var e,t=getInjector().getAgentContext(),n=t.channel,r=t.channelId,o=t.channelConfigKey;\"\"!==n?e=n:e=\"wss://\"+(channelDomainConfig[o]||channelDomainConfig[0]).hpmweb;return e+\"/bugme/client_w/\"+r}var DebugAgent=function(){function e(){}return e.prototype.init=function(){getGlobalWorkerEventListener().setup(),this.makeConnection(),this.printSDKVersion()},e.prototype.makeConnection=function(){var e=getInjector(),t=getChannelUrl(),n=new WorkerSocket(t);e.setWorkerSocket(n),e.getAgentContext().isIOS?n.open():setTimeout((function(){n.open()}),1200)},e.prototype.printSDKVersion=function(){var e=AFAppX.bridge.SDKVersion;/^2\\./.test(e)&&setTimeout(console.log.bind(console,\"SDKVersion: \"+e))},e}(),globalAgent;function getAgent(){return globalAgent||(globalAgent=new DebugAgent),globalAgent}var LOG_STYLE=\"color: #3D80F3; font-weight: bold;\";function getStaticPlugins(){var e=getStartupParams$1().__appxPluginsExtra||{},t=Object.keys(e).map((function(t){return{plugin_id:t,deploy_version:e[t].version}}));try{var n=getInjector().getRuntime()._meta.meta.plugins||{};Object.entries(n).forEach((function(n){var r=n[0],o=n[1];o.lazy&&!e[r]&&t.push({plugin_id:o.provider+\"(lazy)\",deploy_version:\"Not Load\"})}))}catch(e){}return t}function printStaticPlugins(){var e=getStaticPlugins();e.length&&(console.log(\"%c--- Static Plugin List ---\",LOG_STYLE),console.table(e))}var loadPluginName=\"loadPlugin\";function hookLoadPlugin(){var e,t=Object.getOwnPropertyDescriptor(workerGlobal.my,loadPluginName);t&&!t.configurable||(t&&(e=workerGlobal.my.loadPlugin),Object.defineProperty(workerGlobal.my,loadPluginName,{get:function(){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(\"object\"==typeof t[0]){var r=t[0].success;t[0].success=function(){printDynamicPlugin(t[0].plugin),void 0!==r&&r.apply(this,arguments)}}return e.apply(void 0,t)}},set:function(t){e=t},enumerable:!0,configurable:!0}))}function getExtensionVersions(){var e=getInjector().getRuntime().getMiniExtensionManager();if(e.extensionVersions)return e.extensionVersions;if(e.extensionExtraInfos){var t=e.extensionExtraInfos,n=new Map;return t.forEach((function(e,t){n.set(t,e.version)})),n}return new Map}function printDynamicPlugin(e){var t=e.split(\"@\")[0],n=getExtensionVersions();setTimeout((function(){console.log(\"%c--- Loaded Dynamic Plugin ---\",LOG_STYLE),console.table([{plugin_id:t,deploy_version:n.get(t)}])}),100)}function setupPluginInfo(){console.log(\"%cTip: you can type `printPlugins()` anytime to print loaded plugins info\",\"color: #3D80F3;\"),hookLoadPlugin(),printStaticPlugins(),workerGlobal.printPlugins=printPlugins}function isUsePlugin(){var e=getInjector().getRuntime();if(void 0===e)return!1;var t=e.getMeta().meta;return\"object\"==typeof t.plugins&&0!==Object.keys(t.plugins).length||t.useDynamicPlugins}function printPlugins(){var e;printStaticPlugins();var t=(null===(e=getStartupParams$1())||void 0===e?void 0:e.__appxPluginsExtra)||{},n=getInjector().getRuntime().getMiniExtensionManager(),r=[];if(n.extensionVersions)n.extensionVersions.forEach((function(e,n){void 0===t[n]&&r.push({plugin_id:n,deploy_version:e})}));else if(n.extensionExtraInfos){n.extensionExtraInfos.forEach((function(e,n){if(void 0===t[n]){var o={plugin_id:n,deploy_version:e.version};e.package_nick&&(o.nick=e.package_nick),r.push(o)}}))}console.log(\"%c--- Loaded Dynamic Plugin List ---\",LOG_STYLE),console.table(r)}function main(){try{registerAppxHook(),initConsoleOverrider(),hookRequirePlugin()}catch(e){error(\"sync task error\",e)}runAfterAppx((function(){runAfterAppXBridgeReady((function(){try{getAgent().init(),isUsePlugin()&&setupPluginInfo()}catch(e){error(\"init agent error\",e)}}))}))}var inPluginWorker=\"object\"==typeof AFAppX&&AFAppX.Plugin;if(!workerGlobal.__BUGME_ON__&&!inPluginWorker){workerGlobal.__BUGME_ON__=!0;try{main()}catch(e){error(\"init error\",e)}}}();\n","bugmeWPreview":"!function(){\"use strict\";var e,n;!function(e){e.PageResume=\"pageResume\",e.PagePause=\"pagePause\",e.DebugPanelClick=\"tinyRemoteDebugPanelButtonClick\",e.DebugConsole=\"onTinyDebugConsole\",e.DebugNetworkRequest=\"tinyAppRemoteDebug_network_request\",e.DebugNetworkResponse=\"tinyAppRemoteDebug_network_response\",e.DebugNetworkError=\"tinyAppRemoteDebug_network_error\",e.DebugStorageChanged=\"tinyAppRemoteDebug_storage\",e.MessageFromVConsole=\"onMessageFromVConsole\"}(e||(e={})),function(e){e.Data=\"data\",e.Storage=\"storage\",e.AppLog=\"applog\"}(n||(n={}));var t=self,r=\"\\\\x\"+(\"0\"+\"~\".charCodeAt(0).toString(16)).slice(-2),o=\"\\\\\"+r,a=new RegExp(r,\"g\"),i=new RegExp(o,\"g\"),u=new RegExp(\"(?:^|([^\\\\\\\\]))\"+o),c=[].indexOf||function(e){for(var n=this.length;n--&&this[n]!==e;);return n},s=String;function l(e,n,t){return n instanceof Array?function(e,n,t){for(var r=0,o=n.length;r<o;r++)n[r]=l(e,n[r],t);return n}(e,n,t):n instanceof s?n.length?t.hasOwnProperty(n)?t[n]:t[n]=function(e,n){for(var t=0,r=n.length;t<r;e=e[n[t++].replace(i,\"~\")]);return e}(e,n.split(\"~\")):e:n instanceof Object?function(e,n,t){for(var r in n)n.hasOwnProperty(r)&&(n[r]=l(e,n[r],t));return n}(e,n,t):n}var f={stringify:function(e,n,t,i){return f.parser.stringify(e,function(e,n,t){var i,u,s=!1,l=!!n,f=[],p=[e],g=[e],h=[t?\"~\":\"[Circular]\"],y=e,d=1;return l&&(u=\"object\"==typeof n?function(e,t){return\"\"!==e&&n.indexOf(e)<0?void 0:t}:n),function(e,n){return l&&(n=u.call(this,e,n)),s?(y!==this&&(i=d-c.call(p,this)-1,d-=i,p.splice(d,p.length),f.splice(d-1,f.length),y=this),\"object\"==typeof n&&n?(c.call(p,n)<0&&p.push(y=n),d=p.length,(i=c.call(g,n))<0?(i=g.push(n)-1,t?(f.push((\"\"+e).replace(a,r)),h[i]=\"~\"+f.join(\"~\")):h[i]=h[0]):n=h[i]):\"string\"==typeof n&&t&&(n=n.replace(r,o).replace(\"~\",r))):s=!0,n}}(e,n,!i),t)},parse:function(e,n){return f.parser.parse(e,function(e){return function(n,t){var a=\"string\"==typeof t;return a&&\"~\"===t.charAt(0)?new s(t.slice(1)):(\"\"===n&&(t=l(t,t,{})),a&&(t=t.replace(u,\"$1~\").replace(o,r)),e?e.call(this,n,t):t)}}(n))},parser:JSON},p=f.stringify,g=t.fetch,h=t.AlipayJSBridge&&t.AlipayJSBridge.call;function y(e,n){if(g){var t=encodeURIComponent(JSON.stringify({action:\"internalAPI\",data:{method:e,param:n}}));g(\"https://alipay.kylinBridge/?data=\"+t,{mode:\"no-cors\"}).then((function(){})).catch((function(){}))}else h&&h(\"internalAPI\",{method:e,param:n})}function d(e,n){return void 0===n?\"©undefined\":null===n?\"©null\":n===-1/0?\"©-Infinity\":n===1/0?\"©Infinity\":\"number\"==typeof n&&isNaN(n)?\"©NaN\":\"function\"==typeof n?\"©Function\":n}var m=Function;function b(){t.document&&t.document.addEventListener(\"push\",(function(e){var n=e.data;if(n&&\"onMessageFromVConsole\"===n.func){var t;try{var r=n.param.content||n.param.data.content;if(!r)return;t=JSON.parse(r)}catch(e){return}if(t.fromVConsoleToWorker&&\"exec\"===t.method)try{new m(\"requestId\",\"sendBack\",\"var res = \"+t.script+\";console.log(res);\")(t.requestId,(function(e){return function(e,n){y(\"tinyDebugConsole\",{type:\"msgFromWorkerToVConsole\",content:p({requestId:e,returnValue:n},d)})}(t.requestId,e)}))}catch(e){console.warn(\"bugme execute script error\",e)}}}))}if(!t.__BUGME_ON__){t.__BUGME_ON__=!0;try{b(),Object.defineProperties(console,[\"log\",\"info\",\"error\",\"debug\",\"warn\"].reduce((function(e,n){var t=console[n];return e[n]={value:function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];t.apply(console,e);try{var o=p(e.map((function(e){return e instanceof Error?e.name+\": \"+e.message:e})),d);y(\"tinyDebugConsole\",{content:o,type:\"console_\"+n})}catch(e){t(\"bugme console error\",e)}},configurable:!0,writable:!0,enumerable:!0},e}),{}))}catch(e){console.warn(\"bugme init error\",e)}}}();\n","tyroAgent":"!function(){\"use strict\";function getObjectOwnPropertyDescriptors(e){return Object.getOwnPropertyDescriptors?Object.getOwnPropertyDescriptors(e):Object.getOwnPropertyNames(e).reduce((function(t,r){return t[r]=Object.getOwnPropertyDescriptor(e,r),t}),Object.create(null))}function isError(e){return\"[object Error]\"===Object.prototype.toString.call(e)||e instanceof Error}function isDate(e){return\"[object Date]\"===Object.prototype.toString.call(e)||e instanceof Date}function isRegExp(e){return\"[object RegExp]\"===Object.prototype.toString.call(e)||e instanceof RegExp}function isPromise(e){return\"[object Promise]\"===Object.prototype.toString.call(e)||e instanceof Promise}var ObjectMapper=function(){function e(e){this.objectStore=e}return e.prototype.mapFrom=function(e,t){var r=this;return Array.from(e).map((function(e){return r.mapFromOne(e,t)}))},e.prototype.mapFromOne=function(e,t){switch(typeof e){case\"string\":return this.mapString(e);case\"number\":return this.mapNumber(e);case\"object\":return Array.isArray(e)?this.mapArray(e,\"table\"===t):null===e?this.mapNull():this.mapObject(e,\"table\"===t);case\"function\":return this.mapFunction(e);case\"undefined\":return this.mapUndef();case\"boolean\":return this.mapBoolean(e);default:return{type:typeof e,value:e}}},e.prototype.mapString=function(e){return{type:\"string\",value:e}},e.prototype.mapNumber=function(e){return{type:\"number\",value:e,description:String(e)}},e.prototype.mapBoolean=function(e){return{type:\"boolean\",value:e}},e.prototype.mapFunction=function(e){var t=this.objectStore.save(e);return{type:\"function\",className:\"Function\",description:e.toString(),objectId:t}},e.prototype.mapUndef=function(){return{type:\"undefined\"}},e.prototype.mapNull=function(){return{type:\"object\",subtype:\"null\",value:null}},e.prototype.mapObject=function(e,t){var r,n,s=this,i=getObjectOwnPropertyDescriptors(e),o=Object.keys(i),a=this.objectStore.save(e),c=e.constructor?e.constructor.name:\"Object\",p=o.length>5&&!t,u={type:\"object\",className:c,description:c,objectId:a,preview:{type:\"object\",description:c,overflow:p,properties:(p?o.slice(0,5):o).map((function(e){return s.getPropertyPreview4ObjectProperty(e,i[e],t)})).filter(Boolean)}};return isError(e)?(r=\"error\",-1===(n=e.stack||\"\").indexOf(e.name)&&(n=e.toString()+\"\\n\"+n)):isDate(e)?(r=\"date\",n=e.toString()):isRegExp(e)?(r=\"regexp\",n=e.toString()):isPromise(e)&&(r=\"promise\",n=\"Promise\"),r&&(u.subtype=r,u.preview&&(u.preview.subtype=r)),n&&(u.description=n,u.preview&&(u.preview.description=n)),u},e.prototype.mapArray=function(e,t){var r=this,n=e.length>100&&!t,s=\"Array(\"+e.length+\")\";return{type:\"object\",subtype:\"array\",className:\"Array\",description:s,objectId:this.objectStore.save(e),preview:{type:\"object\",subtype:\"array\",description:s,overflow:n,properties:(n?e.slice(0,100):e).map((function(e,n){return r.getPropertyPreview4ArrayProperty(n,e,t)}))}}},e.prototype.getPropertyPreview4ArrayProperty=function(e,t,r){return this.getPropertyPreview4AnyValue(String(e),t,r)},e.prototype.getPropertyPreview4ObjectProperty=function(e,t,r){return t.get?{name:e,type:\"accessor\"}:t.set?void 0:this.getPropertyPreview4AnyValue(e,t.value,r)},e.prototype.getPropertyPreview4AnyValue=function(e,t,r){switch(void 0===r&&(r=!1),typeof t){case\"object\":if(Array.isArray(t)){var n={name:e,type:\"object\",subtype:\"array\",value:\"Array(\"+t.length+\")\"};return r&&(n.valuePreview=this.getValuePreview4TableArray(t)),n}if(null===t)return{name:e,type:\"object\",subtype:\"null\",value:\"null\"};n={name:e,type:\"object\",value:t.constructor?t.constructor.name:\"Object\"};return r&&(n.valuePreview=this.getValuePreview4TableObject(t)),n;case\"function\":return{type:\"function\",value:\"\",name:e};default:return{name:e,type:typeof t,value:String(t)}}},e.prototype.getValuePreview4TableArray=function(e){var t=this;return{type:\"object\",subtype:\"array\",description:\"Array(\"+e.length+\")\",overflow:!1,properties:e.map((function(e,r){return t.getPropertyPreview4AnyValue(String(r),e)}))}},e.prototype.getValuePreview4TableObject=function(e){var t=this;return{type:\"object\",description:\"Object\",overflow:!1,properties:Object.keys(e).map((function(r){return t.getPropertyPreview4AnyValue(r,e[r])}))}},e}(),extendStatics=function(e,t){return(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)};function __extends(e,t){function r(){this.constructor=e}extendStatics(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var ExtractStackLine=function(){function e(){this.e1=/\\s*at\\s(\\S+)\\s(\\S+)\\:(\\d+)\\:(\\d+)\\)/,this.e2=/\\s*at\\s(\\S+)\\:(\\d+)\\:(\\d+)/}return e.prototype.testType1=function(e){return this.e1.test(e)},e.prototype.testType2=function(e){return this.e2.test(e)},e.prototype.extractType1=function(e){var t=e.match(this.e1);return null==t?null:{functionName:t[1],url:t[2].slice(1),lineNumber:Number(t[3]),columnNumber:Number(t[4])}},e.prototype.extractType2=function(e){var t=e.match(this.e2);return null==t?null:{functionName:\"\",url:t[1].slice(1),lineNumber:Number(t[2]),columnNumber:Number(t[3])}},e}(),CallFramesMapper=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.mapFrom=function(e){var t=this;return e.split(\"\\n\").slice(2).map((function(e,r){return t.testType1(e)?t.extractType1(e):t.testType2(e)?t.extractType2(e):void 0})).filter((function(e){return null!=e}))},t}(ExtractStackLine),executionContextId=1,injectedScriptId=1,ObjectStore=function(){function e(){this.id=0,this.id2Object=new Map,this.object2Id=new Map}return e.prototype.save=function(e){if(this.object2Id.has(e))return this.object2Id.get(e);var t=this.getNextObjectId();return this.id2Object.set(t,e),this.object2Id.set(e,t),t},e.prototype.query=function(e){return this.id2Object.get(e)},e.prototype.clear=function(e){var t=this.id2Object.get(e);t&&(this.id2Object.delete(e),this.object2Id.delete(t))},e.prototype.clearAll=function(){this.id2Object.clear(),this.object2Id.clear()},e.prototype.getNextObjectId=function(){return this.id++,'{\"injectedScriptId\":'+injectedScriptId+',\"id\":'+this.id+\"}\"},e}(),GetPropertiesHandler=function(){function e(e,t){this.objectStore=e,this.objectMapper=t}return e.prototype.handle=function(e){var t=this.objectStore.query(e.objectId);return t?{result:this.mapObject(t,Boolean(e.ownProperties),Boolean(e.accessorPropertiesOnly))}:{result:[]}},e.prototype.mapObject=function(e,t,r){var n=this;if(t){var s=getObjectOwnPropertyDescriptors(e),i=Object.keys(s).filter((function(e){return!(r&&!s[e].get&&!s[e].set)})).map((function(e){return n.mapResultOne(e,s[e],!0)}));return e.__proto__&&i.push(this.mapResultOne(\"__proto__\",{configurable:!0,enumerable:!1,writable:!0,value:e.__proto__},!0)),i}for(var o=[],a={},c=e,p=!1,u=!0,l=function(){var e=getObjectOwnPropertyDescriptors(c);if(Object.keys(e).forEach((function(t){if(!a[t]){a[t]=!0;var s=e[t];(!r||s.get||s.set)&&o.push(n.mapResultOne(t,s,u))}})),!p){var t=Object.getOwnPropertyDescriptor(c,\"__proto__\");t&&(p=!0,o.push(y.mapResultOne(\"__proto__\",t,u)))}c=c.__proto__,u=!1},y=this;c;)l();return o},e.prototype.mapResultOne=function(e,t,r){var n={writable:t.writable,configurable:Boolean(t.configurable),enumerable:Boolean(t.enumerable),isOwn:r,name:String(e)};return\"value\"in t&&(n.value=this.objectMapper.mapFromOne(t.value)),t.get&&(n.get=this.objectMapper.mapFromOne(t.get)),t.set&&(n.set=this.objectMapper.mapFromOne(t.set)),n},e}(),RemoteObjectParser=function(){function e(){this.objectStore=new ObjectStore,this.objectMapper=new ObjectMapper(this.objectStore),this.callFramesMapper=new CallFramesMapper,this.getPropertiesHandler=new GetPropertiesHandler(this.objectStore,this.objectMapper)}return e.prototype.parseObject=function(e,t){return this.objectMapper.mapFromOne(e,t)},e.prototype.getProperties=function(e){return this.getPropertiesHandler.handle(e)},e.prototype.getObjectById=function(e){return this.objectStore.query(e)},e.prototype.consoleAPICalled=function(e,t,r){var n=e;return\"warn\"===e&&(n=\"warning\"),{method:\"Runtime.consoleAPICalled\",params:{type:n,args:this.objectMapper.mapFrom(r,e),executionContextId:executionContextId,timestamp:Date.now(),stackTrace:{callFrames:this.callFramesMapper.mapFrom(t)}}}},e}(),ResponseEvent,RequestMethod,BreakStepType,FingerType;function getStartupParams(){if(\"undefined\"!=typeof __appxStartupParams&&__appxStartupParams&&__appxStartupParams.appId)return __appxStartupParams;if(\"undefined\"!=typeof my)try{return my.callSync(\"getStartupParams\")||{}}catch(e){}return{}}!function(e){e.ById=\"Tyro.byId\",e.Sticky=\"Tyro.sticky\",e.StickyNotSendPaused=\"Tyro.stickyNotSendPaused\",e.StickyAsync=\"Tyro.stickyAsync\",e.ScriptSource=\"Tyro.scriptSource\",e.Resumed=\"Debugger.resumed\",e.ConsoleAPICalled=\"Runtime.consoleAPICalled\"}(ResponseEvent||(ResponseEvent={})),function(e){e.DiscardConsoleEntries=\"Tyro.discardConsoleEntries\",e.Evaluate=\"Tyro.evaluate\",e.EvaluateOnCallFrame=\"Tyro.evaluateOnCallFrame\",e.CallFunctionOn=\"Tyro.callFunctionOn\",e.CompileScript=\"Tyro.compileScript\",e.SetBreakpointsActive=\"Tyro.setBreakpointsActive\",e.SetSkipAllPauses=\"Tyro.setSkipAllPauses\",e.Resume=\"Tyro.resume\",e.StepInto=\"Tyro.stepInto\",e.StepOver=\"Tyro.stepOver\",e.StepOut=\"Tyro.stepOut\",e.Pause=\"Tyro.pause\",e.GetPossibleBreakpoints=\"Tyro.getPossibleBreakpoints\",e.SetBreakpointByUrl=\"Tyro.setBreakpointByUrl\",e.SetBreakpoint=\"Tyro.setBreakpoint\",e.RemoveBreakpoint=\"Tyro.removeBreakpoint\",e.REPL=\"Tyro.repl\",e.GetVariableValue=\"Tyro.getVariableValue\",e.SetPauseOnExceptions=\"Tyro.setPauseOnExceptions\",e.SetAsyncCallStackDepth=\"Tyro.setAsyncCallStackDepth\",e.GetProperties=\"Tyro.getProperties\"}(RequestMethod||(RequestMethod={})),function(e){e[e.Non=0]=\"Non\",e[e.NextSticky=1]=\"NextSticky\",e[e.StepOver=2]=\"StepOver\",e[e.StepOut=3]=\"StepOut\"}(BreakStepType||(BreakStepType={})),function(e){e[e.Entry=0]=\"Entry\",e[e.Exit=1]=\"Exit\"}(FingerType||(FingerType={}));var serverConfig={default:{domain:\"hpmweb.alipay.com\"},1:{domain:\"hpmweb.alipay.com\"}};function getServerConfig(){var e=getStartupParams().remoteCh;return e&&serverConfig[e]?serverConfig[e]:serverConfig.default}var appxStackLine=/https:\\/\\/appx\\/af-appx\\.worker\\.min\\.js:\\d+:\\d+/,nativeScriptLine=/https:\\/\\/www\\.alipay\\.com\\/?:\\d+:\\d+|\\[native code\\]/,pluginWorkerStackLine=/https:\\/\\/\\d+\\.hybrid\\.\\S+\\.com\\/__plugins__\\/(\\d+)\\/index\\.worker\\.js:\\d+:\\d+/,appWorkerStackLine=/https:\\/\\/\\d+\\.hybrid\\.\\S+\\.com\\/index\\.worker\\.js:\\d+:\\d+/;function transformSourceUrl(e){try{return pluginWorkerStackLine.test(e)?e.replace(pluginWorkerStackLine,\"Plugin-$1\"):e.replace(appWorkerStackLine,\"App\")}catch(t){return e}}function formatErrorStack(e){var t=e.split(\"\\n\"),r=t[0],n=t.slice(1).filter((function(e){return!appxStackLine.test(e)&&!nativeScriptLine.test(e)})).map(transformSourceUrl);return n.unshift(r),n.join(\"\\n\")}function formatErrorRemoteObject(e){return e.description&&(e.description=formatErrorStack(e.description)),e.preview&&e.preview.description&&(e.preview.description=e.description),e}var TYRO_EXECUTION_CONTEXT_ID=0,TyroUtil=function(){function e(){}return e.throwsMessage=function(e){return\"[Throws: \"+(e?e.message:\"?\")+\"]\"},e.safeGetValueFromPropertyOnObject=function(t,r){if(Object.prototype.hasOwnProperty.call(t,r))try{return t[r]}catch(t){return e.throwsMessage(t)}return t[r]},e.ensureProperties=function(t){var r=[];return function t(n){if(null===n||\"object\"!=typeof n)return n;if(-1!==r.indexOf(n))return\"[Circular]\";if(r.push(n),\"function\"==typeof n.toJSON)try{var s=t(n.toJSON());return r.pop(),s}catch(t){return e.throwsMessage(t)}if(Array.isArray(n)){var i=n.map(t);return r.pop(),i}var o=Object.keys(n).reduce((function(r,s){return r[s]=t(e.safeGetValueFromPropertyOnObject(n,s)),r}),{});return r.pop(),o}(t)},e.safeJSONStringify=function(t,r,n){return JSON.stringify(e.ensureProperties(t),r,n)},e.isWebIDE=function(){return!(\"undefined\"==typeof navigator||!navigator)&&(navigator.swuserAgent||navigator.userAgent||\"\").indexOf(\"AlipayIDE\")>-1},e}(),StickyFinger=function(){function StickyFinger(e,t,r,n){var s=this;this.isWebIDE=!1,this.asyncRequestMethod=\"tyroRequest\",this.host=t,this.contextMap={},this.contextUrlMap={},this.breakpointMap={},this.breakpointIdMap={},this.debuggerMap={},this.originConsoleAPI={},this.requestTaskId=0,this.stickyMsgQueue=[],this.wsMsgQueue=[],this.wsIsOpen=!1,this.instrumentId=r,this.stickyFlag=n.stickyFlag,this.fingerFlag=n.fingerFlag,this.remoteObjectParser=new RemoteObjectParser,this.hookConsole(),this.stickyFlag&&(setTimeout((function(){s.socketTask=my.connectSocket({url:\"wss://\"+getServerConfig().domain+\"/tyro/agent/\"+s.instrumentId,multiple:!0});var e=function(){if(!s.wsIsOpen){s.originConsoleAPI.log(\"[tyro-agent] WebSocket 连接成功\"),s.wsIsOpen=!0;for(var e=0,t=s.wsMsgQueue;e<t.length;e++){var r=t[e];s.socketTask.send({data:r})}s.wsMsgQueue=[]}};s.socketTask.onOpen((function(){e()})),s.socketTask.onClose((function(){s.originConsoleAPI.log(\"[tyro-agent] WebSocket 连接已关闭\")})),s.socketTask.onMessage((function(t){s.wsIsOpen||e(),s.handleStickyAsync(JSON.parse(t.data.data))}))}),2e3),this.breakpointsActive=!0,this.skipAllPauses=!1,this.breakStepType=BreakStepType.Non,this.stackDepth=0,this.pauseOnExceptions=\"none\",this.asyncCallStackDepth=0,this.lastStickyAsyncError=0,this.globalExecutionContext=e,this.evaluateOnCallFrameExpression=\"\",this.stickyNotSendPaused=!1,this.sendStickyParams=!1),this.fingerFlag&&(this.fingerId=0,this.fingerCache=[],this.fingerSendInterval=1e3,this.jsapiCallId=0,setInterval((function(){0!==s.fingerCache.length&&(s.sendPerf(\"Perf.trace\",s.fingerCache),s.fingerCache=[])}),this.fingerSendInterval)),this.isWebIDE=TyroUtil.isWebIDE(),this.isWebIDE&&(this.asyncRequestMethod=\"tyroRequestAsync\")}return StickyFinger.rewritePath=function(e){var t=e;return\".\"===t[0]&&(t=t.replace(\".\",\"\")),t=\"app://\"+(t=t.replace(\"tmp/data/build/\",\"\"))},StickyFinger.processRawContext=function(e){var t={path:this.rewritePath(e.path),contextId:String(e.contextId),scope:{0:[]},function:{},debuggerLine:e.debuggerLine,stickyLine:e.stickyLine};return e.scope&&Object.keys(e.scope).map((function(r){var n=e.scope[r],s=n.shift(),i=t.scope[s];t.scope[r]=i?i.concat(n.filter((function(e){return i.indexOf(e)<0}))):n})),e.function&&Object.keys(e.function).map((function(r){var n=e.function[r];t.function[r]={name:n[0],line:n[1]}})),t},StickyFinger.prototype.register=function(e,t){var r=String(e.contextId),n=StickyFinger.rewritePath(e.path);this.originConsoleAPI.log(\"[tyro-agent] register contextId \"+r+\" path \"+n),this.contextMap[r]||this.breakpointMap[r]?this.originConsoleAPI.warn(\"[tyro-agent] duplicate context register \"+r+\" \"+n):(this.contextMap[r]=StickyFinger.processRawContext(e),this.contextUrlMap[n]=r,this.breakpointMap[r]={},this.debuggerMap[r]=this.contextMap[r].debuggerLine.reduce((function(e,t){return e[t-1]=!0,e}),{}),this.stickyFlag&&this.xhrSend(ResponseEvent.ScriptSource,{scriptSource:t,scriptId:String(r),executionContextId:TYRO_EXECUTION_CONTEXT_ID,url:n}))},StickyFinger.prototype.sticky=function(e,t,r){if(!this.skipAllPauses&&this.breakpointsActive&&((this.debuggerMap[e]||{})[t]||(this.breakpointMap[e]||{})[t]||this.breakStepType===BreakStepType.NextSticky||this.breakStepType===BreakStepType.StepOver&&(new Error).stack.split(\"\\n\").length<=this.stackDepth||this.breakStepType===BreakStepType.StepOut&&(new Error).stack.split(\"\\n\").length<this.stackDepth||!0===this.sendStickyParams)){this.originConsoleAPI.log(\"[tyro-agent] sticky \"+e+\" \"+t),this.breakStepType=BreakStepType.Non;var n={};if(this.stickyNotSendPaused)this.originConsoleAPI.log(\"[tyro-agent] stickyNotSendPaused\");else{if(!this.sendStickyParams){this.originConsoleAPI.log(\"[tyro-agent] sticky sendStickyParams step 1\"),n={callFrames:null,reason:\"other\",hitBreakpoints:[]};var s=this.breakpointMap[e][t];s&&n.hitBreakpoints.push(s);var i=(new Error).stack.split(\"\\n\");return this.stackDepth=i.length,Agent.isPhone?n.callFrames=this.processCallFramesPhone(String(e),t,r,i):n.callFrames=this.processCallFrames(String(e),t,r,i),this.stickyParams=n,this.sendStickyParams=!0,\"(function(){\\n var localObject = {};\\n Agent.getScopeVariables().forEach(function (key) {\\n localObject[key] = (function(){try{return eval(key)}catch(e){return undefined}})();\\n });\\n Agent.inflateStickyParamsObject(localObject);\\n return true;\\n })()\"}this.originConsoleAPI.log(\"[tyro-agent] sticky sendStickyParams step 2\"),n=this.stickyParams,this.sendStickyParams=!1}this.originConsoleAPI.log(\"[tyro-agent] sticky params \"+TyroUtil.safeJSONStringify(n));var o=JSON.parse(this.xhrSend(ResponseEvent.Sticky,n));return this.handleSticky(o)}},StickyFinger.prototype.fingerEntry=function(e,t){var r=this.contextMap[e].path,n=this.contextMap[e].function[t],s=this.generateFingerId(),i={time:Date.now(),file:r,line:n.line,name:n.name,id:s,type:FingerType.Entry};return this.fingerCache.push(i),s},StickyFinger.prototype.fingerExit=function(e,t,r){var n=this.contextMap[e].path,s=this.contextMap[e].function[t],i={time:Date.now(),file:n,line:s.line,name:s.name,id:r,type:FingerType.Exit};this.fingerCache.push(i)},StickyFinger.prototype.sendPerf=function(e,t){self.bugmeAPI?self.bugmeAPI.send({method:e,params:t}):self.document?self.document.addEventListener(\"bugmeInjected\",(function(){self.bugmeAPI.send({method:e,params:t})})):self.addEventListener&&self.addEventListener(\"bugmeInjected\",(function(){self.bugmeAPI.send({method:e,params:t})}))},StickyFinger.prototype.consoleAPICalled=function(e,t){var r=this,n=e;return\"warn\"===e&&(n=\"warning\"),{method:\"Runtime.consoleAPICalled\",params:{type:n,args:Array.from(t).map((function(t){return r.remoteObjectParser.parseObject(t,e)})),executionContextId:TYRO_EXECUTION_CONTEXT_ID,timestamp:Date.now()}}},StickyFinger.prototype.hookConsole=function(){var e=this,t=this;Object.defineProperties(console,[\"debug\",\"log\",\"info\",\"warn\",\"error\",\"table\"].reduce((function(r,n){var s=console[n].bind(console);return e.originConsoleAPI[n]=s,r[n]={value:function(){var e=arguments;if(e.length){try{var r=/^(\\[framework\\]|dispatchEvent|onMessage push|unsupported protocol)/;if(\"string\"==typeof e[0]&&r.test(e[0]))return s.apply(null,e);var i=t.consoleAPICalled(n,e).params;i.args.forEach((function(e){\"error\"===e.subtype&&formatErrorRemoteObject(e)})),t.xhrSend(ResponseEvent.ConsoleAPICalled,i,null,!1)}catch(e){}return s.apply(null,e)}}},r}),{}))},StickyFinger.prototype.inflateStickyParamsObject=function(e){if(0!==this.stickyParams.callFrames.length){var t=this.remoteObjectParser.parseObject(e).objectId;this.stickyParams.callFrames[0].scopeChain.push({type:\"local\",name:this.stickyParams.callFrames[0].functionName,object:{className:\"Object\",description:\"Object\",objectId:t,type:\"object\"}})}},StickyFinger.prototype.processCallFrames=function(e,t,r,n){var s=this,i=[],o=n.slice(3,n.length).map((function(e){return e.substr(0,e.lastIndexOf(\":\")).replace(\" at \",\"\").replace(\" (\",\":\")})),a=0,c=!0;return o.map((function(t){var n=t.split(\":\"),o=n[0],p=s.contextMap[e].path,u=Number(n[n.length-1]),l=s.contextUrlMap[p]||\"none\",y=a+\":\"+u+\":\"+p;c&&(s.scopeVariables=void 0!==s.contextMap[e]?s.contextMap[e].scope[r]:[],c=!1);var h={callFrameId:y,functionName:o,location:{scriptId:l,lineNumber:u,columnNumber:0},url:p,scopeChain:[],this:{}};i.push(h),a+=1})),i},StickyFinger.prototype.processCallFramesPhone=function(e,t,r,n){var s=this,i=[],o=n.slice(2,n.length).map((function(e){return e.substr(0,e.lastIndexOf(\":\")).replace(\" at \",\"\").replace(\" (\",\":\").replace(\"@\",\":\")})),a=0,c=!0;return o.map((function(n){var o=n.split(\":\"),p=o[0],u=s.contextMap[e].path,l=Number(o[o.length-1]),y=s.contextUrlMap[u]||\"none\",h=a+\":\"+l+\":\"+u;c&&(s.scopeVariables=void 0!==s.contextMap[e]?s.contextMap[e].scope[r]:[],s.originConsoleAPI.log(\"scopeVariables \"+TyroUtil.safeJSONStringify(s.scopeVariables)),s.originConsoleAPI.log(\"scopeVariables \"+TyroUtil.safeJSONStringify(s.contextMap[e])+\" \"+s.contextMap[e].scope+\" \"+r),c=!1);var d={callFrameId:h,functionName:p,location:{scriptId:y,lineNumber:t,columnNumber:0},url:u,scopeChain:[],this:{}};i.push(d),a+=1})),i},StickyFinger.prototype.stickyAsyncLoop=function(){this.xhrSend(ResponseEvent.StickyAsync,{})},StickyFinger.prototype.xhrSendJSAPI=function(e,t,r,n){var s,i=this;if(e===ResponseEvent.Sticky){var o;this.stickyMsgQueue.length>0?(this.stickyMsgQueue.push({method:this.stickyNotSendPaused?ResponseEvent.StickyNotSendPaused:ResponseEvent.Sticky,params:t}),o=TyroUtil.safeJSONStringify(this.stickyMsgQueue),this.stickyMsgQueue=[]):o=TyroUtil.safeJSONStringify({method:this.stickyNotSendPaused?ResponseEvent.StickyNotSendPaused:ResponseEvent.Sticky,params:t}),my.call(\"showRemoteDebugMask\",{text:\" \",buttonTitle:\"断点命中\",hide:!1}),this.stickyNotSendPaused=!1;var a=Date.now(),c=my.callSync(\"tyroRequest\",{url:this.host+\"/tyro/agent\",method:\"POST\",headers:{\"Content-Type\":\"application/json;charset=UTF-8\",\"instrument-id\":this.instrumentId},data:o,timeout:6e5,blockTimeout:6e5,dataType:\"json\",requestTaskId:this.requestTaskId++});return my.call(\"showRemoteDebugMask\",{hide:!0}),c.error||null===c?(null===c?this.originConsoleAPI.error(\"[tyro-agent] xhrSend error result is \"+c):this.originConsoleAPI.error(\"[tyro-agent] xhrSend error \"+c.error+\" \"+c.errorMessage),Date.now()-a>=5e3?this.xhrSendJSAPI(e,t,r,n):TyroUtil.safeJSONStringify({method:\"default\"})):200!==c.status?(this.originConsoleAPI.error(\"[tyro-agent] xhrSend status fail \"+e+\" \"+c.status),TyroUtil.safeJSONStringify({method:\"default\"})):c.data}if(e===ResponseEvent.StickyAsync){var p=TyroUtil.safeJSONStringify({method:ResponseEvent.StickyAsync,params:t});this.originConsoleAPI.info(\"[tyro-agent] xhrSend async send \"+p),my.call(this.asyncRequestMethod,{url:this.host+\"/tyro/agent\",method:\"POST\",headers:{\"Content-Type\":\"application/json;charset=UTF-8\",\"instrument-id\":this.instrumentId},data:p,timeout:6e5,dataType:\"json\",requestTaskId:this.requestTaskId++,success:function(e){i.lastStickyAsyncError=0,i.stickyAsyncLoop(),200===e.status?(i.originConsoleAPI.info(\"[tyro-agent] xhrSend async success \"+e.status+\" \"+e.data),i.handleStickyAsync(JSON.parse(e.data))):i.originConsoleAPI.error(\"[tyro-agent] xhrSend async fail \"+e.status+\" \"+e.data)},fail:function(e){i.lastStickyAsyncError>=3?setTimeout((function(){i.stickyAsyncLoop()}),3e3):(i.lastStickyAsyncError+=1,i.stickyAsyncLoop()),i.originConsoleAPI.error(\"[tyro-agent] xhrSend async error \"+TyroUtil.safeJSONStringify(e))}})}switch(e){case ResponseEvent.ById:s={id:r,result:t};break;case ResponseEvent.ScriptSource:s={method:ResponseEvent.ScriptSource,params:t};break;case ResponseEvent.Resumed:s={method:ResponseEvent.Resumed,params:t};break;case ResponseEvent.ConsoleAPICalled:s={method:ResponseEvent.ConsoleAPICalled,params:t};break;default:return}n?this.stickyMsgQueue.push(s):this.wsIsOpen?this.socketTask.send({data:TyroUtil.safeJSONStringify(s)}):this.wsMsgQueue.push(TyroUtil.safeJSONStringify(s))},StickyFinger.prototype.xhrSend=function(e,t,r,n){var s=this;if(Agent.isPhone)return this.xhrSendJSAPI(e,t,r,n);var i,o=new XMLHttpRequest;if(e===ResponseEvent.Sticky){var a;if(o.open(\"POST\",this.host+\"/tyro/agent\",!1),o.setRequestHeader(\"Content-Type\",\"application/json;charset=UTF-8\"),o.setRequestHeader(\"instrument-id\",this.instrumentId),this.stickyMsgQueue.length>0){this.stickyMsgQueue.push({method:this.stickyNotSendPaused?ResponseEvent.StickyNotSendPaused:ResponseEvent.Sticky,params:t});try{a=TyroUtil.safeJSONStringify(this.stickyMsgQueue)}catch(e){this.originConsoleAPI.error(e),a=TyroUtil.safeJSONStringify({method:this.stickyNotSendPaused?ResponseEvent.StickyNotSendPaused:ResponseEvent.Sticky,params:t})}finally{this.stickyMsgQueue=[]}}else a=TyroUtil.safeJSONStringify({method:this.stickyNotSendPaused?ResponseEvent.StickyNotSendPaused:ResponseEvent.Sticky,params:t});if(this.stickyNotSendPaused=!1,o.send(a),200===o.status)return o.responseText;throw new Error(\"[sticky-finger] xhrSend error \"+e+\" \"+o.status)}if(e===ResponseEvent.StickyAsync)return o.open(\"POST\",this.host+\"/tyro/agent\",!0),o.setRequestHeader(\"Content-Type\",\"application/json;charset=UTF-8\"),o.setRequestHeader(\"instrument-id\",this.instrumentId),o.onload=function(){if(s.lastStickyAsyncError=0,s.stickyAsyncLoop(),4!==o.readyState||200!==o.status)throw new Error(\"[tyro-agent] xhrSend async fail \"+e+\" \"+o.readyState+\" \"+o.status);s.handleStickyAsync(JSON.parse(o.responseText))},o.onerror=function(){throw s.lastStickyAsyncError>=3?setTimeout((function(){s.stickyAsyncLoop()}),3e3):(s.lastStickyAsyncError+=1,s.stickyAsyncLoop()),new Error(\"[tyro-agent] xhrSend async error \"+e+\" \"+o.readyState+\" \"+o.status)},void o.send(TyroUtil.safeJSONStringify({method:ResponseEvent.StickyAsync,params:t}));switch(o.open(\"POST\",this.host+\"/tyro/agent\",!0),o.setRequestHeader(\"Content-Type\",\"application/json;charset=UTF-8\"),o.setRequestHeader(\"instrument-id\",this.instrumentId),o.onload=function(){if(4!==o.readyState||200!==o.status)throw new Error(\"[tyro-agent] xhrSend async fail \"+e+\" \"+o.readyState+\" \"+o.status)},o.onerror=function(){throw new Error(\"[tyro-agent] xhrSend async error \"+e+\" \"+o.readyState+\" \"+o.status)},e){case ResponseEvent.ById:i={id:r,result:t};break;case ResponseEvent.ScriptSource:i={method:ResponseEvent.ScriptSource,params:t};break;case ResponseEvent.Resumed:i={method:ResponseEvent.Resumed,params:t};break;case ResponseEvent.ConsoleAPICalled:i={method:ResponseEvent.ConsoleAPICalled,params:t};break;default:return}n?this.stickyMsgQueue.push(i):o.send(TyroUtil.safeJSONStringify(i))},StickyFinger.prototype.handleSticky=function(e){var t=e.id,r=e.method,n=e.params;switch(r){case RequestMethod.DiscardConsoleEntries:return this.stickyNotSendPaused=!0,this.originConsoleAPI.log(\"[tyro-agent] DiscardConsoleEntries success\"),\"true\";case RequestMethod.CallFunctionOn:return this.stickyNotSendPaused=!0,this.originConsoleAPI.log(\"[tyro-agent] CallFunctionOn TODO sticky\"),\"true\";case RequestMethod.CompileScript:return this.stickyNotSendPaused=!0,this.originConsoleAPI.log(\"[tyro-agent] CompileScript success, \"+TyroUtil.safeJSONStringify(n)),\"true\";case RequestMethod.SetBreakpointsActive:return this.stickyNotSendPaused=!0,this.breakpointsActive=n.active,this.originConsoleAPI.log(\"[tyro-agent] SetBreakpointsActive success, breakpointsActive \"+this.breakpointsActive),this.breakStepType=BreakStepType.NextSticky,\"true\";case RequestMethod.SetSkipAllPauses:return this.stickyNotSendPaused=!0,this.skipAllPauses=n.skip,this.originConsoleAPI.log(\"[tyro-agent] SetSkipAllPauses success, skipAllPauses \"+this.skipAllPauses),this.breakStepType=BreakStepType.NextSticky,\"true\";case RequestMethod.Resume:return this.xhrSend(ResponseEvent.Resumed,{}),this.originConsoleAPI.log(\"[tyro-agent] Resume success\"),\"false\";case RequestMethod.StepInto:return this.xhrSend(ResponseEvent.Resumed,{}),this.breakStepType=BreakStepType.NextSticky,this.originConsoleAPI.log(\"[tyro-agent] StepInto success\"),\"false\";case RequestMethod.StepOver:return this.xhrSend(ResponseEvent.Resumed,{}),this.breakStepType=BreakStepType.StepOver,this.originConsoleAPI.log(\"[tyro-agent] StepOver success\"),\"false\";case RequestMethod.StepOut:return this.xhrSend(ResponseEvent.Resumed,{}),this.breakStepType=BreakStepType.StepOut,this.originConsoleAPI.log(\"[tyro-agent] StepOut success\"),\"false\";case RequestMethod.GetPossibleBreakpoints:return this.stickyNotSendPaused=!0,this.getPossibleBreakpoints(t,n,!0),this.breakStepType=BreakStepType.NextSticky,\"true\";case RequestMethod.SetBreakpointByUrl:return this.stickyNotSendPaused=!0,this.setBreakpointByUrl(t,n,!0),this.breakStepType=BreakStepType.NextSticky,\"true\";case RequestMethod.SetBreakpoint:return this.stickyNotSendPaused=!0,this.setBreakpoint(t,n,!0),this.breakStepType=BreakStepType.NextSticky,\"true\";case RequestMethod.RemoveBreakpoint:return this.stickyNotSendPaused=!0,this.removeBreakpoint(t,n),this.breakStepType=BreakStepType.NextSticky,\"true\";case RequestMethod.REPL:return this.stickyNotSendPaused=!0,this.breakStepType=BreakStepType.NextSticky,\"(function(){(function(){\"+n.statement+\"})();return true})()\";case RequestMethod.GetVariableValue:this.stickyNotSendPaused=!0;var s=e.params;return this.breakStepType=BreakStepType.NextSticky,\"(function(){(function(){\\n Agent.variableValue({\"+s.map((function(e){return e+\": (function(){try{return \"+e+\"}catch(e){return undefined}})()\"})).join(\",\")+\"})\\n })();return true})()\";case RequestMethod.SetPauseOnExceptions:return this.stickyNotSendPaused=!0,this.setPauseOnExceptions(t,n),this.breakStepType=BreakStepType.NextSticky,\"true\";case RequestMethod.SetAsyncCallStackDepth:return this.stickyNotSendPaused=!0,this.setAsyncCallStackDepth(t,n),this.breakStepType=BreakStepType.NextSticky,\"true\";case RequestMethod.EvaluateOnCallFrame:return this.stickyNotSendPaused=!0,this.evaluateOnCallFrameExpression=n.expression,this.breakStepType=BreakStepType.NextSticky,\"(function(){\\n var tyroRet,tyroErr;\\n try{tyroRet=eval(Agent.getEvaluateOnCallFrameExpression())}\\n catch(e){tyroErr=e}\\n Agent.evaluateOnCallFrame(\"+t+\",tyroRet,tyroErr,\"+n.generatePreview+\");\\n return true;\\n })()\";case RequestMethod.GetProperties:return this.stickyNotSendPaused=!0,this.getProperties(t,n,!0),this.breakStepType=BreakStepType.NextSticky,\"true\";default:return this.breakStepType=BreakStepType.NextSticky,\"true\"}},StickyFinger.prototype.handleStickyAsync=function(e){var t=e.id,r=e.method,n=e.params;switch(this.originConsoleAPI.log(\"[tyro-agent] handleStickyAsync \"+t+\", \"+r+\", \"+n),r){case RequestMethod.DiscardConsoleEntries:this.originConsoleAPI.log(\"[tyro-agent] DiscardConsoleEntries success\");break;case RequestMethod.Evaluate:this.originConsoleAPI.log(\"[tyro-agent] Evaluate start, expression \"+n.expression);var s=this.evaluate(this.globalExecutionContext,t,n);this.originConsoleAPI.log(\"[tyro-agent] Evaluate success, expression \"+n.expression+\", result \"+TyroUtil.safeJSONStringify(s));break;case RequestMethod.CallFunctionOn:this.originConsoleAPI.log(\"[tyro-agent] CallFunctionOn TODO stickyAsync\");break;case RequestMethod.CompileScript:this.originConsoleAPI.log(\"[tyro-agent] CompileScript success, params \"+TyroUtil.safeJSONStringify(n));break;case RequestMethod.SetBreakpointsActive:this.breakpointsActive=n.active,this.originConsoleAPI.log(\"[tyro-agent] SetBreakpointsActive success, breakpointsActive \"+this.breakpointsActive);break;case RequestMethod.SetSkipAllPauses:this.skipAllPauses=n.skip,this.originConsoleAPI.log(\"[tyro-agent] SetSkipAllPauses success, skipAllPauses \"+this.skipAllPauses);break;case RequestMethod.Pause:this.breakStepType=BreakStepType.NextSticky,this.originConsoleAPI.log(\"[tyro-agent] Pause success\");break;case RequestMethod.GetPossibleBreakpoints:this.getPossibleBreakpoints(t,n);break;case RequestMethod.SetBreakpointByUrl:this.setBreakpointByUrl(t,n);break;case RequestMethod.SetBreakpoint:this.setBreakpoint(t,n);break;case RequestMethod.RemoveBreakpoint:this.removeBreakpoint(t,n);break;case RequestMethod.SetPauseOnExceptions:this.setPauseOnExceptions(t,n);break;case RequestMethod.SetAsyncCallStackDepth:this.setAsyncCallStackDepth(t,n);break;case RequestMethod.GetProperties:this.getProperties(t,n)}},StickyFinger.prototype.evaluateOnCallFrame=function(e,t,r,n){var s;if(r){var i=this.remoteObjectParser.parseObject(r);formatErrorRemoteObject(i),s={exceptionDetails:{columnNumber:20,exception:i,exceptionId:1,lineNumber:0,text:\"Uncaught\"},result:i}}else s={result:this.remoteObjectParser.parseObject(t)};return this.xhrSend(ResponseEvent.ById,s,e,!0),s},StickyFinger.prototype.evaluate=function(executionContext,id,params){var returnValue,error,result;try{returnValue=function(expression){return\"function\"==typeof eval?eval(expression):Agent.evalReference(expression)}.call(executionContext,params.expression)}catch(e){error=e}if(error){var errorRemoteObject=this.remoteObjectParser.parseObject(error);formatErrorRemoteObject(errorRemoteObject),result={exceptionDetails:{columnNumber:20,exception:errorRemoteObject,exceptionId:1,lineNumber:0,text:\"Uncaught\"},result:errorRemoteObject}}else result={result:this.remoteObjectParser.parseObject(returnValue)};return this.xhrSend(ResponseEvent.ById,result,id),result},StickyFinger.prototype.getPossibleBreakpoints=function(e,t,r){var n=t.scriptId,s=t.startLine,i=t.endLine===t.startLine?t.endLine+1:t.endLine,o={locations:[]};if(this.contextMap[n])for(var a=this.contextMap[n].stickyLine,c=s;c<i;c++)a.includes(c)&&o.locations.push({scriptId:n,lineNumber:c,columnNumber:0});else this.originConsoleAPI.warn(\"[tyro-agent] getPossibleBreakpoints no scriptId \"+n+\" in contextMap\");this.originConsoleAPI.log(\"[tyro-agent] getPossibleBreakpoints success, result: \"+TyroUtil.safeJSONStringify(o)),this.xhrSend(ResponseEvent.ById,o,e,r)},StickyFinger.prototype.setBreakpointByUrl=function(e,t,r){var n=t.scriptId,s=t.url,i=t.lineNumber;if(this.contextMap[n])if(this.contextMap[n].stickyLine.includes(i)){var o=n+\":\"+i+\":0:\"+s,a={breakpointId:o,locations:[{scriptId:n,lineNumber:i,columnNumber:0}]};this.breakpointMap[n][i]=o,this.breakpointIdMap[o]={contextId:n,line:i},this.originConsoleAPI.log(\"[tyro-agent] setBreakpointByUrl success, scriptId: \"+n+\", url: \"+s+\", lineNumber: \"+i),this.xhrSend(ResponseEvent.ById,a,e,r)}else this.originConsoleAPI.warn(\"[tyro-agent] setBreakpointByUrl not sticky line, scriptId: \"+n+\", url: \"+s+\", lineNumber: \"+i);else this.originConsoleAPI.warn(\"[tyro-agent] setBreakpointByUrl no contextMap, scriptId: \"+n)},StickyFinger.prototype.setBreakpoint=function(e,t,r){var n=t.scriptId,s=t.lineNumber;if(this.contextMap[n])if(this.contextMap[n].stickyLine.includes(s)){var i=n+\":\"+s+\":0\",o={breakpointId:i,actualLocation:{scriptId:n,lineNumber:s,columnNumber:0}};this.breakpointMap[n][s]=i,this.breakpointIdMap[i]={contextId:n,line:s},this.originConsoleAPI.log(\"[tyro-agent] setBreakpoint success, scriptId: \"+n+\", lineNumber: \"+s),this.xhrSend(ResponseEvent.ById,o,e,r)}else this.originConsoleAPI.warn(\"[tyro-agent] setBreakpoint not sticky line, scriptId: \"+n+\", lineNumber: \"+s);else this.originConsoleAPI.warn(\"[tyro-agent] setBreakpoint no contextMap, scriptId: \"+n)},StickyFinger.prototype.removeBreakpoint=function(e,t){var r=t.breakpointId,n=this.breakpointIdMap[r];n||this.originConsoleAPI.warn(\"[tyro-agent] removeBreakpoint no breakpointId \"+r);var s=n.contextId,i=n.line;delete this.breakpointMap[s][i],this.originConsoleAPI.log(\"[tyro-agent] removeBreakpoint success, breakpointId: \"+r+\", scriptId: \"+s+\", line: \"+i)},StickyFinger.prototype.setPauseOnExceptions=function(e,t){t&&[\"none\",\"uncaught\",\"all\"].includes(t.state)?(this.pauseOnExceptions=t.state,this.originConsoleAPI.log(\"[tyro-agent] setPauseOnExceptions success, pauseOnExceptions state \"+this.pauseOnExceptions)):this.originConsoleAPI.warn(\"[tyro-agent] setPauseOnExceptions state invalid: \"+TyroUtil.safeJSONStringify(t))},StickyFinger.prototype.setAsyncCallStackDepth=function(e,t){!t||\"number\"!=typeof t.maxDepth||t.maxDepth<0?this.originConsoleAPI.warn(\"[tyro-agent] setAsyncCallStackDepth maxDepth invalid: \"+TyroUtil.safeJSONStringify(t)):(this.asyncCallStackDepth=t.maxDepth,this.originConsoleAPI.log(\"[tyro-agent] setAsyncCallStackDepth success, maxDepth \"+this.asyncCallStackDepth))},StickyFinger.prototype.getProperties=function(e,t,r){this.xhrSend(ResponseEvent.ById,this.remoteObjectParser.getProperties(t),e,r)},StickyFinger.prototype.generateFingerId=function(){return this.fingerId+=1,this.fingerId},StickyFinger}(),Agent=function(){function e(t,r){if(e.singleton)return e.singleton;this.host=\"https://\"+getServerConfig().domain,this.stickyFinger=new StickyFinger(\"undefined\"!=typeof window?window:self,this.host,t,r)}return e.getShadowMethod=function(){this.globalReference=self,\"function\"==typeof eval?this.evalReference=eval:\"function\"==typeof __eval&&(this.evalReference=__eval)},e.setShadowMethod=function(){this.globalReference.eval=this.evalReference},e.setInstrumentId=function(e){this.instrumentId=e},e.register=function(t,r){if(!e.singleton){if(!this.instrumentId&&\"undefined\"!=typeof my)try{this.instrumentId=getStartupParams().tyroId}catch(e){}e.instance(this.instrumentId,t)}e.singleton.stickyFinger.register(t,r)},e.sticky=function(t,r,n){return e.singleton.stickyFinger.sticky(t,r,n)},e.getEvaluateOnCallFrameExpression=function(){return e.singleton.stickyFinger.evaluateOnCallFrameExpression},e.evaluateOnCallFrame=function(t,r,n,s){return e.singleton.stickyFinger.evaluateOnCallFrame(t,r,n,s)},e.getScopeVariables=function(){return e.singleton.stickyFinger.scopeVariables},e.inflateStickyParamsObject=function(t){return e.singleton.stickyFinger.inflateStickyParamsObject(t)},e.entry=function(t,r){return e.singleton.stickyFinger.fingerEntry(t,r)},e.exit=function(t,r,n){e.singleton.stickyFinger.fingerExit(t,r,n)},e.instance=function(t,r){e.singleton=new e(t,r)},e.isPhone=!0,e.instrumentId=null,e}();Agent.getShadowMethod();var globalReference=\"undefined\"!=typeof window?window:self;globalReference.Agent||(globalReference.StickyFinger=StickyFinger,globalReference.Agent=Agent)}();\n"}
|