ff1b52d5455c7a2beafbfb70ce8dfecdebdeb615c71eca0aa6721c991a4f0d90

Source Code:

/**
 * DMM i3 tracker
 *
 * Copyright (c) 2014 DMM.com
 * http://www.dmm.com/
 * @version v0.9 (2021-02-08)
 */
!function e(t,n,i){function r(a,s){if(!n[a]){if(!t[a]){var c="function"==typeof require&&require;if(!s&&c)return c(a,!0);if(o)return o(a,!0);var u=new Error("Cannot find module '"+a+"'");throw u.code="MODULE_NOT_FOUND",u}var d=n[a]={exports:{}};t[a][0].call(d.exports,function(e){var n=t[a][1][e];return r(n?n:e)},d,d.exports,e,t,n,i)}return n[a].exports}for(var o="function"==typeof require&&require,a=0;a<i.length;a++)r(i[a]);return r}({1:[function(e,t,n){var i=e("./tracking/setup"),r=e("./tracking/DMMi3"),o=e("./tracking/cookie"),a=window.DMMi3Object,s=i(a||"i3");r(s),o()},{"./tracking/DMMi3":2,"./tracking/cookie":3,"./tracking/setup":6}],2:[function(e,t,n){var i=e("./util"),r=e("./tracking"),o=t.exports=function(e){function t(e){if("string"!=typeof e)throw new TypeError;var t=e.split(".");return t.length>1?{namespace:t[0],type:t[1]}:{namespace:"default",type:t[0]}}if(!(this instanceof o))return new o(e);var n=this,a={},s=e.q||[],c=e.t;e.sp=e.s?(~~new Date-e.s).toString():void 0,s.push=function(){for(var e=0;e<arguments.length;e++)Array.prototype.push.call(this,arguments[e]);n.execQueue()},this.execQueue=function(){if(0!==s.length){var e=["send","set","get","add","clear","create","debug","init"],i=s.shift();if(i.length>0){var r=i[0],o=t(r),a=o.type,c=o.namespace;-1!==e.indexOf(a)&&n[a](c,i[1],i[2],i[3])}n.execQueue()}},this.debug=function(e,t){return void 0===t&&(t=!0),i.setDebugMode(t),this},this.init=function(t,n){return e.i=e.i||n,this},this.create=function(t,n){var i=n||"default",o=e.i;return a[i]=new r(e,o,c),this},this.set=function(e,t,n){switch(t){case"common":a[e].set("common",n);break;case"detail":case"read_button":case"to_DMM":case"seek":case"fanza_tik_video":case"banner_close":case"carousel_item":case"sample_image":case"play_chat":case"refine_search":case"info":case"custom_event":a[e].set("detail_cond",n);break;case"search":case"recommend":case"banner":case"api":case"list":case"carousel":case"carousel_out":case"faq_recommend":case"product_info":case"display_position":case"go_to":case"register_credit":a[e].set("api_cond",n);break;case"purchase":a[e].set("purchase_cond",n);break;case"suggest":case"other_domain":a[e].set("suggest_cond",n);break;case"review":a[e].set("review_cond",n)}return this},this.add=function(e,t,n){switch(t){case"detail":case"read_button":case"to_DMM":case"seek":case"fanza_tik_video":case"banner_close":case"carousel_item":case"sample_image":case"play_chat":case"refine_search":case"info":case"custom_event":a[e].set("detail_cond",{items:[n]});break;case"search":case"recommend":case"banner":case"api":case"list":case"carousel":case"carousel_out":case"faq_recommend":case"product_info":case"display_position":case"go_to":case"register_credit":a[e].set("api_cond",{items:[n]});break;case"purchase":a[e].set("purchase_cond",{items:[n]});break;case"suggest":case"other_domain":a[e].set("suggest_cond",{items:[n]});break;case"review":a[e].set("review_cond",{items:[n]})}return this},this.clear=function(e,t){switch(t){case"detail":case"read_button":case"to_DMM":case"seek":case"fanza_tik_video":case"banner_close":case"carousel_item":case"sample_image":case"play_chat":case"refine_search":case"info":case"custom_event":a[e].clearItems("detail_cond");break;case"search":case"recommend":case"banner":case"api":case"list":case"carousel":case"carousel_out":case"faq_recommend":case"product_info":case"display_position":case"go_to":case"register_credit":a[e].clearItems("api_cond");break;case"purchase":a[e].clearItems("purchase_cond");break;case"suggest":case"other_domain":a[e].clearItems("suggest_cond");break;case"review":a[e].clearItems("review_cond")}return this},this.get=function(e,t){var n=function(){var n=a[e].get();t(n)};return 0===a[e].stack_function_count?n():a[e].onUpdated=n,this},this.send=function(e,t,n,r){switch(a[e].set("common",{segment:i.getCookie("i3_ab",/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/),app_uid:i.getCookie("app_uid"),cdp_id:i.getCookie("cdp_id")}),t){case"view":a[e].view(n,r);break;case"show":a[e].show(n,r);break;case"click":a[e].click(n,r)}return this},n.execQueue()}},{"./tracking":7,"./util":9}],3:[function(e,t,n){function i(e){return-1!==e.indexOf(".dmm.com")?".dmm.com":-1!==e.indexOf(".dmm.co.jp")?".dmm.co.jp":e}function r(e){return-1===document.cookie.indexOf(e+"=")?!1:!0}function o(e){var t=document.cookie.match(new RegExp("(^|\\s)"+e+"=([^;]+)"));return t&&unescape(t[2]).match(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/)?unescape(t[2]):a()}function a(){var e,t,n="";for(e=0;32>e;e++)t=16*Math.random()|0,(8==e||12==e||16==e||20==e)&&(n+="-"),n+=(12==e?4:16==e?3&t|8:t).toString(16);return n}function s(e,t,n,i,r){var o=new Date,a=encodeURIComponent(e),s=encodeURIComponent(t);o.setTime(o.getTime()+n),document.cookie=a+"="+s+"; expires="+o.toUTCString()+"; domain="+i+"; path="+r+";"}t.exports=function(){var e="i3_ab",t=a(),n=15552e6,c=i(document.domain),u="/";r(e)&&(t=o(e)),s(e,t,n,c,u)}},{}],4:[function(e,t,n){var i=t.exports=function(){this.common={},this.view_cond={},this.api_cond={},this.detail_cond={},this.user_cond={},this.purchase_cond={},this.suggest_cond={},this.review_cond={},this.stack_function_count=0,this.onUpdated=function(){}},r={common:{date:"string",action:"string",option:"string",i3_service_code:"string",open_id:"string",session:"string",cookie:"string",view_type:"string",user_agent:"string",url:"string",datetime:"string",ip:"string",segment:"string",app_uid:"string",cdp_id:"string",var1:"string",var2:"string",var3:"string",var4:"string",var5:"string"},view_cond:{referrer:"string",is_via_landing:"boolean",landing_class:"boolean"},api_cond:{hit_count:"number",page_number:"number",begin_number:"number",end_number:"number",limit:"number",show_count:"number",items:{content_id:"string",product_id:"string",price:"number",has_stock:"boolean",series:"string",uid:"string"},type:"string",show_position:"string",parameters:"string",word:"string",category:"string",sort:"string",show_pattern:"string",is_retried:"boolean",api_response_time:"string",client_response_time:"string",normalized_word:"string"},detail_cond:{content_id:"string",items:{content_id:"string",product_id:"string",price:"number",has_stock:"boolean",monthly_service_id:"number",monthly_service_is_subscribed:"boolean",monthly_service_due_date:"string",monthly_service_price:"number",series:"string"},via_info:"string",via_option:"string",via_view_rank:"string",via_show_position:"string",series:"string"},user_cond:{browser_lang:"string",ip:"string"},purchase_cond:{purchase_id:"string",purchase_id_type:"string",items:{content_id:"string",product_id:"string",price:"number",quantity:"number",via_conversion:"string",via_option:"string"},paytype:"string",monthly_service_id:"number",monthly_service_due_date:"string"},suggest_cond:{rank:"number",uid:"string",word:"string",type:"string",category:"string",items:{suggest_rank:"number",suggest_uid:"string",suggest_word:"string",suggest_type:"string",suggest_category:"string"}},review_cond:{page_type:"string",shop_name:"string",action_type:"string",object_position:"string",timestamp:"string",content_id:"string",review_type:"number",review_star_avg:"number",review_evaluate_avg:"number",review_posting_cnt:"number",review_comment_cnt:"number",sort:"string",page:"number",page_cnt:"number",review_show_cnt:"number",items:{review_review_id:"string",review_reviewer_id:"number",review_star:"number",review_word_cnt:"number",review_read_more_kind:"number",review_reference_total:"number",review_reference_yes:"number"}}};i.prototype.getInputDataSchema=function(){return r},i.prototype.set=function(e,t){function n(t,s){if(0!==t.length){var c=t[0];"object"==typeof a[e][c]?i(a[e][c],s[c]):a[e][c]===typeof s[c]&&(o[e][c]=s[c]),r(function(){n(t.slice(1),s)})}}function i(t,n){if(null!==n&&"object"==typeof n&&0!==n.length){var a={},s=n[0];if(null!==s&&"object"==typeof s){for(var c in t)c in s&&t[c]===typeof s[c]&&(a[c]=s[c]);o[e].items=o[e].items||[],o[e].items.push(a)}var u="function"==typeof n.slice?n.slice(1):[];r(function(){i(t,u)})}}function r(e){o.stack_function_count++,("undefined"==typeof setImmediate?function(e){e()}:setImmediate)(function(){e(),o.stack_function_count--,0===o.stack_function_count&&o.onUpdated()})}var o=this,a=this.getInputDataSchema();if(e in a&&"object"==typeof t){var s=Object.keys(t);n(s,t)}return this},i.prototype.clearItems=function(e){var t=this.getInputDataSchema();return e in t&&(this[e].items=[]),this},i.prototype.setByObject=function(e){var t=this.getInputDataSchema();if("object"==typeof e){this.set("common",e);for(var n in t)n in e&&this.set(n,e[n])}return this},i.prototype.getData=function(){var e=this,t=e.common||{};return t.view_cond=e.view_cond,t.api_cond=e.api_cond,t.detail_cond=e.detail_cond,t.user_cond=e.user_cond,t.purchase_cond=e.purchase_cond,t.suggest_cond=e.suggest_cond,t.review_cond=e.review_cond,t}},{}],5:[function(e,t,n){function i(e,t,n,i,r){var o=new XDomainRequest;i.xdr_queue=i.xdr_queue||[],i.xdr_queue.push(o);try{o.open(e,s()),o.onprogress=function(){},o.onerror=function(){r()},o.timeout=n,o.ontimeout=function(){r()},o.onload=function(){r()};var a=JSON.stringify(t);o.send(a)}catch(c){r()}}function r(e,t,n,i){var r=new XMLHttpRequest;try{r.open(e,s()),r.withCredentials=!0,r.onreadystatechange=function(e){4===r.readyState&&(r.status>=200&&r.status<300,i())},r.timeout=n,r.ontimeout=function(){i()},r.setRequestHeader("Content-Type","application/json;charset=UTF-8"),r.setRequestHeader("X-Requested-With","XMLHttpRequest");var o=JSON.stringify(t);r.send(o)}catch(a){i()}}function o(e){e="function"==typeof e?e:function(){};var t=function(){0===t.count&&e(),t.count++};return t.count=0,t}function a(){var e=!!window.ProgressEvent,t=!!window.FormData,n=window.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest;return e&&t&&n}function s(){if(c()){var e=new d(u.getTrackingApiUrl());for(var t in u.getTrackingHostDomains())if(location.hostname.indexOf(t)>-1)return u.getTrackingApiUrl().replace(e.hostname,u.getTrackingHostDomains()[t])}return u.getTrackingApiUrl()}function c(){var e=navigator.userAgent.toLowerCase(),t=e.indexOf("iphone")>-1,n=e.indexOf("ipod")>-1,i=e.indexOf("ipad")>-1||e.indexOf("macintosh")>-1&&"ontouchend"in document;return t||n||i}var u=e("./util"),d=e("./url"),p=t.exports=function(e){this.i3Object=e};p.prototype.send=function(e,t,n,s){var c=o(s);return u.isDebugMode()?c():(setTimeout(function(){0===c.count&&c()},n),a()?r(e,t,n,c):"undefined"!=typeof window.XDomainRequest?i(e,t,n,this.i3Object,c):c())}},{"./url":8,"./util":9}],6:[function(e,t,n){t.exports=function(e){return window[e]=window[e]||function(){window[e].q.push(arguments)},window[e].q=window[e].q||[],window[e].v="v0.9",function(){window.console||(window.console={});for(var e=["log","info","warn","error","debug","trace","dir","group","groupCollapsed","groupEnd","time","timeEnd","profile","profileEnd","dirxml","assert","count","markTimeline","timeStamp","clear"],t=0;t<e.length;t++)window.console[e[t]]||(window.console[e[t]]=function(){})}(),Object.keys||(Object.keys=function(){var e=Object.prototype.hasOwnProperty,t=!{toString:null}.propertyIsEnumerable("toString"),n=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],i=n.length;return function(r){if("object"!=typeof r&&"function"!=typeof r||null===r)throw new TypeError("Object.keys called on non-object");var o=[];for(var a in r)e.call(r,a)&&o.push(a);if(t)for(var s=0;i>s;s++)e.call(r,n[s])&&o.push(n[s]);return o}}()),Array.prototype.indexOf||(Array.prototype.indexOf=function(e){"use strict";if(null==this)throw new TypeError;var t=Object(this),n=t.length>>>0;if(0===n)return-1;var i=0;if(arguments.length>0&&(i=Number(arguments[1]),i!=i?i=0:0!=i&&i!=1/0&&i!=-(1/0)&&(i=(i>0||-1)*Math.floor(Math.abs(i)))),i>=n)return-1;for(var r=i>=0?i:Math.max(n-Math.abs(i),0);n>r;r++)if(r in t&&t[r]===e)return r;return-1}),window[e]}},{}],7:[function(e,t,n){function i(){return document.referrer||""}function r(){var e=document.getElementById(c.target_ids.open_id);return e?e.value:void 0}function o(){var e=document.getElementById(c.target_ids.view_type);return e?e.value:void 0}function a(){return navigator.languages?navigator.languages[0]:navigator.language||navigator.userLanguage}function s(){var e=document.documentElement?document.documentElement.lang:"";return"string"==typeof e?e:""}var c=e("./util"),u=e("./log"),d=e("./url"),p=e("./sender"),m=t.exports=function(e,t,n){var i=this;i.constructor.parent.constructor.call(i),i.url=new d(location.href),i.set("common",{i3_service_code:t,view_type:o(),open_id:r(),var1:e.sp,url:location.href}),i.set("user_cond",{browser_lang:a()}),document.domain&&document.domain.indexOf(".r18.com")>-1&&i.set("common",{var5:s()}),i.timeout=n||2e3,i.i3Object=e},_=function(){};_.prototype=new u,m.prototype=new _,m.prototype.constructor=m,m.parent=u.prototype,m.prototype.view=function(e,t){var n=this,r=["page"];n.set("common",{action:"view"}).set("view_cond",{referrer:i()}),-1!==r.indexOf(e)&&n.set("common",{option:e}),n.set("detail_cond",{via_info:n.url.getViaInfo(),via_option:n.url.getViaOption(),via_view_rank:n.url.getViaViewRank(),via_show_position:n.url.getViaShowPosition()}),n.send(t)},m.prototype.show=function(e,t){var n=this,r=["recommend","purchase","search","detail","banner","suggest","review","point","ad","other_domain","list","fanza_tik_video","faq_recommend","carousel","carousel_out","page_onload","display_position"];switch(n.set("common",{action:"show"}).set("view_cond",{referrer:i()}),-1!==r.indexOf(e)&&n.set("common",{option:e}),e){case"detail":case"search":n.set("detail_cond",{via_info:n.url.getViaInfo(),via_option:n.url.getViaOption(),via_view_rank:n.url.getViaViewRank(),via_show_position:n.url.getViaShowPosition()})}n.send(t)},m.prototype.click=function(e,t){var n=this,i=["add_cart","add_favorite","recommend","banner","add_rental_list","suggest","play_sample","free_streaming","ad","see_more","other_domain","detail","to_DMM","seek","list","read_button","faq_recommend","carousel","carousel_item","banner_close","product_info","go_to","register_credit","sample_image","play_chat","refine_search","info","custom_event"];if(n.set("common",{action:"click"}),-1!==i.indexOf(e))switch(n.set("common",{option:e}),e){case"suggest":case"other_domain":break;default:n.set("detail_cond",{via_info:n.url.getViaInfo(),via_option:n.url.getViaOption(),via_view_rank:n.url.getViaViewRank(),via_show_position:n.url.getViaShowPosition()})}n.send(t)},m.prototype.get=function(){return this.getData()},m.prototype.send=function(e){var t=this,n=function(){var n=new p(t.i3Object);n.send("post",t.getData(),t.timeout,e)};0===t.stack_function_count?n():t.onUpdated=n},m.prototype.set=function(e,t){var n=this;if(t.items)for(var i=0;i<t.items.length;i++){var r=t.items[i].app_id;"undefined"!=typeof r&&(r="number"==typeof r?String(r):r,"string"==typeof r&&(t.items[i].content_id=r))}var o=n.getData().detail_cond;if("detail_cond"===e&&o)for(var a=["via_info","via_option","via_view_rank","via_show_position"],i=0;i<a.length;i++)"undefined"==typeof t[a[i]]||c.isEmpty(o[a[i]])||(t[a[i]]=void 0);if("detail_cond"===e&&"undefined"!=typeof t.monthly_service_id&&(t.items=[t]),n.constructor.parent.set.call(n,e,t),"purchase_cond"===e){var s=n.getData().purchase_cond.purchase_id_type;c.isEmpty(s)&&n.set("purchase_cond",{purchase_id_type:"purchase"})}return n},m.prototype.getData=function(){var e=this,t=e.common||{};return c.isEmpty(e.view_cond)||(t.view_cond=e.view_cond),c.isEmpty(e.api_cond)||(t.api_cond=e.api_cond),c.isEmpty(e.detail_cond)||(t.detail_cond=e.detail_cond),c.isEmpty(e.user_cond)||(t.user_cond=e.user_cond),c.isEmpty(e.purchase_cond)||(t.purchase_cond=e.purchase_cond),c.isEmpty(e.suggest_cond)||(t.suggest_cond=e.suggest_cond),c.isEmpty(e.review_cond)||(t.review_cond=e.review_cond),t}},{"./log":4,"./sender":5,"./url":8,"./util":9}],8:[function(e,t,n){var i=e("./util"),r=t.exports=function(e){var t=document.createElement("a");t.href=e,this.protocol=t.protocol,this.hostname=t.hostname,this.port=t.port,this.pathname=t.pathname,this.query=t.search,this.hash=t.hash,this.host=t.host};r.prototype.getParameterByName=function(e){e=e.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var t="[\\?&]"+e+"=([^&#]*)",n=new RegExp(t),i=n.exec(this.query);return null===i?"":decodeURIComponent(i[1].replace(/\+/g," "))},r.prototype.getViaInfo=function(){return this.getParameterByName(i.target_ids.via_info)},r.prototype.getViaOption=function(){return this.getParameterByName("dmmref")},r.prototype.getViaViewRank=function(){return this.getParameterByName(i.target_ids.via_view_rank)},r.prototype.getViaShowPosition=function(){return this.getParameterByName(i.target_ids.via_show_position)}},{"./util":9}],9:[function(e,t,n){function i(e){if(e)try{return JSON.parse(e)}catch(t){}}var r=!1,o="//trac.i3.dmm.com/analytics/v0.9",a=i('{"dmm.co.jp":"trac.i3.dmm.co.jp","r18.com":"trac.i3.r18.com","dmm-news.com":"trac.i3.dmm-news.com","dmm-make.com":"trac.i3.dmm-make.com","menus-recipe.com":"trac.i3.menus-recipe.com","web-camp.io":"trac.i3.web-camp.io","syukatsulabo.jp":"trac.i3.syukatsulabo.jp","aigis1000.jp":"trac.i3.aigis1000.jp","sangokublaze.jp":"trac.i3.sangokublaze.jp","alice-closet.jp":"trac.i3.alice-closet.jp","catharsistage.jp":"trac.i3.catharsistage.jp","imys-r-player.jp":"trac.i3.imys-r-player.jp","necrosm.com":"trac.i3.necrosm.com","oshirore-dmmgames.com":"trac.i3.oshirore-dmmgames.com","soukou-musume.com":"trac.i3.soukou-musume.com","windboys.jp":"trac.i3.windboys.jp","fruits-fulcute.jp":"trac.i3.fruits-fulcute.jp","ayarabu.jp":"trac.i3.ayarabu.jp","dmm-agri.com":"trac.i3.dmm-agri.com","dmmgamesventures.jp":"trac.i3.dmmgamesventures.jp","yaribeya.com":"trac.i3.yaribeya.com","project-frb.jp":"trac.i3.project-frb.jp","paz-doya.jp":"trac.i3.paz-doya.jp"}');t.exports={setDebugMode:function(e){r=e},isDebugMode:function(){return r},setTrackingApiUrl:function(e){o=e},getTrackingApiUrl:function(){return o},getCookie:function(e,t){t||(t=/^.*$/);var n=document.cookie.match(new RegExp("(^|\\s)"+e+"=([^;]+)"));return n&&t.test(n[2])?n[2]:""},setTrackingHostDomains:function(e){a=e},getTrackingHostDomains:function(){return a},target_ids:{open_id:"i3_opnd",view_type:"i3_vwtp",via_info:"i3_ref",via_view_rank:"i3_ord",via_show_position:"i3_pst"},isEmpty:function(e){var t=Object.prototype.hasOwnProperty;if(null===e||void 0===e)return!0;if("object"!=typeof e)return!1;if(e.length>0)return!1;if(0===e.length)return!0;for(var n in e)if(t.call(e,n))return!1;return!0},writeDebug:function(e){if(r){var t=document.getElementById("debug");t&&(t.innerHTML=t.innerHTML+"<p>"+e+"</p>")}},parseJSON:i}},{}]},{},[1]);