1 line
72 KiB
Plaintext
1 line
72 KiB
Plaintext
(self.webpackChunkdouyin_web=self.webpackChunkdouyin_web||[]).push([["90551"],{309841:function(e){var t,n;t=window,n=function(){return 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||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=1)}({"02740bd7591c8238f1ea":function(e,t,n){n("7de773166063f5e40159"),e.exports=n("7e408bcfe85cb9488ad3").Object.keys},"03cfeba25e1aa70737dc":function(e,t){e.exports=function(e,t,n,r){if(!(e instanceof t)||void 0!==r&&r in e)throw TypeError(n+": incorrect invocation!");return e}},"055453d5b28e0569bd1e":function(e,t,n){"use strict";var r=n("c298a4cba7a827a35ea3"),o=n("3a2e5efede9e0ff51479"),i=n("ef981114e348b8f965cd"),a={};n("b5625f5f1a14a294eb13")(a,n("9cde4b5f7d4fea6de520")("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=r(a,{next:o(1,n)}),i(e,t+" Iterator")}},"071e5d401fe7f2646ed9":function(e,t,n){var r=n("cdaebfbe1d9bdf46b732"),o=n("154634b3587701d4651d"),i=n("891049f64d526cfb582c");e.exports=function(e){return function(t,n,a){var s,c=r(t),f=o(c.length),u=i(a,f);if(e&&n!=n){for(;f>u;)if((s=c[u++])!=s)return!0}else for(;f>u;u++)if((e||u in c)&&c[u]===n)return e||u||0;return!e&&-1}}},"07ff155567688636b304":function(e,t){e.exports=!0},"08b004981d9a33932445":function(e,t,n){var r=n("e2267556f717fc064ba2"),o=n("9cde4b5f7d4fea6de520")("toStringTag"),i="Arguments"==r(function(){return arguments}());e.exports=function(e){var t,n,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),o))?n:i?r(t):"Object"==(a=r(t))&&"function"==typeof t.callee?"Arguments":a}},"0a67ffe64563af2f4879":function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},"0c8d6192f849e733c014":function(e,t,n){var r=n("9a79a94336bcdbd8d603").navigator;e.exports=r&&r.userAgent||""},"0fc12ca1362b58df91e1":function(e,t,n){"use strict";var r,o,i,a,s=n("07ff155567688636b304"),c=n("9a79a94336bcdbd8d603"),f=n("d4be94695ed2602e0f2c"),u=n("08b004981d9a33932445"),d=n("2cf872c482ec3df85cfe"),l=n("17359dda8acb856eb0ac"),p=n("6fb286a548b08f78c161"),h=n("03cfeba25e1aa70737dc"),b=n("9c07191f66aabf102419"),m=n("6e544f64f8c620d081da"),v=n("133a28fd949186ba8f1a").set,y=n("64e4a0166783457286f1")(),g=n("b4a17be73207ed060645"),_=n("3f3aadd18f2780583726"),w=n("0c8d6192f849e733c014"),x=n("5d18393f6665e194d223"),O=c.TypeError,E=c.process,T=E&&E.versions,P=T&&T.v8||"",A=c.Promise,k="process"==u(E),S=function(){},j=o=g.f,C=!!function(){try{var e=A.resolve(1),t=(e.constructor={})[n("9cde4b5f7d4fea6de520")("species")]=function(e){e(S,S)};return(k||"function"==typeof PromiseRejectionEvent)&&e.then(S) instanceof t&&0!==P.indexOf("6.6")&&-1===w.indexOf("Chrome/66")}catch(e){}}(),I=function(e){var t;return!(!l(e)||"function"!=typeof(t=e.then))&&t},L=function(e,t){if(!e._n){e._n=!0;var n=e._c;y(function(){for(var r=e._v,o=1==e._s,i=0;n.length>i;)!function(t){var n,i,a,s=o?t.ok:t.fail,c=t.resolve,f=t.reject,u=t.domain;try{s?(o||(2==e._h&&M(e),e._h=1),!0===s?n=r:(u&&u.enter(),n=s(r),u&&(u.exit(),a=!0)),n===t.promise?f(O("Promise-chain cycle")):(i=I(n))?i.call(n,c,f):c(n)):f(r)}catch(e){u&&!a&&u.exit(),f(e)}}(n[i++]);e._c=[],e._n=!1,t&&!e._h&&R(e)})}},R=function(e){v.call(c,function(){var t,n,r,o=e._v,i=D(e);if(i&&(t=_(function(){k?E.emit("unhandledRejection",o,e):(n=c.onunhandledrejection)?n({promise:e,reason:o}):(r=c.console)&&r.error&&r.error("Unhandled promise rejection",o)}),e._h=k||D(e)?2:1),e._a=void 0,i&&t.e)throw t.v})},D=function(e){return 1!==e._h&&0===(e._a||e._c).length},M=function(e){v.call(c,function(){var t;k?E.emit("rejectionHandled",e):(t=c.onrejectionhandled)&&t({promise:e,reason:e._v})})},B=function(e){var t=this;t._d||(t._d=!0,(t=t._w||t)._v=e,t._s=2,t._a||(t._a=t._c.slice()),L(t,!0))},U=function(e){var t,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===e)throw O("Promise can't be resolved itself");(t=I(e))?y(function(){var r={_w:n,_d:!1};try{t.call(e,f(U,r,1),f(B,r,1))}catch(e){B.call(r,e)}}):(n._v=e,n._s=1,L(n,!1))}catch(e){B.call({_w:n,_d:!1},e)}}};C||(A=function(e){h(this,A,"Promise","_h"),p(e),r.call(this);try{e(f(U,this,1),f(B,this,1))}catch(e){B.call(this,e)}},(r=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=n("e4f95445dfa3474b8b57")(A.prototype,{then:function(e,t){var n=j(m(this,A));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=k?E.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&L(this,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),i=function(){var e=new r;this.promise=e,this.resolve=f(U,e,1),this.reject=f(B,e,1)},g.f=j=function(e){return e===A||e===a?new i(e):o(e)}),d(d.G+d.W+!C*d.F,{Promise:A}),n("ef981114e348b8f965cd")(A,"Promise"),n("c28221a3060ded7a2bac")("Promise"),a=n("7e408bcfe85cb9488ad3").Promise,d(d.S+!C*d.F,"Promise",{reject:function(e){var t=j(this);return(0,t.reject)(e),t.promise}}),d(d.S+d.F*(s||!C),"Promise",{resolve:function(e){return x(s&&this===a?A:this,e)}}),d(d.S+!(C&&n("607f27003802e23f393d")(function(e){A.all(e).catch(S)}))*d.F,"Promise",{all:function(e){var t=this,n=j(t),r=n.resolve,o=n.reject,i=_(function(){var n=[],i=0,a=1;b(e,!1,function(e){var s=i++,c=!1;n.push(void 0),a++,t.resolve(e).then(function(e){c||(c=!0,n[s]=e,--a||r(n))},o)}),--a||r(n)});return i.e&&o(i.v),n.promise},race:function(e){var t=this,n=j(t),r=n.reject,o=_(function(){b(e,!1,function(e){t.resolve(e).then(n.resolve,r)})});return o.e&&r(o.v),n.promise}})},1:function(e,t,n){e.exports=n("da881c82f81372495e94")},"133a28fd949186ba8f1a":function(e,t,n){var r,o,i,a=n("d4be94695ed2602e0f2c"),s=n("ebf9d36fd07107e204a5"),c=n("846153413ca366a2e6ad"),f=n("e9549a5a7fc30b638223"),u=n("9a79a94336bcdbd8d603"),d=u.process,l=u.setImmediate,p=u.clearImmediate,h=u.MessageChannel,b=u.Dispatch,m=0,v={},y=function(){var e=+this;if(v.hasOwnProperty(e)){var t=v[e];delete v[e],t()}},g=function(e){y.call(e.data)};l&&p||(l=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return v[++m]=function(){s("function"==typeof e?e:Function(e),t)},r(m),m},p=function(e){delete v[e]},"process"==n("e2267556f717fc064ba2")(d)?r=function(e){d.nextTick(a(y,e,1))}:b&&b.now?r=function(e){b.now(a(y,e,1))}:h?(i=(o=new h).port2,o.port1.onmessage=g,r=a(i.postMessage,i,1)):u.addEventListener&&"function"==typeof postMessage&&!u.importScripts?(r=function(e){u.postMessage(e+"","*")},u.addEventListener("message",g,!1)):r="onreadystatechange"in f("script")?function(e){c.appendChild(f("script")).onreadystatechange=function(){c.removeChild(this),y.call(e)}}:function(e){setTimeout(a(y,e,1),0)}),e.exports={set:l,clear:p}},"14848959a2434ef18179":function(e,t,n){e.exports=n("7cfde272cbb38d1bb503")},"154634b3587701d4651d":function(e,t,n){var r=n("f74eff7bcad51d68657d"),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},"16e94e9df9b67a0835a1":function(e,t,n){"use strict";n.d(t,"c",function(){return u}),n.d(t,"b",function(){return d}),n.d(t,"d",function(){return l}),n.d(t,"a",function(){return p});var r=n("3522c3fcebcba7841610"),o=n.n(r),i=n("14848959a2434ef18179"),a=n.n(i),s=n("d1710cdf101712c60383"),c=n.n(s),f=n("fcc138597d47751b92b2"),u=function(e){return Object(f.b)(void 0,void 0,c.a,function(){var t,n,r,o,i,s,c,u;return Object(f.c)(this,function(d){return t=e.url,n=e.appId,r=e.channel,i=void 0===(o=e.tokenParam)?"":o,c=void 0!==(s=e.isVisitor)&&s,u=i?{token_param:i}:{},[2,fetch(t,{headers:{Accept:"application/json","Content-Type":"application/json"},credentials:"include",method:"POST",body:a()(Object(f.a)({channel:Number(r),app_id:Number(n),is_visitor:c},u))}).then(function(e){if(200===e.status)return e.json();throw Error("fetch token fail, status: "+e.status+", message: "+e.statusText)}).then(function(e){return e.data.token})]})})},d=function(e){if("function"==typeof URL)return new URL(e).origin;var t=e.split("/");return t[0]+"//"+t[2]};function l(e){try{if("function"!=typeof decodeURIComponent)return e;var t=decodeURIComponent(e);return t!==e?t:e}catch(t){return e}}var p=function(e){var t={};if(1!==e.length)return"";var n=e[0],r=n.appId,i=n.channel,s=n.entrance,c=n.ext,f=void 0===c?{}:c,u=n.imExtra,d=f.hostAppVersion,l=f.hostAppModel,p=f.headerToggle,h=f.uiTheme;return t={app_id:void 0===r?"":r,channel:void 0===i?"":i,entrance:void 0===s?"":s,host_app_version:void 0===d?"":d,host_app_model:void 0===l?"":l,header_toggle:void 0===p?"true":p,ui_theme:void 0===h?"":h,hidePopupArrow:f.hidePopupArrow},u&&(t.im_extra=function(e){var t="";try{t=encodeURIComponent(a()(e))}catch(e){}return t}(u)),o()(t).reduce(function(e,n){return e+"&"+n+"="+t[n]},"")}},"17359dda8acb856eb0ac":function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},"1b53e8298358ed965e5e":function(e,t,n){"use strict";var r=n("07ff155567688636b304"),o=n("2cf872c482ec3df85cfe"),i=n("92e42ace0767ce24913b"),a=n("b5625f5f1a14a294eb13"),s=n("2ea18d118f9497df5fa4"),c=n("055453d5b28e0569bd1e"),f=n("ef981114e348b8f965cd"),u=n("2aa22aa5104142529485"),d=n("9cde4b5f7d4fea6de520")("iterator"),l=!([].keys&&"next"in[].keys()),p=function(){return this};e.exports=function(e,t,n,h,b,m,v){c(n,t,h);var y,g,_,w=function(e){if(!l&&e in T)return T[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},x=t+" Iterator",O="values"==b,E=!1,T=e.prototype,P=T[d]||T["@@iterator"]||b&&T[b],A=P||w(b),k=b?O?w("entries"):A:void 0,S="Array"==t&&T.entries||P;if(S&&(_=u(S.call(new e)))!==Object.prototype&&_.next&&(f(_,x,!0),r||"function"==typeof _[d]||a(_,d,p)),O&&P&&"values"!==P.name&&(E=!0,A=function(){return P.call(this)}),(!r||v)&&(l||E||!T[d])&&a(T,d,A),s[t]=A,s[x]=p,b){if(y={values:O?A:w("values"),keys:m?A:w("keys"),entries:k},v)for(g in y)g in T||i(T,g,y[g]);else o(o.P+o.F*(l||E),t,y)}return y}},"27ab29d88fcb62a63442":function(e,t,n){var r=n("2cf872c482ec3df85cfe"),o=n("7e408bcfe85cb9488ad3"),i=n("653de35670df05a5d735");e.exports=function(e,t){var n=(o.Object||{})[e]||Object[e],a={};a[e]=t(n),r(r.S+r.F*i(function(){n(1)}),"Object",a)}},"2aa22aa5104142529485":function(e,t,n){var r=n("ceae64b65c7c7253df3c"),o=n("d5fb55c19eb996e5e9fa"),i=n("e815ce6cc4d2785137e8")("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return r(e=o(e),i)?e[i]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},"2cf872c482ec3df85cfe":function(e,t,n){var r=n("9a79a94336bcdbd8d603"),o=n("7e408bcfe85cb9488ad3"),i=n("d4be94695ed2602e0f2c"),a=n("b5625f5f1a14a294eb13"),s=n("ceae64b65c7c7253df3c"),c=function(e,t,n){var f,u,d,l=e&c.F,p=e&c.G,h=e&c.S,b=e&c.P,m=e&c.B,v=e&c.W,y=p?o:o[t]||(o[t]={}),g=y.prototype,_=p?r:h?r[t]:(r[t]||{}).prototype;for(f in p&&(n=t),n)(u=!l&&_&&void 0!==_[f])&&s(y,f)||(d=u?_[f]:n[f],y[f]=p&&"function"!=typeof _[f]?n[f]:m&&u?i(d,r):v&&_[f]==d?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(d):b&&"function"==typeof d?i(Function.call,d):d,b&&((y.virtual||(y.virtual={}))[f]=d,e&c.R&&g&&!g[f]&&a(g,f,d)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,e.exports=c},"2ea18d118f9497df5fa4":function(e,t){e.exports={}},"3184f59041f287587283":function(e,t){e.exports=function(){}},"3460575bdcafa69fcc16":function(e,t,n){var r=n("43b03b603091e749c9cc"),o=n("d2343040e9ae33d1f7f8"),i=n("f86e9ca832c23f1bd0e0"),a=Object.defineProperty;t.f=n("ead6916f9f69d1322e85")?Object.defineProperty:function(e,t,n){if(r(e),t=i(t,!0),r(n),o)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},"34ca4d20365da6578c3e":function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},"3522c3fcebcba7841610":function(e,t,n){e.exports=n("02740bd7591c8238f1ea")},"360d44ef3e30371994f9":function(e,t,n){var r=n("f74eff7bcad51d68657d"),o=n("8222fe5a7c2c37d731e3");e.exports=function(e){return function(t,n){var i,a,s=String(o(t)),c=r(n),f=s.length;return c<0||c>=f?e?"":void 0:(i=s.charCodeAt(c))<55296||i>56319||c+1===f||(a=s.charCodeAt(c+1))<56320||a>57343?e?s.charAt(c):i:e?s.slice(c,c+2):a-56320+(i-55296<<10)+65536}}},"3a2e5efede9e0ff51479":function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"3f3aadd18f2780583726":function(e,t){e.exports=function(e){try{return{e:!1,v:e()}}catch(e){return{e:!0,v:e}}}},"43b03b603091e749c9cc":function(e,t,n){var r=n("17359dda8acb856eb0ac");e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},"5d18393f6665e194d223":function(e,t,n){var r=n("43b03b603091e749c9cc"),o=n("17359dda8acb856eb0ac"),i=n("b4a17be73207ed060645");e.exports=function(e,t){if(r(e),o(t)&&t.constructor===e)return t;var n=i.f(e);return(0,n.resolve)(t),n.promise}},"607f27003802e23f393d":function(e,t,n){var r=n("9cde4b5f7d4fea6de520")("iterator"),o=!1;try{var i=[7][r]();i.return=function(){o=!0},Array.from(i,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!o)return!1;var n=!1;try{var i=[7],a=i[r]();a.next=function(){return{done:n=!0}},i[r]=function(){return a},e(i)}catch(e){}return n}},"64e4a0166783457286f1":function(e,t,n){var r=n("9a79a94336bcdbd8d603"),o=n("133a28fd949186ba8f1a").set,i=r.MutationObserver||r.WebKitMutationObserver,a=r.process,s=r.Promise,c="process"==n("e2267556f717fc064ba2")(a);e.exports=function(){var e,t,n,f=function(){var r,o;for(c&&(r=a.domain)&&r.exit();e;){o=e.fn,e=e.next;try{o()}catch(r){throw e?n():t=void 0,r}}t=void 0,r&&r.enter()};if(c)n=function(){a.nextTick(f)};else if(!i||r.navigator&&r.navigator.standalone){if(s&&s.resolve){var u=s.resolve(void 0);n=function(){u.then(f)}}else n=function(){o.call(r,f)}}else{var d=!0,l=document.createTextNode("");new i(f).observe(l,{characterData:!0}),n=function(){l.data=d=!d}}return function(r){var o={fn:r,next:void 0};t&&(t.next=o),e||(e=o,n()),t=o}}},"653de35670df05a5d735":function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},"6e544f64f8c620d081da":function(e,t,n){var r=n("43b03b603091e749c9cc"),o=n("6fb286a548b08f78c161"),i=n("9cde4b5f7d4fea6de520")("species");e.exports=function(e,t){var n,a=r(e).constructor;return void 0===a||null==(n=r(a)[i])?t:o(n)}},"6fb286a548b08f78c161":function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},"768677cb7d9b69792184":function(e,t,n){var r=n("ceae64b65c7c7253df3c"),o=n("cdaebfbe1d9bdf46b732"),i=n("071e5d401fe7f2646ed9")(!1),a=n("e815ce6cc4d2785137e8")("IE_PROTO");e.exports=function(e,t){var n,s=o(e),c=0,f=[];for(n in s)n!=a&&r(s,n)&&f.push(n);for(;t.length>c;)r(s,n=t[c++])&&(~i(f,n)||f.push(n));return f}},"793cba36f69f92e37c65":function(e,t,n){var r=n("08b004981d9a33932445"),o=n("9cde4b5f7d4fea6de520")("iterator"),i=n("2ea18d118f9497df5fa4");e.exports=n("7e408bcfe85cb9488ad3").getIteratorMethod=function(e){if(null!=e)return e[o]||e["@@iterator"]||i[r(e)]}},"7cfde272cbb38d1bb503":function(e,t,n){var r=n("7e408bcfe85cb9488ad3"),o=r.JSON||(r.JSON={stringify:JSON.stringify});e.exports=function(e){return o.stringify.apply(o,arguments)}},"7de773166063f5e40159":function(e,t,n){var r=n("d5fb55c19eb996e5e9fa"),o=n("ebf6d08fe69ed69e984d");n("27ab29d88fcb62a63442")("keys",function(){return function(e){return o(r(e))}})},"7e408bcfe85cb9488ad3":function(e,t){var n=e.exports={version:"2.6.12"};"number"==typeof __e&&(__e=n)},"8222fe5a7c2c37d731e3":function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},"846153413ca366a2e6ad":function(e,t,n){var r=n("9a79a94336bcdbd8d603").document;e.exports=r&&r.documentElement},"891049f64d526cfb582c":function(e,t,n){var r=n("f74eff7bcad51d68657d"),o=Math.max,i=Math.min;e.exports=function(e,t){return(e=r(e))<0?o(e+t,0):i(e,t)}},"92e42ace0767ce24913b":function(e,t,n){e.exports=n("b5625f5f1a14a294eb13")},"977636eb1a8d7d15c00c":function(e,t,n){"use strict";var r=n("360d44ef3e30371994f9")(!0);n("1b53e8298358ed965e5e")(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})})},"99bca72d1fe97377a740":function(e,t,n){"use strict";var r=n("2cf872c482ec3df85cfe"),o=n("b4a17be73207ed060645"),i=n("3f3aadd18f2780583726");r(r.S,"Promise",{try:function(e){var t=o.f(this),n=i(e);return(n.e?t.reject:t.resolve)(n.v),t.promise}})},"9a79a94336bcdbd8d603":function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},"9c07191f66aabf102419":function(e,t,n){var r=n("d4be94695ed2602e0f2c"),o=n("f3d1fdf42afda22b8c4c"),i=n("de4ff8da248e798648c5"),a=n("43b03b603091e749c9cc"),s=n("154634b3587701d4651d"),c=n("793cba36f69f92e37c65"),f={},u={};(t=e.exports=function(e,t,n,d,l){var p,h,b,m,v=l?function(){return e}:c(e),y=r(n,d,t?2:1),g=0;if("function"!=typeof v)throw TypeError(e+" is not iterable!");if(i(v)){for(p=s(e.length);p>g;g++)if((m=t?y(a(h=e[g])[0],h[1]):y(e[g]))===f||m===u)return m}else for(b=v.call(e);!(h=b.next()).done;)if((m=o(b,y,h.value,t))===f||m===u)return m}).BREAK=f,t.RETURN=u},"9cde4b5f7d4fea6de520":function(e,t,n){var r=n("fba7b4ad221869857103")("wks"),o=n("9d25529f4ba567ba6df9"),i=n("9a79a94336bcdbd8d603").Symbol,a="function"==typeof i;(e.exports=function(e){return r[e]||(r[e]=a&&i[e]||(a?i:o)("Symbol."+e))}).store=r},"9d25529f4ba567ba6df9":function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},b4a17be73207ed060645:function(e,t,n){"use strict";var r=n("6fb286a548b08f78c161");function o(e){var t,n;this.promise=new e(function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r}),this.resolve=r(t),this.reject=r(n)}e.exports.f=function(e){return new o(e)}},b5625f5f1a14a294eb13:function(e,t,n){var r=n("3460575bdcafa69fcc16"),o=n("3a2e5efede9e0ff51479");e.exports=n("ead6916f9f69d1322e85")?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},b5c2f055e482ab89995c:function(e,t){},c28221a3060ded7a2bac:function(e,t,n){"use strict";var r=n("9a79a94336bcdbd8d603"),o=n("7e408bcfe85cb9488ad3"),i=n("3460575bdcafa69fcc16"),a=n("ead6916f9f69d1322e85"),s=n("9cde4b5f7d4fea6de520")("species");e.exports=function(e){var t="function"==typeof o[e]?o[e]:r[e];a&&t&&!t[s]&&i.f(t,s,{configurable:!0,get:function(){return this}})}},c298a4cba7a827a35ea3:function(e,t,n){var r=n("43b03b603091e749c9cc"),o=n("c8c56ed85c526c66a654"),i=n("34ca4d20365da6578c3e"),a=n("e815ce6cc4d2785137e8")("IE_PROTO"),s=function(){},c=function(){var e,t=n("e9549a5a7fc30b638223")("iframe"),r=i.length;for(t.style.display="none",n("846153413ca366a2e6ad").appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),c=e.F;r--;)delete c.prototype[i[r]];return c()};e.exports=Object.create||function(e,t){var n;return null!==e?(s.prototype=r(e),n=new s,s.prototype=null,n[a]=e):n=c(),void 0===t?n:o(n,t)}},c8c56ed85c526c66a654:function(e,t,n){var r=n("3460575bdcafa69fcc16"),o=n("43b03b603091e749c9cc"),i=n("ebf6d08fe69ed69e984d");e.exports=n("ead6916f9f69d1322e85")?Object.defineProperties:function(e,t){o(e);for(var n,a=i(t),s=a.length,c=0;s>c;)r.f(e,n=a[c++],t[n]);return e}},cdaebfbe1d9bdf46b732:function(e,t,n){var r=n("cf4815b65b847c9d6e6f"),o=n("8222fe5a7c2c37d731e3");e.exports=function(e){return r(o(e))}},ceae64b65c7c7253df3c:function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},cf4815b65b847c9d6e6f:function(e,t,n){var r=n("e2267556f717fc064ba2");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},d1710cdf101712c60383:function(e,t,n){e.exports=n("f71353efe489c695ad78")},d2343040e9ae33d1f7f8:function(e,t,n){e.exports=!n("ead6916f9f69d1322e85")&&!n("653de35670df05a5d735")(function(){return 7!=Object.defineProperty(n("e9549a5a7fc30b638223")("div"),"a",{get:function(){return 7}}).a})},d4be94695ed2602e0f2c:function(e,t,n){var r=n("6fb286a548b08f78c161");e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},d5fb55c19eb996e5e9fa:function(e,t,n){var r=n("8222fe5a7c2c37d731e3");e.exports=function(e){return Object(r(e))}},d8dc6a033dc1b502f067:function(e,t,n){"use strict";var r=n("3184f59041f287587283"),o=n("f03b341f6267310c2938"),i=n("2ea18d118f9497df5fa4"),a=n("cdaebfbe1d9bdf46b732");e.exports=n("1b53e8298358ed965e5e")(Array,"Array",function(e,t){this._t=a(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,o(1)):o(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},da881c82f81372495e94:function(e,t,n){"use strict";n.r(t);var r,o,i,a,s,c,f=n("3522c3fcebcba7841610"),u=n.n(f),d=n("d1710cdf101712c60383"),l=n.n(d),p=n("fcc138597d47751b92b2");function h(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function b(e){return e instanceof h(e).Element||e instanceof Element}function m(e){return e instanceof h(e).HTMLElement||e instanceof HTMLElement}function v(e){return"undefined"!=typeof ShadowRoot&&(e instanceof h(e).ShadowRoot||e instanceof ShadowRoot)}var y=Math.max,g=Math.min,_=Math.round;function w(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function x(){return!/^((?!chrome|android).)*safari/i.test(w())}function O(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&m(e)&&(o=e.offsetWidth>0&&_(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&_(r.height)/e.offsetHeight||1);var a=(b(e)?h(e):window).visualViewport,s=!x()&&n,c=(r.left+(s&&a?a.offsetLeft:0))/o,f=(r.top+(s&&a?a.offsetTop:0))/i,u=r.width/o,d=r.height/i;return{width:u,height:d,top:f,right:c+u,bottom:f+d,left:c,x:c,y:f}}function E(e){var t=h(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function T(e){return e?(e.nodeName||"").toLowerCase():null}function P(e){return((b(e)?e.ownerDocument:e.document)||window.document).documentElement}function A(e){return O(P(e)).left+E(e).scrollLeft}function k(e){return h(e).getComputedStyle(e)}function S(e){var t=k(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function j(e){var t=O(e),n=e.offsetWidth,r=e.offsetHeight;return 1>=Math.abs(t.width-n)&&(n=t.width),1>=Math.abs(t.height-r)&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function C(e){return"html"===T(e)?e:e.assignedSlot||e.parentNode||(v(e)?e.host:null)||P(e)}function I(e,t){void 0===t&&(t=[]);var n,r=function e(t){return["html","body","#document"].indexOf(T(t))>=0?t.ownerDocument.body:m(t)&&S(t)?t:e(C(t))}(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=h(r),a=o?[i].concat(i.visualViewport||[],S(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(I(C(a)))}function L(e){return m(e)&&"fixed"!==k(e).position?e.offsetParent:null}function R(e){for(var t=h(e),n=L(e);n&&["table","td","th"].indexOf(T(n))>=0&&"static"===k(n).position;)n=L(n);return n&&("html"===T(n)||"body"===T(n)&&"static"===k(n).position)?t:n||function(e){var t=/firefox/i.test(w());if(/Trident/i.test(w())&&m(e)&&"fixed"===k(e).position)return null;var n=C(e);for(v(n)&&(n=n.host);m(n)&&0>["html","body"].indexOf(T(n));){var r=k(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}var D="bottom",M="right",B="left",U=["top",D,M,B],H=U.reduce(function(e,t){return e.concat([t+"-start",t+"-end"])},[]),F=[].concat(U,["auto"]).reduce(function(e,t){return e.concat([t,t+"-start",t+"-end"])},[]),N=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"],W={placement:"bottom",modifiers:[],strategy:"absolute"};function V(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(e){return!(e&&"function"==typeof e.getBoundingClientRect)})}var q={passive:!0};function G(e){return e.split("-")[0]}function z(e){return e.split("-")[1]}function K(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function J(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?G(o):null,a=o?z(o):null,s=n.x+n.width/2-r.width/2,c=n.y+n.height/2-r.height/2;switch(i){case"top":t={x:s,y:n.y-r.height};break;case D:t={x:s,y:n.y+n.height};break;case M:t={x:n.x+n.width,y:c};break;case B:t={x:n.x-r.width,y:c};break;default:t={x:n.x,y:n.y}}var f=i?K(i):null;if(null!=f){var u="y"===f?"height":"width";switch(a){case"start":t[f]=t[f]-(n[u]/2-r[u]/2);break;case"end":t[f]=t[f]+(n[u]/2-r[u]/2)}}return t}var Q={top:"auto",right:"auto",bottom:"auto",left:"auto"};function X(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,s=e.position,c=e.gpuAcceleration,f=e.adaptive,u=e.roundOffsets,d=e.isFixed,l=a.x,p=void 0===l?0:l,b=a.y,m=void 0===b?0:b,v="function"==typeof u?u({x:p,y:m}):{x:p,y:m};p=v.x,m=v.y;var y=a.hasOwnProperty("x"),g=a.hasOwnProperty("y"),w=B,x="top",O=window;if(f){var E=R(n),T="clientHeight",A="clientWidth";E===h(n)&&"static"!==k(E=P(n)).position&&"absolute"===s&&(T="scrollHeight",A="scrollWidth"),("top"===o||(o===B||o===M)&&"end"===i)&&(x=D,m-=(d&&E===O&&O.visualViewport?O.visualViewport.height:E[T])-r.height,m*=c?1:-1),(o===B||("top"===o||o===D)&&"end"===i)&&(w=M,p-=(d&&E===O&&O.visualViewport?O.visualViewport.width:E[A])-r.width,p*=c?1:-1)}var S,j,C,I,L,U,H=Object.assign({position:s},f&&Q),F=!0===u?(S={x:p,y:m},j=h(n),C=S.x,I=S.y,{x:_(C*(L=j.devicePixelRatio||1))/L||0,y:_(I*L)/L||0}):{x:p,y:m};return p=F.x,m=F.y,c?Object.assign({},H,((U={})[x]=g?"0":"",U[w]=y?"0":"",U.transform=1>=(O.devicePixelRatio||1)?"translate("+p+"px, "+m+"px)":"translate3d("+p+"px, "+m+"px, 0)",U)):Object.assign({},H,((t={})[x]=g?m+"px":"",t[w]=y?p+"px":"",t.transform="",t))}var Z={left:"right",right:"left",bottom:"top",top:"bottom"};function $(e){return e.replace(/left|right|bottom|top/g,function(e){return Z[e]})}var Y={start:"end",end:"start"};function ee(e){return e.replace(/start|end/g,function(e){return Y[e]})}function et(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&v(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function en(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function er(e,t,n){var r,o,i,a,s,c,f,u,d,l,p;return"viewport"===t?en(function(e,t){var n=h(e),r=P(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,s=0,c=0;if(o){i=o.width,a=o.height;var f=x();(f||!f&&"fixed"===t)&&(s=o.offsetLeft,c=o.offsetTop)}return{width:i,height:a,x:s+A(e),y:c}}(e,n)):b(t)?((o=O(r=t,!1,"fixed"===n)).top=o.top+r.clientTop,o.left=o.left+r.clientLeft,o.bottom=o.top+r.clientHeight,o.right=o.left+r.clientWidth,o.width=r.clientWidth,o.height=r.clientHeight,o.x=o.left,o.y=o.top,o):en((i=P(e),s=P(i),c=E(i),f=null==(a=i.ownerDocument)?void 0:a.body,u=y(s.scrollWidth,s.clientWidth,f?f.scrollWidth:0,f?f.clientWidth:0),d=y(s.scrollHeight,s.clientHeight,f?f.scrollHeight:0,f?f.clientHeight:0),l=-c.scrollLeft+A(i),p=-c.scrollTop,"rtl"===k(f||s).direction&&(l+=y(s.clientWidth,f?f.clientWidth:0)-u),{width:u,height:d,x:l,y:p}))}function eo(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function ei(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}function ea(e,t){void 0===t&&(t={});var n,r,o,i,a,s,c,f,u,d,l=t,p=l.placement,h=void 0===p?e.placement:p,v=l.strategy,_=void 0===v?e.strategy:v,w=l.boundary,x=l.rootBoundary,E=l.elementContext,A=void 0===E?"popper":E,S=l.altBoundary,j=l.padding,L=void 0===j?0:j,B=eo("number"!=typeof L?L:ei(L,U)),H=e.rects.popper,F=e.elements[void 0!==S&&S?"popper"===A?"reference":"popper":A],N=(n=b(F)?F:F.contextElement||P(e.elements.popper),r=void 0===w?"clippingParents":w,o=void 0===x?"viewport":x,i=_,u=(f=[].concat("clippingParents"===r?(s=I(C(a=n)),b(c=["absolute","fixed"].indexOf(k(a).position)>=0&&m(a)?R(a):a)?s.filter(function(e){return b(e)&&et(e,c)&&"body"!==T(e)}):[]):[].concat(r),[o]))[0],(d=f.reduce(function(e,t){var r=er(n,t,i);return e.top=y(r.top,e.top),e.right=g(r.right,e.right),e.bottom=g(r.bottom,e.bottom),e.left=y(r.left,e.left),e},er(n,u,i))).width=d.right-d.left,d.height=d.bottom-d.top,d.x=d.left,d.y=d.top,d),W=O(e.elements.reference),V=J({reference:W,element:H,strategy:"absolute",placement:h}),q=en(Object.assign({},H,V)),G="popper"===A?q:W,z={top:N.top-G.top+B.top,bottom:G.bottom-N.bottom+B.bottom,left:N.left-G.left+B.left,right:G.right-N.right+B.right},K=e.modifiersData.offset;if("popper"===A&&K){var Q=K[h];Object.keys(z).forEach(function(e){var t=[M,D].indexOf(e)>=0?1:-1,n=["top",D].indexOf(e)>=0?"y":"x";z[e]+=Q[n]*t})}return z}function es(e,t,n){return y(e,g(t,n))}function ec(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function ef(e){return["top",M,D,B].some(function(t){return e[t]>=0})}var eu=(r={defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=void 0===o||o,a=r.resize,s=void 0===a||a,c=h(t.elements.popper),f=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&f.forEach(function(e){e.addEventListener("scroll",n.update,q)}),s&&c.addEventListener("resize",n.update,q),function(){i&&f.forEach(function(e){e.removeEventListener("scroll",n.update,q)}),s&&c.removeEventListener("resize",n.update,q)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=J({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=n.adaptive,i=n.roundOffsets,a=void 0===i||i,s={placement:G(t.placement),variation:z(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:void 0===r||r,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,X(Object.assign({},s,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:void 0===o||o,roundOffsets:a})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,X(Object.assign({},s,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:a})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];m(o)&&T(o)&&(Object.assign(o.style,n),Object.keys(r).forEach(function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var r=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]="",e},{});m(r)&&T(r)&&(Object.assign(r.style,i),Object.keys(o).forEach(function(e){r.removeAttribute(e)}))})}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=void 0===o?[0,0]:o,a=F.reduce(function(e,n){var r,o,a,s,c,f,u,d;return e[n]=(r=n,o=t.rects,a=i,c=[B,"top"].indexOf(s=G(r))>=0?-1:1,u=(f="function"==typeof a?a(Object.assign({},o,{placement:r})):a)[0],d=f[1],u=u||0,d=(d||0)*c,[B,M].indexOf(s)>=0?{x:d,y:u}:{x:u,y:d}),e},{}),s=a[t.placement],c=s.x,f=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=f),t.modifiersData[r]=a}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=void 0===o||o,a=n.altAxis,s=void 0===a||a,c=n.fallbackPlacements,f=n.padding,u=n.boundary,d=n.rootBoundary,l=n.altBoundary,p=n.flipVariations,h=void 0===p||p,b=n.allowedAutoPlacements,m=t.options.placement,v=G(m),y=c||(v!==m&&h?function(e){if("auto"===G(e))return[];var t=$(e);return[ee(e),t,ee(t)]}(m):[$(m)]),g=[m].concat(y).reduce(function(e,n){var r,o,i,a,s,c,l,p,m,v,y,g,_,w;return e.concat("auto"===G(n)?(r=t,o={placement:n,boundary:u,rootBoundary:d,padding:f,flipVariations:h,allowedAutoPlacements:b},a=(i=o).placement,s=i.boundary,c=i.rootBoundary,l=i.padding,p=i.flipVariations,v=void 0===(m=i.allowedAutoPlacements)?F:m,0===(_=(g=(y=z(a))?p?H:H.filter(function(e){return z(e)===y}):U).filter(function(e){return v.indexOf(e)>=0})).length&&(_=g),Object.keys(w=_.reduce(function(e,t){return e[t]=ea(r,{placement:t,boundary:s,rootBoundary:c,padding:l})[G(t)],e},{})).sort(function(e,t){return w[e]-w[t]})):n)},[]),_=t.rects.reference,w=t.rects.popper,x=new Map,O=!0,E=g[0],T=0;T<g.length;T++){var P=g[T],A=G(P),k="start"===z(P),S=["top",D].indexOf(A)>=0,j=S?"width":"height",C=ea(t,{placement:P,boundary:u,rootBoundary:d,altBoundary:l,padding:f}),I=S?k?M:B:k?D:"top";_[j]>w[j]&&(I=$(I));var L=$(I),R=[];if(i&&R.push(C[A]<=0),s&&R.push(C[I]<=0,C[L]<=0),R.every(function(e){return e})){E=P,O=!1;break}x.set(P,R)}if(O)for(var N=function(e){var t=g.find(function(t){var n=x.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return E=t,"break"},W=h?3:1;W>0&&"break"!==N(W);W--);t.placement!==E&&(t.modifiersData[r]._skip=!0,t.placement=E,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=n.altAxis,a=n.boundary,s=n.rootBoundary,c=n.altBoundary,f=n.padding,u=n.tether,d=void 0===u||u,l=n.tetherOffset,p=void 0===l?0:l,h=ea(t,{boundary:a,rootBoundary:s,padding:f,altBoundary:c}),b=G(t.placement),m=z(t.placement),v=!m,_=K(b),w="x"===_?"y":"x",x=t.modifiersData.popperOffsets,O=t.rects.reference,E=t.rects.popper,T="function"==typeof p?p(Object.assign({},t.rects,{placement:t.placement})):p,P="number"==typeof T?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),A=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,k={x:0,y:0};if(x){if(void 0===o||o){var S,C="y"===_?"top":B,I="y"===_?D:M,L="y"===_?"height":"width",U=x[_],H=U+h[C],F=U-h[I],N=d?-E[L]/2:0,W="start"===m?O[L]:E[L],V="start"===m?-E[L]:-O[L],q=t.elements.arrow,J=d&&q?j(q):{width:0,height:0},Q=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},X=Q[C],Z=Q[I],$=es(0,O[L],J[L]),Y=v?O[L]/2-N-$-X-P.mainAxis:W-$-X-P.mainAxis,ee=v?-O[L]/2+N+$+Z+P.mainAxis:V+$+Z+P.mainAxis,et=t.elements.arrow&&R(t.elements.arrow),en=et?"y"===_?et.clientTop||0:et.clientLeft||0:0,er=null!=(S=null==A?void 0:A[_])?S:0,eo=es(d?g(H,U+Y-er-en):H,U,d?y(F,U+ee-er):F);x[_]=eo,k[_]=eo-U}if(void 0!==i&&i){var ei,ec,ef,eu="x"===_?"top":B,ed="x"===_?D:M,el=x[w],ep="y"===w?"height":"width",eh=el+h[eu],eb=el-h[ed],em=-1!==["top",B].indexOf(b),ev=null!=(ef=null==A?void 0:A[w])?ef:0,ey=em?eh:el-O[ep]-E[ep]-ev+P.altAxis,eg=em?el+O[ep]+E[ep]-ev-P.altAxis:eb,e_=d&&em?(ec=es(ey,el,ei=eg))>ei?ei:ec:es(d?ey:eh,el,d?eg:eb);x[w]=e_,k[w]=e_-el}t.modifiersData[r]=k}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=G(n.placement),c=K(s),f=[B,M].indexOf(s)>=0?"height":"width";if(i&&a){var u,d,l=(u=o.padding,d=n,eo("number"!=typeof(u="function"==typeof u?u(Object.assign({},d.rects,{placement:d.placement})):u)?u:ei(u,U))),p=j(i),h="y"===c?"top":B,b="y"===c?D:M,m=n.rects.reference[f]+n.rects.reference[c]-a[c]-n.rects.popper[f],v=a[c]-n.rects.reference[c],y=R(i),g=y?"y"===c?y.clientHeight||0:y.clientWidth||0:0,_=l[h],w=g-p[f]-l[b],x=g/2-p[f]/2+(m/2-v/2),O=es(_,x,w);n.modifiersData[r]=((t={})[c]=O,t.centerOffset=O-x,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&et(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=ea(t,{elementContext:"reference"}),s=ea(t,{altBoundary:!0}),c=ec(a,r),f=ec(s,o,i),u=ef(c),d=ef(f);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:f,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}}]},a=void 0===(i=(o=r).defaultModifiers)?[]:i,c=void 0===(s=o.defaultOptions)?W:s,function(e,t,n){void 0===n&&(n=c);var r,o,i={placement:"bottom",orderedModifiers:[],options:Object.assign({},W,c),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},s=[],f=!1,u={state:i,setOptions:function(n){var r="function"==typeof n?n(i.options):n;d(),i.options=Object.assign({},c,i.options,r),i.scrollParents={reference:b(e)?I(e):e.contextElement?I(e.contextElement):[],popper:I(t)};var o,f,l,p,h,m,v=(h=(o=Object.keys(m=[].concat(a,i.options.modifiers).reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{})).map(function(e){return m[e]}),f=new Map,l=new Set,p=[],o.forEach(function(e){f.set(e.name,e)}),o.forEach(function(e){l.has(e.name)||function e(t){l.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach(function(t){if(!l.has(t)){var n=f.get(t);n&&e(n)}}),p.push(t)}(e)}),p),N.reduce(function(e,t){return e.concat(h.filter(function(e){return e.phase===t}))},[]));return i.orderedModifiers=v.filter(function(e){return e.enabled}),i.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,r=e.effect;if("function"==typeof r){var o=r({state:i,name:t,instance:u,options:void 0===n?{}:n});s.push(o||function(){})}}),u.update()},forceUpdate:function(){if(!f){var e=i.elements,t=e.reference,n=e.popper;if(V(t,n)){i.rects={reference:(r=t,o=R(n),a="fixed"===i.options.strategy,p=m(o),b=m(o)&&(d=_((c=(s=o).getBoundingClientRect()).width)/s.offsetWidth||1,l=_(c.height)/s.offsetHeight||1,1!==d||1!==l),v=P(o),y=O(r,b,a),g={scrollLeft:0,scrollTop:0},w={x:0,y:0},(p||!p&&!a)&&(("body"!==T(o)||S(v))&&(g=o!==h(o)&&m(o)?{scrollLeft:o.scrollLeft,scrollTop:o.scrollTop}:E(o)),m(o)?((w=O(o,!0)).x+=o.clientLeft,w.y+=o.clientTop):v&&(w.x=A(v))),{x:y.left+g.scrollLeft-w.x,y:y.top+g.scrollTop-w.y,width:y.width,height:y.height}),popper:j(n)},i.reset=!1,i.placement=i.options.placement,i.orderedModifiers.forEach(function(e){return i.modifiersData[e.name]=Object.assign({},e.data)});for(var r,o,a,s,c,d,l,p,b,v,y,g,w,x=0;x<i.orderedModifiers.length;x++)if(!0!==i.reset){var k=i.orderedModifiers[x],C=k.fn,I=k.options,L=void 0===I?{}:I,D=k.name;"function"==typeof C&&(i=C({state:i,options:L,name:D,instance:u})||i)}else i.reset=!1,x=-1}}},update:(r=function(){return new Promise(function(e){u.forceUpdate(),e(i)})},function(){return o||(o=new Promise(function(e){Promise.resolve().then(function(){o=void 0,e(r())})})),o}),destroy:function(){d(),f=!0}};if(!V(e,t))return u;function d(){s.forEach(function(e){return e()}),s=[]}return u.setOptions(n).then(function(e){!f&&n.onFirstUpdate&&n.onFirstUpdate(e)}),u}),ed=(n("f83101f00864f3aab58b"),n("16e94e9df9b67a0835a1")),el=function(){function e(e,t){this._content=e,this._container=t,this._content.minWidth=this._content.minWidth||this._content.width+this._content.hPadding,this._content.minHeight=this._content.minHeight||this._content.height+this._content.vPadding,this._init()}return e.prototype._calculateContentStyle=function(){var e={},t=this._content,n=this._getContainerRect();n.x>t.minWidth?e.right=t.hPadding+n.width+"px":e.left=t.hPadding+n.width+"px";var r=n.y+n.height,o=window.innerHeight-n.y;return r>t.minHeight||r>o?e.bottom="0px":e.top="0px",e},e.prototype._calculateContentStyleAndApply=function(){var e=this._calculateContentStyle();this._setContentElStyle("left",e.left),this._setContentElStyle("right",e.right),this._setContentElStyle("bottom",e.bottom),this._setContentElStyle("top",e.top)},e.prototype._init=function(){var e=this;e._setContentElStyle("position","absolute");var t=new MutationObserver(function(t){t.forEach(function(){window.requestAnimationFrame(function(){e._calculateContentStyleAndApply()})})});t.observe(e._container.el,{attributes:!0}),e._mo=t,e._calculateContentStyleAndApply()},e.prototype._setContentElStyle=function(e,t){this._content.el.style[e]=t||"unset"},e.prototype.destroy=function(){this._mo.disconnect()},e.prototype._getContainerRect=function(){return this._container.el.getBoundingClientRect()},e}(),ep=function(){function e(e,t){var n,r=this;if(this._iframeContainer=null,this._sdkIframeEle=null,this._element=null,this._isChangedConnection=!1,this._onReadyPostDataQueue=[],this._iframeToggle=function(){return Object(p.b)(r,void 0,l.a,function(){var e;return Object(p.c)(this,function(t){switch(t.label){case 0:return this._validateParams(),this._blank?(e=!0,this._blankTargetUrl?[3,2]:[4,this._setIframeSrc()]):[3,3];case 1:e=t.sent(),t.label=2;case 2:return e&&window.open(this._blankTargetUrl),[2];case 3:return this._sdkIframeEle.getAttribute("src")||this._setIframeSrc(!1),this._iframeContainer.getAttribute("class").includes("summon-iframe-hidden")?this.show():this.hide(),this._isChangedConnection?this._postData({type:"trigger-changed-connection",payload:{connectTarget:this._connectTarget}}):(this._postData(this._imExtra),this._postData({type:"toggle",payload:{visible:this._visible}})),[2]}})})},this._iframePostMsgListener=function(e){var t,n,o=e||{},i=o.data,a=o.origin,s=i||{},c=s.action,f=s.payload,u=s.type,d=Object(ed.b)(r._config.sdkUrl);if(i&&a&&a===d&&!r._isChangedConnection){if("HIBOT_EVENT"===u&&i.event&&i.eventData)null===(n=(t=r._config).hiBotEventListener)||void 0===n||n.call(t,i.event,i.eventData);else if(c)switch(c){case"toggle":r._iframeToggle();break;case"unread":r._unreadMessageCallback(f.count);break;case"change-connection":r._changeConnectTarget(null==f?void 0:f.connectionTarget);break;case"page-reload":r._handlePageReload(null==f?void 0:f.isVisible);break;case"page-ready":r._pageReadyPromiseResolve(),r._handlePageReady();break;default:return}}},!e||!t)throw Error("[summon_web_sdk]: Parameter Error");this._element=e,this._config=t,this._visible=!1,this._setIframeSrcFlag=!1,this._pageReadyPromise=new l.a(function(e){r._pageReadyPromiseResolve=e});var o=this._config,i=o.onVisibleChange,a=o.blank;i&&i(this._visible),this._blank=!!a,this._blank||(this._iframeWrapper=document.body,this._createSDKStylesElement(),this._createSummonAppIframe(),this._config.popperOptions?this._initSummonAppCustomIframe():this._initSummonAppIframe(),window.addEventListener("message",this._iframePostMsgListener)),this._setIframeSrc(),(null===(n=t.ext)||void 0===n?void 0:n.disableAutoToggle)||this._element.addEventListener("click",this._iframeToggle)}return e.prototype.imExtraChangeHandler=function(e){this._validateParams(),this._config.ext=Object(p.a)(Object(p.a)({},this._config.ext),{imExtra:e}),this._imExtra={type:"imExtra",payload:{imExtra:e}}},e.prototype.show=function(){this._handleChangedConnectTarget()||(this._blank?this._iframeToggle():(this._validateParams(),this._setVisible(!0),this._iframeContainer.setAttribute("class","summon-iframe-contrainer"),this._postData({type:"toggle",payload:{visible:!0}})))},e.prototype.hide=function(){this._handleChangedConnectTarget()||this._blank||(this._validateParams(),this._setVisible(!1),this._iframeContainer.setAttribute("class","summon-iframe-contrainer summon-iframe-hidden"))},e.prototype.destroy=function(){try{this._validateParams()}catch(e){return}this.hide(),this._element.removeEventListener("click",this._iframeToggle),this._blank||(window.removeEventListener("message",this._iframePostMsgListener),this._iframeWrapper.removeChild(this._iframeContainer),document.body.removeChild(this._style),this._sdkIframeEle=null,this._config=null,this._element=null,this._style=null,this._popper.destroy(),this._popper=null)},e.prototype.channelChangeHandler=function(e){this._validateParams(),this._config=Object(p.a)(Object(p.a)({},this._config),e),this.hide(),this._setIframeSrc()},e.prototype._setVisible=function(e){this._visible=e;var t=(this._config||{}).onVisibleChange;t&&t(this._visible)},e.prototype._postData=function(e){var t=this;this._pageReadyPromise.then(function(n){t._sdkIframeEle.contentWindow.postMessage(e,Object(ed.b)(t._config.sdkUrl))})},e.prototype._validateParams=function(){var e=!0,t=!0;if(this._blank?this._config||(e=!1):this._sdkIframeEle&&this._element&&this._config&&this._style&&this._popper||(t=!1),!e||!t)throw Error("[summon_web_sdk]: Parameter Error")},e.prototype._createSDKStylesElement=function(){this._style&&document.body.removeChild(this._style),this._style=document.createElement("style"),this._style.id="summon-sdk-style",this._style.innerHTML='\n .summon-iframe {\n margin: 0;\n padding: 0;\n border-style: none;\n width: 100%;\n height: 100%;\n }\n \n .summon-iframe-hidden {\n visibility: hidden;\n pointer-events: none;\n opacity: 0;\n z-index: -999 !important;\n }\n \n .summon-iframe-contrainer {\n postion: absolute;\n width: 376px;\n height: 704px;\n border-style: none;\n background: transparent;\n border-radius: 16px;\n box-shadow: 0 0 32px rgba(0, 0, 0, 0.04);\n -webkit-box-shadow: 0 0 32px rgba(0, 0, 0, 0.04);\n -moz-box-shadow: 0 0 32px rgba(0, 0, 0, 0.04);\n z-index: 999;\n }\n .summon-iframe-contrainer [data-popper-arrow] {\n display: block;\n width: 10px;\n height: 10px;\n z-index: -1;\n }\n\n .summon-iframe-contrainer [data-popper-arrow]::before {\n content: "";\n width: 10px;\n height: 10px;\n position: absolute;\n z-index: -1;\n transform: rotate(45deg);\n background: #f9f9f9;\n top: 0;\n left: 0;\n ox-shadow: 0px 0px 10px #d4d2d2;\n -webkit-box-shadow: #d4d2d2 0px 0px 10px;\n -moz-box-shadow: #d4d2d2 0px 0px 10px;\n }\n\n .summon-iframe-contrainer[data-popper-placement^="bottom"] [data-popper-arrow] {\n top: -5px;\n }\n\n .summon-iframe-contrainer[data-popper-placement^="top"] [data-popper-arrow] {\n bottom: -5px;\n }\n\n .summon-iframe-contrainer[data-popper-placement^="left"] [data-popper-arrow] {\n right: -5px;\n }\n\n .summon-iframe-contrainer[data-popper-placement^="right"] [data-popper-arrow] {\n left: -5px;\n }\n',document.body.appendChild(this._style)},e.prototype._createSummonAppIframe=function(){var e,t;this._iframeContainer=document.createElement("div"),this._iframeContainer.innerHTML="true"===(null===(e=this._config.ext)||void 0===e?void 0:e.hidePopupArrow)?"":"<div data-popper-arrow></div>",this._iframeContainer.setAttribute("class","summon-iframe-contrainer summon-iframe-hidden"),this._sdkIframeEle=document.createElement("iframe"),this._sdkIframeEle.id="summon-web-iframe",this._sdkIframeEle.setAttribute("class","summon-iframe"),this._iframeContainer.appendChild(this._sdkIframeEle),(null===(t=this._config.popperOptions)||void 0===t?void 0:t.container)&&(this._iframeWrapper=this._config.popperOptions.container,this._iframeContainer.style.position="absolute"),this._iframeWrapper.appendChild(this._iframeContainer)},e.prototype._setIframeSrc=function(e){var t;return void 0===e&&(e=!0),Object(p.b)(this,void 0,l.a,function(){var n,r,o,i,a,s,c,f,d,l,h,b,m,v,y,g,_,w,x,O,E,T,P,A,k,S,j,C,I,L,R,D,M,B,U,H,F,N,W;return Object(p.c)(this,function(p){switch(p.label){case 0:if(this._validateParams(),this._setIframeSrcFlag&&!e)return[2,!0];this._setIframeSrcFlag=!0,r=(n=this._config||{}).width,o=n.height,i=n.zIndex,a=n.urlSearchParams,s=n.genTokenUrl,c=n.appId,f=n.channel,d=n.isVisitor,l=n.getSignatureToken,h=n.onGenTokenError,b=n.entrance,m=n.onGetToken,v=n.signatureToken,y=n.blank,g=n.ext,_=n.replaceHistory,w=(null===(t=this._config)||void 0===t?void 0:t.sdkUrl)||"",p.label=1;case 1:return p.trys.push([1,6,,7]),x=void 0,v?(x=v,[3,5]):[3,2];case 2:return w&&w.includes("sign_token")?(x=new URLSearchParams(O=Object(ed.d)(w)).get("sign_token"),w=O.split("?")[0],[3,5]):[3,3];case 3:return[4,l?l():Object(ed.c)({url:s,appId:c,channel:f,isVisitor:d})];case 4:x=p.sent(),m&&m(x),p.label=5;case 5:return P=void 0===(T=(E=g||{}).hostAppVersion)?"":T,k=void 0===(A=E.hostAppModel)?"":A,j=void 0===(S=E.headerToggle)?"true":S,I=void 0===(C=E.imExtra)?"":C,R=void 0===(L=E.uiTheme)?"":L,D=new URLSearchParams,null!==a&&a instanceof Object&&u()(a).forEach(function(e){D.append(e,a[e]+"")}),M=0!==D.size?"&"+D.toString():"",B=w+"?header_toggle="+j+"&ui_theme="+R+"&host_app_version="+P+"&host_app_model="+k+"&sign_token="+x+"&channel="+f+"&app_id="+c+"&im_extra="+I+(b?"&entrance="+b:"")+M,U="",y?this._blankTargetUrl=B:(H=r||376,F=o||704,this._iframeContainer.style.width=H+"px",this._iframeContainer.style.height=F+"px",this._iframeContainer.style.zIndex=""+i,N=B+(U="&render_width="+H+"&render_height="+F+"&is_in_frame=1&from="+window.location.origin),_?this._sdkIframeEle.contentWindow.location.replace(N):this._sdkIframeEle.setAttribute("src",N)),this._setIframeSrcFlag=!1,[2,!0];case 6:return W=p.sent(),this._setIframeSrcFlag=!1,h&&h(W),[2,!1];case 7:return[2]}})})},e.prototype._initSummonAppIframe=function(){var e,t=this._config||{},n=t.placement,r=t.popperOffset;this._popper=eu(this._element,this._iframeContainer,{placement:n||"left",strategy:(null===(e=this._config.ext)||void 0===e?void 0:e.popperStrategy)||"absolute",modifiers:[{name:"offset",options:{offset:r||[0,16]}},{name:"preventOverflow",options:{boundary:document.body,rootBoundary:"document"}}]})},e.prototype._initSummonAppCustomIframe=function(){var e=this._config.popperOptions,t=e.container,n=e.hPadding,r=e.vPadding;this._popper=new el({el:this._iframeContainer,width:this._iframeContainer.clientWidth,height:this._iframeContainer.clientHeight,vPadding:void 0===r?0:r,hPadding:void 0===n?16:n},{el:t,width:t.clientWidth,height:t.clientHeight})},e.prototype._unreadMessageCallback=function(e){var t=(this._config||{}).unreadMessageCountHandler;t&&t(e)},e.prototype._changeConnectTarget=function(e){this._isChangedConnection=!0,this._connectTarget=e,this._iframeContainer.getAttribute("class").includes("summon-iframe-hidden")||this._iframeContainer.setAttribute("class","summon-iframe-contrainer summon-iframe-hidden"),this._unreadMessageCallback(0),this.show()},e.prototype._handlePageReload=function(e){e&&this._onReadyPostDataQueue.push({type:"toggle",payload:{visible:e}})},e.prototype._handlePageReady=function(){this._onReadyPostDataQueue.forEach(this._postData.bind(this)),this._onReadyPostDataQueue=[]},e.prototype._handleChangedConnectTarget=function(){return this._isChangedConnection&&window.open(this._connectTarget),!!this._isChangedConnection},e}();t.default=ep},dcceb39bbe0755cfebae:function(e,t,n){"use strict";var r=n("2cf872c482ec3df85cfe"),o=n("7e408bcfe85cb9488ad3"),i=n("9a79a94336bcdbd8d603"),a=n("6e544f64f8c620d081da"),s=n("5d18393f6665e194d223");r(r.P+r.R,"Promise",{finally:function(e){var t=a(this,o.Promise||i.Promise),n="function"==typeof e;return this.then(n?function(n){return s(t,e()).then(function(){return n})}:e,n?function(n){return s(t,e()).then(function(){throw n})}:e)}})},de4ff8da248e798648c5:function(e,t,n){var r=n("2ea18d118f9497df5fa4"),o=n("9cde4b5f7d4fea6de520")("iterator"),i=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||i[o]===e)}},e2267556f717fc064ba2:function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},e4f95445dfa3474b8b57:function(e,t,n){var r=n("b5625f5f1a14a294eb13");e.exports=function(e,t,n){for(var o in t)n&&e[o]?e[o]=t[o]:r(e,o,t[o]);return e}},e815ce6cc4d2785137e8:function(e,t,n){var r=n("fba7b4ad221869857103")("keys"),o=n("9d25529f4ba567ba6df9");e.exports=function(e){return r[e]||(r[e]=o(e))}},e9549a5a7fc30b638223:function(e,t,n){var r=n("17359dda8acb856eb0ac"),o=n("9a79a94336bcdbd8d603").document,i=r(o)&&r(o.createElement);e.exports=function(e){return i?o.createElement(e):{}}},ead6916f9f69d1322e85:function(e,t,n){e.exports=!n("653de35670df05a5d735")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},ebf6d08fe69ed69e984d:function(e,t,n){var r=n("768677cb7d9b69792184"),o=n("34ca4d20365da6578c3e");e.exports=Object.keys||function(e){return r(e,o)}},ebf9d36fd07107e204a5:function(e,t){e.exports=function(e,t,n){var r=void 0===n;switch(t.length){case 0:return r?e():e.call(n);case 1:return r?e(t[0]):e.call(n,t[0]);case 2:return r?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return r?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return r?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)}},ef981114e348b8f965cd:function(e,t,n){var r=n("3460575bdcafa69fcc16").f,o=n("ceae64b65c7c7253df3c"),i=n("9cde4b5f7d4fea6de520")("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,i)&&r(e,i,{configurable:!0,value:t})}},f03b341f6267310c2938:function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},f2629e6c5fa69500b980:function(e,t,n){n("d8dc6a033dc1b502f067");for(var r=n("9a79a94336bcdbd8d603"),o=n("b5625f5f1a14a294eb13"),i=n("2ea18d118f9497df5fa4"),a=n("9cde4b5f7d4fea6de520")("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),c=0;c<s.length;c++){var f=s[c],u=r[f],d=u&&u.prototype;d&&!d[a]&&o(d,a,f),i[f]=i.Array}},f3d1fdf42afda22b8c4c:function(e,t,n){var r=n("43b03b603091e749c9cc");e.exports=function(e,t,n,o){try{return o?t(r(n)[0],n[1]):t(n)}catch(t){var i=e.return;throw void 0!==i&&r(i.call(e)),t}}},f71353efe489c695ad78:function(e,t,n){n("b5c2f055e482ab89995c"),n("977636eb1a8d7d15c00c"),n("f2629e6c5fa69500b980"),n("0fc12ca1362b58df91e1"),n("dcceb39bbe0755cfebae"),n("99bca72d1fe97377a740"),e.exports=n("7e408bcfe85cb9488ad3").Promise},f74eff7bcad51d68657d:function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},f83101f00864f3aab58b:function(e,t,n){"use strict";(function(e){var t="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==e&&e||{},n="URLSearchParams"in t,r="Symbol"in t&&"iterator"in Symbol,o="FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(e){return!1}}(),i="FormData"in t,a="ArrayBuffer"in t;if(a)var s=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],c=ArrayBuffer.isView||function(e){return e&&s.indexOf(Object.prototype.toString.call(e))>-1};function f(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function u(e){return"string"!=typeof e&&(e=String(e)),e}function d(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return r&&(t[Symbol.iterator]=function(){return t}),t}function l(e){this.map={},e instanceof l?e.forEach(function(e,t){this.append(t,e)},this):Array.isArray(e)?e.forEach(function(e){if(2!=e.length)throw TypeError("Headers constructor: expected name/value pair to be length 2, found"+e.length);this.append(e[0],e[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function p(e){if(!e._noBody)return e.bodyUsed?Promise.reject(TypeError("Already read")):void(e.bodyUsed=!0)}function h(e){return new Promise(function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}})}function b(e){var t=new FileReader,n=h(t);return t.readAsArrayBuffer(e),n}function m(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function v(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:o&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:i&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:n&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():a&&o&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=m(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a&&(ArrayBuffer.prototype.isPrototypeOf(e)||c(e))?this._bodyArrayBuffer=m(e):this._bodyText=e=Object.prototype.toString.call(e):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o&&(this.blob=function(){var e=p(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer)return p(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer));if(o)return this.blob().then(b);throw Error("could not read as ArrayBuffer")},this.text=function(){var e,t,n,r,o,i=p(this);if(i)return i;if(this._bodyBlob)return e=this._bodyBlob,n=h(t=new FileReader),o=(r=/charset=([A-Za-z0-9_-]+)/.exec(e.type))?r[1]:"utf-8",t.readAsText(e,o),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},i&&(this.formData=function(){return this.text().then(_)}),this.json=function(){return this.text().then(JSON.parse)},this}l.prototype.append=function(e,t){e=f(e),t=u(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},l.prototype.delete=function(e){delete this.map[f(e)]},l.prototype.get=function(e){return e=f(e),this.has(e)?this.map[e]:null},l.prototype.has=function(e){return this.map.hasOwnProperty(f(e))},l.prototype.set=function(e,t){this.map[f(e)]=u(t)},l.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},l.prototype.keys=function(){var e=[];return this.forEach(function(t,n){e.push(n)}),d(e)},l.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),d(e)},l.prototype.entries=function(){var e=[];return this.forEach(function(t,n){e.push([n,t])}),d(e)},r&&(l.prototype[Symbol.iterator]=l.prototype.entries);var y=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function g(e,n){if(!(this instanceof g))throw TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var r,o,i=(n=n||{}).body;if(e instanceof g){if(e.bodyUsed)throw TypeError("Already read");this.url=e.url,this.credentials=e.credentials,n.headers||(this.headers=new l(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,i||null==e._bodyInit||(i=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=n.credentials||this.credentials||"same-origin",!n.headers&&this.headers||(this.headers=new l(n.headers)),this.method=(o=(r=n.method||this.method||"GET").toUpperCase(),y.indexOf(o)>-1?o:r),this.mode=n.mode||this.mode||null,this.signal=n.signal||this.signal||function(){if("AbortController"in t)return(new AbortController).signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(i),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==n.cache&&"no-cache"!==n.cache)){var a=/([?&])_=[^&]*/;a.test(this.url)?this.url=this.url.replace(a,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}function _(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(o))}}),t}function w(e,t){if(!(this instanceof w))throw TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.status<200||this.status>599)throw RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new l(t.headers),this.url=t.url||"",this._initBody(e)}g.prototype.clone=function(){return new g(this,{body:this._bodyInit})},v.call(g.prototype),v.call(w.prototype),w.prototype.clone=function(){return new w(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},w.error=function(){var e=new w(null,{status:200,statusText:""});return e.ok=!1,e.status=0,e.type="error",e};var x=[301,302,303,307,308];w.redirect=function(e,t){if(-1===x.indexOf(t))throw RangeError("Invalid status code");return new w(null,{status:t,headers:{location:e}})};var O=t.DOMException;try{new O}catch(e){(O=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack}).prototype=Object.create(Error.prototype),O.prototype.constructor=O}function E(e,n){return new Promise(function(r,i){var s=new g(e,n);if(s.signal&&s.signal.aborted)return i(new O("Aborted","AbortError"));var c=new XMLHttpRequest;function d(){c.abort()}if(c.onload=function(){var e,t,n={statusText:c.statusText,headers:(e=c.getAllResponseHeaders()||"",t=new l,e.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e}).forEach(function(e){var n=e.split(":"),r=n.shift().trim();if(r){var o=n.join(":").trim();try{t.append(r,o)}catch(e){}}}),t)};0===s.url.indexOf("file://")&&(c.status<200||c.status>599)?n.status=200:n.status=c.status,n.url="responseURL"in c?c.responseURL:n.headers.get("X-Request-URL");var o="response"in c?c.response:c.responseText;setTimeout(function(){r(new w(o,n))},0)},c.onerror=function(){setTimeout(function(){i(TypeError("Network request failed"))},0)},c.ontimeout=function(){setTimeout(function(){i(TypeError("Network request timed out"))},0)},c.onabort=function(){setTimeout(function(){i(new O("Aborted","AbortError"))},0)},c.open(s.method,function(e){try{return""===e&&t.location.href?t.location.href:e}catch(t){return e}}(s.url),!0),"include"===s.credentials?c.withCredentials=!0:"omit"===s.credentials&&(c.withCredentials=!1),"responseType"in c&&(o?c.responseType="blob":a&&(c.responseType="arraybuffer")),n&&"object"==typeof n.headers&&!(n.headers instanceof l||t.Headers&&n.headers instanceof t.Headers)){var p=[];Object.getOwnPropertyNames(n.headers).forEach(function(e){p.push(f(e)),c.setRequestHeader(e,u(n.headers[e]))}),s.headers.forEach(function(e,t){-1===p.indexOf(t)&&c.setRequestHeader(t,e)})}else s.headers.forEach(function(e,t){c.setRequestHeader(t,e)});s.signal&&(s.signal.addEventListener("abort",d),c.onreadystatechange=function(){4===c.readyState&&s.signal.removeEventListener("abort",d)}),c.send(void 0===s._bodyInit?null:s._bodyInit)})}E.polyfill=!0,t.fetch||(t.fetch=E,t.Headers=l,t.Request=g,t.Response=w)}).call(this,n("0a67ffe64563af2f4879"))},f86e9ca832c23f1bd0e0:function(e,t,n){var r=n("17359dda8acb856eb0ac");e.exports=function(e,t){var n,o;if(!r(e))return e;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e))||"function"==typeof(n=e.valueOf)&&!r(o=n.call(e))||!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},fba7b4ad221869857103:function(e,t,n){var r=n("7e408bcfe85cb9488ad3"),o=n("9a79a94336bcdbd8d603"),i=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n("07ff155567688636b304")?"pure":"global",copyright:"\xa9 2020 Denis Pushkarev (zloirock.ru)"})},fcc138597d47751b92b2:function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"b",function(){return o}),n.d(t,"c",function(){return i});var 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 a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}c((r=r.apply(e,t||[])).next())})}function i(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw TypeError("Generator is already executing.");for(;a;)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 a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}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,s])}}}}})},e.exports=n()},841274:function(e,t,n){"use strict";n.r(t),n.d(t,{CLIENT_ENTRANCE:function(){return C},WEB_ENTRANCE:function(){return I}});var r=n(629686);n(490629),n(679308),n(431723),n(362051);var o=n(101199),i=n(309841),a=n.n(i),s=n(280647),c=n(328981),f=n(638052),u=n(757309),d=n.n(u),l=n(618759),p=n(428658),h=n(795653),b=n(992378),m=n(409250),v=n(19277),y=n(499059),g=n(889429),_=n(810069),w=n(414061),x=n(426038),O=n(119778),E=n(210091),T=n(675403),P=n(707246),A=n(975626),k=n(907382),S=n(699651),j=n(461014);let C="IM338523-3585",I="IM6383-3586",L="10001";t.default=e=>{let{version:t,isLogin:n,abTestData:i}=e,{targetResource:u}=(0,T.II)(e=>{let{targetResource:t}=e;return{targetResource:t}}),R=(0,o.useRef)(),D=(0,o.useRef)(""),M=(0,o.useRef)(""),B=(0,o.useRef)(!1),{feedbackOnlineUrl:U,setFeedbackOnlineUrl:H}=(0,P.s6)(e=>({setFeedbackOnlineUrl:e.setFeedbackOnlineUrl,feedbackOnlineUrl:e.feedbackOnlineUrl}));(0,o.useEffect)(()=>{let e=!1;return(async()=>{if(!U){let e=(0,l.DT)()?"672":"673",t=(0,l.DT)()?C:I,n=await (0,O.fetchUserFeedbackOnlineUrl)({appId:L,channel:e,entrance:t});D.current=(null==n?void 0:n.url)||"",H(D.current)}})(),()=>{var e,t;null===(t=R.current)||void 0===t||null===(e=t.destroy)||void 0===e||e.call(t)}},[]),(0,s.Z)(()=>((async()=>{var e,t;null===(t=R.current)||void 0===t||null===(e=t.destroy)||void 0===e||e.call(t);let n=(0,l.DT)()?"672":"673",r=(0,l.DT)()?C:I,o=await (0,O.fetchUserFeedbackOnlineUrl)({appId:L,channel:n,entrance:r});D.current=(null==o?void 0:o.url)||"",H(D.current),R.current=await N()})(),()=>{var e,t;null===(t=R.current)||void 0===t||null===(e=t.destroy)||void 0===e||e.call(t)}),[n]);let{isDark:F}=(0,k.C)();(0,s.Z)(()=>((async()=>{var e,t;null===(t=R.current)||void 0===t||null===(e=t.destroy)||void 0===e||e.call(t),R.current=await N()})(),()=>{var e,t;null===(t=R.current)||void 0===t||null===(e=t.destroy)||void 0===e||e.call(t)}),[F]);let N=async()=>{var e,n,o,i,s,w,O,T,P,k,U,H,F,N,W,V,q,G,z,K,J;null===(n=R.current)||void 0===n||null===(e=n.destroy)||void 0===e||e.call(n);let Q=document.querySelector("#panel-menu")||document.querySelector("#douyin-navigation");if(B.current||!Q)return null;B.current=!0;let{device_manufacture:X="",device_model:Z="",guid:$="",version:Y=""}=(0,p.rp)(),{os:ee,version:et}=(0,h.fV)(),en=(0,b.$h)().info,er=m.Q.getItem({sKey:x.CookieKeys.Theme}),{stuff_detail:eo}=u||{},{theme:ei}=eo||{},ea=ei&&!ei.is_support_light_theme?x.ThemeValues.Dark:(0,v.Dr)(er);M.current=ea;let es=m.Q.getItem({sKey:x.CookieKeys.MonitorWebId}),ec=m.Q.getItem({sKey:x.CookieKeys.MonitorDeviceId}),ef="";try{let[e,t]=await Promise.allSettled([(0,c.d)(),(0,E.a)()]),n=(0,A.L7)(e,[]),r=(0,A.L7)(t,[]);n.concat(r).join(",")}catch(e){}let eu={env:null===(o=y.Le.getConfig(y.gI.Env))||void 0===o?void 0:o.envService,os:ee,client_version:Y,domain:document.domain,version:t||(null===(i=window)||void 0===i?void 0:i.version),browser:null===(s=(0,g.Lq)())||void 0===s?void 0:s.browser,browser_version:null===(w=(0,g.Lq)())||void 0===w?void 0:w.browser_version,os_version:et},ed=d()(null===(O=navigator)||void 0===O?void 0:O.userAgent),el={device_id:null===(T=(0,_.Es)())||void 0===T?void 0:T.user_unique_id,uuid:null===(P=(0,_.Es)())||void 0===P?void 0:P.user_unique_id,user_id:null===(k=(0,_.Es)())||void 0===k?void 0:k.user_id,monitor_web_id:es,monitor_device_id:ec,ab_test_vids:"",manufacturer:X,version:t||(null===(U=window)||void 0===U?void 0:U.version),referrer:document.referrer,device_model:Z,guid:$,client_version:Y,os:ee,gpu_vender:en,hardware_concurrency:null!==(K=null===(H=navigator)||void 0===H?void 0:H.hardwareConcurrency)&&void 0!==K?K:-1,env:null===(F=y.Le.getConfig(y.gI.Env))||void 0===F?void 0:F.envService,custom_field_info:eu,vtype:null===(W=window)||void 0===W?void 0:null===(N=W.player)||void 0===N?void 0:N.vtype,web_cpu_core:null!==(J=null===(V=navigator)||void 0===V?void 0:V.hardwareConcurrency)&&void 0!==J?J:-1,is_support_rtm_web_ts:(0,j.m)()?1:0,web_memory_size:Number((0,l.Bl)()||-1),architecture:(null==ed?void 0:null===(q=ed.cpu)||void 0===q?void 0:q.architecture)||0,tce_cluster:window.tce_cluster,cdid:null===(G=(0,_.Es)())||void 0===G?void 0:G.libracdid,pathname:window.location.pathname,is_client:(0,l.DT)(),is_mainland:!(0,S.lJ)()},ep={custom_data:JSON.stringify(el),device_id:null===(z=(0,_.Es)())||void 0===z?void 0:z.user_unique_id},eh=new(a())(Q,{width:375,height:667,zIndex:9999,appId:L,channel:(0,l.DT)()?"672":"673",entrance:(0,l.DT)()?C:I,placement:"right-end",popperOffset:[-15,0],sdkUrl:D.current||"https://summon.bytedance.com/web/",genTokenUrl:"/aweme/v1/web/im/token/",ext:{uiTheme:M.current,hidePopupArrow:"true",disableAutoToggle:!0,imExtra:encodeURIComponent(JSON.stringify(ep))},onGenTokenError:e=>{f.logInstance.sendLog("feedbackOnlineGenTokenError",{error:(null==e?void 0:e.message)||""})},hiBotEventListener:(e,t)=>{if("report"===e){let{eventName:e,generalParams:n}=t||{};if("into_human_service"===e||"page_view"===e){let{intelligentTaskID:t,manualTaskID:o,sessionId:i}=n||{};f.logInstance.sendLog("feedbackOnlineReport",(0,r._)({action:e,intelligent_task_id:t,manual_task_id:o,session_id:i},el))}}}});return B.current=!1,eh};return(0,o.useEffect)(()=>{(async()=>{let e=w.listen(w.EVENT.showFeedback,async()=>{var e,t;if((null==i?void 0:i.feedbackOnline)===1)f.logInstance.sendLog("customerServiceEntryClick",{entrance_id:(0,l.DT)()?C:I,timestamp:new Date().getTime()}),!R.current&&(R.current=await N()),null===(t=R.current)||void 0===t||null===(e=t.show)||void 0===e||e.call(t)});return()=>{e()}})()},[i]),null}}}]); |