PageSourceSearch

https://www.sqlfluff.com/stats/_npm/[email protected]/20b76948.js

js sqlfluff.com collected 2026-09-24 18:57:13 UTC 4,076 bytes, 7 lines download raw bytes

vendor: 4,076 bytes, lines 1-7
1/**
2 * Bundled by jsDelivr using Rollup v4.62.2 and esbuild v0.28.1.
3 * Original file: /npm/[email protected]/src/index.js
4 *
5 * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
6 */
7import{dispatch as L}from"../[email protected]/3fb06f14.js";import{select as k,pointer as q}from"../[email protected]/28717d05.js";const Q={passive:!1},v={capture:!0,passive:!1};function P(t){t.stopImmediatePropagation()}function y(t){t.preventDefault(),t.stopImmediatePropagation()}function C(t){var u=t.document.documentElement,c=k(t).on("dragstart.drag",y,v);"onselectstart"in u?c.on("selectstart.drag",y,v):(u.__noselect=u.style.MozUserSelect,u.style.MozUserSelect="none")}function F(t,u){var c=t.document.documentElement,l=k(t).on("dragstart.drag",null);u&&(l.on("click.drag",y,v),setTimeout(function(){l.on("click.drag",null)},0)),"onselectstart"in c?l.on("selectstart.drag",null):(c.style.MozUserSelect=c.__noselect,delete c.__noselect)}var E=t=>()=>t;function S(t,{sourceEvent:u,subject:c,target:l,identifier:f,active:m,x:h,y:x,dx:w,dy:b,dispatch:d}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:u,enumerable:!0,configurable:!0},subject:{value:c,enumerable:!0,configurable:!0},target:{value:l,enumerable:!0,configurable:!0},identifier:{value:f,enumerable:!0,configurable:!0},active:{value:m,enumerable:!0,configurable:!0},x:{value:h,enumerable:!0,configurable:!0},y:{value:x,enumerable:!0,configurable:!0},dx:{value:w,enumerable:!0,configurable:!0},dy:{value:b,enumerable:!0,configurable:!0},_:{value:d}})}S.prototype.on=function(){var t=this._.on.apply(this._,arguments);return t===this._?this:t};function R(t){return!t.ctrlKey&&!t.button}function V(){return this.parentNode}function W(t,u){return u??{x:t.x,y:t.y}}function Z(){return navigator.maxTouchPoints||"ontouchstart"in this}function _(){var t=R,u=V,c=W,l=Z,f={},m=L("start","drag","end"),h=0,x,w,b,d,j=0;function a(e){e.on("mousedown.drag",K).filter(l).on("touchstart.drag",A).on("touchmove.drag",B,Q).on("touchend.drag touchcancel.drag",G).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function K(e,n){if(!(d||!t.call(this,e,n))){var r=z(this,u.call(this,e,n),e,n,"mouse");r&&(k(e.view).on("mousemove.drag",N,v).on("mouseup.drag",O,v),C(e.view),P(e),b=!1,x=e.clientX,w=e.clientY,r("start",e))}}function N(e){if(y(e),!b){var n=e.clientX-x,r=e.clientY-w;b=n*n+r*r>j}f.mouse("drag",e)}function O(e){k(e.view).on("mousemove.drag mouseup.drag",null),F(e.view,b),y(e),f.mouse("end",e)}function A(e,n){if(t.call(this,e,n)){var r=e.changedTouches,o=u.call(this,e,n),i=r.length,g,p;for(g=0;g<i;++g)(p=z(this,o,e,n,r[g].identifier,r[g]))&&(P(e),p("start",e,r[g]))}}function B(e){var n=e.changedTouches,r=n.length,o,i;for(o=0;o<r;++o)(i=f[n[o].identifier])&&(y(e),i("drag",e,n[o]))}function G(e){var n=e.changedTouches,r=n.length,o,i;for(d&&clearTimeout(d),d=setTimeout(function(){d=null},500),o=0;o<r;++o)(i=f[n[o].identifier])&&(P(e),i("end",e,n[o]))}function z(e,n,r,o,i,g){var p=m.copy(),s=q(g||r,n),U,I,T;if((T=c.call(e,new S("beforestart",{sourceEvent:r,target:a,identifier:i,active:h,x:s[0],y:s[1],dx:0,dy:0,dispatch:p}),o))!=null)return U=T.x-s[0]||0,I=T.y-s[1]||0,function H(D,X,J){var Y=s,M;switch(D){case"start":f[i]=H,M=h++;break;case"end":delete f[i],--h;case"drag":s=q(J||X,n),M=h;break}p.call(D,e,new S(D,{sourceEvent:X,subject:T,target:a,identifier:i,active:M,x:s[0]+U,y:s[1]+I,dx:s[0]-Y[0],dy:s[1]-Y[1],dispatch:p}),o)}}return a.filter=function(e){return arguments.length?(t=typeof e=="function"?e:E(!!e),a):t},a.container=function(e){return arguments.length?(u=typeof e=="function"?e:E(e),a):u},a.subject=function(e){return arguments.length?(c=typeof e=="function"?e:E(e),a):c},a.touchable=function(e){return arguments.length?(l=typeof e=="function"?e:E(!!e),a):l},a.on=function(){var e=m.on.apply(m,arguments);return e===m?a:e},a.clickDistance=function(e){return arguments.length?(j=(e=+e)*e,a):Math.sqrt(j)},a}export{_ as drag,C as dragDisable,F as dragEnable};

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