var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function e(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var n,r,i,o,a,s,u,c,d,l,f,h,v,p,E,g,y={};function m(){if(r)return n;r=1;var e=function(t){return t&&t.Math===Math&&t};return n=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof t&&t)||e("object"==typeof n&&n)||function(){return this}()||Function("return this")()}function A(){return o?i:(o=1,i=function(t){try{return!!t()}catch(t){return!0}})}function S(){return s?a:(s=1,a=!A()(function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))}function R(){if(c)return u;c=1;var t=S(),e=Function.prototype,n=e.apply,r=e.call;return u="object"==typeof Reflect&&Reflect.apply||(t?r.bind(n):function(){return r.apply(n,arguments)}),u}function I(){if(l)return d;l=1;var t=S(),e=Function.prototype,n=e.call,r=t&&e.bind.bind(n,n);return d=t?r:function(t){return function(){return n.apply(t,arguments)}},d}function k(){if(h)return f;h=1;var t=I(),e=t({}.toString),n=t("".slice);return f=function(t){return n(e(t),8,-1)}}function T(){if(p)return v;p=1;var t=k(),e=I();return v=function(n){if("Function"===t(n))return e(n)}}function b(){if(g)return E;g=1;var t="object"==typeof document&&document.all;return E=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(t){return"function"==typeof t}}var D,_,w,O,L={};function C(){return _?D:(_=1,D=!A()(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))}function M(){if(O)return w;O=1;var t=S(),e=Function.prototype.call;return w=t?e.bind(e):function(){return e.apply(e,arguments)},w}var N,P,U,x,F,V,j,H,B,W,G,q,K,z,$,Q,Y,X,J,Z,tt,et,nt,rt,it,ot,at,st,ut,ct,dt,lt,ft,ht,vt,pt,Et,gt={};function yt(){if(N)return gt;N=1;var t={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,n=e&&!t.call({1:2},1);return gt.f=n?function(t){var n=e(this,t);return!!n&&n.enumerable}:t,gt}function mt(){return U?P:(U=1,P=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}})}function At(){if(F)return x;F=1;var t=I(),e=A(),n=k(),r=Object,i=t("".split);return x=e(function(){return!r("z").propertyIsEnumerable(0)})?function(t){return"String"===n(t)?i(t,""):r(t)}:r}function St(){return j?V:(j=1,V=function(t){return null==t})}function Rt(){if(B)return H;B=1;var t=St(),e=TypeError;return H=function(n){if(t(n))throw new e("Can't call method on "+n);return n}}function It(){if(G)return W;G=1;var t=At(),e=Rt();return W=function(n){return t(e(n))}}function kt(){if(K)return q;K=1;var t=b();return q=function(e){return"object"==typeof e?null!==e:t(e)}}function Tt(){return $?z:($=1,z={})}function bt(){if(Y)return Q;Y=1;var t=Tt(),e=m(),n=b(),r=function(t){return n(t)?t:void 0};return Q=function(n,i){return arguments.length<2?r(t[n])||r(e[n]):t[n]&&t[n][i]||e[n]&&e[n][i]},Q}function Dt(){return J?X:(J=1,X=I()({}.isPrototypeOf))}function _t(){if(tt)return Z;tt=1;var t=m().navigator,e=t&&t.userAgent;return Z=e?String(e):""}function wt(){if(nt)return et;nt=1;var t,e,n=m(),r=_t(),i=n.process,o=n.Deno,a=i&&i.versions||o&&o.version,s=a&&a.v8;return s&&(e=(t=s.split("."))[0]>0&&t[0]<4?1:+(t[0]+t[1])),!e&&r&&(!(t=r.match(/Edge\/(\d+)/))||t[1]>=74)&&(t=r.match(/Chrome\/(\d+)/))&&(e=+t[1]),et=e}function Ot(){if(it)return rt;it=1;var t=wt(),e=A(),n=m().String;return rt=!!Object.getOwnPropertySymbols&&!e(function(){var e=Symbol("symbol detection");return!n(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&t&&t<41}),rt}function Lt(){return at?ot:(at=1,ot=Ot()&&!Symbol.sham&&"symbol"==typeof Symbol.iterator)}function Ct(){if(ut)return st;ut=1;var t=bt(),e=b(),n=Dt(),r=Object;return st=Lt()?function(t){return"symbol"==typeof t}:function(i){var o=t("Symbol");return e(o)&&n(o.prototype,r(i))}}function Mt(){if(dt)return ct;dt=1;var t=String;return ct=function(e){try{return t(e)}catch(t){return"Object"}}}function Nt(){if(ft)return lt;ft=1;var t=b(),e=Mt(),n=TypeError;return lt=function(r){if(t(r))return r;throw new n(e(r)+" is not a function")}}function Pt(){if(vt)return ht;vt=1;var t=Nt(),e=St();return ht=function(n,r){var i=n[r];return e(i)?void 0:t(i)}}function Ut(){if(Et)return pt;Et=1;var t=M(),e=b(),n=kt(),r=TypeError;return pt=function(i,o){var a,s;if("string"===o&&e(a=i.toString)&&!n(s=t(a,i)))return s;if(e(a=i.valueOf)&&!n(s=t(a,i)))return s;if("string"!==o&&e(a=i.toString)&&!n(s=t(a,i)))return s;throw new r("Can't convert object to primitive value")}}var xt,Ft,Vt,jt,Ht,Bt,Wt,Gt,qt,Kt,zt,$t,Qt,Yt,Xt,Jt,Zt,te,ee,ne,re,ie,oe,ae,se,ue,ce,de,le={exports:{}};function fe(){return Ft?xt:(Ft=1,xt=!0)}function he(){if(jt)return Vt;jt=1;var t=m(),e=Object.defineProperty;return Vt=function(n,r){try{e(t,n,{value:r,configurable:!0,writable:!0})}catch(e){t[n]=r}return r}}function ve(){if(Ht)return le.exports;Ht=1;var t=fe(),e=m(),n=he(),r="__core-js_shared__",i=le.exports=e[r]||n(r,{});return(i.versions||(i.versions=[])).push({version:"3.49.0",mode:t?"pure":"global",copyright:"© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.49.0/LICENSE",source:"https://github.com/zloirock/core-js"}),le.exports}function pe(){if(Wt)return Bt;Wt=1;var t=ve();return Bt=function(e,n){return t[e]||(t[e]=n||{})}}function Ee(){if(qt)return Gt;qt=1;var t=Rt(),e=Object;return Gt=function(n){return e(t(n))}}function ge(){if(zt)return Kt;zt=1;var t=I(),e=Ee(),n=t({}.hasOwnProperty);return Kt=Object.hasOwn||function(t,r){return n(e(t),r)}}function ye(){if(Qt)return $t;Qt=1;var t=I(),e=0,n=Math.random(),r=t(1.1.toString);return $t=function(t){return"Symbol("+(void 0===t?"":t)+")_"+r(++e+n,36)}}function me(){if(Xt)return Yt;Xt=1;var t=m(),e=pe(),n=ge(),r=ye(),i=Ot(),o=Lt(),a=t.Symbol,s=e("wks"),u=o?a.for||a:a&&a.withoutSetter||r;return Yt=function(t){return n(s,t)||(s[t]=i&&n(a,t)?a[t]:u("Symbol."+t)),s[t]}}function Ae(){if(Zt)return Jt;Zt=1;var t=M(),e=kt(),n=Ct(),r=Pt(),i=Ut(),o=TypeError,a=me()("toPrimitive");return Jt=function(s,u){if(!e(s)||n(s))return s;var c,d=r(s,a);if(d){if(void 0===u&&(u="default"),c=t(d,s,u),!e(c)||n(c))return c;throw new o("Can't convert object to primitive value")}return void 0===u&&(u="number"),i(s,u)}}function Se(){if(ee)return te;ee=1;var t=Ae(),e=Ct();return te=function(n){var r=t(n,"string");return e(r)?r:r+""}}function Re(){if(re)return ne;re=1;var t=m(),e=kt(),n=t.document,r=e(n)&&e(n.createElement);return ne=function(t){return r?n.createElement(t):{}}}function Ie(){if(oe)return ie;oe=1;var t=C(),e=A(),n=Re();return ie=!t&&!e(function(){return 7!==Object.defineProperty(n("div"),"a",{get:function(){return 7}}).a})}function ke(){if(ae)return L;ae=1;var t=C(),e=M(),n=yt(),r=mt(),i=It(),o=Se(),a=ge(),s=Ie(),u=Object.getOwnPropertyDescriptor;return L.f=t?u:function(t,c){if(t=i(t),c=o(c),s)try{return u(t,c)}catch(t){}if(a(t,c))return r(!e(n.f,t,c),t[c])},L}function Te(){if(ue)return se;ue=1;var t=A(),e=b(),n=/#|\.prototype\./,r=function(n,r){var u=o[i(n)];return u===s||u!==a&&(e(r)?t(r):!!r)},i=r.normalize=function(t){return String(t).replace(n,".").toLowerCase()},o=r.data={},a=r.NATIVE="N",s=r.POLYFILL="P";return se=r}function be(){if(de)return ce;de=1;var t=T(),e=Nt(),n=S(),r=t(t.bind);return ce=function(t,i){return e(t),void 0===i?t:n?r(t,i):function(){return t.apply(i,arguments)}},ce}var De,_e,we,Oe,Le,Ce,Me,Ne,Pe,Ue,xe,Fe,Ve,je,He,Be,We,Ge,qe,Ke,ze,$e,Qe,Ye,Xe,Je,Ze,tn,en={};function nn(){return _e?De:(_e=1,De=C()&&A()(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}))}function rn(){if(Oe)return we;Oe=1;var t=kt(),e=String,n=TypeError;return we=function(r){if(t(r))return r;throw new n(e(r)+" is not an object")}}function on(){if(Le)return en;Le=1;var t=C(),e=Ie(),n=nn(),r=rn(),i=Se(),o=TypeError,a=Object.defineProperty,s=Object.getOwnPropertyDescriptor,u="enumerable",c="configurable",d="writable";return en.f=t?n?function(t,e,n){if(r(t),e=i(e),r(n),"function"==typeof t&&"prototype"===e&&"value"in n&&d in n&&!n[d]){var o=s(t,e);o&&o[d]&&(t[e]=n.value,n={configurable:c in n?n[c]:o[c],enumerable:u in n?n[u]:o[u],writable:!1})}return a(t,e,n)}:a:function(t,n,s){if(r(t),n=i(n),r(s),e)try{return a(t,n,s)}catch(t){}if("get"in s||"set"in s)throw new o("Accessors not supported");return"value"in s&&(t[n]=s.value),t},en}function an(){if(Me)return Ce;Me=1;var t=C(),e=on(),n=mt();return Ce=t?function(t,r,i){return e.f(t,r,n(1,i))}:function(t,e,n){return t[e]=n,t}}function sn(){if(Pe)return Ne;Pe=1;var t=m(),e=R(),n=T(),r=b(),i=ke().f,o=Te(),a=Tt(),s=be(),u=an(),c=ge(),d=function(t){var n=function(r,i,o){if(this instanceof n){switch(arguments.length){case 0:return new t;case 1:return new t(r);case 2:return new t(r,i)}return new t(r,i,o)}return e(t,this,arguments)};return n.prototype=t.prototype,n};return Ne=function(e,l){var f,h,v,p,E,g,y,m,A,S=e.target,R=e.global,I=e.stat,k=e.proto,T=R?t:I?t[S]:t[S]&&t[S].prototype,b=R?a:a[S]||u(a,S,{})[S],D=b.prototype;for(p in l)h=!(f=o(R?p:S+(I?".":"#")+p,e.forced))&&T&&c(T,p),g=b[p],h&&(y=e.dontCallGetSet?(A=i(T,p))&&A.value:T[p]),E=h&&y?y:l[p],(f||k||typeof g!=typeof E)&&(m=e.bind&&h?s(E,t):e.wrap&&h?d(E):k&&r(E)?n(E):E,(e.sham||E&&E.sham||g&&g.sham)&&u(m,"sham",!0),u(b,p,m),k&&(c(a,v=S+"Prototype")||u(a,v,{}),u(a[v],p,E),e.real&&D&&(f||!D[p])&&u(D,p,E)))}}function un(){if(xe)return Ue;xe=1;var t=ge();return Ue=function(e){return void 0!==e&&(t(e,"value")||t(e,"writable"))}}function cn(){if(Ve)return Fe;Ve=1;var t=pe(),e=ye(),n=t("keys");return Fe=function(t){return n[t]||(n[t]=e(t))}}function dn(){return He?je:(He=1,je=!A()(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))}function ln(){if(We)return Be;We=1;var t=ge(),e=b(),n=Ee(),r=cn(),i=dn(),o=r("IE_PROTO"),a=Object,s=a.prototype;return Be=i?a.getPrototypeOf:function(r){var i=n(r);if(t(i,o))return i[o];var u=i.constructor;return e(u)&&i instanceof u?u.prototype:i instanceof a?s:null}}function fn(){return Ke?qe:(Ke=1,function(){if(Ge)return y;Ge=1;var t=sn(),e=M(),n=kt(),r=rn(),i=un(),o=ke(),a=ln(),s=Se(),u=function(t,s,c){if(r(t)===c)return t[s];var d=o.f(t,s);if(d)return i(d)?d.value:void 0===d.get?void 0:e(d.get,c);var l=a(t);return n(l)?u(l,s,c):void 0};t({target:"Reflect",stat:!0},{get:function(t,e){return u(r(t),s(e),arguments.length<3?t:arguments[2])}})}(),qe=Tt().Reflect.get)}function hn(){return $e?ze:($e=1,ze=fn())}function vn(){return Ye?Qe:(Ye=1,Qe=hn())}function pn(){return Je?Xe:(Je=1,Xe=vn())}function En(){return tn?Ze:(tn=1,Ze=pn())}var gn,yn,mn,An,Sn,Rn,In,kn,Tn,bn,Dn,_n,wn,On,Ln,Cn,Mn,Nn,Pn,Un=e(En()),xn={};function Fn(){return yn?gn:(yn=1,gn=I()([].slice))}function Vn(){if(An)return mn;An=1;var t=I(),e=Nt(),n=kt(),r=ge(),i=Fn(),o=S(),a=Function,s=t([].concat),u=t([].join),c={};return mn=o?a.bind:function(t){var o=e(this),d=o.prototype,l=i(arguments,1),f=function(){var e=s(l,i(arguments));return this instanceof f?function(t,e,n){if(!r(c,e)){for(var i=[],o=0;o0?e:t)(r)}}function Hi(){if(fi)return li;fi=1;var t=ji();return li=function(e){var n=+e;return n!=n||0===n?0:t(n)}}function Bi(){if(vi)return hi;vi=1;var t=Hi(),e=Math.min;return hi=function(n){var r=t(n);return r>0?e(r,9007199254740991):0}}function Wi(){if(Ei)return pi;Ei=1;var t=Bi();return pi=function(e){return t(e.length)}}function Gi(){if(yi)return gi;yi=1;var t=TypeError;return gi=function(e){if(e>9007199254740991)throw new t("Maximum allowed index exceeded");return e}}function qi(){if(Ai)return mi;Ai=1;var t=C(),e=on(),n=mt();return mi=function(r,i,o){t?e.f(r,i,n(0,o)):r[i]=o}}function Ki(){if(Ri)return Si;Ri=1;var t=C(),e=Vi(),n=TypeError,r=Object.getOwnPropertyDescriptor,i=t&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();return Si=i?function(t,i){if(e(t)&&!r(t,"length").writable)throw new n("Cannot set read only .length");return t.length=i}:function(t,e){return t.length=e}}function zi(){if(ki)return Ii;ki=1;var t={};return t[me()("toStringTag")]="z",Ii="[object z]"===String(t)}function $i(){if(bi)return Ti;bi=1;var t=zi(),e=b(),n=k(),r=me()("toStringTag"),i=Object,o="Arguments"===n(function(){return arguments}());return Ti=t?n:function(t){var a,s,u;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(s=function(t,e){try{return t[e]}catch(t){}}(a=i(t),r))?s:o?n(a):"Object"===(u=n(a))&&e(a.callee)?"Arguments":u}}function Qi(){if(_i)return Di;_i=1;var t=I(),e=b(),n=ve(),r=t(Function.toString);return e(n.inspectSource)||(n.inspectSource=function(t){return r(t)}),Di=n.inspectSource}function Yi(){if(Oi)return wi;Oi=1;var t=I(),e=A(),n=b(),r=$i(),i=bt(),o=Qi(),a=function(){},s=i("Reflect","construct"),u=/^\s*(?:class|function)\b/,c=t(u.exec),d=!u.test(a),l=function(t){if(!n(t))return!1;try{return s(a,[],t),!0}catch(t){return!1}},f=function(t){if(!n(t))return!1;switch(r(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return d||!!c(u,o(t))}catch(t){return!0}};return f.sham=!0,wi=!s||e(function(){var t;return l(l.call)||!l(Object)||!l(function(){t=!0})||t})?f:l}function Xi(){if(Ci)return Li;Ci=1;var t=Vi(),e=Yi(),n=kt(),r=me()("species"),i=Array;return Li=function(o){var a;return t(o)&&(a=o.constructor,(e(a)&&(a===i||t(a.prototype))||n(a)&&null===(a=a[r]))&&(a=void 0)),void 0===a?i:a}}function Ji(){if(Ni)return Mi;Ni=1;var t=Xi();return Mi=function(e,n){return new(t(e))(0===n?0:n)}}function Zi(){if(Ui)return Pi;Ui=1;var t=A(),e=me(),n=wt(),r=e("species");return Pi=function(e){return n>=51||!t(function(){var t=[];return(t.constructor={})[r]=function(){return{foo:1}},1!==t[e](Boolean).foo})}}var to,eo,no={},ro={};function io(){if(eo)return to;eo=1;var t=$i(),e=String;return to=function(n){if("Symbol"===t(n))throw new TypeError("Cannot convert a Symbol value to a string");return e(n)}}var oo,ao,so,uo,co,lo,fo,ho,vo,po,Eo,go,yo,mo,Ao,So,Ro,Io={};function ko(){if(ao)return oo;ao=1;var t=Hi(),e=Math.max,n=Math.min;return oo=function(r,i){var o=t(r);return o<0?e(o+i,0):n(o,i)}}function To(){if(uo)return so;uo=1;var t=It(),e=ko(),n=Wi(),r=function(r){return function(i,o,a){var s=t(i),u=n(s);if(0===u)return!r&&-1;var c,d=e(a,u);if(r&&o!=o){for(;u>d;)if((c=s[d++])!=c)return!0}else for(;u>d;d++)if((r||d in s)&&s[d]===o)return r||d||0;return!r&&-1}};return so={includes:r(!0),indexOf:r(!1)}}function bo(){return lo?co:(lo=1,co={})}function Do(){if(ho)return fo;ho=1;var t=I(),e=ge(),n=It(),r=To().indexOf,i=bo(),o=t([].push);return fo=function(t,a){var s,u=n(t),c=0,d=[];for(s in u)!e(i,s)&&e(u,s)&&o(d,s);for(;a.length>c;)e(u,s=a[c++])&&(~r(d,s)||o(d,s));return d}}function _o(){return po?vo:(po=1,vo=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"])}function wo(){if(go)return Eo;go=1;var t=Do(),e=_o();return Eo=Object.keys||function(n){return t(n,e)}}function Oo(){if(yo)return Io;yo=1;var t=C(),e=nn(),n=on(),r=rn(),i=It(),o=wo();return Io.f=t&&!e?Object.defineProperties:function(t,e){r(t);for(var a,s=i(e),u=o(e),c=u.length,d=0;c>d;)n.f(t,a=u[d++],s[a]);return t},Io}function Lo(){return Ao?mo:(Ao=1,mo=bt()("document","documentElement"))}function Co(){if(Ro)return So;Ro=1;var t,e=rn(),n=Oo(),r=_o(),i=bo(),o=Lo(),a=Re(),s="prototype",u="script",c=cn()("IE_PROTO"),d=function(){},l=function(t){return"<"+u+">"+t+""},f=function(t){t.write(l("")),t.close();var e=t.parentWindow.Object;return t=null,e},h=function(){try{t=new ActiveXObject("htmlfile")}catch(t){}var e,n,i;h="undefined"!=typeof document?document.domain&&t?f(t):(n=a("iframe"),i="java"+u+":",n.style.display="none",o.appendChild(n),n.src=String(i),(e=n.contentWindow.document).open(),e.write(l("document.F=Object")),e.close(),e.F):f(t);for(var c=r.length;c--;)delete h[s][r[c]];return h()};return i[c]=!0,So=Object.create||function(t,r){var i;return null!==t?(d[s]=e(t),i=new d,d[s]=null,i[c]=t):i=h(),void 0===r?i:n.f(i,r)}}var Mo,No={};function Po(){if(Mo)return No;Mo=1;var t=Do(),e=_o().concat("length","prototype");return No.f=Object.getOwnPropertyNames||function(n){return t(n,e)},No}var Uo,xo={};function Fo(){if(Uo)return xo;Uo=1;var t=k(),e=It(),n=Po().f,r=Fn(),i="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];return xo.f=function(o){return i&&"Window"===t(o)?function(t){try{return n(t)}catch(t){return r(i)}}(o):n(e(o))},xo}var Vo,jo,Ho,Bo,Wo,Go={};function qo(){return Vo||(Vo=1,Go.f=Object.getOwnPropertySymbols),Go}function Ko(){if(Ho)return jo;Ho=1;var t=an();return jo=function(e,n,r,i){return i&&i.enumerable?e[n]=r:t(e,n,r),e}}function zo(){if(Wo)return Bo;Wo=1;var t=on();return Bo=function(e,n,r){return t.f(e,n,r)}}var $o,Qo,Yo,Xo,Jo,Zo,ta,ea,na,ra,ia,oa,aa,sa,ua,ca,da={};function la(){if($o)return da;$o=1;var t=me();return da.f=t,da}function fa(){if(Yo)return Qo;Yo=1;var t=Tt(),e=ge(),n=la(),r=on().f;return Qo=function(i){var o=t.Symbol||(t.Symbol={});e(o,i)||r(o,i,{value:n.f(i)})}}function ha(){if(Jo)return Xo;Jo=1;var t=M(),e=bt(),n=me(),r=Ko();return Xo=function(){var i=e("Symbol"),o=i&&i.prototype,a=o&&o.valueOf,s=n("toPrimitive");o&&!o[s]&&r(o,s,function(e){return t(a,this)},{arity:1})}}function va(){if(ta)return Zo;ta=1;var t=zi(),e=$i();return Zo=t?{}.toString:function(){return"[object "+e(this)+"]"}}function pa(){if(na)return ea;na=1;var t=zi(),e=on().f,n=an(),r=ge(),i=va(),o=me()("toStringTag");return ea=function(a,s,u,c){var d=u?a:a&&a.prototype;d&&(r(d,o)||e(d,o,{configurable:!0,value:s}),c&&!t&&n(d,"toString",i))}}function Ea(){if(ia)return ra;ia=1;var t=m(),e=b(),n=t.WeakMap;return ra=e(n)&&/native code/.test(String(n))}function ga(){if(aa)return oa;aa=1;var t,e,n,r=Ea(),i=m(),o=kt(),a=an(),s=ge(),u=ve(),c=cn(),d=bo(),l="Object already initialized",f=i.TypeError,h=i.WeakMap;if(r||u.state){var v=u.state||(u.state=new h);v.get=v.get,v.has=v.has,v.set=v.set,t=function(t,e){if(v.has(t))throw new f(l);return e.facade=t,v.set(t,e),e},e=function(t){return v.get(t)||{}},n=function(t){return v.has(t)}}else{var p=c("state");d[p]=!0,t=function(t,e){if(s(t,p))throw new f(l);return e.facade=t,a(t,p,e),e},e=function(t){return s(t,p)?t[p]:{}},n=function(t){return s(t,p)}}return oa={set:t,get:e,has:n,enforce:function(r){return n(r)?e(r):t(r,{})},getterFor:function(t){return function(n){var r;if(!o(n)||(r=e(n)).type!==t)throw new f("Incompatible receiver, "+t+" required");return r}}}}function ya(){if(ua)return sa;ua=1;var t=be(),e=At(),n=Ee(),r=Wi(),i=Ji(),o=qi(),a=function(a){var s=1===a,u=2===a,c=3===a,d=4===a,l=6===a,f=7===a,h=5===a||l;return function(v,p,E){for(var g,y,m=n(v),A=e(m),S=r(A),R=t(p,E),I=0,k=0,T=s?i(v,S):u||f?i(v,0):void 0;S>I;I++)if((h||I in A)&&(y=R(g=A[I],I,m),a))if(s)o(T,I,y);else if(y)switch(a){case 3:return!0;case 5:return g;case 6:return I;case 2:o(T,k++,g)}else switch(a){case 4:return!1;case 7:o(T,k++,g)}return l?-1:c||d?d:T}};return sa={forEach:a(0),map:a(1),filter:a(2),some:a(3),every:a(4),find:a(5),findIndex:a(6),filterReject:a(7)}}var ma,Aa,Sa,Ra={};function Ia(){return Aa?ma:(Aa=1,ma=Ot()&&!!Symbol.for&&!!Symbol.keyFor)}var ka,Ta={};var ba,Da,_a,wa,Oa,La,Ca,Ma={};function Na(){if(Da)return ba;Da=1;var t=kt(),e=ga().get;return ba=function(n){if(!t(n))return!1;var r=e(n);return!!r&&"RawJSON"===r.type}}function Pa(){if(wa)return _a;wa=1;var t=I(),e=ge(),n=SyntaxError,r=parseInt,i=String.fromCharCode,o=t("".charAt),a=t("".slice),s=t(/./.exec),u={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":"\n","\\r":"\r","\\t":"\t"},c=/^[\da-f]{4}$/i,d=/^[\u0000-\u001F]$/;return _a=function(t,l){for(var f=!0,h="";l=51||!e(function(){var t=[];return t[h]=!1,t.concat()[0]!==t}),p=function(t){if(!r(t))return!1;var e=t[h];return void 0!==e?!!e:n(t)};t({target:"Array",proto:!0,arity:1,forced:!v||!d("concat")},{concat:function(t){var e,n,r,d,l,f=i(this),h=c(f,0),v=0;for(e=-1,r=arguments.length;e=e.length)return t.target=null,a(void 0,!0);switch(t.kind){case"keys":return a(n,!1);case"values":return a(e[n],!1)}return a([n,e[n]],!1)},"values");var f=n.Arguments=n.Array;if(e("keys"),e("values"),e("entries"),!s&&u&&"values"!==f.name)try{i(f,"name",{value:"values"})}catch(t){}return Os}function Ks(){return Ms?Cs:(Ms=1,Cs={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})}function zs(){if(Ns)return xs;Ns=1,qs();var t=Ks(),e=m(),n=pa(),r=Vs();for(var i in t)n(e[i],i),r[i]=r.Array;return xs}function $s(){if(Us)return Ps;Us=1;var t=ps();return zs(),Ps=t}var Qs,Ys={};var Xs;var Js;var Zs,tu,eu;function nu(){if(eu)return tu;eu=1;var t=$s();return function(){if(Qs)return Ys;Qs=1;var t=me(),e=on().f,n=t("metadata"),r=Function.prototype;void 0===r[n]&&e(r,n,{value:null})}(),Xs||(Xs=1,Wa()),Js||(Js=1,za()),Zs||(Zs=1,fa()("metadata")),tu=t}var ru,iu,ou;function au(){if(iu)return ru;iu=1;var t=bt(),e=I(),n=t("Symbol"),r=n.keyFor,i=e(n.prototype.valueOf);return ru=n.isRegisteredSymbol||function(t){try{return void 0!==r(i(t))}catch(t){return!1}}}var su,uu,cu;function du(){if(uu)return su;uu=1;for(var t=pe(),e=bt(),n=I(),r=Ct(),i=me(),o=e("Symbol"),a=o.isWellKnownSymbol,s=e("Object","getOwnPropertyNames"),u=n(o.prototype.valueOf),c=t("wks"),d=0,l=s(o),f=l.length;d=h?t?"":void 0:(c=o(l,f))<55296||c>56319||f+1===h||(d=o(l,f+1))<56320||d>57343?t?i(l,f):c:t?a(l,f,f+2):d-56320+(c-55296<<10)+65536}};return Tu={codeAt:s(!1),charAt:s(!0)}}function Hu(){if(Du)return Vu;Du=1;var t=ju().charAt,e=io(),n=ga(),r=Ws(),i=Gs(),o="String Iterator",a=n.set,s=n.getterFor(o);return r(String,"String",function(t){a(this,{type:o,string:e(t),index:0})},function(){var e,n=s(this),r=n.string,o=n.index;return o>=r.length?i(void 0,!0):(e=t(r,o),n.index+=e.length,i(e,!1))}),Vu}function Bu(){return wu?_u:(wu=1,qs(),Hu(),Ja(),_u=la().f("iterator"))}function Wu(){if(Lu)return Ou;Lu=1;var t=Bu();return zs(),Ou=t}function Gu(){return Mu?Cu:(Mu=1,Cu=Wu())}function qu(){return Pu?Nu:(Pu=1,Nu=Gu())}function Ku(){return xu?Uu:(xu=1,Uu=qu())}var zu=e(Ku());function $u(t){return $u="function"==typeof Fu&&"symbol"==typeof zu?function(t){return typeof t}:function(t){return t&&"function"==typeof Fu&&t.constructor===Fu&&t!==Fu.prototype?"symbol":typeof t},$u(t)}function Qu(t,e){if(e&&("object"==$u(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}var Yu,Xu,Ju,Zu,tc,ec,nc,rc,ic,oc,ac;function sc(){if(Ju)return Xu;Ju=1,Yu||(Yu=1,sn()({target:"Object",stat:!0,sham:!C()},{create:Co()}));var t=Tt().Object;return Xu=function(e,n){return t.create(e,n)}}function uc(){return tc?Zu:(tc=1,Zu=sc())}function cc(){return nc?ec:(nc=1,ec=uc())}function dc(){return ic?rc:(ic=1,rc=cc())}function lc(){return ac?oc:(ac=1,oc=dc())}var fc,hc,vc,pc,Ec,gc,yc,mc,Ac,Sc,Rc=e(lc()),Ic={exports:{}},kc={};function Tc(){if(fc)return kc;fc=1;var t=sn(),e=C(),n=on().f;return t({target:"Object",stat:!0,forced:Object.defineProperty!==n,sham:!e},{defineProperty:n}),kc}function bc(){if(hc)return Ic.exports;hc=1,Tc();var t=Tt().Object,e=Ic.exports=function(e,n,r){return t.defineProperty(e,n,r)};return t.defineProperty.sham&&(e.sham=!0),Ic.exports}function Dc(){return pc?vc:(pc=1,vc=bc())}function _c(){return gc?Ec:(gc=1,Ec=Dc())}function wc(){return mc?yc:(mc=1,yc=_c())}function Oc(){return Sc?Ac:(Sc=1,Ac=wc())}var Lc,Cc,Mc,Nc,Pc,Uc,xc,Fc,Vc,jc,Hc=e(Oc());function Bc(t,e){var n;return Bc=Xr?rr(n=Xr).call(n):function(t,e){return t.__proto__=e,t},Bc(t,e)}function Wc(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Rc(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Hc(t,"prototype",{writable:!1}),e&&Bc(t,e)}function Gc(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function qc(){return Cc?Lc:(Cc=1,ss(),Lc=la().f("toPrimitive"))}function Kc(){return Nc?Mc:(Nc=1,Mc=qc())}function zc(){return Uc?Pc:(Uc=1,Pc=Kc())}function $c(){return Fc?xc:(Fc=1,xc=zc())}function Qc(){return jc?Vc:(jc=1,Vc=$c())}var Yc=e(Qc());function Xc(t){var e=function(t,e){if("object"!=$u(t)||!t)return t;var n=t[Yc];if(void 0!==n){var r=n.call(t,e);if("object"!=$u(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==$u(e)?e:e+""}function Jc(t,e){for(var n=0;ny;y++)if((A=O(h[y]))&&a(f,A))return A;return new l(!1)}E=s(h,g)}for(S=T?h.next:E.next;!(R=e(S,E)).done;){var L=R.value;try{A=O(L)}catch(t){if(!E)throw t;c(E,"throw",t)}if("object"==typeof A&&A&&a(f,A))return A}return new l(!1)},Ed}function Hd(){if(md)return yd;md=1;var t=Dt(),e=TypeError;return yd=function(n,r){if(t(r,n))return n;throw new e("Incorrect invocation")}}function Bd(){if(Sd)return Ad;Sd=1;var t=sn(),e=m(),n=Pd(),r=M(),i=A(),o=an(),a=jd(),s=Hd(),u=b(),c=kt(),d=St(),l=pa(),f=on().f,h=ya().forEach,v=C(),p=ga(),E=p.set,g=p.getterFor;return Ad=function(p,y,m){var A,S=-1!==p.indexOf("Map"),R=-1!==p.indexOf("Weak"),I=S?"set":"add",k=e[p],T=k&&k.prototype,b={};if(v&&u(k)&&(R||T.forEach&&!i(function(){(new k).entries().next()}))){var D=(A=y(function(t,e){E(s(t,D),{type:p,collection:new k}),d(e)||a(e,t[I],{that:t,AS_ENTRIES:S})})).prototype,_=g(p);h(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(t){var e="add"===t||"set"===t;!(t in T)||R&&"clear"===t||o(D,t,function(n,i){var o=this,a=_(o).collection;if(!e&&R&&!c(n))return"get"===t&&void 0;var s=a[t]("forEach"===t?function(t,e){r(n,i,t,e,o)}:0===n?0:n,i);return e?o:s})}),R||f(D,"size",{configurable:!0,get:function(){return _(this).collection.size}})}else A=m.getConstructor(y,p,S,I),n.enable();return l(A,p,!1,!0),b[p]=A,t({global:!0,forced:!0},b),R||m.setStrong(A,p,S),A}}function Wd(){if(Id)return Rd;Id=1;var t=Ko();return Rd=function(e,n,r){for(var i in n)r&&r.unsafe&&e[i]?e[i]=n[i]:t(e,i,n[i],r);return e}}function Gd(){if(Td)return kd;Td=1;var t=bt(),e=zo(),n=me(),r=C(),i=n("species");return kd=function(n){var o=t(n);r&&o&&!o[i]&&e(o,i,{configurable:!0,get:function(){return this}})}}function qd(){if(Dd)return bd;Dd=1;var t=Co(),e=zo(),n=Wd(),r=be(),i=Hd(),o=St(),a=jd(),s=Ws(),u=Gs(),c=Gd(),d=C(),l=Pd().fastKey,f=ga(),h=f.set,v=f.getterFor;return bd={getConstructor:function(s,u,c,f){var p=s(function(e,n){i(e,E),h(e,{type:u,index:t(null),first:null,last:null,size:0}),d||(e.size=0),o(n)||a(n,e[f],{that:e,AS_ENTRIES:c})}),E=p.prototype,g=v(u),y=function(t,e,n){var r,i,o=g(t),a=m(t,e);return a?a.value=n:(o.last=a={index:i=l(e,!0),key:e,value:n,previous:r=o.last,next:null,removed:!1},o.first||(o.first=a),r&&(r.next=a),d?o.size++:t.size++,"F"!==i&&(o.index[i]=a)),t},m=function(t,e){var n,r=g(t),i=l(e);if("F"!==i)return r.index[i];for(n=r.first;n;n=n.next)if(n.key===e)return n};return n(E,{clear:function(){for(var e=g(this),n=e.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=null),n=n.next;e.first=e.last=null,e.index=t(null),d?e.size=0:this.size=0},delete:function(t){var e=this,n=g(e),r=m(e,t);if(r){var i=r.next,o=r.previous;delete n.index[r.index],r.removed=!0,o&&(o.next=i),i&&(i.previous=o),n.first===r&&(n.first=i),n.last===r&&(n.last=o),d?n.size--:e.size--}return!!r},forEach:function(t){for(var e,n=g(this),i=r(t,arguments.length>1?arguments[1]:void 0);e=e?e.next:n.first;)for(i(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!m(this,t)}}),n(E,c?{get:function(t){var e=m(this,t);return e&&e.value},set:function(t,e){return y(this,0===t?0:t,e)}}:{add:function(t){return y(this,t=0===t?0:t,t)}}),d&&e(E,"size",{configurable:!0,get:function(){return g(this).size}}),p},setStrong:function(t,e,n){var r=e+" Iterator",i=v(e),o=v(r);s(t,e,function(t,e){h(this,{type:r,target:t,state:i(t),kind:e,last:null})},function(){for(var t=o(this),e=t.kind,n=t.last;n&&n.removed;)n=n.previous;return t.target&&(t.last=n=n?n.next:t.state.first)?u("keys"===e?n.key:"values"===e?n.value:[n.key,n.value],!1):(t.target=null,u(void 0,!0))},n?"entries":"values",!n,!0),c(e)}},bd}function Kd(){return wd||(wd=1,_d||(_d=1,Bd()("Map",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},qd()))),Od}var zd,$d,Qd,Yd,Xd,Jd={};function Zd(){return $d?zd:($d=1,zd=function(t,e){return 1===e?function(e,n){return e[t](n)}:function(e,n,r){return e[t](n,r)}})}function tl(){if(Yd)return Qd;Yd=1;var t=bt(),e=Zd(),n=t("Map");return Qd={Map:n,set:e("set",2),get:e("get",1),has:e("has",1),remove:e("delete",1),proto:n.prototype}}function el(){if(Xd)return Jd;Xd=1;var t=sn(),e=I(),n=Nt(),r=Rt(),i=jd(),o=tl(),a=fe(),s=A(),u=o.Map,c=o.has,d=o.get,l=o.set,f=e([].push),h=a||s(function(){return 1!==u.groupBy("ab",function(t){return t}).get("a").length});return t({target:"Map",stat:!0,forced:a||h},{groupBy:function(t,e){r(t),n(e);var o=new u,a=0;return i(t,function(t){var n=e(t,a++);c(o,n)?f(d(o,n),t):l(o,n,[t])}),o}}),Jd}var nl,rl={};function il(){if(nl)return rl;nl=1;var t=sn(),e=tl(),n=fe(),r=e.get,i=e.has,o=e.set;return t({target:"Map",proto:!0,real:!0,forced:n},{getOrInsert:function(t,e){return i(this,t)?r(this,t):(o(this,t,e),e)}}),rl}var ol,al,sl,ul,cl,dl={};function ll(){if(ol)return dl;ol=1;var t=sn(),e=Nt(),n=tl(),r=fe(),i=n.get,o=n.has,a=n.set;return t({target:"Map",proto:!0,real:!0,forced:r},{getOrInsertComputed:function(t,n){var r=o(this,t);if(e(n),r)return i(this,t);0===t&&1/t==-1/0&&(t=0);var s=n(t);return a(this,t,s),s}}),dl}function fl(){return sl?al:(sl=1,qs(),Kd(),el(),il(),ll(),Hu(),al=Tt().Map)}function hl(){if(cl)return ul;cl=1;var t=fl();return zs(),ul=t}var vl,pl={};function El(){return vl||(vl=1,il()),pl}var gl,yl={};function ml(){return gl||(gl=1,ll()),yl}var Al,Sl,Rl;function Il(){if(Rl)return Sl;Rl=1;var t=hl();return El(),ml(),Al||(Al=1,el()),Sl=t}var kl,Tl,bl,Dl={};function _l(){if(Tl)return kl;Tl=1;var t=be(),e=rn(),n=Ee(),r=jd();return kl=function(i,o,a){return function(s){var u=n(s),c=arguments.length,d=c>1?arguments[1]:void 0,l=void 0!==d,f=l?t(d,c>2?arguments[2]:void 0):void 0,h=new i,v=0;return r(u,function(t){var n=l?f(t,v++):t;a?o(h,e(n)[0],n[1]):o(h,n)}),h}},kl}var wl,Ol,Ll,Cl={};function Ml(){if(Ol)return wl;Ol=1;var t=rn();return wl=function(e,n,r){return function(){for(var i=new e,o=arguments.length,a=0;a2?arguments[2]:void 0;if(!n(a)&&!n(f))throw new i("At least one callback required");return t(d,u,o)?(s=t(c,u,o),n(a)&&(s=a(s),t(l,u,o,s))):n(f)&&(s=f(),t(l,u,o,s)),s},If}var Df,_f,wf,Of,Lf;function Cf(){if(wf)return _f;wf=1;var t=Il();return function(){if(bl)return Dl;bl=1;var t=sn(),e=tl();t({target:"Map",stat:!0,forced:!0},{from:_l()(e.Map,e.set,!0)})}(),function(){if(Ll)return Cl;Ll=1;var t=sn(),e=tl();t({target:"Map",stat:!0,forced:!0},{of:Ml()(e.Map,e.set,!0)})}(),function(){if(Nl)return Pl;Nl=1;var t=sn(),e=M(),n=jd(),r=b(),i=Nt(),o=tl().Map;t({target:"Map",stat:!0,forced:!0},{keyBy:function(t,a){var s=new(r(this)?this:o);i(a);var u=i(s.set);return n(t,function(t){e(u,s,a(t),t)}),s}})}(),function(){if(Fl)return Vl;Fl=1;var t=sn(),e=jl(),n=tl().remove;t({target:"Map",proto:!0,real:!0,forced:!0},{deleteAll:function(){for(var t,r=e(this),i=!0,o=0,a=arguments.length;o1?arguments[1]:void 0);return!1!==r(i,function(t,e){if(!o(t,e,i))return!1},!0)}})}(),function(){if(Xl)return Jl;Xl=1;var t=sn(),e=be(),n=jl(),r=tl(),i=Yl(),o=r.Map,a=r.set;t({target:"Map",proto:!0,real:!0,forced:!0},{filter:function(t){var r=n(this),s=e(t,arguments.length>1?arguments[1]:void 0),u=new o;return i(r,function(t,e){s(t,e,r)&&a(u,e,t)}),u}})}(),function(){if(Zl)return tf;Zl=1;var t=sn(),e=be(),n=jl(),r=Yl();t({target:"Map",proto:!0,real:!0,forced:!0},{find:function(t){var i=n(this),o=e(t,arguments.length>1?arguments[1]:void 0),a=r(i,function(t,e){if(o(t,e,i))return{value:t}},!0);return a&&a.value}})}(),function(){if(ef)return nf;ef=1;var t=sn(),e=be(),n=jl(),r=Yl();t({target:"Map",proto:!0,real:!0,forced:!0},{findKey:function(t){var i=n(this),o=e(t,arguments.length>1?arguments[1]:void 0),a=r(i,function(t,e){if(o(t,e,i))return{key:e}},!0);return a&&a.key}})}(),function(){if(af)return sf;af=1;var t=sn(),e=uf(),n=jl(),r=Yl();t({target:"Map",proto:!0,real:!0,forced:!0},{includes:function(t){return!0===r(n(this),function(n){if(e(n,t))return!0},!0)}})}(),El(),ml(),function(){if(cf)return df;cf=1;var t=sn(),e=jl(),n=Yl();t({target:"Map",proto:!0,real:!0,forced:!0},{keyOf:function(t){var r=n(e(this),function(e,n){if(e===t)return{key:n}},!0);return r&&r.key}})}(),function(){if(lf)return ff;lf=1;var t=sn(),e=be(),n=jl(),r=tl(),i=Yl(),o=r.Map,a=r.set;t({target:"Map",proto:!0,real:!0,forced:!0},{mapKeys:function(t){var r=n(this),s=e(t,arguments.length>1?arguments[1]:void 0),u=new o;return i(r,function(t,e){a(u,s(t,e,r),t)}),u}})}(),function(){if(hf)return vf;hf=1;var t=sn(),e=be(),n=jl(),r=tl(),i=Yl(),o=r.Map,a=r.set;t({target:"Map",proto:!0,real:!0,forced:!0},{mapValues:function(t){var r=n(this),s=e(t,arguments.length>1?arguments[1]:void 0),u=new o;return i(r,function(t,e){a(u,e,s(t,e,r))}),u}})}(),function(){if(pf)return Ef;pf=1;var t=sn(),e=jl(),n=jd(),r=tl().set;t({target:"Map",proto:!0,real:!0,arity:1,forced:!0},{merge:function(t){for(var i=e(this),o=arguments.length,a=0;a1?arguments[1]:void 0);return!0===r(i,function(t,e){if(o(t,e,i))return!0},!0)}})}(),function(){if(Sf)return Rf;Sf=1;var t=sn(),e=Nt(),n=jl(),r=tl(),i=TypeError,o=r.get,a=r.has,s=r.set;t({target:"Map",proto:!0,real:!0,forced:!0},{update:function(t,r){var u=n(this),c=arguments.length;e(r);var d=a(u,t);if(!d&&c<3)throw new i("Updating absent value");var l=d?o(u,t):e(c>2?arguments[2]:void 0)(t,u);return s(u,t,r(l,t,u)),u}})}(),Tf||(Tf=1,sn()({target:"Map",proto:!0,real:!0,forced:!0},{upsert:bf()})),Df||(Df=1,sn()({target:"Map",proto:!0,real:!0,name:"upsert",forced:!0},{updateOrInsert:bf()})),_f=t}function Mf(){return Lf?Of:(Lf=1,Of=Cf())}var Nf,Pf,Uf,xf,Ff,Vf,jf,Hf,Bf,Wf,Gf,qf,Kf,zf,$f,Qf=e(Mf()),Yf={};function Xf(){if(Pf)return Nf;Pf=1;var t=A();return Nf=function(e,n){var r=[][e];return!!r&&t(function(){r.call(null,n||function(){return 1},1)})}}function Jf(){return Ff?xf:(Ff=1,function(){if(Uf)return Yf;Uf=1;var t=sn(),e=T(),n=To().indexOf,r=Xf(),i=e([].indexOf),o=!!i&&1/i([1],1,-0)<0;t({target:"Array",proto:!0,forced:o||!r("indexOf")},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return o?i(this,t,e)||0:n(this,t,e)}})}(),xf=jn()("Array","indexOf"))}function Zf(){if(jf)return Vf;jf=1;var t=Dt(),e=Jf(),n=Array.prototype;return Vf=function(r){var i=r.indexOf;return r===n||t(n,r)&&i===n.indexOf?e:i}}function th(){return Bf?Hf:(Bf=1,Hf=Zf())}function eh(){return Gf?Wf:(Gf=1,Wf=th())}function nh(){return Kf?qf:(Kf=1,qf=eh())}function rh(){return $f?zf:($f=1,zf=nh())}var ih=e(rh());var oh,ah,sh,uh,ch,dh,lh,fh,hh,vh,ph,Eh,gh,yh={};function mh(){if(ah)return oh;ah=1;var t=Yi(),e=Mt(),n=TypeError;return oh=function(r){if(t(r))return r;throw new n(e(r)+" is not a constructor")}}function Ah(){return ch?uh:(ch=1,function(){if(sh)return yh;sh=1;var t=sn(),e=bt(),n=R(),r=Vn(),i=mh(),o=rn(),a=kt(),s=Co(),u=A(),c=e("Reflect","construct"),d=Object.prototype,l=[].push,f=u(function(){function t(){}return!(c(function(){},[],t)instanceof t)}),h=!u(function(){c(function(){})}),v=f||h;t({target:"Reflect",stat:!0,forced:v,sham:v},{construct:function(t,e){i(t);var u=arguments.length<3?t:i(arguments[2]);if(o(e),h&&!f)return c(t,e,u);if(t===u){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var v=[null];return n(l,v,e),new(n(r,t,v))}var p=u.prototype,E=s(a(p)?p:d),g=n(t,E,e);return a(g)?g:E}})}(),uh=Tt().Reflect.construct)}function Sh(){return lh?dh:(lh=1,dh=Ah())}function Rh(){return hh?fh:(hh=1,fh=Sh())}function Ih(){return ph?vh:(ph=1,vh=Rh())}function kh(){return gh?Eh:(gh=1,Eh=Ih())}var Th,bh,Dh,_h,wh,Oh,Lh,Ch,Mh,Nh,Ph,Uh,xh,Fh=e(kh()),Vh={};function jh(){return Dh?bh:(Dh=1,function(){if(Th)return Vh;Th=1;var t=sn(),e=Ee(),n=Wi(),r=Ki(),i=Gi();t({target:"Array",proto:!0,arity:1,forced:A()(function(){return 4294967297!==[].push.call({length:4294967296},1)})||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}}()},{push:function(t){var o=e(this),a=n(o),s=arguments.length;i(a+s);for(var u=0;u1?arguments[1]:void 0)}}),r("includes")}(),Yh=jn()("Array","includes"))}var tv,ev,nv,rv,iv,ov,av,sv,uv,cv,dv,lv,fv,hv,vv,pv={};function Ev(){if(ev)return tv;ev=1;var t=kt(),e=k(),n=me()("match");return tv=function(r){var i;return t(r)&&(void 0!==(i=r[n])?!!i:"RegExp"===e(r))}}function gv(){if(rv)return nv;rv=1;var t=Ev(),e=TypeError;return nv=function(n){if(t(n))throw new e("The method doesn't accept regular expressions");return n}}function yv(){if(ov)return iv;ov=1;var t=me()("match");return iv=function(e){var n=/./;try{"/./"[e](n)}catch(r){try{return n[t]=!1,"/./"[e](n)}catch(t){}}return!1}}function mv(){return uv?sv:(uv=1,function(){if(av)return pv;av=1;var t=sn(),e=I(),n=gv(),r=Rt(),i=io(),o=yv(),a=e("".indexOf);t({target:"String",proto:!0,forced:!o("includes")},{includes:function(t){return!!~a(i(r(this)),i(n(t)),arguments.length>1?arguments[1]:void 0)}})}(),sv=jn()("String","includes"))}function Av(){if(dv)return cv;dv=1;var t=Dt(),e=Zh(),n=mv(),r=Array.prototype,i=String.prototype;return cv=function(o){var a=o.includes;return o===r||t(r,o)&&a===r.includes?e:"string"==typeof o||o===i||t(i,o)&&a===i.includes?n:a}}function Sv(){return fv?lv:(fv=1,lv=Av())}var Rv,Iv,kv,Tv,bv,Dv,_v,wv,Ov,Lv,Cv,Mv,Nv,Pv,Uv,xv,Fv,Vv,jv,Hv,Bv,Wv,Gv,qv,Kv=e(vv?hv:(vv=1,hv=Sv()));function zv(t,e,n){(function(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")})(t,e),e.set(t,n)}function $v(t,e){return t.get(Yv(t,e))}function Qv(t,e,n){return t.set(Yv(t,e),n),n}function Yv(t,e,n){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}function Xv(t,e,n){return e=oi(e),Qu(t,Jv()?Reflect.construct(e,n||[],oi(t).constructor):e.apply(t,n))}function Jv(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(Jv=function(){return!!t})()}!function(t){t.READY="ready",t.RENDERED="rendered",t.VIEWABLED="viewable",t.HOSTMETA_CHANGED="hostMetaChange",t.POSITION_UPDATED="pos-update",t.EXPOSURE_CHANGED="exposureChanged",t.VIDEO_CONTROLLER_EVENT="videoControllerEvent",t.CLICK_HANDLER_SET="clickHandlerSet",t.DESTROYED="destroyed"}(Rv||(Rv={})),function(t){t[t.PICKED=0]="PICKED",t[t.REQUESTED=1]="REQUESTED",t[t.LOADED=2]="LOADED",t[t.AD_START_REQUESTED=3]="AD_START_REQUESTED",t[t.RENDERED=4]="RENDERED",t[t.DESTROYED=5]="DESTROYED"}(Iv||(Iv={})),function(t){t.READY="ready",t.RENDERED="rendered",t.VIEWABLED="viewabled",t.HOSTMETA_CHANGED="hostMetaChanged",t.EXPOSURE_CHANGED="exposureChanged",t.POSITION_UPDATED="positionUpdated",t.SIZE_CHANGED="sizeChanged",t.STATE_CHANGED="stateChanged",t.DESTROYED="destroyed",t.LEGACY_VIEWABLED="viewable",t.LEGACY_HOSTMETA_CHANGED="hostMetaChange",t.LEGACY_POSITION_UPDATED="pos-update"}(kv||(kv={})),function(t){t.BANNER="BANNER",t.NATIVE="NATIVE",t.VIDEO="VIDEO"}(Tv||(Tv={})),function(t){t.ACK_IMPRESSION="ACK_IMPRESSION",t.CLICKED="CLICKED",t.RENDERED_IMPRESSION="RENDERED_IMPRESSION",t.VIEWABLE_IMPRESSION="VIEWABLE_IMPRESSION",t.LOAD_ERROR="LOAD_ERROR",t.START_ERROR="START_ERROR",t.VIMP_1PX="VIMP_1PX",t.VIMP_100="VIMP_100",t.VIMP_100P="VIMP_100P",t.AD_MUTE="AD_MUTE",t.ADVERTISER_MUTE="ADVERTISER_MUTE",t.BOUNCE_BACK="BOUNCE_BACK",t.MUTE="MUTE"}(bv||(bv={})),function(t){t.MALE="M",t.FEMALE="F",t.UNKNOWN="O"}(Dv||(Dv={})),function(t){t[t.INTERNAL_ERROR=1e3]="INTERNAL_ERROR",t[t.INIT_ERROR=2e3]="INIT_ERROR",t[t.INIT_ERROR_INVALID_PARAM=2100]="INIT_ERROR_INVALID_PARAM",t[t.INIT_ERROR_AD_PROVIDER=2200]="INIT_ERROR_AD_PROVIDER",t[t.LOAD_ERROR=3e3]="LOAD_ERROR",t[t.LOAD_ERROR_INVALID_PARAM=3100]="LOAD_ERROR_INVALID_PARAM",t[t.LOAD_ERROR_INVALID_PARAM_AD_UNIT_ID=3110]="LOAD_ERROR_INVALID_PARAM_AD_UNIT_ID",t[t.LOAD_ERROR_INVALID_PARAM_AD_PARAM=3120]="LOAD_ERROR_INVALID_PARAM_AD_PARAM",t[t.LOAD_ERROR_WATERFALL_LIST=3200]="LOAD_ERROR_WATERFALL_LIST",t[t.LOAD_ERROR_WATERFALL_LIST_REQUEST_FAILED=3210]="LOAD_ERROR_WATERFALL_LIST_REQUEST_FAILED",t[t.LOAD_ERROR_WATERFALL_LIST_PARSE_FAILED=3220]="LOAD_ERROR_WATERFALL_LIST_PARSE_FAILED",t[t.LOAD_ERROR_AD_SELECTION=3300]="LOAD_ERROR_AD_SELECTION",t[t.LOAD_ERROR_AD_SELECTION_NO_FILL=3310]="LOAD_ERROR_AD_SELECTION_NO_FILL",t[t.LOAD_FAILED_TIMEOUT=3400]="LOAD_FAILED_TIMEOUT",t[t.START_ERROR=4e3]="START_ERROR",t[t.START_ERROR_MEDIA_START=4100]="START_ERROR_MEDIA_START",t[t.START_ERROR_MEDIA_START_FAILED=4110]="START_ERROR_MEDIA_START_FAILED",t[t.VIDEO_SCHEDULE_ERROR=9e3]="VIDEO_SCHEDULE_ERROR",t[t.VIDEO_SCHEDULE_PARAM_ERROR=9100]="VIDEO_SCHEDULE_PARAM_ERROR",t[t.VIDEO_SCHEDULE_MISSING_AD_SCHEDULE_ID_ERROR=9110]="VIDEO_SCHEDULE_MISSING_AD_SCHEDULE_ID_ERROR",t[t.VIDEO_SCHEDULE_INVALID_AD_SCHEDULE_PARAM_ERROR=9120]="VIDEO_SCHEDULE_INVALID_AD_SCHEDULE_PARAM_ERROR",t[t.VIDEO_SCHEDULE_REQUEST_ERROR=9210]="VIDEO_SCHEDULE_REQUEST_ERROR",t[t.VIDEO_SCHEDULE_PARSE_ERROR=9220]="VIDEO_SCHEDULE_PARSE_ERROR"}(_v||(_v={})),function(t){t.UNSPECIFIED="GFP_UNSPECIFIED_ERROR",t.NETWORK_ERROR="GFP_NETWORK_ERROR",t.SERVER_ERROR="GFP_SERVER_ERROR",t.INTERNAL_ERROR="GFP_INTERNAL_ERROR",t.ADAPTER_LOAD_TIMEOUT="GFP_ADAPTER_LOAD_TIMEOUT",t.REQUEST_TIMEOUT="GFP_REQUEST_TIMEOUT",t.NOT_REGISTERED_PROVIDER="GFP_NOT_REGISTERED_PROVIDER",t.NOT_FOUND_UNKNOWN_ADAPTER="GFP_NOT_FOUND_UNKNOWN_ADAPTER",t.NOT_FOUND_BANNER_ADAPTER="GFP_NOT_FOUND_BANNER_ADAPTER",t.NOT_FOUND_NATIVE_ADAPTER="GFP_NOT_FOUND_NATIVE_ADAPTER",t.GFP_NOT_FOUND_VIDEO_ADAPTER="GFP_NOT_FOUND_VIDEO_ADAPTER",t.MISSING_PARAM="GFP_MISSING_PARAM",t.RECEIVED_INVALID_PROPERTY="GFP_RECEIVED_INVALID_PROPERTY",t.AD_SCHEDULE_EMPTY="AD_SCHEDULE_EMPTY",t.NO_FILL="GFP_NO_FILL",t.INVALID_WATERFALL_RESPONSE="GFP_INVALID_WATERFALL_RESPONSE",t.AD_BLOCKED_DOM="GFP_AD_BLOCKED_DOM"}(wv||(wv={})),function(t){t[t.ERROR=0]="ERROR",t[t.SUCCESS=1]="SUCCESS",t[t.NO_FILL=2]="NO_FILL",t[t.TIMEOUT=3]="TIMEOUT"}(Ov||(Ov={})),function(t){t[t.WEB=0]="WEB",t[t.IOS=1]="IOS",t[t.ANDROID=2]="ANDROID"}(Lv||(Lv={})),function(t){t.FLUID="FLUID",t.PIXEL="PIXEL"}(Cv||(Cv={})),function(t){t.SF_LOADED="sf-loaded",t.SF_CB_REGISTERED="sf-cb-registered",t.SF_RESIZED="sf-resized",t.SF_TOUCHSTARTED="sf-touchstarted",t.SF_CLICKED="sf-clicked",t.SF_NATIVE_AD_MUTE_CLICKED="sf-native-ad-mute-clicked",t.SF_NATIVE_ADV_MUTE_CLICKED="sf-native-adv-mute-clicked",t.SF_NATIVE_SLOT_EVENT="sf-native-slot-event",t.SF_ERROR="sf-error",t.SF_INIT="sf-init",t.SF_REQUEST_RESIZE="sf-request-resize",t.SF_REQUEST_EXPAND="sf-request-expand",t.SF_REQUEST_COLLAPSE="sf-request-collapse",t.SF_AD_MUTE_COMPLETED="sf-ad-mute-completed",t.SF_AD_MUTE_STATE_CHANGED="sf-ad-mute-state-changed",t.SF_AD_MUTE_PRIVACY_CLICKED="sf-ad-mute-privacy-clicked",t.SF_AD_MUTE_TOUCHSTARTED="sf-ad-mute-touchstarted",t.SF_AD_MUTE_TOUCHENDED="sf-ad-mute-touchended",t.SF_EXPOSURE_CHANGE_SETTING="sf-exposure-change-setting",t.SF_OUTSTREAM_EVENT="sf-outstream-event",t.SF_NOTIFY_CREATIVE_META="sf-notify-creative-meta"}(Mv||(Mv={})),function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.ETHERNET=1]="ETHERNET",t[t.WIFI=2]="WIFI",t[t.CELLULAR_UNKNOWN=3]="CELLULAR_UNKNOWN",t[t.CELLULAR_2G=4]="CELLULAR_2G",t[t.CELLULAR_3G=5]="CELLULAR_3G",t[t.CELLULAR_4G=6]="CELLULAR_4G"}(Nv||(Nv={})),function(t){t.WIFI="WIFI",t.CELL="CELL"}(Pv||(Pv={})),function(t){t.CELLULAR="cellular",t.ETHERNET="ethernet",t.WIFI="wifi"}(Uv||(Uv={})),function(t){t.CELLULAR_2G="2g",t.CELLULAR_3G="3g",t.CELLULAR_4G="4g"}(xv||(xv={})),function(t){t.NDA_BANNER_SF="SF",t.NDA_BANNER_NDP="NDP",t.NDA_BANNER_JS="JS",t.GOOGLE_BANNER="GOOGLE_GPT",t.TEADS_BANNER="TEADS",t.NATIVE_SIMPLE="NS",t.NATIVE_NORMAL="NN",t.NATIVE_COMPOSITE="NC",t.NATIVE_ADVANCED="NA",t.GV="GV",t.GOOGLE_IMA="GOOGLE_IMA",t.EMPTY="EMPTY"}(Fv||(Fv={})),function(t){t[t.DISABLED=0]="DISABLED",t[t.ENABLED=1]="ENABLED"}(Vv||(Vv={})),function(t){t.DARK="dark",t.LIGHT="light",t.SYSTEM="system"}(jv||(jv={})),function(t){t.IMPRESSED_1PX="IMPRESSED_1PX",t.IMPRESSED_100P="IMPRESSED_100P",t.IMPRESSED_100P_WITH_DURATION_1S="IMPRESSED_100P_WITH_DURATION_1S",t.IMPRESSED_50P_WITH_DURATION_2S="IMPRESSED_50P_WITH_DURATION_2S",t.VIEWABLE_IMPRESSED="VIEWABLE_IMPRESSED",t.EXPOSURE_CHANGED="EXPOSURE_CHANGED"}(Hv||(Hv={})),function(t){t[t.INIT=0]="INIT",t[t.RENDERED=1]="RENDERED"}(Bv||(Bv={})),function(t){t.AD_MUTE_COMPLETED="AD_MUTE_COMPLETED",t.MUTE_STATE_CHANGED="MUTE_STATE_CHANGED",t.TOUCH_STARTED="TOUCH_STARTED",t.TOUCH_ENDED="TOUCH_ENDED"}(Wv||(Wv={})),function(t){t.SF="SF",t.NDP_JS="NDP_JS",t.IN_APP="IN_APP",t.NO_SUPPORT="NO_SUPPORT"}(Gv||(Gv={})),function(t){t.INIT="init",t.FEEDBACK_ON="feedbackOn",t.QUESTION="question",t.RESULT="result"}(qv||(qv={}));let Zv=function(){return Zc(function t(e=[]){Gc(this,t),td(this,"commands",void 0),td(this,"isTriggerd",void 0),td(this,"isWorking",void 0),this.commands=e,this.isTriggerd=!1,this.isWorking=!1},[{key:"push",value:function(t){this.commands.push(t),this.isTriggerd&&!this.isWorking&&this.execute()}},{key:"forceExecuteCommands",value:function(){this.isTriggerd=!0,this.isWorking||this.execute()}},{key:"execute",value:async function(){for(;this.commands.length>0;){const t=this.commands.shift();if("function"==typeof t)try{this.isWorking=!0,await t()}catch(t){}finally{this.isWorking=!1}}}}])}();const tp=t=>!t||0===t.length||/^\s*$/.test(t),ep=t=>!tp(t),np=t=>{let e=t;if(null===e)return!0;if("number"==typeof e||"boolean"==typeof e||"function"==typeof e)return!1;"string"==typeof e&&(e=e.trim());for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0};let rp=function(){return Zc(function t(e,n,r){Gc(this,t),td(this,"url",void 0),td(this,"encrypted",void 0),td(this,"params",void 0),this.url=e,this.encrypted=n??"",this.params=r??{}},[{key:"getCleanParams",value:function(){return Object.keys(this.params).filter(t=>t&&!np(this.params[t])).filter(t=>"string"!=typeof this.params[t]||ep(this.params[t].toString())).reduce((t,e)=>({...t,[e]:String(this.params[e])}),{})}}])}(),ip=function(){function t(){return Gc(this,t),Xv(this,t,arguments)}return Wc(t,rp),Zc(t,[{key:"callTrackingUrl",value:function(){const t=this.getBlobData();window.navigator.sendBeacon(this.url,t)}},{key:"getBlobData",value:function(){const t={...this.getCleanParams(),data:this.encrypted},e=Object.keys(t).map(e=>`${e}=${t[e]}`).join("&");return new Blob([e],{type:"application/x-www-form-urlencoded;charset=UTF-8"})}}])}();const op=()=>window.navigator.userAgent.toLowerCase(),ap=()=>/Windows/i.test(op()),sp=()=>/Macintosh/i.test(op()),up=()=>/iPad/i.test(op())||(()=>{const t=window.navigator;return Boolean(t&&t.platform&&(-1!==t.platform.indexOf("iPad")||"MacIntel"===t.platform&&t.maxTouchPoints>1&&!window.MSStream))})(),cp=()=>/iPhone/i.test(op())||up()||/iPod/i.test(op()),dp=()=>/Android/i.test(op()),lp=()=>/Windows Phone|Windows CE/i.test(op()),fp=()=>/Tizen/i.test(op()),hp=()=>void 0!==window.opera||/Opera/i.test(op()),vp=()=>/Edg/i.test(op()),pp=()=>/Firefox/i.test(op()),Ep=()=>/Whale/i.test(op()),gp=()=>/Chrome|CriOS/i.test(op()),yp=()=>!/Chrome|CriOS/i.test(op())&&(op()||"").indexOf("safari")>-1,mp=()=>/AppleWebKit/i.test(op()),Ap=()=>!!op().match(/(?:(MSIE) |(Trident)\/.+rv[ :])([\w.]+)/i),Sp=()=>/NAVER\((inapp|higgs);\s?search;\s?/i.test(op()),Rp=()=>/SamsungBrowser/i.test(op()),Ip=()=>/\bLine\b/i.test(op()),kp=()=>/EdgA/i.test(op()),Tp=()=>/EdgiOS/i.test(op()),bp=()=>Ap()?"IE":Sp()?"Naver App":Rp()?"SamsungBrowser":Ip()?"Line App":kp()?"Android Edge":Tp()?"IOS Edge":/IEMobile/i.test(op())?"IE Mobile":/Opera Mini/i.test(op())?"Opera Mini":/Dolfin/i.test(op())?"Dolfin":hp()?"Opera":vp()?"Edge":pp()?"Firefox":Ep()?"Whale":gp()?"Chrome":yp()?"Safari":mp()?"WebKit":"an unknown browser",Dp=()=>ap()?"Windows":sp()?"MacOS":cp()?"IOS":dp()?"Android":lp()?"Windows Mobile":fp()?"Tizen":"an unknown OS";const _p=t=>{try{return"string"==typeof t?encodeURIComponent(t.replace(/[^\p{L}\p{N}\p{P}\p{Z}~`|$^+=<>]/gu,"")):encodeURIComponent(t)}catch(t){return""}},wp=()=>{const t=document.location.href;return t.length>255?t.substring(0,255):t},Op=t=>t?Array.from(t).reduce((t,[e,n])=>Object.assign(t,{[e]:n}),{}):{},Lp=t=>t.filter((t,e,n)=>n.indexOf(t)===e),Cp=t=>{if(Array.isArray(t))return t.map(Cp);if("object"!=typeof t||null===t)return t;const e={};for(const n in t)e[n]=Cp(t[n]);return e},Mp=t=>"function"==typeof structuredClone?structuredClone(t):Cp(t),Np=(t,e)=>{const n={...t};for(const t in e){const r=e[t];np(r)||("object"!=typeof r||null===r||Array.isArray(r)||"object"!=typeof n[t]||null===n[t]||Array.isArray(n[t])?n[t]=r:n[t]=Np(n[t],r))}return n},Pp=()=>String(7852516352*Number("0."+Up())),Up=()=>{const t=new Uint32Array(1);return globalThis.crypto?.getRandomValues(t),t[0]},xp=t=>{try{return t()}catch{return null}},Fp=(t,e=["http:","https:"])=>{if(!t)return!1;try{const n=new URL(t);return Kv(e).call(e,n.protocol)}catch{return!1}};let Vp=function(){function t(){return Gc(this,t),Xv(this,t,arguments)}return Wc(t,rp),Zc(t,[{key:"callTrackingUrl",value:function(){const t=this.getTrackingUrl();this.sendXHRRequest(t).then(t=>{}).catch(t=>{})}},{key:"getTrackingUrl",value:function(){let t=`${this.url}${this.encrypted}`;const e=Object.keys(this.getCleanParams()).map(t=>`${t}=${_p(this.params[t])}`).join("&");return np(e)||(t=`${t}?${e}`),(t=>{try{const e=Math.random(),n=new URL(t);return n.searchParams.append("dummy",`${e}`),n.toString()}catch(e){return t}})(t)}},{key:"sendXHRRequest",value:async function(t){const{promise:e,resolve:n,reject:r}=function(){if("withResolvers"in Promise&&"function"==typeof Promise.withResolvers)return Promise.withResolvers();let t,e;return{promise:new Promise((n,r)=>{t=n,e=r}),resolve:t,reject:e}}(),i=new XMLHttpRequest;return i.open("GET",t),i.onabort=()=>r("Request Aborted"),i.onerror=()=>r("Network Error"),i.onreadystatechange=()=>{if(!i||4!==i.readyState)return;const t=i.status;if(t>=200&&t<300){const e=i.response;n({status:t,data:e})}else r("Request Failed")},i.send(),e}}])}(),jp=function(){function t(e,n,r,i){var o;return Gc(this,t),td(o=Xv(this,t,[e,n,r]),"tunnelManager",void 0),o.tunnelManager=i,o}return Wc(t,Vp),Zc(t,[{key:"sendXHRRequest",value:async function(e){const n=this.tunnelManager?.isValid()?await this.tunnelManager.getTunnelUrl(e):e;return(r="sendXHRRequest",i=this,o=3,a=ai(oi(t.prototype),r,i),2&o&&"function"==typeof a?function(t){return a.apply(i,t)}:a)([n]);var r,i,o,a}}])}(),Hp=function(){function t(){Gc(this,t)}return Zc(t,null,[{key:"create",value:function(e,n,r,i){return i?.isValid()?new jp(e,n,r,i):"function"==typeof window.navigator.sendBeacon&&t.isPOSTMethod(e)?new ip(e,n,r):new Vp(e,n,r)}},{key:"isPOSTMethod",value:function(t){return new RegExp(/((tivan.naver)|(t.naverads)).com\/sc\d?\/\d+/).test(t)}}])}();const Bp={ratio:.5,ms:1e3},Wp=t=>{if(!t)return Bp;const e=Number(t.ms),n=Number(t.ratio);return!isNaN(e)&&!isNaN(n)&&n>=0&&n<=100?{ratio:n/100,ms:e}:Bp},Gp={capture:!0},qp=["pageshow","focus","blur","visibilitychange","resume"];let Kp=function(){return Zc(function t(e){Gc(this,t),td(this,"state",void 0),td(this,"handler",void 0),td(this,"checkAndUpdateState",()=>{this.setState(this.checkDocumentState())}),td(this,"onFreeze",()=>{this.setState("frozen")}),td(this,"onPageHide",t=>{this.setState(t.persisted?"frozen":"terminated")}),this.state=this.checkDocumentState(),this.handler=e},[{key:"getState",value:function(){return this.state}},{key:"setState",value:function(t){this.state!==t&&(this.state=t,this.dispatch(this.state))}},{key:"dispatch",value:function(t){try{this.handler(t)}catch(t){}}},{key:"checkDocumentState",value:function(){return"hidden"===document.visibilityState?"hidden":document.hasFocus()?"active":"passive"}},{key:"addWindowEvent",value:function(){qp.forEach(t=>{window.addEventListener(t,this.checkAndUpdateState,Gp)}),window.addEventListener("freeze",this.onFreeze,Gp),window.addEventListener("pagehide",this.onPageHide,Gp)}},{key:"removeWindowEvent",value:function(){qp.forEach(t=>{window.removeEventListener(t,this.checkAndUpdateState,Gp)}),window.removeEventListener("freeze",this.onFreeze,Gp),window.removeEventListener("pagehide",this.onPageHide,Gp)}}])}(),zp=function(){return Zc(function t(e,n,r=Bp){Gc(this,t),td(this,"target",void 0),td(this,"visibilityObserverListener",void 0),td(this,"viewableImpressionConfig",void 0),td(this,"visibleTimeout",void 0),td(this,"visibleTimeout100p1s",void 0),td(this,"visibleTimeout50p2s",void 0),td(this,"isViewableImpressed",void 0),td(this,"isImpressed1px",void 0),td(this,"isImpressed100p",void 0),td(this,"isImpressed100p1s",void 0),td(this,"isImpressed50p2s",void 0),td(this,"isIntersecting",void 0),td(this,"intersectionRatio",void 0),this.target=e,this.visibilityObserverListener=n,this.viewableImpressionConfig=r,this.isViewableImpressed=!1,this.isImpressed1px=!1,this.isImpressed100p=!1,this.isImpressed100p1s=!1,this.isImpressed50p2s=!1,this.isIntersecting=!1,this.intersectionRatio=0},[{key:"start",value:function(){}},{key:"stop",value:function(){}},{key:"onChangeIntersection",value:function(t,e){this.visibilityObserverListener.dispatch(Hv.EXPOSURE_CHANGED,{target:this.target,isIntersecting:t,intersectionRatio:e}),this.isIntersecting=t,this.intersectionRatio=e,this.checkImpressed()}},{key:"checkImpressed",value:function(){this.checkImpressed1px(),this.checkImpressed100p(),this.checkImpressed100p1s(),this.checkImpressed50p2s(),this.checkViewableImpressed()}},{key:"checkImpressed1px",value:function(){!this.isImpressed1px&&this.intersectionRatio>0&&(this.isImpressed1px=!0,this.visibilityObserverListener.dispatch(Hv.IMPRESSED_1PX,{target:this.target}))}},{key:"checkImpressed100p",value:function(){this.isImpressed100p||1!==this.intersectionRatio||(this.isImpressed100p=!0,this.visibilityObserverListener.dispatch(Hv.IMPRESSED_100P,{target:this.target}))}},{key:"checkImpressed100p1s",value:function(){this.isImpressed100p1s||(1===this.intersectionRatio?this.visibleTimeout100p1s||(this.visibleTimeout100p1s=window.setTimeout(()=>{this.isImpressed100p1s=!0,this.visibilityObserverListener.dispatch(Hv.IMPRESSED_100P_WITH_DURATION_1S,{target:this.target})},1e3)):this.visibleTimeout100p1s&&(clearTimeout(this.visibleTimeout100p1s),this.visibleTimeout100p1s=void 0))}},{key:"checkImpressed50p2s",value:function(){this.isImpressed50p2s||(!this.visibleTimeout50p2s&&this.intersectionRatio>=.5?this.visibleTimeout50p2s=window.setTimeout(()=>{this.isImpressed50p2s=!0,this.visibilityObserverListener.dispatch(Hv.IMPRESSED_50P_WITH_DURATION_2S,{target:this.target})},2e3):this.visibleTimeout50p2s&&(clearTimeout(this.visibleTimeout50p2s),this.visibleTimeout50p2s=void 0))}},{key:"checkViewableImpressed",value:function(){this.isViewableImpressed||(this.intersectionRatio>0&&this.intersectionRatio>=this.viewableImpressionConfig.ratio?this.visibleTimeout||(this.visibleTimeout=window.setTimeout(()=>{this.isViewableImpressed=!0,this.visibilityObserverListener.dispatch(Hv.VIEWABLE_IMPRESSED,{target:this.target})},this.viewableImpressionConfig.ms)):this.visibleTimeout&&(clearTimeout(this.visibleTimeout),this.visibleTimeout=void 0))}},{key:"clearTimer",value:function(){this.visibleTimeout&&(window.clearTimeout(this.visibleTimeout),this.visibleTimeout=void 0),this.visibleTimeout100p1s&&(window.clearTimeout(this.visibleTimeout100p1s),this.visibleTimeout100p1s=void 0),this.visibleTimeout50p2s&&(window.clearTimeout(this.visibleTimeout50p2s),this.visibleTimeout50p2s=void 0)}}])}(),$p=function(){function t(e,n,r){var i;return Gc(this,t),td(i=Xv(this,t,[e,n,r]),"pageLifeCycleManager",void 0),td(i,"pageLifeCycleState",void 0),td(i,"checkState",t=>{i.pageLifeCycleState=t,i.checkImpressed()}),i.pageLifeCycleManager=new Kp(i.checkState),i}return Wc(t,zp),Zc(t,[{key:"start",value:function(){this.pageLifeCycleManager.addWindowEvent()}},{key:"stop",value:function(){this.pageLifeCycleManager.removeWindowEvent()}},{key:"checkImpressed1px",value:function(){!this.isImpressed1px&&this.intersectionRatio>0&&"active"===this.pageLifeCycleState&&(this.isImpressed1px=!0,this.visibilityObserverListener.dispatch(Hv.IMPRESSED_1PX,{target:this.target}))}},{key:"checkImpressed100p",value:function(){this.isImpressed100p||1!==this.intersectionRatio||"active"!==this.pageLifeCycleState||(this.isImpressed100p=!0,this.visibilityObserverListener.dispatch(Hv.IMPRESSED_100P,{target:this.target}))}},{key:"checkImpressed100p1s",value:function(){this.isImpressed100p1s||(1===this.intersectionRatio&&"active"===this.pageLifeCycleState?this.visibleTimeout100p1s||(this.visibleTimeout100p1s=window.setTimeout(()=>{this.isImpressed100p1s=!0,this.visibilityObserverListener.dispatch(Hv.IMPRESSED_100P_WITH_DURATION_1S,{target:this.target})},1e3)):this.visibleTimeout100p1s&&(clearTimeout(this.visibleTimeout100p1s),this.visibleTimeout100p1s=void 0))}},{key:"checkViewableImpressed",value:function(){this.isViewableImpressed||(this.intersectionRatio>0&&this.intersectionRatio>=this.viewableImpressionConfig.ratio&&"active"===this.pageLifeCycleState?this.visibleTimeout||(this.visibleTimeout=window.setTimeout(()=>{this.isViewableImpressed=!0,this.visibilityObserverListener.dispatch(Hv.VIEWABLE_IMPRESSED,{target:this.target})},this.viewableImpressionConfig.ms)):this.visibleTimeout&&(clearTimeout(this.visibleTimeout),this.visibleTimeout=void 0))}}])}(),Qp=function(){return Zc(function t(){Gc(this,t),td(this,"eventHandlers",void 0),this.eventHandlers={}},[{key:"addEventListener",value:function(t,e){const n=this.eventHandlers[t]??[];return n.push(e),this.eventHandlers[t]=n,()=>{this.removeListener(t,e)}}},{key:"dispatch",value:function(t,...e){const n=this.eventHandlers[t];n&&n.forEach(t=>{t(...e)})}},{key:"removeAllListeners",value:function(){this.eventHandlers={}}},{key:"removeListener",value:function(t,e){const n=this.eventHandlers[t];n?.length&&(this.eventHandlers[t]=n.filter(t=>t!==e))}},{key:"destroy",value:function(){this.removeAllListeners()}}])}(),Yp=function(){function t(){return Gc(this,t),Xv(this,t,arguments)}return Wc(t,Qp),Zc(t)}();const Xp=[0,.1,.2,.3,.4,.5,.6,.7,.8,.9,1];let Jp=function(){return Zc(function t(e,n=Bp,r="VIEWABLE_NORMAL"){if(Gc(this,t),td(this,"adViewabilityMeasureType",void 0),td(this,"visibilityObserverListener",void 0),td(this,"visibilityCheckerMap",void 0),td(this,"observer",void 0),td(this,"threshold",Xp),this.adViewabilityMeasureType=r,!e)throw new Error("Not found ad element.");this.visibilityObserverListener=new Yp,this.visibilityCheckerMap=new Map;const i=this.createVisibilityChecker(e,n);this.visibilityCheckerMap.set(e,i)},[{key:"createVisibilityChecker",value:function(t,e){return"VIEWABLE_FOCUS"===this.adViewabilityMeasureType?new $p(t,this.visibilityObserverListener,e):new zp(t,this.visibilityObserverListener,e)}},{key:"setSubAdElement",value:function(t){if(!t)throw new Error("Not found subAdElement.");this.visibilityCheckerMap.set(t,new zp(t,this.visibilityObserverListener))}},{key:"start",value:function(){this.observer||(this.observer=new IntersectionObserver(t=>{t.forEach(t=>{this.visibilityCheckerMap.get(t?.target)?.onChangeIntersection(t.isIntersecting,t.intersectionRatio)})},{threshold:this.threshold}),this.visibilityCheckerMap.forEach(t=>{t.start(),this.observer?.observe(t.target)}))}},{key:"resume",value:function(){this.visibilityCheckerMap.forEach(t=>{this.observer?.observe(t.target),t.clearTimer()})}},{key:"pause",value:function(){this.visibilityCheckerMap.forEach(t=>{this.observer?.unobserve(t.target)})}},{key:"stop",value:function(){this.observer?.disconnect(),this.observer=void 0,this.visibilityObserverListener.destroy(),this.visibilityCheckerMap.forEach(t=>{t.stop()})}},{key:"addEventListener",value:function(t,e){this.visibilityObserverListener.addEventListener(t,e)}},{key:"removeEventListener",value:function(t,e){this.visibilityObserverListener.removeListener(t,e)}}])}(),Zp=function(){return Zc(function t(e){for(Gc(this,t);e.length>0;){const t=e.shift();if("function"==typeof t)try{t()}catch(t){}}},[{key:"push",value:function(t){try{t()}catch(t){}}}])}(),tE=function(){return Zc(function t(e=[]){Gc(this,t),td(this,"core",void 0),td(this,"commands",void 0),td(this,"isTriggered",void 0),this.commands=e,this.isTriggered=!1},[{key:"push",value:function(t){this.isTriggered?this.core?.push(t):this.commands.push(t)}},{key:"forceExecuteCommands",value:function(){this.isTriggered=!0,this.core=new Zp(this.commands)}}])}();function eE(t){return t.composedPath?.()[0]??t.target}function nE(t){if(!t)return null;if("function"==typeof Element.prototype.closest)return t.closest("a");let e=t;do{if(e instanceof HTMLAnchorElement)return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null}function rE(t,e="",n=""){if("function"==typeof Element.prototype.closest){const r=`a, [${e}='${n}']`;return t.closest(r)}let r=t;do{if(r instanceof HTMLAnchorElement||r.getAttribute(e)===n)return r;r=r.parentElement||r.parentNode}while(null!==r&&1===r.nodeType);return null}function iE(t,e){return xp(()=>t.querySelector(`[data-gfp-role="${e}"]`))}const oE=t=>{const e=t=>{const e=parseInt(t);return isNaN(e)?null:e};if("function"==typeof Element.prototype.closest){const n=t?.closest("[data-gfp-slot-index]"),r=n?.getAttribute("data-gfp-slot-index");return n&&r?e(r):null}let n=t;for(;n&&"BODY"!==n.tagName.toUpperCase();){const t=n.getAttribute("data-gfp-slot-index");if(null!==t)return e(t);n=n.parentElement}return null},aE=()=>{const t=window.performance?.getEntriesByType?.("navigation")??[],[e]=t;return e?"back_forward"===e.type:2===window.performance?.navigation?.type},sE="gfp_uuid_iv";const uE=new(function(){return Zc(function t(){Gc(this,t)},[{key:"getIV",value:function(){const t=xp(()=>window.localStorage.getItem(sE));if(t)return t;const e=(()=>{const t=globalThis.crypto;return"function"==typeof t?.randomUUID?t.randomUUID():t?"10000000-1000-4000-8000-100000000000".replace(/[018]/g,e=>(+e^t.getRandomValues(new Uint8Array(1))[0]&15>>+e/4).toString(16)):""})();return xp(()=>window.localStorage.setItem(sE,e)),e}},{key:"getIVT",value:function(t){return tp(t)||t===this.getIV()?Lv.WEB:dp()?Lv.ANDROID:cp()?Lv.IOS:Lv.WEB}}])}());let cE=function(){return Zc(function t(e){Gc(this,t),td(this,"eventTrackingRecord",void 0),this.eventTrackingRecord=e},[{key:"getEventTrackingUrlList",value:function(t){return(this.eventTrackingRecord[t]??[]).filter(ep)}}])}(),dE=function(){return Zc(function t(e){Gc(this,t),td(this,"ackImpressions",void 0),td(this,"clicks",void 0),td(this,"renderedImpressions",void 0),td(this,"viewableImpressions",void 0),td(this,"loadErrors",void 0),td(this,"startErrors",void 0),td(this,"vimp1px",void 0),td(this,"vimp100",void 0),td(this,"vimp100p",void 0),td(this,"admute",void 0),td(this,"advmute",void 0),td(this,"bounce",void 0),td(this,"mute",void 0),this.ackImpressions=e?.ackImpressions??[],this.clicks=e?.clicks??[],this.renderedImpressions=e?.renderedImpressions??[],this.viewableImpressions=e?.viewableImpressions??[],this.loadErrors=e?.loadErrors??[],this.startErrors=e?.startErrors??[],this.vimp1px=e?.vimp1px,this.vimp100=e?.vimp100,this.vimp100p=e?.vimp100p,this.admute=e?.admute,this.advmute=e?.advmute,this.bounce=e?.bounce,this.mute=e?.mute},[{key:"createEventTrackingContainer",value:function(){const t=this.ackImpressions?.map(t=>t.url)??[],e=this.clicks?.map(t=>t.url)??[],n=this.renderedImpressions?.map(t=>t.url)??[],r=this.viewableImpressions?.map(t=>t.url)??[],i=this.loadErrors?.map(t=>t.url)??[],o=this.startErrors?.map(t=>t.url)??[],a=this.vimp1px?.map(t=>t.url)??[],s=this.vimp100?.map(t=>t.url)??[],u=this.vimp100p?.map(t=>t.url)??[],c=this.admute?.map(t=>t.url)??[],d=this.advmute?.map(t=>t.url)??[],l=this.bounce?.map(t=>t.url)??[],f=this.mute?.map(t=>t.url)??[];return new cE({[bv.ACK_IMPRESSION]:t,[bv.CLICKED]:e,[bv.RENDERED_IMPRESSION]:n,[bv.VIEWABLE_IMPRESSION]:r,[bv.LOAD_ERROR]:i,[bv.START_ERROR]:o,[bv.VIMP_1PX]:a,[bv.VIMP_100]:s,[bv.VIMP_100P]:u,[bv.AD_MUTE]:c,[bv.ADVERTISER_MUTE]:d,[bv.BOUNCE_BACK]:l,[bv.MUTE]:f})}}])}();const lE="ct",fE="t0",hE="sz",vE="rt",pE="st",EE="erc",gE="ersc",yE="erm",mE="t1";let AE=function(){function t({gfpEventTracking:e,providerEventTracking:n,encrypted:r,timeMap:i,tunnelManager:o}){Gc(this,t),td(this,"gfpEventTracking",void 0),td(this,"gfpEventTrackingContainer",void 0),td(this,"providerEventTrackingContainer",void 0),td(this,"encrypted",void 0),td(this,"timeMap",void 0),td(this,"subEventNotifiers",void 0),td(this,"tunnelManager",void 0),this.gfpEventTracking=e,this.gfpEventTrackingContainer=new dE(e).createEventTrackingContainer(),this.providerEventTrackingContainer=new dE(n).createEventTrackingContainer(),this.encrypted=r??"",this.timeMap=i,this.subEventNotifiers=new Map,this.tunnelManager=o}return Zc(t,[{key:"hasProviderEventByType",value:function(t){const e=this.providerEventTrackingContainer?.getEventTrackingUrlList(t);return Boolean(Array.isArray(e)&&e.length)}},{key:"getGfpEventTrackingUrlList",value:function(t){return tp(this.encrypted)?[]:this.gfpEventTrackingContainer.getEventTrackingUrlList(t)??[]}},{key:"getProviderEventTrackingUrlList",value:function(t){return this.providerEventTrackingContainer.getEventTrackingUrlList(t)??[]}},{key:"setSubEventNotifier",value:function(e,n,r=""){this.subEventNotifiers.set(e,new t({gfpEventTracking:this.gfpEventTracking,providerEventTracking:n??new dE,encrypted:r,timeMap:this.timeMap,tunnelManager:this.tunnelManager}))}},{key:"getSubEventNotifier",value:function(t){return this.subEventNotifiers.get(t)??null}},{key:"getAllSubEventNotifiers",value:function(){return[...this.subEventNotifiers.values()]}},{key:"fireAckImpEvent",value:function(t,e=0,n){const r=this.timeMap.calculateFromTo("request","response"),i={[pE]:Ov.SUCCESS,[lE]:t??"",[vE]:e??0,[hE]:this.convertSizeToString(n),[fE]:r};this.reportEvents(bv.ACK_IMPRESSION,i)}},{key:"fireClickEvent",value:function(t,e){const n={[lE]:t,[hE]:this.convertSizeToString(e)};this.reportEvents(bv.CLICKED,n)}},{key:"fireRenderedImpressionEvent",value:function(t,e){const n={[lE]:t??"",[hE]:this.convertSizeToString(e)};this.reportEvents(bv.RENDERED_IMPRESSION,n)}},{key:"fireViewableImpressionEvent",value:function(t,e){const n=document.hasFocus()?1:2,r={[lE]:t??"",[hE]:this.convertSizeToString(e),[mE]:n};this.reportEvents(bv.VIEWABLE_IMPRESSION,r)}},{key:"fireLoadErrorEvent",value:function(t,e){const n=this.timeMap.calculateFromTo("request","response"),r={[vE]:t??0,[pE]:e?.stat,[EE]:e?.errorCode,[gE]:e?.errorSubCode,[yE]:e?.errorMessage,[fE]:n};this.reportEvents(bv.LOAD_ERROR,r)}},{key:"fireStartErrorEvent",value:function(t,e){const n={[vE]:t??0,[pE]:e?.stat,[EE]:e?.errorCode,[gE]:e?.errorSubCode,[yE]:e?.errorMessage};this.reportEvents(bv.START_ERROR,n)}},{key:"fireVImp1pxEvent",value:function(){this.getProviderEventTrackingUrlList(bv.VIMP_1PX).forEach(e=>{t.reportEvent(e,void 0,void 0,this.tunnelManager)})}},{key:"fireVImp100Event",value:function(){this.getProviderEventTrackingUrlList(bv.VIMP_100).forEach(e=>{t.reportEvent(e,void 0,void 0,this.tunnelManager)})}},{key:"fireVImp100pEvent",value:function(){this.getProviderEventTrackingUrlList(bv.VIMP_100P).forEach(e=>{t.reportEvent(e,void 0,void 0,this.tunnelManager)})}},{key:"fireAdMuteEvent",value:function(){this.getProviderEventTrackingUrlList(bv.AD_MUTE).forEach(e=>{t.reportEvent(e,void 0,void 0,this.tunnelManager)})}},{key:"fireAdvertiserMuteEvent",value:function(){this.getProviderEventTrackingUrlList(bv.ADVERTISER_MUTE).forEach(e=>{t.reportEvent(e,void 0,void 0,this.tunnelManager)})}},{key:"fireAdMuteCompletedEvent",value:function(){this.reportEvents(bv.MUTE,{})}},{key:"reportEvents",value:function(e,n){this.getGfpEventTrackingUrlList(e).forEach(e=>{t.reportEvent(e,this.encrypted,n,this.tunnelManager)}),this.getProviderEventTrackingUrlList(e).forEach(e=>{t.reportEvent(e,void 0,void 0,this.tunnelManager)})}},{key:"fireAdditionalEvent",value:function(e){e.forEach(e=>{ep(e)&&t.reportEvent(e,void 0,void 0,this.tunnelManager)})}},{key:"convertSizeToString",value:function(t){return t?`${t.width}x${t.height}`:""}}],[{key:"reportEvent",value:function(t,e,n,r){Hp.create(t,e,n,r).callTrackingUrl()}},{key:"fireNetworkErrorEvent",value:function(e,n,r,i=0){const o=Object.assign({},n,{[pE]:r?.stat,[EE]:r?.errorCode,[gE]:r?.errorSubCode,[yE]:r?.errorMessage,[vE]:i}),a=Object.entries(o).reduce((t,[e,n])=>(np(n)||t.push(`${e}=${_p(n)}`),t),[]).join("&"),s=bp(),u=(()=>{try{if(Ap()){if("Microsoft Internet Explorer"===navigator.appName)return parseFloat(op().match(/MSIE ([0-9.]+)/i)[1]);if("Netscape"===navigator.appName&&null!=new RegExp("trident/.*rv[ :]([0-9]{1,}[.0-9]{0,})").exec(op()))return parseFloat(RegExp.$1)}if(Sp()){const t=/NAVER\((inapp|higgs);\s?search;\s?([0-9\.]+);\s?([0-9\.]+)(;\s?([a-z|0-9\.]+))?\)/i;return parseFloat(op().match(t)[3])}return Rp()?parseFloat(op().match(/SamsungBrowser\/([0-9.]+)/i)[1]):Ip()?parseFloat(op().match(/Line\/([0-9.]+)/i)[1]):kp()?parseInt(op().match(/EdgA\/([0-9.]+)/i)[1]):Tp()?parseInt(op().match(/EdgiOS\/([0-9.]+)/i)[1]):hp()?parseFloat(op().match(/Version\/([0-9.]+)/i)[1]):vp()?parseInt(op().match(/Edg\/([0-9.]+)/i)[1]):pp()?parseFloat(op().match(/Firefox\/([0-9.]+)/i)[1]):Ep()?parseFloat(op().match(/Whale\/([0-9.]+)/i)[1]):gp()?parseFloat(op().match(/(Chrome|CriOS)\/([0-9.]+)/i)[2]):yp()||mp()?parseFloat(op().match(/Version\/([0-9.]+)/i)[1]):-1}catch(t){return-1}})(),c=Dp(),d=(()=>{try{return ap()?parseFloat(op().match(/Windows NT ([0-9.]+)/i)[1]):sp()?parseFloat(op().match(/Mac OS X ([\d_.]+)/i)[1].replace(/_/g,".")):cp()?parseFloat(op().match(/OS ((\d+_?){2,3})\s/i)[1].replace(/_/g,".")):dp()?parseFloat(op().match(/Android ([0-9.]+)/i)[1]):lp()?parseFloat(op().match(/Windows Phone ([0-9.]+)|Windows Phone OS ([0-9.]+)/i)[0].match(/[0-9.]+/)[0]):fp()?parseFloat(op().match(/Tizen ([0-9.]+)/i)[1]):-1}catch(t){return-1}})(),l={q:a,u:n.u,bn:s,bv:u,os:c,osv:d,[EE]:r?.errorCode,[gE]:r?.errorSubCode,[yE]:r?.errorMessage};t.reportEvent(e,"",l)}}])}();var SE=new WeakMap,RE=new WeakMap,IE=new WeakMap,kE=new WeakMap,TE=new WeakMap;let bE=function(){function t(e,n,r,i,o){Gc(this,t),zv(this,SE,void 0),zv(this,RE,void 0),zv(this,IE,void 0),zv(this,kE,void 0),zv(this,TE,void 0),Qv(SE,this,e??_v.INTERNAL_ERROR),Qv(RE,this,n),Qv(IE,this,r),Qv(kE,this,i??Ov.ERROR),Qv(TE,this,new DE(r,o))}return Zc(t,[{key:"errorCode",get:function(){return $v(SE,this)}},{key:"errorSubCode",get:function(){return $v(RE,this)}},{key:"errorMessage",get:function(){return $v(IE,this)}},{key:"stat",get:function(){return $v(kE,this)}},{key:"standardError",get:function(){return $v(TE,this)}}],[{key:"fromError",value:function(e,n,r,i,o){return e instanceof t?e:(e instanceof Error&&(i=i??e.message),new t(n,r,i??"Unknown error",o,e))}}])}(),DE=function(){function t(e,n){var r;return Gc(this,t),(r=Xv(this,t,[e,{cause:n}])).name="GfpError",r}return Wc(t,$h(Error)),Zc(t)}(),_E=function(){return Zc(function t(){Gc(this,t),td(this,"requestTimeoutId",void 0),td(this,"endTimer",void 0)},[{key:"initTimer",value:function(t,e){return new Promise((n,r)=>{this.endTimer=n,e!==1/0&&(this.requestTimeoutId=window.setTimeout(()=>{r(t()),this.requestTimeoutId=void 0},e))})}},{key:"clearTimer",value:function(){window.clearTimeout(this.requestTimeoutId),this.endTimer?.(),this.requestTimeoutId=void 0,this.endTimer=void 0}}])}(),wE=function(){return Zc(function t({ads:e,adExtraData:n,eventTracking:r,timeMap:i}){Gc(this,t),td(this,"adQueue",void 0),td(this,"adExtraData",void 0),td(this,"eventTracking",void 0),td(this,"pickedAdapter",void 0),td(this,"eventNotifier",void 0),td(this,"timeMap",void 0),td(this,"mediationTimer",void 0),this.adQueue=[...e],this.adExtraData=n,this.eventTracking=r,this.timeMap=i,this.mediationTimer=new _E},[{key:"loadAd",value:async function(){const{requestTimeout:t}=this.getGlobalConfig(),e=()=>{const t=new bE(_v.LOAD_FAILED_TIMEOUT,wv.REQUEST_TIMEOUT,"Request Timeout",Ov.TIMEOUT),e=this.timeMap.calculateNow("request");return this.eventNotifier?.fireLoadErrorEvent(e,t),t};try{await Promise.race([this.mediationTimer.initTimer(e,t),this.processNextAd()])}finally{this.mediationTimer.clearTimer()}}},{key:"processNextAd",value:async function(){const t=this.adQueue.shift();if(!t)throw new bE(_v.LOAD_ERROR_AD_SELECTION_NO_FILL,wv.NO_FILL,"No ad",Ov.ERROR);const e=new AE({gfpEventTracking:this.eventTracking,providerEventTracking:t.eventTracking,encrypted:t.encrypted,timeMap:this.timeMap});t.adInfo.slots?.forEach((t,n)=>{e.setSubEventNotifier(n,t.eventTracking)}),this.eventNotifier=e,t.renderType===Fv.EMPTY&&this.throwEmptyRenderError(e);try{this.pickedAdapter=await this.pickAdapter(t,e),await this.pickedAdapter.requestAd()}catch(t){this.onAdapterError(t),this.pickedAdapter?.destroy(),this.pickedAdapter=void 0,await this.processNextAd()}}},{key:"destroy",value:function(){this.pickedAdapter?.destroy(),this.pickedAdapter=void 0}}])}(),OE=function(){return Zc(function t(e){Gc(this,t),td(this,"ad",void 0),td(this,"loadTimer",void 0),td(this,"resolve",void 0),td(this,"reject",void 0),td(this,"_isPending",!1),this.ad=e,this.loadTimer=new _E},[{key:"start",value:function(){const{timeout:t}=this.ad.adInfo??{};return this.loadTimer.initTimer(()=>new bE(_v.LOAD_ERROR_AD_SELECTION_NO_FILL,wv.ADAPTER_LOAD_TIMEOUT,`failed to respond in a timely manner. renderType: ${this.ad.renderType}, creativeType: ${this.ad.creativeType}, adProviderName: ${this.ad.adProviderName}`,Ov.TIMEOUT),t||1/0).catch(t=>this.onError(t)),new Promise((t,e)=>{this._isPending=!0,this.resolve=()=>{this._isPending=!1,t()},this.reject=t=>{this._isPending=!1,e(t)}})}},{key:"isPending",get:function(){return this._isPending}},{key:"onLoaded",value:function(){this.loadTimer.clearTimer(),this.resolve?.()}},{key:"onError",value:function(t){this.loadTimer.clearTimer(),this.reject?.(t)}},{key:"destroy",value:function(){this.loadTimer.clearTimer(),this.resolve=void 0,this.reject=void 0}}])}(),LE=function(){return Zc(function t(){Gc(this,t)},[{key:"pickAdapter",value:async function(t,e,n,r){try{const i=await this.tryToPickAdapter(t);return this.createAdapterInstance(i,t,e,n,r)}catch(t){const e=bE.fromError(t,_v.INTERNAL_ERROR,wv.RECEIVED_INVALID_PROPERTY);throw n.fireLoadErrorEvent(0,e),e}}},{key:"tryToPickAdapter",value:async function(t){try{this.validateAd(t)}catch(t){throw bE.fromError(t,_v.INTERNAL_ERROR,wv.RECEIVED_INVALID_PROPERTY)}try{return await this.getAdapterClass(t)}catch(e){if(e instanceof Error){let n;switch(t.creativeType){case Tv.BANNER:n=wv.NOT_FOUND_BANNER_ADAPTER;break;case Tv.NATIVE:n=wv.NOT_FOUND_NATIVE_ADAPTER;break;default:n=wv.NOT_FOUND_UNKNOWN_ADAPTER}throw bE.fromError(e,_v.INTERNAL_ERROR,n,`Failed to pick adapter:${e.message}`)}}throw new Error("should not reach here")}},{key:"getAdapterClass",value:async function(t){let e=this.getSavedAdapterClass(t);if(e)return e;if(await this.importAdapter(t),e=this.getSavedAdapterClass(t),e)return e;const{renderType:n,creativeType:r}=t;throw new Error(`Not found adapter: RenderType[${n}], CreativeType[${r}]`)}},{key:"getSavedAdapterClass",value:function(t){const{renderType:e,creativeType:n}=t;return this.getThirdPartyAdapters().find(t=>{const r=Array.isArray(t.renderType)?t.renderType:[t.renderType],i=r?.some(t=>t===e);return i&&t.creativeType===n})?.adapter}},{key:"validateAd",value:function(t){if(!t)throw new Error("Invalid ad.");if(!t.adInfo)throw new Error("Invalid adInfo.");if(!t.renderType)throw new Error("Invalid renderType.");if(!t.creativeType)throw new Error("Invalid creativeType.")}}])}(),CE=function(){function t(e,n,r,i){var o;return Gc(this,t),td(o=Xv(this,t,[_v.LOAD_ERROR_AD_SELECTION_NO_FILL,wv.NO_FILL,"Reached empty render type.",Ov.ERROR]),"eventNotifier",void 0),td(o,"emptyAdsObserver",void 0),td(o,"adElement",void 0),td(o,"waterfallImpressionConfig",void 0),o.eventNotifier=e,o.emptyAdsObserver=n,o.adElement=r,o.waterfallImpressionConfig=i,o.fireEvents(),o.observeEmptyAdElement(),o}return Wc(t,bE),Zc(t,[{key:"fireEvents",value:function(){this.eventNotifier.fireAckImpEvent(null,0),this.eventNotifier.fireRenderedImpressionEvent(null)}},{key:"observeEmptyAdElement",value:function(){if(this.adElement){const t=Wp(this.waterfallImpressionConfig);this.emptyAdsObserver.observe(this.adElement,t,this.eventNotifier)}}}])}();const ME=()=>{try{const e=(()=>{try{if(window.naverappapi)return window.naverappapi;if(window.top&&window.top!==window&&window.top.naverappapi)return window.top.naverappapi}catch{}})();if(e&&e.checknetworkstatus&&"function"==typeof e.checknetworkstatus){var t;const n=e.checknetworkstatus();return Kv(t=Object.values(Pv)).call(t,n)?n:null}return null}catch(t){return null}},NE=()=>{let t=!1;const e=ME();if(e===Pv.WIFI)return Nv.WIFI;e===Pv.CELL&&(t=!0);const n=navigator.connection||navigator.mozConnection||navigator.webkitConnection;if(n?.type)switch(n.type){case Uv.ETHERNET:return Nv.ETHERNET;case Uv.WIFI:return Nv.WIFI;case Uv.CELLULAR:t=!0}if(t){if(n?.effectiveType)switch(n.effectiveType){case xv.CELLULAR_2G:return Nv.CELLULAR_2G;case xv.CELLULAR_3G:return Nv.CELLULAR_3G;case xv.CELLULAR_4G:return Nv.CELLULAR_4G}return Nv.CELLULAR_UNKNOWN}return Nv.UNKNOWN},PE=t=>{const e=Object.keys(t).reduce((e,n)=>{if(np(n))return e;const r=t[n];if(Array.isArray(r)){if(0===r.length)return e;{const t=r.filter(t=>!np(t));e[n]=t}}else np(r)||(e[n]=r);return e},{});return Object.keys(e).map(t=>`${_p(String(t).trim())}:${_p(Array.isArray(e[t])?e[t].map(t=>String(t).trim()).join("|"):String(e[t]).trim())}`).join(",")},UE=t=>{if(!t)return"";return Object.entries(t).reduce((t,e)=>{const[n,r]=e,i=`${n}=${_p(r)}`;return t?`${t}&${i}`:i},"")};let xE=function(){return Zc(function t(){Gc(this,t),td(this,"tfua",void 0),td(this,"tfcd",void 0),td(this,"privacySettingsConfig",void 0),this.tfua=void 0,this.tfcd=void 0,this.privacySettingsConfig={}},[{key:"getPrivacyInfo",value:function(){const t=this.getTCString(),e=this.getUSPString(),n=this.tfua,r=this.tfcd,{iabgppstring:i,iabgppsid:o}=this.getIABGPP();return{iabtcstring:t,iabuspstring:e,tfua:n,tfcd:r,iabgppstring:i,iabgppsid:o}}},{key:"setPrivacySettingsConfig",value:function(t){this.privacySettingsConfig=t;const{underAgeOfConsent:e,childDirectedTreatment:n}=t;"boolean"==typeof e&&this.setTFUA(e),"boolean"==typeof n&&this.setTFCD(n)}},{key:"getPrivacySettingsConfig",value:function(){return this.privacySettingsConfig}},{key:"setTFUA",value:function(t){this.tfua=t?1:0}},{key:"setTFCD",value:function(t){this.tfcd=t?1:0}},{key:"getTCString",value:function(){try{let t;return window.__tcfapi("addEventListener",2,(e,n)=>{try{if(n){("tcloaded"===e.eventStatus||"useractioncomplete"===e.eventStatus)&&!0===e.gdprApplies&&e.tcString&&(t=e.tcString)}null!=e?.listenerId&&window.__tcfapi("removeEventListener",2,()=>{},e.listenerId)}catch{}}),t}catch{return}}},{key:"getUSPString",value:function(){try{let t;return window.__uspapi("getUSPData",1,(e,n)=>{try{n&&(t=e.uspString)}catch{}}),t}catch{return}}},{key:"getIABGPP",value:function(){try{let t,e;return window.__gpp("ping",(n,r)=>{try{r&&"loaded"===n.cmpStatus&&(t=n.gppString,e=n.applicableSections.join(","))}catch{}}),{iabgppstring:t,iabgppsid:e}}catch{return{iabgppstring:void 0,iabgppsid:void 0}}}}])}();const FE=[{key:"googleImaSdk",type:"javascript",src:"https://imasdk.googleapis.com/js/sdkloader/ima3.js"}];let VE=function(){return Zc(function t(){Gc(this,t),td(this,"resources",{}),FE.forEach(t=>{this.resources[t.key]={loaded:!1,type:t.type,src:t.src}})},[{key:"load",value:function(t,e){return"javascript"===this.resources[t]?.type?this.loadJavaScript(t,e):"css"===this.resources[t]?.type?this.loadCss(t):Promise.reject(new Error(`Received invalid type, ${this.resources[t]?.type}`))}},{key:"saveAndLoad",value:function(t,e,n,r){return tp(t)?Promise.reject(new Error(`Received invalid key, ${t}`)):tp(n)?Promise.reject(new Error(`Received invalid src, ${n}`)):(this.resources[t]||(this.resources[t]={loaded:!1,type:e,src:n}),this.load(t,r))}},{key:"loadJavaScript",value:function(t,e="utf-8"){return new Promise((n,r)=>{if(this.resources[t].loaded)n();else{const i=document.createElement("script");i.type="text/javascript",i.src=this.resources[t].src,i.async=!0,i.charset=e,i.onload=()=>{this.resources[t].loaded=!0,n()},i.onerror=()=>{this.resources[t].loaded=!1,r(new Error(`${this.resources[t].src} failed to load.`))},document.getElementsByTagName("head")[0].appendChild(i)}})}},{key:"loadCss",value:function(t){return new Promise((e,n)=>{if(this.resources[t].loaded)e();else{const r=document.createElement("link");r.rel="stylesheet",r.href=this.resources[t].src;const i=n=>{this.resources[t].loaded||(this.resources[t].loaded=!0,e())};r.onload=()=>i(),r.onerror=()=>{this.resources[t].loaded=!1,n(new Error(`${this.resources[t].src} failed to load.`))},document.getElementsByTagName("head")[0].appendChild(r)}})}}])}(),jE=function(){return Zc(function t(e){Gc(this,t),td(this,"storage",void 0),this.storage=window[e]},[{key:"setItem",value:function(t,e){try{this.storage?.setItem(t,JSON.stringify(e))}catch(t){}}},{key:"getItem",value:function(t){const e=this.storage?.getItem(t);return e?JSON.parse(e):null}},{key:"removeItem",value:function(t){this.storage?.removeItem(t)}},{key:"setObjectItem",value:function(t,e,n){const r=this.getItem(t)??{};r[e]=n,this.setItem(t,r)}},{key:"getObjectItem",value:function(t,e){const n=this.getItem(t);return n?n[e]:null}},{key:"removeObjectItem",value:function(t,e){const n=this.getItem(t);n&&(delete n[e],this.setItem(t,n))}}])}(),HE=function(){return Zc(function t(){Gc(this,t),td(this,"innerMap",void 0),this.innerMap=new Map},[{key:"set",value:function(t,e){this.innerMap.set(t,e)}},{key:"clear",value:function(){this.innerMap=new Map}},{key:"calculateNow",value:function(t){const e=this.innerMap.get(t);return e?Date.now()-e:0}},{key:"calculateFromTo",value:function(t,e){const n=this.innerMap.get(t),r=this.innerMap.get(e);return n&&r?r-n:0}}])}(),BE=function(){return Zc(function t(){Gc(this,t)},[{key:"getAppEnvironment",value:function(){try{return window.namAppSDKBridge?.getAppEnvironment()}catch(t){}}},{key:"updateNAC",value:function(t){try{window.namAppSDKBridge?.updateNAC(JSON.stringify({nac:t}))}catch(t){}}}],[{key:"isEnvironment",value:function(){return Boolean(window.namAppSDKBridge)}}])}(),WE=function(){return Zc(function t(){Gc(this,t)},[{key:"updateNAC",value:function(t){this.noop()}},{key:"getAppEnvironment",value:function(){}},{key:"noop",value:function(){}}])}(),GE=function(){return Zc(function t(){Gc(this,t)},[{key:"getAppEnvironment",value:async function(){try{const t=await(window.webkit?.messageHandlers?.namAppSDKBridge?.postMessage({method:"getAppEnvironment"}));if(t)return t}catch(t){}}},{key:"updateNAC",value:function(t){try{window.webkit?.messageHandlers?.namAppSDKBridge?.postMessage({method:"updateNAC",parameter:{nac:t}}).catch(()=>{})}catch(t){}}},{key:"getSkadnEventHandler",value:function(){return new qE}}],[{key:"isEnvironment",value:function(){return Boolean(window?.webkit?.messageHandlers?.namAppSDKBridge)}}])}(),qE=function(){return Zc(function t(){Gc(this,t)},[{key:"sendImpressionStart",value:function(t){try{window.webkit?.messageHandlers?.namAppSDKBridge?.postMessage({method:"adWasSeen",parameter:{skadn:t}}).catch(()=>{})}catch(t){}}},{key:"sendAdClick",value:async function(t){try{const e=await(window.webkit?.messageHandlers?.namAppSDKBridge?.postMessage({method:"adWasClicked",parameter:{skadn:t}}));if(!e)return!1;const{result:n}=JSON.parse(e);return n}catch(t){return!1}}}])}(),KE=function(){return Zc(function t(){Gc(this,t),td(this,"appEnv",void 0),td(this,"communicator",void 0),BE.isEnvironment()?this.communicator=new BE:GE.isEnvironment()?this.communicator=new GE:this.communicator=new WE},[{key:"init",value:async function(){try{const t=this.communicator.getAppEnvironment();if("string"==typeof t)this.setAppEnv(JSON.parse(t));else if(t instanceof Promise){const e=await t;e&&this.setAppEnv(JSON.parse(e))}}catch(t){}}},{key:"setAppEnv",value:function(t){this.appEnv=t}},{key:"getAppEnv",value:function(){return this.appEnv}},{key:"updateAppNAC",value:function(t){this.communicator.updateNAC(t)}},{key:"getSkadnEventHandler",value:function(){if(this.communicator instanceof GE)return this.communicator.getSkadnEventHandler()}}],[{key:"isWebAppEnvironment",value:function(){return BE.isEnvironment()||GE.isEnvironment()}}])}(),zE=function(){return Zc(function t(e){Gc(this,t),td(this,"baseURL",void 0),this.baseURL=e},[{key:"get",value:async function(t,{cancelSource:e,params:n,timeout:r}){const i=UE(n);let o=this.baseURL+t;o+=(-1===o.indexOf("?")?"?":"&")+i;const a=await fetch(o,{method:"GET",credentials:"include",signal:AbortSignal.any([AbortSignal.timeout(r),e.getToken()])});if(!a.ok)throw new Error(`Request failed with status code ${a.status}`);return await a.json()}},{key:"post",value:async function(t,{cancelSource:e,params:n,timeout:r}){const i=this.baseURL+t,o=await fetch(i,{method:"POST",credentials:"include",signal:AbortSignal.any([AbortSignal.timeout(r),e.getToken()]),body:JSON.stringify(n)});if(!o.ok)throw new Error(`Request failed with status code ${o.status}`);return await o.json()}},{key:"getCancelSource",value:function(){return new $E}}])}(),$E=function(){return Zc(function t(){Gc(this,t),td(this,"abortController",void 0),this.abortController=new AbortController},[{key:"isCanceled",get:function(){return this.abortController.signal.aborted}},{key:"cancel",value:function(){this.abortController.abort()}},{key:"getToken",value:function(){return this.abortController.signal}}])}(),QE=function(){return Zc(function t(e){Gc(this,t),td(this,"baseURL",void 0),this.baseURL=e},[{key:"get",value:async function(t,{cancelSource:e,params:n,timeout:r}){const i=this.generateUrlWithParams(t,n);return this.createXhr("GET",i,e,r)}},{key:"generateUrlWithParams",value:function(t,e){const n=UE(e);let r=this.baseURL+t;return r+=(-1===r.indexOf("?")?"?":"&")+n,r}},{key:"post",value:async function(t,{cancelSource:e,params:n,timeout:r}){const i=this.baseURL+t;return this.createXhr("POST",i,e,r,JSON.stringify(n))}},{key:"createXhr",value:function(t,e,n,r,i){return new Promise((o,a)=>{let s=new XMLHttpRequest;s.open(t,e,!0),s.withCredentials=!0,s.timeout=r;const u=()=>{s&&(a(new Error("Request canceled")),s.abort(),s=null)},c=()=>{n.unsubscribe(u),s=null};s.onload=()=>{s&&(s.status>=200&&s.status<300?o(JSON.parse(s.responseText)):a(new Error(`Request failed with status code ${s.status}`)),c())},s.onabort=()=>{s&&(a(new Error("Request aborted")),c())},s.onerror=()=>{s&&(a(new Error("Network Error")),c())},s.ontimeout=()=>{s&&(a(new Error(`timeout of ${s.timeout}ms exceeded`)),c())},n.subscribe(u),s.send(i)})}},{key:"getCancelSource",value:function(){return new YE}}])}(),YE=function(){return Zc(function t(){Gc(this,t),td(this,"_isCanceled",void 0),td(this,"listeners",void 0),this._isCanceled=!1},[{key:"subscribe",value:function(t){this._isCanceled?t():this.listeners?this.listeners.push(t):this.listeners=[t]}},{key:"unsubscribe",value:function(t){if(!this.listeners)return;const e=this.listeners.findIndex(e=>e===t);-1!==e&&this.listeners.splice(e,1)}},{key:"isCanceled",get:function(){return this._isCanceled}},{key:"cancel",value:function(){this._isCanceled=!0,this.listeners?.forEach(t=>{t()}),this.listeners=void 0}}])}(),XE=function(){return Zc(function t(e){Gc(this,t),td(this,"httpAdapter",void 0),this.httpAdapter=e},[{key:"baseURL",get:function(){return this.httpAdapter.baseURL}},{key:"get",value:async function(t,e){return this.httpAdapter.get(t,e)}},{key:"post",value:async function(t,e){return this.httpAdapter.post(t,e)}},{key:"getCancelSource",value:function(){return this.httpAdapter.getCancelSource()}}])}();let JE=function(){return Zc(function t({resourceLoader:e,adMuteLibUrl:n,creativeType:r,adChoice:i,initialAdMuteState:o}){Gc(this,t),td(this,"resourceLoader",void 0),td(this,"adMuteLibUrl",void 0),td(this,"creativeType",void 0),td(this,"adChoice",void 0),td(this,"initialAdMuteState",void 0),td(this,"controller",void 0),td(this,"commandProcessor",void 0),this.resourceLoader=e,this.adMuteLibUrl=n,this.creativeType=r,this.adChoice=i,this.initialAdMuteState=o??qv.INIT,this.commandProcessor=new tE},[{key:"initAdMute",value:async function(t,e,n,r){try{if(!this.isAdMuteLibLoadable())return;this.isAdMuteLibLoaded()||await this.loadAdMuteLib(),this.renderAdMute(),this.addEventListener(Wv.AD_MUTE_COMPLETED,t),this.addEventListener(Wv.MUTE_STATE_CHANGED,e),this.addEventListener(Wv.TOUCH_STARTED,n),this.addEventListener(Wv.TOUCH_ENDED,r),this.commandProcessor.forceExecuteCommands()}catch(t){}}},{key:"isAdMuteLibLoaded",value:function(){try{return Boolean(this.adMuteLib)}catch{return!1}}},{key:"isAdMuteLibLoadable",value:function(){return Boolean(this.adChoice?.mute||this.adChoice?.priv)}},{key:"adMuteLib",get:function(){const t=window.gladAdMute;if(!t)throw new Error("AdMute is not loaded.");return t}},{key:"addEventListener",value:function(t,e){this.commandProcessor.push(()=>{this.controller?.addEventListener(t,e)})}},{key:"setAdTheme",value:function(t){this.commandProcessor.push(()=>{this.adMuteLib.setAdTheme(t)})}},{key:"destroy",value:function(){this.commandProcessor.push(()=>{this.controller?.destroy()})}},{key:"shouldRemoveAdMarkLegacy",value:function(){return Boolean(this.adChoice?.mute||this.adChoice?.priv)}},{key:"setPrivacyClickHandler",value:function(t){this.commandProcessor.push(()=>{this.controller?.setPrivacyClickHandler(t)})}}],[{key:"replaceAdmToRemoveAdMarkLegacy",value:function(t){return t.replace(/data-gfp-role=(\\?"|\\?')adMarkLegacy(\\?"|\\?')/g,"$& style=$1display:none;$2")}}])}(),ZE=function(){function t(e){var n;return Gc(this,t),td(n=Xv(this,t,[e]),"adDivId",void 0),n.adDivId=e.adDivId,n}return Wc(t,JE),Zc(t,[{key:"loadAdMuteLib",value:function(){return this.resourceLoader.saveAndLoad("adMute","javascript",this.adMuteLibUrl)}},{key:"renderAdMute",value:function(){this.controller=this.adMuteLib.createAdMuteController({muteUrl:this.adChoice?.mute,privacyUrl:this.adChoice?.priv,adDivId:this.adDivId,creativeType:this.creativeType,runtimeType:Gv.NDP_JS,muteState:this.initialAdMuteState}),this.controller.render()}},{key:"setAdThemeByHostMeta",value:function(t){if(!t)return;const e=t.get("theme");e&&"string"==typeof e&&this.setAdTheme(e)}}])}(),tg=function(){return Zc(function t({httpClient:e,adCallParams:n,timeout:r,cancelSource:i}){Gc(this,t),td(this,"httpClient",void 0),td(this,"adCallParams",void 0),td(this,"timeout",void 0),td(this,"cancelSource",void 0),this.httpClient=e,this.adCallParams=n,this.timeout=r,this.cancelSource=i},[{key:"execute",value:async function(){const t=new HE;t.set("request",Date.now());try{const e=await this.requestAdInternal();if(!e)throw new bE(_v.LOAD_ERROR_WATERFALL_LIST_REQUEST_FAILED,wv.INVALID_WATERFALL_RESPONSE,"Empty waterfall response",Ov.ERROR);return t.set("response",Date.now()),{adResponse:e,timeMap:t}}catch(t){if(t instanceof bE)throw t;const e=this.cancelSource?.isCanceled;if(e)return;throw bE.fromError(t,_v.LOAD_ERROR_WATERFALL_LIST_REQUEST_FAILED,wv.NETWORK_ERROR)}}},{key:"requestAdInternal",value:function(){return this.httpClient.get("/gfp/v1",{params:this.adCallParams,timeout:this.timeout,cancelSource:this.cancelSource})}}])}(),eg=function(){return Zc(function t(e,n){Gc(this,t),td(this,"adUnitId",void 0),td(this,"adElementId",void 0),td(this,"cancelSource",void 0),td(this,"structuredUserAgent",void 0),this.adUnitId=e,this.adElementId=n},[{key:"withStructuredUserAgent",value:function(t){return this.structuredUserAgent=t,this}},{key:"build",value:function(){const t=this.buildAdRequestProps();return{adRequest:new tg(t),cancelSource:t.cancelSource}}},{key:"buildAdCallParams",value:function(){const{appName:t,appVersion:e,webAppVersion:n,yob:r,gender:i,uct:o,uid:a,ai:s,iv:u}=this.getGlobalConfig(),{name:c,version:d}=this.getSdkInfo(),l=this.getCustomParams(),f=this.getPrivacyParams(),h=t||(window.location?.hostname??""),v=document.referrer?.substring(0,255)??"",p=window.location?.href?.substring(0,255)??"",{tfua:E,tfcd:g}=f,y=1===E||1===g,m=KE.isWebAppEnvironment()?1:0,A={u:this.adUnitId,xdid:this.adElementId,p:PE(l),an:h,av:e,wv:n,yob:r,g:i,uct:o,uid:a,r:v,c:p,sn:c,sv:d,nt:NE(),iv:u||uE.getIV(),ivt:uE.getIVT(u),sa:Vv.DISABLED,rui:Up(),br:m,sua:this.structuredUserAgent?JSON.stringify(this.structuredUserAgent):void 0,...f};return y||(A.ai=s),A}},{key:"buildAdRequestProps",value:function(){const{requestTimeout:t}=this.getGlobalConfig(),e=Object.entries(this.buildAdCallParams()).reduce((t,[e,n])=>(np(n)||(t[e]=n),t),{}),n=this.getHttpClient(),r=n.getCancelSource();return{adCallParams:e,httpClient:n,timeout:t,cancelSource:r}}}])}(),ng=function(){return Zc(function t(){Gc(this,t),td(this,"emptyAds",void 0),td(this,"observer",void 0),td(this,"intersectionObserverCallback",t=>{t.forEach(t=>{const e=this.emptyAds.get(t.target);if(!e)return;const{viewableImpressionConfig:n,eventNotifier:r,timer:i}=e;if(t.isIntersecting&&t.intersectionRatio>=n.ratio){if(i)return;const o=window.setTimeout(()=>{r.fireViewableImpressionEvent(null),this.unobserve(t.target)},n.ms);this.emptyAds.set(t.target,{...e,timer:o})}else window.clearTimeout(i),this.emptyAds.set(t.target,{...e,timer:void 0})})}),this.emptyAds=new WeakMap,this.observer=new IntersectionObserver(this.intersectionObserverCallback,{threshold:[0,.5,1]})},[{key:"observe",value:function(t,e,n){const r=Wp(e);this.emptyAds.set(t,{viewableImpressionConfig:r,eventNotifier:n,timer:void 0}),this.observer.observe(t)}},{key:"unobserve",value:function(t){this.emptyAds.has(t)&&(this.emptyAds.delete(t),this.observer.unobserve(t))}}])}();const rg=()=>{let t="null"===window.origin?null:window.origin;return Ap()&&(t=t??window.location?.origin),t??"*"},ig=(t,e)=>t?e:rg();function og(t,e,n,r){var i=ai(oi(t.prototype),e,n);return"function"==typeof i?function(t){return i.apply(n,t)}:i}function ag(t,e,n){return e=oi(e),Qu(t,sg()?Reflect.construct(e,n||[],oi(t).constructor):e.apply(t,n))}function sg(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(sg=function(){return!!t})()}function ug(t){return!Number.isFinite(t)||t<0?9:Math.min(Math.floor(t),9)}let cg=function(){return Zc(function t(e,n){Gc(this,t),td(this,"maxDedupReqCount",void 0),td(this,"exclusionCriteriaList",void 0),this.maxDedupReqCount=ug(e),this.exclusionCriteriaList=n,this.dequeue()},[{key:"accumulateExclusionCriteria",value:function(t){if(!t)return;const{advertiserDomains:e,adDuplicationKeys:n}=t;np(e)&&np(n)||(this.exclusionCriteriaList.push(t),this.dequeue())}},{key:"mergeIntoExclusionCriteria",value:function(){const t=[],e=[];return this.exclusionCriteriaList.forEach(n=>{t.push(...n.adDuplicationKeys),e.push(...n.advertiserDomains)}),{adDuplicationKeys:Lp(t),advertiserDomains:Lp(e)}}},{key:"dequeue",value:function(){for(;this.exclusionCriteriaList.length>this.maxDedupReqCount;)this.exclusionCriteriaList.shift()}}])}();var dg;!function(t){t[t.ADAPTER_PICKED=0]="ADAPTER_PICKED",t[t.AD_LOADED=1]="AD_LOADED",t[t.AD_RENDERED=2]="AD_RENDERED",t[t.AD_CLICKED=3]="AD_CLICKED",t[t.AD_IMPRESSED=4]="AD_IMPRESSED",t[t.AD_MUTE_COMPLETED=5]="AD_MUTE_COMPLETED",t[t.AD_MUTE_STATE_CHANGED=6]="AD_MUTE_STATE_CHANGED",t[t.CREATIVE_META_CHANGED=7]="CREATIVE_META_CHANGED",t[t.LOAD_ERROR=8]="LOAD_ERROR",t[t.START_ERROR=9]="START_ERROR"}(dg||(dg={}));let lg=function(){function t(){return Gc(this,t),ag(this,t,arguments)}return Wc(t,Qp),Zc(t)}();var fg;!function(t){t[t.NOT_DETERMINED=0]="NOT_DETERMINED",t[t.RESTRICTED=1]="RESTRICTED",t[t.DENIED=2]="DENIED",t[t.AUTHORIZED=3]="AUTHORIZED"}(fg||(fg={}));var hg;!function(t){t.PLAY="play",t.PAUSE="pause",t.ENDED="ended",t.MUTE="mute"}(hg||(hg={}));const vg="da_dom_id";let pg=function(){function t(e,n){var r;return Gc(this,t),td(r=ag(this,t,[e.adUnitId,e.adSlotElementId]),"adRequestOptions",void 0),td(r,"store",void 0),td(r,"adDeduplicationChunk",void 0),td(r,"nac",void 0),td(r,"pbjsTargeting",void 0),td(r,"apsTargeting",void 0),r.adRequestOptions=e,r.store=n,r}return Wc(t,eg),Zc(t,[{key:"withAdDeduplicationChunk",value:function(t){return this.adDeduplicationChunk=t,this}},{key:"withNAC",value:function(t){return this.nac=t,this}},{key:"withPbjsTargeting",value:function(t){return this.pbjsTargeting=t,this}},{key:"withApsTargeting",value:function(t){return this.apsTargeting=t,this}},{key:"getSdkInfo",value:function(){const{globalEnv:t}=this.store;return{name:"web",version:t.version}}},{key:"getGlobalConfig",value:function(){const{globalConfig:t}=this.store;return t}},{key:"getCustomParams",value:function(){const{customParam:t}=this.store;return{...t,...this.adRequestOptions.customParam,[vg]:this.adRequestOptions.adSlotElementId}}},{key:"getPrivacyParams",value:function(){const{privacyManager:t}=this.store;return t.getPrivacyInfo()}},{key:"buildAdCallParams",value:function(){const e=og(t,"buildAdCallParams",this)([]),{segmentForABT:n,contentId:r}=this.store,i=this.adDeduplicationChunk?.mergeIntoExclusionCriteria(),o=i?.advertiserDomains.map(t=>_p(t)).join("|"),a=i?.adDuplicationKeys.map(t=>_p(t)).join("|"),s=this.store.appSDKCommunicator.getAppEnv()?.appVersion??e.av,u=this.store.appSDKCommunicator.getAppEnv()?.skadn,c=u?.skAdNetworkVersion??null,d=u?.skAdNetworkIds??null,l=np(c)||np(d)?0:1,f=this.getContentInfoString(),h=this.getContextString(),v=this.getKeywordString(),p=_p(n??"");return{...e,av:s,ba:o,bx:a,hc:this.getApsTargetingString(),hb:this.getPbjsTargetingString(),sa:l,cti:f,ck:h,sk:v,nid:r,abt:p,nc:this.nac}}},{key:"getContentInfoString",value:function(){const t=this.adRequestOptions.contentInfo;if(!t)return;const{sourceType:e,sourceSubType:n,sourceId:r}=t;return PE({st:e,sst:n,si:r})}},{key:"getContextString",value:function(){const t=this.adRequestOptions.context;if(!t)return;const e=Object.entries(t).reduce((t,[e,n])=>(("string"==typeof n||Array.isArray(n)&&n.every(t=>"string"==typeof t))&&(t[e]=n),t),{});return PE(e)||void 0}},{key:"getKeywordString",value:function(){const t=this.adRequestOptions.keyword;if("string"==typeof t)return t.replace(/\s+/g," ").trim()||void 0}},{key:"getApsTargetingString",value:function(){const t=this.apsTargeting;if(!t)return;const e={amznbid:t.amznbid??"",amzniid:t.amzniid??"",amznsz:t.amznsz??"",amznp:t.amznp??"",slotID:t.slotID??""};return PE({...e})}},{key:"getPbjsTargetingString",value:function(){const t=this.pbjsTargeting;if(!t)return;const e=t.reduce((t,e)=>{const n=e.adserverTargeting;return Object.keys(t).forEach(e=>{const r=e;n[r]&&t[r].push(n[r])}),t},{hb_pb:[],hb_format:[],hb_size:[],hb_bidder:[],hb_adid:[]});return PE({...e})}}])}();const Eg=Symbol(),gg=Object.freeze({importAdapter:Eg});let yg=function(){return Zc(function t({store:e,adUnitId:n,adSlotElementId:r,customParam:i,ad:o,adExtraData:a,eventNotifier:s,adSlotListener:u,isRestored:c,enablePersistAd:d}){Gc(this,t),td(this,"store",void 0),td(this,"adUnitId",void 0),td(this,"adSlotElementId",void 0),td(this,"customParam",void 0),td(this,"ad",void 0),td(this,"adExtraData",void 0),td(this,"eventNotifier",void 0),td(this,"adSlotListener",void 0),td(this,"isRestored",void 0),td(this,"enablePersistAd",void 0),td(this,"adContainer",void 0),td(this,"visibilityObserver",void 0),td(this,"currState",Iv.PICKED),td(this,"timeMap",void 0),td(this,"adapterLoadWatcher",void 0),td(this,"renderConfig",void 0),td(this,"clickHandler",void 0),td(this,"exposureChangeHandler",({isIntersecting:t,intersectionRatio:e})=>{this.adExposureChanged(t,e)}),this.store=e,this.adUnitId=n,this.adSlotElementId=r,this.customParam=i,this.ad=o,this.adExtraData=a,this.eventNotifier=s,this.adSlotListener=u,this.isRestored=c,this.enablePersistAd=d,this.adContainer=document.getElementById(r);const l=Wp(this.adExtraData.waterfallResponseConfig?.imp);try{this.visibilityObserver=new Jp(this.adContainer,l)}catch{this.visibilityObserver=null}this.timeMap=new HE,this.timeMap.set("picked",Date.now()),this.adapterLoadWatcher=new OE(o)},[{key:"getAdContext",value:function(){return this.ad.adInfo.adContext}},{key:"getAdProviderName",value:function(){return this.ad.adProviderName}},{key:"getCreativeType",value:function(){return this.ad.creativeType}},{key:"getNativeAdVisualId",value:function(){return this.ad?.adInfo?.adStyle?.visual?.id}},{key:"setRenderConfig",value:function(t){this.renderConfig=t}},{key:"setClickHandler",value:function(t){this.clickHandler=t}},{key:"invokeClickHandler",value:async function(t,e,n){const r=this.clickHandler&&"function"==typeof this.clickHandler,i=this.store.appSDKCommunicator.getSkadnEventHandler();if(this.ad.adInfo?.skadn&&i){if(await i.sendAdClick(this.ad.adInfo.skadn))return;if(r)this.clickHandler?.(t,e,n);else{const e=document.createElement("a");e.href=t,e.target="_blank",e.click()}}else r&&this.clickHandler?.(t,e,n)}},{key:"requestAd",value:async function(){this.changeState(Iv.REQUESTED);try{this.onCheckAndSetAdParam()}catch(t){const e=bE.fromError(t,_v.INTERNAL_ERROR,wv.RECEIVED_INVALID_PROPERTY);throw this.adError(e),e}try{await Promise.all([this.adapterLoadWatcher.start(),this.loadAdapterAd()])}catch(t){const e=bE.fromError(t,_v.LOAD_ERROR,wv.UNSPECIFIED);throw this.adError(e),e}}},{key:"onCheckAndSetAdParam",value:function(){if(!this.adContainer)throw new Error(`Not found '${this.adSlotElementId}' Element.`);this.adContainer.innerHTML=""}},{key:"savePersistAd",value:function(){const{persistenceStore:t}=this.store;this.enablePersistAd&&t.setAd(`${wp()}_${this.adSlotElementId}`,{ad:this.ad,adExtraData:this.adExtraData})}},{key:"handleExposureChangeSetting",value:function(t){t?this.visibilityObserver?.addEventListener(Hv.EXPOSURE_CHANGED,this.exposureChangeHandler):this.visibilityObserver?.removeEventListener(Hv.EXPOSURE_CHANGED,this.exposureChangeHandler)}},{key:"changeState",value:function(t){this.currState=t,this.store.logger.changeState(t,this.adSlotElementId)}},{key:"adLoaded",value:function(){if(this.changeState(Iv.LOADED),this.timeMap.set("loaded",Date.now()),this.adapterLoadWatcher.onLoaded(),!this.isRestored){const t=this.timeMap.calculateFromTo("picked","loaded");this.eventNotifier?.fireAckImpEvent(this.getCreativeType(),t,this.getSize()),this.adSlotListener.dispatch(dg.AD_LOADED)}this.store.extensionBridge.sendAdLoadEvent({adSlotElementId:this.adSlotElementId,adUnitId:this.adUnitId,encrypted:this.ad.encrypted})}},{key:"adRendered",value:function(t=!1){this.changeState(Iv.RENDERED),this.timeMap.set("rendered",Date.now()),t||this.adExtraData.renderedImpressed||(this.adRenderedImpressed(),this.adExtraData.renderedImpressed=!0,this.savePersistAd()),this.resetContainerHeight(),this.adSlotListener.dispatch(dg.AD_RENDERED)}},{key:"adClicked",value:function(t){this.eventNotifier?.fireClickEvent(this.getCreativeType(),this.getSize()),this.store.extensionBridge.sendAdClickEvent({adSlotElementId:this.adSlotElementId,adUnitId:this.adUnitId,encrypted:this.ad.encrypted}),this.adSlotListener.dispatch(dg.AD_CLICKED,{slotIndex:t})}},{key:"adRenderedImpressed",value:function(){this.eventNotifier?.fireRenderedImpressionEvent(this.getCreativeType(),this.getSize()),this.store.extensionBridge.sendAdRenderEvent({adSlotElementId:this.adSlotElementId,adUnitId:this.adUnitId,encrypted:this.ad.encrypted})}},{key:"adViewableImpressed",value:function(){if(this.eventNotifier?.fireViewableImpressionEvent(this.getCreativeType(),this.getSize()),this.adSlotListener.dispatch(dg.AD_IMPRESSED),this.store.extensionBridge.sendAdViewableImpressEvent({adSlotElementId:this.adSlotElementId,adUnitId:this.adUnitId,encrypted:this.ad.encrypted}),this.ad.adInfo.skadn){const t=this.store.appSDKCommunicator.getSkadnEventHandler();t?.sendImpressionStart(this.ad.adInfo.skadn)}}},{key:"adError",value:function(t){switch(this.store.neloLogger.logMethodFrequently({method:`DisplayAdAdapter.adError(${Iv[this.currState]})`,stace:t.errorMessage,sampleRate:1/60*.01}),this.store.extensionBridge.sendAdErrorEvent({adSlotElementId:this.adSlotElementId,adUnitId:this.adUnitId,encrypted:this.ad.encrypted},{message:t.errorMessage,state:Iv[this.currState]}),this.currState){case Iv.PICKED:case Iv.REQUESTED:this.adapterLoadWatcher.isPending?this.adapterLoadWatcher.onError(t):this.eventNotifier.fireLoadErrorEvent(this.timeMap.calculateNow("picked"),t);break;case Iv.LOADED:case Iv.AD_START_REQUESTED:case Iv.RENDERED:this.eventNotifier.fireStartErrorEvent(this.timeMap.calculateNow("rendered"),t),this.adSlotListener.dispatch(dg.START_ERROR,{error:t});case Iv.DESTROYED:}}},{key:"adExposureChanged",value:function(t,e){}},{key:"clearVisibilityObserver",value:function(){this.visibilityObserver?.stop()}},{key:"fixContainerHeight",value:function(){if(this.currState===Iv.RENDERED&&null===this.adContainer?.getAttribute(mg)){const t=this.adContainer.style.height;this.adContainer.setAttribute(mg,t),this.adContainer.style.height=this.adContainer.getBoundingClientRect().height+"px"}}},{key:"resetContainerHeight",value:function(){if(!this.adContainer)return;const t=this.adContainer.getAttribute(mg);null!==t&&(this.adContainer.style.height=t,this.adContainer.removeAttribute(mg))}},{key:"clearAdContainer",value:function(){for(;this.adContainer?.firstChild;)this.adContainer.removeChild(this.adContainer.firstChild)}},{key:"destroy",value:function(){this.changeState(Iv.DESTROYED),this.adapterLoadWatcher.destroy(),this.clearVisibilityObserver()}}])}();const mg="data-gfp-original-height";let Ag=function(){function t(e){var n;return Gc(this,t),td(n=ag(this,t,[e]),"isFluid",void 0),n.isFluid=n.ad.layoutType===Cv.FLUID,n}return Wc(t,yg),Zc(t,[{key:"adRendered",value:function(e=!1){og(t,"adRendered",this)([e]),this.adExtraData.viewableImpressed||this.visibilityObserver?.addEventListener(Hv.VIEWABLE_IMPRESSED,()=>{this.adViewableImpressed(),this.adExtraData.viewableImpressed=!0,this.savePersistAd()}),this.visibilityObserver?.start()}},{key:"destroy",value:function(){og(t,"destroy",this)([]),this.clearAdContainer()}}])}(),Sg=function(){function t(e){return Gc(this,t),ag(this,t,[e])}return Wc(t,yg),Zc(t,[{key:"getSize",value:function(){}},{key:"adLoaded",value:function(){if(og(t,"adLoaded",this)([]),!this.isRestored){const t=this.timeMap.calculateFromTo("picked","loaded");this.eventNotifier?.getAllSubEventNotifiers()?.forEach(e=>{e.fireAckImpEvent(this.getCreativeType(),t,this.getSize())})}}},{key:"adRendered",value:function(e=!1){og(t,"adRendered",this)([e]),this.adExtraData.viewableImpressed||this.visibilityObserver?.addEventListener(Hv.VIEWABLE_IMPRESSED,()=>{this.adViewableImpressed(),this.adExtraData.viewableImpressed=!0,this.savePersistAd()}),this.adExtraData.viewable1pxImpressed||this.visibilityObserver?.addEventListener(Hv.IMPRESSED_1PX,()=>{this.adViewable1pxImpressed(),this.adExtraData.viewable1pxImpressed=!0,this.savePersistAd()}),this.adExtraData.viewable100Impressed||this.visibilityObserver?.addEventListener(Hv.IMPRESSED_100P,()=>{this.adViewable100Impressed(),this.adExtraData.viewable100Impressed=!0,this.savePersistAd()}),this.adExtraData.viewable100pImpressed||this.visibilityObserver?.addEventListener(Hv.IMPRESSED_100P_WITH_DURATION_1S,()=>{this.adViewable100pImpressed(),this.adExtraData.viewable100pImpressed=!0,this.savePersistAd()}),this.visibilityObserver?.start()}},{key:"adViewable1pxImpressed",value:function(){this.eventNotifier?.fireVImp1pxEvent()}},{key:"adViewable100Impressed",value:function(){this.eventNotifier?.fireVImp100Event()}},{key:"adViewable100pImpressed",value:function(){this.eventNotifier?.fireVImp100pEvent()}}])}(),Rg=function(){return Zc(function t(e,n){Gc(this,t),td(this,"version",void 0),td(this,"phase",void 0),td(this,"enabled",void 0),this.version=e,this.phase=n,this.enabled=!1},[{key:"tryHandshake",value:function(){const t=e=>{"gfp-ad-extension-pong"===e.data.type&&(this.enable(),window.removeEventListener("message",t))};window.addEventListener("message",t),window.postMessage({type:"gfp-ad-extension-ping",data:{version:this.version,phase:this.phase}})}},{key:"enable",value:function(){this.enabled=!0}},{key:"sendWaterfallResponse",value:function(t){this.enabled&&window.postMessage({type:"gfp-ad-extension-waterfall",data:{waterfall:t,version:this.version,phase:this.phase}})}},{key:"sendAdLoadEvent",value:function(t){this.enabled&&window.postMessage({type:"gfp-ad-extension-ad-loaded",data:t})}},{key:"sendAdRenderEvent",value:function(t){this.enabled&&window.postMessage({type:"gfp-ad-extension-ad-rendered",data:t})}},{key:"sendAdClickEvent",value:function(t){this.enabled&&window.postMessage({type:"gfp-ad-extension-ad-clicked",data:t})}},{key:"sendAdViewableImpressEvent",value:function(t){this.enabled&&window.postMessage({type:"gfp-ad-extension-ad-viewable-impressed",data:t})}},{key:"sendAdErrorEvent",value:function(t,e){this.enabled&&window.postMessage({type:"gfp-ad-extension-ad-error",data:t,error:e})}}])}();const Ig={production:{url:"https://kr-col-ext.nelo.navercorp.com/_store",txtToken:"118cdcf6554c4b0ea95c92784cf3e054",projectName:"Pcf3b65_AdSDKDev-web-method"},development:{url:"https://dev-col-tcp.nelo.navercorp.com/_store",txtToken:"5b0f2d6f111f4243a6b2a7f59ec06df4",projectName:"Pecb3ef_AdSDKWeb"}};let kg=function(){return Zc(function t(e,n){Gc(this,t),td(this,"phase",void 0),td(this,"version",void 0),td(this,"isSelected",void 0),td(this,"hitMap",{}),this.phase=e,this.version=n,this.isSelected=Math.random()<1e-5},[{key:"log",value:function(t){const{projectName:e,txtToken:n,url:r}="production"===this.phase||"staging"===this.phase?Ig.production:Ig.development;try{window.navigator.sendBeacon(r,JSON.stringify({txtToken:n,projectName:e,projectVersion:this.version,hostname:window.location.hostname,href:window.location.href,phase:this.phase,ua:navigator.userAgent,...t})),this.hitMap[t.method]=!0}catch(t){}}},{key:"logMethodUniquely",value:function(t){const e="production"!==this.phase,n=this.isSelected,r=e||n;!this.hitMap[t.method]&&r&&this.log(t)}},{key:"logMethodFrequently",value:function(t){const e="production"!==this.phase,n="number"==typeof t.sampleRate&&Math.random()new Date(n)?null:e.savedAd}},{key:"setBounceBackUrls",value:function(t){np(t)||this.setItem(bg,{bounceUrls:t,timestamp:Number(new Date)})}},{key:"getBounceBackMeta",value:function(){return this.getItem(bg)}},{key:"clearBounceBackMeta",value:function(){this.removeItem(bg)}}])}(),_g=function(){return Zc(function t(e){Gc(this,t),td(this,"globalConfig",void 0),td(this,"globalEnv",void 0),td(this,"thirdPartyAdapters",void 0),td(this,"hostMeta",void 0),td(this,"forceSafeFrame",void 0),td(this,"customParam",void 0),td(this,"segmentForABT",void 0),td(this,"contentId",void 0),td(this,"resourceLoader",void 0),td(this,"persistenceStore",void 0),td(this,"privacyManager",void 0),td(this,"extensionBridge",void 0),td(this,"appSDKCommunicator",void 0),td(this,"logger",void 0),td(this,"neloLogger",void 0),this.globalConfig=e,this.globalEnv=this.getGlobalEnv(),this.thirdPartyAdapters=[],this.hostMeta=new Map,this.forceSafeFrame=!1,this.resourceLoader=new VE,this.persistenceStore=new Dg,this.privacyManager=new xE,this.extensionBridge=new Rg(this.globalEnv.version,this.globalEnv.phase),this.logger=this.getLogger(),this.appSDKCommunicator=new KE,this.appSDKCommunicator.init(),this.neloLogger=new kg(this.globalEnv.phase,this.globalEnv.version)},[{key:"setGlobalConfig",value:function(t){this.globalConfig=Object.assign({},this.globalConfig,t)}},{key:"setForceSafeFrame",value:function(t){this.forceSafeFrame=t}},{key:"setCustomParam",value:function(t,e){const n=this.customParam;this.customParam=Object.assign({},n,{[t]:e})}},{key:"setPrivacySettings",value:function(t){this.privacyManager.setPrivacySettingsConfig(t)}},{key:"setSegmentForABT",value:function(t){this.segmentForABT=t}},{key:"setContentId",value:function(t){this.contentId=t}},{key:"setGlobalEnv",value:function(t){this.globalEnv=Np(this.globalEnv,t)}},{key:"addThirdPartyAdapter",value:function(t){this.thirdPartyAdapters.push(t)}}])}();var wg;function Og(t,e,n,r){var i=ai(oi(t.prototype),e,n);return 2&r&&"function"==typeof i?function(t){return i.apply(n,t)}:i}function Lg(t,e,n){Cg(t,e),e.set(t,n)}function Cg(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Mg(t,e){return t.get(Pg(t,e))}function Ng(t,e,n){return t.set(Pg(t,e),n),n}function Pg(t,e,n){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}function Ug(t,e,n){return e=oi(e),Qu(t,xg()?Reflect.construct(e,n||[],oi(t).constructor):e.apply(t,n))}function xg(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(xg=function(){return!!t})()}const Fg=()=>{const t="3.12.1",e=`https://ssl.pstatic.net/tveta/libs/glad/prod/${t}`,n=xp(()=>new URL(e,document.URL).origin)??"";return Object.freeze({version:t,phase:"production",gfp:{chunkUrl:e,cdnDomain:n,adCallUrl:"https://nam.veta.naver.com",cdnUrl:"https://ssl.pstatic.net/melona",safeFrameContainerUrl:`${e}/res/r.html`,adMuteLibUrl:"https://ssl.pstatic.net/melona/libs/glad_admute/prod/glad-admute.js",nacModuleUrl:"https://ssl.pstatic.net/melona/libs/gfp-nac-module/synchronizer.js",devtoolsUrl:`${e}/devtools/index.html`},tivan:{url:"https://tivan.naver.com"}})};let Vg=function(){return Zc(function t(){Gc(this,t)},null,[{key:"getLogger",value:function(){return this.universalLogger}},{key:"addLogger",value:function(t,...e){const n=new t(Fg(),...e);return this.loggers.push(n),this.cmd.forceExecuteCommands(),n}},{key:"callLoggerMethod",value:function(t,...e){this.cmd.push(()=>{for(const n of this.loggers){const r=n[t];"function"==typeof r&&r.apply(n,e)}})}}])}();wg=Vg,td(Vg,"universalLogger",void 0),td(Vg,"loggers",void 0),td(Vg,"cmd",void 0),wg.universalLogger=new Proxy({},{get:(t,e)=>(...t)=>wg.callLoggerMethod(e,...t)}),wg.loggers=[],wg.cmd=new tE;const jg=Vg.getLogger(),Hg={requestTimeout:6e4,language:"en",appName:window.location?.hostname,enablePersistAd:!1,maxDedupReqCount:9,adViewabilityMeasureType:"VIEWABLE_NORMAL"};const Bg=new(function(){function t(){var e;return Gc(this,t),td(e=Ug(this,t,[Hg]),"emptyAdsObserver",void 0),e.emptyAdsObserver=new ng,e}return Wc(t,_g),Zc(t,[{key:"getGlobalEnv",value:function(){return Fg()}},{key:"getLogger",value:function(){return jg}}])}()),Wg=()=>Bg;var Gg;!function(t){t[t.IDLE=1]="IDLE",t[t.LOAD_REQUESTED=2]="LOAD_REQUESTED",t[t.LOADED=4]="LOADED",t[t.CLICKED=8]="CLICKED",t[t.IMPRESSED=16]="IMPRESSED",t[t.FAILED_TO_LOAD=32]="FAILED_TO_LOAD",t[t.OCCURRED_ERROR=64]="OCCURRED_ERROR",t[t.DESTROYED=128]="DESTROYED"}(Gg||(Gg={}));let qg=function(){function t(e){var n;return Gc(this,t),(n=Ug(this,t,[e.maxDedupReqCount,e.exclusionCriteriaList])).dequeue(),n}return Wc(t,cg),Zc(t,[{key:"displayAds",value:async function(t){for await(const e of t)await this.displayAd(e)}},{key:"restoreAds",value:async function(t){await Promise.all(t.map(t=>this.restoreAd(t)))}},{key:"displayAd",value:async function(t){jg.dedupDisplayAd(t.adSlot.getAdSlotElementId()),t.hasState(Gg.LOAD_REQUESTED)||await t.loadAd(this)}},{key:"restoreAd",value:async function(t){if(jg.dedupRestoreAd(t.adSlot.getAdSlotElementId()),t.hasState(Gg.LOAD_REQUESTED))return;const{adSlot:e}=t,n=e.getAdSlotElementId();if(!document.getElementById(n))return;const{persistenceStore:r}=Wg(),i=r.getAd(`${wp()}_${n}`);e.isPersistAdEnabled()&&i&&await t.loadAdWithPersistData(i)}}])}();var Kg=new WeakMap,zg=new WeakMap,$g=new WeakMap,Qg=new WeakMap;let Yg=function(){return Zc(function t({dedupReqId:e,maxDedupReqCount:n,getAdSlotManager:r}){Gc(this,t),td(this,"dedupReqId",void 0),td(this,"maxDedupReqCount",void 0),Lg(this,Kg,void 0),Lg(this,zg,void 0),Lg(this,$g,void 0),Lg(this,Qg,void 0),this.dedupReqId=e,this.maxDedupReqCount=n,Ng(Kg,this,[]),Ng(zg,this,[]),Ng($g,this,new Zv),Mg($g,this).forceExecuteCommands(),Ng(Qg,this,r)},[{key:"exclusionCriteriaList",get:function(){return Mg(zg,this)}},{key:"displayAds",value:function(t){Mg($g,this).push(async()=>{const e=[];for(const n of t){const t=Mg(Qg,this).call(this,n);if(!t)continue;if(t.hasState(Gg.LOAD_REQUESTED)){const{neloLogger:e}=Wg();e.logMethodUniquely({method:"AdDeduplicationManager.displayAds (AdSlotState.LOAD_REQUESTED)",stace:(new Error).stack}),t.invalidate()}const r=Mg(Kg,this).findIndex(t=>n.getAdSlotElementId()===t.getAdSlotElementId());-1===r?Mg(Kg,this).push(n):Mg(Kg,this).splice(r,1,n),e.push(t)}if(np(e))return;const n=new qg(this);await n.displayAds(e)})}},{key:"restoreAds",value:function(t){const e=t??Mg(Kg,this),n=[];for(const t of e){const e=Mg(Qg,this).call(this,t);e&&(e.hasState(Gg.LOAD_REQUESTED)&&e.invalidate(!0),n.push(e))}if(np(n))return;new qg(this).restoreAds(n)}},{key:"clearAllExclusions",value:function(){Mg(zg,this).length=0}}])}(),Xg=function(){function t(e){var n;return Gc(this,t),td(n=Ug(this,t),"adSlot",void 0),n.adSlot=e,n}return Wc(t,LE),Zc(t,[{key:"createAdapterInstance",value:function(t,e,n,r,{adSlotListener:i,isRestored:o}){return Array.isArray(e.adInfo.slots)&&!n.slotEventTrackingFlags&&(n.slotEventTrackingFlags=e.adInfo.slots.map(()=>({viewableImpressed:!1,viewable1pxImpressed:!1,viewable100Impressed:!1,viewable100pImpressed:!1}))),new t({store:Wg(),adUnitId:this.adSlot.getAdUnitId(),adSlotElementId:this.adSlot.getAdSlotElementId(),customParam:this.adSlot.getCustomParam(),ad:e,adExtraData:n,eventNotifier:r,adSlotListener:i,isRestored:o,enablePersistAd:this.adSlot.isPersistAdEnabled()})}},{key:"importAdapter",value:async function(t){const e=window.gladsdk?.[gg.importAdapter];"function"==typeof e&&await e(t)}},{key:"getThirdPartyAdapters",value:function(){const{thirdPartyAdapters:t}=Wg();return t}},{key:"getAdapterClass",value:function(e){return jg.getAdapterClass(e,this.adSlot.getAdSlotElementId()),Og(t,"getAdapterClass",this,3)([e])}},{key:"getSavedAdapterClass",value:function(e){if(!this.adSlot.isForceSafeFrame()&&this.adSlot.isFrameless()){var n,r;const t='data-gfp-role="templateElement"',i=1===e.adInfo.encoded?encodeURIComponent(t):t,o=(null==(n=e.adInfo.adStyle?.deco)?void 0:Function.call.bind(Kv(r=n.body),r))?.(i);if(o){const t=this.getThirdPartyAdapters().find(t=>"NdaLitNativeAdapter"===t.adapter.displayName);if(t)return t.adapter}}return Og(t,"getSavedAdapterClass",this,3)([e])}}])}(),Jg=function(){function t({adSlot:e,adSlotListener:n,isRestored:r,...i}){var o;return Gc(this,t),td(o=Ug(this,t,[i]),"adSlot",void 0),td(o,"adSlotListener",void 0),td(o,"isRestored",void 0),td(o,"adapterPicker",void 0),o.adSlot=e,o.adSlotListener=n,o.isRestored=r,o.adapterPicker=new Xg(o.adSlot),o}return Wc(t,wE),Zc(t,[{key:"pickAdapter",value:async function(t,e){var n;jg.ad(t,this.adSlot.getAdSlotElementId());let r=t;Kv(n=[Fv.NATIVE_SIMPLE,Fv.NATIVE_NORMAL]).call(n,t.renderType)&&"native-ad-slot"===document.getElementById(this.adSlot.getAdSlotElementId())?.getAttribute("data-gfp-role")&&(r={...t,renderType:Fv.NATIVE_ADVANCED});const i=await this.adapterPicker.pickAdapter(r,this.adExtraData,e,{adSlotListener:this.adSlotListener,isRestored:this.isRestored});return this.adSlotListener.dispatch(dg.ADAPTER_PICKED,{adapter:i}),i}},{key:"getGlobalConfig",value:function(){const{globalConfig:t}=Wg();return t}},{key:"loadAd",value:function(){return this.isRestored?this.processNextAd():Og(t,"loadAd",this,3)([])}},{key:"destroy",value:function(e=!1){e&&this.pickedAdapter?.fixContainerHeight(),Og(t,"destroy",this,3)([])}},{key:"throwEmptyRenderError",value:function(t){throw new CE(t,Wg().emptyAdsObserver,document.getElementById(this.adSlot.getAdSlotElementId()),this.adExtraData.waterfallResponseConfig?.imp)}},{key:"onAdapterError",value:function(t){const e=bE.fromError(t,_v.LOAD_ERROR,wv.UNSPECIFIED);jg.gfpError(e,this.adSlot.getAdSlotElementId())}}])}(),Zg=function(){function t(){return Gc(this,t),Ug(this,t,arguments)}return Wc(t,tg),Zc(t,[{key:"execute",value:async function(){const e=this.httpClient.baseURL+"/gfp/v1";jg.adCall(this.adCallParams,e,this.adCallParams.xdid);return await Og(t,"execute",this,3)([])}}])}(),ty=function(){function t(e){var n;return Gc(this,t),td(n=Ug(this,t,[{adUnitId:e.getAdUnitId(),adSlotElementId:e.getAdSlotElementId(),customParam:e.getCustomParam(),contentInfo:e.getContentInfo(),context:e.getContext(),keyword:e.getKeyword()},Wg()]),"adSlot",void 0),n.adSlot=e,n}return Wc(t,pg),Zc(t,[{key:"getHttpClient",value:function(){const{globalEnv:t}=this.store;return function(t){const e="function"!=typeof window?.fetch||"function"!=typeof AbortSignal?.any;return new XE(e?new QE(t):new zE(t))}(t.gfp.adCallUrl)}},{key:"build",value:function(){const t=this.buildAdRequestProps();return{adRequest:new Zg(t),cancelSource:t.cancelSource}}},{key:"buildAdCallParams",value:function(){return{...Og(t,"buildAdCallParams",this,3)([]),uim:this.adSlot.getUnifiedIdMap()}}}])}(),ey=function(){return Zc(function t(){Gc(this,t)},null,[{key:"loadScript",value:async function(){try{if(Ap())return;const{resourceLoader:t,globalEnv:e}=Wg(),{nacModuleUrl:n}=e.gfp;await t.saveAndLoad("nacModule","javascript",n)}catch(t){}}},{key:"getNCParam",value:function(){try{return localStorage.getItem("NAC")??void 0}catch(t){return""}}}])}(),ny=function(){return Zc(function t({adSlot:e,adSlotListener:n}){Gc(this,t),td(this,"adSlot",void 0),td(this,"adSlotListener",void 0),td(this,"adExtraData",void 0),td(this,"adMediator",void 0),td(this,"accumulatedState",void 0),td(this,"cancelSource",void 0),this.adSlot=e,this.adSlotListener=n,this.adExtraData={},this.accumulatedState=Gg.IDLE,this.adSlotListener.addEventListener(dg.AD_LOADED,()=>{jg.adLoaded(this.adSlot.getAdSlotElementId()),this.setState(Gg.LOADED)}),this.adSlotListener.addEventListener(dg.AD_RENDERED,()=>{jg.adRendered(this.adSlot.getAdSlotElementId())}),this.adSlotListener.addEventListener(dg.AD_CLICKED,()=>{jg.adClicked(this.adSlot.getAdSlotElementId()),this.setState(Gg.CLICKED)}),this.adSlotListener.addEventListener(dg.AD_IMPRESSED,()=>{jg.adImpressed(this.adSlot.getAdSlotElementId()),this.setState(Gg.IMPRESSED)}),this.adSlotListener.addEventListener(dg.LOAD_ERROR,({error:t})=>{this.setState(Gg.FAILED_TO_LOAD),jg.gfpError(t,this.adSlot.getAdSlotElementId())}),this.adSlotListener.addEventListener(dg.START_ERROR,({error:t})=>{this.setState(Gg.OCCURRED_ERROR),jg.gfpError(t,this.adSlot.getAdSlotElementId())})},[{key:"loadAd",value:async function(t){this.setState(Gg.LOAD_REQUESTED),this.unobserveEmptyAdElement(),jg.loadAd(this.adSlot.getAdSlotElementId());try{const e=await async function(){const t=navigator.userAgentData;if(t)try{const e=await t.getHighEntropyValues(["architecture","bitness","model","platformVersion","fullVersionList"]);return{browsers:(e.fullVersionList||[]).map(({brand:t,version:e})=>({brand:t,version:e.split(".")})),platform:{brand:t.platform,version:(e.platformVersion||"").split(".")},mobile:t.mobile?1:0,architecture:e.architecture,bitness:e.bitness,model:e.model}}catch{return}}(),{adRequest:n,cancelSource:r}=new ty(this.adSlot).withStructuredUserAgent(e).withAdDeduplicationChunk(t).withNAC(ey.getNCParam()).withPbjsTargeting(this.adSlot.getPbjsTargeting()).withApsTargeting(this.adSlot.getApsTargeting()).build();this.cancelSource=r;const i=await n.execute();if(!i)return;const{adResponse:o,timeMap:a}=i;this.handleWaterfallResponse(o,t),await this.mediateAds(o.ads,o.eventTracking,a,!1)}catch(t){this.handleLoadError(t)}}},{key:"loadAdWithPersistData",value:async function(t){this.setState(Gg.LOAD_REQUESTED),this.unobserveEmptyAdElement(),jg.loadAdWithPersistData(this.adSlot.getAdSlotElementId());try{const{ad:e,adExtraData:n}=t,r=new HE;if(r.set("request",Date.now()),r.set("response",Date.now()),!n.gfpEventTracking)throw new bE(_v.LOAD_ERROR_INVALID_PARAM,wv.MISSING_PARAM,"gfpEventTracking is required");this.adExtraData=n,await this.mediateAds([e],n.gfpEventTracking,r,!0)}catch(t){this.handleLoadError(t)}}},{key:"loadAdWithWaterfallResponse",value:async function(t,e){this.setState(Gg.LOAD_REQUESTED),this.unobserveEmptyAdElement(),jg.loadAdWithWaterfallResponse(this.adSlot.getAdSlotElementId());try{this.handleWaterfallResponse(t,e);const n=new HE;n.set("request",Date.now()),n.set("response",Date.now()),await this.mediateAds(t.ads,t.eventTracking,n,!1)}catch(t){this.handleLoadError(t)}}},{key:"refreshAd",value:async function(){if(!(this.hasState(Gg.LOAD_REQUESTED)&&!this.hasState(Gg.LOADED)&&!