the-edge-mag.com
Open in
urlscan Pro
146.88.233.176
Public Scan
Submitted URL: http://the-edge-mag.com/wp-content/plugins/ddpro/js/clipboard.min.js?ver=5.1.8
Effective URL: https://the-edge-mag.com/wp-content/plugins/ddpro/js/clipboard.min.js?ver=5.1.8
Submission: On November 09 via api from US — Scanned from FR
Effective URL: https://the-edge-mag.com/wp-content/plugins/ddpro/js/clipboard.min.js?ver=5.1.8
Submission: On November 09 via api from US — Scanned from FR
Form analysis
0 forms found in the DOMText Content
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).Clipboard=e()}}(function(){return function e(t,n,r){function o(a,l){if(!n[a]){if(!t[a]){var c="function"==typeof require&&require;if(!l&&c)return c(a,!0);if(i)return i(a,!0);var u=new Error("Cannot find module '"+a+"'");throw u.code="MODULE_NOT_FOUND",u}var s=n[a]={exports:{}};t[a][0].call(s.exports,function(e){return o(t[a][1][e]||e)},s,s.exports,e,t,n,r)}return n[a].exports}for(var i="function"==typeof require&&require,a=0;a<r.length;a++)o(r[a]);return o}({1:[function(e,t,n){var r=9;if("undefined"!=typeof Element&&!Element.prototype.matches){var o=Element.prototype;o.matches=o.matchesSelector||o.mozMatchesSelector||o.msMatchesSelector||o.oMatchesSelector||o.webkitMatchesSelector}t.exports=function(e,t){for(;e&&e.nodeType!==r;){if("function"==typeof e.matches&&e.matches(t))return e;e=e.parentNode}}},{}],2:[function(e,t,n){function r(e,t,n,r){return function(n){n.delegateTarget=o(n.target,t),n.delegateTarget&&r.call(e,n)}}var o=e("./closest");t.exports=function(e,t,n,o,i){var a=r.apply(this,arguments);return e.addEventListener(n,a,i),{destroy:function(){e.removeEventListener(n,a,i)}}}},{"./closest":1}],3:[function(e,t,n){n.node=function(e){return void 0!==e&&e instanceof HTMLElement&&1===e.nodeType},n.nodeList=function(e){var t=Object.prototype.toString.call(e);return void 0!==e&&("[object NodeList]"===t||"[object HTMLCollection]"===t)&&"length"in e&&(0===e.length||n.node(e[0]))},n.string=function(e){return"string"==typeof e||e instanceof String},n.fn=function(e){return"[object Function]"===Object.prototype.toString.call(e)}},{}],4:[function(e,t,n){var r=e("./is"),o=e("delegate");t.exports=function(e,t,n){if(!e&&!t&&!n)throw new Error("Missing required arguments");if(!r.string(t))throw new TypeError("Second argument must be a String");if(!r.fn(n))throw new TypeError("Third argument must be a Function");if(r.node(e))return function(e,t,n){return e.addEventListener(t,n),{destroy:function(){e.removeEventListener(t,n)}}}(e,t,n);if(r.nodeList(e))return function(e,t,n){return Array.prototype.forEach.call(e,function(e){e.addEventListener(t,n)}),{destroy:function(){Array.prototype.forEach.call(e,function(e){e.removeEventListener(t,n)})}}}(e,t,n);if(r.string(e))return function(e,t,n){return o(document.body,e,t,n)}(e,t,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}},{"./is":3,delegate:2}],5:[function(e,t,n){t.exports=function(e){var t;if("SELECT"===e.nodeName)e.focus(),t=e.value;else if("INPUT"===e.nodeName||"TEXTAREA"===e.nodeName){var n=e.hasAttribute("readonly");n||e.setAttribute("readonly",""),e.select(),e.setSelectionRange(0,e.value.length),n||e.removeAttribute("readonly"),t=e.value}else{e.hasAttribute("contenteditable")&&e.focus();var r=window.getSelection(),o=document.createRange();o.selectNodeContents(e),r.removeAllRanges(),r.addRange(o),t=r.toString()}return t}},{}],6:[function(e,t,n){function r(){}r.prototype={on:function(e,t,n){var r=this.e||(this.e={});return(r[e]||(r[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){function r(){o.off(e,r),t.apply(n,arguments)}var o=this;return r._=t,this.on(e,r,n)},emit:function(e){for(var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),r=0,o=n.length;r<o;r++)n[r].fn.apply(n[r].ctx,t);return this},off:function(e,t){var n=this.e||(this.e={}),r=n[e],o=[];if(r&&t)for(var i=0,a=r.length;i<a;i++)r[i].fn!==t&&r[i].fn._!==t&&o.push(r[i]);return o.length?n[e]=o:delete n[e],this}},t.exports=r},{}],7:[function(e,t,n){!function(r,o){if(void 0!==n)o(t,e("select"));else{var i={exports:{}};o(i,r.select),r.clipboardAction=i.exports}}(this,function(e,t){"use strict";var n=function(e){return e&&e.__esModule?e:{default:e}}(t),r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function(){function e(t){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.resolveOptions(t),this.initSelection()}return o(e,[{key:"resolveOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action=e.action,this.container=e.container,this.emitter=e.emitter,this.target=e.target,this.text=e.text,this.trigger=e.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function(){var e=this,t="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=function(){return e.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[t?"right":"left"]="-9999px";var r=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=r+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.container.appendChild(this.fakeElem),this.selectedText=(0,n.default)(this.fakeElem),this.copyText()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=(0,n.default)(this.target),this.copyText()}},{key:"copyText",value:function(){var e=void 0;try{e=document.execCommand(this.action)}catch(t){e=!1}this.handleResult(e)}},{key:"handleResult",value:function(e){this.emitter.emit(e?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=e,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(e){if(void 0!==e){if(!e||"object"!==(void 0===e?"undefined":r(e))||1!==e.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&e.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(e.hasAttribute("readonly")||e.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=e}},get:function(){return this._target}}]),e}();e.exports=i})},{select:5}],8:[function(e,t,n){!function(r,o){if(void 0!==n)o(t,e("./clipboard-action"),e("tiny-emitter"),e("good-listener"));else{var i={exports:{}};o(i,r.clipboardAction,r.tinyEmitter,r.goodListener),r.clipboard=i.exports}}(this,function(e,t,n,r){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){var n="data-clipboard-"+e;if(t.hasAttribute(n))return t.getAttribute(n)}var a=o(t),l=o(n),c=o(r),u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),f=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return r.resolveOptions(n),r.listenClick(e),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,l.default),s(t,[{key:"resolveOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof e.action?e.action:this.defaultAction,this.target="function"==typeof e.target?e.target:this.defaultTarget,this.text="function"==typeof e.text?e.text:this.defaultText,this.container="object"===u(e.container)?e.container:document.body}},{key:"listenClick",value:function(e){var t=this;this.listener=(0,c.default)(e,"click",function(e){return t.onClick(e)})}},{key:"onClick",value:function(e){var t=e.delegateTarget||e.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new a.default({action:this.action(t),target:this.target(t),text:this.text(t),container:this.container,trigger:t,emitter:this})}},{key:"defaultAction",value:function(e){return i("action",e)}},{key:"defaultTarget",value:function(e){var t=i("target",e);if(t)return document.querySelector(t)}},{key:"defaultText",value:function(e){return i("text",e)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],t="string"==typeof e?[e]:e,n=!!document.queryCommandSupported;return t.forEach(function(e){n=n&&!!document.queryCommandSupported(e)}),n}}]),t}();e.exports=f})},{"./clipboard-action":7,"good-listener":4,"tiny-emitter":6}]},{},[8])(8)}),function(e){e.fn.alphanum=function(e){return d(this,b,m(e)),this},e.fn.alpha=function(e){return d(this,b,m(e,m("alpha"))),this},e.fn.numeric=function(t){var n=v(t);return d(this,S,n),this.blur(function(){!function(t,n){var r=parseFloat(e(t).val()),o=e(t);if(isNaN(r))return void o.val("");p(n.min)&&r<n.min&&o.val("");p(n.max)&&r>n.max&&o.val("")}(this,n)}),this};var t,n,r,o={allow:"",disallow:"",allowSpace:!0,allowNewline:!0,allowNumeric:!0,allowUpper:!0,allowLower:!0,allowCaseless:!0,allowLatin:!0,allowOtherCharSets:!0,forceUpper:!1,forceLower:!1,maxLength:NaN},i={allowPlus:!1,allowMinus:!0,allowThouSep:!0,allowDecSep:!0,allowLeadingSpaces:!1,maxDigits:NaN,maxDecimalPlaces:NaN,maxPreDecimalPlaces:NaN,max:NaN,min:NaN},a={alpha:{allowNumeric:!1},upper:{allowNumeric:!1,allowUpper:!0,allowLower:!1,allowCaseless:!0},lower:{allowNumeric:!1,allowUpper:!1,allowLower:!0,allowCaseless:!0}},l={integer:{allowPlus:!1,allowMinus:!0,allowThouSep:!1,allowDecSep:!1},positiveInteger:{allowPlus:!1,allowMinus:!1,allowThouSep:!1,allowDecSep:!1}},c=(t="!@#$%^&*()+=[]\\';,/{}|\":<>?~`.-_",(t+=" ")+"¬€£¦"),u=",",s=".",f=function(){var e,t="0123456789".split(""),n={},r=0;for(r=0;r<t.length;r++)e=t[r],n[e]=!0;return n}(),h=(r=(n="abcdefghijklmnopqrstuvwxyz").toUpperCase(),new x(n+r));function d(t,n,r){t.each(function(){var t=e(this);t.off(".alphanum").on("keyup.alphanum change.alphanum paste.alphanum",function(e){var o="";e.originalEvent&&e.originalEvent.clipboardData&&e.originalEvent.clipboardData.getData&&(o=e.originalEvent.clipboardData.getData("text/plain")),setTimeout(function(){!function(e,t,n,r){var o=e.val();""===o&&r.length>0&&(o=r);var i=t(o,n);if(o===i)return;var a=e.alphanum_caret();e.val(i),o.length===i.length+1?e.alphanum_caret(a-1):e.alphanum_caret(a)}(t,n,r,o)},0)}).on("keypress.alphanum",function(e){var o=e.charCode?e.charCode:e.which;if(!(function(e){return!(e>=32)&&10!==e&&13!==e}(o)||e.ctrlKey||e.metaKey)){var i=String.fromCharCode(o),a=t.selection(),l=a.start,c=a.end,u=t.val(),s=u.substring(0,l)+i+u.substring(c);n(s,r)!==s&&e.preventDefault()}})})}function p(e){return!isNaN(e)}function m(t,n){void 0===n&&(n=o);var r,i,l,u,s,f={};return r="string"==typeof t?a[t]:void 0===t?{}:t,e.extend(f,n,r),void 0===f.blacklist&&(f.blacklistSet=(i=f.allow,l=f.disallow,u=new x(c+l),s=new x(i),u.subtract(s))),f}function v(t){var n,r={};return n="string"==typeof t?l[t]:void 0===t?{}:t,e.extend(r,i,n),r}function g(e,t,n){return!(n.maxLength&&e.length>=n.maxLength)&&(n.allow.indexOf(t)>=0||(!(!n.allowSpace||" "!==t)||!!(n.allowNewline||"\n"!==t&&"\r"!==t)&&(!n.blacklistSet.contains(t)&&(!(!n.allowNumeric&&f[t])&&(!(!n.allowUpper&&function(e){var t=e.toUpperCase(),n=e.toLowerCase();return e===t&&t!==n}(t))&&(!(!n.allowLower&&function(e){var t=e.toUpperCase(),n=e.toLowerCase();return e===n&&t!==n}(t))&&(!(!n.allowCaseless&&function(e){return e.toUpperCase()===e.toLowerCase()}(t))&&(!(!n.allowLatin&&h.contains(t))&&(!!n.allowOtherCharSets||!(!f[t]&&!h.contains(t)))))))))))}function y(e,t,n){if(f[t])return!function(e,t){var n=t.maxDigits;return""!==n&&!isNaN(n)&&w(e)>=n}(e,n)&&(!function(e,t){var n=t.maxPreDecimalPlaces;return""!==n&&!isNaN(n)&&!(e.indexOf(s)>=0)&&w(e)>=n}(e,n)&&(!function(e,t){var n=t.maxDecimalPlaces;if(""===n||isNaN(n))return!1;var r=e.indexOf(s);return-1!==r&&w(e.substring(r))>=n}(e,n)&&(!function(e,t){return!(!t.max||t.max<0)&&parseFloat(e)>t.max}(e+t,n)&&!function(e,t){return!(!t.min||t.min>0)&&parseFloat(e)<t.min}(e+t,n))));if(n.allowPlus&&"+"===t&&""===e)return!0;if(n.allowMinus&&"-"===t&&""===e)return!0;if(t===u&&n.allowThouSep&&function(e){if(0===e.length)return!1;if(e.indexOf(s)>=0)return!1;var t=e.indexOf(u);if(t<0)return!0;var n=e.lastIndexOf(u);return!(e.length-n-1<3||w(e.substring(t))%3>0)}(e))return!0;if(t===s){if(e.indexOf(s)>=0)return!1;if(n.allowDecSep&&0===n.maxDecimalPlaces)return!1;if(n.allowDecSep)return!0}return!1}function w(e){return(e+="").replace(/[^0-9]/g,"").length}function b(e,t){if("string"!=typeof e)return e;var n,r=e.split(""),o=[],i=0;for(i=0;i<r.length;i++){n=r[i],g(o.join(""),n,t)&&o.push(n)}var a=o.join("");return t.forceLower?a=a.toLowerCase():t.forceUpper&&(a=a.toUpperCase()),a}function S(e,t){if("string"!=typeof e)return e;var n,r=e.split(""),o=[],i=0;for(i=0;i<r.length;i++){n=r[i],y(o.join(""),n,t)&&o.push(n)}return o.join("")}function x(e){this.map="string"==typeof e?function(e){var t,n={},r=e.split(""),o=0;for(o=0;o<r.length;o++)t=r[o],n[t]=!0;return n}(e):{}}x.prototype.add=function(e){var t=this.clone();for(var n in e.map)t.map[n]=!0;return t},x.prototype.subtract=function(e){var t=this.clone();for(var n in e.map)delete t.map[n];return t},x.prototype.contains=function(e){return!!this.map[e]},x.prototype.clone=function(){var e=new x;for(var t in this.map)e.map[t]=!0;return e},e.fn.alphanum.backdoorAlphaNum=function(e,t){return b(e,m(t))},e.fn.alphanum.backdoorNumeric=function(e,t){return S(e,v(t))},e.fn.alphanum.setNumericSeparators=function(e){1===e.thousandsSeparator.length&&1===e.decimalSeparator.length&&(u=e.thousandsSeparator,s=e.decimalSeparator)}}(jQuery),function(e){function t(e,t){if(e.createTextRange){var n=e.createTextRange();n.move("character",t),n.select()}else null!==e.selectionStart&&(e.focus(),e.setSelectionRange(t,t))}e.fn.alphanum_caret=function(n,r){return void 0===n?function(e){if("selection"in document){var t=e.createTextRange();try{t.setEndPoint("EndToStart",document.selection.createRange())}catch(e){return 0}return t.text.length}if(null!==e.selectionStart)return e.selectionStart}(this.get(0)):this.queue(function(o){if(isNaN(n)){var i=e(this).val().indexOf(n);!0===r?i+=n.length:void 0!==r&&(i+=r),t(this,i)}else t(this,n);o()})}}(jQuery),function(e){function t(e){return e?e.ownerDocument.defaultView||e.ownerDocument.parentWindow:window}function n(t,n){var r=e.Range.current(t).clone(),o=e.Range(t).select(t);return r.overlaps(o)?(r.compare("START_TO_START",o)<1?(startPos=0,r.move("START_TO_START",o)):(fromElementToCurrent=o.clone(),fromElementToCurrent.move("END_TO_START",r),startPos=fromElementToCurrent.toString().length),endPos=0<=r.compare("END_TO_END",o)?o.toString().length:startPos+r.toString().length,{start:startPos,end:endPos}):null}var r=function(e,t,n){var o;n=n||0;for(var i,a,l,c,u=0;e[u];u++)3===(o=e[u]).nodeType||4===o.nodeType?(i=n,a=n+=o.nodeValue.length,c=o,"number"==typeof(l=t)[0]&&l[0]<a&&(l[0]={el:c,count:l[0]-i}),"number"==typeof l[1]&&l[1]<=a&&(l[1]={el:c,count:l[1]-i})):8!==o.nodeType&&(n=r(o.childNodes,t,n));return n};jQuery.fn.selection=function(o,i){return void 0!==o?this.each(function(){var e,n,a,l,c,u,s,f,h;n=o,a=i,h=t(e=this),e.setSelectionRange?void 0===a?(e.focus(),e.setSelectionRange(n,n)):(e.select(),e.selectionStart=n,e.selectionEnd=a):e.createTextRange?((l=e.createTextRange()).moveStart("character",n),a=a||n,l.moveEnd("character",a-e.value.length),l.select()):h.getSelection?(c=h.document,u=h.getSelection(),f=c.createRange(),r([e],s=[n,void 0!==a?a:n]),f.setStart(s[0].el,s[0].count),f.setEnd(s[1].el,s[1].count),u.removeAllRanges(),u.addRange(f)):h.document.body.createTextRange&&((f=document.body.createTextRange()).moveToElementText(e),f.collapse(),f.moveStart("character",n),f.moveEnd("character",void 0!==a?a:n),f.select())}):function(r){var o=t(r);if(void 0!==r.selectionStart)return document.activeElement&&document.activeElement!==r&&r.selectionStart===r.selectionEnd&&0===r.selectionStart?{start:r.value.length,end:r.value.length}:{start:r.selectionStart,end:r.selectionEnd};if(o.getSelection)return n(r);try{if("input"===r.nodeName.toLowerCase()){var i=t(r).document.selection.createRange(),a=r.createTextRange();a.setEndPoint("EndToStart",i);var l=a.text.length;return{start:l,end:l+i.text.length}}var c=n(r);if(!c)return c;var u=e.Range.current().clone(),s=u.clone().collapse().range,f=u.clone().collapse(!1).range;return s.moveStart("character",-1),f.moveStart("character",-1),0!==c.startPos&&""===s.text&&(c.startPos+=2),0!==c.endPos&&""===f.text&&(c.endPos+=2),c}catch(o){return{start:r.value.length,end:r.value.length}}}(this[0])},e.fn.selection.getCharElement=r}(jQuery);