!function(){"use strict";var e={1896:function(e,t,n){var r=n(9063),o=n(4596),i=TypeError;e.exports=function(e){if(r(e))return e;throw new i(o(e)+" is not a function")}},3984:function(e,t,n){var r=n(780),o=n(4596),i=TypeError;e.exports=function(e){if(r(e))return e;throw new i(o(e)+" is not a constructor")}},9472:function(e,t,n){var r=n(968),o=String,i=TypeError;e.exports=function(e){if(r(e))return e;throw new i("Can't set "+o(e)+" as a prototype")}},2328:function(e,t,n){var r=n(1840),o=n(8340),i=n(368).f,a=r("unscopables"),c=Array.prototype;void 0===c[a]&&i(c,a,{configurable:!0,value:o(null)}),e.exports=function(e){c[a][e]=!0}},6884:function(e,t,n){var r=n(1968).charAt;e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},5796:function(e,t,n){var r=n(6056),o=TypeError;e.exports=function(e,t){if(r(t,e))return e;throw new o("Incorrect invocation")}},8424:function(e,t,n){var r=n(808),o=String,i=TypeError;e.exports=function(e){if(r(e))return e;throw new i(o(e)+" is not an object")}},6460:function(e){e.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},7736:function(e,t,n){var r,o,i,a=n(6460),c=n(3528),u=n(5624),s=n(9063),l=n(808),f=n(6216),d=n(8040),p=n(4596),v=n(3652),g=n(3244),h=n(1720),m=n(6056),y=n(1304),b=n(5168),w=n(1840),_=n(320),O=n(5444),S=O.enforce,x=O.get,E=u.Int8Array,I=E&&E.prototype,P=u.Uint8ClampedArray,j=P&&P.prototype,A=E&&y(E),L=I&&y(I),T=Object.prototype,k=u.TypeError,C=w("toStringTag"),N=_("TYPED_ARRAY_TAG"),D="TypedArrayConstructor",R=a&&!!b&&"Opera"!==d(u.opera),M=!1,B={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},U={BigInt64Array:8,BigUint64Array:8},F=function(e){var t=y(e);if(l(t)){var n=x(t);return n&&f(n,D)?n[D]:F(t)}},G=function(e){if(!l(e))return!1;var t=d(e);return f(B,t)||f(U,t)};for(r in B)(i=(o=u[r])&&o.prototype)?S(i)[D]=o:R=!1;for(r in U)(i=(o=u[r])&&o.prototype)&&(S(i)[D]=o);if((!R||!s(A)||A===Function.prototype)&&(A=function(){throw new k("Incorrect invocation")},R))for(r in B)u[r]&&b(u[r],A);if((!R||!L||L===T)&&(L=A.prototype,R))for(r in B)u[r]&&b(u[r].prototype,L);if(R&&y(j)!==L&&b(j,L),c&&!f(L,C))for(r in M=!0,h(L,C,{configurable:!0,get:function(){return l(this)?this[N]:void 0}}),B)u[r]&&v(u[r],N,r);e.exports={NATIVE_ARRAY_BUFFER_VIEWS:R,TYPED_ARRAY_TAG:M&&N,aTypedArray:function(e){if(G(e))return e;throw new k("Target is not a typed array")},aTypedArrayConstructor:function(e){if(s(e)&&(!b||m(A,e)))return e;throw new k(p(e)+" is not a typed array constructor")},exportTypedArrayMethod:function(e,t,n,r){if(c){if(n)for(var o in B){var i=u[o];if(i&&f(i.prototype,e))try{delete i.prototype[e]}catch(n){try{i.prototype[e]=t}catch(e){}}}L[e]&&!n||g(L,e,n?t:R&&I[e]||t,r)}},exportTypedArrayStaticMethod:function(e,t,n){var r,o;if(c){if(b){if(n)for(r in B)if((o=u[r])&&f(o,e))try{delete o[e]}catch(e){}if(A[e]&&!n)return;try{return g(A,e,n?t:R&&A[e]||t)}catch(e){}}for(r in B)!(o=u[r])||o[e]&&!n||g(o,e,t)}},getTypedArrayConstructor:F,isView:function(e){if(!l(e))return!1;var t=d(e);return"DataView"===t||f(B,t)||f(U,t)},isTypedArray:G,TypedArray:A,TypedArrayPrototype:L}},4025:function(e,t,n){var r=n(5624),o=n(1447),i=n(3528),a=n(6460),c=n(3788),u=n(3652),s=n(1720),l=n(5248),f=n(6040),d=n(5796),p=n(3288),v=n(960),g=n(4084),h=n(6136),m=n(7015),y=n(1304),b=n(5168),w=n(5212),_=n(7588),O=n(2744),S=n(4304),x=n(4200),E=n(5444),I=c.PROPER,P=c.CONFIGURABLE,j="ArrayBuffer",A="DataView",L="prototype",T="Wrong index",k=E.getterFor(j),C=E.getterFor(A),N=E.set,D=r[j],R=D,M=R&&R[L],B=r[A],U=B&&B[L],F=Object.prototype,G=r.Array,V=r.RangeError,q=o(w),z=o([].reverse),W=m.pack,H=m.unpack,Q=function(e){return[255&e]},Y=function(e){return[255&e,e>>8&255]},$=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},J=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},K=function(e){return W(h(e),23,4)},X=function(e){return W(e,52,8)},Z=function(e,t,n){s(e[L],t,{configurable:!0,get:function(){return n(this)[t]}})},ee=function(e,t,n,r){var o=C(e),i=g(n),a=!!r;if(i+t>o.byteLength)throw new V(T);var c=o.bytes,u=i+o.byteOffset,s=_(c,u,u+t);return a?s:z(s)},te=function(e,t,n,r,o,i){var a=C(e),c=g(n),u=r(+o),s=!!i;if(c+t>a.byteLength)throw new V(T);for(var l=a.bytes,f=c+a.byteOffset,d=0;d>24)},setUint8:function(e,t){oe(this,e,t<<24>>24)}},{unsafe:!0})}else M=(R=function(e){d(this,M);var t=g(e);N(this,{type:j,bytes:q(G(t),0),byteLength:t}),i||(this.byteLength=t,this.detached=!1)})[L],U=(B=function(e,t,n){d(this,U),d(e,M);var r=k(e),o=r.byteLength,a=p(t);if(a<0||a>o)throw new V("Wrong offset");if(a+(n=void 0===n?o-a:v(n))>o)throw new V("Wrong length");N(this,{type:A,buffer:e,byteLength:n,byteOffset:a,bytes:r.bytes}),i||(this.buffer=e,this.byteLength=n,this.byteOffset=a)})[L],i&&(Z(R,"byteLength",k),Z(B,"buffer",C),Z(B,"byteLength",C),Z(B,"byteOffset",C)),l(U,{getInt8:function(e){return ee(this,1,e)[0]<<24>>24},getUint8:function(e){return ee(this,1,e)[0]},getInt16:function(e){var t=ee(this,2,e,arguments.length>1&&arguments[1]);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=ee(this,2,e,arguments.length>1&&arguments[1]);return t[1]<<8|t[0]},getInt32:function(e){return J(ee(this,4,e,arguments.length>1&&arguments[1]))},getUint32:function(e){return J(ee(this,4,e,arguments.length>1&&arguments[1]))>>>0},getFloat32:function(e){return H(ee(this,4,e,arguments.length>1&&arguments[1]),23)},getFloat64:function(e){return H(ee(this,8,e,arguments.length>1&&arguments[1]),52)},setInt8:function(e,t){te(this,1,e,Q,t)},setUint8:function(e,t){te(this,1,e,Q,t)},setInt16:function(e,t){te(this,2,e,Y,t,arguments.length>2&&arguments[2])},setUint16:function(e,t){te(this,2,e,Y,t,arguments.length>2&&arguments[2])},setInt32:function(e,t){te(this,4,e,$,t,arguments.length>2&&arguments[2])},setUint32:function(e,t){te(this,4,e,$,t,arguments.length>2&&arguments[2])},setFloat32:function(e,t){te(this,4,e,K,t,arguments.length>2&&arguments[2])},setFloat64:function(e,t){te(this,8,e,X,t,arguments.length>2&&arguments[2])}});x(R,j),x(B,A),e.exports={ArrayBuffer:R,DataView:B}},5212:function(e,t,n){var r=n(6804),o=n(4160),i=n(9480);e.exports=function(e){for(var t=r(this),n=i(t),a=arguments.length,c=o(a>1?arguments[1]:void 0,n),u=a>2?arguments[2]:void 0,s=void 0===u?n:o(u,n);s>c;)t[c++]=e;return t}},4244:function(e,t,n){var r=n(9480);e.exports=function(e,t,n){for(var o=0,i=arguments.length>2?n:r(t),a=new e(i);i>o;)a[o]=t[o++];return a}},2196:function(e,t,n){var r=n(9740),o=n(4160),i=n(9480),a=function(e){return function(t,n,a){var c,u=r(t),s=i(u),l=o(a,s);if(e&&n!=n){for(;s>l;)if((c=u[l++])!=c)return!0}else for(;s>l;l++)if((e||l in u)&&u[l]===n)return e||l||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},4904:function(e,t,n){var r=n(2880),o=n(1447),i=n(6212),a=n(6804),c=n(9480),u=n(8488),s=o([].push),l=function(e){var t=1===e,n=2===e,o=3===e,l=4===e,f=6===e,d=7===e,p=5===e||f;return function(v,g,h,m){for(var y,b,w=a(v),_=i(w),O=c(_),S=r(g,h),x=0,E=m||u,I=t?E(v,O):n||d?E(v,0):void 0;O>x;x++)if((p||x in _)&&(b=S(y=_[x],x,w),e))if(t)I[x]=b;else if(b)switch(e){case 3:return!0;case 5:return y;case 6:return x;case 2:s(I,y)}else switch(e){case 4:return!1;case 7:s(I,y)}return f?-1:o||l?l:I}};e.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6),filterReject:l(7)}},4528:function(e,t,n){var r=n(6040);e.exports=function(e,t){var n=[][e];return!!n&&r((function(){n.call(null,t||function(){return 1},1)}))}},7588:function(e,t,n){var r=n(1447);e.exports=r([].slice)},584:function(e,t,n){var r=n(7588),o=Math.floor,i=function(e,t){var n=e.length;if(n<8)for(var a,c,u=1;u0;)e[c]=e[--c];c!==u++&&(e[c]=a)}else for(var s=o(n/2),l=i(r(e,0,s),t),f=i(r(e,s),t),d=l.length,p=f.length,v=0,g=0;v9007199254740991)throw t("Maximum allowed index exceeded");return e}},5848:function(e){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},8280:function(e,t,n){var r=n(9308)("span").classList,o=r&&r.constructor&&r.constructor.prototype;e.exports=o===Object.prototype?void 0:o},2392:function(e,t,n){var r=n(8232).match(/firefox\/(\d+)/i);e.exports=!!r&&+r[1]},7464:function(e,t,n){var r=n(8232);e.exports=/MSIE|Trident/.test(r)},8232:function(e){e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},3356:function(e,t,n){var r,o,i=n(5624),a=n(8232),c=i.process,u=i.Deno,s=c&&c.versions||u&&u.version,l=s&&s.v8;l&&(o=(r=l.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!o&&a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(o=+r[1]),e.exports=o},315:function(e,t,n){var r=n(8232).match(/AppleWebKit\/(\d+)\./);e.exports=!!r&&+r[1]},4656:function(e){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},3748:function(e,t,n){var r=n(5624),o=n(4560).f,i=n(3652),a=n(3244),c=n(1544),u=n(4304),s=n(5272);e.exports=function(e,t){var n,l,f,d,p,v=e.target,g=e.global,h=e.stat;if(n=g?r:h?r[v]||c(v,{}):r[v]&&r[v].prototype)for(l in t){if(d=t[l],f=e.dontCallGetSet?(p=o(n,l))&&p.value:n[l],!s(g?l:v+(h?".":"#")+l,e.forced)&&void 0!==f){if(typeof d==typeof f)continue;u(d,f)}(e.sham||f&&f.sham)&&i(d,"sham",!0),a(n,l,d,e)}}},6040:function(e){e.exports=function(e){try{return!!e()}catch(e){return!0}}},8760:function(e,t,n){n(2644);var r=n(892),o=n(3244),i=n(8096),a=n(6040),c=n(1840),u=n(3652),s=c("species"),l=RegExp.prototype;e.exports=function(e,t,n,f){var d=c(e),p=!a((function(){var t={};return t[d]=function(){return 7},7!==""[e](t)})),v=p&&!a((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[s]=function(){return n},n.flags="",n[d]=/./[d]),n.exec=function(){return t=!0,null},n[d](""),!t}));if(!p||!v||n){var g=/./[d],h=t(d,""[e],(function(e,t,n,o,a){var c=t.exec;return c===i||c===l.exec?p&&!a?{done:!0,value:r(g,t,n,o)}:{done:!0,value:r(e,n,t,o)}:{done:!1}}));o(String.prototype,e,h[0]),o(l,d,h[1])}f&&u(l[d],"sham",!0)}},3052:function(e,t,n){var r=n(1064),o=n(9480),i=n(3272),a=n(2880),c=function(e,t,n,u,s,l,f,d){for(var p,v,g=s,h=0,m=!!f&&a(f,d);h0&&r(p)?(v=o(p),g=c(e,t,p,v,g,l-1)-1):(i(g+1),e[g]=p),g++),h++;return g};e.exports=c},4744:function(e,t,n){var r=n(5744),o=Function.prototype,i=o.apply,a=o.call;e.exports="object"==typeof Reflect&&Reflect.apply||(r?a.bind(i):function(){return a.apply(i,arguments)})},2880:function(e,t,n){var r=n(8168),o=n(1896),i=n(5744),a=r(r.bind);e.exports=function(e,t){return o(e),void 0===t?e:i?a(e,t):function(){return e.apply(t,arguments)}}},5744:function(e,t,n){var r=n(6040);e.exports=!r((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},892:function(e,t,n){var r=n(5744),o=Function.prototype.call;e.exports=r?o.bind(o):function(){return o.apply(o,arguments)}},3788:function(e,t,n){var r=n(3528),o=n(6216),i=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,c=o(i,"name"),u=c&&"something"===function(){}.name,s=c&&(!r||r&&a(i,"name").configurable);e.exports={EXISTS:c,PROPER:u,CONFIGURABLE:s}},6632:function(e,t,n){var r=n(1447),o=n(1896);e.exports=function(e,t,n){try{return r(o(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(e){}}},8168:function(e,t,n){var r=n(5983),o=n(1447);e.exports=function(e){if("Function"===r(e))return o(e)}},1447:function(e,t,n){var r=n(5744),o=Function.prototype,i=o.call,a=r&&o.bind.bind(i,i);e.exports=r?a:function(e){return function(){return i.apply(e,arguments)}}},4960:function(e,t,n){var r=n(5624),o=n(9063);e.exports=function(e,t){return arguments.length<2?(n=r[e],o(n)?n:void 0):r[e]&&r[e][t];var n}},7508:function(e,t,n){var r=n(8040),o=n(364),i=n(952),a=n(4920),c=n(1840)("iterator");e.exports=function(e){if(!i(e))return o(e,c)||o(e,"@@iterator")||a[r(e)]}},2704:function(e,t,n){var r=n(892),o=n(1896),i=n(8424),a=n(4596),c=n(7508),u=TypeError;e.exports=function(e,t){var n=arguments.length<2?c(e):t;if(o(n))return i(r(n,e));throw new u(a(e)+" is not iterable")}},364:function(e,t,n){var r=n(1896),o=n(952);e.exports=function(e,t){var n=e[t];return o(n)?void 0:r(n)}},4740:function(e,t,n){var r=n(1447),o=n(6804),i=Math.floor,a=r("".charAt),c=r("".replace),u=r("".slice),s=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,l=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,r,f,d){var p=n+e.length,v=r.length,g=l;return void 0!==f&&(f=o(f),g=s),c(d,g,(function(o,c){var s;switch(a(c,0)){case"$":return"$";case"&":return e;case"`":return u(t,0,n);case"'":return u(t,p);case"<":s=f[u(c,1,-1)];break;default:var l=+c;if(0===l)return o;if(l>v){var d=i(l/10);return 0===d?o:d<=v?void 0===r[d-1]?a(c,1):r[d-1]+a(c,1):o}s=r[l-1]}return void 0===s?"":s}))}},5624:function(e,t,n){var r=function(e){return e&&e.Math===Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||r("object"==typeof this&&this)||function(){return this}()||Function("return this")()},6216:function(e,t,n){var r=n(1447),o=n(6804),i=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(o(e),t)}},6480:function(e){e.exports={}},6836:function(e,t,n){var r=n(4960);e.exports=r("document","documentElement")},784:function(e,t,n){var r=n(3528),o=n(6040),i=n(9308);e.exports=!r&&!o((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},7015:function(e){var t=Array,n=Math.abs,r=Math.pow,o=Math.floor,i=Math.log,a=Math.LN2;e.exports={pack:function(e,c,u){var s,l,f,d=t(u),p=8*u-c-1,v=(1<>1,h=23===c?r(2,-24)-r(2,-77):0,m=e<0||0===e&&1/e<0?1:0,y=0;for((e=n(e))!=e||e===1/0?(l=e!=e?1:0,s=v):(s=o(i(e)/a),e*(f=r(2,-s))<1&&(s--,f*=2),(e+=s+g>=1?h/f:h*r(2,1-g))*f>=2&&(s++,f/=2),s+g>=v?(l=0,s=v):s+g>=1?(l=(e*f-1)*r(2,c),s+=g):(l=e*r(2,g-1)*r(2,c),s=0));c>=8;)d[y++]=255&l,l/=256,c-=8;for(s=s<0;)d[y++]=255&s,s/=256,p-=8;return d[--y]|=128*m,d},unpack:function(e,t){var n,o=e.length,i=8*o-t-1,a=(1<>1,u=i-7,s=o-1,l=e[s--],f=127&l;for(l>>=7;u>0;)f=256*f+e[s--],u-=8;for(n=f&(1<<-u)-1,f>>=-u,u+=t;u>0;)n=256*n+e[s--],u-=8;if(0===f)f=1-c;else{if(f===a)return n?NaN:l?-1/0:1/0;n+=r(2,t),f-=c}return(l?-1:1)*n*r(2,f-t)}}},6212:function(e,t,n){var r=n(1447),o=n(6040),i=n(5983),a=Object,c=r("".split);e.exports=o((function(){return!a("z").propertyIsEnumerable(0)}))?function(e){return"String"===i(e)?c(e,""):a(e)}:a},2744:function(e,t,n){var r=n(9063),o=n(808),i=n(5168);e.exports=function(e,t,n){var a,c;return i&&r(a=t.constructor)&&a!==n&&o(c=a.prototype)&&c!==n.prototype&&i(e,c),e}},8460:function(e,t,n){var r=n(1447),o=n(9063),i=n(9136),a=r(Function.toString);o(i.inspectSource)||(i.inspectSource=function(e){return a(e)}),e.exports=i.inspectSource},5444:function(e,t,n){var r,o,i,a=n(280),c=n(5624),u=n(808),s=n(3652),l=n(6216),f=n(9136),d=n(8192),p=n(6480),v="Object already initialized",g=c.TypeError,h=c.WeakMap;if(a||f.state){var m=f.state||(f.state=new h);m.get=m.get,m.has=m.has,m.set=m.set,r=function(e,t){if(m.has(e))throw new g(v);return t.facade=e,m.set(e,t),t},o=function(e){return m.get(e)||{}},i=function(e){return m.has(e)}}else{var y=d("state");p[y]=!0,r=function(e,t){if(l(e,y))throw new g(v);return t.facade=e,s(e,y,t),t},o=function(e){return l(e,y)?e[y]:{}},i=function(e){return l(e,y)}}e.exports={set:r,get:o,has:i,enforce:function(e){return i(e)?o(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!u(t)||(n=o(t)).type!==e)throw new g("Incompatible receiver, "+e+" required");return n}}}},4264:function(e,t,n){var r=n(1840),o=n(4920),i=r("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||a[i]===e)}},1064:function(e,t,n){var r=n(5983);e.exports=Array.isArray||function(e){return"Array"===r(e)}},2040:function(e,t,n){var r=n(8040);e.exports=function(e){var t=r(e);return"BigInt64Array"===t||"BigUint64Array"===t}},9063:function(e){var t="object"==typeof document&&document.all;e.exports=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(e){return"function"==typeof e}},780:function(e,t,n){var r=n(1447),o=n(6040),i=n(9063),a=n(8040),c=n(4960),u=n(8460),s=function(){},l=c("Reflect","construct"),f=/^\s*(?:class|function)\b/,d=r(f.exec),p=!f.test(s),v=function(e){if(!i(e))return!1;try{return l(s,[],e),!0}catch(e){return!1}},g=function(e){if(!i(e))return!1;switch(a(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return p||!!d(f,u(e))}catch(e){return!0}};g.sham=!0,e.exports=!l||o((function(){var e;return v(v.call)||!v(Object)||!v((function(){e=!0}))||e}))?g:v},5272:function(e,t,n){var r=n(6040),o=n(9063),i=/#|\.prototype\./,a=function(e,t){var n=u[c(e)];return n===l||n!==s&&(o(t)?r(t):!!t)},c=a.normalize=function(e){return String(e).replace(i,".").toLowerCase()},u=a.data={},s=a.NATIVE="N",l=a.POLYFILL="P";e.exports=a},7432:function(e,t,n){var r=n(808),o=Math.floor;e.exports=Number.isInteger||function(e){return!r(e)&&isFinite(e)&&o(e)===e}},952:function(e){e.exports=function(e){return null==e}},808:function(e,t,n){var r=n(9063);e.exports=function(e){return"object"==typeof e?null!==e:r(e)}},968:function(e,t,n){var r=n(808);e.exports=function(e){return r(e)||null===e}},2804:function(e){e.exports=!1},392:function(e,t,n){var r=n(808),o=n(5983),i=n(1840)("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[i])?!!t:"RegExp"===o(e))}},6232:function(e,t,n){var r=n(4960),o=n(9063),i=n(6056),a=n(9448),c=Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return o(t)&&i(t.prototype,c(e))}},4216:function(e,t,n){var r=n(2880),o=n(892),i=n(8424),a=n(4596),c=n(4264),u=n(9480),s=n(6056),l=n(2704),f=n(7508),d=n(2252),p=TypeError,v=function(e,t){this.stopped=e,this.result=t},g=v.prototype;e.exports=function(e,t,n){var h,m,y,b,w,_,O,S=n&&n.that,x=!(!n||!n.AS_ENTRIES),E=!(!n||!n.IS_RECORD),I=!(!n||!n.IS_ITERATOR),P=!(!n||!n.INTERRUPTED),j=r(t,S),A=function(e){return h&&d(h,"normal",e),new v(!0,e)},L=function(e){return x?(i(e),P?j(e[0],e[1],A):j(e[0],e[1])):P?j(e,A):j(e)};if(E)h=e.iterator;else if(I)h=e;else{if(!(m=f(e)))throw new p(a(e)+" is not iterable");if(c(m)){for(y=0,b=u(e);b>y;y++)if((w=L(e[y]))&&s(g,w))return w;return new v(!1)}h=l(e,m)}for(_=E?e.next:h.next;!(O=o(_,h)).done;){try{w=L(O.value)}catch(e){d(h,"throw",e)}if("object"==typeof w&&w&&s(g,w))return w}return new v(!1)}},2252:function(e,t,n){var r=n(892),o=n(8424),i=n(364);e.exports=function(e,t,n){var a,c;o(e);try{if(!(a=i(e,"return"))){if("throw"===t)throw n;return n}a=r(a,e)}catch(e){c=!0,a=e}if("throw"===t)throw n;if(c)throw a;return o(a),n}},7936:function(e,t,n){var r=n(5412).IteratorPrototype,o=n(8340),i=n(9200),a=n(4200),c=n(4920),u=function(){return this};e.exports=function(e,t,n,s){var l=t+" Iterator";return e.prototype=o(r,{next:i(+!s,n)}),a(e,l,!1,!0),c[l]=u,e}},8752:function(e,t,n){var r=n(3748),o=n(892),i=n(2804),a=n(3788),c=n(9063),u=n(7936),s=n(1304),l=n(5168),f=n(4200),d=n(3652),p=n(3244),v=n(1840),g=n(4920),h=n(5412),m=a.PROPER,y=a.CONFIGURABLE,b=h.IteratorPrototype,w=h.BUGGY_SAFARI_ITERATORS,_=v("iterator"),O="keys",S="values",x="entries",E=function(){return this};e.exports=function(e,t,n,a,v,h,I){u(n,t,a);var P,j,A,L=function(e){if(e===v&&D)return D;if(!w&&e&&e in C)return C[e];switch(e){case O:case S:case x:return function(){return new n(this,e)}}return function(){return new n(this)}},T=t+" Iterator",k=!1,C=e.prototype,N=C[_]||C["@@iterator"]||v&&C[v],D=!w&&N||L(v),R="Array"===t&&C.entries||N;if(R&&(P=s(R.call(new e)))!==Object.prototype&&P.next&&(i||s(P)===b||(l?l(P,b):c(P[_])||p(P,_,E)),f(P,T,!0,!0),i&&(g[T]=E)),m&&v===S&&N&&N.name!==S&&(!i&&y?d(C,"name",S):(k=!0,D=function(){return o(N,this)})),v)if(j={values:L(S),keys:h?D:L(O),entries:L(x)},I)for(A in j)(w||k||!(A in C))&&p(C,A,j[A]);else r({target:t,proto:!0,forced:w||k},j);return i&&!I||C[_]===D||p(C,_,D,{name:v}),g[t]=D,j}},5412:function(e,t,n){var r,o,i,a=n(6040),c=n(9063),u=n(808),s=n(8340),l=n(1304),f=n(3244),d=n(1840),p=n(2804),v=d("iterator"),g=!1;[].keys&&("next"in(i=[].keys())?(o=l(l(i)))!==Object.prototype&&(r=o):g=!0),!u(r)||a((function(){var e={};return r[v].call(e)!==e}))?r={}:p&&(r=s(r)),c(r[v])||f(r,v,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:g}},4920:function(e){e.exports={}},9480:function(e,t,n){var r=n(960);e.exports=function(e){return r(e.length)}},316:function(e,t,n){var r=n(1447),o=n(6040),i=n(9063),a=n(6216),c=n(3528),u=n(3788).CONFIGURABLE,s=n(8460),l=n(5444),f=l.enforce,d=l.get,p=String,v=Object.defineProperty,g=r("".slice),h=r("".replace),m=r([].join),y=c&&!o((function(){return 8!==v((function(){}),"length",{value:8}).length})),b=String(String).split("String"),w=e.exports=function(e,t,n){"Symbol("===g(p(t),0,7)&&(t="["+h(p(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!a(e,"name")||u&&e.name!==t)&&(c?v(e,"name",{value:t,configurable:!0}):e.name=t),y&&n&&a(n,"arity")&&e.length!==n.arity&&v(e,"length",{value:n.arity});try{n&&a(n,"constructor")&&n.constructor?c&&v(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var r=f(e);return a(r,"source")||(r.source=m(b,"string"==typeof t?t:"")),e};Function.prototype.toString=w((function(){return i(this)&&d(this).source||s(this)}),"toString")},5151:function(e,t,n){var r=n(7824),o=Math.abs,i=2220446049250313e-31,a=1/i;e.exports=function(e,t,n,c){var u=+e,s=o(u),l=r(u);if(sn||d!=d?l*(1/0):l*d}},6136:function(e,t,n){var r=n(5151);e.exports=Math.fround||function(e){return r(e,1.1920928955078125e-7,34028234663852886e22,11754943508222875e-54)}},7824:function(e){e.exports=Math.sign||function(e){var t=+e;return 0===t||t!=t?t:t<0?-1:1}},1736:function(e){var t=Math.ceil,n=Math.floor;e.exports=Math.trunc||function(e){var r=+e;return(r>0?n:t)(r)}},8340:function(e,t,n){var r,o=n(8424),i=n(5045),a=n(4656),c=n(6480),u=n(6836),s=n(9308),l=n(8192),f="prototype",d="script",p=l("IE_PROTO"),v=function(){},g=function(e){return"<"+d+">"+e+""},h=function(e){e.write(g("")),e.close();var t=e.parentWindow.Object;return e=null,t},m=function(){try{r=new ActiveXObject("htmlfile")}catch(e){}var e,t,n;m="undefined"!=typeof document?document.domain&&r?h(r):(t=s("iframe"),n="java"+d+":",t.style.display="none",u.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(g("document.F=Object")),e.close(),e.F):h(r);for(var o=a.length;o--;)delete m[f][a[o]];return m()};c[p]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(v[f]=o(e),n=new v,v[f]=null,n[p]=e):n=m(),void 0===t?n:i.f(n,t)}},5045:function(e,t,n){var r=n(3528),o=n(4859),i=n(368),a=n(8424),c=n(9740),u=n(4152);t.f=r&&!o?Object.defineProperties:function(e,t){a(e);for(var n,r=c(t),o=u(t),s=o.length,l=0;s>l;)i.f(e,n=o[l++],r[n]);return e}},368:function(e,t,n){var r=n(3528),o=n(784),i=n(4859),a=n(8424),c=n(8732),u=TypeError,s=Object.defineProperty,l=Object.getOwnPropertyDescriptor,f="enumerable",d="configurable",p="writable";t.f=r?i?function(e,t,n){if(a(e),t=c(t),a(n),"function"==typeof e&&"prototype"===t&&"value"in n&&p in n&&!n[p]){var r=l(e,t);r&&r[p]&&(e[t]=n.value,n={configurable:d in n?n[d]:r[d],enumerable:f in n?n[f]:r[f],writable:!1})}return s(e,t,n)}:s:function(e,t,n){if(a(e),t=c(t),a(n),o)try{return s(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new u("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},4560:function(e,t,n){var r=n(3528),o=n(892),i=n(2460),a=n(9200),c=n(9740),u=n(8732),s=n(6216),l=n(784),f=Object.getOwnPropertyDescriptor;t.f=r?f:function(e,t){if(e=c(e),t=u(t),l)try{return f(e,t)}catch(e){}if(s(e,t))return a(!o(i.f,e,t),e[t])}},692:function(e,t,n){var r=n(9232),o=n(4656).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},8167:function(e,t){t.f=Object.getOwnPropertySymbols},1304:function(e,t,n){var r=n(6216),o=n(9063),i=n(6804),a=n(8192),c=n(6740),u=a("IE_PROTO"),s=Object,l=s.prototype;e.exports=c?s.getPrototypeOf:function(e){var t=i(e);if(r(t,u))return t[u];var n=t.constructor;return o(n)&&t instanceof n?n.prototype:t instanceof s?l:null}},6056:function(e,t,n){var r=n(1447);e.exports=r({}.isPrototypeOf)},9232:function(e,t,n){var r=n(1447),o=n(6216),i=n(9740),a=n(2196).indexOf,c=n(6480),u=r([].push);e.exports=function(e,t){var n,r=i(e),s=0,l=[];for(n in r)!o(c,n)&&o(r,n)&&u(l,n);for(;t.length>s;)o(r,n=t[s++])&&(~a(l,n)||u(l,n));return l}},4152:function(e,t,n){var r=n(9232),o=n(4656);e.exports=Object.keys||function(e){return r(e,o)}},2460:function(e,t){var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,o=r&&!n.call({1:2},1);t.f=o?function(e){var t=r(this,e);return!!t&&t.enumerable}:n},5168:function(e,t,n){var r=n(6632),o=n(8424),i=n(9472);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=r(Object.prototype,"__proto__","set"))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return o(n),i(r),t?e(n,r):n.__proto__=r,n}}():void 0)},7664:function(e,t,n){var r=n(892),o=n(9063),i=n(808),a=TypeError;e.exports=function(e,t){var n,c;if("string"===t&&o(n=e.toString)&&!i(c=r(n,e)))return c;if(o(n=e.valueOf)&&!i(c=r(n,e)))return c;if("string"!==t&&o(n=e.toString)&&!i(c=r(n,e)))return c;throw new a("Can't convert object to primitive value")}},9976:function(e,t,n){var r=n(4960),o=n(1447),i=n(692),a=n(8167),c=n(8424),u=o([].concat);e.exports=r("Reflect","ownKeys")||function(e){var t=i.f(c(e)),n=a.f;return n?u(t,n(e)):t}},9904:function(e,t,n){var r=n(368).f;e.exports=function(e,t,n){n in e||r(e,n,{configurable:!0,get:function(){return t[n]},set:function(e){t[n]=e}})}},1456:function(e,t,n){var r=n(892),o=n(8424),i=n(9063),a=n(5983),c=n(8096),u=TypeError;e.exports=function(e,t){var n=e.exec;if(i(n)){var s=r(n,e,t);return null!==s&&o(s),s}if("RegExp"===a(e))return r(c,e,t);throw new u("RegExp#exec called on incompatible receiver")}},8096:function(e,t,n){var r,o,i=n(892),a=n(1447),c=n(1992),u=n(8020),s=n(8548),l=n(8196),f=n(8340),d=n(5444).get,p=n(9160),v=n(7416),g=l("native-string-replace",String.prototype.replace),h=RegExp.prototype.exec,m=h,y=a("".charAt),b=a("".indexOf),w=a("".replace),_=a("".slice),O=(o=/b*/g,i(h,r=/a/,"a"),i(h,o,"a"),0!==r.lastIndex||0!==o.lastIndex),S=s.BROKEN_CARET,x=void 0!==/()??/.exec("")[1];(O||x||S||p||v)&&(m=function(e){var t,n,r,o,a,s,l,p=this,v=d(p),E=c(e),I=v.raw;if(I)return I.lastIndex=p.lastIndex,t=i(m,I,E),p.lastIndex=I.lastIndex,t;var P=v.groups,j=S&&p.sticky,A=i(u,p),L=p.source,T=0,k=E;if(j&&(A=w(A,"y",""),-1===b(A,"g")&&(A+="g"),k=_(E,p.lastIndex),p.lastIndex>0&&(!p.multiline||p.multiline&&"\n"!==y(E,p.lastIndex-1))&&(L="(?: "+L+")",k=" "+k,T++),n=new RegExp("^(?:"+L+")",A)),x&&(n=new RegExp("^"+L+"$(?!\\s)",A)),O&&(r=p.lastIndex),o=i(h,j?n:p,k),j?o?(o.input=_(o.input,T),o[0]=_(o[0],T),o.index=p.lastIndex,p.lastIndex+=o[0].length):p.lastIndex=0:O&&o&&(p.lastIndex=p.global?o.index+o[0].length:r),x&&o&&o.length>1&&i(g,o[0],n,(function(){for(a=1;ab)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$c")}))},2696:function(e,t,n){var r=n(952),o=TypeError;e.exports=function(e){if(r(e))throw new o("Can't call method on "+e);return e}},3440:function(e,t,n){var r=n(5624),o=n(3528),i=Object.getOwnPropertyDescriptor;e.exports=function(e){if(!o)return r[e];var t=i(r,e);return t&&t.value}},4440:function(e,t,n){var r=n(4960),o=n(1720),i=n(1840),a=n(3528),c=i("species");e.exports=function(e){var t=r(e);a&&t&&!t[c]&&o(t,c,{configurable:!0,get:function(){return this}})}},4200:function(e,t,n){var r=n(368).f,o=n(6216),i=n(1840)("toStringTag");e.exports=function(e,t,n){e&&!n&&(e=e.prototype),e&&!o(e,i)&&r(e,i,{configurable:!0,value:t})}},8192:function(e,t,n){var r=n(8196),o=n(320),i=r("keys");e.exports=function(e){return i[e]||(i[e]=o(e))}},9136:function(e,t,n){var r=n(5624),o=n(1544),i="__core-js_shared__",a=r[i]||o(i,{});e.exports=a},8196:function(e,t,n){var r=n(2804),o=n(9136);(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.35.1",mode:r?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.35.1/LICENSE",source:"https://github.com/zloirock/core-js"})},6080:function(e,t,n){var r=n(8424),o=n(3984),i=n(952),a=n(1840)("species");e.exports=function(e,t){var n,c=r(e).constructor;return void 0===c||i(n=r(c)[a])?t:o(n)}},1968:function(e,t,n){var r=n(1447),o=n(3288),i=n(1992),a=n(2696),c=r("".charAt),u=r("".charCodeAt),s=r("".slice),l=function(e){return function(t,n){var r,l,f=i(a(t)),d=o(n),p=f.length;return d<0||d>=p?e?"":void 0:(r=u(f,d))<55296||r>56319||d+1===p||(l=u(f,d+1))<56320||l>57343?e?c(f,d):r:e?s(f,d,d+2):l-56320+(r-55296<<10)+65536}};e.exports={codeAt:l(!1),charAt:l(!0)}},272:function(e,t,n){var r=n(3788).PROPER,o=n(6040),i=n(3388);e.exports=function(e){return o((function(){return!!i[e]()||"​…᠎"!=="​…᠎"[e]()||r&&i[e].name!==e}))}},1096:function(e,t,n){var r=n(1447),o=n(2696),i=n(1992),a=n(3388),c=r("".replace),u=RegExp("^["+a+"]+"),s=RegExp("(^|[^"+a+"])["+a+"]+$"),l=function(e){return function(t){var n=i(o(t));return 1&e&&(n=c(n,u,"")),2&e&&(n=c(n,s,"$1")),n}};e.exports={start:l(1),end:l(2),trim:l(3)}},8972:function(e,t,n){var r=n(3356),o=n(6040),i=n(5624).String;e.exports=!!Object.getOwnPropertySymbols&&!o((function(){var e=Symbol("symbol detection");return!i(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},4160:function(e,t,n){var r=n(3288),o=Math.max,i=Math.min;e.exports=function(e,t){var n=r(e);return n<0?o(n+t,0):i(n,t)}},2724:function(e,t,n){var r=n(8176),o=TypeError;e.exports=function(e){var t=r(e,"number");if("number"==typeof t)throw new o("Can't convert number to bigint");return BigInt(t)}},4084:function(e,t,n){var r=n(3288),o=n(960),i=RangeError;e.exports=function(e){if(void 0===e)return 0;var t=r(e),n=o(t);if(t!==n)throw new i("Wrong length or index");return n}},9740:function(e,t,n){var r=n(6212),o=n(2696);e.exports=function(e){return r(o(e))}},3288:function(e,t,n){var r=n(1736);e.exports=function(e){var t=+e;return t!=t||0===t?0:r(t)}},960:function(e,t,n){var r=n(3288),o=Math.min;e.exports=function(e){var t=r(e);return t>0?o(t,9007199254740991):0}},6804:function(e,t,n){var r=n(2696),o=Object;e.exports=function(e){return o(r(e))}},9163:function(e,t,n){var r=n(1500),o=RangeError;e.exports=function(e,t){var n=r(e);if(n%t)throw new o("Wrong offset");return n}},1500:function(e,t,n){var r=n(3288),o=RangeError;e.exports=function(e){var t=r(e);if(t<0)throw new o("The argument can't be less than 0");return t}},8176:function(e,t,n){var r=n(892),o=n(808),i=n(6232),a=n(364),c=n(7664),u=n(1840),s=TypeError,l=u("toPrimitive");e.exports=function(e,t){if(!o(e)||i(e))return e;var n,u=a(e,l);if(u){if(void 0===t&&(t="default"),n=r(u,e,t),!o(n)||i(n))return n;throw new s("Can't convert object to primitive value")}return void 0===t&&(t="number"),c(e,t)}},8732:function(e,t,n){var r=n(8176),o=n(6232);e.exports=function(e){var t=r(e,"string");return o(t)?t:t+""}},1712:function(e,t,n){var r={};r[n(1840)("toStringTag")]="z",e.exports="[object z]"===String(r)},1992:function(e,t,n){var r=n(8040),o=String;e.exports=function(e){if("Symbol"===r(e))throw new TypeError("Cannot convert a Symbol value to a string");return o(e)}},2360:function(e){var t=Math.round;e.exports=function(e){var n=t(e);return n<0?0:n>255?255:255&n}},4596:function(e){var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},6736:function(e,t,n){var r=n(3748),o=n(5624),i=n(892),a=n(3528),c=n(2300),u=n(7736),s=n(4025),l=n(5796),f=n(9200),d=n(3652),p=n(7432),v=n(960),g=n(4084),h=n(9163),m=n(2360),y=n(8732),b=n(6216),w=n(8040),_=n(808),O=n(6232),S=n(8340),x=n(6056),E=n(5168),I=n(692).f,P=n(5552),j=n(4904).forEach,A=n(4440),L=n(1720),T=n(368),k=n(4560),C=n(4244),N=n(5444),D=n(2744),R=N.get,M=N.set,B=N.enforce,U=T.f,F=k.f,G=o.RangeError,V=s.ArrayBuffer,q=V.prototype,z=s.DataView,W=u.NATIVE_ARRAY_BUFFER_VIEWS,H=u.TYPED_ARRAY_TAG,Q=u.TypedArray,Y=u.TypedArrayPrototype,$=u.isTypedArray,J="BYTES_PER_ELEMENT",K="Wrong length",X=function(e,t){L(e,t,{configurable:!0,get:function(){return R(this)[t]}})},Z=function(e){var t;return x(q,e)||"ArrayBuffer"===(t=w(e))||"SharedArrayBuffer"===t},ee=function(e,t){return $(e)&&!O(t)&&t in e&&p(+t)&&t>=0},te=function(e,t){return t=y(t),ee(e,t)?f(2,e[t]):F(e,t)},ne=function(e,t,n){return t=y(t),!(ee(e,t)&&_(n)&&b(n,"value"))||b(n,"get")||b(n,"set")||n.configurable||b(n,"writable")&&!n.writable||b(n,"enumerable")&&!n.enumerable?U(e,t,n):(e[t]=n.value,e)};a?(W||(k.f=te,T.f=ne,X(Y,"buffer"),X(Y,"byteOffset"),X(Y,"byteLength"),X(Y,"length")),r({target:"Object",stat:!0,forced:!W},{getOwnPropertyDescriptor:te,defineProperty:ne}),e.exports=function(e,t,n){var a=e.match(/\d+/)[0]/8,u=e+(n?"Clamped":"")+"Array",s="get"+e,f="set"+e,p=o[u],y=p,b=y&&y.prototype,w={},O=function(e,t){U(e,t,{get:function(){return function(e,t){var n=R(e);return n.view[s](t*a+n.byteOffset,!0)}(this,t)},set:function(e){return function(e,t,r){var o=R(e);o.view[f](t*a+o.byteOffset,n?m(r):r,!0)}(this,t,e)},enumerable:!0})};W?c&&(y=t((function(e,t,n,r){return l(e,b),D(_(t)?Z(t)?void 0!==r?new p(t,h(n,a),r):void 0!==n?new p(t,h(n,a)):new p(t):$(t)?C(y,t):i(P,y,t):new p(g(t)),e,y)})),E&&E(y,Q),j(I(p),(function(e){e in y||d(y,e,p[e])})),y.prototype=b):(y=t((function(e,t,n,r){l(e,b);var o,c,u,s=0,f=0;if(_(t)){if(!Z(t))return $(t)?C(y,t):i(P,y,t);o=t,f=h(n,a);var d=t.byteLength;if(void 0===r){if(d%a)throw new G(K);if((c=d-f)<0)throw new G(K)}else if((c=v(r)*a)+f>d)throw new G(K);u=c/a}else u=g(t),o=new V(c=u*a);for(M(e,{buffer:o,byteOffset:f,byteLength:c,length:u,view:new z(o)});s1?arguments[1]:void 0,x=void 0!==S,E=s(_);if(E&&!l(E))for(b=(y=u(_,E)).next,_=[];!(m=o(b,y)).done;)_.push(m.value);for(x&&O>2&&(S=r(S,arguments[2])),n=c(_),v=new(d(w))(n),g=f(v),t=0;n>t;t++)h=x?S(_[t],t):_[t],v[t]=g?p(h):+h;return v}},320:function(e,t,n){var r=n(1447),o=0,i=Math.random(),a=r(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++o+i,36)}},402:function(e,t,n){var r=n(6040),o=n(1840),i=n(3528),a=n(2804),c=o("iterator");e.exports=!r((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,n=new URLSearchParams("a=1&a=2&b=3"),r="";return e.pathname="c%20d",t.forEach((function(e,n){t.delete("b"),r+=n+e})),n.delete("a",2),n.delete("b",void 0),a&&(!e.toJSON||!n.has("a",1)||n.has("a",2)||!n.has("a",void 0)||n.has("b"))||!t.size&&(a||!i)||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[c]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==r||"x"!==new URL("http://x",void 0).host}))},9448:function(e,t,n){var r=n(8972);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},4859:function(e,t,n){var r=n(3528),o=n(6040);e.exports=r&&o((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},3416:function(e){var t=TypeError;e.exports=function(e,n){if(e1?arguments[1]:void 0),t}})},9120:function(e,t,n){var r=n(9740),o=n(2328),i=n(4920),a=n(5444),c=n(368).f,u=n(8752),s=n(2596),l=n(2804),f=n(3528),d="Array Iterator",p=a.set,v=a.getterFor(d);e.exports=u(Array,"Array",(function(e,t){p(this,{type:d,target:r(e),index:0,kind:t})}),(function(){var e=v(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=void 0,s(void 0,!0);switch(e.kind){case"keys":return s(n,!1);case"values":return s(t[n],!1)}return s([n,t[n]],!1)}),"values");var g=i.Arguments=i.Array;if(o("keys"),o("values"),o("entries"),!l&&f&&"values"!==g.name)try{c(g,"name",{value:"values"})}catch(e){}},9168:function(e,t,n){var r=n(3748),o=n(1447),i=n(1896),a=n(6804),c=n(9480),u=n(1136),s=n(1992),l=n(6040),f=n(584),d=n(4528),p=n(2392),v=n(7464),g=n(3356),h=n(315),m=[],y=o(m.sort),b=o(m.push),w=l((function(){m.sort(void 0)})),_=l((function(){m.sort(null)})),O=d("sort"),S=!l((function(){if(g)return g<70;if(!(p&&p>3)){if(v)return!0;if(h)return h<603;var e,t,n,r,o="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(r=0;r<47;r++)m.push({k:t+r,v:n})}for(m.sort((function(e,t){return t.v-e.v})),r=0;rs(n)?1:-1}}(e)),n=c(o),r=0;r@^][^\s!#%&*+<=>@^]*>/,D=/a/g,R=/a/g,M=new I(D)!==D,B=g.MISSED_STICKY,U=g.UNSUPPORTED_Y,F=r&&(!M||B||S||x||y((function(){return R[E]=!1,I(D)!==D||I(R)===R||"/a/i"!==String(I(D,"i"))})));if(a("RegExp",F)){for(var G=function(e,t){var n,r,o,i,a,l,g=f(P,this),h=d(e),m=void 0===t,y=[],_=e;if(!g&&h&&m&&e.constructor===G)return e;if((h||f(P,e))&&(e=e.source,m&&(t=v(_))),e=void 0===e?"":p(e),t=void 0===t?"":p(t),_=e,S&&"dotAll"in D&&(r=!!t&&k(t,"s")>-1)&&(t=T(t,/s/g,"")),n=t,B&&"sticky"in D&&(o=!!t&&k(t,"y")>-1)&&U&&(t=T(t,/y/g,"")),x&&(i=function(e){for(var t,n=e.length,r=0,o="",i=[],a=s(null),c=!1,u=!1,l=0,f="";r<=n;r++){if("\\"===(t=L(e,r)))t+=L(e,++r);else if("]"===t)c=!1;else if(!c)switch(!0){case"["===t:c=!0;break;case"("===t:A(N,C(e,r+1))&&(r+=2,u=!0),o+=t,l++;continue;case">"===t&&u:if(""===f||b(a,f))throw new j("Invalid capture group name");a[f]=!0,i[i.length]=[f,l],u=!1,f="";continue}u?f+=t:o+=t}return[o,i]}(e),e=i[0],y=i[1]),a=c(I(e,t),g?this:P,G),(r||o||y.length)&&(l=w(a),r&&(l.dotAll=!0,l.raw=G(function(e){for(var t,n=e.length,r=0,o="",i=!1;r<=n;r++)"\\"!==(t=L(e,r))?i||"."!==t?("["===t?i=!0:"]"===t&&(i=!1),o+=t):o+="[\\s\\S]":o+=t+L(e,++r);return o}(e),n)),o&&(l.sticky=!0),y.length&&(l.groups=y)),e!==_)try{u(a,"source",""===_?"(?:)":_)}catch(e){}return a},V=l(I),q=0;V.length>q;)h(G,I,V[q++]);P.constructor=G,G.prototype=P,m(o,"RegExp",G,{constructor:!0})}_("RegExp")},2644:function(e,t,n){var r=n(3748),o=n(8096);r({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},8500:function(e,t,n){var r=n(3748),o=n(892),i=n(1447),a=n(2696),c=n(9063),u=n(952),s=n(392),l=n(1992),f=n(364),d=n(9840),p=n(4740),v=n(1840),g=n(2804),h=v("replace"),m=TypeError,y=i("".indexOf),b=i("".replace),w=i("".slice),_=Math.max;r({target:"String",proto:!0},{replaceAll:function(e,t){var n,r,i,v,O,S,x,E,I,P=a(this),j=0,A=0,L="";if(!u(e)){if((n=s(e))&&(r=l(a(d(e))),!~y(r,"g")))throw new m("`.replaceAll` does not allow non-global regexes");if(i=f(e,h))return o(i,e,P,t);if(g&&n)return b(l(P),e,t)}for(v=l(P),O=l(e),(S=c(t))||(t=l(t)),x=O.length,E=_(1,x),j=y(v,O);-1!==j;)I=S?l(t(O,j,v)):p(O,v,j,[],void 0,t),L+=w(v,A,j)+I,A=j+x,j=j+E>v.length?-1:y(v,O,j+E);return A=L&&(A+=E(c,L,N)+k,L=N+C.length)}return A+E(c,L)}]}),!!c((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$")}))||!I||P)},1872:function(e,t,n){var r=n(3748),o=n(1096).trim;r({target:"String",proto:!0,forced:n(272)("trim")},{trim:function(){return o(this)}})},5016:function(e,t,n){var r=n(3748),o=n(3528),i=n(5624),a=n(1447),c=n(6216),u=n(9063),s=n(6056),l=n(1992),f=n(1720),d=n(4304),p=i.Symbol,v=p&&p.prototype;if(o&&u(p)&&(!("description"in v)||void 0!==p().description)){var g={},h=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:l(arguments[0]),t=s(v,this)?new p(e):void 0===e?p():p(e);return""===e&&(g[t]=!0),t};d(h,p),h.prototype=v,v.constructor=h;var m="Symbol(description detection)"===String(p("description detection")),y=a(v.valueOf),b=a(v.toString),w=/^Symbol\((.*)\)[^)]+$/,_=a("".replace),O=a("".slice);f(v,"description",{configurable:!0,get:function(){var e=y(this);if(c(g,e))return"";var t=b(e),n=m?O(t,7,-1):_(t,w,"$1");return""===n?void 0:n}}),r({global:!0,constructor:!0,forced:!0},{Symbol:h})}},7996:function(e,t,n){var r=n(7736),o=n(5212),i=n(2724),a=n(8040),c=n(892),u=n(1447),s=n(6040),l=r.aTypedArray,f=r.exportTypedArrayMethod,d=u("".slice);f("fill",(function(e){var t=arguments.length;l(this);var n="Big"===d(a(this),0,3)?i(e):+e;return c(o,this,n,t>1?arguments[1]:void 0,t>2?arguments[2]:void 0)}),s((function(){var e=0;return new Int8Array(2).fill({valueOf:function(){return e++}}),1!==e})))},7696:function(e,t,n){var r=n(5624),o=n(892),i=n(7736),a=n(9480),c=n(9163),u=n(6804),s=n(6040),l=r.RangeError,f=r.Int8Array,d=f&&f.prototype,p=d&&d.set,v=i.aTypedArray,g=i.exportTypedArrayMethod,h=!s((function(){var e=new Uint8ClampedArray(2);return o(p,e,{length:1,0:3},1),3!==e[1]})),m=h&&i.NATIVE_ARRAY_BUFFER_VIEWS&&s((function(){var e=new f(2);return e.set(1),e.set("2",1),0!==e[0]||2!==e[1]}));g("set",(function(e){v(this);var t=c(arguments.length>1?arguments[1]:void 0,1),n=u(e);if(h)return o(p,this,n,t);var r=this.length,i=a(n),s=0;if(i+t>r)throw new l("Wrong length");for(;s0&&1/n<0?1:-1:t>n}}(e))}),!y||m)},5284:function(e,t,n){n(6736)("Uint8",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},1072:function(e,t,n){n(8500)},9708:function(e,t,n){var r=n(5624),o=n(5848),i=n(8280),a=n(9120),c=n(3652),u=n(4200),s=n(1840)("iterator"),l=a.values,f=function(e,t){if(e){if(e[s]!==l)try{c(e,s,l)}catch(t){e[s]=l}if(u(e,t,!0),o[t])for(var n in a)if(e[n]!==a[n])try{c(e,n,a[n])}catch(t){e[n]=a[n]}}};for(var d in o)f(r[d]&&r[d].prototype,d);f(i,"DOMTokenList")},5704:function(e,t,n){n(9120);var r=n(3748),o=n(5624),i=n(3440),a=n(892),c=n(1447),u=n(3528),s=n(402),l=n(3244),f=n(1720),d=n(5248),p=n(4200),v=n(7936),g=n(5444),h=n(5796),m=n(9063),y=n(6216),b=n(2880),w=n(8040),_=n(8424),O=n(808),S=n(1992),x=n(8340),E=n(9200),I=n(2704),P=n(7508),j=n(2596),A=n(3416),L=n(1840),T=n(584),k=L("iterator"),C="URLSearchParams",N=C+"Iterator",D=g.set,R=g.getterFor(C),M=g.getterFor(N),B=i("fetch"),U=i("Request"),F=i("Headers"),G=U&&U.prototype,V=F&&F.prototype,q=o.RegExp,z=o.TypeError,W=o.decodeURIComponent,H=o.encodeURIComponent,Q=c("".charAt),Y=c([].join),$=c([].push),J=c("".replace),K=c([].shift),X=c([].splice),Z=c("".split),ee=c("".slice),te=/\+/g,ne=Array(4),re=function(e){return ne[e-1]||(ne[e-1]=q("((?:%[\\da-f]{2}){"+e+"})","gi"))},oe=function(e){try{return W(e)}catch(t){return e}},ie=function(e){var t=J(e,te," "),n=4;try{return W(t)}catch(e){for(;n;)t=J(t,re(n--),oe);return t}},ae=/[!'()~]|%20/g,ce={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},ue=function(e){return ce[e]},se=function(e){return J(H(e),ae,ue)},le=v((function(e,t){D(this,{type:N,target:R(e).entries,index:0,kind:t})}),C,(function(){var e=M(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=void 0,j(void 0,!0);var r=t[n];switch(e.kind){case"keys":return j(r.key,!1);case"values":return j(r.value,!1)}return j([r.key,r.value],!1)}),!0),fe=function(e){this.entries=[],this.url=null,void 0!==e&&(O(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===Q(e,0)?ee(e,1):e:S(e)))};fe.prototype={type:C,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,n,r,o,i,c,u,s=this.entries,l=P(e);if(l)for(n=(t=I(e,l)).next;!(r=a(n,t)).done;){if(i=(o=I(_(r.value))).next,(c=a(i,o)).done||(u=a(i,o)).done||!a(i,o).done)throw new z("Expected sequence with length 2");$(s,{key:S(c.value),value:S(u.value)})}else for(var f in e)y(e,f)&&$(s,{key:f,value:S(e[f])})},parseQuery:function(e){if(e)for(var t,n,r=this.entries,o=Z(e,"&"),i=0;i0?arguments[0]:void 0));u||(this.size=e.entries.length)},pe=de.prototype;if(d(pe,{append:function(e,t){var n=R(this);A(arguments.length,2),$(n.entries,{key:S(e),value:S(t)}),u||this.length++,n.updateURL()},delete:function(e){for(var t=R(this),n=A(arguments.length,1),r=t.entries,o=S(e),i=n<2?void 0:arguments[1],a=void 0===i?i:S(i),c=0;ct.key?1:-1})),e.updateURL()},forEach:function(e){for(var t,n=R(this).entries,r=b(e,arguments.length>1?arguments[1]:void 0),o=0;o1?he(arguments[1]):{})}}),m(U)){var me=function(e){return h(this,G),new U(e,arguments.length>1?he(arguments[1]):{})};G.constructor=me,me.prototype=G,r({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:me})}}e.exports={URLSearchParams:de,getState:R}},4088:function(e,t,n){n(5704)},1060:function(e,t,n){var r=n(3748),o=n(892);r({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return o(URL.prototype.toString,this)}})}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r].call(i.exports,i,i.exports,n),i.exports}n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),function(){n(5016),n(9708);var e,t={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)},r=new Uint8Array(16);function o(){if(!e&&!(e="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return e(r)}for(var i=[],a=0;a<256;++a)i.push((a+256).toString(16).slice(1));function c(e,t=0){return(i[e[t+0]]+i[e[t+1]]+i[e[t+2]]+i[e[t+3]]+"-"+i[e[t+4]]+i[e[t+5]]+"-"+i[e[t+6]]+i[e[t+7]]+"-"+i[e[t+8]]+i[e[t+9]]+"-"+i[e[t+10]]+i[e[t+11]]+i[e[t+12]]+i[e[t+13]]+i[e[t+14]]+i[e[t+15]]).toLowerCase()}var u=function(e,n,r){if(t.randomUUID&&!n&&!e)return t.randomUUID();var i=(e=e||{}).random||(e.rng||o)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,n){r=r||0;for(var a=0;a<16;++a)n[r+a]=i[a];return n}return c(i)};n(2644),n(4088),n(9168),n(9196),n(4004),n(5284),n(7996),n(7696),n(8372),n(1060);const s=function(e){const t=function(e){if(e&&Object.prototype.hasOwnProperty.call(e,"circularValue")){var t=e.circularValue;if("string"==typeof t)return'"'.concat(t,'"');if(null==t)return t;if(t===Error||t===TypeError)return{toString(){throw new TypeError("Converting circular structure to JSON")}};throw new TypeError('The "circularValue" argument must be of type string or the value null or undefined')}return'"[Circular]"'}(e),n=b(e,"bigint"),r=b(e,"deterministic"),o=w(e,"maximumDepth"),i=w(e,"maximumBreadth");function a(e,c,u,s,l,f){let d=c[e];switch("object"==typeof d&&null!==d&&"function"==typeof d.toJSON&&(d=d.toJSON(e)),d=s.call(c,e,d),typeof d){case"string":return'"'.concat(v(d),'"');case"object":{if(null===d)return"null";if(-1!==u.indexOf(d))return t;let e="",n=",";const c=f;if(Array.isArray(d)){if(0===d.length)return"[]";if(oi){const t=d.length-i-1;e+="".concat(n,'"... ').concat(_(t),' not stringified"')}return""!==l&&(e+="\n".concat(c)),u.pop(),"[".concat(e,"]")}let p=Object.keys(d);const h=p.length;if(0===h)return"{}";if(oi){const t=h-i;e+="".concat(w,'"...":').concat(b,'"').concat(_(t),' not stringified"'),w=n}return""!==l&&w.length>1&&(e="\n".concat(f).concat(e,"\n").concat(c)),u.pop(),"{".concat(e,"}")}case"number":return isFinite(d)?String(d):"null";case"boolean":return!0===d?"true":"false";case"bigint":return n?String(d):void 0}}function c(e,r,a,u,s,l){switch("object"==typeof r&&null!==r&&"function"==typeof r.toJSON&&(r=r.toJSON(e)),typeof r){case"string":return'"'.concat(v(r),'"');case"object":{if(null===r)return"null";if(-1!==a.indexOf(r))return t;const e=l;let n="",f=",";if(Array.isArray(r)){if(0===r.length)return"[]";if(oi){const e=r.length-i-1;n+="".concat(f,'"... ').concat(_(e),' not stringified"')}return""!==s&&(n+="\n".concat(e)),a.pop(),"[".concat(n,"]")}if(0===u.size)return"{}";a.push(r);let d="";""!==s&&(f=",\n".concat(l+=s),d=" ");let p="";for(const e of u){const t=c(e,r[e],a,u,s,l);void 0!==t&&(n+="".concat(p,'"').concat(v(e),'":').concat(d).concat(t),p=f)}return""!==s&&p.length>1&&(n="\n".concat(l).concat(n,"\n").concat(e)),a.pop(),"{".concat(n,"}")}case"number":return isFinite(r)?String(r):"null";case"boolean":return!0===r?"true":"false";case"bigint":return n?String(r):void 0}}function u(e,a,c,s,l){switch(typeof a){case"string":return'"'.concat(v(a),'"');case"object":{if(null===a)return"null";if("function"==typeof a.toJSON){if("object"!=typeof(a=a.toJSON(e)))return u(e,a,c,s,l);if(null===a)return"null"}if(-1!==c.indexOf(a))return t;const n=l;if(Array.isArray(a)){if(0===a.length)return"[]";if(oi){const n=a.length-i-1;e+="".concat(t,'"... ').concat(_(n),' not stringified"')}return e+="\n".concat(n),c.pop(),"[".concat(e,"]")}let f=Object.keys(a);const d=f.length;if(0===d)return"{}";if(oi){const e=d-i;h+="".concat(b,'"...": "').concat(_(e),' not stringified"'),b=p}return""!==b&&(h="\n".concat(l).concat(h,"\n").concat(n)),c.pop(),"{".concat(h,"}")}case"number":return isFinite(a)?String(a):"null";case"boolean":return!0===a?"true":"false";case"bigint":return n?String(a):void 0}}function s(e,a,c){switch(typeof a){case"string":return'"'.concat(v(a),'"');case"object":{if(null===a)return"null";if("function"==typeof a.toJSON){if("object"!=typeof(a=a.toJSON(e)))return s(e,a,c);if(null===a)return"null"}if(-1!==c.indexOf(a))return t;let n="";if(Array.isArray(a)){if(0===a.length)return"[]";if(oi){const e=a.length-i-1;n+=',"... '.concat(_(e),' not stringified"')}return c.pop(),"[".concat(n,"]")}let u=Object.keys(a);const l=u.length;if(0===l)return"{}";if(oi){const e=l-i;n+="".concat(f,'"...":"').concat(_(e),' not stringified"')}return c.pop(),"{".concat(n,"}")}case"number":return isFinite(a)?String(a):"null";case"boolean":return!0===a?"true":"false";case"bigint":return n?String(a):void 0}}return function(e,t,n){if(arguments.length>1){let r="";if("number"==typeof n?r=" ".repeat(Math.min(n,10)):"string"==typeof n&&(r=n.slice(0,10)),null!=t){if("function"==typeof t)return a("",{"":e},[],t,r,"");if(Array.isArray(t))return c("",e,[],function(e){const t=new Set;for(const n of e)"string"==typeof n?t.add(n):"number"==typeof n&&t.add(String(n));return t}(t),r,"")}if(0!==r.length)return u("",e,[],r,"")}return s("",e,[])}}(),l=/[\u0000-\u001f\u0022\u005c\ud800-\udfff]|[\ud800-\udbff](?![\udc00-\udfff])|(?:[^\ud800-\udbff]|^)[\udc00-\udfff]/,f=/[\u0000-\u001f\u0022\u005c\ud800-\udfff]|[\ud800-\udbff](?![\udc00-\udfff])|(?:[^\ud800-\udbff]|^)[\udc00-\udfff]/g,d=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000b","\\f","\\r","\\u000e","\\u000f","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001a","\\u001b","\\u001c","\\u001d","\\u001e","\\u001f","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\"];function p(e){if(2===e.length){const t=e.charCodeAt(1);return"".concat(e[0],"\\u").concat(t.toString(16))}const t=e.charCodeAt(0);return d.length>t?d[t]:"\\u".concat(t.toString(16))}function v(e){if(e.length<5e3&&!l.test(e))return e;if(e.length>100)return e.replace(f,p);let t="",n=0;for(let r=0;r=55296&&o<=57343){if(o<=56319&&r+1=56320&&t<=57343){r++;continue}}t+="".concat(e.slice(n,r),"\\u".concat(o.toString(16))),n=r+1}}return t+=e.slice(n),t}function g(e){if(e.length>200)return e.sort();for(let t=1;tn;)e[r]=e[r-1],r--;e[r]=n}return e}const h=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Object.getPrototypeOf(new Uint8Array)),Symbol.toStringTag).get;function m(e){return void 0!==h.call(e)&&0!==e.length}function y(e,t,n){e.length= 1'))}return void 0===n?1/0:n}function _(e){return 1===e?"1 item":"".concat(e," items")}var O=s;var S=function(e,t){const n="XMLHttpRequest"in window?new XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP");n.open("POST",e),n.withCredentials=!0,n.setRequestHeader("Accept","*/*"),"string"==typeof t?(n.setRequestHeader("Content-Type","text/plain;charset=UTF-8"),n.responseType="text"):(e=>e instanceof Blob)(t)&&t.type&&n.setRequestHeader("Content-Type",t.type);try{n.send(t)}catch(e){return!1}return!0};var x=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},E="object"==typeof global&&global&&global.Object===Object&&global,I="object"==typeof self&&self&&self.Object===Object&&self,P=E||I||Function("return this")(),j=function(){return P.Date.now()},A=/\s/;var L=function(e){for(var t=e.length;t--&&A.test(e.charAt(t)););return t},T=/^\s+/;var k=function(e){return e?e.slice(0,L(e)+1).replace(T,""):e},C=P.Symbol,N=Object.prototype,D=N.hasOwnProperty,R=N.toString,M=C?C.toStringTag:void 0;var B=function(e){var t=D.call(e,M),n=e[M];try{e[M]=void 0;var r=!0}catch(e){}var o=R.call(e);return r&&(t?e[M]=n:delete e[M]),o},U=Object.prototype.toString;var F=function(e){return U.call(e)},G=C?C.toStringTag:void 0;var V=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":G&&G in Object(e)?B(e):F(e)};var q=function(e){return null!=e&&"object"==typeof e};var z=function(e){return"symbol"==typeof e||q(e)&&"[object Symbol]"==V(e)},W=/^[-+]0x[0-9a-f]+$/i,H=/^0b[01]+$/i,Q=/^0o[0-7]+$/i,Y=parseInt;var $=function(e){if("number"==typeof e)return e;if(z(e))return NaN;if(x(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=x(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=k(e);var n=H.test(e);return n||Q.test(e)?Y(e.slice(2),n?2:8):W.test(e)?NaN:+e},J=Math.max,K=Math.min;var X=function(e,t,n){var r,o,i,a,c,u,s=0,l=!1,f=!1,d=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var n=r,i=o;return r=o=void 0,s=t,a=e.apply(i,n)}function v(e){var n=e-u;return void 0===u||n>=t||n<0||f&&e-s>=i}function g(){var e=j();if(v(e))return h(e);c=setTimeout(g,function(e){var n=t-(e-u);return f?K(n,i-(e-s)):n}(e))}function h(e){return c=void 0,d&&r?p(e):(r=o=void 0,a)}function m(){var e=j(),n=v(e);if(r=arguments,o=this,u=e,n){if(void 0===c)return function(e){return s=e,c=setTimeout(g,t),l?p(e):a}(u);if(f)return clearTimeout(c),c=setTimeout(g,t),p(u)}return void 0===c&&(c=setTimeout(g,t)),a}return t=$(t)||0,x(n)&&(l=!!n.leading,i=(f="maxWait"in n)?J($(n.maxWait)||0,t):i,d="trailing"in n?!!n.trailing:d),m.cancel=function(){void 0!==c&&clearTimeout(c),s=0,r=u=o=c=void 0},m.flush=function(){return void 0===c?a:h(j())},m};const Z=(e,t,n)=>{if(n>100)return void(t.stop=!0);const r=typeof e;if("boolean"===r)t.size+=e.toString().length;else if("number"===r)t.size+=e.toString().length;else if("string"===r)t.size+=(e=>{let t=0,n=0;for(let r=0;n=e.charCodeAt(r++);t+=n>>11?3:n>>7?2:1);return t})(e)+2;else{if("undefined"===r)return;if("bigint"===r)return void(t.stop=!0);if("object"===r)if(null===e)t.size+=4;else if(Array.isArray(e)){t.size+=2,e.length>=2&&(t.size+=e.length-1);for(let r=0;r=t.maxSize)return void(t.stop=!0)}else{const r=Object.entries(e).filter((e=>void 0!==e[1]));t.size+=2,r.length>=2&&(t.size+=r.length-1);for(let e=0;e=t.maxSize)return void(t.stop=!0)}}}t.size>=t.maxSize&&(t.stop=!0)},ee=(e,t)=>{const n={size:0,stop:!1,maxSize:null!=t?t:65536};return Z(e,n,1),!n.stop&&n.size};function te(e,t,n){return t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class ne{static log(){!ne.suppressed&&ne.enabled&&console&&console.log&&console.log(...arguments)}static warn(){!ne.suppressed&&ne.enabled&&console&&console.warn&&console.warn(...arguments)}static error(){!ne.suppressed&&ne.enabled&&console&&console.error&&console.error(...arguments)}static pauseLog(){ne.suppressed=!0}static resumeLog(){ne.suppressed=!1}static runWithoutLog(e){this.pauseLog();try{return e()}finally{this.resumeLog()}}}te(ne,"enabled",!1),te(ne,"suppressed",!1);var re=ne;const oe=(e,t,n)=>{const r=(e=>{if(null!=e){if(e instanceof Error)return e;try{return new Error("string"==typeof e?e:JSON.stringify(e))}catch(t){return new Error(String(e))}}})(n);try{var o;const n="undefined"!=typeof window?null===(o=window.gNTMLib)||void 0===o?void 0:o.onError:void 0;"function"==typeof n&&n(t,r,e)}catch(e){}if(!re.suppressed&&re.enabled&&console){const n="warn"===e?console.warn:console.error;if("function"==typeof n)try{r?n.call(console,"".concat(t,"\n↳ cause:"),r):n.call(console,t)}catch(e){}}},ie=(e,t)=>oe("error",e,t),ae=(e,t)=>oe("warn",e,t),ce=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"error";try{return t()}catch(t){return void oe(n,e,t)}},ue=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"error";return function(){try{return t(...arguments)}catch(t){return void oe(n,e,t)}}};n(1872);const se=["Android","iOS","Windows","macOS"],le=e=>{var t,n;if(e.brands.some((e=>{let{brand:t=""}=e;return"nApps"===t})))return!0;const r=e.mobile,o=typeof r;return!("boolean"!==o||!r)||("string"===o&&"true"===r||("number"===o&&r>0||!!/Android|iOS|iPhone|iPad|iPod|Watch/i.test(null!==(t=null===(n=navigator.userAgentData)||void 0===n?void 0:n.platform)&&void 0!==t?t:"")))},fe=()=>{var e,t,n,r;const o=null!==(e=null!==(t=document.documentElement.clientWidth)&&void 0!==t?t:document.body.clientWidth)&&void 0!==e?e:"",i=null!==(n=null!==(r=document.documentElement.clientHeight)&&void 0!==r?r:document.body.clientHeight)&&void 0!==n?n:"";return"".concat(o,"x").concat(i)},de=()=>{var e,t,n,r,o,i;const a=null!==(e=null!==(t=navigator.userLanguage)&&void 0!==t?t:navigator.language)&&void 0!==e?e:"",c=null===(n=window)||void 0===n?void 0:n.devicePixelRatio,u=null===(r=window)||void 0===r||null===(r=r.Intl)||void 0===r||null===(r=r.DateTimeFormat())||void 0===r||null===(r=r.resolvedOptions())||void 0===r?void 0:r.timeZone,{name:s,version:l}=null!==(o=(()=>{const e=navigator.userAgent,t=e.toLowerCase();let n,r;if(t.includes("iphone")||t.includes("ipad")||t.includes("ipod")||/\bios\b/i.test(e)){n="iOS";const t=e.match(/OS ([\d_]+)/i);t&&(r=t[1].replace(/_/g,"."))}else if(t.includes("watchos")){n="iOS";const t=e.match(/watchOS[\/\s]([\d.]+)/i);t&&(r=t[1])}else if(t.includes("android")){n="Android";const t=e.match(/Android[\s\/]([\d.]+)/i);t&&(r=t[1])}else if(t.includes("windows")){n="Windows";const t=e.match(/Windows NT ([\d.]+)/i);t&&(r={"10.0":"10",6.3:"7,8,8.1",6.2:"7,8,8.1",6.1:"7,8,8.1"}[t[1]])}else if(t.includes("macintosh")||t.includes("mac os x")||t.includes("mac os")||t.includes("macos")||t.includes("darwin")||t.includes("dms")){n="macOS";let t=e.match(/Mac OS X ([\d_]+)/i);t?r=t[1].replace(/_/g,"."):(t=e.match(/macOS[\s\/]([\d.]+)/i),t&&(r=t[1]))}return{name:n,version:r}})())&&void 0!==o?o:{},{name:f,version:d}=null!==(i=(()=>{const e=navigator.userAgent;let t,n;if(/SamsungBrowser/i.test(e)){t="SamsungBrowser";const r=e.match(/SamsungBrowser\/([\d.]+)/);n=r?r[1]:""}else if(/Whale/i.test(e)){t="Whale";const r=e.match(/Whale\/([\d.]+)/);n=r?r[1]:""}else if(/EdgiOS/i.test(e)){t="Edge";const r=e.match(/EdgiOS\/([\d.]+)/);n=r?r[1]:""}else if(/Edg/i.test(e)){t="Edge";const r=e.match(/Edg\/([\d.]+)/);n=r?r[1]:""}else if(/FxiOS/i.test(e)){t="Firefox";const r=e.match(/FxiOS\/([\d.]+)/);n=r?r[1]:""}else if(/Firefox/i.test(e)&&!/Seamonkey/i.test(e)){t="Firefox";const r=e.match(/Firefox\/([\d.]+)/);n=r?r[1]:""}else if(/CriOS/i.test(e)){t="Chrome";const r=e.match(/CriOS\/([\d.]+)/);n=r?r[1]:""}else if(/Safari/i.test(e)&&!/Chrome/i.test(e)){t="Safari";const r=e.match(/Version\/([\d.]+)/);n=r?r[1]:""}else if(/Chrome/i.test(e)&&!/Edg|OPR|Samsung/i.test(e)){t="Chrome";const r=e.match(/Chrome\/([\d.]+)/);n=r?r[1]:""}return t?{name:t,version:n}:null})())&&void 0!==i?i:{},p={is_mobile:(()=>{const e=navigator.userAgent;return!!/^nApps\s?\(/i.test(e)||!!/NAVER\s?\(inapp;/i.test(e)||!!/Android|iOS|iPhone|iPad|iPod|Watch/i.test(e)})(),app_name:f,app_ver:d,os_type:s,os_ver:l,br_sr:fe(),br_ln:a,device_model:ye()};return void 0!==c&&(p.device_pr=null==c?void 0:c.toString()),void 0!==u&&(p.timezone=u),p},pe={search:"naverapp",map:"navermap",pay:"naverpay",navershopping:"navershopping",navershoppingbrowser:"navershopping",blog:"naverblog",naverdicapp:"naverdic",ncp:"navershoppingseller",cafe:"navercafe",kin:"naverkin",music:"vibe",noticeApp:"navercalendar"},ve=/\((iPhone|iPad(?:_Mac)?|Macintosh)[;)\s]/,ge=/NAVER\s?\(inapp;[^;]+;[^;]+;\s*[\d.]+;\s*([^)]+)\)/,he=/Android [^;]+;\s*(?:SAMSUNG\s+)?([^;/]+?)\s*(?:Build|\/)/,me=/Android [^;]+;\s*([^;/)]+?)\s*\)/,ye=()=>{const e=navigator.userAgent,t=e.match(ve);if(t){const n="iPad_Mac"===t[1]?"iPad":t[1],r=e.match(ge);return"iPhone"===n&&r?"".concat(n," ").concat(r[1]).trim():n.trim()}if(e.includes("Build/")){const t=e.match(he);if(t)return t[1].trim()}if(e.includes("Android")){const t=e.match(me);if(t)return t[1].trim()}return""},be="NTrackerJsBridge",we=["os_type","os_ver","app_name","app_ver","module_name","module_ver","device_sr","device_locale","device_type","device_model","device_pr","network_type"],_e=["ni"],Oe=(e,t)=>{const n={};for(const r of t)r in e&&(n[r]=e[r]);return n},Se=()=>{var e;const t=window,n=!(null===(e=t.webkit)||void 0===e||null===(e=e.messageHandlers)||void 0===e||!e[be]),r=!(!t[be]||"function"!=typeof t[be].send);return n?"ios":r?"android":"browser"},xe=()=>"ios"===Se(),Ee=e=>!e||"object"!=typeof e||Array.isArray(e)?{}:e,Ie=(e,t,n,r)=>{let o,i,a,c;const u=e=>"string"==typeof e?e.trim()||void 0:e,s=e=>{const t=null==r?void 0:r[e];return"string"==typeof t&&t.trim()||void 0},l=e=>{const t=e.find((e=>e.type&&e.ver));if(t)return{type:t.type,ver:t.ver};const n=e.find((e=>e.type));return{type:null==n?void 0:n.type,ver:void 0}};let f=t.os_ver;"Windows"===u(t.os_type)&&f&&(f=(e=>{let t;if("number"==typeof e)t=e;else{if("string"!=typeof e)return null;if(!e.trim())return null;if(t=parseInt(e.trim(),10),!Number.isFinite(t))return null}return 0===t?"7,8,8.1":t<13?"10":t>=13?"11":null})(f)||"-");const d=l([{type:s("os_type"),ver:s("os_ver")},{type:e.os_type,ver:e.os_ver},{type:t.os_type,ver:f},{type:n.os_type,ver:n.os_ver}]);o=u(d.type),i=u(d.ver);const p=l([{type:s("app_name"),ver:s("app_ver")},{type:e.app_name,ver:e.app_ver},{type:t.app_name,ver:t.app_ver},{type:n.app_name,ver:n.app_ver}]);return a=u(p.type),c=u(p.ver),o&&se.includes(o)?i||(i="-"):(o="etc",i="-"),a?c||(c="-"):(a="etc",c="-"),{os_type:o,os_ver:i,app_name:a,app_ver:c,device_model:s("device_model")||t.device_model||n.device_model||"",device_pr:u(s("device_pr")||n.device_pr),timezone:u(s("timezone")||n.timezone)}},Pe=["send_ts"],je=["cks"];function Ae(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Le(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function ke(e,t,n){return t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ce=64e3;class Ne{constructor(){ke(this,"sendDataQueue",[]),ke(this,"queueSize",20),ke(this,"autoSendInterval",2e3),ke(this,"dataPushed",!1),ke(this,"sendBeaconQueue",[]),ke(this,"loggingDoneDebouncer",X((()=>(()=>{try{if(!xe())return;const e=JSON.stringify({method:"loggingDone"});window.webkit.messageHandlers[be].postMessage(e)}catch(e){re.error("[NLOG 2.0] loggingDone bridge call failed",e)}})()),500,{leading:!1,trailing:!0,maxWait:500})),ke(this,"hasSetTimeout",null),ke(this,"beforeImpressionFlushCallbacks",[]),ke(this,"impressionFlushCallbacks",[]),ke(this,"impressionFlushCallbackEvents",["pagehide","beforeunload"]),Ne.registerLeaveEvent((e=>{this.impressionFlushCallbackEvents.includes(e)&&(this.runCallbacks(this.beforeImpressionFlushCallbacks,"[NLOG 2.0] beforeImpressionFlushCallback failed"),this.runCallbacks(this.impressionFlushCallbacks,"[NLOG 2.0] impressionFlushCallback failed")),this.sendData(),this.loggingDoneDebouncer.flush()}))}pushData(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4?arguments[4]:void 0;this.dataPushed||(setInterval(ue("[NLOG 2.0] periodic sendData failed",(()=>{this.sendData()})),this.autoSendInterval),this.dataPushed=!0);const{send_ts:i}=t,a=Te(t,Pe),c=O(a);!1!==ee(n)?(this.sendDataQueue.push({url:e,common:t,event:n,bulkKey:c,nlogCallback:o}),(r||this.sendDataQueue.length>=this.queueSize)&&this.sendData()):re.error("NLOG send fail: payload size exceeds max size: 64k")}flushQueue(){this.sendData()}sendData(){if(!this.sendDataQueue.length)return;const e=this.sendDataQueue;this.sendDataQueue=[];const t={};e.forEach((e=>{const{url:n,bulkKey:r}=e,o="".concat(n,"-").concat(r);o in t||(t[o]=[]),t[o].push(e)}));const n=Object.entries(t);for(const[e,t]of n)try{const e=this.makeNLogBody(t),n=this.splitDataBySize(e),o=n.map((e=>e.evts.length)),i=[];let a=0;for(const e of o)i.push(t.slice(a,a+e)),a+=e;for(let e=0;ee.nlogCallback));this.sendBeaconWithPendingQueue(a,o,c)}}catch(e){ie("[NLOG 2.0] sendData bulk group flush failed, dropping group",e)}}sendBeaconWithPendingQueue(e,t,n){const r=new Blob([JSON.stringify(t)],{type:"text/plain"});this.sendBeaconQueue.push({url:e,blob:r,nlogCallbacks:n});const o=e=>{if(e>10)return ie("[NLOG 2.0] sendBeacon failed after ".concat(10," attempts, dropping queued log")),this.sendBeaconQueue.shift(),void o(1);const t=xe();for(;this.sendBeaconQueue.length;){const{url:n,blob:r,nlogCallbacks:i}=this.sendBeaconQueue[0];let a;try{a=this.sendBeacon(n,r)}catch(e){ie("[NLOG 2.0] sendBeacon threw, dropping queued log",e),this.sendBeaconQueue.shift();continue}if(!a)return ae("[NLOG 2.0] sendBeacon failed, retrying (attempt ".concat(e,"/").concat(10,")")),void(this.hasSetTimeout=setTimeout(ue("[NLOG 2.0] beacon retry failed",(()=>{this.hasSetTimeout=null,o(e+1)})),100));this.sendBeaconQueue.shift(),i.forEach((e=>{const{tagName:t,callbackFn:n}=null!=e?e:{};try{null==n||n(t)}catch(e){re.error("nlogCallbackFn Error",e)}})),t&&this.loggingDoneDebouncer()}};this.hasSetTimeout||o(1)}sendBeacon(e,t){var n;if(null===(n=navigator)||void 0===n||!n.sendBeacon)return S(e,t);try{return navigator.sendBeacon(e,t)}catch(e){if(e instanceof Error&&e.message&&(e.message.toLowerCase().includes("not implemented")||e.message.toLowerCase().includes("illegal invocation")))return!0;throw e}}makeNLogBody(e){const t=e[0].common,{cks:n}=t;return Le(Le({},Te(t,je)),{},{send_ts:+new Date,evts:e.map((e=>e.event))})}static registerLeaveEvent(e){const t=ue("[NLOG 2.0] leave event handler failed",e);"onpagehide"in window&&window.addEventListener("pagehide",(e=>{t("pagehide",e)}),{capture:!0}),window.addEventListener("beforeunload",(e=>{t("beforeunload",e)}),{capture:!0}),window.addEventListener("blur",(e=>{t("blur",e)}),{capture:!0}),document.addEventListener("freeze",(e=>{t("freeze",e)}),{capture:!0}),document.addEventListener("visibilitychange",(function(e){"hidden"==document.visibilityState&&t("visibilitychange",e)}),{capture:!0})}splitDataBySize(e){if(this.getByteSize(JSON.stringify(e))<=Ce)return[e];const t=[],n=e.evts;if(!n||0==n.length)return[];let r=e;for(;;){const{nextBody:e,remains:n}=this.getNextBody(r);if(t.push(e),!n)break;r=n}return t}getNextBody(e){var t;const n=Le(Le({},e),{},{evts:[]}),r=Le(Le({},e),{},{evts:[]});for(let t=0;tCe){n.evts.pop();const o=e.evts.slice(t);r.evts=[...o];break}}if(0==n.evts.length)throw new Error("[NLog] data exceed max size : cur size - ".concat(this.getByteSize(JSON.stringify(e)),", max - ").concat(Ce));const o={nextBody:n};return null!=r&&null!==(t=r.evts)&&void 0!==t&&t.length&&(o.remains=r),o}getByteSize(e){return encodeURI(e).split(/%..|./).length-1}static appendCksToUrl(e,t){if(t){const n=new URLSearchParams({cks:t.join(";")});return"".concat(e,"?").concat(n.toString())}return e}registerBeforeImpressionFlushCallback(e){this.beforeImpressionFlushCallbacks.push(e)}registerImpressionFlushCallback(e){this.impressionFlushCallbacks.push(e)}runCallbacks(e,t){e.forEach((e=>{try{e()}catch(e){ie(t,e)}}))}}n(1072);var De=1/0;var Re=function(e){return e?(e=$(e))===De||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0};var Me=function(e){var t=Re(e),n=t%1;return t==t?n?t-n:t:0};var Be=function(e,t){var n;if("function"!=typeof t)throw new TypeError("Expected a function");return e=Me(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}};var Ue=function(e){return Be(2,e)};const Fe=(e,t)=>!!(e=>{if(!e||e===window)return!1;try{if(e.parent===window)return!0}catch(e){re.log("NLOG: frame parent check failed",e)}try{const{frames:t}=window;for(let n=0;nObject.prototype.hasOwnProperty.call(Object(e),t),ze=e=>{if(!e||"object"!=typeof e||e.nodeType||e==e.window||["[object Arguments]"].includes(Object.prototype.toString.call(e)))return!1;try{if(e.constructor&&!qe(e,"constructor")&&!qe(e.constructor.prototype,"isPrototypeOf"))return!1}catch(e){return!1}let t;for(t in e);return void 0===t||qe(e,t)},We=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;if(n>5)return e;const r=function(e){for(var t=1;tObject.keys(e).reduce(((t,n)=>(void 0!==e[n]&&(t[n]=e[n]),t)),{});n(2632);let Qe=function(e){return e.Dev="dev",e.Stage="stage",e.Real="real",e}({});Qe.Dev,Qe.Stage,Qe.Real;let Ye=function(e){return e.Create="create",e.Update="update",e.Delete="delete",e.Publish="publish",e.Export="export",e.Import="import",e.Overwrite="overwrite",e.FullMerge="fullMerge",e.DownloadScript="downloadScript",e.SchemaVersionChange="schemaVersionChange",e}({});Ye.Create,Ye.Update,Ye.Delete,Ye.Publish,Ye.Export,Ye.Import,Ye.Overwrite,Ye.FullMerge,Ye.DownloadScript,Ye.SchemaVersionChange;let $e=function(e){return e.Container="container",e.Tag="tag",e.Trigger="trigger",e.Variable="variable",e.Label="label",e.Version="version",e.Role="role",e}({});$e.Container,$e.Tag,$e.Trigger,$e.Variable,$e.Label,$e.Version,$e.Role;const Je=new RegExp("{{(".concat("[\\w_\\s.-]","+)}}"),"g");const Ke="page_scope",Xe="common",Ze="data-nlog-area",et=/^data-nlog-area(-[a-z0-9]+)*$/,tt="pre.browserEvent";const nt="nlog-v2",rt=["page_ad_req_id"];function ot(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function it(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}const ut="data-nlog-",st=e=>{re.enabled="dev"===e||"stage"===e},lt=new Set,ft=(e,t)=>{re.enabled&&!lt.has(e)&&(lt.add(e),t())},dt=(e,t)=>{const n=e.get("disable_schema_code_filter",t);return!0!==n&&"true"!==n},pt=new Set,vt=(e,t)=>{const n=e.get("area_attribute_names",t),r=Array.isArray(n)?n:[n],o=[];for(const e of r){if(null==e||""===e)continue;if("string"==typeof e&&et.test(e)){o.includes(e)||o.push(e);continue}const t=String(e);pt.has(t)||(pt.add(t),ae("[NLOG 2.0] 영역 속성명(area_attribute_names) 형식이 올바르지 않아 해당 항목을 무시합니다. (설정값: ".concat(t,")")))}return o.length?o:[Ze]},gt=e=>"string"==typeof e?e.trim():"",ht=(e,t)=>{const n=gt(e);return n||(e=>e.map((e=>"[".concat(e,"]"))).join(", "))(t)},mt=new Set,yt=(e,t)=>{var n,r;const o=null==e||null===(n=e.getOriginal)||void 0===n?void 0:n.call(e,Ke);if("string"==typeof o&&o.match(Je))return mt.has(o)||(mt.add(o),ae("[NLOG 2.0] page_scope must be a static string, not a variable: ".concat(o))),o;const i=null==e||null===(r=e.get)||void 0===r?void 0:r.call(e,Ke,t);return"string"==typeof i&&i&&i!==Xe?i:void 0},bt=(e,t)=>{const n=e.get("data_nlog_data_merge_mode",t);return"ignore"===n||"merge_strict"===n?n:"merge"},wt=(e,t)=>{if(e===t)return!0;try{return JSON.stringify(e)===JSON.stringify(t)}catch(e){return!1}},_t=e=>"object"==typeof e&&null!==e&&!Array.isArray(e),Ot=function(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1;if(!(o>5))for(const i of Object.keys(t)){if(!Object.prototype.hasOwnProperty.call(e,i))continue;const a=n?"".concat(n,".").concat(i):i,c=e[i],u=t[i];_t(c)&&_t(u)?Ot(c,u,a,r,o+1):wt(c,u)||r.add(a)}},St=new WeakSet,xt="ntm-abt",Et="nlog-abt",It=(e,t)=>{if(!e)return{};return Array.from(e.attributes).reduce(((e,n)=>{if(n.name.startsWith(t)){e[n.name.slice(t.length).replaceAll("-","_").toLowerCase()]=n.value}return e}),{})},Pt=(e,t)=>{if(!e)return{};try{var n;return null!==(n=JSON.parse(e))&&void 0!==n?n:{}}catch(e){re.error("NLOG 2.0: Failed to parse JSON ".concat(t?" from the '".concat(t,"'"):""))}return{}},jt=e=>!e||!Object.keys(e).length,At=e=>{if(e&&e.href&&e.getAttribute("href")&&"#"!==e.getAttribute("href"))return e.href},Lt=new WeakSet,Tt=(e,t,n)=>{var r,o;const i=null!==(r=null==n?void 0:n.mode)&&void 0!==r?r:"merge";"merge_strict"===i&&st(null==n?void 0:n.containerEnv);let a=e;if(!a&&t){var c,u;const e=null!==(c=null!==(u=t.srcElement)&&void 0!==u?u:t.currentTarget)&&void 0!==c?c:t.target;e&&e instanceof Element&&(a=e)}if(!a)return{};const{target_url:s,params:l,ad_req_id:f}=It(a,ut),d=((e,t,n)=>{let r,o;for(const n of t){const t=e.getAttribute(n);null!==t&&""!==t&&(void 0===r?r=t:t!==r&&(o||(o=[r]),o.push(t)))}if(o&&!Lt.has(e)){Lt.add(e);const t=n?" (tagId: ".concat(n,")"):"";ae("[NLOG 2.0] 한 요소에 여러 영역 속성이 서로 다른 area_code로 선언되어 첫 값(".concat(r,")을 사용합니다. (선언값: ").concat(o.join(", "),")").concat(t))}return r})(a,null!==(o=null==n?void 0:n.areaAttrNames)&&void 0!==o?o:[Ze],null==n?void 0:n.tagId),p=At(a);let v={area_code:d,area_target_url:null!=s?s:p,area_params:Pt(l,"data-nlog-params"),page_ad_req_id:f};if("ignore"===i)return v;const g=new Set;let h=a.parentElement;for(;h;){if(h.hasAttribute("".concat(ut,"data"))){var m,y,b,w;const e=It(h,ut),{target_url:t,params:n,ad_req_id:r}=e,o=v.area_target_url?void 0:At(h),a=null!==(m=Pt(n,"data-nlog-params"))&&void 0!==m?m:{};"merge_strict"===i&&Ot(a,v.area_params,"",g),v={area_code:v.area_code,area_target_url:null!==(y=null!==(b=v.area_target_url)&&void 0!==b?b:t)&&void 0!==y?y:o,area_params:We(a,v.area_params),page_ad_req_id:null!==(w=v.page_ad_req_id)&&void 0!==w?w:r}}if("BODY"===h.tagName)break;h=h.parentElement}if("merge_strict"===i&&g.size>0&&!St.has(a)){St.add(a);const e=null!=n&&n.tagId?" (tagId: ".concat(n.tagId,")"):"";ae("[NLOG 2.0] data-nlog-data 상위 병합 중 key 충돌 - 상위 값이 무시됨: ".concat(Array.from(g).join(", ")).concat(e))}return v},kt=e=>!(!e||!e.is_ad),Ct=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["page_params","area_params"];const n=e.reduce(((e,t)=>it(it({},e),He(null!=t?t:{}))),{});for(const r of t)n[r]=e.reduce(((e,t)=>null!=t&&t[r]?We(e,t[r]):e),{});return n};function Nt(e){for(var t=1;t{e&&e!==Vt&&(Vt=e,Gt=(e=>{if(!e)return;const t=e.replace(/^https?:\/\//,"").replace(/\/.*$/,"").split(":")[0].trim();if(!t)return;if("localhost"===t)return;if(/^[\d.]+$/.test(t))return;const n=t.split(".");if(n.length<2)return;const r=n[n.length-1],o=n[n.length-2],i=2===r.length&&-1!==qt.indexOf(o)&&n.length>=3?3:2;return"."+n.slice(-i).join(".")})(e))},Wt=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Mt(Mt({path:"/"},Gt?{domain:Gt}:{}),e)},Ht=["nci"],Qt=e=>{var t,n,r;t=Ut,n=(e=>"".concat(e.srt30Value,":").concat(e.firstCode,":").concat(e.latestCode))(e),r=Wt({expires:7}),t.length+1+n.length>1024||Dt.set(t,n,r)},Yt=e=>{var t;const{refreshMarketing:n,includePrevAction:r}=e,o=null!==(t=Dt.get("SRT30"))&&void 0!==t?t:"",i=Dt.get(Ut),a=Dt.get(Ft),c={},u=r&&!!a;u&&(c.prev_action={nlog_id:a});let s,l="",f="",d="",p=!1;if(i){const e=(e=>{const t=e.split(":");return 3!==t.length?null:{srt30Value:t[0],firstCode:t[1],latestCode:t[2]}})(i);e&&(l=e.srt30Value,f=e.firstCode,d=e.latestCode,p=!0)}s=p?""!==l||""===f&&""===d?"ACTIVE":"INIT":"NONE";const v=""!==o,g=v&&("NONE"===s||"ACTIVE"===s&&l!==o);let h,m,y;g?(h=o,m="",y=""):(h="INIT"===s&&v?o:l,m=f,y=d);const b=n?(()=>{if(!Ht.length)return null;const e=new URLSearchParams(window.location.search);for(const t of Ht){const n=e.get(t);if(n)return n.slice(0,16)}return null})():null;b&&(y=b,(g||""===m)&&(m=b));const w=((e,t)=>{if(!e&&!t)return null;const n={};return e&&(n.first_code=e),t&&(n.latest_code=t),n})(m,y);w&&(c.mkt=w);""!==m&&""!==y?Qt({srt30Value:h,firstCode:m,latestCode:y}):"NONE"!==s&&Dt.remove(Ut,Wt());return{srt30:void 0!==c.prev_action||void 0!==c.mkt?c:null,prevActionUsed:u}};var $t,Jt,Kt,Xt;function Zt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function en(e){for(var t=1;t!!e&&t.some((t=>void 0!==e[t]));let cn,un=!1;const sn=()=>cn;let ln=!1;const fn=()=>{var e;return null!=(null===(e=cn)||void 0===e?void 0:e.page_code)||ln};let dn=[];const pn=()=>{if(!fn())return;if(!dn.length)return;const e=dn;dn=[],e.forEach((e=>{ce("[NLOG 2.0] outer pageInfo settled callback failed",e)}))};let vn,gn;const hn=e=>e&&e!==Xe?e:Xe,mn=Object.create(null),yn=[],bn=(e,t)=>{yn.forEach((n=>{ce("[NLOG 2.0] pageInfo changed callback failed",(()=>n(e,t)))}))},wn=Object.create(null),_n=e=>{var t;if(mn[e]=(null!==(t=mn[e])&&void 0!==t?t:0)+1,e!==Xe){const t=Mn(e);return t.pageId=void 0,t.lastUsedPageInfo=void 0,t.lastUsedPageInfoSource=void 0,void(t.pageviewHandledCount=0)}vn=void 0,gn=void 0,Yn=0,(()=>{var e,t;const n=window.gNTMLib;(null!=n&&n.getIsExternalPageId?n.getIsExternalPageId():null!=n&&null!==(e=n.getHasCustomPageId)&&void 0!==e&&e.call(n)||Ln(Cn()))||(null!=n&&null!==(t=n.getIsAutoPageId)&&void 0!==t&&t.call(n)?Dn("__AUTO__"):Nn())})(),On.length&&xn()},On=[],Sn=Ue((()=>{window.addEventListener("message",ue("[NLOG 2.0] outer page message handler failed",(e=>{const t=null==e?void 0:e.data;if(e&&e.source&&e.origin&&(null==t?void 0:t.type)===nn.REGISTER_INNER_IFRAME){if(!Fe(e.source,"[NLOG 2.0]"))return;if(void 0!==t.lib&&t.lib!==nt)return void re.log("NLOG 2.0: ignore REGISTER from other lib (".concat(t.lib,")"));const n=On.findIndex((t=>t.source===e.source));n>=0?On[n]=e:On.push(e),xn()}})),!1)})),xn=()=>{vn||(vn={},gn="fallback");const e="pageview"===gn&&vn.page_id?vn.page_id:Cn();vn.page_id!==e&&(vn.page_ntm_id=Tn({pageId:e})),vn.page_id=e,En()},En=()=>{On.forEach((e=>{var t;const n={type:nn.SET_OUTER_PAGE_INFO,lib:nt,pageInfo:vn};null===(t=e.source)||void 0===t||t.postMessage(n,e.origin)}))},In=[50,200,400,800,1600,3200],Pn=()=>{const e={type:nn.REGISTER_INNER_IFRAME,lib:nt};parent.postMessage(e,"*")},jn=Ue((()=>{self!==parent&&(window.addEventListener("message",ue("[NLOG 2.0] inner page message handler failed",(e=>{if(e.source!==parent)return;const t=null==e?void 0:e.data;if(t&&t.type===nn.OUTER_READY){if(t.lib!==nt)return;if(un||ln)return;Pn()}else{if(t&&t.type===nn.SET_OUTER_PAGE_INFO&&t.pageInfo){if(ln)return void re.log("NLOG 2.0: ignore outer pageInfo - inner page is detached after its own pageview");const e=(e=>e.lib===nt?"v2":void 0!==e.lib?"reject":an(e.pageInfo,on)?"v2":an(e.pageInfo,rn)?"reject":"legacy")(t);var n;if("reject"===e)return void re.log("NLOG 2.0: ignore outer pageInfo from other lib (".concat(null!==(n=t.lib)&&void 0!==n?n:"legacy v1",")"));if("legacy"===e&&un)return void re.log("NLOG 2.0: ignore unidentified outer pageInfo after v2 outer confirmed");r=t.pageInfo,cn=r,pn(),null!=(null==r?void 0:r.page_code)&&bn(Xe,"committed"),"v2"===e&&(un=!0)}var r}})),!1),Pn(),(()=>{let e=0;const t=()=>{e>=In.length?re.log("NLOG 2.0: no outer pageInfo response from v2, stop REGISTER retry (legacy response: ".concat(!!sn(),")")):setTimeout(ue("[NLOG 2.0] inner page REGISTER retry failed",(()=>{un||ln||(Pn(),t())})),In[e++])};t()})())})),An=()=>u(),Ln=e=>{var t;return null!==(t=window.gNTMLib)&&void 0!==t&&t.getIsExternalPageId?window.gNTMLib.getIsExternalPageId():(()=>{var e;const t=null===(e=window)||void 0===e||null===(e=e.gNTM)||void 0===e?void 0:e.page_id;return"string"==typeof t&&t?t:void 0})()===e},Tn=e=>{let{pageId:t,userSetPid:n}=e;return n||Ln(t)?u():t};let kn;const Cn=null!==($t=null!==(Jt=window.gNTMLib.ensurePageId)&&void 0!==Jt?Jt:window.gNTMLib.getPageId)&&void 0!==$t?$t:()=>(kn||(kn=An()),kn),Nn=null!==(Kt=window.gNTMLib.updatePageId)&&void 0!==Kt?Kt:()=>(kn=An(),kn),Dn=null!==(Xt=window.gNTMLib.setPageId)&&void 0!==Xt?Xt:e=>{kn=e},Rn=Object.create(null),Mn=e=>(Rn[e]||(Rn[e]={pageviewHandledCount:0,pageviewSentCount:0}),Rn[e]),Bn=e=>(e.pageId||(e.pageId=An()),e.pageId),Un=()=>{const e=window.performance||{},t={};try{if(e.getEntriesByType){e.getEntriesByType("paint").forEach((e=>{const n=e.name;switch(n){case"first-paint":case"first-contentful-paint":t[n]=e.startTime}}))}}catch(e){re.error(e)}return t},Fn=()=>{var e;return null!==(e=window)&&void 0!==e&&null!==(e=e.performance)&&void 0!==e&&null!==(e=e.getEntriesByType("navigation")[0])&&void 0!==e&&e.type?Gn():Vn()},Gn=()=>{var e;const t=null===(e=window)||void 0===e||null===(e=e.performance)||void 0===e?void 0:e.getEntriesByType("navigation")[0],n={},r=["type","unloadEventStart","unloadEventEnd","redirectStart","redirectEnd","workerStart","fetchStart","domainLookupStart","domainLookupEnd","connectStart","secureConnectionStart","connectEnd","requestStart","responseStart","responseEnd","domInteractive","domContentLoadedEventStart","domContentLoadedEventEnd","domComplete","loadEventStart","loadEventEnd"];for(const e of r)n[e]=t[e];return n},Vn=()=>{var e;const t=window.performance||{},n={};if(t.timing){const e=t.timing;for(const t in e){const r=e[t];"number"==typeof r&&(n[t]=r)}}return en({navigation:{type:null===(e=window.performance)||void 0===e||null===(e=e.navigation)||void 0===e?void 0:e.type}},n)},qn=e=>{const t={};for(const[n,r]of Object.entries(e)){t[n.replaceAll("-","_")]=r}return t},zn=function(e,t){var n;let{allowTopLevel:r=!0}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const o=null!==(n=t.parameters.get("event_data_layer_key",t.dataLayer))&&void 0!==n?n:"nlog";return o&&t.dataLayer.get(o)&&t.dataLayer.get(o)[e]?t.dataLayer.get(o)[e]:t.eventData[e]?t.eventData[e]:r&&t.dataLayer.get(e)?t.dataLayer.get(e):void 0},Wn=["page_url","page_ref","page_id"],Hn=["page_url","page_ref","page_id","page_code","page_code_alias","page_query","page_params","page_ad_req_id"];let Qn=0,Yn=0;const $n=()=>{const e=document.querySelector("meta[data-nlog-page]");return It(e,"data-nlog-")},Jn=e=>({page_url:e.url,page_ref:e.ref,page_code:e.page,page_code_alias:e.page_alias,page_query:e.query,page_params:Pt(e.params,"data-nlog-params"),custom_params:Pt(e.custom_params,"data-nlog-custom-params"),page_ad_req_id:e.ad_req_id}),Kn=e=>{var t,n,r,o;const i=yt(e.parameters,e.dataLayer);if(i)return Xn(i,e);const a=vn,c="pageview"===gn?a:null!==(t=sn())&&void 0!==t?t:a,u=null!==(n=null==c?void 0:c.page_id)&&void 0!==n?n:Cn(),s=null!==(r=null==c?void 0:c.page_ntm_id)&&void 0!==r?r:Tn({pageId:u});return c?c!==vn||null!==(o=vn)&&void 0!==o&&o.page_ntm_id||(vn.page_ntm_id=s):(vn={page_id:u,page_ntm_id:s},gn="fallback"),tr(c,u,s,e,{useMetaFallback:er(e,void 0)})},Xn=(e,t)=>{var n,r;const o=Mn(e),i=o.lastUsedPageInfo,a=null!==(n=null==i?void 0:i.page_id)&&void 0!==n?n:Bn(o),c=null!==(r=null==i?void 0:i.page_ntm_id)&&void 0!==r?r:a;return i?i.page_ntm_id||(i.page_ntm_id=c):(o.lastUsedPageInfo={page_id:a,page_ntm_id:c},o.lastUsedPageInfoSource="fallback"),tr(i,a,c,t,{useMetaFallback:er(t,e)})},Zn=(e,t)=>"boolean"==typeof e?e:!t,er=(e,t)=>{var n;return Zn(null===(n=e.tagCmdData)||void 0===n?void 0:n.useMetaPageInfo,t)},tr=function(e,t,n,r){var o,i,a,c,u,s,l,f,d,p,v,g,h,m,y;let{useMetaFallback:b=!0}=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};const{page:w,page_alias:_,query:O,params:S,ad_req_id:x}=b?$n():{},E=b&&null==(null==e?void 0:e.page_code),I=S?Pt(S,"data-nlog-params"):void 0,P=We(E?null!=I?I:{}:null!==(o=null==e?void 0:e.page_params)&&void 0!==o?o:{},null!==(i=r.eventData.page_params)&&void 0!==i?i:{});return{page_url:null!==(a=null!==(c=r.eventData.page_url)&&void 0!==c?c:null==e?void 0:e.page_url)&&void 0!==a?a:window.location.href,page_ref:null!==(u=null!==(s=null!==(l=r.eventData.page_ref)&&void 0!==l?l:null==e?void 0:e.page_ref)&&void 0!==s?s:window.document.referrer)&&void 0!==u?u:"",page_id:t,page_ntm_id:n,page_code:null!==(f=null!==(d=r.eventData.page_code)&&void 0!==d?d:null==e?void 0:e.page_code)&&void 0!==f?f:E?w:void 0,page_code_alias:null!==(p=null!==(v=r.eventData.page_code_alias)&&void 0!==v?v:null==e?void 0:e.page_code_alias)&&void 0!==p?p:E?_:void 0,page_query:null!==(g=null!==(h=r.eventData.page_query)&&void 0!==h?h:null==e?void 0:e.page_query)&&void 0!==g?g:E?O:void 0,page_params:Object.keys(P).length?P:void 0,page_ad_req_id:null!==(m=null!==(y=r.eventData.page_ad_req_id)&&void 0!==y?y:null==e?void 0:e.page_ad_req_id)&&void 0!==m?m:E?x:void 0}},nr=function(){for(var e=arguments.length,t=new Array(e),n=0;nvoid 0!==e))},rr=(e,t)=>{let{filterByCode:n,allowedCodeList:r}=t;return e?!(n&&(null==r||!r.includes(e)))||(re.warn("NLOG 2.0: Pageview 이벤트로 등록된 페이지가 아니어서 Pageview 로그를 전송하지 않습니다. (page_code: ".concat(e,")")),!1):(re.log("NLOG 2.0: Failed to send the pageview log because the page code does not exist"),!1)},or=e=>{var t;return{allowedCodeList:null===(t=e.scriptInjectedData)||void 0===t?void 0:t.pageCode,filterByCode:dt(e.parameters,e.dataLayer)}},ir=(e,t,n,r,o)=>{const i=Ct([e,t,n.eventData]);return i.page_ntm_id=r,!!rr(i.page_code,o)&&i},ar=(e,t)=>{let{consumePrevAction:n}=t;const{srt30:r,prevActionUsed:o}=Yt({refreshMarketing:!0,includePrevAction:n});r&&(e.srt30=r),o&&Dt.remove(Ft,Wt())},cr=(e,t)=>(null==e?void 0:e.page_id)===t&&null!=e&&e.page_ntm_id?e.page_ntm_id:void 0,ur=function(e,t,n){let{allowTopLevel:r=!0}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const o={};return Hn.forEach((n=>{const i=zn(n,t,{allowTopLevel:r&&Wn.includes(n)});"page_params"===n?o.page_params=e.page_params:i?o[n]=i:n in e&&(o[n]=e[n])})),o.page_ntm_id=n,o};var sr={eventType:"pageview",onInit:()=>{Sn(),jn()},getEventData:e=>{var t,n,r,o,i,a,c,s;st(e.containerEnv);const l=yt(e.parameters,e.dataLayer);if(l)return((e,t)=>{var n,r,o,i;const a=Mn(e),c=er(t,e)?$n():void 0,s=or(t),l=nr(null===(n=t.eventData)||void 0===n?void 0:n.page_code,null==c?void 0:c.page);if(!rr(l,s))return!1;const f=zn("page_id",t,{allowTopLevel:!1});let d;f?(a.pageId=f,d=f):0===a.pageviewHandledCount?d=Bn(a):(a.pageId=An(),d=a.pageId),a.pageviewHandledCount++;const p="fallback"===a.lastUsedPageInfoSource?a.lastUsedPageInfo:void 0,v=null!==(r=cr(p,d))&&void 0!==r?r:f?u():d,g={page_url:window.document.location.href||"",page_ref:window.document.referrer||"",page_id:d,page_ntm_id:v};var h,m;h=null==t||null===(o=t.parameters)||void 0===o?void 0:o.get("send_scope_timing_data",t.dataLayer),m=null==t||null===(i=t.tagCmdData)||void 0===i?void 0:i.sendTimingData,!0!==h&&"true"!==h||!1===m?g.pts="0":a.pageviewSentCount<1&&(g.timing=qn(en(en({},Fn()),Un())));const y=ir(g,c?Jn(c):void 0,t,v,s);return!!y&&(a.lastUsedPageInfo=ur(y,t,v,{allowTopLevel:!1}),a.lastUsedPageInfoSource="pageview",a.pageviewSentCount++,bn(e,"committed"),ar(y,{consumePrevAction:!1}),y)})(l,e);const f=er(e,void 0),d=f?$n():{};f||void 0!==(null===(t=e.eventData)||void 0===t?void 0:t.page_code)||re.log("NLOG 2.0: useMetaPageInfo 가 꺼진 태그는 page_code 를 DataLayer(nlog 키)로 넣어야 pageview 가 전송됩니다.");const p=null!==(n=zn("page_id",e))&&void 0!==n?n:d.id,v=!(null===(r=window.gNTMLib)||void 0===r||!r.getHasCustomPageId)&&window.gNTMLib.getHasCustomPageId(),g=!(null===(o=window.gNTMLib)||void 0===o||!o.getIsAutoPageId)&&window.gNTMLib.getIsAutoPageId(),h="fallback"===gn?vn:void 0;let m="";const y=or(e),b=nr(null===(i=e.eventData)||void 0===i?void 0:i.page_code,d.page);if(!rr(b,y))return!1;if(p)g||Dn(p),m=p;else if(g){var w;m=null!==(w=window.gNTMLib)&&void 0!==w&&w.resolvePageIdForPageview?window.gNTMLib.resolvePageIdForPageview("v2"):0==Yn?Cn():Nn()}else if(v)m=Cn();else{var _;m=null!==(_=window.gNTMLib)&&void 0!==_&&_.resolvePageIdForPageview?window.gNTMLib.resolvePageIdForPageview("v2"):0==Yn?Cn():Nn()}Yn++;const O=null!==(a=cr(h,m))&&void 0!==a?a:Tn({pageId:m,userSetPid:p}),S={page_url:window.document.location.href||"",page_ref:window.document.referrer||"",page_id:m,page_ntm_id:O},x=null==e||null===(c=e.parameters)||void 0===c?void 0:c.get("send_timing_data",e.dataLayer),E=null==e||null===(s=e.tagCmdData)||void 0===s?void 0:s.sendTimingData;var I,P;P=E,void 0!==(I=x)&&!0!==I&&"true"!==I&&!0!==P||!1===P?S.pts="0":Qn<1&&(S.timing=qn(en(en({},Fn()),Un())));const j=ir(S,Jn(d),e,O,y);return!!j&&(ln||(ln=!0,self!==parent&&(cn=void 0,re.log("NLOG 2.0: inner iframe sent its own pageview - detached from outer pageInfo")),pn()),((e,t,n)=>{vn=ur(e,t,n),gn="pageview",bn(Xe,"committed")})(j,e,O),En(),Qn++,ar(j,{consumePrevAction:!0}),j)}};function lr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function fr(e){for(var t=1;t{let r,o,i,a=-1,c=-1,u=-1,s=-1;const l=t||e;let f=0,d=0;try{if(i=(e=>{let t,n,r=e.parentNode;if(null!=r&&null!=r){try{var o;if(window.top!=window.self)if((null===(o=window)||void 0===o||null===(o=o.top)||void 0===o?void 0:o.location.origin)!=window.origin)return}catch(e){return}for(;;)if("#document"==r.nodeName.toLowerCase()){t=r.parentWindow?r.parentWindow:r.defaultView;try{var i;if(null!=(null===(i=t)||void 0===i?void 0:i.frameElement)&&null!=t.frameElement){if("iframe"==t.frameElement.nodeName.toLowerCase()){if(n=t.frameElement.id,!n)return;return n}return}return}catch(e){return}}else if(r=r.parentNode,null==r||null==r)return}})(e),i){const e=(e=>{let t=e,n=0,r=0;try{var o,i,a;if(null!==(o=t)&&void 0!==o&&o.offsetParent)do{n+=t.offsetLeft,r+=t.offsetTop}while(t=t.offsetParent);else(null!==(i=t)&&void 0!==i&&i.x||null!==(a=t)&&void 0!==a&&a.y)&&(t.x&&(n+=t.x),t.y&&(r+=t.y))}catch(e){}return[n,r]})(document.getElementById(i));l.clientX&&null!=l.clientX&&(r=document.body,r.clientLeft&&r.clientTop?(f=l.clientX-r.clientLeft,d=l.clientY-r.clientTop):(f=l.clientX,d=l.clientY)),u=e[0]+f,s=e[1]+d,document.body&&(document.body.scrollTop||document.body.scrollLeft)?(r=document.body,a=u-r.scrollLeft,c=s-r.scrollTop):document.documentElement&&(document.documentElement.scrollTop||document.documentElement.scrollLeft)?(o=document.documentElement,a=u-o.scrollLeft,c=s-o.scrollTop):(a=u,c=s)}else l.clientX&&null!=l.clientX&&(r=document.body,r.clientLeft&&r.clientTop?(a=l.clientX-r.clientLeft,c=l.clientY-r.clientTop):(a=l.clientX,c=l.clientY)),document.body&&(document.body.scrollTop||document.body.scrollLeft)?(u=document.body.scrollLeft+(a<0?0:a),s=document.body.scrollTop+(c<0?0:c)):document.documentElement&&(document.documentElement.scrollTop||document.documentElement.scrollLeft)?(o=document.documentElement,null!=o.scrollLeft&&(u=o.scrollLeft+(a<0?0:a)),null!=o.scrollTop&&(s=o.scrollTop+(c<0?0:c))):(u=a<0?0:a,s=c<0?0:c),l.pageX&&(u=l.pageX),l.pageY&&(s=l.pageY)}catch(t){ae("[NLOG 2.0] click position calculation failed (tagId: ".concat(n,")"),t)}const p={};return-1!=u&&-1!=s&&(p.p_x=Math.round(u),p.p_y=Math.round(s)),-1!=a&&-1!=c&&(p.s_x=Math.round(a),p.s_y=Math.round(c)),p};var vr={eventType:"click",onInit:()=>{jn()},getEventData:e=>{var t,n,r,o,i;st(e.containerEnv);const a=e.dataLayer.get("pre.clickEvent"),c=e.dataLayer.get(tt),u=e.dataLayer.get("pre.clickElement"),s=e.dataLayer.get("target_element"),l=e.dataLayer.get("target_event"),f=vt(e.parameters,e.dataLayer),d=null!=l?l:a,p=null!==(t=null!=l?l:c)&&void 0!==t?t:a;let v=null!=s?s:u;if(!v&&d){var g,h;const e=null!==(g=null!==(h=d.srcElement)&&void 0!==h?h:d.currentTarget)&&void 0!==g?g:d.target;e instanceof Element&&(v=(e=>{let t=e;for(;t&&"BODY"!==t.tagName&&"HTML"!==t.tagName&&"A"!==t.tagName&&t.parentNode;)t=t.parentNode;return"A"!==t.tagName&&(t=e),t})(e))}var m;!s&&u&&!0===e.dataLayer.get("pre.nlogAreaMatched")&&(v=null!==(m=((e,t)=>{let n=e;for(;n;){const e=n;if(e.hasAttribute&&t.some((t=>e.hasAttribute(t))))return e;n=n.parentElement}return null})(u,f))&&void 0!==m?m:u);const y=gt(null==e||null===(n=e.parameters)||void 0===n?void 0:n.get("click_css_selector",e.dataLayer)),b=y?ht(y,f):void 0;if(b&&v&&v.matches)try{if(!v.matches("".concat(b)))return!1}catch(e){return re.error("NLOG 2.0: Invalid CSS Selector for click filter: ".concat(b)),!1}const w=v||d?pr(null!==(r=v)&&void 0!==r?r:d,d,e.tagId):{},_=Kn(e),O=fr({click:jt(w)?void 0:w},_),S=bt(e.parameters,e.dataLayer),{area_code:x,area_target_url:E="about:blank",area_params:I,page_ad_req_id:P}=Tt(v,d,{mode:S,tagId:e.tagId,containerEnv:e.containerEnv,areaAttrNames:f}),j={area_code:x,area_target_url:E,area_params:I,page_ad_req_id:P};let A=I;if(null!==(o=e.tagCmdData)&&void 0!==o&&o.expandClickData){var L,T;const t=Ct([O,j,e.eventData]),n=((e,t,n,r)=>{if(null!=e&&e.expandClickData)try{const o=e.expandClickData(t,n,r);if(null!=o&&"object"==typeof o)return fr({},o)}catch(e){re.error("NLOG : expandClickData throws an error : ".concat(e))}})(e.tagCmdData,null!==(L=v)&&void 0!==L?L:void 0,{area_code:t.area_code,area_target_url:t.area_target_url,area_params:fr({},null!==(T=t.area_params)&&void 0!==T?T:{})},null!=p?p:void 0);n&&(A=fr(fr({},null!=I?I:{}),n))}const k=Ct([O,fr(fr({},j),{},{area_params:A}),e.eventData]);_.page_ntm_id&&(k.page_ntm_id=_.page_ntm_id),kt(k.area_params)||delete k.page_ad_req_id;const C=k.area_code,N=null===(i=e.scriptInjectedData)||void 0===i?void 0:i.clickAreaCode,D=dt(e.parameters,e.dataLayer);if(!C)return ft("click-area-code-missing:".concat(f.join(",")),(()=>{re.log("NLOG 2.0: Failed to send the log because the area code does not exist (area attributes: ".concat(f.join(", "),")"))})),!1;if(D&&(null==N||!N.includes(C)))return ft("click-unregistered-area-code:".concat(C),(()=>{re.warn("NLOG 2.0: Click 이벤트로 등록된 영역이 아니어서 Click 로그를 전송하지 않습니다. (area_code: ".concat(C,")"))})),!1;const{srt30:R}=Yt({refreshMarketing:!1,includePrevAction:!1});return R&&(k.srt30=R),k}};n(5452),n(2200),n(648);const gr=(e,t)=>{if(!e||!t)return null;const n=Math.max(e.left,t.left),r=Math.min(e.right,t.right);if(n>r)return null;const o=Math.max(e.top,t.top),i=Math.min(e.bottom,t.bottom);return o>i?null:{left:n,right:r,top:o,bottom:i}},hr=e=>(e.right-e.left)*(e.bottom-e.top),mr=e=>{const t=e.getBoundingClientRect();if(!t)return 0;if(!(t.width&&t.height||"visible"===window.getComputedStyle(e).overflow))return 0;let n=gr({left:t.left,right:t.right,top:t.top,bottom:t.bottom},{left:0,right:document.documentElement.clientWidth,top:0,bottom:document.documentElement.clientHeight});if(!n)return 0;let r=e.parentElement;for(;r&&r!==document.body&&r!==document.documentElement;){const{overflow:e}=window.getComputedStyle(r);if("visible"!==e&&(n=gr(n,r.getBoundingClientRect()),!n))return 0;r=r.parentElement}return hr(n)/hr(t)*100};function yr(e,t,n,r){if(!t){const t=e.getBoundingClientRect();return!!(t.width&&t.height||"visible"===window.getComputedStyle(e).overflow)}return!(!n||r&&!(r<=n))}const br=(e,t)=>{var n;const r=e.getBoundingClientRect(),o=document.documentElement,i=null!==(n=gr({left:r.left,right:r.right,top:r.top,bottom:r.bottom},{left:0,right:o.clientWidth,top:0,bottom:o.clientHeight}))&&void 0!==n?n:{left:0,right:0,top:0,bottom:0},a=(window.scrollY||window.pageYOffset)+r.top,c=(window.scrollX||window.pageXOffset)+r.left,u=r.height,s=r.width,l=i.bottom-i.top,f=i.right-i.left,d=a+(r.top>=0?0:Math.abs(r.top)),p=c+(r.left>=0?0:Math.abs(r.left));return{y:Math.round(a),x:Math.round(c),h:Math.round(u),w:Math.round(s),exp_y:t?Math.round(d):0,exp_x:t?Math.round(p):0,exp_h:t?Math.round(l):0,exp_w:t?Math.round(f):0}};function wr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _r(e){for(var t=1;tt?"".concat(t,":").concat(e):e,Er=new Map,Ir=new Map,Pr=e=>{const t=Er.get(e),n=Ir.get(e);null==t||t.forEach(((e,n)=>{n.isConnected||t.delete(n)})),null==n||n.forEach((e=>{e.isConnected||n.delete(e)})),0===(null==t?void 0:t.size)&&Er.delete(e),0===(null==n?void 0:n.size)&&Ir.delete(e)},jr=()=>{const e=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;return e||0},Ar=()=>{const e=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight;return e||0},Lr=e=>{const{impStartTs:t}=e,n=+new Date-t;return n>0?n:0},Tr=new Map,kr=new Map,Cr=[],Nr=()=>{if(0===Cr.length)return;const e=new Map;Cr.forEach((t=>{var n;const r=t.eventParam.imp_id,o=t.scopeKey;if(!r||!o)return;const i="".concat(r,"_").concat(o);e.has(i)||e.set(i,[]),null===(n=e.get(i))||void 0===n||n.push(t)}));const t=Object.fromEntries(e);Cr.splice(0);Object.entries(t).map((e=>{let[t,n]=e;const r=n.map((e=>e.eventParam.imps[0]));return{commonParam:n[0].commonParam,eventParam:_r(_r({},n[0].eventParam),{},{imps:r}),sendOption:n[0].sendOption}})).forEach((e=>{const{commonParam:t,eventParam:n,sendOption:r}=e;window.nlog_v2Lib.sendImpressionDurationData(t,n,r)}))};let Dr=null;const Rr=()=>{Tr.forEach(((e,t)=>{const{intersectionObserver:n,impsByImpId:r}=e;r.forEach(((e,r)=>{const{commonParam:o,eventParam:i,sendOption:a,imps:c,elements:u,minPercentVisible:s}=e;if(!o||!i||!a)return;if(!kr.has(t)){const e=new Map;kr.set(t,e)}const l=kr.get(t);if(!l)return;l.has(r)||l.set(r,{bgSentInfoItems:[],minPercentVisible:s});const f=l.get(r);f&&(f.minPercentVisible=s,c.forEach(((n,r)=>{n.exp_tm=Lr(e);const i=_r(_r({},e.eventParam),{},{imps:[n]}),c={commonParam:o,eventParam:i,sendOption:a,scopeKey:t};Cr.push(c),f.bgSentInfoItems.push(_r(_r({},c),{},{element:u[r]}))})),u.forEach((e=>{ce("[NLOG 2.0] flushRemainingImpression unobserve failed",(()=>{null==n||n.unobserve(e)}),"warn")})))}))})),Tr.clear(),Nr()};var Mr=function(e){return e.FG="fg",e.BG="bg",e}(Mr||{});let Br=null;const Ur=()=>{Br!=Mr.FG&&(kr.forEach(((e,t)=>{e.forEach(((e,n)=>{const{minPercentVisible:r,bgSentInfoItems:o}=e;if(o.length<=0)return;const i=o[0],a=[],c=o.filter((e=>{const t=mr(e.element);return yr(e.element,!0,t,r)})).map((e=>{const{eventParam:t,element:n}=e,r=t.imps[0];return delete r.exp_tm,a.push(r),{imp:r,element:n}})),{commonParam:u,eventParam:s,sendOption:l}=i,f=_r(_r({},s),{},{evt_ts:+new Date,imps:a});qr(n,t,r,c,+new Date),Vr(t,n,u,f,l)}))})),kr.clear(),Br=Mr.FG)};let Fr=!1;const Gr=()=>{Fr||document.addEventListener("visibilitychange",ue("[NLOG 2.0] visibilitychange callback failed",(function(){"hidden"===document.visibilityState?Br!=Mr.BG&&(Rr(),Br=Mr.BG):Ur()}))),Fr=!0},Vr=(e,t,n,r,o)=>{const i=Tr.get(e);if(!i)return void re.error("no scopeKey in durationInfo");const a=i.impsByImpId.get(t);if(!a)return void re.error("no impId in durationInfo");a.commonParam=n,a.eventParam=r,a.sendOption=o;const c=r.imps||[];a.imps.push(...c)},qr=(e,t,n,r,o)=>{var i;if(null===Dr&&(Dr=window.setInterval(ue("[NLOG 2.0] impDuration timer failed",(()=>{Nr()})),2e3),window.nlog_v2Lib&&(null===(i=window.nlog_v2Lib.beaconBulkSender)||void 0===i||i.registerImpressionFlushCallback(Ue((()=>{Rr()}))))),!Tr.has(t)){const e=n/100,r={intersectionObserver:null,elementImpIdMap:new Map,impsByImpId:new Map},o=n=>{n.forEach((n=>{if(!(n.intersectionRatio>e))try{null==c||c.unobserve(n.target);const e=r.elementImpIdMap.get(n.target);if(!e)return void re.error("no impId for element");const o=r.impsByImpId.get(e);if(!o)return;if(!o.commonParam||!o.eventParam||!o.sendOption)return;if(-1===o.elements.indexOf(n.target))return;const i=Lr(o);let a=o.elements.indexOf(n.target);for(;-1!==a;){const e=o.imps[a];o.elements.splice(a,1),o.imps.splice(a,1),e&&(e.exp_tm=i,Cr.push({commonParam:o.commonParam,eventParam:_r(_r({},o.eventParam),{},{imps:[e]}),sendOption:o.sendOption,scopeKey:t})),a=o.elements.indexOf(n.target)}0===o.elements.length&&r.impsByImpId.delete(e)}finally{r.elementImpIdMap.delete(n.target)}}))};r.intersectionObserver=new IntersectionObserver(ue("[NLOG 2.0] IntersectionObserver callback failed",o),{threshold:e}),Tr.set(t,r)}const a=Tr.get(t);if(!a)return;const{intersectionObserver:c,elementImpIdMap:u,impsByImpId:s}=a;r.forEach((t=>{const{element:n}=t;u.has(n)||(u.set(t.element,e),null==c||c.observe(n))})),s.set(e,{commonParam:null,eventParam:null,sendOption:null,impStartTs:o,imps:[],elements:r.map((e=>e.element)),minPercentVisible:n})},zr=(e,t)=>{const n=Tr.get(e);if(!n)return;const r=n.elementImpIdMap.get(t);return r?n.impsByImpId.get(r):void 0},Wr=(e,t)=>{if(null==e||!e.checkIfValid)return!1;try{var n;return!!e.checkIfValid(t,null!==(n=null==e?void 0:e.triggerEventId)&&void 0!==n?n:"")}catch(e){return re.error("NLOG : checkIfValid throws an error : ".concat(e)),!1}},Hr=(e,t,n,r,o)=>{if(null!=e&&e.expandImpressionData)try{var i;const c={area_code:n.area_code,area_target_url:n.area_target_url,area_params:_r({},null!==(i=n.area_params)&&void 0!==i?i:{})},u=e.expandImpressionData(t,r,c,o);var a;if(null!=u&&"object"==typeof u)n.area_params=_r(_r({},null!==(a=n.area_params)&&void 0!==a?a:{}),u)}catch(e){re.error("NLOG : expandImpressionData throws an error : ".concat(e))}},Qr=(e,t,n,r,o,i,a,c)=>{const u=null!=c?c:br(e,t),{area_code:s,area_target_url:l,area_params:f,page_ad_req_id:d}=Tt(e,void 0,{mode:r,tagId:o,containerEnv:i,areaAttrNames:a});return _r(_r({exp_num:n},u),{},{area_code:s,area_target_url:l,area_params:f,page_ad_req_id:d})},Yr=function(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:o;const a=e.area_code,c=null==t?void 0:t.impressionAreaCode;return a?!(n&&(null==c||!c.includes(a)))||(r&&ft("unregistered-area-code:".concat(a),(()=>{re.warn("NLOG 2.0: 노출 이벤트로 등록된 영역이 아니어서 노출 로그를 전송하지 않습니다. (area_code: ".concat(a,")"))})),!1):(r&&ft("imp-no-area-code:".concat(i),(()=>{re.warn("NLOG 2.0: 전달된 Element에 영역 속성(data-nlog-area 등)이 없어 노출 로그를 전송하지 않습니다. "+"대상 Element가 영역 속성을 가진 요소인지 확인하세요. (tagId: ".concat(o,")"))})),!1)},$r=e=>null==e||"object"==typeof e&&!Array.isArray(e),Jr=function(e,t,n,r,o,i,a,c){var u,s,l,f,d;let p=!(arguments.length>8&&void 0!==arguments[8])||arguments[8],v=arguments.length>9&&void 0!==arguments[9]?arguments[9]:"merge",g=arguments.length>10?arguments[10]:void 0,h=arguments.length>11?arguments[11]:void 0,m=arguments.length>12?arguments[12]:void 0,y=arguments.length>13?arguments[13]:void 0;const b=!0===(null==a?void 0:a.viewportCheckOnly),w=y?y.percentVisible:mr(n);if(y?!y.passes:!yr(n,b,w,i))return!1;let _=Er.get(t);if(_||(_=new Map,Er.set(t,_)),o===Sr.oncePerElement&&_.has(n))return!1;if(o===Sr.checkIfValidCallback&&!Wr(a,n))return!1;let O=null!==(u=_.get(n))&&void 0!==u?u:0;w>0&&(O+=1,_.set(n,O));const S=Qr(n,w,O,v,e,g,h,null==y?void 0:y.coords),x=null!=r?r:{};S.area_code=null!==(s=x.area_code)&&void 0!==s?s:S.area_code,S.area_target_url=null!==(l=x.area_target_url)&&void 0!==l?l:S.area_target_url,S.area_params=We(null!==(f=S.area_params)&&void 0!==f?f:{},null!==(d=x.area_params)&&void 0!==d?d:{});return Hr(a,n,S,null!=r?r:void 0,m),!!Yr(S,c,p,!0,e,t)&&S},Kr=function(e,t,n,r,o,i,a,c){let u=!(arguments.length>8&&void 0!==arguments[8])||arguments[8],s=arguments.length>9&&void 0!==arguments[9]?arguments[9]:"merge",l=arguments.length>10?arguments[10]:void 0,f=arguments.length>11?arguments[11]:void 0,d=arguments.length>12?arguments[12]:void 0;Pr(t);const p=[];return n.forEach((n=>{const v=n.element;if(!(v instanceof HTMLElement))return void ft("delegated-imp-invalid-element:".concat(t),(()=>{re.warn("NLOG 2.0: 트리거가 전달한 값이 유효한 Element가 아니어서 노출 대상에서 제외합니다. (tagId: ".concat(e,")"))}));const g=n.imp;if(!$r(g))return void ft("delegated-imp-invalid-imp:".concat(t),(()=>{re.warn("NLOG 2.0: 트리거가 전달한 target_imp가 유효한 객체가 아니어서 노출 대상에서 제외합니다. (tagId: ".concat(e,")"))}));if(r&&zr(t,v))return;const h=Jr(e,t,v,null!=g?g:void 0,o,i,a,c,u,s,l,f,d,n.view);h&&p.push({imp:h,element:v})})),p},Xr=e=>{const t=e.dataLayer.get("pre.scrollStartTime"),n=e.dataLayer.get("pre.elementScrollDirection"),r=document.body.scrollTop||document.documentElement.scrollTop,o=document.body.scrollLeft||document.documentElement.scrollLeft;if(t>=0)return{p_y:Math.round(r),p_x:Math.round(o),ts:t,direction:n}};var Zr={eventType:"impression",onInit:()=>{jn()},getEventData:e=>{var t,n,r,o,i,a,c,u;st(e.containerEnv);const s=null!==(t=null==e?void 0:e.tagId)&&void 0!==t?t:"",l=xr(s,null==e?void 0:e.impScopeId),f=e.dataLayer.get("target_element"),d=e.dataLayer.get("target_imp"),p=null!==(n=e.isManualImpression)&&void 0!==n?n:void 0!==f,v=Array.isArray(e.triggerElements)?e.triggerElements:void 0,g=Array.isArray(e.triggerImpressions)?e.triggerImpressions:void 0,h=vt(e.parameters,e.dataLayer),m=ht(null==e||null===(r=e.parameters)||void 0===r?void 0:r.get("css_selector",e.dataLayer),h),y=null==e||null===(o=e.parameters)||void 0===o?void 0:o.get("el_visibility_check_limit",e.dataLayer),b=(e=>{if(null==e||"string"==typeof e&&""===e.trim())return 10;const t=Number(e);return Number.isFinite(t)?t:10})(null==e||null===(i=e.parameters)||void 0===i?void 0:i.get("min_percent_visible",e.dataLayer)),w=e.parameters.get("use_imp_duration",e.dataLayer),_=!1!==(null==e||null===(a=e.tagCmdData)||void 0===a?void 0:a.viewportCheckOnly)&&w,O=!p&&_;void 0===d||void 0!==f||g||ft("manual-imp-only:".concat(l),(()=>{re.warn("NLOG 2.0: target_imp는 target_element와 함께 전달해야 합니다. 단독 전달은 무시되고 기존 스캔 방식으로 동작합니다. (tagId: ".concat(s,")"))})),p&&_&&!g&&ft("manual-imp-duration:".concat(l),(()=>{re.warn("NLOG 2.0: 수동 노출 로그 전송에서는 노출 시간(use_imp_duration) 측정이 지원되지 않아 측정된 노출 시간 없이 즉시 전송합니다. (tagId: ".concat(s,")"))}));const S=dt(e.parameters,e.dataLayer),x=bt(e.parameters,e.dataLayer);O&&Gr();const E=Xr(e),I=(e=>{var t;return null!==(t=e.dataLayer.get(tt))&&void 0!==t?t:void 0})(e);if(Br?Br===Mr.BG:"hidden"===document.visibilityState)return!1;let P,j=[];if(g)j=Kr(s,l,g,!!O,y,b,e.tagCmdData,e.scriptInjectedData,S,x,e.containerEnv,h,I),P=j.map((e=>e.imp));else if(p){const t=function(e,t,n,r,o,i,a,c){let u=!(arguments.length>8&&void 0!==arguments[8])||arguments[8],s=arguments.length>9&&void 0!==arguments[9]?arguments[9]:"merge",l=arguments.length>10?arguments[10]:void 0,f=arguments.length>11?arguments[11]:void 0,d=arguments.length>12?arguments[12]:void 0;return n instanceof HTMLElement?$r(r)?(Pr(t),Jr(e,t,n,null!=r?r:void 0,o,i,a,c,u,s,l,f,d)):(ft("manual-imp-invalid-imp:".concat(t),(()=>{re.warn("NLOG 2.0: target_imp가 유효한 객체가 아니어서 노출 로그를 전송하지 않습니다. (tagId: ".concat(e,")"))})),!1):(ft("manual-imp-invalid-element:".concat(t),(()=>{re.warn("NLOG 2.0: target_element가 유효한 Element가 아니어서 노출 로그를 전송하지 않습니다. (tagId: ".concat(e,")"))})),!1)}(s,l,f,d,y,b,e.tagCmdData,e.scriptInjectedData,S,x,e.containerEnv,h,I);if(!t)return!1;P=[t]}else v?(j=Kr(s,l,v.map((e=>({element:e}))),!!O,y,b,e.tagCmdData,e.scriptInjectedData,S,x,e.containerEnv,h,I),P=j.map((e=>e.imp))):(j=function(e,t,n,r,o,i,a,c){var u;let s,l=!(arguments.length>8&&void 0!==arguments[8])||arguments[8],f=arguments.length>9&&void 0!==arguments[9]?arguments[9]:"merge",d=arguments.length>10?arguments[10]:void 0,p=arguments.length>11?arguments[11]:void 0,v=arguments.length>12?arguments[12]:void 0;try{s=null!=i&&i.impressionRootSelector?Array.from(document.querySelectorAll(i.impressionRootSelector)).flatMap((e=>Array.from(e.querySelectorAll(n)))):document.querySelectorAll(n)}catch(e){re.error("NLOG: Failed to select nodes"),s=[]}if(null===(u=s)||void 0===u||!u.length)return[];const g=[];let h=Er.get(t);h||(h=new Map,Er.set(t,h));let m=Ir.get(t);m||(m=new Set,Ir.set(t,m));const y=!0===(null==i?void 0:i.viewportCheckOnly);for(let n=0;n0&&(t+=1,h.set(u,t),m.add(u));const n=Qr(u,E,t,f,e,d,p);Hr(i,u,n,void 0,v),Yr(n,a,l)&&g.push({imp:n,element:u})}else{var _;O&&(null===(_=m)||void 0===_||_.delete(u))}}return Pr(t),g}(s,l,m,y,b,e.tagCmdData,e.scriptInjectedData,O,S,x,e.containerEnv,h,I),P=j.map((e=>e.imp)));if(!e.parameters.get("imps_empty_send",e.dataLayer)&&0===P.length)return!1;if(!E&&0===P.length)return!1;const A=Kn(e),L=null!==(c=null===(u=e.tagCmdData)||void 0===u?void 0:u.triggerEventId)&&void 0!==c?c:"",T=_r(_r({},A),{},{scroll:E,doc:{width:Math.round(Math.max(document.body.offsetWidth,document.body.scrollWidth,document.documentElement.offsetWidth,document.documentElement.clientWidth,document.documentElement.scrollWidth,1)),height:Math.round(Math.max(document.body.offsetHeight,document.body.scrollHeight,document.documentElement.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,1)),client_width:Math.round(jr()),client_height:Math.round(Ar())},imp_id:L,imps:P});O&&j.length&&qr(L,l,b,j,+new Date);const{srt30:k}=Yt({refreshMarketing:!1,includePrevAction:!1});return k&&(T.srt30=k),0===P.length&&delete T.page_ad_req_id,He(T)}},eo={eventType:"custom.action",onInit:()=>{jn()},getEventData:e=>{st(e.containerEnv);const t=Kn(e),n=e.dataLayer.get("target_event"),r=e.dataLayer.get("target_element");let o={};if(n||r){const t=bt(e.parameters,e.dataLayer),{area_code:i,area_target_url:a,area_params:c}=Tt(null!=r?r:null,n,{mode:t,tagId:e.tagId,containerEnv:e.containerEnv,areaAttrNames:vt(e.parameters,e.dataLayer)});o={area_code:i,area_target_url:a,area_params:c}}const i=Ct([t,o,e.eventData]);t.page_ntm_id&&(i.page_ntm_id=t.page_ntm_id),delete i.page_ad_req_id;const{srt30:a}=Yt({refreshMarketing:!1,includePrevAction:!1});return a&&(i.srt30=a),i}};const to={},no=e=>{const{eventType:t}=e;to[t]=e};no(sr),no(vr),no(Zr),no(eo);const ro="2.0.20",oo={type:"string",sub_type:"string",evt_ts:"number",nlog_id:"string",custom_params:"object",abt:"object",page_code:"string",page_code_alias:"string",page_id:"string",page_ntm_id:"string",page_url:"string",page_ref:"string",page_query:"string",page_params:"object",page_ad_req_id:"string",timing:"object",pts:"string",lils:"object",click:"object",imp_id:"string",imps:"object",doc:"object",scroll:"object",area_code:"string",area_target_url:"string",area_params:"object",srt30:"object"},io=["pageview","click","impression"],ao=["cks"],co=["is_mobile"],uo=["is_mobile"];function so(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function lo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function fo(e){for(var t=1;t{if(this.hasScrolled=!0,void 0===this.pvIntervalId)return;const e=+new Date;this.lastScrolledTime&&+e-+this.lastScrolledTime>this.scrollGapDuration&&this.stopPvCallbacks(),this.lastScrolledTime=e}),"warn")),this.beaconBulkSender=new Ne,this.setHighEntropyEnv(),this.callbackMap=to}setCookieDomainFromHost(e){zt(e)}isOuterPageInfoSettled(){return fn()}registerOuterPageInfoSettledCallback(e){(e=>{fn()?e():dn.push(e)})(e)}hasInheritedOrMetaPageCode(e,t){return((e,t)=>{var n,r;const o=hn(e)!==Xe,i=o?null===(n=Rn[e])||void 0===n?void 0:n.lastUsedPageInfo:"pageview"===gn?vn:null!==(r=sn())&&void 0!==r?r:vn;return null!=(null==i?void 0:i.page_code)||Zn(t,o?e:void 0)&&!!$n().page})(e,t)}getPageInfoGeneration(e){return(e=>{var t;return null!==(t=mn[hn(e)])&&void 0!==t?t:0})(e)}registerPageInfoChangedCallback(e){(e=>{yn.push(e)})(e)}resetInheritedPageInfo(e){(e=>{const t=hn(e);if(!wn[t]){wn[t]=!0;try{bn(t,"reset-pageview"),bn(t,"reset"),_n(t)}finally{delete wn[t]}}})(e);const t=e||Xe;delete this.lastPvEventByScope[t],t===Xe&&this.stopPvCallbacks()}send(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:vo;try{if(re.enabled="dev"===(null==n?void 0:n.containerEnv)||"stage"===(null==n?void 0:n.containerEnv),!e)throw new Error("commonParam is nil");if(!t)throw new Error("eventParam is nil");if(null==n||!n.host||null==n||!n.path)throw new Error("invalid sendOption : path, host => ".concat(n.host,", ").concat(n.path));const a=io.includes(t.type)?(()=>{var e;const t=[Et,xt].map((e=>'meta[name="'.concat(e,'"]'))).join(", "),n=null===(e=document.querySelector(t))||void 0===e?void 0:e.getAttribute("content");if(n){const e=Pt(n,"ABT meta tag");if(e&&!jt(e))return{exps:Array.isArray(e)?e:[e]}}})():void 0,c=fo(fo({},t),{},{evt_ts:+new Date,abt:a}),u=this.pruneInvalidTypeField(c),s=!!(u.imps&&Array.isArray(u.imps)&&u.imps.length>0),l=n.tagId?xr(n.tagId,n.impScopeId):"";if(n.useImpDuration&&l&&u.imp_id&&s&&(r=l,o=u.imp_id,null!==(i=Tr.get(r))&&void 0!==i&&i.impsByImpId.has(o)))return void Vr(l,u.imp_id,e,u,n);this.sendData(e,u,n)}catch(e){const t=[];null!=n&&n.containerId&&t.push("containerId: ".concat(n.containerId)),null!=n&&n.tagId&&t.push("tagId: ".concat(n.tagId));const r=t.length?" (".concat(t.join(", "),")"):"";ie("[NLOG 2.0] send failed".concat(r),e)}var r,o,i}sendImpressionDurationData(e,t,n){this.sendData(e,t,n)}splitData(e,t){const n=ee(e,t);if(1===e.length||!1!==n)return[e];const r=[];let o=0;return e.forEach((e=>{const n=ee(e,t);if(!1===n||n>t)return;o+=n;const i=r.length;0===i||o>t?(o=n,r.push([e])):r[i-1].push(e)})),r}flushQueue(){var e;null===(e=this.beaconBulkSender)||void 0===e||e.flushQueue()}sendData(e,t,n){if("impression"===t.type&&t.imps&&Array.isArray(t.imps)&&t.imps.length>0){return void((e,t)=>{const n=new Map;return e.forEach((e=>{var r;const{page_ad_req_id:o}=e,i=ct(e,rt),a=kt(i.area_params)?null!=o?o:t:void 0;n.has(a)||n.set(a,[]),null===(r=n.get(a))||void 0===r||r.push(i)})),Array.from(n.entries()).map((e=>{let[t,n]=e;return{adReqId:t,imps:n}}))})(t.imps,t.page_ad_req_id).forEach((r=>{let{adReqId:o,imps:i}=r;this.splitData(i,49152).forEach((r=>{const i=fo(fo({},t),{},{imps:r,nlog_id:u()});void 0===o?delete i.page_ad_req_id:i.page_ad_req_id=o,this.sendSingleData(e,i,n)}))}))}const r=fo(fo({},t),{},{nlog_id:u()});var o;"click"===t.type&&(o=r.nlog_id,Dt.set(Ft,o,Wt({expires:new Date(Date.now()+5e3)}))),this.sendSingleData(e,r,n)}sendSingleData(e,t,n){if("pageview"==t.type){const r=n.pageScope||Xe;this.lastPvEventByScope[r]={commonParam:e,event:t,sendOption:n},r===Xe&&(n.sendActLog?this.onPageViewSend(e,t,n):this.stopPvCallbacks())}this.pending?this.sendQueue.push({common:e,event:t,sendOption:n}):(this.flushSendQueue(),this.sendHttpRequest(e,t,n))}runBodyReturnCallback(e,t,n){const r=this.makeNlogBodyCommon(e,n),o=this.getSendUrl(n);if(n.bodyReturnCallback){const e=Ne.appendCksToUrl(o,r.cks),{cks:i}=r,a={url:e,body:fo(fo({},so(r,ao)),{},{evt:t})};n.bodyReturnCallback(a,n.tagId)}}sendHttpRequest(e,t,n){const{sendImmediate:r}=n;if(this.beaconBulkSender){const o=this.makeNlogBodyCommon(e,n);this.runBodyReturnCallback(e,t,n),this.beaconBulkSender.pushData(this.getSendUrl(n),o,t,r,n.nlogCallback),n.serviceCollectHost&&this.beaconBulkSender.pushData(this.getServiceCollectSendUrl(n),o,t,r,n.nlogCallback)}}makeNlogBodyCommon(e,t){var n;const{corp:r,svc:o,location:i,custom_usr:a,schema_svc_ver:c,cks:u,custom_params:s={}}=e,l=fo(fo({},this.appBridgeCustomParams),s);return fo(fo({corp:r,svc:o,location:i,send_ts:+new Date,tool:this.makeToolObj(t,c),usr:fo(fo({},this.appBridgeUsr),a),env:fo(fo(fo({},null!==(n=this.appBridgeEnv)&&void 0!==n?n:{}),this.getEnv()),e.custom_env)},jt(l)?{}:{custom_params:l}),{},{cks:u})}makeToolObj(e,t){const n={name:"ntm-web",ver:"v".concat(ro),schema_common_ver:"v20261007.0",schema_svc_ver:t};var r,o;(e.ntmVersion||e.versionName)&&(n.ver="nlogLibVersion=v".concat(ro,"; verName=").concat(null!==(r=e.versionName)&&void 0!==r?r:"","; ntmVersion=").concat(null!==(o=e.ntmVersion)&&void 0!==o?o:""));return n}setHighEntropyEnv(){const e=window.navigator.userAgentData,t="browser"!==Se();if(e||t){this.pending=!0;const n=e?e.getHighEntropyValues(["platformVersion","model","architecture","uaFullVersion","fullVersionList","brands","bitness","formFactors","wow64"]).then((t=>{this.chFields=((e,t)=>{const n=le(e),r={ch_pltf:e.platform,ch_mob:n,ch_mdl:t.model,ch_arch:t.architecture,ch_pltfv:t.platformVersion,ch_brs:t.brands,ch_bit:t.bitness,ch_ffs:t.formFactors,ch_wow64:t.wow64};return t.fullVersionList&&t.fullVersionList.length&&(r.ch_fvls=t.fullVersionList),r})(e,t),this.highEntropyEnv=((e,t)=>{var n;const r=le(e),{name:o,version:i}=null!==(n=(e=>{if(null==e||!e.length)return null;let t,n;for(const r of e){const e=r.brand.toLowerCase();if(e.includes("samsung")){t="SamsungBrowser",n=r.version;break}if(e.includes("whale")){t="Whale",n=r.version;break}if(e.includes("edg")){t="Edge",n=r.version;break}e.includes("chrome")&&!e.includes("chromium")&&(t="Chrome",n=r.version)}return t?{name:t,version:n}:null})(t.fullVersionList))&&void 0!==n?n:{};return{is_mobile:r,os_type:e.platform,os_ver:t.platformVersion,app_name:o,app_ver:i,device_model:t.model.trim()||void 0}})(e,t)})).catch((()=>{})):Promise.resolve(),r=t?(()=>{const e=Se();return"browser"===e?Promise.resolve(null):new Promise((t=>{const n="__nt_cb_".concat(Date.now(),"_").concat(Math.random().toString(36).slice(2)),r=()=>{delete window[n]},o=setTimeout((()=>{r(),t(null)}),1e3);window[n]=ue("[NLOG 2.0] AppBridge response callback failed",(e=>{clearTimeout(o),r(),e&&"object"==typeof e&&"ok"===e.status&&e.data&&"object"==typeof e.data?t({env:Oe(Ee(e.data.env),we),usr:Oe(Ee(e.data.usr),_e),custom_params:Ee(e.data.custom_params)}):t(null)}));const i=JSON.stringify({method:"getUsrEnvInfo",params:null,callbackId:n});try{const t=window;"ios"===e?t.webkit.messageHandlers[be].postMessage(i):t[be].send(i)}catch(e){clearTimeout(o),r(),t(null)}}))})().then((e=>{e&&(this.appBridgeEnv=(e=>{if(!e||"object"!=typeof e)return e;const t={};return Object.keys(e).forEach((n=>{const r=e[n];t[n]="string"==typeof r?r.trim():r})),t})(e.env),this.appBridgeUsr=e.usr,this.appBridgeCustomParams=e.custom_params)})).catch((()=>{})):Promise.resolve();Promise.all([n,r]).then(ue("[NLOG 2.0] flushSendQueue after env resolve failed",(()=>{this.pending=!1,this.flushSendQueue()})))}else this.pending=!1}getEnv(){const e=de(),{is_mobile:t}=e,n=so(e,co),r=this.highEntropyEnv,{is_mobile:o}=r,i=so(r,uo),a=(()=>{const e=navigator.userAgent,t={os_type:void 0,os_ver:void 0,app_name:void 0,app_ver:void 0};if(/nApps\s?\(/.test(e)){const r=e.toLowerCase();r.includes("android")?t.os_type="Android":r.includes("ios")||r.includes("iphone")||r.includes("ipad")||r.includes("watchos")?t.os_type="iOS":r.includes("windows")?t.os_type="Windows":r.includes("macos")&&(t.os_type="macOS");const o=e.match(/nApps\s?\((?:[A-Za-z]+\s+)+([0-9._]+);/);o&&(t.os_ver=o[1]);const i=e.match(/nApps\s?\([^;]+;\s*[^;]+;\s*([^;]+);\s*([^)]+)\)/);if(i){var n;const e=i[1].trim();t.app_name=null!==(n=pe[e])&&void 0!==n?n:e,t.app_ver=i[2].trim()}}if(/NAVER\s?\(inapp;/.test(e)){const n=e.match(/NAVER\s?\(inapp;\s*([^;]+);[^;]+;\s*([\d.]+)/);if(n){var r;const e=n[1].trim();t.app_name=null!==(r=pe[e])&&void 0!==r?r:e,t.app_ver=n[2]}}const o=e.match(/KAKAOTALK[\s/]*([\d.]+)?/i);o&&(t.app_name="KAKAOTALK",t.app_ver=o[1]);const i=e.match(/Instagram[\s/]*([\d.]+)?/i);i&&(t.app_name="Instagram",t.app_ver=i[1]);const a=e.match(/FBAV\/(\d+(?:\.\d+)*)/i);return a&&(t.app_name="Facebook",t.app_ver=a[1]),t})(),c=Ie(a,i,n,this.appBridgeEnv);return fo(fo({client_platform_type:o||t?"mo_web":"pc_web",br_sr:n.br_sr,br_ln:n.br_ln,br_theme:n.br_theme},c),this.chFields)}flushSendQueue(){this.sendQueue.length&&(this.sendQueue.forEach((e=>{const{common:t,event:n,sendOption:r}=e,{sendImmediate:o}=null!=r?r:{};this.beaconBulkSender&&(this.runBodyReturnCallback(t,n,r),this.beaconBulkSender.pushData(this.getSendUrl(r),this.makeNlogBodyCommon(t,r),n,o,r.nlogCallback),r.serviceCollectHost&&this.beaconBulkSender.pushData(this.getServiceCollectSendUrl(r),this.makeNlogBodyCommon(t,r),n,o,r.nlogCallback))})),this.sendQueue=[])}getProtocol(){return["http:","https:"].includes(location.protocol)?location.protocol:"https:"}getSendUrl(e){return e.customEndpoint?e.customEndpoint:"".concat(this.getProtocol(),"//").concat(e.host).concat(e.path)}getServiceCollectSendUrl(e){return"".concat(this.getProtocol(),"//").concat(e.serviceCollectHost).concat(e.path)}pruneInvalidTypeField(e){const t=fo({},e);for(let[e,n]of Object.entries(t)){if("click"===e&&n){const e=n;["p_x","p_y","s_x","s_y"].forEach((t=>{const n=null==e?void 0:e[t];if(!n)return;const r=typeof n;if("string"===r){const r=$(n);Number.isNaN(r)?delete e[t]:e[t]=r}else"number"!==r&&delete e[t]}))}const r=oo[e];r?(null==n&&delete t[e],typeof n!==r&&delete t[e]):delete t[e]}return t}sendPageviewActManually(e){const t=null==e?void 0:e[Ke];if(null!=t&&"string"!=typeof t)return void re.warn("NLOG 2.0: invalid page_scope for the manual act log (expected a string, got ".concat(typeof t,")"));const n=t||Xe,r=this.lastPvEventByScope[n];if(!r)return void re.log("NLOG 2.0: no pageview to base the manual act log on (page_scope: ".concat(n,")"));const{commonParam:o,event:i,sendOption:a}=r,c=this.makePageviewActLog(i),u=["sub_type"];for(const t of u)t in e&&(c[t]=e[t]);this.sendData(o,c,a)}onPageViewSend(e,t,n){this.hasScrolled=!1,this.lastPageviewOrActTime=+new Date,this.stopPvCallbacks(),this.pvIntervalId=window.setInterval(ue("[NLOG 2.0] pv interval callback failed",(()=>{if(+new Date-this.lastPageviewOrActTime>this.intervalDuration+this.intervalCheckMargin)this.stopPvCallbacks();else{if(document.hasFocus()&&this.hasScrolled){const r=this.makePageviewActLog(t);this.sendData(e,r,n),this.lastPageviewOrActTime=+new Date}else this.stopPvCallbacks();this.hasScrolled=!1}})),this.intervalDuration),document.addEventListener("scroll",this.pvScrollCallback,!0)}makePageviewActLog(e){const t={type:"pageview.act",evt_ts:+new Date},n=["page_id","page_ntm_id","page_code","page_code_alias","page_ref","page_url","page_query","page_params","area_params"];for(const r of n)r in e&&(t[r]=e[r]);return t}stopPvCallbacks(){this.pvIntervalId&&(window.clearInterval(this.pvIntervalId),this.pvIntervalId=void 0),document.removeEventListener("scroll",this.pvScrollCallback,!0)}}ce("[NLOG 2.0] lib bootstrap failed",(()=>{window.nlog_v2Lib||(window.nlog_v2Lib=new go)}))}()}();