@ianicdev/datatables2 0.8.3 → 0.8.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dataTables-B4eEvOoG.cjs +4 -0
- package/dist/dataTables-BOwvt8w7.js +5735 -0
- package/dist/datatables.cjs +1 -1
- package/dist/datatables.css +1 -1
- package/dist/datatables.js +5 -3
- package/dist/filesaver-Deatpm3H.cjs +1 -0
- package/dist/{filesaver-hxbVqAA5.js → filesaver-K4_fCr7v.js} +3 -3
- package/dist/html2canvas.esm-CUkZERmf.cjs +22 -0
- package/dist/{html2canvas.esm-DgdJBc_o.js → html2canvas.esm-Dmi1NfiH.js} +79 -79
- package/dist/{index-B0beGsbl.js → index-BDjxEH7H.js} +6677 -6880
- package/dist/index-DTvYd6IO.cjs +27 -0
- package/dist/{index.es-DgoGxMTg.js → index.es-Bzj9GCv8.js} +50 -50
- package/dist/index.es-DUsc-TdR.cjs +18 -0
- package/dist/jspdf-BF1VF7Ex.cjs +194 -0
- package/dist/jspdf-VsfW7tvh.js +10979 -0
- package/dist/printjs-BbgDICDe.cjs +1 -0
- package/dist/{printjs-DloSJk7-.js → printjs-kC3Qmb-l.js} +30 -30
- package/dist/sortablejs-BhPwT7wS.cjs +6 -0
- package/dist/{sortablejs-oSzf6C5Q.js → sortablejs-DSHM8iDp.js} +2 -2
- package/dist/xlsx-BBXALOAs.cjs +128 -0
- package/dist/{xlsx-F0a4dQhU.js → xlsx-vtl6oPEm.js} +42 -42
- package/package.json +20 -20
- package/dist/dataTables-YjZRIl4q.cjs +0 -4
- package/dist/dataTables-yiySrT5Y.js +0 -5866
- package/dist/filesaver-DK4OWeXC.cjs +0 -1
- package/dist/html2canvas.esm-BA_v9SIU.cjs +0 -22
- package/dist/index-C77NxUS9.cjs +0 -27
- package/dist/index.es-CWhDHun6.cjs +0 -18
- package/dist/jspdf-BxFtYFSp.js +0 -9159
- package/dist/jspdf-m38fbNCd.cjs +0 -244
- package/dist/printjs-D_W5E6Tg.cjs +0 -1
- package/dist/sortablejs-DFlpjwso.cjs +0 -6
- package/dist/xlsx-70x3xVy4.cjs +0 -128
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var O=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function S(g){return g&&g.__esModule&&Object.prototype.hasOwnProperty.call(g,"default")?g.default:g}var j={exports:{}},M;function w(){return M||(M=1,(function(g,C){(function(a,n){g.exports=n()})(window,function(){return(function(h){var a={};function n(o){if(a[o])return a[o].exports;var s=a[o]={i:o,l:!1,exports:{}};return h[o].call(s.exports,s,s.exports,n),s.l=!0,s.exports}return n.m=h,n.c=a,n.d=function(o,s,f){n.o(o,s)||Object.defineProperty(o,s,{enumerable:!0,get:f})},n.r=function(o){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})},n.t=function(o,s){if(s&1&&(o=n(o)),s&8||s&4&&typeof o=="object"&&o&&o.__esModule)return o;var f=Object.create(null);if(n.r(f),Object.defineProperty(f,"default",{enumerable:!0,value:o}),s&2&&typeof o!="string")for(var b in o)n.d(f,b,(function(i){return o[i]}).bind(null,b));return f},n.n=function(o){var s=o&&o.__esModule?function(){return o.default}:function(){return o};return n.d(s,"a",s),s},n.o=function(o,s){return Object.prototype.hasOwnProperty.call(o,s)},n.p="",n(n.s=0)})({"./src/index.js":(function(h,a,n){n.r(a),n("./src/sass/index.scss");var o=n("./src/js/init.js"),s=o.default.init;typeof window<"u"&&(window.printJS=s),a.default=s}),"./src/js/browser.js":(function(h,a,n){n.r(a);var o={isFirefox:function(){return typeof InstallTrigger<"u"},isIE:function(){return navigator.userAgent.indexOf("MSIE")!==-1||!!document.documentMode},isEdge:function(){return!o.isIE()&&!!window.StyleMedia},isChrome:function(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window;return!!f.chrome},isSafari:function(){return Object.prototype.toString.call(window.HTMLElement).indexOf("Constructor")>0||navigator.userAgent.toLowerCase().indexOf("safari")!==-1},isIOSChrome:function(){return navigator.userAgent.toLowerCase().indexOf("crios")!==-1}};a.default=o}),"./src/js/functions.js":(function(h,a,n){n.r(a),n.d(a,"addWrapper",function(){return b}),n.d(a,"capitalizePrint",function(){return i}),n.d(a,"collectStyles",function(){return l}),n.d(a,"addHeader",function(){return e}),n.d(a,"cleanUp",function(){return u}),n.d(a,"isRawHTML",function(){return y});var o=n("./src/js/modal.js"),s=n("./src/js/browser.js");function f(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?f=function(c){return typeof c}:f=function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},f(t)}function b(t,d){var c="font-family:"+d.font+" !important; font-size: "+d.font_size+" !important; width:100%;";return'<div style="'+c+'">'+t+"</div>"}function i(t){return t.charAt(0).toUpperCase()+t.slice(1)}function l(t,d){for(var c=document.defaultView||window,E="",p=c.getComputedStyle(t,""),m=0;m<p.length;m++)(d.targetStyles.indexOf("*")!==-1||d.targetStyle.indexOf(p[m])!==-1||r(d.targetStyles,p[m]))&&p.getPropertyValue(p[m])&&(E+=p[m]+":"+p.getPropertyValue(p[m])+";");return E+="max-width: "+d.maxWidth+"px !important; font-size: "+d.font_size+" !important;",E}function r(t,d){for(var c=0;c<t.length;c++)if(f(d)==="object"&&d.indexOf(t[c])!==-1)return!0;return!1}function e(t,d){var c=document.createElement("div");if(y(d.header))c.innerHTML=d.header;else{var E=document.createElement("h1"),p=document.createTextNode(d.header);E.appendChild(p),E.setAttribute("style",d.headerStyle),c.appendChild(E)}t.insertBefore(c,t.childNodes[0])}function u(t){t.showModal&&o.default.close(),t.onLoadingEnd&&t.onLoadingEnd(),(t.showModal||t.onLoadingStart)&&window.URL.revokeObjectURL(t.printable);var d="mouseover";(s.default.isChrome()||s.default.isFirefox())&&(d="focus");var c=function E(){window.removeEventListener(d,E),t.onPrintDialogClose();var p=document.getElementById(t.frameId);p&&p.remove()};window.addEventListener(d,c)}function y(t){var d=new RegExp("<([A-Za-z][A-Za-z0-9]*)\\b[^>]*>(.*?)</\\1>");return d.test(t)}}),"./src/js/html.js":(function(h,a,n){n.r(a);var o=n("./src/js/functions.js"),s=n("./src/js/print.js");function f(l){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?f=function(e){return typeof e}:f=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(l)}a.default={print:function(r,e){var u=i(r.printable)?r.printable:document.getElementById(r.printable);if(!u){window.console.error("Invalid HTML element id: "+r.printable);return}r.printableElement=b(u,r),r.header&&Object(o.addHeader)(r.printableElement,r),s.default.send(r,e)}};function b(l,r){for(var e=l.cloneNode(),u=Array.prototype.slice.call(l.childNodes),y=0;y<u.length;y++)if(r.ignoreElements.indexOf(u[y].id)===-1){var t=b(u[y],r);e.appendChild(t)}switch(r.scanStyles&&l.nodeType===1&&e.setAttribute("style",Object(o.collectStyles)(l,r)),l.tagName){case"SELECT":e.value=l.value;break;case"CANVAS":e.getContext("2d").drawImage(l,0,0);break}return e}function i(l){return f(l)==="object"&&l&&(l instanceof HTMLElement||l.nodeType===1)}}),"./src/js/image.js":(function(h,a,n){n.r(a);var o=n("./src/js/functions.js"),s=n("./src/js/print.js"),f=n("./src/js/browser.js");a.default={print:function(i,l){i.printable.constructor!==Array&&(i.printable=[i.printable]),i.printableElement=document.createElement("div"),i.printable.forEach(function(r){var e=document.createElement("img");if(e.setAttribute("style",i.imageStyle),e.src=r,f.default.isFirefox()){var u=e.src;e.src=u}var y=document.createElement("div");y.appendChild(e),i.printableElement.appendChild(y)}),i.header&&Object(o.addHeader)(i.printableElement,i),s.default.send(i,l)}}}),"./src/js/init.js":(function(h,a,n){n.r(a);var o=n("./src/js/browser.js"),s=n("./src/js/modal.js"),f=n("./src/js/pdf.js"),b=n("./src/js/html.js"),i=n("./src/js/raw-html.js"),l=n("./src/js/image.js"),r=n("./src/js/json.js");function e(y){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?e=function(d){return typeof d}:e=function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d},e(y)}var u=["pdf","html","image","json","raw-html"];a.default={init:function(){var t={printable:null,fallbackPrintable:null,type:"pdf",header:null,headerStyle:"font-weight: 300;",maxWidth:800,properties:null,gridHeaderStyle:"font-weight: bold; padding: 5px; border: 1px solid #dddddd;",gridStyle:"border: 1px solid lightgray; margin-bottom: -1px;",showModal:!1,onError:function(P){throw P},onLoadingStart:null,onLoadingEnd:null,onPrintDialogClose:function(){},onIncompatibleBrowser:function(){},modalMessage:"Retrieving Document...",frameId:"printJS",printableElement:null,documentTitle:"Document",targetStyle:["clear","display","width","min-width","height","min-height","max-height"],targetStyles:["border","box","break","text-decoration"],ignoreElements:[],repeatTableHeader:!0,css:null,style:null,scanStyles:!0,base64:!1,onPdfOpen:null,font:"TimesNewRoman",font_size:"12pt",honorMarginPadding:!0,honorColor:!1,imageStyle:"max-width: 100%;"},d=arguments[0];if(d===void 0)throw new Error("printJS expects at least 1 attribute.");switch(e(d)){case"string":t.printable=encodeURI(d),t.fallbackPrintable=t.printable,t.type=arguments[1]||t.type;break;case"object":t.printable=d.printable,t.fallbackPrintable=typeof d.fallbackPrintable<"u"?d.fallbackPrintable:t.printable,t.fallbackPrintable=t.base64?"data:application/pdf;base64,".concat(t.fallbackPrintable):t.fallbackPrintable;for(var c in t)c==="printable"||c==="fallbackPrintable"||(t[c]=typeof d[c]<"u"?d[c]:t[c]);break;default:throw new Error('Unexpected argument type! Expected "string" or "object", got '+e(d))}if(!t.printable)throw new Error("Missing printable information.");if(!t.type||typeof t.type!="string"||u.indexOf(t.type.toLowerCase())===-1)throw new Error("Invalid print type. Available types are: pdf, html, image and json.");t.showModal&&s.default.show(t),t.onLoadingStart&&t.onLoadingStart();var E=document.getElementById(t.frameId);E&&E.parentNode.removeChild(E);var p=document.createElement("iframe");switch(o.default.isFirefox()?p.setAttribute("style","width: 1px; height: 100px; position: fixed; left: 0; top: 0; opacity: 0; border-width: 0; margin: 0; padding: 0"):p.setAttribute("style","visibility: hidden; height: 0; width: 0; position: absolute; border: 0"),p.setAttribute("id",t.frameId),t.type!=="pdf"&&(p.srcdoc="<html><head><title>"+t.documentTitle+"</title>",t.css&&(Array.isArray(t.css)||(t.css=[t.css]),t.css.forEach(function(v){p.srcdoc+='<link rel="stylesheet" href="'+v+'">'})),p.srcdoc+="</head><body></body></html>"),t.type){case"pdf":if(o.default.isIE())try{console.info("Print.js doesn't support PDF printing in Internet Explorer.");var m=window.open(t.fallbackPrintable,"_blank");m.focus(),t.onIncompatibleBrowser()}catch(v){t.onError(v)}finally{t.showModal&&s.default.close(),t.onLoadingEnd&&t.onLoadingEnd()}else f.default.print(t,p);break;case"image":l.default.print(t,p);break;case"html":b.default.print(t,p);break;case"raw-html":i.default.print(t,p);break;case"json":r.default.print(t,p);break}}}}),"./src/js/json.js":(function(h,a,n){n.r(a);var o=n("./src/js/functions.js"),s=n("./src/js/print.js");function f(i){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?f=function(r){return typeof r}:f=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},f(i)}a.default={print:function(l,r){if(f(l.printable)!=="object")throw new Error("Invalid javascript data object (JSON).");if(typeof l.repeatTableHeader!="boolean")throw new Error("Invalid value for repeatTableHeader attribute (JSON).");if(!l.properties||!Array.isArray(l.properties))throw new Error("Invalid properties array for your JSON data.");l.properties=l.properties.map(function(e){return{field:f(e)==="object"?e.field:e,displayName:f(e)==="object"?e.displayName:e,columnSize:f(e)==="object"&&e.columnSize?e.columnSize+";":100/l.properties.length+"%;"}}),l.printableElement=document.createElement("div"),l.header&&Object(o.addHeader)(l.printableElement,l),l.printableElement.innerHTML+=b(l),s.default.send(l,r)}};function b(i){var l=i.printable,r=i.properties,e='<table style="border-collapse: collapse; width: 100%;">';i.repeatTableHeader&&(e+="<thead>"),e+="<tr>";for(var u=0;u<r.length;u++)e+='<th style="width:'+r[u].columnSize+";"+i.gridHeaderStyle+'">'+Object(o.capitalizePrint)(r[u].displayName)+"</th>";e+="</tr>",i.repeatTableHeader&&(e+="</thead>"),e+="<tbody>";for(var y=0;y<l.length;y++){e+="<tr>";for(var t=0;t<r.length;t++){var d=l[y],c=r[t].field.split(".");if(c.length>1)for(var E=0;E<c.length;E++)d=d[c[E]];else d=d[r[t].field];e+='<td style="width:'+r[t].columnSize+i.gridStyle+'">'+d+"</td>"}e+="</tr>"}return e+="</tbody></table>",e}}),"./src/js/modal.js":(function(h,a,n){n.r(a);var o={show:function(f){var b="font-family:sans-serif; display:table; text-align:center; font-weight:300; font-size:30px; left:0; top:0;position:fixed; z-index: 9990;color: #0460B5; width: 100%; height: 100%; background-color:rgba(255,255,255,.9);transition: opacity .3s ease;",i=document.createElement("div");i.setAttribute("style",b),i.setAttribute("id","printJS-Modal");var l=document.createElement("div");l.setAttribute("style","display:table-cell; vertical-align:middle; padding-bottom:100px;");var r=document.createElement("div");r.setAttribute("class","printClose"),r.setAttribute("id","printClose"),l.appendChild(r);var e=document.createElement("span");e.setAttribute("class","printSpinner"),l.appendChild(e);var u=document.createTextNode(f.modalMessage);l.appendChild(u),i.appendChild(l),document.getElementsByTagName("body")[0].appendChild(i),document.getElementById("printClose").addEventListener("click",function(){o.close()})},close:function(){var f=document.getElementById("printJS-Modal");f&&f.parentNode.removeChild(f)}};a.default=o}),"./src/js/pdf.js":(function(h,a,n){n.r(a);var o=n("./src/js/print.js"),s=n("./src/js/functions.js");a.default={print:function(i,l){if(i.base64){var r=Uint8Array.from(atob(i.printable),function(u){return u.charCodeAt(0)});f(i,l,r);return}i.printable=/^(blob|http|\/\/)/i.test(i.printable)?i.printable:window.location.origin+(i.printable.charAt(0)!=="/"?"/"+i.printable:i.printable);var e=new window.XMLHttpRequest;e.responseType="arraybuffer",e.addEventListener("error",function(){Object(s.cleanUp)(i),i.onError(e.statusText,e)}),e.addEventListener("load",function(){if([200,201].indexOf(e.status)===-1){Object(s.cleanUp)(i),i.onError(e.statusText,e);return}f(i,l,e.response)}),e.open("GET",i.printable,!0),e.send()}};function f(b,i,l){var r=new window.Blob([l],{type:"application/pdf"});r=window.URL.createObjectURL(r),i.setAttribute("src",r),o.default.send(b,i)}}),"./src/js/print.js":(function(h,a,n){n.r(a);var o=n("./src/js/browser.js"),s=n("./src/js/functions.js"),f={send:function(e,u){document.getElementsByTagName("body")[0].appendChild(u);var y=document.getElementById(e.frameId);y.onload=function(){if(e.type==="pdf"){o.default.isFirefox()?setTimeout(function(){return b(y,e)},1e3):b(y,e);return}var t=y.contentWindow||y.contentDocument;if(t.document&&(t=t.document),t.body.appendChild(e.printableElement),e.type!=="pdf"&&e.style){var d=document.createElement("style");d.innerHTML=e.style,t.head.appendChild(d)}var c=t.getElementsByTagName("img");c.length>0?i(Array.from(c)).then(function(){return b(y,e)}):b(y,e)}}};function b(r,e){try{if(r.focus(),o.default.isEdge()||o.default.isIE())try{r.contentWindow.document.execCommand("print",!1,null)}catch{r.contentWindow.print()}else r.contentWindow.print()}catch(u){e.onError(u)}finally{o.default.isFirefox()&&(r.style.visibility="hidden",r.style.left="-1px"),Object(s.cleanUp)(e)}}function i(r){var e=r.map(function(u){if(u.src&&u.src!==window.location.href)return l(u)});return Promise.all(e)}function l(r){return new Promise(function(e){var u=function y(){!r||typeof r.naturalWidth>"u"||r.naturalWidth===0||!r.complete?setTimeout(y,500):e()};u()})}a.default=f}),"./src/js/raw-html.js":(function(h,a,n){n.r(a);var o=n("./src/js/print.js");a.default={print:function(f,b){f.printableElement=document.createElement("div"),f.printableElement.setAttribute("style","width:100%"),f.printableElement.innerHTML=f.printable,o.default.send(f,b)}}}),"./src/sass/index.scss":(function(h,a,n){}),0:(function(h,a,n){h.exports=n("./src/index.js")})}).default})})(j)),j.exports}exports.commonjsGlobal=O;exports.getDefaultExportFromCjs=S;exports.requirePrint=w;
|
|
@@ -4,13 +4,13 @@ function w(g) {
|
|
|
4
4
|
}
|
|
5
5
|
var j = { exports: {} }, M;
|
|
6
6
|
function C() {
|
|
7
|
-
return M || (M = 1, function(g, P) {
|
|
7
|
+
return M || (M = 1, (function(g, P) {
|
|
8
8
|
(function(a, n) {
|
|
9
9
|
g.exports = n();
|
|
10
10
|
})(window, function() {
|
|
11
11
|
return (
|
|
12
12
|
/******/
|
|
13
|
-
function(h) {
|
|
13
|
+
(function(h) {
|
|
14
14
|
var a = {};
|
|
15
15
|
function n(o) {
|
|
16
16
|
if (a[o])
|
|
@@ -53,7 +53,7 @@ function C() {
|
|
|
53
53
|
}, n.o = function(o, s) {
|
|
54
54
|
return Object.prototype.hasOwnProperty.call(o, s);
|
|
55
55
|
}, n.p = "", n(n.s = 0);
|
|
56
|
-
}({
|
|
56
|
+
})({
|
|
57
57
|
/***/
|
|
58
58
|
"./src/index.js": (
|
|
59
59
|
/*!**********************!*\
|
|
@@ -61,7 +61,7 @@ function C() {
|
|
|
61
61
|
\**********************/
|
|
62
62
|
/*! exports provided: default */
|
|
63
63
|
/***/
|
|
64
|
-
function(h, a, n) {
|
|
64
|
+
(function(h, a, n) {
|
|
65
65
|
n.r(a), n(
|
|
66
66
|
/*! ./sass/index.scss */
|
|
67
67
|
"./src/sass/index.scss"
|
|
@@ -71,7 +71,7 @@ function C() {
|
|
|
71
71
|
"./src/js/init.js"
|
|
72
72
|
), s = o.default.init;
|
|
73
73
|
typeof window < "u" && (window.printJS = s), a.default = s;
|
|
74
|
-
}
|
|
74
|
+
})
|
|
75
75
|
),
|
|
76
76
|
/***/
|
|
77
77
|
"./src/js/browser.js": (
|
|
@@ -80,7 +80,7 @@ function C() {
|
|
|
80
80
|
\***************************/
|
|
81
81
|
/*! exports provided: default */
|
|
82
82
|
/***/
|
|
83
|
-
function(h, a, n) {
|
|
83
|
+
(function(h, a, n) {
|
|
84
84
|
n.r(a);
|
|
85
85
|
var o = {
|
|
86
86
|
// Firefox 1.0+
|
|
@@ -110,7 +110,7 @@ function C() {
|
|
|
110
110
|
}
|
|
111
111
|
};
|
|
112
112
|
a.default = o;
|
|
113
|
-
}
|
|
113
|
+
})
|
|
114
114
|
),
|
|
115
115
|
/***/
|
|
116
116
|
"./src/js/functions.js": (
|
|
@@ -119,7 +119,7 @@ function C() {
|
|
|
119
119
|
\*****************************/
|
|
120
120
|
/*! exports provided: addWrapper, capitalizePrint, collectStyles, addHeader, cleanUp, isRawHTML */
|
|
121
121
|
/***/
|
|
122
|
-
function(h, a, n) {
|
|
122
|
+
(function(h, a, n) {
|
|
123
123
|
n.r(a), n.d(a, "addWrapper", function() {
|
|
124
124
|
return b;
|
|
125
125
|
}), n.d(a, "capitalizePrint", function() {
|
|
@@ -190,7 +190,7 @@ function C() {
|
|
|
190
190
|
var d = new RegExp("<([A-Za-z][A-Za-z0-9]*)\\b[^>]*>(.*?)</\\1>");
|
|
191
191
|
return d.test(t);
|
|
192
192
|
}
|
|
193
|
-
}
|
|
193
|
+
})
|
|
194
194
|
),
|
|
195
195
|
/***/
|
|
196
196
|
"./src/js/html.js": (
|
|
@@ -199,7 +199,7 @@ function C() {
|
|
|
199
199
|
\************************/
|
|
200
200
|
/*! exports provided: default */
|
|
201
201
|
/***/
|
|
202
|
-
function(h, a, n) {
|
|
202
|
+
(function(h, a, n) {
|
|
203
203
|
n.r(a);
|
|
204
204
|
var o = n(
|
|
205
205
|
/*! ./functions */
|
|
@@ -245,7 +245,7 @@ function C() {
|
|
|
245
245
|
function i(l) {
|
|
246
246
|
return f(l) === "object" && l && (l instanceof HTMLElement || l.nodeType === 1);
|
|
247
247
|
}
|
|
248
|
-
}
|
|
248
|
+
})
|
|
249
249
|
),
|
|
250
250
|
/***/
|
|
251
251
|
"./src/js/image.js": (
|
|
@@ -254,7 +254,7 @@ function C() {
|
|
|
254
254
|
\*************************/
|
|
255
255
|
/*! exports provided: default */
|
|
256
256
|
/***/
|
|
257
|
-
function(h, a, n) {
|
|
257
|
+
(function(h, a, n) {
|
|
258
258
|
n.r(a);
|
|
259
259
|
var o = n(
|
|
260
260
|
/*! ./functions */
|
|
@@ -279,7 +279,7 @@ function C() {
|
|
|
279
279
|
}), i.header && Object(o.addHeader)(i.printableElement, i), s.default.send(i, l);
|
|
280
280
|
}
|
|
281
281
|
};
|
|
282
|
-
}
|
|
282
|
+
})
|
|
283
283
|
),
|
|
284
284
|
/***/
|
|
285
285
|
"./src/js/init.js": (
|
|
@@ -288,7 +288,7 @@ function C() {
|
|
|
288
288
|
\************************/
|
|
289
289
|
/*! exports provided: default */
|
|
290
290
|
/***/
|
|
291
|
-
function(h, a, n) {
|
|
291
|
+
(function(h, a, n) {
|
|
292
292
|
n.r(a);
|
|
293
293
|
var o = n(
|
|
294
294
|
/*! ./browser */
|
|
@@ -416,7 +416,7 @@ function C() {
|
|
|
416
416
|
}
|
|
417
417
|
}
|
|
418
418
|
};
|
|
419
|
-
}
|
|
419
|
+
})
|
|
420
420
|
),
|
|
421
421
|
/***/
|
|
422
422
|
"./src/js/json.js": (
|
|
@@ -425,7 +425,7 @@ function C() {
|
|
|
425
425
|
\************************/
|
|
426
426
|
/*! exports provided: default */
|
|
427
427
|
/***/
|
|
428
|
-
function(h, a, n) {
|
|
428
|
+
(function(h, a, n) {
|
|
429
429
|
n.r(a);
|
|
430
430
|
var o = n(
|
|
431
431
|
/*! ./functions */
|
|
@@ -480,7 +480,7 @@ function C() {
|
|
|
480
480
|
}
|
|
481
481
|
return e += "</tbody></table>", e;
|
|
482
482
|
}
|
|
483
|
-
}
|
|
483
|
+
})
|
|
484
484
|
),
|
|
485
485
|
/***/
|
|
486
486
|
"./src/js/modal.js": (
|
|
@@ -489,7 +489,7 @@ function C() {
|
|
|
489
489
|
\*************************/
|
|
490
490
|
/*! exports provided: default */
|
|
491
491
|
/***/
|
|
492
|
-
function(h, a, n) {
|
|
492
|
+
(function(h, a, n) {
|
|
493
493
|
n.r(a);
|
|
494
494
|
var o = {
|
|
495
495
|
show: function(f) {
|
|
@@ -512,7 +512,7 @@ function C() {
|
|
|
512
512
|
}
|
|
513
513
|
};
|
|
514
514
|
a.default = o;
|
|
515
|
-
}
|
|
515
|
+
})
|
|
516
516
|
),
|
|
517
517
|
/***/
|
|
518
518
|
"./src/js/pdf.js": (
|
|
@@ -521,7 +521,7 @@ function C() {
|
|
|
521
521
|
\***********************/
|
|
522
522
|
/*! exports provided: default */
|
|
523
523
|
/***/
|
|
524
|
-
function(h, a, n) {
|
|
524
|
+
(function(h, a, n) {
|
|
525
525
|
n.r(a);
|
|
526
526
|
var o = n(
|
|
527
527
|
/*! ./print */
|
|
@@ -558,7 +558,7 @@ function C() {
|
|
|
558
558
|
});
|
|
559
559
|
r = window.URL.createObjectURL(r), i.setAttribute("src", r), o.default.send(b, i);
|
|
560
560
|
}
|
|
561
|
-
}
|
|
561
|
+
})
|
|
562
562
|
),
|
|
563
563
|
/***/
|
|
564
564
|
"./src/js/print.js": (
|
|
@@ -567,7 +567,7 @@ function C() {
|
|
|
567
567
|
\*************************/
|
|
568
568
|
/*! exports provided: default */
|
|
569
569
|
/***/
|
|
570
|
-
function(h, a, n) {
|
|
570
|
+
(function(h, a, n) {
|
|
571
571
|
n.r(a);
|
|
572
572
|
var o = n(
|
|
573
573
|
/*! ./browser */
|
|
@@ -630,7 +630,7 @@ function C() {
|
|
|
630
630
|
});
|
|
631
631
|
}
|
|
632
632
|
a.default = f;
|
|
633
|
-
}
|
|
633
|
+
})
|
|
634
634
|
),
|
|
635
635
|
/***/
|
|
636
636
|
"./src/js/raw-html.js": (
|
|
@@ -639,7 +639,7 @@ function C() {
|
|
|
639
639
|
\****************************/
|
|
640
640
|
/*! exports provided: default */
|
|
641
641
|
/***/
|
|
642
|
-
function(h, a, n) {
|
|
642
|
+
(function(h, a, n) {
|
|
643
643
|
n.r(a);
|
|
644
644
|
var o = n(
|
|
645
645
|
/*! ./print */
|
|
@@ -650,7 +650,7 @@ function C() {
|
|
|
650
650
|
f.printableElement = document.createElement("div"), f.printableElement.setAttribute("style", "width:100%"), f.printableElement.innerHTML = f.printable, o.default.send(f, b);
|
|
651
651
|
}
|
|
652
652
|
};
|
|
653
|
-
}
|
|
653
|
+
})
|
|
654
654
|
),
|
|
655
655
|
/***/
|
|
656
656
|
"./src/sass/index.scss": (
|
|
@@ -659,8 +659,8 @@ function C() {
|
|
|
659
659
|
\*****************************/
|
|
660
660
|
/*! no static exports found */
|
|
661
661
|
/***/
|
|
662
|
-
function(h, a, n) {
|
|
663
|
-
}
|
|
662
|
+
(function(h, a, n) {
|
|
663
|
+
})
|
|
664
664
|
),
|
|
665
665
|
/***/
|
|
666
666
|
0: (
|
|
@@ -669,18 +669,18 @@ function C() {
|
|
|
669
669
|
\****************************/
|
|
670
670
|
/*! no static exports found */
|
|
671
671
|
/***/
|
|
672
|
-
function(h, a, n) {
|
|
672
|
+
(function(h, a, n) {
|
|
673
673
|
h.exports = n(
|
|
674
674
|
/*! ./src/index.js */
|
|
675
675
|
"./src/index.js"
|
|
676
676
|
);
|
|
677
|
-
}
|
|
677
|
+
})
|
|
678
678
|
)
|
|
679
679
|
/******/
|
|
680
680
|
}).default
|
|
681
681
|
);
|
|
682
682
|
});
|
|
683
|
-
}(j)), j.exports;
|
|
683
|
+
})(j)), j.exports;
|
|
684
684
|
}
|
|
685
685
|
export {
|
|
686
686
|
S as c,
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";/**!
|
|
2
|
+
* Sortable 1.15.6
|
|
3
|
+
* @author RubaXa <trash@rubaxa.org>
|
|
4
|
+
* @author owenm <owen23355@gmail.com>
|
|
5
|
+
* @license MIT
|
|
6
|
+
*/function se(o,t){var e=Object.keys(o);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(o);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(o,i).enumerable})),e.push.apply(e,n)}return e}function z(o){for(var t=1;t<arguments.length;t++){var e=arguments[t]!=null?arguments[t]:{};t%2?se(Object(e),!0).forEach(function(n){Me(o,n,e[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(e)):se(Object(e)).forEach(function(n){Object.defineProperty(o,n,Object.getOwnPropertyDescriptor(e,n))})}return o}function Mt(o){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Mt=function(t){return typeof t}:Mt=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mt(o)}function Me(o,t,e){return t in o?Object.defineProperty(o,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):o[t]=e,o}function q(){return q=Object.assign||function(o){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(o[n]=e[n])}return o},q.apply(this,arguments)}function Fe(o,t){if(o==null)return{};var e={},n=Object.keys(o),i,r;for(r=0;r<n.length;r++)i=n[r],!(t.indexOf(i)>=0)&&(e[i]=o[i]);return e}function Re(o,t){if(o==null)return{};var e=Fe(o,t),n,i;if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(o);for(i=0;i<r.length;i++)n=r[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(o,n)&&(e[n]=o[n])}return e}var Xe="1.15.6";function U(o){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(o)}var V=U(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Ct=U(/Edge/i),ue=U(/firefox/i),wt=U(/safari/i)&&!U(/chrome/i)&&!U(/android/i),oe=U(/iP(ad|od|hone)/i),ve=U(/chrome/i)&&U(/android/i),be={capture:!1,passive:!1};function v(o,t,e){o.addEventListener(t,e,!V&&be)}function m(o,t,e){o.removeEventListener(t,e,!V&&be)}function kt(o,t){if(t){if(t[0]===">"&&(t=t.substring(1)),o)try{if(o.matches)return o.matches(t);if(o.msMatchesSelector)return o.msMatchesSelector(t);if(o.webkitMatchesSelector)return o.webkitMatchesSelector(t)}catch{return!1}return!1}}function Ee(o){return o.host&&o!==document&&o.host.nodeType?o.host:o.parentNode}function W(o,t,e,n){if(o){e=e||document;do{if(t!=null&&(t[0]===">"?o.parentNode===e&&kt(o,t):kt(o,t))||n&&o===e)return o;if(o===e)break}while(o=Ee(o))}return null}var fe=/\s+/g;function R(o,t,e){if(o&&t)if(o.classList)o.classList[e?"add":"remove"](t);else{var n=(" "+o.className+" ").replace(fe," ").replace(" "+t+" "," ");o.className=(n+(e?" "+t:"")).replace(fe," ")}}function h(o,t,e){var n=o&&o.style;if(n){if(e===void 0)return document.defaultView&&document.defaultView.getComputedStyle?e=document.defaultView.getComputedStyle(o,""):o.currentStyle&&(e=o.currentStyle),t===void 0?e:e[t];!(t in n)&&t.indexOf("webkit")===-1&&(t="-webkit-"+t),n[t]=e+(typeof e=="string"?"":"px")}}function ct(o,t){var e="";if(typeof o=="string")e=o;else do{var n=h(o,"transform");n&&n!=="none"&&(e=n+" "+e)}while(!t&&(o=o.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(e)}function ye(o,t,e){if(o){var n=o.getElementsByTagName(t),i=0,r=n.length;if(e)for(;i<r;i++)e(n[i],i);return n}return[]}function L(){var o=document.scrollingElement;return o||document.documentElement}function C(o,t,e,n,i){if(!(!o.getBoundingClientRect&&o!==window)){var r,a,l,s,u,d,c;if(o!==window&&o.parentNode&&o!==L()?(r=o.getBoundingClientRect(),a=r.top,l=r.left,s=r.bottom,u=r.right,d=r.height,c=r.width):(a=0,l=0,s=window.innerHeight,u=window.innerWidth,d=window.innerHeight,c=window.innerWidth),(t||e)&&o!==window&&(i=i||o.parentNode,!V))do if(i&&i.getBoundingClientRect&&(h(i,"transform")!=="none"||e&&h(i,"position")!=="static")){var b=i.getBoundingClientRect();a-=b.top+parseInt(h(i,"border-top-width")),l-=b.left+parseInt(h(i,"border-left-width")),s=a+r.height,u=l+r.width;break}while(i=i.parentNode);if(n&&o!==window){var w=ct(i||o),E=w&&w.a,y=w&&w.d;w&&(a/=y,l/=E,c/=E,d/=y,s=a+d,u=l+c)}return{top:a,left:l,bottom:s,right:u,width:c,height:d}}}function ce(o,t,e){for(var n=tt(o,!0),i=C(o)[t];n;){var r=C(n)[e],a=void 0;if(a=i>=r,!a)return n;if(n===L())break;n=tt(n,!1)}return!1}function dt(o,t,e,n){for(var i=0,r=0,a=o.children;r<a.length;){if(a[r].style.display!=="none"&&a[r]!==p.ghost&&(n||a[r]!==p.dragged)&&W(a[r],e.draggable,o,!1)){if(i===t)return a[r];i++}r++}return null}function ie(o,t){for(var e=o.lastElementChild;e&&(e===p.ghost||h(e,"display")==="none"||t&&!kt(e,t));)e=e.previousElementSibling;return e||null}function Y(o,t){var e=0;if(!o||!o.parentNode)return-1;for(;o=o.previousElementSibling;)o.nodeName.toUpperCase()!=="TEMPLATE"&&o!==p.clone&&(!t||kt(o,t))&&e++;return e}function de(o){var t=0,e=0,n=L();if(o)do{var i=ct(o),r=i.a,a=i.d;t+=o.scrollLeft*r,e+=o.scrollTop*a}while(o!==n&&(o=o.parentNode));return[t,e]}function Ye(o,t){for(var e in o)if(o.hasOwnProperty(e)){for(var n in t)if(t.hasOwnProperty(n)&&t[n]===o[e][n])return Number(e)}return-1}function tt(o,t){if(!o||!o.getBoundingClientRect)return L();var e=o,n=!1;do if(e.clientWidth<e.scrollWidth||e.clientHeight<e.scrollHeight){var i=h(e);if(e.clientWidth<e.scrollWidth&&(i.overflowX=="auto"||i.overflowX=="scroll")||e.clientHeight<e.scrollHeight&&(i.overflowY=="auto"||i.overflowY=="scroll")){if(!e.getBoundingClientRect||e===document.body)return L();if(n||t)return e;n=!0}}while(e=e.parentNode);return L()}function ke(o,t){if(o&&t)for(var e in t)t.hasOwnProperty(e)&&(o[e]=t[e]);return o}function zt(o,t){return Math.round(o.top)===Math.round(t.top)&&Math.round(o.left)===Math.round(t.left)&&Math.round(o.height)===Math.round(t.height)&&Math.round(o.width)===Math.round(t.width)}var _t;function we(o,t){return function(){if(!_t){var e=arguments,n=this;e.length===1?o.call(n,e[0]):o.apply(n,e),_t=setTimeout(function(){_t=void 0},t)}}}function Be(){clearTimeout(_t),_t=void 0}function _e(o,t,e){o.scrollLeft+=t,o.scrollTop+=e}function De(o){var t=window.Polymer,e=window.jQuery||window.Zepto;return t&&t.dom?t.dom(o).cloneNode(!0):e?e(o).clone(!0)[0]:o.cloneNode(!0)}function Se(o,t,e){var n={};return Array.from(o.children).forEach(function(i){var r,a,l,s;if(!(!W(i,t.draggable,o,!1)||i.animated||i===e)){var u=C(i);n.left=Math.min((r=n.left)!==null&&r!==void 0?r:1/0,u.left),n.top=Math.min((a=n.top)!==null&&a!==void 0?a:1/0,u.top),n.right=Math.max((l=n.right)!==null&&l!==void 0?l:-1/0,u.right),n.bottom=Math.max((s=n.bottom)!==null&&s!==void 0?s:-1/0,u.bottom)}}),n.width=n.right-n.left,n.height=n.bottom-n.top,n.x=n.left,n.y=n.top,n}var N="Sortable"+new Date().getTime();function He(){var o=[],t;return{captureAnimationState:function(){if(o=[],!!this.options.animation){var n=[].slice.call(this.el.children);n.forEach(function(i){if(!(h(i,"display")==="none"||i===p.ghost)){o.push({target:i,rect:C(i)});var r=z({},o[o.length-1].rect);if(i.thisAnimationDuration){var a=ct(i,!0);a&&(r.top-=a.f,r.left-=a.e)}i.fromRect=r}})}},addAnimationState:function(n){o.push(n)},removeAnimationState:function(n){o.splice(Ye(o,{target:n}),1)},animateAll:function(n){var i=this;if(!this.options.animation){clearTimeout(t),typeof n=="function"&&n();return}var r=!1,a=0;o.forEach(function(l){var s=0,u=l.target,d=u.fromRect,c=C(u),b=u.prevFromRect,w=u.prevToRect,E=l.rect,y=ct(u,!0);y&&(c.top-=y.f,c.left-=y.e),u.toRect=c,u.thisAnimationDuration&&zt(b,c)&&!zt(d,c)&&(E.top-c.top)/(E.left-c.left)===(d.top-c.top)/(d.left-c.left)&&(s=Ge(E,b,w,i.options)),zt(c,d)||(u.prevFromRect=d,u.prevToRect=c,s||(s=i.options.animation),i.animate(u,E,c,s)),s&&(r=!0,a=Math.max(a,s),clearTimeout(u.animationResetTimer),u.animationResetTimer=setTimeout(function(){u.animationTime=0,u.prevFromRect=null,u.fromRect=null,u.prevToRect=null,u.thisAnimationDuration=null},s),u.thisAnimationDuration=s)}),clearTimeout(t),r?t=setTimeout(function(){typeof n=="function"&&n()},a):typeof n=="function"&&n(),o=[]},animate:function(n,i,r,a){if(a){h(n,"transition",""),h(n,"transform","");var l=ct(this.el),s=l&&l.a,u=l&&l.d,d=(i.left-r.left)/(s||1),c=(i.top-r.top)/(u||1);n.animatingX=!!d,n.animatingY=!!c,h(n,"transform","translate3d("+d+"px,"+c+"px,0)"),this.forRepaintDummy=We(n),h(n,"transition","transform "+a+"ms"+(this.options.easing?" "+this.options.easing:"")),h(n,"transform","translate3d(0,0,0)"),typeof n.animated=="number"&&clearTimeout(n.animated),n.animated=setTimeout(function(){h(n,"transition",""),h(n,"transform",""),n.animated=!1,n.animatingX=!1,n.animatingY=!1},a)}}}}function We(o){return o.offsetWidth}function Ge(o,t,e,n){return Math.sqrt(Math.pow(t.top-o.top,2)+Math.pow(t.left-o.left,2))/Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))*n.animation}var lt=[],jt={initializeByDefault:!0},Ot={mount:function(t){for(var e in jt)jt.hasOwnProperty(e)&&!(e in t)&&(t[e]=jt[e]);lt.forEach(function(n){if(n.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")}),lt.push(t)},pluginEvent:function(t,e,n){var i=this;this.eventCanceled=!1,n.cancel=function(){i.eventCanceled=!0};var r=t+"Global";lt.forEach(function(a){e[a.pluginName]&&(e[a.pluginName][r]&&e[a.pluginName][r](z({sortable:e},n)),e.options[a.pluginName]&&e[a.pluginName][t]&&e[a.pluginName][t](z({sortable:e},n)))})},initializePlugins:function(t,e,n,i){lt.forEach(function(l){var s=l.pluginName;if(!(!t.options[s]&&!l.initializeByDefault)){var u=new l(t,e,t.options);u.sortable=t,u.options=t.options,t[s]=u,q(n,u.defaults)}});for(var r in t.options)if(t.options.hasOwnProperty(r)){var a=this.modifyOption(t,r,t.options[r]);typeof a<"u"&&(t.options[r]=a)}},getEventProperties:function(t,e){var n={};return lt.forEach(function(i){typeof i.eventProperties=="function"&&q(n,i.eventProperties.call(e[i.pluginName],t))}),n},modifyOption:function(t,e,n){var i;return lt.forEach(function(r){t[r.pluginName]&&r.optionListeners&&typeof r.optionListeners[e]=="function"&&(i=r.optionListeners[e].call(t[r.pluginName],n))}),i}};function Le(o){var t=o.sortable,e=o.rootEl,n=o.name,i=o.targetEl,r=o.cloneEl,a=o.toEl,l=o.fromEl,s=o.oldIndex,u=o.newIndex,d=o.oldDraggableIndex,c=o.newDraggableIndex,b=o.originalEvent,w=o.putSortable,E=o.extraEventProperties;if(t=t||e&&e[N],!!t){var y,k=t.options,j="on"+n.charAt(0).toUpperCase()+n.substr(1);window.CustomEvent&&!V&&!Ct?y=new CustomEvent(n,{bubbles:!0,cancelable:!0}):(y=document.createEvent("Event"),y.initEvent(n,!0,!0)),y.to=a||e,y.from=l||e,y.item=i||e,y.clone=r,y.oldIndex=s,y.newIndex=u,y.oldDraggableIndex=d,y.newDraggableIndex=c,y.originalEvent=b,y.pullMode=w?w.lastPutMode:void 0;var A=z(z({},E),Ot.getEventProperties(n,t));for(var B in A)y[B]=A[B];e&&e.dispatchEvent(y),k[j]&&k[j].call(t,y)}}var ze=["evt"],x=function(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=n.evt,r=Re(n,ze);Ot.pluginEvent.bind(p)(t,e,z({dragEl:f,parentEl:S,ghostEl:g,rootEl:_,nextEl:at,lastDownEl:Ft,cloneEl:D,cloneHidden:J,dragStarted:bt,putSortable:O,activeSortable:p.active,originalEvent:i,oldIndex:ft,oldDraggableIndex:Dt,newIndex:X,newDraggableIndex:Q,hideGhostForTarget:Ie,unhideGhostForTarget:Ae,cloneNowHidden:function(){J=!0},cloneNowShown:function(){J=!1},dispatchSortableEvent:function(l){P({sortable:e,name:l,originalEvent:i})}},r))};function P(o){Le(z({putSortable:O,cloneEl:D,targetEl:f,rootEl:_,oldIndex:ft,oldDraggableIndex:Dt,newIndex:X,newDraggableIndex:Q},o))}var f,S,g,_,at,Ft,D,J,ft,X,Dt,Q,At,O,ut=!1,Bt=!1,Ht=[],it,H,$t,Ut,he,pe,bt,st,St,Tt=!1,Pt=!1,Rt,I,qt=[],Jt=!1,Wt=[],Lt=typeof document<"u",xt=oe,ge=Ct||V?"cssFloat":"float",je=Lt&&!ve&&!oe&&"draggable"in document.createElement("div"),Te=(function(){if(Lt){if(V)return!1;var o=document.createElement("x");return o.style.cssText="pointer-events:auto",o.style.pointerEvents==="auto"}})(),Ce=function(t,e){var n=h(t),i=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),r=dt(t,0,e),a=dt(t,1,e),l=r&&h(r),s=a&&h(a),u=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+C(r).width,d=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+C(a).width;if(n.display==="flex")return n.flexDirection==="column"||n.flexDirection==="column-reverse"?"vertical":"horizontal";if(n.display==="grid")return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(r&&l.float&&l.float!=="none"){var c=l.float==="left"?"left":"right";return a&&(s.clear==="both"||s.clear===c)?"vertical":"horizontal"}return r&&(l.display==="block"||l.display==="flex"||l.display==="table"||l.display==="grid"||u>=i&&n[ge]==="none"||a&&n[ge]==="none"&&u+d>i)?"vertical":"horizontal"},$e=function(t,e,n){var i=n?t.left:t.top,r=n?t.right:t.bottom,a=n?t.width:t.height,l=n?e.left:e.top,s=n?e.right:e.bottom,u=n?e.width:e.height;return i===l||r===s||i+a/2===l+u/2},Ue=function(t,e){var n;return Ht.some(function(i){var r=i[N].options.emptyInsertThreshold;if(!(!r||ie(i))){var a=C(i),l=t>=a.left-r&&t<=a.right+r,s=e>=a.top-r&&e<=a.bottom+r;if(l&&s)return n=i}}),n},Oe=function(t){function e(r,a){return function(l,s,u,d){var c=l.options.group.name&&s.options.group.name&&l.options.group.name===s.options.group.name;if(r==null&&(a||c))return!0;if(r==null||r===!1)return!1;if(a&&r==="clone")return r;if(typeof r=="function")return e(r(l,s,u,d),a)(l,s,u,d);var b=(a?l:s).options.group.name;return r===!0||typeof r=="string"&&r===b||r.join&&r.indexOf(b)>-1}}var n={},i=t.group;(!i||Mt(i)!="object")&&(i={name:i}),n.name=i.name,n.checkPull=e(i.pull,!0),n.checkPut=e(i.put),n.revertClone=i.revertClone,t.group=n},Ie=function(){!Te&&g&&h(g,"display","none")},Ae=function(){!Te&&g&&h(g,"display","")};Lt&&!ve&&document.addEventListener("click",function(o){if(Bt)return o.preventDefault(),o.stopPropagation&&o.stopPropagation(),o.stopImmediatePropagation&&o.stopImmediatePropagation(),Bt=!1,!1},!0);var rt=function(t){if(f){t=t.touches?t.touches[0]:t;var e=Ue(t.clientX,t.clientY);if(e){var n={};for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.target=n.rootEl=e,n.preventDefault=void 0,n.stopPropagation=void 0,e[N]._onDragOver(n)}}},qe=function(t){f&&f.parentNode[N]._isOutsideThisEl(t.target)};function p(o,t){if(!(o&&o.nodeType&&o.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(o));this.el=o,this.options=t=q({},t),o[N]=this;var e={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(o.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Ce(o,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(a,l){a.setData("Text",l.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:p.supportPointer!==!1&&"PointerEvent"in window&&(!wt||oe),emptyInsertThreshold:5};Ot.initializePlugins(this,o,e);for(var n in e)!(n in t)&&(t[n]=e[n]);Oe(t);for(var i in this)i.charAt(0)==="_"&&typeof this[i]=="function"&&(this[i]=this[i].bind(this));this.nativeDraggable=t.forceFallback?!1:je,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?v(o,"pointerdown",this._onTapStart):(v(o,"mousedown",this._onTapStart),v(o,"touchstart",this._onTapStart)),this.nativeDraggable&&(v(o,"dragover",this),v(o,"dragenter",this)),Ht.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),q(this,He())}p.prototype={constructor:p,_isOutsideThisEl:function(t){!this.el.contains(t)&&t!==this.el&&(st=null)},_getDirection:function(t,e){return typeof this.options.direction=="function"?this.options.direction.call(this,t,e,f):this.options.direction},_onTapStart:function(t){if(t.cancelable){var e=this,n=this.el,i=this.options,r=i.preventOnFilter,a=t.type,l=t.touches&&t.touches[0]||t.pointerType&&t.pointerType==="touch"&&t,s=(l||t).target,u=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||s,d=i.filter;if(nn(n),!f&&!(/mousedown|pointerdown/.test(a)&&t.button!==0||i.disabled)&&!u.isContentEditable&&!(!this.nativeDraggable&&wt&&s&&s.tagName.toUpperCase()==="SELECT")&&(s=W(s,i.draggable,n,!1),!(s&&s.animated)&&Ft!==s)){if(ft=Y(s),Dt=Y(s,i.draggable),typeof d=="function"){if(d.call(this,t,s,this)){P({sortable:e,rootEl:u,name:"filter",targetEl:s,toEl:n,fromEl:n}),x("filter",e,{evt:t}),r&&t.preventDefault();return}}else if(d&&(d=d.split(",").some(function(c){if(c=W(u,c.trim(),n,!1),c)return P({sortable:e,rootEl:c,name:"filter",targetEl:s,fromEl:n,toEl:n}),x("filter",e,{evt:t}),!0}),d)){r&&t.preventDefault();return}i.handle&&!W(u,i.handle,n,!1)||this._prepareDragStart(t,l,s)}}},_prepareDragStart:function(t,e,n){var i=this,r=i.el,a=i.options,l=r.ownerDocument,s;if(n&&!f&&n.parentNode===r){var u=C(n);if(_=r,f=n,S=f.parentNode,at=f.nextSibling,Ft=n,At=a.group,p.dragged=f,it={target:f,clientX:(e||t).clientX,clientY:(e||t).clientY},he=it.clientX-u.left,pe=it.clientY-u.top,this._lastX=(e||t).clientX,this._lastY=(e||t).clientY,f.style["will-change"]="all",s=function(){if(x("delayEnded",i,{evt:t}),p.eventCanceled){i._onDrop();return}i._disableDelayedDragEvents(),!ue&&i.nativeDraggable&&(f.draggable=!0),i._triggerDragStart(t,e),P({sortable:i,name:"choose",originalEvent:t}),R(f,a.chosenClass,!0)},a.ignore.split(",").forEach(function(d){ye(f,d.trim(),Vt)}),v(l,"dragover",rt),v(l,"mousemove",rt),v(l,"touchmove",rt),a.supportPointer?(v(l,"pointerup",i._onDrop),!this.nativeDraggable&&v(l,"pointercancel",i._onDrop)):(v(l,"mouseup",i._onDrop),v(l,"touchend",i._onDrop),v(l,"touchcancel",i._onDrop)),ue&&this.nativeDraggable&&(this.options.touchStartThreshold=4,f.draggable=!0),x("delayStart",this,{evt:t}),a.delay&&(!a.delayOnTouchOnly||e)&&(!this.nativeDraggable||!(Ct||V))){if(p.eventCanceled){this._onDrop();return}a.supportPointer?(v(l,"pointerup",i._disableDelayedDrag),v(l,"pointercancel",i._disableDelayedDrag)):(v(l,"mouseup",i._disableDelayedDrag),v(l,"touchend",i._disableDelayedDrag),v(l,"touchcancel",i._disableDelayedDrag)),v(l,"mousemove",i._delayedDragTouchMoveHandler),v(l,"touchmove",i._delayedDragTouchMoveHandler),a.supportPointer&&v(l,"pointermove",i._delayedDragTouchMoveHandler),i._dragStartTimer=setTimeout(s,a.delay)}else s()}},_delayedDragTouchMoveHandler:function(t){var e=t.touches?t.touches[0]:t;Math.max(Math.abs(e.clientX-this._lastX),Math.abs(e.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){f&&Vt(f),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;m(t,"mouseup",this._disableDelayedDrag),m(t,"touchend",this._disableDelayedDrag),m(t,"touchcancel",this._disableDelayedDrag),m(t,"pointerup",this._disableDelayedDrag),m(t,"pointercancel",this._disableDelayedDrag),m(t,"mousemove",this._delayedDragTouchMoveHandler),m(t,"touchmove",this._delayedDragTouchMoveHandler),m(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,e){e=e||t.pointerType=="touch"&&t,!this.nativeDraggable||e?this.options.supportPointer?v(document,"pointermove",this._onTouchMove):e?v(document,"touchmove",this._onTouchMove):v(document,"mousemove",this._onTouchMove):(v(f,"dragend",this),v(_,"dragstart",this._onDragStart));try{document.selection?Xt(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(t,e){if(ut=!1,_&&f){x("dragStarted",this,{evt:e}),this.nativeDraggable&&v(document,"dragover",qe);var n=this.options;!t&&R(f,n.dragClass,!1),R(f,n.ghostClass,!0),p.active=this,t&&this._appendGhost(),P({sortable:this,name:"start",originalEvent:e})}else this._nulling()},_emulateDragOver:function(){if(H){this._lastX=H.clientX,this._lastY=H.clientY,Ie();for(var t=document.elementFromPoint(H.clientX,H.clientY),e=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(H.clientX,H.clientY),t!==e);)e=t;if(f.parentNode[N]._isOutsideThisEl(t),e)do{if(e[N]){var n=void 0;if(n=e[N]._onDragOver({clientX:H.clientX,clientY:H.clientY,target:t,rootEl:e}),n&&!this.options.dragoverBubble)break}t=e}while(e=Ee(e));Ae()}},_onTouchMove:function(t){if(it){var e=this.options,n=e.fallbackTolerance,i=e.fallbackOffset,r=t.touches?t.touches[0]:t,a=g&&ct(g,!0),l=g&&a&&a.a,s=g&&a&&a.d,u=xt&&I&&de(I),d=(r.clientX-it.clientX+i.x)/(l||1)+(u?u[0]-qt[0]:0)/(l||1),c=(r.clientY-it.clientY+i.y)/(s||1)+(u?u[1]-qt[1]:0)/(s||1);if(!p.active&&!ut){if(n&&Math.max(Math.abs(r.clientX-this._lastX),Math.abs(r.clientY-this._lastY))<n)return;this._onDragStart(t,!0)}if(g){a?(a.e+=d-($t||0),a.f+=c-(Ut||0)):a={a:1,b:0,c:0,d:1,e:d,f:c};var b="matrix(".concat(a.a,",").concat(a.b,",").concat(a.c,",").concat(a.d,",").concat(a.e,",").concat(a.f,")");h(g,"webkitTransform",b),h(g,"mozTransform",b),h(g,"msTransform",b),h(g,"transform",b),$t=d,Ut=c,H=r}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!g){var t=this.options.fallbackOnBody?document.body:_,e=C(f,!0,xt,!0,t),n=this.options;if(xt){for(I=t;h(I,"position")==="static"&&h(I,"transform")==="none"&&I!==document;)I=I.parentNode;I!==document.body&&I!==document.documentElement?(I===document&&(I=L()),e.top+=I.scrollTop,e.left+=I.scrollLeft):I=L(),qt=de(I)}g=f.cloneNode(!0),R(g,n.ghostClass,!1),R(g,n.fallbackClass,!0),R(g,n.dragClass,!0),h(g,"transition",""),h(g,"transform",""),h(g,"box-sizing","border-box"),h(g,"margin",0),h(g,"top",e.top),h(g,"left",e.left),h(g,"width",e.width),h(g,"height",e.height),h(g,"opacity","0.8"),h(g,"position",xt?"absolute":"fixed"),h(g,"zIndex","100000"),h(g,"pointerEvents","none"),p.ghost=g,t.appendChild(g),h(g,"transform-origin",he/parseInt(g.style.width)*100+"% "+pe/parseInt(g.style.height)*100+"%")}},_onDragStart:function(t,e){var n=this,i=t.dataTransfer,r=n.options;if(x("dragStart",this,{evt:t}),p.eventCanceled){this._onDrop();return}x("setupClone",this),p.eventCanceled||(D=De(f),D.removeAttribute("id"),D.draggable=!1,D.style["will-change"]="",this._hideClone(),R(D,this.options.chosenClass,!1),p.clone=D),n.cloneId=Xt(function(){x("clone",n),!p.eventCanceled&&(n.options.removeCloneOnHide||_.insertBefore(D,f),n._hideClone(),P({sortable:n,name:"clone"}))}),!e&&R(f,r.dragClass,!0),e?(Bt=!0,n._loopId=setInterval(n._emulateDragOver,50)):(m(document,"mouseup",n._onDrop),m(document,"touchend",n._onDrop),m(document,"touchcancel",n._onDrop),i&&(i.effectAllowed="move",r.setData&&r.setData.call(n,i,f)),v(document,"drop",n),h(f,"transform","translateZ(0)")),ut=!0,n._dragStartId=Xt(n._dragStarted.bind(n,e,t)),v(document,"selectstart",n),bt=!0,window.getSelection().removeAllRanges(),wt&&h(document.body,"user-select","none")},_onDragOver:function(t){var e=this.el,n=t.target,i,r,a,l=this.options,s=l.group,u=p.active,d=At===s,c=l.sort,b=O||u,w,E=this,y=!1;if(Jt)return;function k(vt,xe){x(vt,E,z({evt:t,isOwner:d,axis:w?"vertical":"horizontal",revert:a,dragRect:i,targetRect:r,canSort:c,fromSortable:b,target:n,completed:A,onMove:function(le,Ne){return Nt(_,e,f,i,le,C(le),t,Ne)},changed:B},xe))}function j(){k("dragOverAnimationCapture"),E.captureAnimationState(),E!==b&&b.captureAnimationState()}function A(vt){return k("dragOverCompleted",{insertion:vt}),vt&&(d?u._hideClone():u._showClone(E),E!==b&&(R(f,O?O.options.ghostClass:u.options.ghostClass,!1),R(f,l.ghostClass,!0)),O!==E&&E!==p.active?O=E:E===p.active&&O&&(O=null),b===E&&(E._ignoreWhileAnimating=n),E.animateAll(function(){k("dragOverAnimationComplete"),E._ignoreWhileAnimating=null}),E!==b&&(b.animateAll(),b._ignoreWhileAnimating=null)),(n===f&&!f.animated||n===e&&!n.animated)&&(st=null),!l.dragoverBubble&&!t.rootEl&&n!==document&&(f.parentNode[N]._isOutsideThisEl(t.target),!vt&&rt(t)),!l.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),y=!0}function B(){X=Y(f),Q=Y(f,l.draggable),P({sortable:E,name:"change",toEl:e,newIndex:X,newDraggableIndex:Q,originalEvent:t})}if(t.preventDefault!==void 0&&t.cancelable&&t.preventDefault(),n=W(n,l.draggable,e,!0),k("dragOver"),p.eventCanceled)return y;if(f.contains(t.target)||n.animated&&n.animatingX&&n.animatingY||E._ignoreWhileAnimating===n)return A(!1);if(Bt=!1,u&&!l.disabled&&(d?c||(a=S!==_):O===this||(this.lastPutMode=At.checkPull(this,u,f,t))&&s.checkPut(this,u,f,t))){if(w=this._getDirection(t,n)==="vertical",i=C(f),k("dragOverValid"),p.eventCanceled)return y;if(a)return S=_,j(),this._hideClone(),k("revert"),p.eventCanceled||(at?_.insertBefore(f,at):_.appendChild(f)),A(!0);var M=ie(e,l.draggable);if(!M||Qe(t,w,this)&&!M.animated){if(M===f)return A(!1);if(M&&e===t.target&&(n=M),n&&(r=C(n)),Nt(_,e,f,i,n,r,t,!!n)!==!1)return j(),M&&M.nextSibling?e.insertBefore(f,M.nextSibling):e.appendChild(f),S=e,B(),A(!0)}else if(M&&Ze(t,w,this)){var et=dt(e,0,l,!0);if(et===f)return A(!1);if(n=et,r=C(n),Nt(_,e,f,i,n,r,t,!1)!==!1)return j(),e.insertBefore(f,et),S=e,B(),A(!0)}else if(n.parentNode===e){r=C(n);var G=0,nt,ht=f.parentNode!==e,F=!$e(f.animated&&f.toRect||i,n.animated&&n.toRect||r,w),pt=w?"top":"left",K=ce(n,"top","top")||ce(f,"top","top"),gt=K?K.scrollTop:void 0;st!==n&&(nt=r[pt],Tt=!1,Pt=!F&&l.invertSwap||ht),G=Je(t,n,r,w,F?1:l.swapThreshold,l.invertedSwapThreshold==null?l.swapThreshold:l.invertedSwapThreshold,Pt,st===n);var $;if(G!==0){var ot=Y(f);do ot-=G,$=S.children[ot];while($&&(h($,"display")==="none"||$===g))}if(G===0||$===n)return A(!1);st=n,St=G;var mt=n.nextElementSibling,Z=!1;Z=G===1;var It=Nt(_,e,f,i,n,r,t,Z);if(It!==!1)return(It===1||It===-1)&&(Z=It===1),Jt=!0,setTimeout(Ke,30),j(),Z&&!mt?e.appendChild(f):n.parentNode.insertBefore(f,Z?mt:n),K&&_e(K,0,gt-K.scrollTop),S=f.parentNode,nt!==void 0&&!Pt&&(Rt=Math.abs(nt-C(n)[pt])),B(),A(!0)}if(e.contains(f))return A(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){m(document,"mousemove",this._onTouchMove),m(document,"touchmove",this._onTouchMove),m(document,"pointermove",this._onTouchMove),m(document,"dragover",rt),m(document,"mousemove",rt),m(document,"touchmove",rt)},_offUpEvents:function(){var t=this.el.ownerDocument;m(t,"mouseup",this._onDrop),m(t,"touchend",this._onDrop),m(t,"pointerup",this._onDrop),m(t,"pointercancel",this._onDrop),m(t,"touchcancel",this._onDrop),m(document,"selectstart",this)},_onDrop:function(t){var e=this.el,n=this.options;if(X=Y(f),Q=Y(f,n.draggable),x("drop",this,{evt:t}),S=f&&f.parentNode,X=Y(f),Q=Y(f,n.draggable),p.eventCanceled){this._nulling();return}ut=!1,Pt=!1,Tt=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),te(this.cloneId),te(this._dragStartId),this.nativeDraggable&&(m(document,"drop",this),m(e,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),wt&&h(document.body,"user-select",""),h(f,"transform",""),t&&(bt&&(t.cancelable&&t.preventDefault(),!n.dropBubble&&t.stopPropagation()),g&&g.parentNode&&g.parentNode.removeChild(g),(_===S||O&&O.lastPutMode!=="clone")&&D&&D.parentNode&&D.parentNode.removeChild(D),f&&(this.nativeDraggable&&m(f,"dragend",this),Vt(f),f.style["will-change"]="",bt&&!ut&&R(f,O?O.options.ghostClass:this.options.ghostClass,!1),R(f,this.options.chosenClass,!1),P({sortable:this,name:"unchoose",toEl:S,newIndex:null,newDraggableIndex:null,originalEvent:t}),_!==S?(X>=0&&(P({rootEl:S,name:"add",toEl:S,fromEl:_,originalEvent:t}),P({sortable:this,name:"remove",toEl:S,originalEvent:t}),P({rootEl:S,name:"sort",toEl:S,fromEl:_,originalEvent:t}),P({sortable:this,name:"sort",toEl:S,originalEvent:t})),O&&O.save()):X!==ft&&X>=0&&(P({sortable:this,name:"update",toEl:S,originalEvent:t}),P({sortable:this,name:"sort",toEl:S,originalEvent:t})),p.active&&((X==null||X===-1)&&(X=ft,Q=Dt),P({sortable:this,name:"end",toEl:S,originalEvent:t}),this.save()))),this._nulling()},_nulling:function(){x("nulling",this),_=f=S=g=at=D=Ft=J=it=H=bt=X=Q=ft=Dt=st=St=O=At=p.dragged=p.ghost=p.clone=p.active=null,Wt.forEach(function(t){t.checked=!0}),Wt.length=$t=Ut=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":f&&(this._onDragOver(t),Ve(t));break;case"selectstart":t.preventDefault();break}},toArray:function(){for(var t=[],e,n=this.el.children,i=0,r=n.length,a=this.options;i<r;i++)e=n[i],W(e,a.draggable,this.el,!1)&&t.push(e.getAttribute(a.dataIdAttr)||en(e));return t},sort:function(t,e){var n={},i=this.el;this.toArray().forEach(function(r,a){var l=i.children[a];W(l,this.options.draggable,i,!1)&&(n[r]=l)},this),e&&this.captureAnimationState(),t.forEach(function(r){n[r]&&(i.removeChild(n[r]),i.appendChild(n[r]))}),e&&this.animateAll()},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,e){return W(t,e||this.options.draggable,this.el,!1)},option:function(t,e){var n=this.options;if(e===void 0)return n[t];var i=Ot.modifyOption(this,t,e);typeof i<"u"?n[t]=i:n[t]=e,t==="group"&&Oe(n)},destroy:function(){x("destroy",this);var t=this.el;t[N]=null,m(t,"mousedown",this._onTapStart),m(t,"touchstart",this._onTapStart),m(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(m(t,"dragover",this),m(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),function(e){e.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),Ht.splice(Ht.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!J){if(x("hideClone",this),p.eventCanceled)return;h(D,"display","none"),this.options.removeCloneOnHide&&D.parentNode&&D.parentNode.removeChild(D),J=!0}},_showClone:function(t){if(t.lastPutMode!=="clone"){this._hideClone();return}if(J){if(x("showClone",this),p.eventCanceled)return;f.parentNode==_&&!this.options.group.revertClone?_.insertBefore(D,f):at?_.insertBefore(D,at):_.appendChild(D),this.options.group.revertClone&&this.animate(f,D),h(D,"display",""),J=!1}}};function Ve(o){o.dataTransfer&&(o.dataTransfer.dropEffect="move"),o.cancelable&&o.preventDefault()}function Nt(o,t,e,n,i,r,a,l){var s,u=o[N],d=u.options.onMove,c;return window.CustomEvent&&!V&&!Ct?s=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(s=document.createEvent("Event"),s.initEvent("move",!0,!0)),s.to=t,s.from=o,s.dragged=e,s.draggedRect=n,s.related=i||t,s.relatedRect=r||C(t),s.willInsertAfter=l,s.originalEvent=a,o.dispatchEvent(s),d&&(c=d.call(u,s,a)),c}function Vt(o){o.draggable=!1}function Ke(){Jt=!1}function Ze(o,t,e){var n=C(dt(e.el,0,e.options,!0)),i=Se(e.el,e.options,g),r=10;return t?o.clientX<i.left-r||o.clientY<n.top&&o.clientX<n.right:o.clientY<i.top-r||o.clientY<n.bottom&&o.clientX<n.left}function Qe(o,t,e){var n=C(ie(e.el,e.options.draggable)),i=Se(e.el,e.options,g),r=10;return t?o.clientX>i.right+r||o.clientY>n.bottom&&o.clientX>n.left:o.clientY>i.bottom+r||o.clientX>n.right&&o.clientY>n.top}function Je(o,t,e,n,i,r,a,l){var s=n?o.clientY:o.clientX,u=n?e.height:e.width,d=n?e.top:e.left,c=n?e.bottom:e.right,b=!1;if(!a){if(l&&Rt<u*i){if(!Tt&&(St===1?s>d+u*r/2:s<c-u*r/2)&&(Tt=!0),Tt)b=!0;else if(St===1?s<d+Rt:s>c-Rt)return-St}else if(s>d+u*(1-i)/2&&s<c-u*(1-i)/2)return tn(t)}return b=b||a,b&&(s<d+u*r/2||s>c-u*r/2)?s>d+u/2?1:-1:0}function tn(o){return Y(f)<Y(o)?1:-1}function en(o){for(var t=o.tagName+o.className+o.src+o.href+o.textContent,e=t.length,n=0;e--;)n+=t.charCodeAt(e);return n.toString(36)}function nn(o){Wt.length=0;for(var t=o.getElementsByTagName("input"),e=t.length;e--;){var n=t[e];n.checked&&Wt.push(n)}}function Xt(o){return setTimeout(o,0)}function te(o){return clearTimeout(o)}Lt&&v(document,"touchmove",function(o){(p.active||ut)&&o.cancelable&&o.preventDefault()});p.utils={on:v,off:m,css:h,find:ye,is:function(t,e){return!!W(t,e,t,!1)},extend:ke,throttle:we,closest:W,toggleClass:R,clone:De,index:Y,nextTick:Xt,cancelNextTick:te,detectDirection:Ce,getChild:dt,expando:N};p.get=function(o){return o[N]};p.mount=function(){for(var o=arguments.length,t=new Array(o),e=0;e<o;e++)t[e]=arguments[e];t[0].constructor===Array&&(t=t[0]),t.forEach(function(n){if(!n.prototype||!n.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(n));n.utils&&(p.utils=z(z({},p.utils),n.utils)),Ot.mount(n)})};p.create=function(o,t){return new p(o,t)};p.version=Xe;var T=[],Et,ee,ne=!1,Kt,Zt,Gt,yt;function on(){function o(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var t in this)t.charAt(0)==="_"&&typeof this[t]=="function"&&(this[t]=this[t].bind(this))}return o.prototype={dragStarted:function(e){var n=e.originalEvent;this.sortable.nativeDraggable?v(document,"dragover",this._handleAutoScroll):this.options.supportPointer?v(document,"pointermove",this._handleFallbackAutoScroll):n.touches?v(document,"touchmove",this._handleFallbackAutoScroll):v(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var n=e.originalEvent;!this.options.dragOverBubble&&!n.rootEl&&this._handleAutoScroll(n)},drop:function(){this.sortable.nativeDraggable?m(document,"dragover",this._handleAutoScroll):(m(document,"pointermove",this._handleFallbackAutoScroll),m(document,"touchmove",this._handleFallbackAutoScroll),m(document,"mousemove",this._handleFallbackAutoScroll)),me(),Yt(),Be()},nulling:function(){Gt=ee=Et=ne=yt=Kt=Zt=null,T.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,n){var i=this,r=(e.touches?e.touches[0]:e).clientX,a=(e.touches?e.touches[0]:e).clientY,l=document.elementFromPoint(r,a);if(Gt=e,n||this.options.forceAutoScrollFallback||Ct||V||wt){Qt(e,this.options,l,n);var s=tt(l,!0);ne&&(!yt||r!==Kt||a!==Zt)&&(yt&&me(),yt=setInterval(function(){var u=tt(document.elementFromPoint(r,a),!0);u!==s&&(s=u,Yt()),Qt(e,i.options,u,n)},10),Kt=r,Zt=a)}else{if(!this.options.bubbleScroll||tt(l,!0)===L()){Yt();return}Qt(e,this.options,tt(l,!1),!1)}}},q(o,{pluginName:"scroll",initializeByDefault:!0})}function Yt(){T.forEach(function(o){clearInterval(o.pid)}),T=[]}function me(){clearInterval(yt)}var Qt=we(function(o,t,e,n){if(t.scroll){var i=(o.touches?o.touches[0]:o).clientX,r=(o.touches?o.touches[0]:o).clientY,a=t.scrollSensitivity,l=t.scrollSpeed,s=L(),u=!1,d;ee!==e&&(ee=e,Yt(),Et=t.scroll,d=t.scrollFn,Et===!0&&(Et=tt(e,!0)));var c=0,b=Et;do{var w=b,E=C(w),y=E.top,k=E.bottom,j=E.left,A=E.right,B=E.width,M=E.height,et=void 0,G=void 0,nt=w.scrollWidth,ht=w.scrollHeight,F=h(w),pt=w.scrollLeft,K=w.scrollTop;w===s?(et=B<nt&&(F.overflowX==="auto"||F.overflowX==="scroll"||F.overflowX==="visible"),G=M<ht&&(F.overflowY==="auto"||F.overflowY==="scroll"||F.overflowY==="visible")):(et=B<nt&&(F.overflowX==="auto"||F.overflowX==="scroll"),G=M<ht&&(F.overflowY==="auto"||F.overflowY==="scroll"));var gt=et&&(Math.abs(A-i)<=a&&pt+B<nt)-(Math.abs(j-i)<=a&&!!pt),$=G&&(Math.abs(k-r)<=a&&K+M<ht)-(Math.abs(y-r)<=a&&!!K);if(!T[c])for(var ot=0;ot<=c;ot++)T[ot]||(T[ot]={});(T[c].vx!=gt||T[c].vy!=$||T[c].el!==w)&&(T[c].el=w,T[c].vx=gt,T[c].vy=$,clearInterval(T[c].pid),(gt!=0||$!=0)&&(u=!0,T[c].pid=setInterval((function(){n&&this.layer===0&&p.active._onTouchMove(Gt);var mt=T[this.layer].vy?T[this.layer].vy*l:0,Z=T[this.layer].vx?T[this.layer].vx*l:0;typeof d=="function"&&d.call(p.dragged.parentNode[N],Z,mt,o,Gt,T[this.layer].el)!=="continue"||_e(T[this.layer].el,Z,mt)}).bind({layer:c}),24))),c++}while(t.bubbleScroll&&b!==s&&(b=tt(b,!1)));ne=u}},30),Pe=function(t){var e=t.originalEvent,n=t.putSortable,i=t.dragEl,r=t.activeSortable,a=t.dispatchSortableEvent,l=t.hideGhostForTarget,s=t.unhideGhostForTarget;if(e){var u=n||r;l();var d=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e,c=document.elementFromPoint(d.clientX,d.clientY);s(),u&&!u.el.contains(c)&&(a("spill"),this.onSpill({dragEl:i,putSortable:n}))}};function re(){}re.prototype={startIndex:null,dragStart:function(t){var e=t.oldDraggableIndex;this.startIndex=e},onSpill:function(t){var e=t.dragEl,n=t.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var i=dt(this.sortable.el,this.startIndex,this.options);i?this.sortable.el.insertBefore(e,i):this.sortable.el.appendChild(e),this.sortable.animateAll(),n&&n.animateAll()},drop:Pe};q(re,{pluginName:"revertOnSpill"});function ae(){}ae.prototype={onSpill:function(t){var e=t.dragEl,n=t.putSortable,i=n||this.sortable;i.captureAnimationState(),e.parentNode&&e.parentNode.removeChild(e),i.animateAll()},drop:Pe};q(ae,{pluginName:"removeOnSpill"});p.mount(new on);p.mount(ae,re);exports.Sortable=p;
|
|
@@ -466,14 +466,14 @@ function P(o) {
|
|
|
466
466
|
newDraggableIndex: Q
|
|
467
467
|
}, o));
|
|
468
468
|
}
|
|
469
|
-
var f, S, g, _, at, Ft, D, J, ft, X, Dt, Q, At, O, ut = !1, Bt = !1, Ht = [], it, H, $t, Ut, he, pe, bt, st, St, Tt = !1, Pt = !1, Rt, I, qt = [], Jt = !1, Wt = [], Lt = typeof document < "u", xt = oe, ge = Ct || V ? "cssFloat" : "float", je = Lt && !ve && !oe && "draggable" in document.createElement("div"), Te = function() {
|
|
469
|
+
var f, S, g, _, at, Ft, D, J, ft, X, Dt, Q, At, O, ut = !1, Bt = !1, Ht = [], it, H, $t, Ut, he, pe, bt, st, St, Tt = !1, Pt = !1, Rt, I, qt = [], Jt = !1, Wt = [], Lt = typeof document < "u", xt = oe, ge = Ct || V ? "cssFloat" : "float", je = Lt && !ve && !oe && "draggable" in document.createElement("div"), Te = (function() {
|
|
470
470
|
if (Lt) {
|
|
471
471
|
if (V)
|
|
472
472
|
return !1;
|
|
473
473
|
var o = document.createElement("x");
|
|
474
474
|
return o.style.cssText = "pointer-events:auto", o.style.pointerEvents === "auto";
|
|
475
475
|
}
|
|
476
|
-
}(), Ce = function(t, e) {
|
|
476
|
+
})(), Ce = function(t, e) {
|
|
477
477
|
var n = h(t), i = parseInt(n.width) - parseInt(n.paddingLeft) - parseInt(n.paddingRight) - parseInt(n.borderLeftWidth) - parseInt(n.borderRightWidth), r = dt(t, 0, e), a = dt(t, 1, e), l = r && h(r), s = a && h(a), u = l && parseInt(l.marginLeft) + parseInt(l.marginRight) + C(r).width, d = s && parseInt(s.marginLeft) + parseInt(s.marginRight) + C(a).width;
|
|
478
478
|
if (n.display === "flex")
|
|
479
479
|
return n.flexDirection === "column" || n.flexDirection === "column-reverse" ? "vertical" : "horizontal";
|