widgets.shop.moda.it Open in urlscan Pro
18.102.88.85  Public Scan

URL: https://widgets.shop.moda.it/deliver.js?publisher
Submission: On August 12 via api from IT — Scanned from IT

Form analysis 0 forms found in the DOM

Text Content

var je=Object.create;var Re=Object.defineProperty;var Be=Object.getOwnPropertyDescriptor;var He=Object.getOwnPropertyNames;var We=Object.getPrototypeOf,Ge=Object.prototype.hasOwnProperty;var Je=(n,e)=>()=>(e||n((e={exports:{}}).exports,e),e.exports);var Ye=(n,e,i,t)=>{if(e&&typeof e=="object"||typeof e=="function")for(let c of He(e))!Ge.call(n,c)&&c!==i&&Re(n,c,{get:()=>e[c],enumerable:!(t=Be(e,c))||t.enumerable});return n};var Ze=(n,e,i)=>(i=n!=null?je(We(n)):{},Ye(e||!n||!n.__esModule?Re(i,"default",{value:n,enumerable:!0}):i,n));var Ce=Je(($,K)=>{(function(n,e){"use strict";var i="1.0.36",t="",c="?",b="function",d="undefined",m="object",E="string",R="major",s="model",a="name",r="type",o="vendor",l="version",M="architecture",L="console",w="mobile",u="tablet",x="smarttv",A="wearable",te="embedded",re=350,q="Amazon",N="Apple",fe="ASUS",ye="BlackBerry",C="Browser",j="Chrome",Ve="Edge",B="Firefox",H="Google",Ee="Huawei",se="LG",ne="Microsoft",De="Motorola",W="Opera",oe="Samsung",Ie="Sharp",G="Sony",li="Viera",ae="Xiaomi",le="Zebra",xe="Facebook",ke="Chromium OS",Me="Mac OS",$e=function(v,f){var h={};for(var y in v)f[y]&&f[y].length%2===0?h[y]=f[y].concat(v[y]):h[y]=v[y];return h},J=function(v){for(var f={},h=0;h<v.length;h++)f[v[h].toUpperCase()]=v[h];return f},Se=function(v,f){return typeof v===E?U(f).indexOf(U(v))!==-1:!1},U=function(v){return v.toLowerCase()},Fe=function(v){return typeof v===E?v.replace(/[^\d\.]/g,t).split(".")[0]:e},de=function(v,f){if(typeof v===E)return v=v.replace(/^\s\s*/,t),typeof f===d?v:v.substring(0,re)},V=function(v,f){for(var h=0,y,P,S,g,p,T;h<f.length&&!p;){var pe=f[h],Oe=f[h+1];for(y=P=0;y<pe.length&&!p&&pe[y];)if(p=pe[y++].exec(v),p)for(S=0;S<Oe.length;S++)T=p[++P],g=Oe[S],typeof g===m&&g.length>0?g.length===2?typeof g[1]==b?this[g[0]]=g[1].call(this,T):this[g[0]]=g[1]:g.length===3?typeof g[1]===b&&!(g[1].exec&&g[1].test)?this[g[0]]=T?g[1].call(this,T,g[2]):e:this[g[0]]=T?T.replace(g[1],g[2]):e:g.length===4&&(this[g[0]]=T?g[3].call(this,T.replace(g[1],g[2])):e):this[g]=T||e;h+=2}},ce=function(v,f){for(var h in f)if(typeof f[h]===m&&f[h].length>0){for(var y=0;y<f[h].length;y++)if(Se(f[h][y],v))return h===c?e:h}else if(Se(f[h],v))return h===c?e:h;return v},qe={"1.0":"/8","1.2":"/1","1.3":"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},Te={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2","8.1":"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},Pe={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[l,[a,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[l,[a,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[a,l],[/opios[\/ ]+([\w\.]+)/i],[l,[a,W+" Mini"]],[/\bopr\/([\w\.]+)/i],[l,[a,W]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[a,l],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[l,[a,"UC"+C]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i],[l,[a,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[l,[a,"WeChat"]],[/konqueror\/([\w\.]+)/i],[l,[a,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[l,[a,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[l,[a,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[a,/(.+)/,"$1 Secure "+C],l],[/\bfocus\/([\w\.]+)/i],[l,[a,B+" Focus"]],[/\bopt\/([\w\.]+)/i],[l,[a,W+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[l,[a,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[l,[a,"Dolphin"]],[/coast\/([\w\.]+)/i],[l,[a,W+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[l,[a,"MIUI "+C]],[/fxios\/([-\w\.]+)/i],[l,[a,B]],[/\bqihu|(qi?ho?o?|360)browser/i],[[a,"360 "+C]],[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],[[a,/(.+)/,"$1 "+C],l],[/(comodo_dragon)\/([\w\.]+)/i],[[a,/_/g," "],l],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[a,l],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i,/\[(linkedin)app\]/i],[a],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[a,xe],l],[/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[a,l],[/\bgsa\/([\w\.]+) .*safari\//i],[l,[a,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[l,[a,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[l,[a,j+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[a,j+" WebView"],l],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[l,[a,"Android "+C]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[a,l],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[l,[a,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[l,a],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[a,[l,ce,qe]],[/(webkit|khtml)\/([\w\.]+)/i],[a,l],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[a,"Netscape"],l],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[l,[a,B+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i,/panasonic;(viera)/i],[a,l],[/(cobalt)\/([\w\.]+)/i],[a,[l,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[M,"amd64"]],[/(ia32(?=;))/i],[[M,U]],[/((?:i[346]|x)86)[;\)]/i],[[M,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[M,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[M,"armhf"]],[/windows (ce|mobile); ppc;/i],[[M,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[M,/ower/,t,U]],[/(sun4\w)[;\)]/i],[[M,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[M,U]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[s,[o,oe],[r,u]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[s,[o,oe],[r,w]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[s,[o,N],[r,w]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[s,[o,N],[r,u]],[/(macintosh);/i],[s,[o,N]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[s,[o,Ie],[r,w]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[s,[o,Ee],[r,u]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[s,[o,Ee],[r,w]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[s,/_/g," "],[o,ae],[r,w]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[s,/_/g," "],[o,ae],[r,u]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[s,[o,"OPPO"],[r,w]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[s,[o,"Vivo"],[r,w]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[s,[o,"Realme"],[r,w]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[s,[o,De],[r,w]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[s,[o,De],[r,u]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[s,[o,se],[r,u]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[s,[o,se],[r,w]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[s,[o,"Lenovo"],[r,u]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[s,/_/g," "],[o,"Nokia"],[r,w]],[/(pixel c)\b/i],[s,[o,H],[r,u]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[s,[o,H],[r,w]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[s,[o,G],[r,w]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[s,"Xperia Tablet"],[o,G],[r,u]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[s,[o,"OnePlus"],[r,w]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[s,[o,q],[r,u]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[s,/(.+)/g,"Fire Phone $1"],[o,q],[r,w]],[/(playbook);[-\w\),; ]+(rim)/i],[s,o,[r,u]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[s,[o,ye],[r,w]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[s,[o,fe],[r,u]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[s,[o,fe],[r,w]],[/(nexus 9)/i],[s,[o,"HTC"],[r,u]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[o,[s,/_/g," "],[r,w]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[s,[o,"Acer"],[r,u]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[s,[o,"Meizu"],[r,w]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[o,s,[r,w]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[o,s,[r,u]],[/(surface duo)/i],[s,[o,ne],[r,u]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[s,[o,"Fairphone"],[r,w]],[/(u304aa)/i],[s,[o,"AT&T"],[r,w]],[/\bsie-(\w*)/i],[s,[o,"Siemens"],[r,w]],[/\b(rct\w+) b/i],[s,[o,"RCA"],[r,u]],[/\b(venue[\d ]{2,7}) b/i],[s,[o,"Dell"],[r,u]],[/\b(q(?:mv|ta)\w+) b/i],[s,[o,"Verizon"],[r,u]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[s,[o,"Barnes & Noble"],[r,u]],[/\b(tm\d{3}\w+) b/i],[s,[o,"NuVision"],[r,u]],[/\b(k88) b/i],[s,[o,"ZTE"],[r,u]],[/\b(nx\d{3}j) b/i],[s,[o,"ZTE"],[r,w]],[/\b(gen\d{3}) b.+49h/i],[s,[o,"Swiss"],[r,w]],[/\b(zur\d{3}) b/i],[s,[o,"Swiss"],[r,u]],[/\b((zeki)?tb.*\b) b/i],[s,[o,"Zeki"],[r,u]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[o,"Dragon Touch"],s,[r,u]],[/\b(ns-?\w{0,9}) b/i],[s,[o,"Insignia"],[r,u]],[/\b((nxa|next)-?\w{0,9}) b/i],[s,[o,"NextBook"],[r,u]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[o,"Voice"],s,[r,w]],[/\b(lvtel\-)?(v1[12]) b/i],[[o,"LvTel"],s,[r,w]],[/\b(ph-1) /i],[s,[o,"Essential"],[r,w]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[s,[o,"Envizen"],[r,u]],[/\b(trio[-\w\. ]+) b/i],[s,[o,"MachSpeed"],[r,u]],[/\btu_(1491) b/i],[s,[o,"Rotor"],[r,u]],[/(shield[\w ]+) b/i],[s,[o,"Nvidia"],[r,u]],[/(sprint) (\w+)/i],[o,s,[r,w]],[/(kin\.[onetw]{3})/i],[[s,/\./g," "],[o,ne],[r,w]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[s,[o,le],[r,u]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[s,[o,le],[r,w]],[/smart-tv.+(samsung)/i],[o,[r,x]],[/hbbtv.+maple;(\d+)/i],[[s,/^/,"SmartTV"],[o,oe],[r,x]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[o,se],[r,x]],[/(apple) ?tv/i],[o,[s,N+" TV"],[r,x]],[/crkey/i],[[s,j+"cast"],[o,H],[r,x]],[/droid.+aft(\w+)( bui|\))/i],[s,[o,q],[r,x]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[s,[o,Ie],[r,x]],[/(bravia[\w ]+)( bui|\))/i],[s,[o,G],[r,x]],[/(mitv-\w{5}) bui/i],[s,[o,ae],[r,x]],[/Hbbtv.*(technisat) (.*);/i],[o,s,[r,x]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[o,de],[s,de],[r,x]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[r,x]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[o,s,[r,L]],[/droid.+; (shield) bui/i],[s,[o,"Nvidia"],[r,L]],[/(playstation [345portablevi]+)/i],[s,[o,G],[r,L]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[s,[o,ne],[r,L]],[/((pebble))app/i],[o,s,[r,A]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[s,[o,N],[r,A]],[/droid.+; (glass) \d/i],[s,[o,H],[r,A]],[/droid.+; (wt63?0{2,3})\)/i],[s,[o,le],[r,A]],[/(quest( 2| pro)?)/i],[s,[o,xe],[r,A]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[o,[r,te]],[/(aeobc)\b/i],[s,[o,q],[r,te]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[s,[r,w]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[s,[r,u]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[r,u]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[r,w]],[/(android[-\w\. ]{0,9});.+buil/i],[s,[o,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[l,[a,Ve+"HTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[l,[a,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[a,l],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[l,a]],os:[[/microsoft (windows) (vista|xp)/i],[a,l],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[a,[l,ce,Te]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[a,"Windows"],[l,ce,Te]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[l,/_/g,"."],[a,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[a,Me],[l,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[l,a],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[a,l],[/\(bb(10);/i],[l,[a,ye]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[l,[a,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[l,[a,B+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[l,[a,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[l,[a,"watchOS"]],[/crkey\/([\d\.]+)/i],[l,[a,j+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[a,ke],l],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[a,l],[/(sunos) ?([\w\.\d]*)/i],[[a,"Solaris"],l],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[a,l]]},k=function(v,f){if(typeof v===m&&(f=v,v=e),!(this instanceof k))return new k(v,f).getResult();var h=typeof n!==d&&n.navigator?n.navigator:e,y=v||(h&&h.userAgent?h.userAgent:t),P=h&&h.userAgentData?h.userAgentData:e,S=f?$e(Pe,f):Pe,g=h&&h.userAgent==y;return this.getBrowser=function(){var p={};return p[a]=e,p[l]=e,V.call(p,y,S.browser),p[R]=Fe(p[l]),g&&h&&h.brave&&typeof h.brave.isBrave==b&&(p[a]="Brave"),p},this.getCPU=function(){var p={};return p[M]=e,V.call(p,y,S.cpu),p},this.getDevice=function(){var p={};return p[o]=e,p[s]=e,p[r]=e,V.call(p,y,S.device),g&&!p[r]&&P&&P.mobile&&(p[r]=w),g&&p[s]=="Macintosh"&&h&&typeof h.standalone!==d&&h.maxTouchPoints&&h.maxTouchPoints>2&&(p[s]="iPad",p[r]=u),p},this.getEngine=function(){var p={};return p[a]=e,p[l]=e,V.call(p,y,S.engine),p},this.getOS=function(){var p={};return p[a]=e,p[l]=e,V.call(p,y,S.os),g&&!p[a]&&P&&P.platform!="Unknown"&&(p[a]=P.platform.replace(/chrome os/i,ke).replace(/macos/i,Me)),p},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return y},this.setUA=function(p){return y=typeof p===E&&p.length>re?de(p,re):p,this},this.setUA(y),this};k.VERSION=i,k.BROWSER=J([a,l,R]),k.CPU=J([M]),k.DEVICE=J([s,o,r,L,w,x,u,A,te]),k.ENGINE=k.OS=J([a,l]),typeof $!==d?(typeof K!==d&&K.exports&&($=K.exports=k),$.UAParser=k):typeof define===b&&define.amd?define(function(){return k}):typeof n!==d&&(n.UAParser=k);var z=typeof n!==d&&(n.jQuery||n.Zepto);if(z&&!z.ua){var Y=new k;z.ua=Y.getResult(),z.ua.get=function(){return Y.getUA()},z.ua.set=function(v){Y.setUA(v);var f=Y.getResult();for(var h in f)z.ua[h]=f[h]}}})(typeof window=="object"?window:$)});var D=class n{constructor(e,i=!1){this.prefix=e;this.debugEnabled=i}static debugEnabled=!0;debug(e,i=void 0){n.debugEnabled&&this.debugEnabled&&console.debug(`[COOLS][${this.prefix}] ${e}`,i)}info(e,i=void 0){console.log(`[COOLS][${this.prefix}] ${e}`,i)}warn(e,i=void 0){console.warn(`[COOLS][${this.prefix}] ${e}`,i)}error(e,i=void 0){console.error(`[COOLS][${this.prefix}] ${e}`,i)}};function me(n,e){let i={};for(let t of n)e(i,t);return i}function O(){return Ke()}function Ke(){let n=Xe(Date.now()),e=new Uint8Array(16);crypto.getRandomValues(e);for(let i=0;i<6;i++)e[8+i]=n[2+i];return e[6]=e[6]&15|64,e[8]=e[8]&63|128,Qe(e)}function Xe(n){let e=new Uint8Array(8);for(let i=0;i<8;i++)e.set([n/256**i],7-i);return e}var I=[];for(let n=0;n<256;++n)I.push((n+256).toString(16).slice(1));function Qe(n,e=0){return(I[n[e+0]]+I[n[e+1]]+I[n[e+2]]+I[n[e+3]]+"-"+I[n[e+4]]+I[n[e+5]]+"-"+I[n[e+6]]+I[n[e+7]]+"-"+I[n[e+8]]+I[n[e+9]]+"-"+I[n[e+10]]+I[n[e+11]]+I[n[e+12]]+I[n[e+13]]+I[n[e+14]]+I[n[e+15]]).toLowerCase()}var ei=["publisherID","sessionID","creativeID","widgetID","variation","size","sizeMode","device","pageURL","deliveryMode","placement","debug"],Z=class{log=new D("Analytics");host;state;constructor(e,i,t=!1){this.host=e,this.state={publisherID:i,sessionID:O(),debug:t}}get sessionID(){return this.state.sessionID}get publisherID(){return this.state.publisherID}trackInit(e){return this.trackEventCloning(e)}trackRequestFromReq(e,i){return this.trackEventCloning({type:"request",creativeID:i?.params[e]?.creativeId,widgetID:i?.params[e]?.objectId,requestedSize:i?.params[e]?.form,requestedType:i?.params[e]?.type,deliveryMode:i?.params[e]?.deliveryMode})}presetImpressionID(e){this.state.impressionEventID=e}trackEventCloning(e){e.type=="impression"&&this.state.impressionEventID&&(e.id=this.state.impressionEventID);let i=this.trackEvent(e);return this.clone(e,i)}trackEmittedWidgetEvent(e){let i=structuredClone(e);for(let t of Object.keys(this.state))this.state[t]&&delete i[t];return this.trackEvent(i)}trackEvent(e){let i={...this.state,...e},t=he({id:O(),...i,type:i.type,clientSessionID:i.sessionID,publisherID:i.publisherID,initEventID:i.initEventID,requestEventID:i.requestEventID,device:i.device,path:i.pageURL,form:i.requestedSize,requestedType:i.requestedType,requestSize:i.requestedSize,deliveryMethod:i.deliveryMode,placementName:i.placement?.name,placementPositionPx:i.placement?.positionPixels,placementPositionVp:i.placement?.positionPercents,placementPosition:i.placement?.positionScrolls,impressionEventID:i.impressionEventID,creativeID:i.creativeID,objectId:i.widgetID?parseInt(i.widgetID):0,widgetId:i.widgetID?parseInt(i.widgetID):0,widgetVariation:i.variation,size:i.size,displayMode:i.sizeMode,durationMS:i.durationMS,debug:i.debug?"enabled":"",dateTime:new Date().toISOString()});return ti(t,"sessionID","pageURL","requestedSize","deliveryMode","placement","sizeMode","variation"),this.sendEvent(t),t.id}clone(e,i){let t=this.extractDimensionFields(e),c=structuredClone(he({...this.state,...t,[`${e.type}EventID`]:i}));return Object.assign(Object.create(this.constructor.prototype),this,{state:c})}extractDimensionFields(e){return ii(e,...ei)}sendEvent(e){if(this.state.debug||e.debug){this.log.info("Sending events disabled in debug. Logging instead.",e);return}try{navigator.sendBeacon(`${this.host}/widget-event`,JSON.stringify(e))}catch(i){this.log.error("Failed to send batch",i)}}};function he(n){return Object.fromEntries(Object.entries(n).filter(([e,i])=>!!i))}function ii(n,...e){return he(Object.fromEntries(Object.entries(n).filter(([i,t])=>e.includes(i))))}function ti(n,...e){for(let i of e)delete n[i]}var be=new D("MutationObserver",!0);function Ae(n){if(!("MutationObserver"in window)){be.warn("No MutationObserver support"),setInterval(n,5e3);return}let e=document.querySelector("body");if(!e){be.error("No body in document");return}new MutationObserver(t=>{t.forEach(c=>{c.addedNodes.forEach(b=>{(b.nodeName=="INS"||b instanceof HTMLElement&&b.querySelector("ins"))&&(be.debug("Detected mutation"),n())})})}).observe(e,{subtree:!0,childList:!0})}var ze=Ze(Ce(),1);function F(){let e=new ze.default().getDevice();return e.type?e.type==="mobile"?"mobile":e.type==="tablet"?"tablet":"desktop":"ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0?"mobile":"desktop"}var ue=new D("SizeObserver");function _e(n,e){console.log("resize observer"),"ResizeObserver"in window?new ResizeObserver(()=>{ue.debug("Resize event through observer"),e()}).observe(n):(ue.warn("Browser doesn't support ResizeObserver"),window.addEventListener("resize",i=>{ue.debug("Resize pseudo event"),e()}))}var _=class n{constructor(e=.5,i=[0,.25,.5,.75,1]){this.atLeastVisible=e;this.thresholds=i;n.isSupported?this.observer=new IntersectionObserver(this.intersectionObserverCallback.bind(this),{threshold:i}):this.log.warn("IntersectionObserver is not supported")}static shared=new n;static get isSupported(){return"IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry?.prototype}static get isWithinIFrame(){return window.self!==window.parent}log=new D("VisibilityObserver");observer;listeners={};intersectionObserverCallback(e){e.forEach(i=>{let t=this.listeners[i.target.id];if(!t){this.log.warn(`No listener found for ${i.target.id}`);return}t.update(i)})}observe(e,i){if(!e.id)throw"No ID in elem to listen to";if(this.listeners[e.id])throw"Already listening to the same ID";if(!n.isSupported)return n.isWithinIFrame?new ge:new ve(e,2e3,i);let t=new we(this,this.atLeastVisible,e,i);return this.listeners[e.id]=t,this.observer?.observe(e),t}unobserve(e){delete this.listeners[e.id],this.observer?.unobserve(e)}},we=class{constructor(e,i,t,c){this.observer=e;this.minRatio=i;this.elem=t;this.callback=c}log=new D("IntersectionObserverTracker");lastRatio=0;get isVisible(){return this.lastRatio>=this.minRatio&&!document.hidden}update(e){let i=this.isVisible;this.lastRatio=e.intersectionRatio;let t=this.isVisible;this.log.debug(`${this.elem.id} Update called with ${e.intersectionRatio} ratio (${t})`),i!=t&&(this.log.debug(`${this.elem.id} changed visibility to ${t}`),this.callback?.(t))}stop(){this.observer.unobserve(this.elem)}},ve=class{constructor(e,i,t){this.elem=e;this.callback=t;i&&(this.intervalID=setInterval(this.update.bind(this),i))}log=new D("DOMVisibilityTracker");intervalID;lastVisible=!1;get isVisible(){let e=this.elem.getBoundingClientRect();return!document.hidden&&e.top>=0&&e.left>=0&&e.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&e.right<=(window.innerWidth||document.documentElement.clientWidth)}update(){this.log.debug(`${this.elem.id} Update called`);let e=this.isVisible;e!=this.lastVisible&&(this.log.debug(`${this.elem.id} changed visibility to ${e}`),this.lastVisible=e,this.callback?.(e))}stop(){this.intervalID!==void 0&&(clearInterval(this.intervalID),this.intervalID=void 0)}},ge=class{isVisible=!1;stop(){}};var X=class{id;variation;forms;html;isAdaptive;constructor(e){this.id=e.id,this.variation=e.variation,this.forms=e.forms.map(i=>{let[t,c]=i.split("-"),[b,d]=c.split("x");return{device:t,width:+b,height:+d}}),this.html=e.html,this.isAdaptive=e.isAdaptive}};var Q=class{id;log;widget;iframe;visibility;startVisibility;impID;seen=!1;sizeMode;analyticsOrig;analytics;placement;constructor(e,i,t){this.id=`${i.id}-frame`,this.analyticsOrig=e,this.analytics=e,this.placement=i,this.log=new D(this.id),this.widget=new X(t.widget),this.sizeMode=this.placement.sizeMode||"fixed"}attach(){if(this.iframe){this.log.error("Tried to inject already injected widget");return}this.iframe=this.createIFrame(),this.iframe.classList.add("cools-frame"),this.iframe.addEventListener("load",this.onLoad.bind(this),{once:!0}),this.placement.elem.insertAdjacentElement("afterend",this.iframe),this.placement.state="attached"}onLoad(){document.addEventListener("visibilitychange",this.update.bind(this)),this.visibility=_.shared.observe(this.iframe,this.update.bind(this)),_e(this.iframe,this.update.bind(this)),this.update(),this.log.debug("Injected")}update(){if(!!!this.iframe.dataset.form){let i=this.calculateForm();if(!i){this.log.warn("No matching forms in the current widget"),this.resetFrameContentEmpty();return}let t=`${i.device}-${i.width}x${i.height}`;this.impID=O(),this.analytics.presetImpressionID(this.impID),this.seen=!1,this.resetFrameContent(i,this.impID),this.iframe.dataset.form=t,this.analytics=this.analyticsOrig.trackEventCloning({type:"delivery",widgetID:this.widget.id.toString(),variation:this.widget.variation,size:`${i.width}x${i.height}`,sizeMode:this.sizeMode,placement:this.placementPosition()}),this.updateFrameSizeStyle(i)}if(this.visibility.isVisible&&this.impID&&!this.seen&&(this.log.debug(`Tracking impression for ${this.widget.id}`),this.analytics=this.analytics.trackEventCloning({type:"impression"}),this.seen=!0),this.visibility.isVisible&&!this.startVisibility&&(this.startVisibility=new Date),!this.visibility.isVisible&&this.startVisibility){let t=+new Date-+this.startVisibility;this.impID&&(this.startVisibility=void 0,this.analytics.trackEvent({type:"impression_show",durationMS:t.toString()}))}}createIFrame(){let e=window.document.createElement("IFRAME");return e.id=`${this.placement.id}-frame`,e.scrolling="no",e.frameBorder="0",e.allow="autoplay",e.style.border="0",e.style.overflow="hidden",e.style.display="block",e.style.width="100%",e.style.height="0px",e.style.marginLeft="auto",e.style.marginRight="auto",e}resetFrameContentEmpty(){this.iframe.srcdoc="",this.iframe.style.height="0px",this.iframe.style.width="100%"}resetFrameContent(e,i){let t=this.widget.html,c='navigator.sendBeacon("".concat(analyticsHost, "/widget-event"), body);',b="navigator.sendBeacon(`${analyticsHost}/widget-event`, body)",m=`event-${(Math.random()*1e3).toString(16).toLowerCase()}`,E=`window.parent.postMessage({key:'${m}', data})`;t=t.replace(c,E),t=t.replace(b,E),t=t.replace("INJ_DEVICE",e.device).replace("INJ_FORM",`${e.width}x${e.height}`).replace(/INJ_EVENT_ID/g,i).replace(/SESSION_EVENT_ID/g,this.analytics.sessionID).replace(/PUBLISHER_ID/g,this.analytics.publisherID).replace(/ANALYTICS_HOST/g,this.analytics.host).replace(/INJ_CLICK_URL/g,this.placement.clickUrl??"").replace(/INJ_CACHEBUSTER/g,this.placement.cachebuster??"").replace(/INJ_DEBUG/g,(this.placement.debug=="enabled","")),window.addEventListener("message",R=>{R.source==this.iframe.contentWindow&&R.data?.key==m&&this.analytics.trackEmittedWidgetEvent(R.data.data)}),this.iframe.srcdoc=`
            <!DOCTYPE html>
            <html>
            <head><base target="_top"><meta charset="UTF-8"></head>
            <body border="0" margin="0" style="margin: 0;padding: 0;">
                ${t}
            <body>
            </html>
        `}placementPosition(){let e=Math.round(window.scrollY+this.iframe.getBoundingClientRect().top);return{name:this.placement.placement??void 0,positionPixels:e,positionScrolls:Math.round(100*e/window.innerHeight)/100,positionPercents:Math.round(100*e/document.body.scrollHeight)/100}}calculateForm(){let e=this.placement.device??F(),i=this.placement.elem.parentElement?.offsetWidth||this.iframe.offsetWidth||300;return this.log.debug(`Calculating form for width ${i}`),this.placement.form?this.findMatchingForm(this.widget.forms,this.placement.form,e):this.findBestForm(this.widget.forms,e,i)}updateFrameSizeStyle(e){this.widget.id==5450&&["c","d"].includes(this.widget.variation)&&(this.sizeMode="full");let i=this.sizeMode,t=this.iframe.style,c=this.iframe.offsetWidth,b=this.widget.isAdaptive;if(i=="fixed")t.width=`${e.width}px`,t.height=`${e.height}px`;else if(i=="full"&&b)t.minWidth=`${e.width}px`,t.minHeight=`${e.height}px`,t.width="100%",t.height="100%";else if(i=="aspectRatio")t.width="100%",t.height=`${c*e.height/e.width}px`;else if(i=="skin")t.width="100vw",t.height=`${e.height}px`,t.zIndex="0",t.position="fixed",t.top="0",t.left="0";else if(i=="fullWidth"&&b)if(t.width="100%",!1&&c>=e.width){let m=e.height*(c/e.width);e.width==300&&(m=m>400?400:m),t.height=`${m}px`}else t.height=`${e.height}px`;else t.width=`${e.width}px`,t.height=`${e.height}px`}findMatchingForm(e,i,t){let[c,b]=i.split("x"),[d,m]=[parseInt(c),parseInt(b)];return e.find(E=>E.width==d&&E.height==m&&this.deviceMatch(t,E.device))??e.find(E=>E.width==d&&E.height==m)}findBestForm(e,i,t){let c=e.filter(b=>this.deviceMatch(i,b.device));if(c.length!=0)return c.sort((b,d)=>d.width-b.width),c.find(b=>b.width<t+10)}deviceMatch(e,i){return i===e?!0:e==="tablet"&&i==="mobile"}};async function Le(n,e,i){let t=i.creative;n.presetImpressionID(O());let c=ri(n),b=await si(i,e,c);c({type:"delivery",creativeID:t.id,variation:t.variation,size:t.size,sizeMode:"fixed",placement:ni(e,b)});let d=!1;_.shared.observe(b,m=>{m&&!d&&(c({type:"impression"}),d=!0)})}function ri(n){return e=>{n=n.trackEventCloning(e)}}async function si(n,e,i){let t=n.creative,b=(await import("data:text/javascript;base64,"+window.btoa(n.engine))).default,d=document.createElement("div");return d.id=t.id,e.elem.insertAdjacentElement("afterend",d),b.renderCreative(d,{id:t.instanceID,creativeID:t.id,variation:t.variation,platform:t.platform,size:t.size,root:t.root},i,e.clickUrl),d}function ni(n,e){let i=Math.round(window.scrollY+e.getBoundingClientRect().top);return{name:n.placement??void 0,positionPixels:i,positionScrolls:Math.round(100*i/window.innerHeight)/100,positionPercents:Math.round(100*i/document.body.scrollHeight)/100}}var ee=class{constructor(e,i,t){this.analytics=e;this.host=i;this.publisherID=t;this.analytics=this.analytics.trackInit({type:"init",clientID:"",publisherID:this.publisherID,device:F(),pageURL:this.getCurrentPath()})}log=new D("Delivery",!0);async deliver(){this.log.info("Deliver run"),this.publisherID||this.log.warn("No publisher provided");let e=this.find().map(d=>(d.id||(d.id=Math.random().toString(36).substr(2,5),d.state="new"),d)),i=e.filter(d=>["new","error","detached"].includes(d.state));for(let d of i)d.state="loading";if(e.length==0){this.log.info("Nothing to inject");return}let t={publisher:this.publisherID,path:this.getCurrentPath(),device:F(),params:me(i,(d,m)=>{d[m.id]={form:m.form,gender:m.gender,type:m.type,section:m.section,objectId:m.objectId,creativeId:m.creativeId,debug:m.debug,variation:m.variation,device:m.device,detectedWidth:this.getDetectedWidth(m),deliveryMode:m.deliveryMode,demoEnv:m.demoEnv==="true"}})},c=me(i,(d,m)=>{d[m.id]=this.analytics.trackRequestFromReq(m.id,t)});this.log.info("Requesting",Object.keys(t.params));let b=await this.request(t).catch(d=>{throw i.forEach(m=>m.state="error"),d});this.log.info("Got response for",Object.keys(b.widgets));for(let d of i)try{let m=b.widgets[d.id];if(!m){if(this.log.warn("No del selected for the placement"),d.passback){let E=(0,eval)(d.passback);typeof E=="function"&&E(d.elem),this.log.info("Passback function called"),d.state="passback"}else d.state="none";continue}if("creative"in m)await Le(c[d.id],d,m);else{if(!m.widget.html)throw"empty html";new Q(c[d.id],d,m).attach()}d.state="attached"}catch(m){d.state="error",this.log.warn(`Error injecting ${d.id}:`,m)}}getDetectedWidth(e){return e.elem&&e.elem.parentElement?e.elem.parentElement.offsetWidth:void 0}getCurrentURL(){if(window===window.parent)return window.location.toString();try{return window.parent.location.toString()}catch{return document.referrer.toString()}}getCurrentPath(){return(this.getCurrentURL().replace(/^https?:\/\//,"").split("?")[0]??"").replace(/\/$/,"")}observe(){Ae(()=>{this.log.debug("MutationObserver triggered deliver");let e=this.deliver()})}find(){let e=window.document.querySelectorAll("ins.cools_widget");return Array.from(e).map(i=>new Proxy(i,{get(t,c){if(c=="elem")return t;let b=t.dataset[`widget${c[0]?.toUpperCase()+c.slice(1)}`];if(b)return b},set(t,c,b){if(c=="elem")throw"Can't set elem";let d=`widget${c[0]?.toUpperCase()+c.slice(1)}`;return b||delete t.dataset[d],t.dataset[d]=b,!0}}))}async request(e){let i=`${this.host}/api/deliver`;return(await fetch(i,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}).catch(c=>{this.log.error("Failed making the POST request, fallback to GET",c);let b=JSON.stringify(e),d=new URL(i);return d.search=new URLSearchParams({request:b}),fetch(d.toString())})).json()}};var Ne="https://widgets.shop.moda.it",oi="",Ue="cf86910f-2b67-4308-bc0e-0ab66e67a82a",ie=new D("main");async function ai(){if(window.coolsDeliveryScriptStatus){ie.info("Delivery script is already running");return}ie.info("Delivery script started"),window.coolsDeliveryScriptStatus=!0;let n=new Z(Ne,Ue,oi=="true"),e=new ee(n,Ne,Ue);await e.deliver(),e.observe(),ie.info("Delivery script successfully complete")}ai().catch(n=>{ie.error("Delivery script thrown exception",n)});