{"version":3,"names":["gtag","dataLayer","push","arguments","window","define","_exports","_pluginApi","Object","defineProperty","value","default","require","getObjectForTheme","name","after","initialize","withPluginApi","api","onPageChange","url","test","meta","document","createElement","content","head","appendChild","decorateWidget","href","rawLabel","currentUser","Discourse","User","current","staff","addNavigationBarItem","displayName","title","ad_storage","ad_user_data","ad_personalization","analytics_storage","uetq","i","s","o","g","r","a","m","q","l","Date","getElementsByTagName","async","src","parentNode","append","$","ready","attr","each","index","ahref","this","indexOf","patternMappings","element","matched","pattern","dynamicSuffix","regexPattern","RegExp","replace","match","finalUrl"],"sourceRoot":"theme-1/","sources":["_html/common/head_tag_1.js","discourse/initializers/theme-field-16-common-html-script-1.js","discourse/initializers/theme-field-16-common-html-script-2.js","discourse/initializers/theme-field-16-common-html-script-3.js","_html/common/head_tag_2.js","_html/common/head_tag_3.js"],"sourcesContent":["\n    // Define dataLayer and the gtag function.\n    window.dataLayer = window.dataLayer || [];\n    function gtag() { dataLayer.push(arguments); }\n    gtag('set', 'url_passthrough', true);\n    gtag('set', 'ads_data_redaction', true);\n    gtag('consent', 'default', {\n        'ad_storage': 'denied',\n        'ad_user_data': 'denied',\n        'ad_personalization': 'denied',\n        'analytics_storage': 'denied'\n    });\n    // UET default settings\n    window.uetq = window.uetq || [];\n    window.uetq.push('consent', 'default', {\n        'ad_storage': 'denied'\n    });\n\n","if ('define' in window) {\ndefine(\"discourse/theme-1/discourse/initializers/theme-field-16-common-html-script-1\", [\"exports\", \"discourse/lib/plugin-api\"], function (_exports, _pluginApi) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const settings = require(\"discourse/lib/theme-settings-store\").getObjectForTheme(1);\n  const themePrefix = key => `theme_translations.1.${key}`;\n  var _default = _exports.default = {\n    name: \"theme-field-16-common-html-script-1\",\n    after: \"inject-objects\",\n    initialize() {\n      (0, _pluginApi.withPluginApi)(\"0.8.42\", api => {\n        api.onPageChange(url => {\n          if (/^\\/u\\/[^\\/]+(\\/.*)?$/.test(url)) {\n            const meta = document.createElement(\"meta\");\n            meta.name = \"robots\";\n            meta.content = \"noindex\";\n            document.head.appendChild(meta);\n          }\n        });\n      });\n    }\n  };\n});\n}\n","if ('define' in window) {\ndefine(\"discourse/theme-1/discourse/initializers/theme-field-16-common-html-script-2\", [\"exports\", \"discourse/lib/plugin-api\"], function (_exports, _pluginApi) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const settings = require(\"discourse/lib/theme-settings-store\").getObjectForTheme(1);\n  const themePrefix = key => `theme_translations.1.${key}`;\n  var _default = _exports.default = {\n    name: \"theme-field-16-common-html-script-2\",\n    after: \"inject-objects\",\n    initialize() {\n      (0, _pluginApi.withPluginApi)(\"0.4\", api => {\n        api.decorateWidget('hamburger-menu:generalLinks', () => {\n          return {\n            href: 'https://forum.aspose.ai/t/free-support-policies/47',\n            rawLabel: 'Free Support Policies'\n          };\n        });\n      });\n    }\n  };\n});\n}\n","if ('define' in window) {\ndefine(\"discourse/theme-1/discourse/initializers/theme-field-16-common-html-script-3\", [\"exports\", \"discourse/lib/plugin-api\"], function (_exports, _pluginApi) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const settings = require(\"discourse/lib/theme-settings-store\").getObjectForTheme(1);\n  const themePrefix = key => `theme_translations.1.${key}`;\n  var _default = _exports.default = {\n    name: \"theme-field-16-common-html-script-3\",\n    after: \"inject-objects\",\n    initialize() {\n      (0, _pluginApi.withPluginApi)(\"0.8.18\", api => {\n        var currentUser = Discourse.User.current();\n        if (currentUser != null && currentUser.staff) {\n          api.addNavigationBarItem({\n            name: \"Unanswered\",\n            displayName: \"Unanswered\",\n            title: \"Unanswered\",\n            href: \"/latest?max_posts=1\"\n          });\n        }\n      });\n    }\n  };\n});\n}\n","\n(function(i, s, o, g, r, a, m) {\n    i['ContainerizeMenuObject'] = r;\n    i[r] = i[r] || function() {\n        (i[r].q = i[r].q || []).push(arguments);\n    };\n    i[r].l = 1 * new Date();\n    a = s.createElement(o);\n    m = s.getElementsByTagName(o)[0];\n    a.async = 1;\n    a.src = g;\n    m.parentNode.append(a);\n})(\n    window,\n    document,\n    'script',\n    'https://menucdn.containerize.com/core/engine.min.js?v=1.0.1',\n    'aspose.ai-en'\n);\n\n","\n  <!-- Start of Rocket.Chat Livechat Script -->\n//   (function(w, d, s, u) {\n//     w.RocketChat = function(c) { w.RocketChat._.push(c) }; w.RocketChat._ = []; w.RocketChat.url = u;\n//     var h = d.getElementsByTagName(s)[0], j = d.createElement(s);\n//     j.async = true; j.src = 'https://chatbot-forum.containerize.com/livechat/rocketchat-livechat.min.js?_=201903270000';\n//     h.parentNode.insertBefore(j, h);\n//     })(window, document, 'script', 'https://chatbot-forum.containerize.com/livechat');\n//     RocketChat(function(){\n//     this.setDepartment('HJ8XfEkKfYiN2Aff5');\n//     this.onPrechatFormSubmit(function(data) {\n//     that.setCustomField('departmentName', 'AsposeForum');\n//     });\n//     });\n  <!-- End of Rocket.Chat Livechat Script -->\n\n  $( document ).ready(function() {\n    // overrirde urls\n    $('a[title*=\"http://www.aspose.ai/\"]').attr(\"href\", \"http://www.aspose.ai/\"+$('a[title*=\"http://www.aspose.ai/\"]').attr('href'));\n    $('a[href*=\"/community/files\"]').each(function( index ) {\n       var ahref= $(this).attr('href');\n       if(ahref.indexOf(\"www.aspose.ai\") <= 0)\n         $(this).attr(\"href\", \"http://www.aspose.ai\"+ahref);\n    });\n    \n    // $('a[href*=\"/Community/Files\"]').each(function( index ) {\n    //     var ahref= $(this).attr('href');\n    //     if(ahref.indexOf(\"www.aspose.ai\") <= 0)\n    //         $(this).attr(\"href\", \"http://www.aspose.ai\"+ahref);\n    // });\n    \n    // $('a[href*=\"/Downloads\"]').each(function( index ) {\n    //   var ahref= $(this).attr('href');\n    //   if(ahref.indexOf(\"www.aspose.ai\") <= 0)\n    //      $(this).attr(\"href\", \"http://www.aspose.ai\"+ahref);\n    // });\n    \n    //3.1\n    // Define a mapping of patterns to dynamic suffixes\n    var patternMappings = {\n        \"/aspose.*-for-java/\": \"/*/java/\",\n        \"/aspose.*-for-.net/\": \"/*/net/\",\n        \"/aspose.*-for-sharepoint/\": \"/*/sharepoint/\",\n        \"/aspose.*-for-reporting-services/\": \"/*/reportingservices/\",\n        \"/aspose.*-for-jasperreports/\": \"/*/jasperreports/\",\n        \"/aspose.*/\": \"/*/\"\n    };\n\n    $('a[href*=\"/Community/Files\"], a[href*=\"/community/files\"]').each(function(index, element) {\n        var ahref = $(element).attr('href');\n        var matched = false; \n\n        // Iterate through the mappings\n        $.each(patternMappings, function(pattern, dynamicSuffix) {\n            var regexPattern = new RegExp(pattern.replace(/\\*/g, '(.*)'), 'i');\n            var match = ahref.match(regexPattern);\n            if (match) {\n                // If the pattern is matched, construct the final URL\n                var finalUrl = \"https://releases.aspose.ai\" + dynamicSuffix.replace(/\\*/g, match[1]);\n                $(element).attr(\"href\", finalUrl);\n                matched = true;\n                // Exit the loop since we found a match\n                return false;\n            }\n        });\n\n        // If no match is found in the mappings, set the href to default\n        if (!matched) {\n          $(element).attr(\"href\", \"https://releases.aspose.ai/\");\n        }\n    });\n\n    \n    // $('a[href*=\"/wiki/\"]').each(function( index ) {\n    //   var ahref= $(this).attr('href');\n    //   if(ahref.indexOf(\"www.aspose.ai\") <= 0)\n    //      $(this).attr(\"href\", \"http://www.aspose.ai\"+ahref);\n    // });\n    \n    $('a[href*=\"/Products\"]').each(function( index ) {\n        var ahref= $(this).attr('href');\n        if(ahref.indexOf(\"www.aspose.ai\") <= 0)\n          $(this).attr(\"href\", \"http://www.aspose.ai\"+ahref);\n    });\n    \n    <!--Hide activity and summary of staff, moderators, and admin group members from ordinary users-->\n    //document.addEventListener(\"DOMContentLoaded\", function() {\n    //    console.log(\"2\");\n    //    if (\n    //        window.location.pathname.endsWith(\"/activity\") ||\n    //        window.location.pathname.endsWith(\"/summary\")\n    //    ) {\n    //        let isStaff = document.body.classList.contains(\"staff\") ||\n    //                      document.body.classList.contains(\"moderators\") ||\n    //                      document.body.classList.contains(\"admins\");\n    //\n    //        if (!isStaff) {\n    //            window.location.href = \"/\";\n    //        }\n    //    }\n    //});\n  });\n\n"],"mappings":"AAGI,SAASA,OAASC,UAAUC,KAAKC,UAAY,CCH7C,WAAYC,QAChBC,OAAO,+EAAgF,CAAC,UAAW,6BAA6B,SAAUC,EAAUC,GAClJ;AAEAC,OAAOC,eAAeH,EAAU,aAAc,CAC5CI,OAAO,IAETJ,EAASK,aAAU;AACFC,QAAQ,sCAAsCC,kBAAkB;AAElEP,EAASK,QAAU,CAChCG,KAAM,sCACNC,MAAO,iBACP,UAAAC,IACE,EAAIT,EAAWU,eAAe,UAAUC,IACtCA,EAAIC,cAAaC,IACf,GAAI,uBAAuBC,KAAKD,GAAM,CACpC,MAAME,EAAOC,SAASC,cAAc;AACpCF,EAAKR,KAAO,SACZQ,EAAKG,QAAU,UACfF,SAASG,KAAKC,YAAYL,EAC5B,IACA,GAEN,EAEJ,IC1BI,WAAYlB,QAChBC,OAAO,+EAAgF,CAAC,UAAW,6BAA6B,SAAUC,EAAUC,GAClJ;AAEAC,OAAOC,eAAeH,EAAU,aAAc,CAC5CI,OAAO,IAETJ,EAASK,aAAU;AACFC,QAAQ,sCAAsCC,kBAAkB;AAElEP,EAASK,QAAU,CAChCG,KAAM,sCACNC,MAAO,iBACP,UAAAC,IACE,EAAIT,EAAWU,eAAe,OAAOC,IACnCA,EAAIU,eAAe,+BAA+B,KACzC,CACLC,KAAM,qDACNC,SAAU,2BAEZ,GAEN,EAEJ,ICxBI,WAAY1B,QAChBC,OAAO,+EAAgF,CAAC,UAAW,6BAA6B,SAAUC,EAAUC,GAClJ;AAEAC,OAAOC,eAAeH,EAAU,aAAc,CAC5CI,OAAO,IAETJ,EAASK,aAAU;AACFC,QAAQ,sCAAsCC,kBAAkB;AAElEP,EAASK,QAAU,CAChCG,KAAM,s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