!function(){"use strict";function e(e,n,t,r){return new(t||(t=Promise))((function(o,a){function i(e){try{l(r.next(e))}catch(e){a(e)}}function d(e){try{l(r.throw(e))}catch(e){a(e)}}function l(e){var n;e.done?o(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(i,d)}l((r=r.apply(e,n||[])).next())}))}let n;const t=t=>e(void 0,void 0,void 0,(function*(){if(n)return Promise.resolve(n);const e=yield(e=>(e=>e.top!==e.self)(e)?Promise.resolve(e):new Promise((n=>{try{const t=e.document.createElement("iframe");t.src="about:blank",t.style.display="none";const r=()=>{e.document.body.appendChild(t),n(t.contentWindow)};"interactive"===document.readyState||"complete"===document.readyState?r():document.addEventListener("DOMContentLoaded",(()=>{r()}))}catch(e){n(null)}})))(t);if(!e)return Promise.reject("iframe window for datadog is null");return new Promise(((t,r)=>{const o=window.frameElement&&window.top?window.top.document:document,a=e.document.createElement("script");a.async=!0,a.src="https://www.datadoghq-browser-agent.com/datadog-logs-v4.js",a.onload=()=>{(e=>"DD_LOGS"in e)(e)?e.DD_LOGS.onReady((()=>{e.DD_LOGS.init({clientToken:"pubf9159ed47a5e0d4d8ca1f19377f88a35",site:"datadoghq.com",service:"fluct-one",forwardErrorsToLogs:!1,version:"0239f02",env:"prod",beforeSend:e=>(e.view.url=o.location.href,e.view.referrer=o.referrer,!0)}),n=e.DD_LOGS,t(n)})):r("DD_LOGS is not found in iframe window")},a.onerror=()=>{r("error occurred while loading datadog script")},e.document.head.appendChild(a)}))}));function r(e){return{message:e.message,name:e.name,description:e.description,number:e.number,fileName:e.fileName||e.sourceURL,lineNumber:e.lineNumber||e.line,columnNumber:e.columnNumber,stack:e.stack}}const o=new class{constructor(){this.isDebugMode=!1}setDebugMode(e){this.isDebugMode=e}error(e,n,t=100){this.log("error",e,n,t)}warn(e,n,t=100){this.log("warn",e,n,t)}info(e,n,t=100){this.log("info",e,n,t)}debug(e,n,t=100){this.log("debug",e,n,t)}log(e,n,t,o){const a=t instanceof Error?r(t):t,i=o;this.sendToConsole(e,n,a),100*Math.random(){t.logger.log(n,r,e)})).catch((e=>{console.error("Failed to send logs to Datadog:",e)}))}sendToConsole(e,n,t){("error"===e||this.isDebugMode)&&console[e]("%c [fluct-one]:","background-color: lightblue; color: black;",n,t)}},a=function(e,n){if("regexp"===e.type)try{const t=new RegExp(e.value);return null!==n.match(t)}catch(n){return o.logWithError(n,"error",`Invalid regexp pattern: ${e.value}.`,{pattern:e}),!1}return n.includes(e.value)};class i{constructor(e,n){this.params=e,this.url=n}check(){if(0===this.params.patterns.length)return!0;return!!this.params.patterns.find((e=>a(e,this.url)))}}class d{constructor(e,n){this.params=e,this.url=n}check(){if(0===this.params.patterns.length)return!0;return!this.params.patterns.find((e=>a(e,this.url)))}}class l{constructor(e,n){this.params=e,this.referrer=n}check(){if(0===this.params.patterns.length)return!0;return!!this.params.patterns.find((e=>a(e,this.referrer)))}}class s{constructor(e,n){this.params=e,this.referrer=n}check(){if(0===this.params.patterns.length)return!0;return!this.params.patterns.find((e=>a(e,this.referrer)))}}const c="android",u="ios";class g{constructor(e,n){this.params=e,this.ua=n}check(){let e="unknown";return/android/i.test(this.ua)&&(e=c),/iP(hone|(o|a)d)/.test(this.ua)&&(e=u),"unknown"!==e&&((e!==c||this.params.kind===c)&&(e!==u||this.params.kind===u))}}class v{constructor(e,n){this.params=e,this.ua=n}check(){const e=!!this.ua.match(/iPhone|Android.+Mobile/);return(!e||"pc"!==this.params.kind)&&!(!e&&"sp"===this.params.kind)}}class h{constructor(e,n,t,r){this.params=e,this.referrer=n,this.url=t,this.host=r}check(){var e;return this.params.displayable===function(e,n,t,r){if(!n.match(r))return!1;if(e.find((e=>a(e,t))))return!1;return!0}(null!==(e=this.params.excludePatterns)&&void 0!==e?e:[],this.referrer,this.url,this.host)}}class f{constructor(e){this.params=e}check(){const e=this.params.funcitonText,n=this.stringToFunction(e);if(!n)return!1;try{const t=n();return"boolean"!=typeof t?(o.error("customFunction: Function must return boolean",{functionText:e}),!1):t}catch(n){return o.logWithError(n,"error","customFunction: Failed to execute function",{functionText:e}),!1}}stringToFunction(e){try{const n=Function("return ("+e+")")();return"function"!=typeof n?(o.error("customFunction: Failed to convert string to function. not",{functionString:e}),null):n}catch(n){return o.logWithError(n,"error","customFunction: Failed to convert string to function. Error occured.",{functionString:e}),null}}}function m(e,n={referrer:document.referrer,url:location.href,host:location.host,ua:navigator.userAgent}){const t=function(e,n){const t=[];return e.url&&t.push(new i(e.url,n.url)),e.excludeUrl&&t.push(new d(e.excludeUrl,n.url)),e.referrer&&t.push(new l(e.referrer,n.referrer)),e.excludeReferrer&&t.push(new s(e.excludeReferrer,n.referrer)),e.os&&t.push(new g(e.os,n.ua)),e.device&&t.push(new v(e.device,n.ua)),e.yda&&t.push(new h(e.yda,n.referrer,n.url,n.host)),e.customFunction&&t.push(new f(e.customFunction)),t}(e,n);for(const e of t)if(!e.check())return!1;return!0}function p(e){const n=e.components,t=function(e){const n=e.reduce(((e,n)=>e+n),0);let t=Math.random()*n;for(let n=0;ne.weight)));return null!==t?n[t]:null}function y(e,n=document){b(n)?document.write(e):function(e,n){var t,r,o;void 0===n&&(n=null!==(t=document.body)&&void 0!==t?t:document.head);const a=(new DOMParser).parseFromString(e,"text/html"),i=null===(r=a.head)||void 0===r?void 0:r.children,d=null===(o=a.body)||void 0===o?void 0:o.children,l=new Uint32Array(1),s="boot-target-script-"+window.crypto.getRandomValues(l)[0];Array.prototype.forEach.call(a.getElementsByTagName("script"),(e=>{e.className=s})),Array.prototype.forEach.call(i,(e=>n.appendChild(e.cloneNode(!0)))),Array.prototype.forEach.call(d,(e=>n.appendChild(e.cloneNode(!0))));const c=Array.prototype.slice.call(n.getElementsByClassName(s)),u=[];c.forEach((e=>{const n=self.document.createElement("script");for(let t=0;t{var n;const t=e.s,r=e.original;null===(n=r.parentNode)||void 0===n||n.replaceChild(t,r)}))}(e,n.currentScript)}function b(e){const n=!e.currentScript.async,t=!!e.write.prototype;return n||t}function w(e){const n=new URL(document.location.href);return n.searchParams?n.searchParams.get(e):null}const S={site:{id:"54753a59-27a3-4c04-829d-eb5e6398479f",name:"dely|trill(headタグ内に設置する2つめ)",siteCode:"trilltrill-2",triggers:[{id:"f5d4ac09-02a1-4fc1-ae88-9ee58c0c5264",title:"せぐりん用",condition:{},weightedParents:[{id:"9e9d9afd-e2dd-42cb-ba90-95caaa79f992",title:"セグリンスクリプト",components:[{id:"561d1992-7b2b-42a0-ac08-ad9d5aa974cb",title:"セグリンスクリプト",tagText:'