Snippets Collections
Week Rank = 

RANKX(
    ALL( 'Calendar' ),
    'Calendar'[Week StartDate], , ASC, Dense)
Week StartDate = 

'Calendar'[Date] + -1*WEEKDAY( 'Calendar'[Date], 2 ) + 1
Week EndDate = 

'Calendar'[Date] + 7-1*WEEKDAY( 'Calendar'[Date], 2 )
openDatabase(
  // Name
  'mydatabase',
  // Version
  1,
  // Display name
  'mydatabase',
  // Estimated size
  5000000,
  // Creation callback
  function (db) {
    db.transaction(
      // Transaction callback
      function (tx) {
        // Execute SQL statement
        tx.executeSql(
          // SQL statement
          'create table rainstorms (mood text, severity int)',
          // Arguments
          [],
          // Success callback
          function () {
            // Execute SQL statement
            tx.executeSql(
              // SQL statement
              'insert into rainstorms values (?, ?)',
              // Arguments
              ['somber', 6],
              // Success callback
              function () {
                // Execute SQL statement
                tx.executeSql(
                  // SQL statement
                  'select * from rainstorms where mood = ?',
                  // Arguments
                  ['somber'],
                  // Success callback
                  function (tx, res) {
                    // Do something with the result
                    var row = res.rows.item(0);
                    console.log(
                      'rainstorm severity: ' +
                        row.severity +
                        ',  my mood: ' +
                        row.mood,
                    );
                  },
                );
              },
            );
          },
        );
      },
      // Error callback
      function (err) {
        console.log('Transaction failed!: ' + err);
      },
      // Success callback);
      function () {
        console.log('Transaction succeeded!');
      },
    );
  },
);

// User class component
class User extends React.Component {
  constructor(props) {
    super(props);

    // starting values for component's state
    this.state = {
      rating: 0,
    };
  }

  /*
   * event handlers: change the state
   */
  handleLike = () => {
    this.setState({ rating: 1 });
  };

  handleDislike = () => {
    this.setState({ rating: -1 });
  };

  // render the JSX structure
  render() {
    return (
      <div>
        <img
          src={`https://practicum-content.s3.us-west-1.amazonaws.com/web-code/react/moved_${this.props.id}.png`}
          width="75"
        />
        <p>{this.props.name}</p>
        <div className="rating">
          <button onClick={this.handleLike}>馃憤</button>
          {this.state.rating}
          <button onClick={this.handleDislike}>馃憥</button>
        </div>
      </div>
    );
  }
}

// the main app code
ReactDOM.render(
  <>
    <h2>My Imaginary Friends:</h2>
    <User id="1" name="Gregory" />
    <User id="2" name="James" />
    <User id="3" name="Allison" />
  </>,
  document.querySelector("#root")
); 
import React from 'react';

const GmailRedirectButton = () => {
  const redirectToGmail = () => {
    // Replace 'youremail@gmail.com' with the actual email address you want to open in Gmail
    const email = 'youremail@gmail.com';
    
    // Replace 'Your%20Subject' with the desired subject (URL-encoded)
    const subject = 'Your%20Subject';
    
    // Replace 'Your%20Body' with the desired body (URL-encoded)
    const body = 'Your%20Body';

    // Construct the Gmail URL with the email address, subject, and body
    const gmailUrl = `https://mail.google.com/mail/?view=cm&fs=1&to=${email}&su=${subject}&body=${body}`;

    // Open Gmail in a new blank page
    window.open(gmailUrl, '_blank');
  };

  return (
    <button onClick={redirectToGmail}>
      Redirect to Gmail
    </button>
  );
};

export default GmailRedirectButton;
//HTML

<div id="progress-bar"></div>



//CSS

#progress-bar {
  height: 5px;
  background-color: grey;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
}




//JS

const progressBar = document.getElementById('progress-bar');

window.addEventListener('scroll', function() {
  const scrollTop = window.scrollY;
  const documentHeight = document.documentElement.scrollHeight;
  const windowHeight = window.innerHeight;
  const progress = scrollTop / (documentHeight - windowHeight);
  progressBar.style.width = `${progress * 100}%`;
});

#include <stdio.h>
#include <stdlib.h>

typedef struct Node 
{
    char data;
    struct Node* left;
    struct Node* right;
} Node;

Node* createNode(char value)
{
    Node* newNode = (Node*)malloc(sizeof(Node*));
    newNode -> data = value;
    newNode -> left = NULL;
    newNode -> right = NULL;
    
    return newNode;
}

void preOrder(Node* root)
{
    if(root != NULL) {
        printf("%c ", root -> data);
        preOrder(root -> left);
        preOrder(root -> right);
    }
}

void inOrder(Node* root)
{
    if(root != NULL) {
        inOrder(root -> left);
        printf("%c ", root -> data);
        inOrder(root -> right);
    }
}

void postOrder(Node* root)
{
    if(root != NULL) {
        postOrder(root -> left);
        postOrder(root -> right);
        printf("%c ", root -> data);
    }
}
int main() {
   
   Node* root = createNode('A');
   root ->left = createNode('B');
   root -> right = createNode('C');
   root -> left -> left = createNode('D');
   root -> left -> right = createNode('E');
   root -> right -> left = createNode('F');
   root -> right -> right = createNode('G');
   
   printf("Pre-Order Traversal: ");
   printf("\n");
   preOrder(root);
   
   printf("\n\nIn-Order Traversal: ");
   printf("\n");
   inOrder(root);
   
   printf("\n\nPost-Order Traversal: ");
   printf("\n");
   postOrder(root);

    return 0;
}

//OUTPUT:

Pre-Order Traversal: 
A B D E C F G 

In-Order Traversal: 
D B E A F C G 

Post-Order Traversal: 
D E B F G C A 
import pandas as pd
df = pd.read_csv('your_data.csv')
int fib(int n)
{
    int a = 0, b = 1, c, i;
    if (n == 0)
        return a;
    for (i = 2; i <= n; i++) {
        c = a + b;
        a = b;
        b = c;
    }
    return b;
}


int fib(int n)
{
    if (n <= 1)
        return n;
    return fib(n - 1) + fib(n - 2);
}
// ParentComponent.js:


import React, { useState } from 'react';
import ChildComponent from './ChildComponent';

const ParentComponent = () => {
  const [parameterFromChild, setParameterFromChild] = useState('');

  // Callback function to receive the parameter from the child
  const handleChildParameter = (parameter) => {
    setParameterFromChild(parameter);
  };

  return (
    <div>
      <h1>Parent Component</h1>
      
      {/* Render ChildComponent and pass the callback function as a prop */}
      <ChildComponent onParameterChange={handleChildParameter} />

      {/* Display the parameter received from the child */}
      {parameterFromChild && (
        <p>Parameter received from child: {parameterFromChild}</p>
      )}
    </div>
  );
};

export default ParentComponent;




//ChildComponent.js:
import React, { useState } from 'react';

const ChildComponent = ({ onParameterChange }) => {
  const [childParameter, setChildParameter] = useState('');

  const handleButtonClick = () => {
    // Update the childParameter state
    setChildParameter('Hello from ChildComponent!');
    
    // Invoke the callback function in the parent with the parameter
    onParameterChange('Hello from ChildComponent!');
  };

  return (
    <div>
      <h2>Child Component</h2>

      <button onClick={handleButtonClick} className="bg-blue-500 text-white px-4 py-2">
        Click me
      </button>
    </div>
  );
};

export default ChildComponent;
<div class="page-width {{ section.settings.section_css_class }}">
  
  
  {

"type": "text",
    "id": "section_css_class",
    "label": {
      "en": "Section CSS Class"
    },
    "default": {
      "en": "Type your own CSS class"
    }
  },
# Best min size, in kB.
best_min_size = (32000 + 100000) * (1.073741824 * duration) / (8 * 1024)
  vector <int> calculateSpan(int price[], int n)
    {
       vector<int>ans;
       stack<pair<int,int>>st;
       for(int i=0 ; i<n ; i++)
       {
           
           while(!st.empty() and st.top().first<=price[i])
           {
               st.pop();
           }
           if(st.empty())
           {
               ans.push_back(-1);
           }
           else if(!st.empty() and st.top().first>price[i])
           {
                ans.push_back(st.top().second);
           }
        st.push({price[i],i});
       }
       for(int i=0 ; i<n ; i++)
       {
           ans[i]=i-ans[i];
       }
       return ans;
    }
//{ Driver Code Starts
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <bits/stdc++.h>
using namespace std;

struct Node {
    int data;
    struct Node* next;
    Node(int x) {
        data = x;
        next = NULL;
    }
};


// } Driver Code Ends
/* Structure of the linked list node is as
struct Node 
{
    int data;
    struct Node* next;
    Node(int x) { data = x;  next = NULL; }
};
*/


class Solution{
  public:
    //Function to sort the given linked list using Merge Sort.
    Node* merge(Node* left,Node* right)
    {
        Node* ptr=NULL;
        if(!left)
        return right;
        if(!right)
        return left;
        if(left->data<right->data)
        {
            ptr=left;
            ptr->next=merge(left->next,right);
        }
        else
        {
            ptr=right;
            ptr->next=merge(left,right->next);
        }
        return ptr;
    }
    Node* middle(Node* head)
    {
        Node* slow=head;
        Node* fast=head->next;
        while(fast!=NULL and fast->next!=NULL)
        {
            slow=slow->next;
            fast=fast->next->next;
        }
        return slow;
    }
    Node* mergeSort(Node* head)
    {
        if(!head or !head->next)
        return head;
        Node* left=head;
        Node* mid=middle(head);
        Node* right=mid->next;
        mid->next=NULL;
        left=mergeSort(left);
        right=mergeSort(right);
        Node* ans=merge(left,right);
        return ans;
    }
};


//{ Driver Code Starts.

void printList(Node* node) {
    while (node != NULL) {
        printf("%d ", node->data);
        node = node->next;
    }
    printf("\n");
}

void push(struct Node** head_ref, int new_data) {
    Node* new_node = new Node(new_data);

    new_node->next = (*head_ref);
    (*head_ref) = new_node;
}

int main() {
    long test;
    cin >> test;
    while (test--) {
        struct Node* a = NULL;
        long n, tmp;
        cin >> n;
        for (int i = 0; i < n; i++) {
            cin >> tmp;
            push(&a, tmp);
        }
        Solution obj;
        a = obj.mergeSort(a);
        printList(a);
    }
    return 0;
}
// } Driver Code Ends
/* Radar.js v20.123. Copyright 2021 Cedexis. All rights reserved. */
if(!cedexis||!cedexis.start){if(!cedexis)var cedexis={};(function(_){_.MP="//radar.cedexis.com/releases/1621860284/";
_.MI={"radar":[],"impact":["radar"],"video":["radar"],"sdwan":["radar"]};_.MU={"radar":["radar.js"],"impact":["impact.js"],"video":["video.js"],"sdwan":["sdwan.js"]};
var aa,ba,fa,ga,ha,C,ia,la,ma,na,oa,pa,ra,sa,ta,ua,xa,ya,F,za,Aa,Ca,Da,Ea,Ga,Ha,Ia,Na,Ka,Oa,Ra,Wa,Ya,Va,eb,ab,Za,$a,fb,hb,cb,kb,lb,jb,ob,qb,rb,sb,tb,ub,vb,wb,yb,zb,Bb,Fb,Gb,Ib,Kb,Lb,Mb,Pb,Nb,Vb,$b,Wb,cc,bc,Yb,Tb,jc,pc,qc,rc,uc,wc,xc,N,zc,O,P,Dc,Fc,Gc,Ic,Kc,Lc,Jc,Nc,Pc,Rc,Sc,Tc,Uc,Vc,Xc,Wc,Zc,bd,cd,dd,ed,gd,id,jd,md,kd,rd,ld,sd,qd,od,pd,vd,wd,Qc,R,Hc,Mc,Ac,xd,yd,Cd,Ad,Dd,Bd,Ed,Kd,Jd,Ld,Id,tc,Nd,Pd,Od,Sd,Td,nd,n,Db,Eb;_.l=function(a){return void 0!==a};
aa=function(a,b){for(var c=a.split("."),d=b||n,e;e=c.shift();)if(null!=d[e])d=d[e];else return null;return d};_.p=function(){};
ba=function(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if("[object Window]"==c)return"object";if("[object Array]"==c||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==c||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return"function"}else return"null";
else if("function"==b&&"undefined"==typeof a.call)return"object";return b};_.r=function(a){return"array"==ba(a)};_.da=function(a){var b=ba(a);return"array"==b||"object"==b&&"number"==typeof a.length};_.t=function(a){return"string"==typeof a};_.ea=function(a){return"boolean"==typeof a};_.u=function(a){return"number"==typeof a};_.v=function(a){return"function"==ba(a)};_.w=function(a){var b=typeof a;return"object"==b&&null!=a||"function"==b};fa=function(a,b,c){return a.call.apply(a.bind,arguments)};
ga=function(a,b,c){if(!a)throw Error();if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var c=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(c,d);return a.apply(b,c)}}return function(){return a.apply(b,arguments)}};_.y=function(a,b,c){Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?_.y=fa:_.y=ga;return _.y.apply(null,arguments)};
_.A=function(a,b){var c=Array.prototype.slice.call(arguments,1);return function(){var b=c.slice();b.push.apply(b,arguments);return a.apply(this,b)}};_.B=function(){return+new Date};ha=function(a,b){for(var c=a.split("."),d=n,e;c.length&&(e=c.shift());)!c.length&&_.l(b)?d[e]=b:d[e]&&d[e]!==Object.prototype[e]?d=d[e]:d=d[e]={}};
C=function(a,b){function c(){}c.prototype=b.prototype;a.Db=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.Lb=function(a,c,f){for(var d=Array(arguments.length-2),e=2;e<arguments.length;e++)d[e-2]=arguments[e];return b.prototype[c].apply(a,d)}};ia=function(a){if(Error.captureStackTrace)Error.captureStackTrace(this,ia);else{var b=Error().stack;b&&(this.stack=b)}a&&(this.message=String(a))};la=function(a){a=String(a.substr(a.length-7,7)).toLowerCase();return!(" google"<a||" google"!=a)};
ma=function(a,b){return-1!=a.toLowerCase().indexOf(b.toLowerCase())};na=function(a,b){return a<b?-1:a>b?1:0};oa=function(a,b,c){this.l=c;this.j=a;this.o=b;this.g=0;this.f=null};pa=function(a,b){a.o(b);a.g<a.l&&(a.g++,b.next=a.f,a.f=b)};ra=function(){var a=qa,b=null;a.f&&(b=a.f,a.f=a.f.next,a.f||(a.g=null),b.next=null);return b};sa=function(){this.next=this.g=this.f=null};
ta=function(a,b){if(_.t(a))return _.t(b)&&1==b.length?a.indexOf(b,0):-1;for(var c=0;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1};_.D=function(a,b,c){for(var d=a.length,e=_.t(a)?a.split(""):a,f=0;f<d;f++)f in e&&b.call(c,e[f],f,a)};
ua=function(a){for(var b="chrome/43;opera mini;skyfire;teashark;uzard;puffin;yandex;dynatrace;googleweblight;adsbot;hoteladsverifier;google page speed insights;google web preview;applebot".split(";"),c=b.length,d=_.t(b)?b.split(""):b,e=0;e<c;e++)if(e in d&&a.call(void 0,d[e],e,b))return!0;return!1};_.wa=function(a,b,c){b=_.va(a,b,c);return 0>b?null:_.t(a)?a.charAt(b):a[b]};_.va=function(a,b,c){for(var d=a.length,e=_.t(a)?a.split(""):a,f=0;f<d;f++)if(f in e&&b.call(c,e[f],f,a))return f;return-1};
xa=function(a,b){var c=ta(a,b),d;(d=0<=c)&&Array.prototype.splice.call(a,c,1);return d};ya=function(a){return Array.prototype.concat.apply([],arguments)};F=function(a){return-1!=E.indexOf(a)};za=function(a,b){for(var c in a)b.call(void 0,a[c],c,a)};Aa=function(a,b){for(var c in a)if(b.call(void 0,a[c],c,a))return!0;return!1};_.Ba=function(a){var b=0,c;for(c in a)b++;return b};Ca=function(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b};Da=function(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b};
Ea=function(a){var b={},c;for(c in a)b[c]=a[c];return b};Ga=function(a,b){for(var c,d,e=1;e<arguments.length;e++){d=arguments[e];for(c in d)a[c]=d[c];for(var f=0;f<Fa.length;f++)c=Fa[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};Ha=function(a){n.setTimeout(function(){throw a;},0)};
Ia=function(){var a=n.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!F("Presto")&&(a=function(){var a=window.document.createElement("IFRAME");a.style.display="none";a.src="";window.document.documentElement.appendChild(a);var b=a.contentWindow,a=b.document;a.open();a.write("");a.close();var c="callImmediate"+Math.random(),d="file:"==b.location.protocol?"*":b.location.protocol+"//"+b.location.host,a=(0,_.y)(function(a){if(("*"==d||a.origin==
d)&&a.data==c)this.port1.onmessage()},this);b.addEventListener("message",a,!1);this.port1={};this.port2={postMessage:function(){b.postMessage(c,d)}}});if("undefined"!==typeof a&&!F("Trident")&&!F("MSIE")){var b=new a,c={},d=c;b.port1.onmessage=function(){if(_.l(c.next)){c=c.next;var a=c.za;c.za=null;a()}};return function(a){d.next={za:a};d=d.next;b.port2.postMessage(0)}}return"undefined"!==typeof window.document&&"onreadystatechange"in window.document.createElement("SCRIPT")?function(a){var b=window.document.createElement("SCRIPT");
b.onreadystatechange=function(){b.onreadystatechange=null;b.parentNode.removeChild(b);b=null;a();a=null};window.document.documentElement.appendChild(b)}:function(a){n.setTimeout(a,0)}};Na=function(a,b){Ja||Ka();La||(Ja(),La=!0);var c=qa,d=Ma.get();d.set(a,b);c.g?c.g.next=d:c.f=d;c.g=d};
Ka=function(){if(-1!=String(n.Promise).indexOf("[native code]")){var a=n.Promise.resolve(void 0);Ja=function(){a.then(Oa)}}else Ja=function(){var a=Oa;!_.v(n.setImmediate)||n.Window&&n.Window.prototype&&!F("Edge")&&n.Window.prototype.setImmediate==n.setImmediate?(Pa||(Pa=Ia()),Pa(a)):n.setImmediate(a)}};Oa=function(){for(var a;a=ra();){try{a.f.call(a.g)}catch(b){Ha(b)}pa(Ma,a)}La=!1};
_.I=function(a,b){this.f=G;this.w=void 0;this.l=this.g=this.j=null;this.o=this.v=!1;if(a!=_.p)try{var c=this;a.call(b,function(a){c.M(Qa,a)},function(a){c.M(H,a)})}catch(d){this.M(H,d)}};Ra=function(){this.next=this.l=this.g=this.o=this.f=null;this.j=!1};_.Ta=function(a,b,c){var d=Sa.get();d.o=a;d.g=b;d.l=c;return d};_.Ua=function(){var a=new _.I(_.p);a.M(Qa,void 0);return a};Wa=function(a,b,c){Va(a,b,c,null)||Na(_.A(b,a))};
_.Xa=function(a){return new _.I(function(b,c){var d=a.length,e=[];if(d)for(var f=function(a,c){d--;e[a]=c;d||b(e)},g=function(a){c(a)},h=0,m;h<a.length;h++)m=a[h],Wa(m,_.A(f,h),g);else b(e)})};Ya=function(a,b){if(a.f==G)if(a.j){var c=a.j;if(c.g){for(var d=0,e=null,f=null,g=c.g;g&&(g.j||(d++,g.f==a&&(e=g),!(e&&1<d)));g=g.next)e||(f=g);e&&(c.f==G&&1==d?Ya(c,b):(f?(d=f,d.next==c.l&&(c.l=d),d.next=d.next.next):Za(c),$a(c,e,H,b)))}a.j=null}else a.M(H,b)};
_.bb=function(a,b){a.g||a.f!=Qa&&a.f!=H||ab(a);a.l?a.l.next=b:a.g=b;a.l=b};_.db=function(a,b,c,d){var e=_.Ta(null,null,null);e.f=new _.I(function(a,g){e.o=b?function(c){try{var e=b.call(d,c);a(e)}catch(q){g(q)}}:a;e.g=c?function(b){try{var e=c.call(d,b);!_.l(e)&&b instanceof cb?g(b):a(e)}catch(q){g(q)}}:g});e.f.j=a;_.bb(a,e);return e.f};
Va=function(a,b,c,d){if(a instanceof _.I)return _.bb(a,_.Ta(b||_.p,c||null,d)),!0;var e;if(a)try{e=!!a.$goog_Thenable}catch(g){e=!1}else e=!1;if(e)return a.then(b,c,d),!0;if(_.w(a))try{var f=a.then;if(_.v(f))return eb(a,f,b,c,d),!0}catch(g){return c.call(d,g),!0}return!1};eb=function(a,b,c,d,e){function f(a){h||(h=!0,d.call(e,a))}function g(a){h||(h=!0,c.call(e,a))}var h=!1;try{b.call(a,g,f)}catch(m){f(m)}};ab=function(a){a.v||(a.v=!0,Na(a.Qa,a))};
Za=function(a){var b=null;a.g&&(b=a.g,a.g=b.next,b.next=null);a.g||(a.l=null);return b};$a=function(a,b,c,d){if(c==H&&b.g&&!b.j)for(;a&&a.o;a=a.j)a.o=!1;if(b.f)b.f.j=null,fb(b,c,d);else try{b.j?b.o.call(b.l):fb(b,c,d)}catch(e){gb.call(null,e)}pa(Sa,b)};fb=function(a,b,c){b==Qa?a.o.call(a.l,c):a.g&&a.g.call(a.l,c)};hb=function(a,b){a.o=!0;Na(function(){a.o&&gb.call(null,b)})};cb=function(a){ia.call(this,a)};kb=function(a){return function(b){var c=ib[a]||jb(a);ib[a]=c.then(b).then(_.p)}};lb=function(){};
jb=function(a){var b=mb[a],c=b.length,d=new _.I(function(a){_.D(b,function(b){kb(b)(function(){--c||a()})})});_.D(nb[a],function(a){d=d.then(_.A(ob,a))});return d};ob=function(a){return new _.I(function(b){var c=window.document.createElement("script");c.async=!0;c.type="text/javascript";c.src=pb+a;c.onload=c.onreadystatechange=function(){c.readyState&&"loaded"!=c.readyState&&"complete"!=c.readyState||(window.document.body.removeChild(c),b())};window.document.body.appendChild(c)})};qb=function(){};
rb=function(a){return a.g||(a.g=a.l())};sb=function(){};tb=function(a){if(!a.j&&"undefined"==typeof window.XMLHttpRequest&&"undefined"!=typeof window.ActiveXObject){for(var b=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],c=0;c<b.length;c++){var d=b[c];try{return new window.ActiveXObject(d),a.j=d}catch(e){}}throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed");}return a.j};_.J=function(){};
ub=function(){this.f=new window.XDomainRequest;this.readyState=0;this.onreadystatechange=null;this.responseText="";this.status=-1;this.statusText=this.responseXML=null;this.f.onload=(0,_.y)(this.Va,this);this.f.onerror=(0,_.y)(this.Ea,this);this.f.onprogress=(0,_.y)(this.Za,this);this.f.ontimeout=(0,_.y)(this.bb,this)};vb=function(a,b){a.readyState=b;if(a.onreadystatechange)a.onreadystatechange()};wb=function(a){wb[" "](a);return a};
yb=function(a,b){var c=xb;return Object.prototype.hasOwnProperty.call(c,a)?c[a]:c[a]=b(a)};zb=function(){var a=n.document;return a?a.documentMode:void 0};
Bb=function(a){return yb(a,function(){for(var b=0,c=String(Ab).replace(/^[\s\xa0]+|[\s\xa0]+$/g,"").split("."),d=String(a).replace(/^[\s\xa0]+|[\s\xa0]+$/g,"").split("."),e=Math.max(c.length,d.length),f=0;!b&&f<e;f++){var g=c[f]||"",h=d[f]||"";do{g=/(\d*)(\D*)(.*)/.exec(g)||["","","",""];h=/(\d*)(\D*)(.*)/.exec(h)||["","","",""];if(0==g[0].length&&0==h[0].length)break;b=na(0==g[1].length?0:(0,window.parseInt)(g[1],10),0==h[1].length?0:(0,window.parseInt)(h[1],10))||na(0==g[2].length,0==h[2].length)||
na(g[2],h[2]);g=g[3];h=h[3]}while(!b)}return 0<=b})};Fb=function(){0!=Cb&&(this[Db]||(this[Db]=++Eb));this.A=this.A;this.Y=this.Y};Gb=function(a,b){this.type=a;this.currentTarget=this.f=b;this.Fa=!0};
Ib=function(a,b){Gb.call(this,a?a.type:"");this.currentTarget=this.f=null;this.screenY=this.screenX=0;this.key="";this.ha=null;if(a){this.type=a.type;var c=a.changedTouches?a.changedTouches[0]:null;this.f=a.target||a.srcElement;this.currentTarget=b;var d=a.relatedTarget;if(d&&Hb)try{wb(d.nodeName)}catch(e){}null===c?(this.screenX=a.screenX||0,this.screenY=a.screenY||0):(this.screenX=c.screenX||0,this.screenY=c.screenY||0);this.key=a.key||"";this.ha=a;a.defaultPrevented&&this.g()}};
Kb=function(a,b,c,d,e){this.listener=a;this.f=null;this.src=b;this.type=c;this.capture=!!d;this.da=e;this.key=++Jb;this.ea=this.ka=!1};Lb=function(a){a.ea=!0;a.listener=null;a.f=null;a.src=null;a.da=null};Mb=function(a){this.src=a;this.f={};this.g=0};_.Ob=function(a,b,c,d,e,f){var g=b.toString();b=a.f[g];b||(b=a.f[g]=[],a.g++);var h=Nb(b,c,e,f);-1<h?(a=b[h],d||(a.ka=!1)):(a=new Kb(c,a.src,g,!!e,f),a.ka=d,b.push(a));return a};
Pb=function(a,b){var c=b.type;c in a.f&&xa(a.f[c],b)&&(Lb(b),a.f[c].length||(delete a.f[c],a.g--))};Nb=function(a,b,c,d){for(var e=0;e<a.length;++e){var f=a[e];if(!f.ea&&f.listener==b&&f.capture==!!c&&f.da==d)return e}return-1};_.K=function(a,b,c,d,e){if(_.r(b))for(var f=0;f<b.length;f++)_.K(a,b[f],c,d,e);else c=_.Qb(c),a&&a[_.Rb]?_.Ob(a.V,String(b),c,!1,d,e):_.Sb(a,b,c,!1,d,e)};
_.Sb=function(a,b,c,d,e,f){if(!b)throw Error("Invalid event type");var g=!!e,h=Tb(a);h||(a[Ub]=h=new Mb(a));c=_.Ob(h,b,c,d,e,f);if(!c.f){d=Vb();c.f=d;d.src=a;d.listener=c;if(a.addEventListener)a.addEventListener(b.toString(),d,g);else if(a.attachEvent)a.attachEvent(Wb(b.toString()),d);else throw Error("addEventListener and attachEvent are unavailable.");Xb++}};Vb=function(){var a=Yb,b=Zb?function(c){return a.call(b.src,b.listener,c)}:function(c){c=a.call(b.src,b.listener,c);if(!c)return c};return b};
_.L=function(a,b,c,d,e){if(_.r(b))for(var f=0;f<b.length;f++)_.L(a,b[f],c,d,e);else c=_.Qb(c),a&&a[_.Rb]?(a=a.V,b=String(b).toString(),b in a.f&&(f=a.f[b],c=Nb(f,c,d,e),-1<c&&(Lb(f[c]),Array.prototype.splice.call(f,c,1),f.length||(delete a.f[b],a.g--)))):a&&(a=Tb(a))&&(c=a.qa(b,c,!!d,e))&&$b(c)};
$b=function(a){if(!_.u(a)&&a&&!a.ea){var b=a.src;if(b&&b[_.Rb])Pb(b.V,a);else{var c=a.type,d=a.f;b.removeEventListener?b.removeEventListener(c,d,a.capture):b.detachEvent&&b.detachEvent(Wb(c),d);Xb--;(c=Tb(b))?(Pb(c,a),c.g||(c.src=null,b[Ub]=null)):Lb(a)}}};Wb=function(a){return a in ac?ac[a]:ac[a]="on"+a};cc=function(a,b,c,d){var e=!0;if(a=Tb(a))if(b=a.f[b.toString()])for(b=b.concat(),a=0;a<b.length;a++){var f=b[a];f&&f.capture==c&&!f.ea&&(f=bc(f,d),e=e&&!1!==f)}return e};
bc=function(a,b){var c=a.listener,d=a.da||a.src;a.ka&&$b(a);return c.call(d,b)};
Yb=function(a,b){if(a.ea)return!0;if(!Zb){var c=b||aa("window.event"),d=new Ib(c,this),e=!0;if(!(0>c.keyCode||void 0!=c.returnValue)){a:{var f=!1;if(!c.keyCode)try{c.keyCode=-1;break a}catch(m){f=!0}if(f||void 0==c.returnValue)c.returnValue=!0}c=[];for(f=d.currentTarget;f;f=f.parentNode)c.push(f);for(var f=a.type,g=c.length-1;0<=g;g--){d.currentTarget=c[g];var h=cc(c[g],f,!0,d),e=e&&h}for(g=0;g<c.length;g++)d.currentTarget=c[g],h=cc(c[g],f,!1,d),e=e&&h}return e}return bc(a,new Ib(b,this))};
Tb=function(a){a=a[Ub];return a instanceof Mb?a:null};_.Qb=function(a){if(_.v(a))return a;a[dc]||(a[dc]=function(b){return a.handleEvent(b)});return a[dc]};
_.gc=function(a){for(var b=[],c=0,d=0;d<a.length;d++){for(var e=a.charCodeAt(d);255<e;)b[c++]=e&255,e>>=8;b[c++]=e}if(!ec)for(ec={},fc={},a=0;65>a;a++)ec[a]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(a),fc[a]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789._-".charAt(a);a=fc;c=[];for(d=0;d<b.length;d+=3){var f=b[d],g=(e=d+1<b.length)?b[d+1]:0,h=d+2<b.length,m=h?b[d+2]:0,q=f>>2,f=(f&3)<<4|g>>4,g=(g&15)<<2|m>>6,m=m&63;h||(m=64,e||(g=64));c.push(a[q],a[f],
a[g],a[m])}return c.join("")};_.hc=function(a){var b,c=[];for(b=0;b<a;b+=1)c.push("abcdefghijklmnopqrstuvwxyz".charAt(Math.floor(26*Math.random())));return c.join("")};jc=function(a){var b=a.sendReportFn;if(_.v(b)){var c=_.ic;_.ic=function(a,e){b(a,e,c)}}};_.kc=function(a,b){return new _.I(function(c,d){var e=(new _.J).f();e.open("GET",a,!0);e.onreadystatechange=function(){4==this.readyState&&(200==this.status&&b.apply(this,[c,d]),d(this))};e.send()})};
_.ic=function(a,b,c){var d=(new _.J).f();b?(d.open("POST",a,!0),d.send(b)):(d.open("GET",a,!0),d.send());c&&d.addEventListener("loadend",c)};pc=function(a){var b=["i2",_.hc(30)].join("-")+".init.cedexis-radar.net",c=["?imagesok=1","&n=",lc?1:0,"&p=",mc?1:0,"&r=",_.M?1:0,"&s=",nc?0:1,"&t=",2!=a.l&&oc?1:0];a.j&&c.push("&"+a.j);c=c.join("");return"https://"+[b,"i2",a.g,a.f,"j1/20/123",Math.floor(_.B()/1E3).toString(10),a.l,a.v,"providers.json"].join("/")+c};
qc=function(a){a=pc(a);return _.kc(a,function(a,c){try{var b=JSON.parse(this.responseText);a(b)}catch(e){c(e)}})};rc=function(){function a(a){return"first-paint"==a.name}var b=window.performance;return _.v(b&&b.getEntriesByType)&&(b=_.wa(window.performance.getEntriesByType("paint"),a))?b.startTime:null};_.sc=function(){var a=0,b=window.performance&&window.performance.timing,c=b&&b.msFirstPaint,d=rc();_.u(d)?a=b.navigationStart+Math.round(d):_.u(c)&&(a=Math.round(c));return a};
uc=function(a,b){var c=(window.performance||{}).timing;if(c&&tc(a))if(!c.loadEventEnd)b=b||0,20>b&&window.setTimeout(_.A(uc,a,b+1),200);else if(!(c.connectEnd<c.connectStart||c.domainLookupEnd<c.domainLookupStart||c.domComplete<c.domLoading||c.fetchStart<c.navigationStart||c.loadEventEnd<c.loadEventStart||c.loadEventEnd<c.navigationStart||c.responseEnd<c.responseStart||c.responseStart<c.requestStart)){var d=[a.l,"n1",0];_.D(vc,function(a){d.push(c[a]||0)});d.push(a.o);d.push("0");d.push(_.sc());_.ic("https://"+
d.join("/"))}};wc=function(a,b,c,d){this.g=a;this.w=b;this.v=c;this.o=d;this.l=this.j=void 0;this.f=[]};xc=function(a,b){return[a.g.I,a.o,b.ra,b.la,b.na,b.value]};N=function(a,b){var c=a.f[b];c||(c=a.f[b]={ra:b,la:0,value:0,na:4});return c};
zc=function(a){var b=a.f[1],c=a.f[0],d=!(b&&_.l(b.Z))&&!(c&&_.l(c.Z));if(d&&!c&&!_.l(a.j)||d&&!b&&c&&(a.f[1]=Ea(c),a.f[1].ra=1,!_.l(a.j)))return!0;_.D(a.f,(0,_.y)(function(a){if(0!=a.na||a.Z)d=!1;if(!a.wb){if(_.l(a.Z)){var b=["e1",a.Z],c=yc[a.Z||1];c||(c=yc[1]);try{var e=JSON.stringify(c(this,a))}catch(m){e="Encoding error: "+m.toString()}_.ic("https://"+this.g.l+"/"+b.join("/"),e)}else{b=["f1",this.g.o,this.w,this.v,this.o,""+a.ra+","+a.la,a.na,a.value,(0,window.encodeURIComponent)(this.j||"0"),
"0"];c=a.nb;_.l(c)&&(e=c.startTime,b.push(O(e)),b.push(O(c.redirectStart-e)),b.push(O(c.redirectEnd-e)),b.push(O(c.fetchStart-e)),b.push(O(c.domainLookupStart-e)),b.push(O(c.domainLookupEnd-e)),b.push(O(c.connectStart-e)),b.push(O(c.secureConnectionStart-e)),b.push(O(c.connectEnd-e)),b.push(O(c.requestStart-e)),b.push(O(c.responseStart-e)),b.push(O(c.responseEnd-e)),b.push(O(c.duration)),c=c.transferSize,c=_.u(c)?c:0,b.push(c));if(this.l){for(;24>b.length;)b.push("");b.push(this.l)}_.ic("https://"+
this.g.l+"/"+b.join("/"))}a.wb=!0}},a));return d};O=function(a){return(0,window.isNaN)(a)?0:0>=a?0:Math.floor(a+2E-15)};P=function(a){ha("radar.stoppedAt",null);ha("cedexis.radar.stopped_at",null);var b=window.document.createElement("script");b.type="text/javascript";b.async=!0;b.src=a.R;b.onerror=a.C;void 0!==b.onreadystatechange?b.onreadystatechange=_.A(P.g,a):b.onload=_.A(P.f,a);window.document.body.appendChild(b);Ac(a,function(){window.document.body.removeChild(b)})};
Dc=function(a){if(_.M)for(var b=_.Bc(),c=b.length;c--;)if(b[c].name===a)return b[c];Cc=!0;return null};_.Bc=function(){var a=window.performance.getEntriesByType("resource");return _.r(a)?Ec.concat(a):Ec};Fc=function(){var a=window.performance.getEntries().length;if(1500<=a)a=window.performance.getEntriesByType("resource"),_.r(a)&&(Ec=a),window.performance.clearResourceTimings();else{for(var b=0;1500>b&&b<=a;)b+=50;150>=b&&(b=150);window.performance.setResourceTimingBufferSize(b)}Cc=!1};
Gc=function(a,b,c,d,e){var f=Dc(this.src);if(_.w(f)){if(!f.duration&&(_.u(e)||(e=0),10>e)){window.setTimeout((0,_.y)(Gc,this,a,b,c,d,e+1),10);return}f[b]&&f[c]&&f[c]>=f[b]?d.N(a(f[c]-f[b])):d.N(a(f.duration))}else 1===d.G&&d.N(a(_.B()-d.$()));d.C()};Ic=function(a){if(14===a.G){var b=Hc(a)||1E5;Gc.apply(this,[function(a){return 8*b/a},"requestStart","responseEnd",a])}else Gc.apply(this,[function(a){return a},"requestStart","responseStart",a])};
Kc=function(a){14===a.G?Jc.call(this,a):Gc.call(this,function(a){return a},"domainLookupStart","responseEnd",a)};Lc=function(a){Gc.call(this,function(a){return a},"domainLookupStart","domainLookupEnd",a)};Jc=function(a){var b=Hc(a)||1E5;Gc.call(this,function(a){return 8*b/a},"requestStart","responseEnd",a)};
Nc=function(a,b,c){if(mc){var d=Mc();d.src=a.R;var e=function(a){a=a.ha;a.source==d.contentWindow&&b(a.data)};_.K(window,"message",e);c&&_.K(d,"load",function(b){null!=b.currentTarget&&null!=b.currentTarget.contentWindow?c(b):window.document.body.contains(d)?a.abort(2):a.abort(3)});window.document.body.appendChild(d);Ac(a,function(){window.document.body.removeChild(d);_.L(window,"message",e)})}else-1===a.G&&a.K("0"),a.C()};
Pc=function(a){Nc(a,function(b){var c=b[0],d=b[1],e=b[2],f=b[3],g=b[5],h=b[6]||"";b=b[4]||f;if(-1===a.G)a.K(b);else{b&&a.K(b);if(14===a.G){if(e&&e>c){a.N(8*(Hc(a)||1E5)/(e-c));a.C();return}}else if(a.f===Oc){if(e&&e>=g){a.H.f.l=h;a.N(e-g);a.C();return}}else if(d&&d>=c){a.N(d-c);a.C();return}a.W(4)}a.C()},function(b){var c=a.o,d=a.B,e=a.A;_.t(c)&&!_.t(e)&&(e=c);!e||c||-1!=e.indexOf(":")||(c=e);var f={version:1};_.t(c)&&(f.headerNames=c);_.t(e)&&(f.regexp=e);_.t(d)&&(f.sendHeader=d);b.currentTarget.contentWindow.postMessage([["timing",
"requestStart"],["timing","responseStart"],["timing","responseEnd"],["uniqueNodeId",e],["uniqueNodeIdVersioned",f],["timing","domainLookupStart"],["token","HMAC"]],"*")})};
Rc=function(a){var b=a.T,c=0,b=b.slice(b.lastIndexOf("/")+1),d=[/cdx10b/,/rdr12/,/radar\.js/,/r\d+(-\d+kb)?\.js/i,/r\d+\w+(-\d+kb)?\.js/i],e;"d17.html"===b&&(c=c||4);for(e=0;e<d.length;e+=1)d[e].test(b)&&(c=c||1);/\.js(\?)?/i.test(b)&&(c=c||5);/\.(ico|png|bmp|gif|jpg|jpeg)(\?)?/i.test(b)&&(c=c||2);/\.(htm(l)?)(\?)?/i.test(b)&&(c=c||3);return c?Qc(c,a):a.C};
Sc=function(a){ha("cdx.s.b",_.A(Sc.listener,a));var b=window.document.createElement("script");b.type="text/javascript";b.async=!0;b.src=a.R;window.document.body.appendChild(b);Ac(a,function(){window.document.body.removeChild(b)})};Tc=function(){Fb.call(this);this.V=new Mb(this);this.X=this};
Uc=function(a,b,c,d){b=a.V.f[String(b)];if(!b)return!0;b=b.concat();for(var e=!0,f=0;f<b.length;++f){var g=b[f];if(g&&!g.ea&&g.capture==c){var h=g.listener,m=g.da||g.src;g.ka&&Pb(a.V,g);e=!1!==h.call(m,d)&&e}}return e&&0!=d.Fa};Vc=function(a,b,c){if(_.v(a))c&&(a=(0,_.y)(a,c));else if(a&&"function"==typeof a.handleEvent)a=(0,_.y)(a.handleEvent,a);else throw Error("Invalid listener argument");return 2147483647<Number(b)?-1:n.setTimeout(a,b||0)};_.Yc=function(a){var b=[];Wc(new Xc,a,b);return b.join("")};
Xc=function(){};
Wc=function(a,b,c){if(null==b)c.push("null");else{if("object"==typeof b){if(_.r(b)){var d=b;b=d.length;c.push("[");for(var e="",f=0;f<b;f++)c.push(e),Wc(a,d[f],c),e=",";c.push("]");return}if(b instanceof String||b instanceof Number||b instanceof Boolean)b=b.valueOf();else{c.push("{");e="";for(d in b)Object.prototype.hasOwnProperty.call(b,d)&&(f=b[d],"function"!=typeof f&&(c.push(e),Zc(d,c),c.push(":"),Wc(a,f,c),e=","));c.push("}");return}}switch(typeof b){case "string":Zc(b,c);break;case "number":c.push((0,window.isFinite)(b)&&
!(0,window.isNaN)(b)?String(b):"null");break;case "boolean":c.push(String(b));break;case "function":c.push("null");break;default:throw Error("Unknown type: "+typeof b);}}};Zc=function(a,b){b.push('"',a.replace($c,function(a){var b=ad[a];b||(b="\\u"+(a.charCodeAt(0)|65536).toString(16).substr(1),ad[a]=b);return b}),'"')};bd=function(a){if(a.ba&&"function"==typeof a.ba)return a.ba();if(_.t(a))return a.split("");if(_.da(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return Ca(a)};
cd=function(a,b){if(a.forEach&&"function"==typeof a.forEach)a.forEach(b,void 0);else if(_.da(a)||_.t(a))_.D(a,b,void 0);else{var c;if(a.aa&&"function"==typeof a.aa)c=a.aa();else if(a.ba&&"function"==typeof a.ba)c=void 0;else if(_.da(a)||_.t(a)){c=[];for(var d=a.length,e=0;e<d;e++)c.push(e)}else c=Da(a);for(var d=bd(a),e=d.length,f=0;f<e;f++)b.call(void 0,d[f],c&&c[f],a)}};
dd=function(a,b){this.g={};this.f=[];this.j=0;var c=arguments.length;if(1<c){if(c%2)throw Error("Uneven number of arguments");for(var d=0;d<c;d+=2)this.set(arguments[d],arguments[d+1])}else if(a){a instanceof dd?(c=a.aa(),d=a.ba()):(c=Da(a),d=Ca(a));for(var e=0;e<c.length;e++)this.set(c[e],d[e])}};
ed=function(a){if(a.j!=a.f.length){for(var b=0,c=0;b<a.f.length;){var d=a.f[b];Object.prototype.hasOwnProperty.call(a.g,d)&&(a.f[c++]=d);b++}a.f.length=c}if(a.j!=a.f.length){for(var e={},c=b=0;b<a.f.length;)d=a.f[b],Object.prototype.hasOwnProperty.call(e,d)||(a.f[c++]=d,e[d]=1),b++;a.f.length=c}};gd=function(a){Tc.call(this);this.headers=new dd;this.w=a||null;this.j=!1;this.v=this.f=null;this.F="";this.l=this.D=this.o=this.B=!1;this.I=0;this.g=null;this.O=fd;this.J=this.S=!1};
id=function(a){return hd&&Bb(9)&&_.u(a.timeout)&&_.l(a.ontimeout)};jd=function(a){return"content-type"==a.toLowerCase()};md=function(a){a.j=!1;a.f&&(a.l=!0,a.f.abort(),a.l=!1);kd(a);ld(a)};kd=function(a){a.B||(a.B=!0,a.dispatchEvent("complete"),a.dispatchEvent("error"))};
rd=function(a){if(a.j&&"undefined"!=typeof nd&&(!a.v[1]||4!=od(a)||2!=pd(a)))if(a.o&&4==od(a))Vc(a.Ca,0,a);else if(a.dispatchEvent("readystatechange"),4==od(a)){a.j=!1;try{qd(a)?(a.dispatchEvent("complete"),a.dispatchEvent("success")):kd(a)}finally{ld(a)}}};ld=function(a){if(a.f){sd(a);var b=a.f,c=a.v[0]?_.p:null;a.f=null;a.v=null;a.dispatchEvent("ready");try{b.onreadystatechange=c}catch(d){}}};sd=function(a){a.f&&a.J&&(a.f.ontimeout=null);_.u(a.g)&&(n.clearTimeout(a.g),a.g=null)};
qd=function(a){var b=pd(a),c;a:switch(b){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:c=!0;break a;default:c=!1}if(!c){if(b=!b)a=String(a.F).match(td)[1]||null,!a&&n.self&&n.self.location&&(a=n.self.location.protocol,a=a.substr(0,a.length-1)),b=!ud.test(a?a.toLowerCase():"");c=b}return c};od=function(a){return a.f?a.f.readyState:0};pd=function(a){try{return 2<od(a)?a.f.status:-1}catch(b){return-1}};
vd=function(a,b){var c=b.o;if(_.t(c)){var d=c.split(","),e=d.length,f,g;if(1==e)g=d[0].trim(),(f=a.getResponseHeader(g))?b.K(f):b.K(g+" header not found"),b.C();else if(1<e){for(var h=[];e--;)g=d[e].trim(),(f=a.getResponseHeader(g))&&h.push(g.toLowerCase()+":"+f);h.length?b.K(h.join("@")):b.K("headers not found ["+c+"]");b.C()}}else(h=(new RegExp(b.A,"mi")).exec(a.getAllResponseHeaders()))?b.K(h[1]):b.K("1"),b.C()};
wd=function(a,b,c){function d(c){var d,e,h=14==b.G;h?(d=c.requestStart,e=c.responseEnd):(d=c.requestStart,e=c.responseStart);if(b.H.w){var m;var q=b.H.o;if(_.t(q)){var q=q.split(","),z=q.length,x;if(1==z)x=q[0].trim(),(m=a.getResponseHeader(x))||(m=x+" header not found");else if(1<z){for(var ca=[];z--;)x=q[z].trim(),(m=a.getResponseHeader(x))&&ca.push(x.toLowerCase()+":"+m);m=ca.length?ca.join("@"):"headers not found"}}else m=void 0;m&&b.K(m)}d&&e&&e>=d?b.N(h?8*(Hc(b)||1E5)/(e-d):e-d):b.N(c.duration);
b.C()}qd(a)?(c=Dc(c),null===c?(1===b.G&&b.N(_.B()-b.$()),b.C()):c.duration?d(c):window.setTimeout(_.A(d,c),100)):(b.W(4),b.C())};Qc=function(a,b){var c=Q[a];c==Rc&&(c=c(b));return c?c:function(a){a.C()}};
R=function(a,b,c){this.H=a;this.f=c.t;this.T=c.u;this.o=c.h;this.A=c.r;this.B=c.rqh;this.j=c.timeout||a.g.timeout||4E3;this.v=[];this.G=b;if(a=4===this.f)a=this.T,b=a.length-13,a=0<=b&&a.indexOf("idynamic.html",b)==b;a&&(this.f=Oc);9===this.f?(b=this.T.indexOf("//"),c=this.T.substring(b+2),a="//",0<b&&(a=this.T.substring(0,b)+"//"),b=c.split("/"),b[0]=_.hc(63)+"."+b[0],a+=b.join("/")):this.H.g.a?(a=[this.H.l.g.g,this.H.l.g.f,this.H.g.p.z,this.H.g.p.c,this.H.j()],a=7==this.f||8==this.f||15==this.f?
ya(a,_.hc(8)):ya(this.G,a,this.H.l.I),a=ya(a,this.H.l.o).join("-"),a=this.T+(-1!=this.T.indexOf("?")?"&":"?")+"rnd="+a):a=this.T;this.R=a;this.H.v||1!=this.G&&0!=this.G||(this.H.v=this.R);this.C=(0,_.y)(this.C,this)};Hc=function(a){if(a.D)return a.D;if((a=/(\d+)kb\./i.exec(a.T))&&a[1])return Math.floor(1E3*(0,window.parseInt)(a[1],10)+2E-15)};Mc=function(){var a=window.document.createElement("iframe");a.style.display="none";a.title="Cedexis Test Object";a.setAttribute("aria-hidden","true");return a};
Ac=function(a,b){a.v.push(b)};xd=function(a,b){this.l=a;this.g=b;var c=aa("c.a",b),d=aa("c.b",b),e=aa("c.c",b);null===c&&(c=this.g.p.z);null===d&&(d=this.g.p.c);null===e&&(e=this.j());this.f=new wc(a,c,d,e);null===aa("p.p.d",b)&&this.f.K("0")};
yd=function(a){var b=[],c=a.g.p.p,d=c.a&&c.a.a,e;if(d)e=d.t,b.push(new R(a,1,d));else if(d=c.b&&c.b.a)e=d.t,b.push(new R(a,1,d));if(d=c.d)14==e?(a.o=d.h,a.o&&(a.w=!0)):b.push(new R(a,-1,d));c.a?(c.a.b&&b.push(new R(a,0,c.a.b)),c.a.c&&b.push(new R(a,14,c.a.c))):c.b&&(c.b.b&&b.push(new R(a,0,c.b.b)),c.b.c&&b.push(new R(a,14,c.b.c)));c.c&&(e=c.c.u,(e=/http:/i.test(e)?"http":/https:/i.test(e)?"https":/\/\//.test(e)?window.location.protocol.replace(":",""):null)&&("http:"!==window.location.protocol&&"https"!==
e||b.push(new R(a,2,c.c))));1<b.length&&-1==b[0].G&&(a=b[0],b[0]=b[1],b[1]=a);return b};Cd=function(a,b,c,d){_.l(d)||(d=-1);_.l(c)||(c=a);this.f=a;this.P=d;this.U=null;"radar"in zd||(zd.radar=new Ad);var e=zd.radar,f=this;(new _.I(function(a){f.M=a})).then(function(){return b(c).then((0,_.y)(e.v,e,f),function(){e.v(f)})});Bd(e,this)};Ad=function(){this.j={};this.l={};this.f=null;this.o=[];this.g=null};
Dd=function(a,b){var c=a;if(!a||b.P<c.P)b.U=c,a=b;else for(;;){if(!c.U||b.P<c.U.P){b.U=c.U;c.U=b;break}c=c.U}return a};Bd=function(a,b){var c=b.f.oa;a.j[c]=Dd(a.j[c],b);a.next()};Ed=function(a){var b=a.f;a.f=a.f.U;a.o.push(b);b.M()};
Kd=function(a,b){this.g=a;this.o=b.sig;this.I=b.txnId;var c=b.providers,d=b.radar;this.l=d.report_domain||"rpt.cedexis.com";this.J=0==d.navigation_timing_enabled==0;this.f=d.startup_delay;a.w?this.f=0:_.u(this.f)||(this.f=2E3);this.j=d.repeat_delay;_.u(this.j)||(this.j=0);this.A=1;_.u(d[Fd])&&(this.A=d[Fd]/100);this.D=1;_.u(d[Gd])&&(this.D=d[Gd]/100);this.F=1;_.u(d[Hd])&&(this.F=d[Hd]/100);var e=this;Id(e)&&_.D(c,function(a){a=new xd(e,a);Jd(e,a.sa,a)})};Jd=function(a,b,c){new Cd(a.g,b,c,a.f)};
Ld=function(a){_.l(a.B)||(a.B=Math.random()<a.A);return a.B};Id=function(a){_.l(a.w)||(a.w=!1,Ld(a)&&(a.w=Math.random()<a.F));return a.w};tc=function(a){_.l(a.v)||(a.v=!1,Ld(a)&&a.J&&(a.v=Math.random()<a.D));return a.v};Nd=function(a){this.g=a;this.f=Md;this.j=0;this.v=!0};Pd=function(a,b){a.o||(a.o=new _.I((0,_.y)(function(a){this.l=(0,_.y)(function(b){b=new _.S(window,window.document,this.g,b);b.A();a(b)},this)},a)));a.f==Md?a.start():2==a.f&&Od(a,{});a.o=a.o.then(function(a){b(a);return a})};
Od=function(a,b){if(a.l){var c=_.A(a.l,b);a.l=!1;Qd(c)}};Sd=function(a,b,c,d){this.g=a;this.f=b;this.l=c||0;this.v=d||0;this.oa=a+";"+b;this.j=void 0;if(a=Rd[this.oa])return this.o=new Nd(a),a;this.o=new Nd(this);Rd[this.oa]=this};
Td=function(a,b,c,d,e){if(Td.f()){c=c||0;d=d||0;e=e||{};jc(e);_.u(a)&&_.u(b)&&(a||b)&&(c?e.ignoreStartDelay=!0:e.allowRepeat=!0,(new Sd(a,b,c,d)).start(e));var f=/\/(\d)\/(\d+)\/radar\.js/,g=/\/([\d]{1,2})-(\d{1,5})-radar10\.min\.js/,h=window.radarMobileSite?3:0;_.D(window.document.getElementsByTagName("script"),function(a){var b=f.exec(a.src)||g.exec(a.src);b&&b[2]&&(a=(0,window.parseInt)(b[1],10),b=(0,window.parseInt)(b[2],10),(a||b)&&(new Sd(a,b,h,0)).start({}))})}};nd=nd||{};n=this;
Db="closure_uid_"+(1E9*Math.random()>>>0);Eb=0;var Ud=_,mb=Ud.MI,nb=Ud.MU,pb=Ud.MP,Vd=Ud.monkey||Ud.custom;C(ia,Error);ia.prototype.name="CustomError";oa.prototype.get=function(){var a;0<this.g?(this.g--,a=this.f,this.f=a.next,a.next=null):a=this.j();return a};var Ma=new oa(function(){return new sa},function(a){a.reset()},100);sa.prototype.set=function(a,b){this.f=a;this.g=b;this.next=null};sa.prototype.reset=function(){this.next=this.g=this.f=null};var E;a:{var Wd=n.navigator;if(Wd){var Xd=Wd.userAgent;if(Xd){E=Xd;break a}}E=""};var Fa="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");var Pa;var Ja,La=!1,qa=new function(){this.g=this.f=null};var G=0,Qa=2,H=3;Ra.prototype.reset=function(){this.l=this.g=this.o=this.f=null;this.j=!1};var Sa=new oa(function(){return new Ra},function(a){a.reset()},100);_.I.prototype.then=function(a,b,c){return _.db(this,_.v(a)?a:null,_.v(b)?b:null,c)};_.I.prototype.then=_.I.prototype.then;_.I.prototype.$goog_Thenable=!0;_.k=_.I.prototype;_.k.cancel=function(a){this.f==G&&Na(function(){var b=new cb(a);Ya(this,b)},this)};_.k.Fb=function(a){this.f=G;this.M(Qa,a)};_.k.Gb=function(a){this.f=G;this.M(H,a)};
_.k.M=function(a,b){this.f==G&&(this===b&&(a=H,b=new TypeError("Promise cannot resolve to itself")),this.f=1,Va(b,this.Fb,this.Gb,this)||(this.w=b,this.f=a,this.j=null,ab(this),a!=H||b instanceof cb||hb(this,b)))};_.k.Qa=function(){for(var a;a=Za(this);)$a(this,a,this.f,this.w);this.v=!1};var gb=Ha;C(cb,ia);cb.prototype.name="cancel";var ib={radar:_.Ua()};ha("cedexis.impact",function(){});var Qd;_.S=lb;Qd=kb("impact");var Yd;_.T=lb;Yd=kb("video");qb.prototype.g=null;var Zd;C(sb,qb);sb.prototype.f=function(){var a=tb(this);return a?new window.ActiveXObject(a):new window.XMLHttpRequest};sb.prototype.l=function(){var a={};tb(this)&&(a[0]=!0,a[1]=!0);return a};Zd=new sb;C(_.J,qb);_.J.prototype.f=function(){var a=new window.XMLHttpRequest;if("withCredentials"in a)return a;if("undefined"!=typeof window.XDomainRequest)return new ub;throw Error("Unsupported browser");};_.J.prototype.l=function(){return{}};_.k=ub.prototype;_.k.open=function(a,b,c){if(null!=c&&!c)throw Error("Only async requests are supported.");this.f.open(a,b)};_.k.send=function(a){if(a)if("string"==typeof a)this.f.send(a);else throw Error("Only string data is supported");else this.f.send()};
_.k.abort=function(){this.f.abort()};_.k.setRequestHeader=function(){};_.k.getResponseHeader=function(a){return"content-type"==a.toLowerCase()?this.f.contentType:""};_.k.Va=function(){this.status=200;this.responseText=this.f.responseText;vb(this,4)};_.k.Ea=function(){this.status=500;this.responseText="";vb(this,4)};_.k.bb=function(){this.Ea()};_.k.Za=function(){this.status=200;vb(this,1)};_.k.getAllResponseHeaders=function(){return"content-type: "+this.f.contentType};wb[" "]=_.p;var $d=F("Opera"),hd=F("Trident")||F("MSIE"),ae=F("Edge"),Hb=F("Gecko")&&!(ma(E,"WebKit")&&!F("Edge"))&&!(F("Trident")||F("MSIE"))&&!F("Edge"),be=ma(E,"WebKit")&&!F("Edge"),ce=be&&F("Mobile"),Ab;
a:{var de="",ee=function(){var a=E;if(Hb)return/rv\:([^\);]+)(\)|;)/.exec(a);if(ae)return/Edge\/([\d\.]+)/.exec(a);if(hd)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(be)return/WebKit\/(\S+)/.exec(a);if($d)return/(?:Version)[ \/]?(\S+)/.exec(a)}();ee&&(de=ee?ee[1]:"");if(hd){var fe=zb();if(null!=fe&&fe>(0,window.parseFloat)(de)){Ab=String(fe);break a}}Ab=de}var xb={},ge;var he=n.document;ge=he&&hd?zb()||("CSS1Compat"==he.compatMode?(0,window.parseInt)(Ab,10):5):void 0;var ie;(ie=!hd)||(ie=9<=Number(ge));var Zb=ie,je=hd&&!Bb("9");var Cb=0;Fb.prototype.A=!1;Gb.prototype.g=function(){this.Fa=!1};C(Ib,Gb);Ib.prototype.g=function(){Ib.Db.g.call(this);var a=this.ha;if(a.preventDefault)a.preventDefault();else if(a.returnValue=!1,je)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(b){}};var Jb;_.Rb="closure_listenable_"+(1E6*Math.random()|0);Jb=0;Mb.prototype.qa=function(a,b,c,d){a=this.f[a.toString()];var e=-1;a&&(e=Nb(a,b,c,d));return-1<e?a[e]:null};Mb.prototype.hasListener=function(a,b){var c=_.l(a),d=c?a.toString():"",e=_.l(b);return Aa(this.f,function(a){for(var f=0;f<a.length;++f)if(!(c&&a[f].type!=d||e&&a[f].capture!=b))return!0;return!1})};var Ub="closure_lm_"+(1E6*Math.random()|0),ac={},Xb=0,dc="__closure_events_fn_"+(1E9*Math.random()>>>0);var mc,lc,nc,oc,ke;mc=function(){if(!_.v(window.postMessage))return!1;try{return _.K(window,"message",_.p),_.L(window,"message",_.p),!0}catch(a){return!1}}();lc=5==ge?!1:window.performance&&_.w(window.performance.timing)?!0:!1;_.M=hd&&!Bb(11)?!1:window.performance&&_.v(window.performance.getEntriesByType)&&_.v(window.performance.getEntries)&&_.v(window.performance.clearResourceTimings)&&_.v(window.performance.setResourceTimingBufferSize)?!0:!1;
nc=window.location&&"http:"==window.location.protocol?!0:!1;ke=F("Android")&&F("wv");oc=!ce&&!ke;var ec=null,fc=null;var le;try{(new _.J).f(),le=!0}catch(a){le=!1};var vc="navigationStart unloadEventStart unloadEventEnd redirectStart redirectEnd fetchStart domainLookupStart domainLookupEnd connectStart connectEnd secureConnectionStart requestStart responseStart responseEnd domLoading domInteractive domContentLoadedEventStart domContentLoadedEventEnd domComplete loadEventStart loadEventEnd".split(" ");var yc={};yc[1]=xc;yc[4]=function(a,b){var c=xc(a,b);c.push(b.pa.Jb);c.push(b.pa.Oa);return c};wc.prototype.N=function(a,b,c){a=N(this,a);a.Ib||(a.Ib=!0,a.value=(0,window.parseInt)(c,10));a.la=b};wc.prototype.W=function(a,b,c){a=N(this,a);a.vb||(a.vb=!0,a.na=c);a.la=b};wc.prototype.K=function(a){this.j=a};P.g=function(a){"loaded"!==this.readyState&&"complete"!==this.readyState||P.f(a)};P.f=function(a){var b=(window.radar.stoppedAt||window.cedexis.radar.stopped_at||new Date).getTime()-a.$();14===a.G&&(b=8*(Hc(a)||1E5)/b);a.N(b);a.C()};var Cc=!1,Ec=[];_.M&&(Fc(),_.v(window.performance.addEventListener)?_.K(window.performance,"resourcetimingbufferfull",Fc):window.performance.onresourcetimingbufferfull||(window.performance.onresourcetimingbufferfull=Fc));Sc.listener=function(a,b){_.w(b)&&b.id==a.H.j()&&(a.K(b.node),a.C())};C(Tc,Fb);Tc.prototype[_.Rb]=!0;_.k=Tc.prototype;_.k.addEventListener=function(a,b,c,d){_.K(this,a,b,c,d)};_.k.removeEventListener=function(a,b,c,d){_.L(this,a,b,c,d)};_.k.dispatchEvent=function(a){var b=this.X,c=a.type||a;if(_.t(a))a=new Gb(a,b);else if(a instanceof Gb)a.f=a.f||b;else{var d=a;a=new Gb(c,b);Ga(a,d)}d=!0;b=a.currentTarget=b;d=Uc(b,c,!0,a)&&d;return d=Uc(b,c,!1,a)&&d};_.k.qa=function(a,b,c,d){return this.V.qa(String(a),b,c,d)};
_.k.hasListener=function(a,b){return this.V.hasListener(_.l(a)?String(a):void 0,b)};var ad={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\u000b"},$c=/\uffff/.test("\uffff")?/[\\\"\x00-\x1f\x7f-\uffff]/g:/[\\\"\x00-\x1f\x7f-\xff]/g;_.k=dd.prototype;_.k.ba=function(){ed(this);for(var a=[],b=0;b<this.f.length;b++)a.push(this.g[this.f[b]]);return a};_.k.aa=function(){ed(this);return this.f.concat()};_.k.get=function(a,b){return Object.prototype.hasOwnProperty.call(this.g,a)?this.g[a]:b};_.k.set=function(a,b){Object.prototype.hasOwnProperty.call(this.g,a)||(this.j++,this.f.push(a));this.g[a]=b};_.k.forEach=function(a,b){for(var c=this.aa(),d=0;d<c.length;d++){var e=c[d],f=this.get(e);a.call(b,f,e,this)}};var td=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/;C(gd,Tc);var fd="",ud=/^https?$/i,me=["POST","PUT"];_.k=gd.prototype;
_.k.send=function(a,b,c,d){if(this.f)throw Error("[goog.net.XhrIo] Object is active with another request="+this.F+"; newUri="+a);b=b?b.toUpperCase():"GET";this.F=a;this.B=!1;this.j=!0;this.f=this.w?this.w.f():Zd.f();this.v=this.w?rb(this.w):rb(Zd);this.f.onreadystatechange=(0,_.y)(this.Ca,this);try{this.D=!0,this.f.open(b,String(a),!0),this.D=!1}catch(f){md(this);return}a=c||"";var e=new dd(this.headers);d&&cd(d,function(a,b){e.set(b,a)});d=_.wa(e.aa(),jd);c=n.FormData&&a instanceof n.FormData;!(0<=
ta(me,b))||d||c||e.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");e.forEach(function(a,b){this.f.setRequestHeader(b,a)},this);this.O&&(this.f.responseType=this.O);"withCredentials"in this.f&&this.f.withCredentials!==this.S&&(this.f.withCredentials=this.S);try{sd(this),0<this.I&&((this.J=id(this.f))?(this.f.timeout=this.I,this.f.ontimeout=(0,_.y)(this.Da,this)):this.g=Vc(this.Da,this.I,this)),this.o=!0,this.f.send(a),this.o=!1}catch(f){md(this)}};
_.k.Da=function(){"undefined"!=typeof nd&&this.f&&(this.dispatchEvent("timeout"),this.abort(8))};_.k.abort=function(){this.f&&this.j&&(this.j=!1,this.l=!0,this.f.abort(),this.l=!1,this.dispatchEvent("complete"),this.dispatchEvent("abort"),ld(this))};_.k.Ca=function(){this.A||(this.D||this.o||this.l?rd(this):this.ib())};_.k.ib=function(){rd(this)};_.k.getResponseHeader=function(a){if(this.f&&4==od(this))return a=this.f.getResponseHeader(a),null===a?void 0:a};
_.k.getAllResponseHeaders=function(){return this.f&&4==od(this)?this.f.getAllResponseHeaders():""};var Q={},Oc=17;Q[1]=P;Q[2]=function(a){if(1===a.G||!Cc&&_.M){var b=new window.Image;b.onload=_.A(Ic,a);b.onerror=function(){a.W(4);a.C()};b.src=a.R}else a.C()};Q[3]=function(a){var b=Mc();b.src=a.R;b.onload=function(){a.N(_.B()-a.$());a.C()};b.onerror=a.C;window.document.body.appendChild(b);Ac(a,function(){window.document.body.removeChild(b)})};Q[4]=function(a){Nc(a,function(b){b=JSON.parse(b);switch(b.s){case "l":break;case "s":a.N(b.m.responseEnd-b.m.domainLookupStart);a.C();break;default:a.C()}})};
Q[5]=P;Q[6]=Rc;Q[7]=function(a){Nc(a,function(b){b=JSON.parse(b);switch(b.s){case "l":break;case "s":var c=b.node_id;!1===b.encoded&&(c="base64:"+_.gc(c));a.K(c);a.C();break;default:a.K("2"),a.C()}})};Q[8]=Sc;Q[9]=function(a){if(!Cc&&_.M){var b=new window.Image;b.src=a.R;b.onload=_.A(Lc,a);b.onerror=a.C}else a.C()};Q[11]=function(a){if(1===a.G||!Cc&&_.M){var b=Mc();b.onload=_.A(Ic,a);b.src=a.R;window.document.body.appendChild(b);Ac(a,function(){window.document.body.removeChild(b)})}else a.C()};
Q[13]=Pc;Q[14]=function(a){if(1===a.G||!Cc&&_.M){var b=a.R,c=new gd;_.K(c,"complete",_.A(wd,c,a,b));c.send(b)}else a.C()};Q[15]=function(a){var b=new gd;_.K(b,"complete",_.A(vd,b,a));var c={},d,e=a.B;d=null;_.t(e)&&(e=e.split(":"),2==e.length&&(d=e));_.r(d)&&(c[d[0]]=d[1]);b.send(a.H.v,"",null,c)};Q[16]=function(a){if(1===a.G||!Cc&&_.M){var b=Mc();b.onload=_.A(Kc,a);b.src=a.R;window.document.body.appendChild(b);Ac(a,function(){window.document.body.removeChild(b)})}else a.C()};Q[Oc]=Pc;_.k=R.prototype;_.k.N=function(a,b){this.H.f.N(this.G,this.f,a);_.l(b)||(b=0);this.H.f.W(this.G,this.f,b)};_.k.W=function(a){this.H.f.W(this.G,this.f,a);0!==a&&this.H.f.N(this.G,this.f,0)};_.k.K=function(a){this.H.f.K(a)};_.k.$=function(){return this.w};_.k.sa=function(){this.w=_.B();var a=this;this.g=window.setTimeout(function(){-1==a.G?a.K("1"):a.W(1);a.C()},this.j);var b=Qc(this.f,this);return new _.I(function(c,d){a.F=c;a.l=d;b.apply(a,[a])})};
_.k.C=function(){if(_.l(this.g)){window.clearTimeout(this.g);delete this.g;if(0<=ta([1,0,2,14],this.G)){var a=this.H.g.send_rt_timestamps;_.ea(a)&&a&&(a=Dc(this.R))&&(N(this.H.f,this.G).nb=a);var b=_.B()-this.$();if(b>2*this.j){var a=this.H.f,c=this.G,b={Jb:b,Oa:2*this.j};N(a,c).Z=4;N(a,c).pa=b}}for(zc(this.H.f)?this.F():this.l();this.v.length;)this.v.shift()()}};_.k.abort=function(a,b){this.W(4);var c=this.H.f,d=this.G;N(c,d).Z=a;N(c,d).pa=b;this.C()};xd.prototype.j=function(){return this.g.p.i};xd.prototype.sa=function(a){a=yd(a||this);var b=_.Ua();_.D(a,function(a){b=b.then((0,_.y)(a.sa,a))});return b};var ne=_.B();if("complete"!=window.document.readyState){var oe=function(){ne=_.B();za(zd,function(a){a.next()});_.L(window,"load",oe)},ne=ne+6E4;_.K(window,"load",oe)}var zd={};
Ad.prototype.next=function(){(0,window.clearTimeout)(this.g);this.g=null;this.f||(this.l={});var a=_.B()-ne;for(_.D(Da(this.j),function(b){for(var c=this.j[b];c&&c.P<=a;){var e=0;if(0>c.P)e=-1;else{var f=this.f?this.f.P:0,g=this.l[b];g&&(f>g?e=f:e=g);this.l[b]=e+1}f=c.U;c.P=e;this.f=Dd(this.f,c);c=f}c?this.j[b]=c:delete this.j[b]},this);this.f&&0>this.f.P;)Ed(this);if(!this.o.length)if(this.f)Ed(this);else if(_.Ba(this.j)){var b=null;za(this.j,function(a){if(!b||b>a.P)b=a.P});b&&(this.g=window.setTimeout((0,_.y)(this.next,
this),ne+b-_.B()))}};Ad.prototype.v=function(a){xa(this.o,a);this.next()};var Fd="master_sample_rate",Gd="navigation_timing_sample_rate",Hd="remote_probing_sample_rate";var qe;_.pe=lb;qe=kb("sdwan");var Md=0;_.k=Nd.prototype;_.k.start=function(a){a&&(_.l(a.allowRepeat)&&(this.v=a.allowRepeat),_.v(a.finishedProbingCallback)&&(this.w=a.finishedProbingCallback));if(this.f==Md)this.f=1;else if(2==this.f)this.f=3;else return;qc(this.g).then((0,_.y)(this.cb,this),(0,_.y)(this.Aa,this))};
_.k.cb=function(a){_.v(Vd)&&(a=Vd(this.g.g,this.g.f,a));var b=(0,_.y)(this.Aa,this),c=new Kd(this.g,a);this.j=c.j;Jd(c,function(){return new _.I(function(a){b();a()})});if(1==this.f){var d=a.impactKpis4;!d&&this.l&&(d={});d?(Pd(this,function(){uc(c)}),Od(this,d)):uc(c);(d=a.videoQoS)&&Yd((0,_.y)(this.mb,this,d));(a=a.sdwan)&&qe((0,_.y)(this.jb,this,a));this.f=3}};
_.k.Aa=function(){this.f=9;(0,window.setTimeout)((0,_.y)(function(){this.f=2},this),6E4);this.v&&this.j&&(6E4>this.j&&(this.j=6E4),(0,window.setTimeout)((0,_.y)(function(){this.start()},this),this.j));if(this.w)try{this.w()}catch(a){}};_.k.mb=function(a){(new _.T(window,window.document,this.g.g,this.g.f,a)).Ma()};_.k.jb=function(a){(new _.pe(a)).g()};var Rd={};Sd.prototype.start=function(a){this.j=a.initParams;this.w=!!a.ignoreStartDelay;this.o.start(a)};ha("cedexis.start",Td);Td.f=function(){var a=E;return function(){return ua(function(b){return ma(a,b)?!0:!1})}()||ma(a,"msie")&&!ma(a,"msie 11")||la(a)||!_.w(window.JSON)||!_.v(JSON.parse)?!1:le};
})(cedexis)}cedexis.start();

extends CharacterBody2D

@export var SPEED : int = 150
@export var JUMP_FORCE : int = 255
@export var GRAVITY : int = 900

func _physics_process(delta):
	
	
	var direction = Input.get_axis("Left","Right")
	
	if direction:
		
		velocity.x = SPEED * direction
		
		if is_on_floor():
			
			$AnimatedSprite2D.play("Run")
		
	else:
		
		velocity.x = 0
		
		if is_on_floor():
			
			$AnimatedSprite2D.play("Idle")
	
	# Rotate
	
	if direction == 1:
		$AnimatedSprite2D.flip_h = false
	elif direction == -1:
		$AnimatedSprite2D.flip_h = true
		
	
	# Gravity
	
	if not is_on_floor():
		
		velocity.y += GRAVITY * delta
		
		if velocity.y > 0:
			
			$AnimatedSprite2D.play("Fall")
	
	# Jump
	
	if is_on_floor():
		
		if Input.is_action_just_pressed("Jump"):
			
			velocity.y -= JUMP_FORCE
			$AnimatedSprite2D.play("Jump")
	
	
	move_and_slide()

extends CharacterBody2D


var SPEED = 300.0
var vel : float

func _physics_process(delta):
	
	move_local_x(vel * SPEED * delta)
	



func _on_area_2d_area_entered(area):
	
	var areas = $Area2D.get_overlapping_areas()
	
	print(area.get_groups())
	
	for i in areas:
		
		if area.is_in_group("Enemy"):
			
			area.hit()
extends CharacterBody2D

@onready var knife = preload("res://Scenes/knife.tscn")

@export var SPEED : int = 150
@export var JUMP_FORCE : int = 255
@export var GRAVITY : int = 900

var is_attacking = false
var can_trow = true

func _physics_process(delta):
	
	
	var direction = Input.get_axis("Left","Right")
	
	if direction:
		
		velocity.x = SPEED * direction
		
		if is_on_floor() and is_attacking == false:
			
			$Flip/AnimatedSprite2D.play("Run")
		
	else:
		
		velocity.x = 0
		
		if is_on_floor() and is_attacking == false:
			
			$Flip/AnimatedSprite2D.play("Idle")
	
	# Rotate
	
	if direction == 1:
		$Flip.scale.x = 1
	elif direction == -1:
		$Flip.scale.x = -1
	
	# Gravity
	
	if not is_on_floor():
		
		velocity.y += GRAVITY * delta
		
		if velocity.y > 0:
			
			$Flip/AnimatedSprite2D.play("Fall")
	
	# Jump
	
	if is_on_floor():
		
		if Input.is_action_just_pressed("Jump"):
			
			velocity.y -= JUMP_FORCE
			
			$Flip/AnimatedSprite2D.play("Jump")
	
	
	
	# Trow
	
	if Input.is_action_just_pressed("Trow"):
		
		if can_trow:
			
			can_trow = false
			
			$Flip/AnimatedSprite2D.play("Trow") 
			is_attacking = true
			
			
			var k = knife.instantiate()
			k.vel = $Flip.scale.x
			k.global_position = $Flip/TrowPos.global_position
			get_parent().add_child(k)
		
	
	if is_attacking:
		
		velocity = Vector2.ZERO
		await $Flip/AnimatedSprite2D.animation_finished
		is_attacking = false
		can_trow = true
	
	
	move_and_slide()




void merge(vector<int>&arr,int l,int mid,int h)
{
   vector<int>temp;
   int i=l;
   int j=mid+1;
while(i<=mid and j<=h)
{
    if(arr[i]<=arr[j])
    {
        temp.push_back(arr[i]);
        i++;
    }
    else 
    {
        temp.push_back(arr[j]);
        j++;
    }
}
while(i<=mid)
{
    temp.push_back(arr[i]);
    i++;
}
while(j<=h)
{
    temp.push_back(arr[j]);
    j++;
}
for(int i=l ; i<=h ; i++)
{
    arr[i]=temp[i-l];
}
}
void me(vector<int>&arr,int l,int h)
{
   
    if(l>h)
    return;
    int mid=(l+h)/2;
    me(arr,l,mid);
    me(arr,mid+1,h);
    merge(arr,l,mid,h);
}
void mergeSort(vector < int > & arr, int n)
{
    me(arr,0,n-1);
}
#include <bits/stdc++.h> 
string encode(string &message)
{
    string ans="";
    int count=1;
    int n=message.size();
    for(int i=0 ; i<n ; i++)
    {
        if(message[i]==message[i+1])
        {
           count++;  
        }
         ans+=message[i];
    ans+=to_string(count);
    count=1;
    }
   
    return ans;
}
Object.defineProperty(String.prototype, "SayHi", {
    value: function SayHi() {
        return "Hi " + this + "!";
    },
    writable: true,
    configurable: true
});

console.log("Charlie".SayHi());
#include <bits/stdc++.h> 
int minimumParentheses(string pattern)
{
    int cnt=0;
    int req=0;
    for(int i=0 ; i<=pattern.length()-1 ; i++) 
    {
         if(pattern[i]=='(')
         {
             cnt++;
         }
         else if(pattern[i]==')' and cnt>0)
         {
             cnt--;
         }
         else
         {
             req++;
         }
    }  
    return cnt+req;
}
#include <bits/stdc++.h>
bool search(int arr[],int n,int num)
{
    for(int i=0 ; i<=n ; i++)
    {
        if(arr[i]==num)
        return true;
    }
    return false;
} 
int firstMissing(int arr[], int n)
{
   for(int i=1 ; i<=n ; i++)
   {
       if(search(arr,n,i)==false)
       return i;
   }
   return n+1;
}

time complexity-O(N2)
conda install pytorch torchvision torchaudio pytorch-cuda=11.8 -c pytorch -c nvidia
 <!-- BUTTON : BEGIN --><table border="0" cellpadding="0" cellspacing="0" role="presentation" width="100%">  <tr>   <td align="center" class="mobile-center" style="padding-top: 0px;padding-bottom:0px;padding-left:0px;padding-right:0px; " valign="top">   <!--[if (gte mso 9)|(IE)]><table role="presentation" align="center" border="0" cellpadding="0" cellspacing="0" width="140" style="width:140px;"><tr><td align="center" valign="top" width="100%"><![endif]--> <table border="0" cellpadding="0" cellspacing="0" class="mobile-center" role="presentation" style="text-align: left; display:inline-block;">      <tr>       <td class="button-yellow-td mobBt" style="background: #ffc506; border: 1px solid #ffc506; font-family:Arial Black, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 15px; text-align: center; display: block; font-weight: bold;padding-top: 12px;padding-bottom: 12px;padding-left: 12px;padding-right: 12px;mso-line-height-rule: exactly; width: 140px" width="140">        <a alias="read_blog_cta5" class="button-yellow-a" href="https://www.cat.com/en_US/blog/is-your-organization-a-good-fit-for-eaas.html" style="text-decoration: none;" target="_blank" title="READ BLOG"><span class="button-yellow-link" style="color:#000000;text-transform:uppercase;">READ <br class="mobile-hidden">BLOG</span> </a></td></tr></table><!--[if (gte mso 9)|(IE)]></td></tr></table><![endif]--></td></tr></table>        <!-- BUTTON : END -->
https://astro.build/config
export default defineConfig({
  //site: 'https://astrofy-template.netlify.app',
  integrations: [mdx(), sitemap(), tailwind(), image(
    {
      serviceEntryPoint: '@astrojs/image/sharp',
      cacheDir: "./.cache/image",
      logLevel: 'debug',
    }
  )]
});
<object data="{{ $url }}" width="100%" height="100%">
      <embed src="{{ $url }}" width="100%" height="100%"></embed>
      Error: Embedded data could not be displayed.
</object>
/*chyba: text v <div> p艡i rotaci je rozmazan媒, tohle d谩t do Hlavn铆ho prvku textu*/
-webkit-transform: rotate(-2deg);  /* Chrome, Safari 3.1+ */
 -moz-transform: rotate(-2deg);  /* Firefox 3.5-15 */
  -ms-transform: rotate(-2deg);  /* IE 9 */
   -o-transform: rotate(-2deg);  /* Opera 10.50-12.00 */
      transform: rotate(-2deg);
 
const totalPrice = items.reduce((accumulator ,item) => {
  return accumulator += item.price;
}, 0)
/* eslint-disable no-param-reassign */
/* eslint-disable no-underscore-dangle */
/* eslint-disable max-len */
/* eslint-disable @typescript-eslint/no-unused-vars */
/* eslint-disable import/no-extraneous-dependencies */
import React, { FormEventHandler, useEffect, useState } from 'react';
import { useForm, Controller, SubmitHandler } from 'react-hook-form';
import { Autocomplete, Box, TextField } from '@mui/material';
import IconSave from '@assets/icon-save.svg';
import * as yup from 'yup';
import { yupResolver } from '@hookform/resolvers/yup';
import { Col, Row } from 'react-bootstrap';
import {
  fetchLitigantApplicationDetails,
  lawFirmRegistrationDetailSelector,
  setisValidRegistrationForm,
  submitLitigantApplicationDetails,
} from '@redux/slices/law-firm-registration';
import { useDispatch, useSelector } from 'react-redux';
import { trackPromise } from 'react-promise-tracker';
import api from '@api/index';
import {
  resetErrorState,
  setErrorInfo,
} from '@redux/slices/will-personal-information';
import { dropDownSelector, fetchCountryList } from '@redux/slices/dropDowns';
import './style.scss';
import useIsdCodesList from '@utils/hooks/useIsdCodesList';

interface LitigantProbonoApplicant {
  litigantGuid: string;
  applicantName: string;
  applicantAddress: string;
  applicantTelephone: string;
  applicantFax: string;
  applicantMobile: string;
  applicantEmail: string;
  isdCodeApplicantMobile: string;
}

interface Props {
  completed: { [k: number]: boolean };
  handleComplete: () => void;
  completedSteps: () => number;
  totalSteps: () => number;
  activeStep: number;
  handleBack: () => void;
  isLastStep: () => boolean;
}

const commonSchema = yup.object().shape({
  applicantName: yup.string().required('Applicant Name is required'),
  applicantEmail: yup
    .string()
    .email('Invalid email')
    .required('Applicant Email Address is required'),
  applicantAddress: yup.string().required('Address is required'),
  applicantTelephone: yup
    .string()
    .required('Telephone number is required')
    .matches(/^[0-9]{6,14}$/, 'Invalid telephone number'),
  applicantMobile: yup.string().required('Mobile number is required'),
  applicantFax: yup.string().required('Fax number is required'),
  isdCodeApplicantMobile: yup.string().required('Isd Code is required'),
});

const draftSchema = yup.object().shape({
  applicantName: yup.string().required('Applicant Name is required'),
  applicantEmail: yup
    .string()
    .email('Invalid email')
    .required('Applicant Email Address is required'),
});

function index({
  completed,
  handleComplete,
  completedSteps,
  totalSteps,
  activeStep,
  handleBack,
  isLastStep,
}: Props) {
  const [applicantMobile, setApplicantMobile] = useState<string>('');
  const [isdCodeLabel, setIsdCodeLabel] = useState<any>('');
  const [isdCode1, setIsdCode1] = useState<string>('');
  const [flagForLitigantApplicant, setFlagForLitigantApplicant] = useState<boolean>(false);
  const [isSubmitted, setIsSubmitted] = useState<boolean>(false);
  const [isDraft, setIsDraft] = useState<boolean>(false);
  const [submitBtn, setSubmitBtn] = useState(false);
  const [emailValidation, setEmailValidation] = useState(false);
  const [isNext, setIsNext] = useState<boolean | null>(null);
  const dispatch = useDispatch();

  const schema = isNext ? commonSchema : draftSchema;
  const {
    control,
    handleSubmit,
    reset,
    setValue,
    register,
    clearErrors,
    setError,
    trigger,
    formState: { errors },
  } = useForm<LitigantProbonoApplicant>({
    resolver: yupResolver(schema as yup.AnyObjectSchema),
    defaultValues: {
      // cityID: null, countryID: null, homeJurisdiction: null, phoneNo: '',
    },
  });

  console.log('litiganterrors', errors);

  console.log('isDraft', isDraft);

  const { litigantGuid, litigantDetails, isValidRegistrationForm } = useSelector(lawFirmRegistrationDetailSelector);

  const checkLitigantEmail = async (email: string) => {
    console.log('litigantGuid', litigantGuid);
    await dispatch(resetErrorState());
    try {
      // Make the API call here (e.g., using fetch or Axios)
      const response: any = await trackPromise(
        api.checkIfLitigantEmailRegistered(email, litigantGuid),
      );
      if (response?.data?.applicantEmalExists) {
        setFlagForLitigantApplicant(true);
        dispatch(setErrorInfo('Litigant Email already exists!'));
        dispatch<any>(setisValidRegistrationForm(false));
        // If the firm name already exists, set the error message for the Firm Name field
        setError('applicantEmail', {
          type: 'manual',
          message: 'Litigant Email already exists',
        });
      } else {
        dispatch<any>(setisValidRegistrationForm(true));
        setFlagForLitigantApplicant(false);
        // If the firm name is unique, clear the error message for the Firm Name field
        clearErrors('applicantEmail');
      }
    } catch (error) {
      console.error('Error making API call:', error);
    }
  };

  // Utility function to filter out all IDs from the list
  const filterList = (list: any[], condition: (item: any) => boolean) => list.filter((item: any) => {
    if (condition(item)) {
      return item;
    }
    return '';
  });

  // Get all dropdown lists from redux
  const { countryList } = useSelector(dropDownSelector);

  // Custom hooks for getting various list information
  const isdCodesList = useIsdCodesList(countryList);

  const onSubmit: SubmitHandler<LitigantProbonoApplicant> = async (
    data: LitigantProbonoApplicant,
  ) => {
    // setSubmitBtn(true);
    // await checkLitigantEmail(data.applicantEmail);
    await trigger(['applicantEmail']);
    if (Object.keys(errors).length === 0) {
      const formData: LitigantProbonoApplicant = {
        litigantGuid,
        applicantName: data.applicantName,
        applicantAddress: data.applicantAddress,
        applicantTelephone: data.applicantTelephone,
        applicantFax: data.applicantFax,
        applicantEmail: data.applicantEmail,
        applicantMobile,
        isdCodeApplicantMobile: isdCode1,
      };
      if (isValidRegistrationForm) {
        await dispatch<any>(
          submitLitigantApplicationDetails(formData, isDraft),
        );
        if (!isDraft) handleComplete();
        if (!isDraft) reset();
        window.scrollTo(0, 0);
      }
    }
  };

  const submitFromSave = async (data: any) => {
    console.log('Litigant Data', data);

    const litigantDraft:LitigantProbonoApplicant = {
      litigantGuid,
      applicantName: data.applicantName,
      applicantAddress: data.applicantAddress,
      applicantTelephone: data.applicantTelephone,
      applicantFax: data.applicantFax,
      applicantEmail: data.applicantEmail,
      applicantMobile,
      isdCodeApplicantMobile: isdCode1,
    };

    await dispatch<any>(
      submitLitigantApplicationDetails(litigantDraft, isDraft),
    );
  };

  const emailValidationRegex = /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;

  React.useEffect(() => {
    window.scrollTo(0, 0);
    dispatch<any>(fetchCountryList());
  }, []);

  useEffect(() => {
    if (litigantGuid !== '') {
      dispatch<any>(fetchLitigantApplicationDetails(litigantGuid));
    }
  }, [litigantGuid]);

  const handleIsdCode1Change = (e: any, val: any) => {
    const isdCode1Value = val?.countryID;
    const isdCode1Label = val?.label;
    setIsdCode1(isdCode1Value);
    setIsdCodeLabel(isdCode1Label);
  };

  useEffect(() => {
    if (litigantDetails) {
      const isCode = filterList(
        isdCodesList,
        (item: any) => item.countryID === litigantDetails?.isdCodeApplicantMobile,
      );
      console.log('isdCode', isCode);
      setValue('applicantName', litigantDetails.applicantName);
      setValue('applicantAddress', litigantDetails.applicantAddress);
      setValue('applicantTelephone', litigantDetails.applicantTelephone);
      // setValue('iSDCodeApplicantTelephone', litigantDetails.isdCodeApplicantMobile);
      setValue('applicantFax', litigantDetails.applicantFax);
      setValue('applicantMobile', litigantDetails.applicantMobile);
      setValue('applicantEmail', litigantDetails.applicantEmail);
      setValue(
        'isdCodeApplicantMobile',
        litigantDetails.isdCodeApplicantMobile,
      );
      setApplicantMobile(litigantDetails.applicantMobile);
      setIsdCode1(isCode[0]?.countryID);
      setIsdCodeLabel(isCode[0]?.label);
    }
  }, [litigantDetails]);

  const handlePhoneNumber1Change = (e: any) => {
    const { value } = e.target;
    // eslint-disable-next-line no-param-reassign
    e.target.value = value.replace(/[^0-9]/g, '');
    setApplicantMobile(e.target.value);
  };
  const capitalizeWords = (text: string) => text
    .split(' ')
    .map((word) => word.charAt(0).toUpperCase() + word.slice(1).toLowerCase())
    .join(' ');

  const handleTelephoneChange = (e: any) => {
    const { value } = e.target;
    // eslint-disable-next-line no-param-reassign
    e.target.value = value.replace(/[^0-9]/g, '');
    setValue('applicantTelephone', e.target.value);
  };

  const handleFaxChange = (e: any) => {
    const { value } = e.target;
    // eslint-disable-next-line no-param-reassign
    e.target.value = value.replace(/[^0-9]/g, '');
    setValue('applicantFax', e.target.value);
  };
  const handleCursor: FormEventHandler<HTMLInputElement> = (e: {
    currentTarget: any;
  }) => {
    const input = e.currentTarget;
    const cursorPosition = input.selectionStart || 0;
    input.value = capitalizeWords(
      input.value
        .trimStart()
        .replace(/\s+/g, ' ')
        .replace(/[^a-zA-Z\W ]/g, ''),
    );
    input.setSelectionRange(cursorPosition, cursorPosition);
  };
  const handleInput: FormEventHandler<HTMLInputElement> = (e: {
    currentTarget: any;
  }) => {
    setSubmitBtn(false);
    if (emailValidationRegex.test(e.currentTarget.value)) {
      setEmailValidation(false);
    } else {
      setEmailValidation(true);
    }
    const input = e.currentTarget;
    const cursorPosition = input.selectionStart || 0;
    input.value = input.value.trim();
    input.setSelectionRange(cursorPosition, cursorPosition);
  };
  const handleInputForAddrress = (e: { currentTarget: any }) => {
    const input = e.currentTarget;
    const cursorPosition = input.selectionStart || 0;
    input.value = capitalizeWords(input.value.trimStart());
    input.setSelectionRange(cursorPosition, cursorPosition);
  };
  return (
    <form
      className="form"
      onSubmit={handleSubmit(isNext ? onSubmit : submitFromSave)}
    >
      <h1>Application Details</h1>
      <span className="mb-3">
        Please indicate whether you will be the claimant or respondent
      </span>
      <div className="row" style={{ paddingTop: '40px' }}>
        <div className="col-md-4">
          <div className="mb-3">
            <label htmlFor="name" className="form-label firmName-label w-100">
              Name*
            </label>
            <input
              type="text"
              className={`${
                errors?.applicantName
                  ? 'validate-field'
                  : 'form-control'
              } `}
              onInput={handleCursor}
              style={{ textTransform: 'capitalize' }}
              id="applicantName"
              placeholder="Enter Name"
              // onChange={(e) => setState(e.target.value)}
              {...register('applicantName', {
                required: true,
              })}
            />
          </div>
        </div>
        <div className="col-md-4">
          <div className="mb-3">
            <label htmlFor="name" className="form-label firmName-label w-100">
              Telephone*
            </label>
            <input
              type="text"
              max={15}
              className={`${
                errors?.applicantTelephone && isSubmitted
                  ? 'validate-field'
                  : 'form-control'
              } `}
              id="applicantTelephone"
              placeholder="Enter Telephone Number"
              {...register('applicantTelephone', {
                required: true,
              })}
              onChange={handleTelephoneChange}
            />
          </div>
        </div>
      </div>
      <div className="row">
        <div className="col-md-4">
          <div className="mb-3">
            <label
              htmlFor="applicantEmail"
              className="form-label applicantEmail-label w-100"
            >
              Email*
            </label>
            <Controller
              name="applicantEmail"
              control={control}
              render={({ field }) => (
                <input
                  type="text"
                  className={`${
                    errors.applicantEmail
                    || flagForLitigantApplicant
                    || (emailValidation && submitBtn)
                      ? 'validate-field'
                      : 'form-control'
                  }`}
                  {...field}
                  {...register('applicantEmail', {
                    required: true,
                    pattern: {
                      value: emailValidationRegex,
                      message: 'Please enter a valid email',
                    },
                  })}
                  id="applicantEmail"
                  aria-describedby="emailHelp"
                  placeholder="Enter Email Address"
                  onInput={handleInput}
                  onBlur={() => checkLitigantEmail(field.value)}
                />
              )}
              rules={{
                required: 'Firm Email is required',
                pattern: {
                  value: emailValidationRegex,
                  message: 'Please enter a valid email',
                },
              }}
            />
            {/* {errors.firmEmail && (
            <p className="error-message">{errors.firmEmail.message}</p>
            )} */}
          </div>
        </div>
        <div className="col-md-4">
          <div className="mb-3">
            <label htmlFor="phoneNumber" className="form-label w-100">
              Mobile*
            </label>
            <div className="d-flex">
              <Autocomplete
                id="country-select-demo"
                // sx={{ width: 1000 }}
                options={isdCodesList}
                autoHighlight
                // value={isdCodeLabel}
                value={
                  isdCodesList.find(
                    (option: any) => option.label === isdCodeLabel,
                  ) || null
                }
                disableClearable
                getOptionLabel={(option: any) => `${option.label} ${option.countryName}`}
                // getOptionLabel={(option: any) => option?.countryName}
                renderOption={(props, option) => (
                  <Box
                    component="li"
                    sx={{ '& > img': { mr: 2, flexShrink: 0 } }}
                    {...props}
                  >
                    <img
                      loading="lazy"
                      width="20"
                      src={`https://flagcdn.com/w20/${option?.countryCode?.toLowerCase()}.png`}
                      srcSet={`https://flagcdn.com/w40/${option?.countryCode?.toLowerCase()}.png 2x`}
                      alt=""
                    />
                    {option?.countryName}
                    {' '}
                    (
                    {option?.label}
                    )
                  </Box>
                )}
                renderInput={(params) => (
                  <TextField
                    {...params}
                    placeholder="+97"
                    // value={isdCodeLabel || ''}
                    inputProps={{
                      ...params.inputProps,
                      autoComplete: 'new-password', // disable autocomplete and autofill
                    }}
                    {...register('isdCodeApplicantMobile', {
                      required: true,
                    })}
                    error={
                      errors?.isdCodeApplicantMobile
                      && (isdCodeLabel === '' || isdCodeLabel === undefined)
                    }
                    className="isdcode-field"
                  />
                )}
                className="isdcode-box"
                onChange={(e, newVal: any) => handleIsdCode1Change(e, newVal)}
              />
              <input
                type="text"
                placeholder="Enter Phone Number"
                maxLength={15}
                // className={`${
                //   isSubmitted
                //   && (applicantMobile === '' || applicantMobile === undefined)
                //     ? 'phonenumber-input-error'
                //     : 'form-control-phonenumber'
                // } `}
                className={`${
                  errors?.applicantMobile && isSubmitted && (applicantMobile === '' || applicantMobile === undefined)
                    ? 'phonenumber-input-error'
                    : 'form-control-phonenumber'
                } `}
                id="applicantMobile"
                aria-describedby="applicantMobileHelp"
                {...register('applicantMobile', {
                  required: true,
                })}
                onChange={(e: any) => handlePhoneNumber1Change(e)}
              />
            </div>
          </div>
        </div>
      </div>
      <div className="row">
        <div className="col-md-4">
          <div className="mb-3">
            <label
              htmlFor="applicantFax"
              className="form-label applicantFax-label w-100"
            >
              Fax*
            </label>
            <input
              type="text"
              className={`${
                errors?.applicantFax && isSubmitted
                  ? 'validate-field'
                  : 'form-control'
              } `}
              id="applicantFax"
              placeholder="Enter Fax Number"
              {...register('applicantFax', {
                required: true,
              })}
              onChange={handleFaxChange}
            />
          </div>
        </div>
      </div>
      <div className="row">
        <div className="col-md-8">
          <div className="mb-3">
            <label
              htmlFor="applicantAddress"
              className="form-label firmName-label w-100"
            >
              Address*
            </label>
            <textarea
              className={`${
                errors?.applicantAddress
                  ? 'validate-field'
                  : 'form-control'
              } `}
              id="applicantAddress"
              placeholder="Enter Address*"
              onInput={handleInputForAddrress}
              {...register('applicantAddress', {
                required: true,
              })}
            />
          </div>
        </div>
      </div>

      <Row className="mb-3 pt-3">
        <Col md={8}>
          <button
            type="submit"
            className="next-button"
            onClick={() => {
              setIsSubmitted(true);
              setIsDraft(false);
              setSubmitBtn(true);
              setIsNext(true);
            }}
          >
            {isLastStep() ? 'Submit' : 'Next'}
          </button>
          <button
            type="submit"
            className="save-button"
            onClick={() => {
              setIsSubmitted(true);
              setIsDraft(true);
              setSubmitBtn(true);
              setIsNext(false);
            }}
          >
            <img src={IconSave} alt="" />
            Save
          </button>
        </Col>
        <Col className="mr-auto" md={4}>
          {activeStep !== 0 && (
            <button type="button" className="back-button" onClick={handleBack}>
              Back
            </button>
          )}
        </Col>
      </Row>
    </form>
  );
}

export default index;
sudo chmod 666 /var/run/docker.sock

ls -l /lib/systemd/system/docker.socket

sudo chgrp docker /lib/systemd/system/docker.socket

sudo chmod g+w /lib/systemd/system/docker.socket
pipeline {
    agent { label 'dev' }
    stages {
        stage('Code') {
            steps {
                git url: 'https://github.com/ishwarshinde041/node-todo-cicd.git', branch: 'master'
            }
        }
        stage('Build') {
            steps {
                sh 'docker build . -t node-app-new'
            }
        }
        stage('Deploy') {
            steps {
                 sh "docker-compose down && docker-compose up -d"
            }
        }
    }
}
fun getSig(context: Context, key: String) {
            try {
                val info = context.packageManager.getPackageInfo(
                    BuildConfig.APPLICATION_ID,
                    PackageManager.GET_SIGNATURES
                )
                for (signature in info.signatures) {
                    val md = MessageDigest.getInstance(key)
                    md.update(signature.toByteArray())
                    val digest = md.digest()
                    val toRet = StringBuilder()
                    for (i in digest.indices) {
                        if (i != 0) toRet.append(":")
                        val b = digest[i].toInt() and 0xff
                        val hex = Integer.toHexString(b)
                        if (hex.length == 1) toRet.append("0")
                        toRet.append(hex)
                    }
                    val s = toRet.toString()
                    Log.e("sig", s)
                    
                }
            } catch (e1: PackageManager.NameNotFoundException) {
                Log.e("name not found", e1.toString())
            } catch (e: NoSuchAlgorithmException) {
                Log.e("no such an algorithm", e.toString())
            } catch (e: Exception) {
                Log.e("exception", e.toString())
            }
}
const handleNext = async (
    step: number,
    stepName?: any,
    completed?: boolean,
  ) => {
    console.log('STEPNUMBER', step);
    console.log('COMPLETED', completed);
    window.scrollTo(0, 0);
    setCurrentSelectedStep(step);
    // Revert Active Service Funtionalities back to initial state on first handleNext Step
    dispatch(setIsChangeService(false));
    // dispatch(setIsCompleteWillInfo(false));
    dispatch(setModifyAppointment(false));
    // dispatch(setIsUpgradeWill(false));
    dispatch(setIsModifyWill(false));

    // Set upgradeWill flag to false if next clicked from Personal Details
    if (stepName === 'personal') {
      dispatch(setIsUpgradeWill(false));
    }

    // Show selection option in Real Estate Distribution for Property Will up on next from beneficiary Details
    if (step === 5) {
      dispatch(clearSelectedDistribution());
    }

    // If quick booking is enabled
    if (isQuickBooking && stepName !== 'willTypeSelection') {
      setActiveStep(8);
      if (stepName === 'bookAppointment') {
        setActiveStep((prev) => prev + 1);
      }
    } else if (!isQuickBooking && stepName !== 'willTypeSelection') {
      // setActiveStep(3);
    }

    if (stepName === 'personal' && isQuickBooking) {
      setShowSkipToAppointmentModal(true);
    }

    // If upload documents is active and Book appointment is visible
    if (stepName === 'upload' && !isShowBookAppointment) {
      // Incomplete steps API called here
      try {
        const response = await trackPromise(
          api.validateWillSteps(
            profileGuid,
            spouseGuid,
            isSpouseSelected ? spouseGuid : profileGuid,
            serviceId,
          ),
        );
        // Save incomplete steps list in store (redux)
        dispatch(getIncompleteSteps(response?.data?.Output));
        const incompletedSteps = response?.data?.Output;
        const testatorIncompleteSteps = incompletedSteps.filter((step:any) => step.bookedForProfileGuid === profileGuid);
        const spouseIncompleteSteps = incompletedSteps.filter((step:any) => step.bookedForProfileGuid === spouseGuid);
        console.log('testatorIncompleteSteps', testatorIncompleteSteps);
        console.log('spouseIncompleteSteps', spouseIncompleteSteps);

        // Mirror Will && Testator
        if (mirrorWillCheck && !isSpouseSelected) {
          if (testatorIncompleteSteps.length !== 0) {
            handleShowIncompleteStepsModal();
          } else {
            // alert('go to next step');
            dispatch(setHighlightedSteps(9));
            dispatch(setNavigationIndex(9));
            dispatch(getNewActiveStep(13));
          }
        } else if (mirrorWillCheck && isSpouseSelected) { // Mirror Will && Spouse
          if (spouseIncompleteSteps.length !== 0) {
            handleShowIncompleteStepsModal();
          } else {
            dispatch(setHighlightedSteps(9));
            dispatch(setNavigationIndex(9));
            dispatch(getNewActiveStep(13));
          }
        }

        if (singleWillCheck) {
          // Show incomplete steps Modal only if the response is not empty
          if (incompletedSteps.length !== 0) {
            handleShowIncompleteStepsModal();
          } else {
          // Ask for confirmation on this functionality
            setIsShowBookAppointment(true);
            // Set View component, highlighted step in stepper and icon
            dispatch(setHighlightedSteps(9));
            dispatch(setNavigationIndex(9));
            dispatch(getNewActiveStep(21));
            setNewCompletedSteps((prev: any) => [...prev, 3, 4, 5, 6, 7, 8]);
          // dispatch(storeActiveStep(9));
          }
        }
      } catch (error) {
        console.log(error);
      }
    } else if (stepName === 'beneficiary-details' && willTypeID !== 1) {
      // Not needed for Full Will
      // If property and beneficiray is added then only we can navigate or go next to Real Estate Distribution
      if (propertyAdded && beneficiaryAdded) {
        dispatch(setHighlightedSteps(6));
        dispatch(getNewActiveStep(getStepIDFromBeneficiaryStep(willTypeID)));
        dispatch(setNavigationIndex(null));
        // // Highlighted step handled here
        // dispatch(setHighlightedSteps(step + 1));
        // // Set Current step number
        // dispatch(disableNavigation());
        // setCurrentSelectedStep(step);
        // // getWillStep(step);
        // const nextIndex = (currentIndex + 1) % stepNumber.length;
        // setCurrentIndex(nextIndex);

        // // setActiveStep((prevActiveStep) => prevActiveStep + 1);
        // // Need more testing here
        // setCurrentBtnStep(step + 1);
        // setActiveStep((prevActiveStep) => prevActiveStep + 1);
        // dispatch(storeActiveStep(step));
        // dispatch(getNewActiveStep(0));
        // dispatch(setNavigationIndex(null));
      } else {
        await dispatch<any>(resetErrorState());
        await dispatch<any>(setErrorInfo(`Please complete Beneficiary Details and ${getThirdStepName(willTypeID)}`));
      }
    } else {
      // ----------------------------------------------------------------
      // Highlighted step handled here
      // dispatch(setHighlightedSteps(step + 1));
      // // Test case
      // // getWillStep(step);
      // dispatch(disableNavigation());
      // const nextIndex = (currentIndex + 1) % stepNumber.length;
      // setCurrentIndex(nextIndex);
      // // dispatch(storeActiveStep(activeStep + 1));

      // // Get stepNumber list from the stepList array
      // const stepNumberList: any = results?.map((res) => Number(res?.stepNumber));

      // // // Handling ICONS navigation in handleNext()
      // if (step === 3) {
      //   setIconNum1(3);
      //   setIconNum2(6);
      // } else if (step === 6) {
      //   setIconNum1(6);
      //   setIconNum2(9);
      // } else if (step === 9) {
      //   if (willTypeID === 2) {
      //     // Guardianship Will
      //     setIconNum1(7);
      //     setIconNum2(10);
      //   } else {
      //     setIconNum1(8);
      //     setIconNum2(11);
      //   }
      // } else if (step > stepNumberList[stepNumberList.length - 2]) {
      //   // setIconNum1(8);
      //   // setIconNum2(11);
      //   navigate('/wills');
      // }

      // // Handle distribution of shares/Real estate distribution in ICONS
      // if (step === 7) {
      //   setIconNum1(6);
      //   setIconNum2(9);
      // }

      // // Set current step to pass as a prop to the further components to use
      // //  the handleNext method in those respective components
      // // NB:increment the step number by 1 to get correct list of completed steps
      // setCurrentBtnStep(step + 1);

      // let newSkipped = skipped;
      // if (isStepSkipped(activeStep)) {
      //   newSkipped = new Set(newSkipped.values());
      //   newSkipped.delete(activeStep);
      // }
      // // Increment activestep from state
      // setActiveStep((prevActiveStep) => prevActiveStep + 1);
      // // Increment currentStep from store state
      // dispatch(storeActiveStep(step));
      // dispatch(setStepFlow());
      // setSkipped(newSkipped);
      // dispatch(getNewActiveStep(0));
      // dispatch(setNavigationIndex(null));

      // if (navigationEnabled) {
      //   setNewCompletedSteps((prevSteps: any) => [
      //     ...prevSteps,
      //     completed ? navigationIndex : null,
      //   ]);
      //   dispatch(setCompletedStepList(completed ? navigationIndex : null));
      //   dispatch(storeActiveStep(navigationIndex));
      //   setActiveStep(navigationIndex);
      // } else {
      //   setNewCompletedSteps((prevStep: any) => [
      //     ...prevStep,
      //     completed ? step : null,
      //   ]);
      //   dispatch(setCompletedStepList(completed ? step : null));
      //   // setNewCompletedSteps((prevStep: any) => [...prevStep,step]);
      // }

      // ----------------------------------------------------------------

      // Stepper/Next Optimisations
      dispatch(setHighlightedSteps(step + 1));
      dispatch(storeActiveStep(step));
      dispatch(getNewActiveStep(0));
      dispatch(setNavigationIndex(step + 1));
      // dispatch(setNavigationIndex(null));

      setNewCompletedSteps((prev:any) => [...prev,completed ? step : null]);
    }
  };
https://www.geeksforgeeks.org/javascript-array-map-method/
https://www.geeksforgeeks.org/javascript-map/
star

Mon Dec 18 2023 02:33:17 GMT+0000 (Coordinated Universal Time)

@nikahafiz #ms.pbi #dax #dax.weekday #calendar.table

star

Mon Dec 18 2023 02:30:50 GMT+0000 (Coordinated Universal Time)

@nikahafiz #ms.pbi #dax #calendar.table #dax.format #dax.calendar #format-ddd

star

Mon Dec 18 2023 02:25:30 GMT+0000 (Coordinated Universal Time)

@nikahafiz #ms.pbi #dax #calendar.table #dax.weeknum

star

Mon Dec 18 2023 02:22:15 GMT+0000 (Coordinated Universal Time)

@nikahafiz #ms.pbi #dax #calendar.table #dax.weekday

star

Mon Dec 18 2023 02:18:56 GMT+0000 (Coordinated Universal Time)

@nikahafiz #ms.pbi #dax #calendar.table #dax.quarter

star

Mon Dec 18 2023 01:07:48 GMT+0000 (Coordinated Universal Time) https://developer.chrome.com/blog/deprecating-web-sql/?bookmark

@Spsypg #javascript

star

Sun Dec 17 2023 23:26:42 GMT+0000 (Coordinated Universal Time) https://tripleten.com/trainer/web/lesson/5d974c2e-872d-4984-8c5a-33caa7fe0ef0/task/dbe4f951-423f-4c6e-893b-91d635827c2a/

@Marcelluki

star

Sun Dec 17 2023 22:16:16 GMT+0000 (Coordinated Universal Time) yI8As-juzTD-TCfsP-Dv2DC

@odesign

star

Sun Dec 17 2023 20:58:41 GMT+0000 (Coordinated Universal Time) https://chat.openai.com/c/d0b6b014-1122-44c9-9a57-b95422a27c9a

@eziokittu

star

Sun Dec 17 2023 19:43:23 GMT+0000 (Coordinated Universal Time) https://g.co/bard/share/1647430116d0

@Zohaib77 #html #css #javascript

star

Sun Dec 17 2023 17:54:28 GMT+0000 (Coordinated Universal Time)

@Mohamedshariif #java

star

Sun Dec 17 2023 17:40:39 GMT+0000 (Coordinated Universal Time)

@sathviksurineni

star

Sun Dec 17 2023 14:16:20 GMT+0000 (Coordinated Universal Time)

@nistha_jnn #c++

star

Sun Dec 17 2023 12:05:06 GMT+0000 (Coordinated Universal Time) https://chat.openai.com/c/9c689a90-e565-43b2-b16e-e4e64203e782

@eziokittu #react.js #javascript #css

star

Sun Dec 17 2023 11:19:50 GMT+0000 (Coordinated Universal Time) https://www.ecommercethesis.com/how-to-add-css-class-to-a-section-in-shopify/

@mubashir_aziz

star

Sun Dec 17 2023 06:32:48 GMT+0000 (Coordinated Universal Time) https://stackoverflow.com/questions/64430805/how-to-compress-video-to-target-size-by-python

@chook100 #python

star

Sun Dec 17 2023 05:15:27 GMT+0000 (Coordinated Universal Time)

@nistha_jnn #c++

star

Sun Dec 17 2023 04:02:13 GMT+0000 (Coordinated Universal Time) https://www.geeksforgeeks.org/problems/sort-a-linked-list/1?itm_source=geeksforgeeks&itm_medium=article&itm_campaign=bottom_sticky_on_article

@nistha_jnn #c++

star

Sun Dec 17 2023 00:37:08 GMT+0000 (Coordinated Universal Time) https://radar.cedexis.com/1621860284/radar.js

@Xxhhd

star

Sat Dec 16 2023 18:52:48 GMT+0000 (Coordinated Universal Time)

@EDRO

star

Sat Dec 16 2023 18:30:08 GMT+0000 (Coordinated Universal Time)

@EDRO

star

Sat Dec 16 2023 18:24:22 GMT+0000 (Coordinated Universal Time)

@EDRO

star

Sat Dec 16 2023 16:47:21 GMT+0000 (Coordinated Universal Time) https://www.codingninjas.com/studio/problems/merge-sort_920442?utm_source=youtube&utm_medium=affiliate&utm_campaign=parikh_youtube&leftPanelTabValue=PROBLEM

@nistha_jnn #c++

star

Sat Dec 16 2023 11:54:12 GMT+0000 (Coordinated Universal Time) https://www.codingninjas.com/studio/problems/encode-the-message_699836?utm_source=youtube&utm_medium=affiliate&utm_campaign=parikh_youtube&leftPanelTabValue=PROBLEM

@nistha_jnn #c++

star

Sat Dec 16 2023 11:42:17 GMT+0000 (Coordinated Universal Time) https://stackoverflow.com/questions/9354298/how-do-i-write-an-extension-method-in-javascript

@skfaizan2301 #javascript

star

Sat Dec 16 2023 05:19:40 GMT+0000 (Coordinated Universal Time) https://1xlite-350290.top/ar/allgamesentrance/thimbles

@Xxhhd

star

Sat Dec 16 2023 04:49:29 GMT+0000 (Coordinated Universal Time) https://www.codingninjas.com/studio/problems/mnfrj_1075018?utm_source=youtube&utm_medium=affiliate&utm_campaign=parikh_youtube&leftPanelTabValue=PROBLEM

@nistha_jnn #c++

star

Sat Dec 16 2023 04:22:31 GMT+0000 (Coordinated Universal Time)

@nistha_jnn #c++

star

Sat Dec 16 2023 03:09:04 GMT+0000 (Coordinated Universal Time) https://medium.com/@harunijaz/a-step-by-step-guide-to-installing-cuda-with-pytorch-in-conda-on-windows-verifying-via-console-9ba4cd5ccbef

@cse.repon

star

Sat Dec 16 2023 02:27:00 GMT+0000 (Coordinated Universal Time) https://www.cvat.ai/post/an-introduction-to-automated-data-annotation-with-cvat-ai-cli

@cse.repon

star

Fri Dec 15 2023 23:37:46 GMT+0000 (Coordinated Universal Time)

@shirnunn

star

Fri Dec 15 2023 21:09:43 GMT+0000 (Coordinated Universal Time) https://beeg.com/BigCock?f

@Love_Code

star

Fri Dec 15 2023 19:04:29 GMT+0000 (Coordinated Universal Time)

@LakshN

star

Fri Dec 15 2023 16:08:13 GMT+0000 (Coordinated Universal Time)

@onlinecesaref #html

star

Fri Dec 15 2023 14:08:46 GMT+0000 (Coordinated Universal Time)

@hedviga

star

Fri Dec 15 2023 12:25:20 GMT+0000 (Coordinated Universal Time) https://www.freecodecamp.org/news/how-to-use-javascript-array-reduce-method/?ref

@MagzyBoguezy

star

Fri Dec 15 2023 09:02:33 GMT+0000 (Coordinated Universal Time)

@alfred555 #react.js

star

Fri Dec 15 2023 05:52:07 GMT+0000 (Coordinated Universal Time)

@ishwarshinde041 #html

star

Fri Dec 15 2023 05:13:01 GMT+0000 (Coordinated Universal Time)

@ishwarshinde041 #html

star

Thu Dec 14 2023 17:59:53 GMT+0000 (Coordinated Universal Time) https://ubuntu.pkgs.org/22.04/ubuntu-main-arm64/python3-hamcrest_2.0.2-2_all.deb.html

@Spsypg #ubuntu #commands

star

Thu Dec 14 2023 16:57:10 GMT+0000 (Coordinated Universal Time) https://blackhat.army

@djsubstance

star

Thu Dec 14 2023 15:22:15 GMT+0000 (Coordinated Universal Time) https://stackoverflow.com/questions/46410512/android-how-to-get-sha1-md5-fingerprint-programmatically

@iamjasonli

star

Thu Dec 14 2023 12:37:58 GMT+0000 (Coordinated Universal Time)

@alfred555 #react.js

star

Thu Dec 14 2023 12:19:50 GMT+0000 (Coordinated Universal Time)

@mdfaizi

star

Thu Dec 14 2023 12:17:13 GMT+0000 (Coordinated Universal Time) https://www.w3schools.com/jsref/jsref_filter.asp

@mdfaizi

star

Thu Dec 14 2023 12:16:51 GMT+0000 (Coordinated Universal Time)

@mdfaizi

star

Thu Dec 14 2023 12:01:09 GMT+0000 (Coordinated Universal Time) https://www.geeksforgeeks.org/javascript-array-map-method/

@mdfaizi

star

Thu Dec 14 2023 12:00:06 GMT+0000 (Coordinated Universal Time) https://www.geeksforgeeks.org/javascript-array-map-method/

@mdfaizi

Save snippets that work with our extensions

Available in the Chrome Web Store Get Firefox Add-on Get VS Code extension