PageSourceSearch

https://lib.ltx.io/forwardQueryParams.js

js ltx.io collected 2026-09-24 17:33:34 UTC 7,376 bytes, 1 lines download raw bytes

1!function(t,r){"object"==typeof exports&&"object"==typeof module?module.exports=r():"function"==typeof define&&define.amd?define([],r):"object"==typeof exports?exports.forwardQueryParams=r():t.forwardQueryParams=r()}(self,()=>(()=>{"use strict";const t={d:(r,e)=>{if(Array.isArray(e))for(var n=0;n<e.length;){var o=e[n++],a=e[n++];t.o(r,o)?0===a&&n++:0===a?Object.defineProperty(r,o,{enumerable:!0,value:e[n++]}):Object.defineProperty(r,o,{enumerable:!0,get:a})}else for(var o in e)t.o(e,o)&&!t.o(r,o)&&Object.defineProperty(r,o,{enumerable:!0,get:e[o]})},o:(t,r)=>Object.prototype.hasOwnProperty.call(t,r),r:t=>{Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}};let r={};t.r(r),t.d(r,{forwardQueryParams:()=>I});var e=function(t,r){var e="function"==typeof Symbol&&t[Symbol.iterator];if(!e)return t;var n,o,a=e.call(t),i=[];try{for(;(void 0===r||r-- >0)&&!(n=a.next()).done;)i.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(e=a.return)&&e.call(a)}finally{if(o)throw o.error}}return i},n=function(t,r,e){if(e||2===arguments.length)for(var n,o=0,a=r.length;o<a;o++)!n&&o in r||(n||(n=Array.prototype.slice.call(r,0,o)),n[o]=r[o]);return t.concat(n||Array.prototype.slice.call(r))},o=["ltx.studio","app.ltx.studio"],a=["ltx.video","docs.ltx.video","console.ltx.video"],i=["popularpays.com","app.popularpays.com"],c=["ltx.io"],l=Object.freeze(n(n(n(n([],e(o),!1),e(a),!1),e(c),!1),e(i),!1)),u=function(t){try{var r=new URL(t).hostname;return l.some(function(t){return r===t||r.endsWith(".".concat(t))})}catch(t){return!1}},f=function(t,r){var e="function"==typeof Symbol&&t[Symbol.iterator];if(!e)return t;var n,o,a=e.call(t),i=[];try{for(;(void 0===r||r-- >0)&&!(n=a.next()).done;)i.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(e=a.return)&&e.call(a)}finally{if(o)throw o.error}}return i},d=function(t,r,e){if(e||2===arguments.length)for(var n,o=0,a=r.length;o<a;o++)!n&&o in r||(n||(n=Array.prototype.slice.call(r,0,o)),n[o]=r[o]);return t.concat(n||Array.prototype.slice.call(r))},s=Object.freeze(["utm_source","utm_medium","utm_campaign","utm_content","utm_term","utm","utm_campaign_id","utm_adset_id","utm_ad_id","placement","adset_name","ad_id","campaignid","actionid","gclid","click_id","ttclid","MSCLKID","msclkid","fbclid","twclid","ryzeclid","irclickid","ryze_token_c","oppref","form_variation","var","step","application","traffic_type","visit_id","in_flow_link_id","upsell_title","upsell_quoteid","variantId","flowId","dlv","bur_new"]),y=Object.freeze({"ltx.io":Object.freeze(d(d(d([],f(i),!1),f(o),!1),f(a),!1)),"ltx.studio":Object.freeze(d(d([],f(a),!1),f(c),!1)),"docs.ltx.video":Object.freeze(d(d([],f(o),!1),f(a),!1)),"ltx.video":Object.freeze(d(d([],f(o),!1),f(c),!1))}),v=function(t,r){var e=function(t,r){var e,n,o=null;try{for(var a=function(t){var r="function"==typeof Symbol&&Symbol.iterator,e=r&&t[r],n=0;if(e)return e.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")}(r),i=a.next();!i.done;i=a.next()){var c=i.value;".".concat(t).endsWith(".".concat(c))&&(!o||c.length>o.length)&&(o=c)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}return o}(t,Object.keys(r));return e?r[e]:null},m=function(t,r){var e;try{var n=new URL(t,window.location.origin),o=window.location.host,a=v(o,r);return null!==(e=null==a?void 0:a.includes(n.hostname))&&void 0!==e&&e}catch(t){return!1}},h=function(t){var r={};return s.forEach(function(e){var n=t.get(e);n&&(r[e]=n)}),r},p="route_change";function b(t,r){(null==r||r>t.length)&&(r=t.length);for(var e=0,n=Array(r);e<r;e++)n[e]=t[e];return n}var w="docs.ltx.video",g="forwarded_query_params";function S(){return sessionStorage.getItem(g)||""}function _(t,r){var e=S(),n=function(t){var r=new URLSearchParams;return Object.entries(t).forEach(function(t){var e,n,o=(n=2,function(t){if(Array.isArray(t))return t}(e=t)||function(t,r){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(e=e.call(t)).next,0===r){if(Object(e)!==e)return;l=!1}else for(;
1!(l=(n=a.call(e)).done)&&(c.push(n.value),c.length!==r);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=e.return&&(i=e.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(e,n)||function(t,r){if(t){if("string"==typeof t)return b(t,r);var e={}.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?b(t,r):void 0}}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),a=o[0],i=o[1];r.set(a,i)}),r.toString()}(h(r));(n||e)&&(n&&n!==e&&function(t){if(t)try{sessionStorage.setItem(g,t)}catch(t){console.warn("Failed to save params to session storage:",t)}}(n),"complete"===document.readyState?t(r):window.addEventListener("load",function(){return t(r)}),window.addEventListener(p,function(){return function(t){var r=S();if(r){var e=new URLSearchParams(r);!function(t){var r=new URL(location.href),e=!1;t.forEach(function(t,n){r.searchParams.has(n)||(r.searchParams.set(n,t),e=!0)}),e&&history.replaceState(history.state,"",r.toString())}(e),t(e)}}(t)}))}var j="data-cta-navigation";function A(t,r){t.forEach(function(t,e){s.includes(e)&&r.searchParams.set(e,t)})}function x(t,r,e){var n=t.getAttribute("data-redirect");if(n&&L(n,e))try{var o=new URL(n,window.location.origin);A(r,o),t.setAttribute("data-redirect",o.toString())}catch(t){console.warn("Invalid URL in data-redirect attribute:",n)}}function O(t){return"1"!==t.dataset.ignoreForwardQuery}function L(t,r){if(!t)return!1;try{return!P(t,r)||m(t,y)}catch(t){return!1}}function P(t,r){if(!t)return!1;try{return new URL(t,window.location.origin).hostname!==r}catch(t){return!1}}function U(t,r,e){L(t.getAttribute(j),r)&&function(t,r,e){var n=t.getAttribute(e);if(n&&!function(t){return"webpayment"===t}(n))try{var o=new URL(n,window.location.origin);A(r,o),t.setAttribute(e,o.toString())}catch(t){console.warn("Invalid URL in ".concat(e," attribute:"),n)}}(t,e,j),L(t.href,r)&&function(t,r){try{var e=new URL(t.href,window.location.origin);A(r,e),t.href=e.toString()}catch(r){console.warn("Invalid URL in href for query params:",t.href)}}(t,e),P(t.href,r)&&function(t){return"_blank"===t.getAttribute("target")}(t)&&function(t,r){var e=(t.getAttribute("rel")||"").split(" ").filter(function(t){return t}).reduce(function(t,r){return t[r]=!0,t},{});e.noopener=!0,r||(e.noreferrer=!0),t.setAttribute("rel",Object.keys(e).join(" "))}(t,u(t.href))}function R(t){for(var r=document.querySelectorAll("a"),e=window.location.host,n=0;n<r.length;n++){var o=r[n];O(o)&&U(o,e,t)}}function I(){var t=window.location.search.substring(1),r=new URLSearchParams(t);R(r),function(t){for(var r=window.location.host,e=document.querySelectorAll("form[data-redirect], button[data-redirect], input[type='submit'][data-redirect]"),n=0;n<e.length;n++){var o=e[n];"1"!==o.dataset.ignoreForwardQuery&&x(o,t,r)}}(r),window.location.host.includes(w)&&_(R,r)}return I(),r})());

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.