6 lines
107 KiB
Text
6 lines
107 KiB
Text
function _typeof(e){return(_typeof="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})(e)}function _wrapRegExp(){_wrapRegExp=function(e,t){return new o(e,void 0,t)};var n=RegExp.prototype,l=new WeakMap;function o(e,t,r){t=RegExp(e,t);return l.set(t,r||l.get(e)),_setPrototypeOf(t,o.prototype)}function a(n,e){var a=l.get(e);return Object.keys(a).reduce(function(e,t){var r=a[t];if("number"==typeof r)e[t]=n[r];else{for(var o=0;void 0===n[r[o]]&&o+1<r.length;)o++;e[t]=n[r[o]]}return e},Object.create(null))}return _inherits(o,RegExp),o.prototype.exec=function(e){var t,e=n.exec.call(this,e);return e&&(e.groups=a(e,this),t=e.indices)&&(t.groups=a(t,this)),e},o.prototype[Symbol.replace]=function(e,t){var r,o;return"string"==typeof t?(r=l.get(this),n[Symbol.replace].call(this,e,t.replace(/\$<([^>]+)>/g,function(e,t){t=r[t];return"$"+(Array.isArray(t)?t.join("$"):t)}))):"function"==typeof t?(o=this,n[Symbol.replace].call(this,e,function(){var e=arguments;return"object"!=_typeof(e[e.length-1])&&(e=[].slice.call(e)).push(a(e,o)),t.apply(this,e)})):n[Symbol.replace].call(this,e,t)},_wrapRegExp.apply(this,arguments)}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_unsupportedIterableToArray(e,t)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,t){var r;if(e)return"string"==typeof e?_arrayLikeToArray(e,t):"Map"===(r="Object"===(r={}.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:r)||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(e,t):void 0}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,o=Array(t);r<t;r++)o[r]=e[r];return o}function _iterableToArrayLimit(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var o,n,a,l,i=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(o=a.call(r)).done)&&(i.push(o.value),i.length!==t);s=!0);}catch(e){c=!0,n=e}finally{try{if(!s&&null!=r.return&&(l=r.return(),Object(l)!==l))return}finally{if(c)throw n}}return i}}function _arrayWithHoles(e){if(Array.isArray(e))return e}function _defineProperty(e,t,r){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _toPropertyKey(e){e=_toPrimitive(e,"string");return"symbol"==_typeof(e)?e:e+""}function _toPrimitive(e,t){if("object"!=_typeof(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!=_typeof(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}function _typeof(e){return(_typeof="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})(e)}function _typeof(e){return(_typeof="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})(e)}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,t){var r;if(e)return"string"==typeof e?_arrayLikeToArray(e,t):"Map"===(r="Object"===(r={}.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:r)||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(e,t):void 0}function _iterableToArray(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,o=Array(t);r<t;r++)o[r]=e[r];return o}document.addEventListener("DOMContentLoaded",function(){var e;e=function(){function r(e){var t=this,r=(this.parentContainer=null,this.matrixContainer=null,this.mainTable=null,this.id=null,function(e){var e=e.getAttribute("id");return e?(e=(null==(e=e.match(_wrapRegExp(/^wptb\x2Dtable\x2Did\x2D(\d+)$/,{id:1})))?void 0:e.groups).id,parseInt(e,10)):null});if(!e.classList.contains("wptb-table-container"))throw new Error("invalid table top level container");e=(t.parentContainer=e).querySelector(".wptb-table-container-matrix");if(!e)throw new Error("invalid matrix container");if(t.matrixContainer=e,!(e=t.matrixContainer.querySelector("table.wptb-preview-table")))throw new Error("invalid table element");t.mainTable=e,t.mainTable&&(t.id=r(t.matrixContainer))}var e=new function(){var t=[];this.getTableObjects=function(){return t},this.init=function(){Array.from(document.querySelectorAll(".wptb-table-container")).map(function(e){t.push(new r(e))})}};return e.init(),e},(self||global)["WptbFrontendBase"]=e()}),function(e,t,r){"undefined"!=typeof module&&"object"===("undefined"==typeof exports?"undefined":_typeof(exports))?module.exports=r():t[e]=r()}("WPTB_ExtraStyles",self||global,function(){return new function(){function o(e){var t,r,o,n,a=e.dataset.wptbExtraStyles;a&&(a=atob(a),t=e.getAttribute("class").match(/wptb-element-main-table_setting-(?:startedid-)?(\d+)/),n="wptb-extra-styles-"+(t=_slicedToArray(t,2)[1]),(o=null==(r=l.baseDocument.querySelector("head"))?void 0:r.querySelector("#".concat(n)))||((o=document.createElement("style")).type="text/css",o.id=n,e.dataset.disableThemeStyles&&l.currentMode===l.modes.frontEnd||l.currentMode===l.modes.block?(e.insertAdjacentElement("beforebegin",o),l.currentMode===l.modes.frontEnd&&l.generalStyles&&s(l.generalStyles,e)):r.appendChild(o)),n=".wptb-element-main-table_setting-".concat(t),e=i(n,a),o.innerHTML="",o.appendChild(document.createTextNode(e)))}var l=this,n=(this.modes={builder:"builder",frontEnd:"frontEnd",block:"block"},this.baseDocument=document,this.currentMode=this.modes.builder,this.generalStyles="",_defineProperty(_defineProperty(_defineProperty({},this.modes.builder,".wptb-table-setup .wptb-preview-table"),this.modes.block,".wptb-block-table-setup .wptb-preview-table"),this.modes.frontEnd,".wptb-table-container .wptb-preview-table")),t=function(e){return e.replaceAll(/(\r?\n)|(\/\*.+?\*\/)|(\s*!important)/g,"").replaceAll(";"," !important;")},i=function(r,e){var e=t(e).split("}"),o=[];return e.map(function(e){var t=new RegExp(/(.+?)\{/g).exec(e);t&&(r===t[1].trim()?o.push(e):o.push(e.replace(t[1],"".concat(r," ").concat(t[1]))))}),"".concat(o.join("}"),"}")},s=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null,r=document.createElement("style"),t=(r.type="text/css",r.id="wptb-general-styles",t?t.insertAdjacentElement("beforebegin",r):(l.currentMode===l.modes.block?l.baseDocument:l.baseDocument.querySelector("head")).appendChild(r),i(e.parentPrefix,e.styles));r.appendChild(document.createTextNode(t))};this.applyStyles=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:l.modes.frontEnd,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null,r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:document,r=(l.baseDocument=r,l.currentMode=e,l.generalStyles=t,Array.from(l.baseDocument.querySelectorAll(n[e])));r&&r.map(o),e!==l.modes.frontEnd&&e!==l.modes.block||!t||s(t)}}}),function(e,t,r){"undefined"!=typeof module&&"object"===("undefined"==typeof exports?"undefined":_typeof(exports))?module.exports=r():t[e]=r()}("WPTB_Logger",self||global,function(){var t={normal:"#48BB78"};return{prepareMessage:function(e){return"%c WP Table Builder %c {message} ".replace("{message}",e)},prepareMessageStyle:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"normal",e=t[e]?e:"normal";return"background-color: {bgColor} ; padding: 3px; color: #FFF; border-radius: 0 5px 5px 0;".replace("{bgColor}",t[e])},log:function(e){console.log(this.prepareMessage(e),"border-radius:5px 0 0 5px; background-color: #3299D1; padding: 3px; color: #FFF; font-weight: bold;",this.prepareMessageStyle("normal"))}}});var WPTB_CutGlueTable={cutTableHorizontally:function(e,t){if(t&&t.rows[e])for(var r=0;r<e;r++)for(var o=t.rows[r].children,n=0;n<o.length;n++)if(1<o[n].rowSpan&&o[n].rowSpan>e-r){for(var a=o[n].rowSpan-e+r,l=(o[n].rowSpan=e-r,o[n].dataset.sameCellBeforeDivision||(o[n].dataset.sameCellBeforeDivision="r"+r+"c"+n),void 0),l=t.hasOwnProperty("wptbCell")?(l=new t.wptbCell(t.mark)).getDOMElement():document.createElement("td"),i=o[n].getAttribute("style"),i=(l.setAttribute("style",i),l.colSpan=o[n].colSpan,l.rowSpan=a,l.dataset.sameCellBeforeDivision=o[n].dataset.sameCellBeforeDivision,o[n].dataset.xIndex),s=parseInt(i)+parseInt(o[n].colSpan),c=void 0;!c&&s<t.maxCols;)c=t.rows[e].querySelector('[data-x-index="'+s+'"]'),s++;t.rows[e].insertBefore(l,c),WPTB_RecalculateIndexes(t)}},glueTableHorizontally:function(e){if(e){for(var t=_toConsumableArray(e.getElementsByTagName("td")),r=0;r<t.length;r++)if(t[r].hasAttribute("data-same-cell-before-division"))for(var o=t[r].dataset.sameCellBeforeDivision,n=e.querySelectorAll('[data-same-cell-before-division="'+o+'"]'),a=0;a<n.length;a++)if(n[a]&&n[a+1]&&n[a].parentNode&&n[a+1].parentNode&&!n[a].parentNode.classList.contains("wptb-row-moving")&&!n[a+1].parentNode.classList.contains("wptb-row-moving")&&n[a+1].dataset.yIndex==parseInt(n[a].dataset.yIndex)+parseInt(n[a].rowSpan)){n[a].rowSpan+=n[a+1].rowSpan;for(var l=_toConsumableArray(n[a+1].children),i=0;i<l.length;i++)n[a].appendChild(l[i]);n[a+1].parentNode.removeChild(n[a+1])}WPTB_RecalculateIndexes(e)}},cutTableVertically:function(e,t){for(var r=0;r<t.rows.length;r++){if(e<t.maxCols&&0!=e&&!t.rows[r].querySelector('[data-x-index="'+e+'"]'))for(var o,n,a=t.rows[r].children,l=void 0,i=a.length,s=void 0,c=0;c<i;c++)if(1<a[c].colSpan&&parseInt(a[c].dataset.xIndex)<e&&parseInt(a[c].dataset.xIndex)+parseInt(a[c].colSpan)>e){l=t.hasOwnProperty("wptbCell")?(l=new t.wptbCell(t.mark)).getDOMElement():document.createElement("td"),o=a[c].rowSpan,n=a[c].colSpan,a[c].colSpan=e-a[c].dataset.xIndex,n=n-a[c].colSpan,a[c].dataset.sameCellBeforeDivision||(a[c].dataset.sameCellBeforeDivision="r"+r+"c"+c);var d=a[c].getAttribute("style"),d=(l.setAttribute("style",d),t.querySelector('[data-x-index="'+e+'"]')),d=(d&&(l.style.width=d.style.width),t.querySelector('[data-y-index="'+r+'"]'));d&&(l.style.height=d.style.height),s=a[c+1]||null,t.rows[r].insertBefore(l,s),l.colSpan=n,l.rowSpan=o,l.dataset.sameCellBeforeDivision=a[c].dataset.sameCellBeforeDivision,r+=o-1;break}WPTB_RecalculateIndexes(t)}},glueTableVertically:function(e){if(e){for(var t=_toConsumableArray(e.getElementsByTagName("td")),r=0;r<t.length;r++)if(t[r].hasAttribute("data-same-cell-before-division"))for(var o=t[r].dataset.sameCellBeforeDivision,n=_toConsumableArray(e.querySelectorAll('[data-same-cell-before-division="'+o+'"]')),a=null,l=0;l<n.length;l++)if(n[l]&&n[l+1]&&!n[l].classList.contains("wptb-column-moving")&&!n[l+1].classList.contains("wptb-column-moving")&&n[l+1].dataset.xIndex==parseInt(n[l].dataset.xIndex)+parseInt(n[l].colSpan)){n[a=null==a?l:a].colSpan+=n[l+1].colSpan;for(var i=_toConsumableArray(n[l+1].children),s=0;s<i.length;s++)n[a].appendChild(i[s]);n[l+1].parentNode.removeChild(n[l+1])}WPTB_RecalculateIndexes(e)}}},WPTB_GetDirectionAfterReconstruction=function(o,n,a,r,l){var i=0,s=o.maxCols,e={},c=[];return l&&l.getDirective(o)?e.switch=function(e){var t=l.getDirective(o),r="desktop";return e&&e.detail&&(r=e.detail.sizeRangeId),c=[n,1],"desktop"!==r?t.hasOwnProperty("modeOptions")&&(e=t.responsiveMode,(t=t.modeOptions[e]).hasOwnProperty("topRowAsHeader")&&t.topRowAsHeader.hasOwnProperty(r)&&t.topRowAsHeader[r]?t.hasOwnProperty("cellStackDirection")&&t.cellStackDirection.hasOwnProperty(r)&&("row"===t.cellStackDirection[r]?(c=[a,2],i=s-1):"column"===t.cellStackDirection[r]&&t.hasOwnProperty("cellsPerRow")&&(i=t.cellsPerRow[r])):i=0):i=0,{type:c,itemsPerHeader:i}}:e.switch=function(e){var t;return c=[n,1],o.classList.contains("wptb-mobile-view-active")?(o.classList.contains("wptb-table-preview-head")&&(c=[a,2])===r&&(i=s-1),t=o.parentNode.parentNode.querySelector(".wptb-preview-table-mobile"),{type:c,itemsPerHeader:i,newTable:t}):{type:c,itemsPerHeader:i}},e};function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,t){var r;if(e)return"string"==typeof e?_arrayLikeToArray(e,t):"Map"===(r="Object"===(r={}.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:r)||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(e,t):void 0}function _iterableToArray(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,o=Array(t);r<t;r++)o[r]=e[r];return o}function _typeof(e){return(_typeof="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})(e)}!function(e,t,r){"object"===("undefined"==typeof exports?"undefined":_typeof(exports))&&"undefined"!=typeof module?module.exports=r():t[e]=r()}("WPTB_SortableTable",self||global,function(){return function(){var U=this.table=(0<arguments.length&&void 0!==arguments[0]?arguments[0]:{}).table,a=(WPTB_RecalculateIndexes(U),this);function t(e,t,r){var o,n,a;"TD"===e.target.tagName&&(o=null==e.offsetX?e.layerX:e.offsetX,n=null==e.offsetY?e.layerY:e.offsetY,a=!1,a="vertical"===t&&e.target.clientWidth-o<=35||"horizontal"===t&&o<=35||a)&&(e.target.clientHeight-35)/2<n&&(e.target.clientHeight+35)/2>n?r.classList.add("sortable-hover"):r.classList.remove("sortable-hover")}function c(e){t(e,"vertical",this)}function d(e){t(e,"horizontal",this)}function u(){this.classList.remove("sortable-hover")}function r(e,t){if(e.target&&"TD"===e.target.tagName&&!U.parentNode.classList.contains("wptb-preview-table-manage-cells")){var r=e.currentTarget,o=!1;if("vertical"===t&&e.target.dataset.hasOwnProperty("sortedVertical")){var n=[],a=[];if(this.itemsPerHeader&&this.itemsPerHeader<r.rows.length){WPTB_RecalculateIndexes(r);for(var l=_toConsumableArray(r.rows),i=r.querySelector("tbody")?r.querySelector("tbody"):r,s=0;s<l.length;s++)s<e.target.dataset.yIndex?(n.push(l[s]),i.removeChild(l[s])):s>parseInt(e.target.dataset.yIndex,10)+this.itemsPerHeader&&(a.push(l[s]),i.removeChild(l[s]));WPTB_RecalculateIndexes(r)}var c,d,u=r.querySelectorAll('[data-x-index="'.concat(e.target.dataset.xIndex,'"]'));(u=_toConsumableArray(u)).map(function(e){c=(c=parseInt(e.rowSpan,10))||1,d=e.dataset.yIndex,WPTB_CutGlueTable.cutTableHorizontally(d,r),d+=c,WPTB_CutGlueTable.cutTableHorizontally(d,r)});for(var M,p=[],W=0,z=[],b=0;b<u.length;b++){var f=Q(e,r,u,b,W,"vertical");if(f&&f.hasOwnProperty("i"))u=f.tds,b=f.i;else{for(var y=(u=f?f.tds:u)[b],m=(m=parseInt(y.rowSpan,10))||1,W=parseInt(y.dataset.yIndex,10)+m,f=Z(y),h=[],g=0;g<m;g++)h.push(r.rows[parseInt(y.dataset.yIndex,10)+g]),z.push(parseInt(y.dataset.yIndex,10)+g);0<y.dataset.yIndex?p.push({rowsTd:h,value:f}):M=h}}var D=X(e,"sortedVertical");if(!D)return;if(p.length&&p.sort(function(e,t){return J(D,e,t)}),p.unshift({rowsTd:M}),p.length<r.rows.length)for(var N,w=0;w<r.rows.length;w++)-1<z.indexOf(w)||((N=[]).push(r.rows[w]),p.push({rowsTd:N}));var v,H,q,S=r.querySelector("tbody");S.innerHTML="",p.map(function(e){e.rowsTd.map(function(e){S.appendChild(e)})}),n.length&&(v=r.querySelector("tbody")?r.querySelector("tbody"):r)&&(H=v.querySelector("tr"),n.map(function(e){v.insertBefore(e,H)})),a.length&&(q=r.querySelector("tbody")?r.querySelector("tbody"):r,S)&&a.map(function(e){q.appendChild(e)}),WPTB_RecalculateIndexes(r),WPTB_CutGlueTable.glueTableHorizontally(r),o=!0}else if("horizontal"===t&&"0"===e.target.dataset.xIndex){var C,T,A=r.querySelectorAll('[data-y-index="'.concat(e.target.dataset.yIndex,'"]'));(A=_toConsumableArray(A)).map(function(e){C=(C=parseInt(e.colSpan,10))||1,T=e.dataset.xIndex,WPTB_CutGlueTable.cutTableVertically(T,r),T+=C,WPTB_CutGlueTable.cutTableVertically(T,r)});for(var F,x=[],V=0,_=0;_<A.length;_++){var E=Q(e,r,A,_,V,"horizontal");if(E&&E.hasOwnProperty("i"))A=E.tds,_=E.i;else{for(var k=(A=E?E.tds:A)[_],R=(R=parseInt(k.colSpan,10))||1,V=parseInt(k.dataset.xIndex,10)+R,E=Z(k),P=[],O=0;O<R;O++){var K=_toConsumableArray(r.querySelectorAll('[data-x-index="'.concat(parseInt(k.dataset.xIndex,10)+O,'"]')));P.push(K)}0<k.dataset.xIndex?x.push({columnsTd:P,value:E}):F=P}}var $=X(e,"sortedHorizontal");if(!$)return;if(x.length&&x.sort(function(e,t){return J($,e,t)}),x.unshift({columnsTd:F}),x.length<r.maxCols)for(var G=r.maxCols-x.length,I=0;I<G;I++){var Y=_toConsumableArray(r.querySelectorAll('[data-x-index="'.concat(parseInt(r.maxCols,10)-parseInt(G,10)+I,'"]')));x.push({columnsTd:[Y]})}for(var j=0;j<r.rows.length;j++)r.rows[j].innerHTML="";x.map(function(e){e.columnsTd.map(function(e){e.map(function(e){r.rows[e.dataset.yIndex].appendChild(e)})})}),WPTB_RecalculateIndexes(r),WPTB_CutGlueTable.glueTableVertically(r),o=!0}if(o){for(var L=_toConsumableArray(r.getElementsByTagName("td")),B=0;B<L.length;B++)L[B].hasAttribute("data-same-cell-before-division")&&L[B].removeAttribute("data-same-cell-before-division");r.hasOwnProperty("tableSM")&&(new(r.tableSM())).tableStateSet(),this.reassignElementsStyles("td"),this.reassignElementsStyles("tr")}}}function X(e,t){return!(!e.currentTarget||!e.currentTarget.classList.contains("wptb-preview-table")&&!e.currentTarget.classList.contains("wptb-preview-table-mobile"))&&(e.target.dataset[t]&&"ask"!==e.target.dataset[t]?e.target.dataset[t]="ask":e.target.dataset[t]="desk",e.target.dataset[t])}function J(e,t,r){var o=0<arguments.length&&void 0!==e?e:"ask",n=(1<arguments.length?t:void 0).value,a=(2<arguments.length?r:void 0).value;return parseInt(n)&&parseInt(a)&&(n=parseInt(n),a=parseInt(a)),"ask"===o?n<a?-1:n===a?0:1:n<a?1:n===a?0:-1}function Z(e){for(var t=e.querySelectorAll(".wptb-text-container"),t=_toConsumableArray(t),r="",o=0;o<t.length;o++)r+=t[o].innerText,o!==t.length-1&&(r+=" ");return r}function Q(e,t,r,o,n,a){var l,i,s,c,d,u,p,b=r[o],f=!1;if("vertical"===a?(i="colSpan",s="data-y-index",c="yIndex",d="xIndex",u="rowSpan",p=t.rows.length):"horizontal"===a&&(i="rowSpan",s="data-x-index",c="xIndex",d="yIndex",u="colSpan",p=t.maxCols),0<b.dataset[c]-n)for(var y=t.querySelectorAll("[".concat(s,'="').concat(n,'"]')),m=0;m<y.length;m++)if(l=(l=y[m][i])||1,y[m].dataset[d]<e.target.dataset[d]&&parseInt(y[m].dataset[d],10)+parseInt(l,10)>e.target.dataset[d]){r.splice(o,0,y[m]),f=!0,o--;break}if(f)return{tds:r,i:o};a=(a=parseInt(b[u],10))||1;if(o==r.length-1&&parseInt(b.dataset[c],10)+a<p){y=t.querySelectorAll("[".concat(s,'="').concat(parseInt(b.dataset[c],10)+a,'"]'));for(var h=0;h<y.length;h++)if(l=(l=y[h][i])||1,y[h].dataset[d]<e.target.dataset[d]&&parseInt(y[h].dataset[d],10)+parseInt(l,10)>e.target.dataset[d]){r.push(y[h]),f=!0;break}}return!!f&&{tds:r}}return this.itemsPerHeader=0,this.tableMaxCols=U.maxCols,this.cellsStylesScheme={},this.rowsStylesScheme={},this.sortModeSwitcher=function(e,t){t&&(this.sortModeSwitcher("horizontal",!1),this.sortModeSwitcher("vertical",!1)),"vertical"===e?(this.table.removeEventListener("click",this.sortableTableVerticalStart,!1),t?(this.sortingCellMouseMoveSwitcher("vertical",!0),this.table.addEventListener("click",this.sortableTableVerticalStart,!1),this.table.dataset.wptbSortableTableVertical="1",this.createTableElementsStylesScheme("td"),this.createTableElementsStylesScheme("tr")):(this.sortingCellMouseMoveSwitcher("vertical",!1),delete this.table.dataset.wptbSortableTableVertical)):"horizontal"===e&&(this.table.removeEventListener("click",this.sortableTableHorizontalStart,!1),t?(this.sortingCellMouseMoveSwitcher("horizontal",!0),this.table.addEventListener("click",this.sortableTableHorizontalStart,!1),this.table.dataset.wptbSortableTableHorizontal="1",this.createTableElementsStylesScheme("td"),this.createTableElementsStylesScheme("tr")):(this.sortingCellMouseMoveSwitcher("horizontal",!1),delete this.table.dataset.wptbSortableTableHorizontal))},this.tableObjectChange=function(){var e=!(0<arguments.length&&void 0!==arguments[0])||arguments[0];return this.table.classList.contains("wptb-mobile-view-active")&&e?this.table=U.parentNode.parentNode.querySelector(".wptb-preview-table-mobile"):this.table.classList.contains("wptb-preview-table-mobile")&&!e&&(this.table=U.parentNode.querySelector(".wptb-preview-table")),this.table},this.createTableElementsStylesScheme=function(e){this.tableObjectChange();var t=this.table.querySelectorAll(e);if(t.length)for(var r=0;r<t.length;r++){var o=t[r],n=window.getComputedStyle(o,null).getPropertyValue("background-color"),a="";"td"===e?(a=o.dataset.xIndex+"-"+o.dataset.yIndex,this.cellsStylesScheme[a]={backgroundColor:n}):"tr"===e&&(a=String(r),this.rowsStylesScheme[a]={backgroundColor:n})}this.tableObjectChange(!1)},this.reassignElementsStyles=function(e){this.tableObjectChange();var t,r=this.table.querySelectorAll(e);if("td"===e?t=this.cellsStylesScheme:"tr"===e&&(t=this.rowsStylesScheme),r.length)for(var o=0;o<r.length;o++){var n=r[o],a="";if("td"===e?a=n.dataset.xIndex+"-"+n.dataset.yIndex:"tr"===e&&(a=o),t.hasOwnProperty(a)){var l,i=t[a];for(l in i)n.style[l]=i[l]}}this.tableObjectChange(!1)},this.sortableTableInitialization=function(e){var t,r,o,n;this.table.dataset.wptbSortableTableVertical&&"1"===this.table.dataset.wptbSortableTableVertical?(t="vertical",r="horizontal"):this.table.dataset.wptbSortableTableHorizontal&&"1"===this.table.dataset.wptbSortableTableHorizontal&&(t="horizontal",r="vertical"),t&&"string"==typeof t&&r&&"string"==typeof r&&(o=WPTB_GetDirectionAfterReconstruction(this.table,t,r,"vertical",e),"object"===_typeof(o))&&o.hasOwnProperty("switch")&&((n=function(e){var t,e=o.switch(e);"object"===_typeof(e)&&(this.itemsPerHeader=e.itemsPerHeader,e.hasOwnProperty("newTable")?(t=this.table,this.table=e.newTable,this.sortModeSwitcher(e.type[0],!0),this.table=t):this.sortModeSwitcher(e.type[0],!0))}).call(a),this.table.addEventListener("table:rebuilt",function(e){n.call(a,e)},!1))},this.sortingCellMouseMoveSwitcher=function(e,t){var r=this;function o(e,t,r){e.removeEventListener("mousemove",t,!1),e.removeEventListener("mouseleave",u,!1),r&&(e.addEventListener("mousemove",t,!1),e.addEventListener("mouseleave",u,!1))}function n(e,t,r){r?e.dataset[t]&&"desk-disabled"===e.dataset[t]?e.dataset[t]="desk":e.dataset[t]="ask":"ask"===e.dataset[t]?e.dataset[t]="ask-disabled":"desk"===e.dataset[t]&&(e.dataset[t]="desk-disabled")}var a=this.table.querySelectorAll("td");if(a.length&&(a=_toConsumableArray(a)).map(function(e){o(e,c,!1),n(e,"sortedVertical",!1),o(e,d,!1),n(e,"sortedHorizontal",!1)}),t)if("vertical"===e)for(var l=this.table.rows.length,i=0;0<l;){var s=this.table.querySelectorAll('[data-y-index="'.concat(i,'"]'));(s=_toConsumableArray(s)).map(function(e){o(e,c,t),n(e,"sortedVertical",t)}),this.itemsPerHeader?(l-=this.itemsPerHeader+1,i+=this.itemsPerHeader+1):l=0}else"horizontal"===e&&(a=this.table.querySelectorAll('[data-x-index="0"]'),(a=_toConsumableArray(a)).map(function(e){2<r.table.querySelectorAll('[data-y-index="'.concat(e.dataset.yIndex,'"]')).length&&(o(e,d,t),n(e,"sortedHorizontal",t))}))},this.sortableTableVerticalStart=function(e){r.call(a,e,"vertical")},this.sortableTableHorizontalStart=function(e){r.call(a,e,"horizontal")},this}});var WPTB_RecalculateIndexes=function(e){for(var t,r=e.getElementsByTagName("tr"),o=0,n=0,a=[],l=0;l<r.length;l++){t=r[l].getElementsByTagName("td"),null==a[l]&&(a[l]=[]);for(var i=0,s=0;s<t.length;s++){if(null!=a[l][s])for(var c=0;c<100;c++){if(null==a[l][i]){a[l][i]=t[s],t[s].dataset.xIndex=i;break}i++}else a[l][s]=t[s],t[s].dataset.xIndex=i;if(t[s].dataset.yIndex=l,1<t[s].colSpan)for(var d=1;d<t[s].colSpan;d++)a[l][++i]="tdDummy";if(1<t[s].rowSpan)for(var u=1;u<t[s].rowSpan;u++){null==a[l+u]&&(a[l+u]=[]);for(var p=0;p<t[s].colSpan;p++)a[l+u][i-t[s].colSpan+1+p]="tdDummy"}i++}t.length>o&&(o=t.length),0==l&&(n=i)}e.columns=o,e.maxCols=n};function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_unsupportedIterableToArray(e,t)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,t){var r;if(e)return"string"==typeof e?_arrayLikeToArray(e,t):"Map"===(r="Object"===(r={}.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:r)||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(e,t):void 0}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,o=Array(t);r<t;r++)o[r]=e[r];return o}function _iterableToArrayLimit(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var o,n,a,l,i=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(o=a.call(r)).done)&&(i.push(o.value),i.length!==t);s=!0);}catch(e){c=!0,n=e}finally{try{if(!s&&null!=r.return&&(l=r.return(),Object(l)!==l))return}finally{if(c)throw n}}return i}}function _arrayWithHoles(e){if(Array.isArray(e))return e}function ownKeys(t,e){var r,o=Object.keys(t);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(t),e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),o.push.apply(o,r)),o}function _objectSpread(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ownKeys(Object(r),!0).forEach(function(e){_defineProperty(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function _defineProperty(e,t,r){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _toPropertyKey(e){e=_toPrimitive(e,"string");return"symbol"==_typeof(e)?e:e+""}function _toPrimitive(e,t){if("object"!=_typeof(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!=_typeof(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}function _typeof(e){return(_typeof="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})(e)}function _typeof(e){return(_typeof="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})(e)}function ownKeys(t,e){var r,o=Object.keys(t);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(t),e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),o.push.apply(o,r)),o}function _objectSpread(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ownKeys(Object(r),!0).forEach(function(e){_defineProperty(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function _defineProperty(e,t,r){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _toPropertyKey(e){e=_toPrimitive(e,"string");return"symbol"==_typeof(e)?e:e+""}function _toPrimitive(e,t){if("object"!=_typeof(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!=_typeof(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,t){var r;if(e)return"string"==typeof e?_arrayLikeToArray(e,t):"Map"===(r="Object"===(r={}.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:r)||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(e,t):void 0}function _iterableToArray(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,o=Array(t);r<t;r++)o[r]=e[r];return o}function ownKeys(t,e){var r,o=Object.keys(t);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(t),e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),o.push.apply(o,r)),o}function _objectSpread(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ownKeys(Object(r),!0).forEach(function(e){_defineProperty(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function _defineProperty(e,t,r){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _toPropertyKey(e){e=_toPrimitive(e,"string");return"symbol"==_typeof(e)?e:e+""}function _toPrimitive(e,t){if("object"!=_typeof(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!=_typeof(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}function _typeof(e){return(_typeof="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})(e)}!function(e,t,r){"object"===("undefined"==typeof exports?"undefined":_typeof(exports))&&"undefined"!=typeof module?module.exports=r():t[e]=r()}("WPTB_ResponsiveFrontend",self||global,function(){function s(e,t){var r=1<arguments.length&&void 0!==t?t:"log";if("undefined"!=typeof process&&"development"===process.env.NODE_ENV){if(!console[r])throw new Error("no logging type found with given type value of [".concat(r,"]"));console[r]("[WPTB]: ".concat(e))}}function R(e){var c=this,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null;return this.element=e,this.referenceObject=t,this.mergedRenderStatus=!0,this.mergedCells={row:[],column:[]},this.getMergedRenderStatus=function(){return c.mergedRenderStatus},this.setMergedRenderStatus=function(e){c.mergedRenderStatus=e},this.addToMergedCells=function(e,t){c.mergedCells[e].push(t)},this.isReference=function(){return null!==c.referenceObject},this.isReference()&&(this.element=e.cloneNode(!0)),this.modifications={},this.spans={row:1,col:1},this.remainingSpans={row:0,col:0},this.cacheSpanValues=function(){Object.keys(c.spans).map(function(e){var t;Object.prototype.hasOwnProperty.call(c.spans,e)&&(t=c.spans[e],c.spans[e]=c.element.getAttribute("".concat(e,"Span"))||t)})},this.cacheSpanValues(),this.getSpan=function(e){var t=1<arguments.length&&void 0!==arguments[1]&&arguments[1]?c.getElement().getAttribute("".concat(e,"Span")):c.spans[e];if(t)return t;throw new Error("no span value found with the given type of [".concat(e,"]"))},this.getRemainingSpans=function(e){return c.remainingSpans[e]},this.setRemainingSpans=function(e,t){c.remainingSpans[e]=t},this.getElement=function(){return c.element},this.createCellElement=function(){return document.createElement("td")},e||(this.element=this.createCellElement()),this.setAttribute=function(e,t){var r=2<arguments.length&&void 0!==arguments[2]&&arguments[2],o=3<arguments.length&&void 0!==arguments[3]?arguments[3]:",",n=c.getElement()[e],a=("function"!=typeof n&&"object"!==_typeof(n)||(n=c.getElement().getAttribute(e)),n=c.modifications[e]?c.modifications[e].default:n);r?a+="".concat(a).concat(o).concat(t):a=t,c.modifications[e]={value:a,default:n},c.getElement()[e]=a},this.setSpan=function(e,t){if(c.isReference()){if(!c.getMergedRenderStatus())return!1;var r=c.referenceObject.getRemainingSpans(e);if(0===r)return!1;var o=r-t<0?r:t,n=r-o;if(c.referenceObject.setRemainingSpans(e,n),c.setAttribute("".concat(e,"Span"),o),0!=n)for(var n=c.referenceObject.mergedCells[e].length-r+1,a=n+o-1,l=n;l<a;l+=1)c.mergedCells[e][l].setMergedRenderStatus(!1)}else{var i=c.getSpan(e)-t<0?c.getSpan(e):t;c.setAttribute("".concat(e,"Span"),i),c.setRemainingSpans(e,c.getSpan(e)-i);for(var s=0;s<i-1;s+=1)c.mergedCells[e]&&c.mergedCells[e][s]&&c.mergedCells[e][s].setMergedRenderStatus(!1)}return!0},this.resetAttribute=function(e){c.modifications[e]&&(c.getElement()[e]=c.modifications[e].default,c.modifications[e]=void 0)},this.resetAllAttributes=function(){Object.keys(c.modifications).map(function(e){Object.prototype.hasOwnProperty.call(c.modifications,e)&&c.resetAttribute(e)})},{getElement:this.getElement,el:this.element,setAttribute:this.setAttribute,resetAllAttributes:this.resetAllAttributes,getSpan:this.getSpan,setSpan:this.setSpan,getRemainingSpans:this.getRemainingSpans,setRemainingSpans:this.setRemainingSpans,isReference:this.isReference,addToMergedCells:this.addToMergedCells,mergedCells:this.mergedCells,setMergedRenderStatus:this.setMergedRenderStatus,getMergedRenderStatus:this.getMergedRenderStatus}}function t(e){var u=this;return this.tableElement=e,this.parsedTable=[],this.rowCache=[],this.originals={rows:[]},this.rowColors={header:null,even:null,odd:null},this.addToParsed=function(e,t,r){u.parsedTable[e]||(u.parsedTable[e]=[]),u.parsedTable[e][t]=r},this.parseTable=function(){var e=Array.from(u.tableElement.querySelectorAll("tr"));e.filter(function(e){return"true"!==e.dataset.wptbResponsiveIgnore}).map(function(e,c){u.originals.rows.push(e);var e=Array.from(e.querySelectorAll("td")),d=0;e.map(function(e,t){var r=new R(e),o=(u.addToParsed(c,d,r),d+=1,r.getSpan(R.spanTypes.row)),n=r.getSpan(R.spanTypes.column);if(1<o)for(var a=1;a<o;a+=1){var l=new R(e,r);r.addToMergedCells("row",l),u.addToParsed(c+a,t,l)}if(1<n)for(var i=1;i<n;i+=1){var s=new R(e,r);r.addToMergedCells("column",s),u.addToParsed(c,d,s),d+=1}})}),u.parseRowColors(e)},this.parseRowColors=function(e){(!e||e.length<=0)&&s("no rows are found to parse their colors","error");for(var t=u.tableElement.dataset.wptbHeaderBackgroundColor,r=u.tableElement.dataset.wptbEvenRowBackgroundColor,o=u.tableElement.dataset.wptbOddRowBackgroundColor,n=(u.rowColors.header=void 0!==t?t:""===e[0].style.backgroundColor?null:e[0].style.backgroundColor,1<=e.length/3?0:1===e.length?2:(e.length-1)%2),a=0;a<n;a+=1){var l=document.createElement("tr");u.tableElement.querySelector("tbody").appendChild(l),e.push(l)}u.rowColors.even=r||getComputedStyle(e[1]).backgroundColor,u.rowColors.odd=r?o:getComputedStyle(e[2]).backgroundColor;for(var i=0;i<n;i+=1)e[e.length-(i+1)].remove()},this.addRow=function(e){var t=1<arguments.length&&void 0!==arguments[1]&&arguments[1],r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:0,o=(Array.isArray(e)||(e=[e]),u.tableElement.querySelector("tbody")),r=t?u.originals.rows[r]:((t=document.createRange()).setStart(o,0),t.createContextualFragment('<tr class="'.concat(e.join(" "),'"></tr>')).childNodes[0]);return o.appendChild(r),u.rowCache.push(r),{el:r,id:u.rowCache.length-1}},this.clearTable=function(){u.rowCache=[],u.tableElement.querySelector("tbody").innerHTML=""},this.getRow=function(e){return u.rowCache[e]||(s("no row with id [".concat(e,"] found in the cache."),"warn"),null)},this.maxRows=function(){return u.parsedTable.length},this.maxColumns=function(e){return e?u.parsedTable[0].length:u.parsedTable.reduce(function(e,t){return e=t.length>e?t.length:e},0)},this.getCell=function(e,t){var r=2<arguments.length&&void 0!==arguments[2]&&arguments[2];try{if(u.parsedTable[e][t])return r?u.parsedTable[e][t]:u.parsedTable[e][t].el}catch(e){}return s("no cell found at the given address of [".concat(e,"-").concat(t,"]"),"warn"),null},this.getCellsAtRow=function(e){for(var t=1<arguments.length&&void 0!==arguments[1]&&arguments[1],r=[],o=0;o<u.maxColumns();o+=1){var n=u.getCell(e,o,t);n&&r.push(n)}return r},this.appendToRow=function(e,t,r){r=u.getRow(r),e=u.getCell(e,t,!0);return e&&r&&r.appendChild(e.getElement()),e},this.appendElementToRow=function(e,t){t=u.getRow(t);e&&t&&t.appendChild(e)},this.appendObjectToRow=function(e,t){t=u.getRow(t);e&&t&&t.appendChild(e.getElement())},this.getParsedTable=function(){return u.parsedTable},this.parseTable(),{maxRows:this.maxRows,maxColumns:this.maxColumns,addRow:this.addRow,clearTable:this.clearTable,getCell:this.getCell,appendToRow:this.appendToRow,appendElementToRow:this.appendElementToRow,appendObjectToRow:this.appendObjectToRow,getCellsAtRow:this.getCellsAtRow,el:this.tableElement,rowColors:this.rowColors,getParsedTable:this.getParsedTable}}var r={query:".wptb-preview-table",defaultClasses:["wptb-plugin-responsive-base"],bindToResize:!(R.spanTypes={row:"row",column:"col"})};return function(){function O(e){var t,r=!1;return e.style.backgroundColor&&(t=new RegExp(/^rgba\(\s?0\s?,\s?0\s?,\s?0\s?,\s?0\s?\)$/g),r=null!==e.style.backgroundColor.match(t)),r}function s(e,t){var r;e.dataset.wptbHorizontalScrollStatus&&(r=e.parentNode,t?(t=e.dataset.wptbTableContainerMaxWidth,r.style.width="".concat(t,"px")):r.style.width="")}function c(e){return!!e&&e.responsiveEnabled}function d(e,t){var r;return"desktop"!==(t=I.calculateRangeId(t,e.breakpoints))&&(r=e.responsiveMode,(e=e.modeOptions[r]).disabled)&&!e.disabled[t]}function o(e){var t=document.body.clientWidth,r=I.getDirective(e);if(r&&r.relativeWidth)switch(r.relativeWidth){case"window":t=document.body.clientWidth;break;case"container":t=e.parentNode.parentNode.parentNode.clientWidth;break;default:t=document.body.clientWidth}return t}var I=this,e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return this.options=_objectSpread(_objectSpread({},r),e),this.elements=Array.from(document.querySelectorAll(this.options.query)),this.elementObjects=this.elements.map(function(e){return{el:e,tableObject:new t(e)}}),this.bindRebuildToResize=function(){window.addEventListener("resize",function(){I.rebuildTables()})},this.getDirective=function(e){e=e.dataset.wptbResponsiveDirectives;return e?JSON.parse(atob(e)):null},this.addDefaultClasses=function(e){e.classList.add(I.options.defaultClasses)},this.removeDefaultClasses=function(e){e.classList.remove(I.options.defaultClasses)},this.autoBuild=function(e,t,r,o){var n=r.cellStackDirection[t],a=r.topRowAsHeader[t],l=r.cellsPerRow[t],i=!!r.staticTopRow&&r.staticTopRow[t],r=(void 0===r.repeatMergedHeader||!0===r.repeatMergedHeader[t])&&!!a&&(!r.repeatMergedHeader||r.repeatMergedHeader[t]);o.clearTable(),"desktop"===t?(s(e,!0),I.buildDefault(o),I.removeDefaultClasses(e)):(s(e,!1),I.autoDirectionBuild(o,n,a,i,l,r),I.addDefaultClasses(e))},this.autoDirectionBuild=function(o,e){var t=2<arguments.length&&void 0!==arguments[2]&&arguments[2],r=3<arguments.length&&void 0!==arguments[3]&&arguments[3],n=4<arguments.length&&void 0!==arguments[4]?arguments[4]:1,a=!(5<arguments.length&&void 0!==arguments[5])||arguments[5],l=o.maxRows(),i=o.maxColumns(),s="row"===e;if(t)I.headerBuild(o,e,n,a);else if(s){var c=[],d=0;r&&(0<(t=o.getCellsAtRow(0,!0).filter(function(e){return!e.isReference()})).length&&(d+=1),t.map(function(e){var t,r=o.addRow("wptb-row");o.appendObjectToRow(e,r.id),e.el.style.backgroundColor&&!O(e.el)||(t=o.rowColors.header||getComputedStyle(r.el).backgroundColor,e.setAttribute("style","background-color: ".concat(t),!0,";")),r.el.style.backgroundColor="#ffffff00",e.setAttribute("colSpan",n)}));for(var u=d;u<l;u+=1)o.getCellsAtRow(u,!0).forEach(function(e){e.isReference()||c.push(e)});for(var p=c.length,b=0,f=0;b<p;b+=n,f+=1){for(var y=o.addRow("wptb-row"),m=0;m<n;m+=1){var h,g=c[b+m];g&&(o.appendElementToRow(g.getElement(),y.id),g.resetAllAttributes(),g.setAttribute("style","width: 100% !important",!0,";"),g.setAttribute("colSpan",1),g.setAttribute("rowSpan",1),g.el.style.backgroundColor&&!O(g.el)||(h=o.rowColors[(d+f)%2==0?"odd":"even"],g.el.style.backgroundColor=h||getComputedStyle(y.el).backgroundColor))}y.el.style.backgroundColor="#ffffff00"}}else{var w=[],v=0;r&&(0<(a=o.getCellsAtRow(0,!0).filter(function(e){return!e.isReference()})).length&&(v+=1),a.map(function(e){var t=o.addRow("wptb-row");o.appendObjectToRow(e,t.id),e.el.style.backgroundColor&&!O(e.el)||(e.el.style.backgroundColor=o.rowColors.header||getComputedStyle(t.el).backgroundColor),t.el.style.backgroundColor="#ffffff00",e.setAttribute("colSpan",n)}));for(var S=0;S<i;S+=1)for(var C=v;C<l;C+=1){var T=o.getCell(C,S,!0);T&&!T.isReference()&&w.push(T)}for(var A=w.length,x=0,_=0;x<A;x+=n,_+=1){for(var E=o.addRow("wptb-row"),k=0;k<n;k+=1){var R,P=w[x+k];P&&(o.appendElementToRow(P.getElement(),E.id),P.resetAllAttributes(),P.setAttribute("style","width: 100% !important",!0,";"),P.setAttribute("colSpan",1),P.setAttribute("rowSpan",1),P.el.style.backgroundColor&&!O(P.el)||(R=o.rowColors[(v+_)%2==0?"odd":"even"],P.el.style.backgroundColor=R||getComputedStyle(E.el).backgroundColor))}E.el.style.backgroundColor="#ffffff00"}}},this.headerBuild=function(r,e){var t=2<arguments.length&&void 0!==arguments[2]?arguments[2]:1,o=!(3<arguments.length&&void 0!==arguments[3])||arguments[3],n=r.getCellsAtRow(0,!0).map(function(e){return e.resetAllAttributes(),e.el.style.backgroundColor&&!O(e.el)||e.setAttribute("style","background-color: ".concat(r.rowColors.header),!0,";"),e}),a="column"===e,l=r.maxRows(),i=r.maxColumns(),s="3px solid gray";if(a)for(var c=0===(c=Math.ceil((l-1)/t))?1:c,d=1,u=0;u<c;u+=1){!function(){var e=0<arguments.length&&void 0!==arguments[0]&&arguments[0],t=r.addRow("wptb-row");e&&(t.el.style.borderTop=s),n.map(function(e){e=e.el.cloneNode(!0);r.appendElementToRow(e,t.id),e.style.backgroundColor&&!O(e)||(e.style.backgroundColor="".concat(getComputedStyle(t.el).backgroundColor),e.style.backgroundColor&&(e.style.backgroundColor+=" !important"))}),t.el.style.backgroundColor="#ffffff00"}(0<u);for(var p=0;p<t&&!(l<=d);p+=1){var b=r.addRow("wptb-row");b.el.style.backgroundColor="#ffffff00";for(var f=0;f<i;f+=1){var y,m,h=r.getCell(d,f,!0);h&&(h.resetAllAttributes(),m=!0,y=h.getSpan(R.spanTypes.row),h.getSpan(R.spanTypes.column),1<y&&(y=Math.min(y,t-p),m=h.setSpan(R.spanTypes.row,y),h.setMergedRenderStatus(!0)),m)&&(h.el.style.backgroundColor&&!O(h.el)||h.setAttribute("style","background-color: ".concat(r.rowColors[p%2==0?"even":"odd"]),!0,";"),r.appendObjectToRow(h,b.id))}d+=1}}else for(var g=0===(g=Math.ceil((l-1)/t))?1:g,w=1,v=0;v<g;v+=1){for(var S=0;S<i;S+=1){var C,T=r.addRow("wptb-row");0<v&&0===S&&(T.el.style.borderTop=s),!o&&0!==v||(C=r.getCell(0,S,!0)).isReference()||((C=C.el.cloneNode(!0)).style.backgroundColor="".concat(r.rowColors.header," !important"),r.appendElementToRow(C,T.id),C.style.backgroundColor&&!O(C)||(C.style.backgroundColor="".concat(getComputedStyle(T.el).backgroundColor),C.style.backgroundColor&&(C.style.backgroundColor+=" !important")),o?C.setAttribute("rowSpan",C.getAttribute("colSpan")):C.setAttribute("rowSpan",i*g),C.setAttribute("colSpan",1)),T.el.style.backgroundColor="#ffffff00";for(var A=0;A<t&&!(l<=w+A);A+=1){var x,_,E,k=r.getCell(w+A,S,!0);k&&(k.resetAllAttributes(),x=!0,_=k.getSpan(R.spanTypes.row),E=k.getSpan(R.spanTypes.column),(1<_||1<E)&&(E=Math.min(_,t-A),x=k.setSpan(R.spanTypes.row,E),_=k.el.getAttribute("rowSpan"),E=k.el.getAttribute("colSpan"),k.setAttribute("rowSpan",E),k.setAttribute("colSpan",_),k.setMergedRenderStatus(!0)),x)&&(E=1===t?w%2==0?"even":"odd":(w+A+v)%2==0?"even":"odd",k.el.style.backgroundColor&&!O(k.el)||k.setAttribute("style","background-color: ".concat(r.rowColors[E]),!0,";"),r.appendObjectToRow(k,T.id))}}w+=t}},this.buildDefault=function(e){for(var t=e.maxRows(),r=e.maxColumns(),o=0;o<t;o+=1)for(var n=e.addRow("",!0,o).id,a=0;a<r;a+=1){var l=e.getCell(o,a,!0);l&&!l.isReference()&&(l.resetAllAttributes(),e.appendElementToRow(l.getElement(),n))}},this.calculateRangeId=function(t,r){var e=Object.keys(r).sort(function(e,t){return r[e].width-r[t].width}),o=e[0];return e.map(function(e){t>=r[e].width&&(o=e)}),o},this.rebuildTable=function(e,t,r){var o=I.getDirective(e);if(o&&c(o)){var n=o.responsiveMode,a=I["".concat(n,"Build")],l=(t=t||e.getBoundingClientRect().width,I.calculateRangeId(t,o.breakpoints));if(!a)throw new Error("No build mode named as [".concat(n,"] found."));var i=o.modeOptions[n],t=(d(o,t)?a.call(I,e,l,i,r):(r.clearTable(),I.buildDefault(r),I.removeDefaultClasses(e)),WPTB_RecalculateIndexes(e),new CustomEvent("table:rebuilt",{detail:{sizeRangeId:l,topRowAsHeader:o.modeOptions[n].topRowAsHeader}}));e.dispatchEvent(t),a=l,(i=e)&&a&&(i.dataset.wptbBreakpoint=a)}},this.rebuildTables=function(r){I.elementObjects.map(function(e){var t=r;r||(t=o(e.el)),I.rebuildTable(e.el,t,e.tableObject)})},this.calculateRangeIdFromTable=function(e){var t=I.getDirective(e),e=o(e);return I.calculateRangeId(e,t.breakpoints)},this.isResponsiveEnabledForCurrentBreakpoint=function(e){var t=I.getDirective(e);return t&&c(t)&&d(t,o(e))},this.options.bindToResize&&this.bindRebuildToResize(),this.getTableElementObject=function(t){var e=I.elementObjects.filter(function(e){e=e.el.parentNode,e=new RegExp(/^wptb-table-id-(\d+)$/).exec(e.getAttribute("id"));return e&&e[1]&&Number.parseInt(e[1],10)===t});return _slicedToArray(e,1)[0]},this.markRowForResponsive=function(e,t){e.dataset.wptbResponsiveIgnore=JSON.stringify(t)},{rebuildTables:this.rebuildTables,rebuildTable:this.rebuildTable,getDirective:this.getDirective,calculateRangeId:this.calculateRangeId,calculateRangeIdFromTable:this.calculateRangeIdFromTable,isResponsiveEnabledForCurrentBreakpoint:this.isResponsiveEnabledForCurrentBreakpoint,getTableElementObject:this.getTableElementObject,markRowForResponsive:this.markRowForResponsive,calculateInnerSize:o,TableObject:t}}}),function(e,t,r){t[e]=r()}("WPTB_StylePass",self||global,function(){return new function(){var l=this;this.options={stylesheets:{}},this.insertShadowRoot=function(e,t){var r=t.parentNode,o=Array.from(r.children),n=o.indexOf(t),a=0<n-1?null:o[n-1],o=n+1>=o.length?null:o[n+1];l.prepareAllStylesheets(l.options.stylesheets,e.shadowRoot),l.borrowFromTheme(t),e.shadowRoot.appendChild(t),a?a.insertAdjacentElement("afterend",e):o?o.insertAdjacentElement("beforebegin",e):r.appendChild(e)},this.borrowFromTheme=function(e){var e=e.querySelector("table"),t=getComputedStyle(e).fontFamily;e.style.fontFamily=t},this.init=function(e){l.options=_objectSpread(_objectSpread({},l.options),e);e=Array.from(document.querySelectorAll("div .wptb-table-container"));0<e.length&&e.map(l.setupStylePass)},this.checkTableEligibility=function(e){e=e.querySelector("table");return!!e&&(l.options.settings.disableThemeStylesForAll||e.dataset.disableThemeStyles)},this.setupStylePass=function(e){var t,r,o;l.checkTableEligibility(e)&&((t=document.createElement("div")).classList.add("wptb-shadow-root-container"),r=(o=e.querySelector("table")).dataset.wptbTableContainerMaxWidth,o=o.dataset.wptbHorizontalScrollStatus,r&&!o&&(t.style.maxWidth="".concat(r,"px")),t.attachShadow({mode:"open"}),l.insertShadowRoot(t,e))},this.prepareAllStylesheets=function(r,o){Object.keys(r).map(function(t){if(Object.prototype.hasOwnProperty.call(r,t))switch(t){case"create":Object.keys(r[t]).map(function(e){Object.prototype.hasOwnProperty.call(r[t],e)&&l.prepareStylesheet(e,r[t][e],o)});break;case"copy":r[t].map(function(e){l.copyStylesheet(e,o)})}})},this.copyStylesheet=function(e,t){e=document.querySelector(e);e&&t.appendChild(e.cloneNode(!0))},this.prepareStylesheet=function(e,t,r){var o=document.createElement("link");o.setAttribute("id",e),o.setAttribute("href",t),o.setAttribute("rel","stylesheet"),o.setAttribute("media","all"),r.appendChild(o)}}}),function(e,t,r){"object"===("undefined"==typeof exports?"undefined":_typeof(exports))&&"undefined"!=typeof module?module.exports=r():t[e]=r()}("WPTB_LazyLoad",self||global,function(){function o(e){function t(e){var t=l(e);if(t){for(var r=arguments.length,o=new Array(1<r?r-1:0),n=1;n<r;n++)o[n-1]=arguments[n];t.apply(a,o)}}var a=this,r=_objectSpread(_objectSpread({},{name:"",speed:8,step:10,hooks:{},direction:"left",perspective:1e3,flashColor:"#FFFFFF"}),e),o="wptb-lazy-load-styles",l=(this.getOptions=function(){return _objectSpread({},r)},this.calculateDuration=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:.1,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:1;return Math.max(e,t)-Math.abs(t-e)/r.step*r.speed},this.calculateAnimationDirection=function(){var e=["X","Y"],t=0<arguments.length&&void 0!==arguments[0]&&arguments[0]?1:0;return["left","right"].includes(r.direction)?e[(0+t)%2]:e[(1+t)%2]},this.calculateDirectionConstant=function(){return(0<arguments.length&&void 0!==arguments[0]&&arguments[0]?-1:1)*(["left","up"].includes(a.getOptions().direction)?1:-1)},function(e){if(Object.prototype.hasOwnProperty.call(r.hooks,e)){e=r.hooks[e];if("function"==typeof e)return e}return null});this.getBufferElement=function(e){return e.parentNode.querySelector(".".concat("wptb-lazy-load-buffer-element"))},this.removeBufferElement=function(e){var t,e=a.getBufferElement(e);e&&((t=e.parentNode).removeChild(e),t.classList.remove("wptb-lazy-load-buffer-element-container"))},this.addStylesheet=function(e,t){var r=t.querySelector('style[id="'.concat(o,'"]')),t=(r||((r=t.createElement("style")).id=o,r.type="text/css",t.head.appendChild(r)),document.createTextNode(e));r.innerHTML="",r.appendChild(t)},this.beforeAnimation=function(e){t("beforeAnimation",e)},this.animate=function(e){t("animate",e)},this.afterAnimation=function(e){t("afterAnimation",e),delete a}}function e(r){this.getAnimation=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return r[e]?new o(_objectSpread(_objectSpread({},r[e]),t)):new o({})}}var s={none:{hooks:{animate:function(e){this.removeBufferElement(e)}}},slideIn:{hooks:{beforeAnimation:function(e){e.parentNode.style.overflow="hidden",e.style.transform="translate".concat(this.calculateAnimationDirection(),"(").concat(100*this.calculateDirectionConstant(),"%)")},animate:function(e){this.removeBufferElement(e),e.style.transition="transform ".concat(this.calculateDuration(),"s ease-out"),e.style.transform="translate".concat(this.calculateAnimationDirection(),"(0)")}}},growSling:{hooks:{beforeAnimation:function(e){e.style.transform="scale(0.1)"},animate:function(e){this.removeBufferElement(e),e.style.transition="transform ".concat(this.calculateDuration(),"s cubic-bezier(0.68, -0.55, 0.27, 1.55)"),e.style.transform="scale(1)"}}},flash:{hooks:{beforeAnimation:function(e){var t=document.createElement("div"),t=(t.classList.add("wptb-flash-element"),e.parentNode.classList.add("wptb-lazy-load-buffer-element-container"),e.insertAdjacentElement("afterend",t),"@keyframes wptb-flash {0% {opacity:1;}100% {opacity: 0;}} .wptb-flash-element {position: absolute; top: 0px; left: 0px; right: 0px; bottom: 0px; background-color: ".concat(this.getOptions().flashColor,"}.wptb-flash-animation {animation: wptb-flash ").concat(this.calculateDuration(),"s forwards ease-out}"));this.addStylesheet(t,e.ownerDocument)},animate:function(t){this.removeBufferElement(t);var r=t.parentNode.querySelector(".wptb-flash-element");r&&(t.parentNode.classList.add("wptb-lazy-load-buffer-element-container"),r.addEventListener("animationend",function(e){"wptb-flash"===e.animationName&&(t.parentNode.classList.remove("wptb-lazy-load-buffer-element-container"),r.remove())}),r.classList.add("wptb-flash-animation"))}}},flip:{hooks:{beforeAnimation:function(e){var t=e.parentNode,t=(t.classList.add("wptb-lazy-load-card-container"),null!=(t=t.parentNode)&&t.classList.add("wptb-lazy-load-perspective-base"),e.classList.add("wptb-lazy-load-card-back","wptb-lazy-load-hidden-backface"),this.getBufferElement(e).classList.add("wptb-lazy-load-hidden-backface","wptb-lazy-load-card-front"),this.calculateAnimationDirection(!0)),r="".concat(180*this.calculateDirectionConstant(!0),"deg"),t=".wptb-lazy-load-perspective-base{perspective: ".concat(this.getOptions().perspective,"px;} .wptb-lazy-load-card-container{ transform-style: preserve-3d; transition: transform ").concat(this.calculateDuration(),"s ease-out; } .wptb-lazy-load-card-container[data-wptb-card-flip='true']{transform: rotate").concat(t,"(").concat(r,")} [data-wptb-card-flip='true'] .wptb-lazy-load-card-front svg{ animation: none !important; opacity: 0.2;} .wptb-lazy-load-card-back { transform: rotate").concat(t,"(").concat(r,")} .wptb-lazy-load-hidden-backface{backface-visibility: hidden;}");this.addStylesheet(t,e.ownerDocument)},animate:function(t){var r=this,o=t.parentNode;o.addEventListener("transitionend",function(e){"transform"===e.propertyName&&r.removeBufferElement(t),o.classList.remove("wptb-lazy-load-card-container","wptb-lazy-load-flip"),o.parentNode.classList.remove("wptb-lazy-load-perspective-base"),t.classList.remove("wptb-lazy-load-card-back","wptb-lazy-load-hidden-backface")}),o.dataset.wptbCardFlip="true"}}}};return new function(){function r(e,l){var t,i=2<arguments.length&&void 0!==arguments[2]&&arguments[2],s=3<arguments.length&&void 0!==arguments[3]&&arguments[3];e.filter(function(e){return"false"===e.dataset.wptbLazyLoadStatus}).map(function(e){var t,r,o,n,a;i&&(t=e,(o=document.createElement("div")).classList.add(d),o.style.backgroundColor=c.backgroundColor,c.iconSvg&&(o.innerHTML='<div class="wptb-lazy-load-buffer-icon-wrapper wptb-plugin-filter-box-shadow-md">'.concat(c.iconSvg,"</div>"),r=o.querySelector("svg"),(a=o.querySelector(".wptb-lazy-load-buffer-icon-wrapper")).style.width="".concat(c.iconSize,"px"),a.style.height="".concat(c.iconSize,"px"),a.dataset.wptbLazyLoadIconAnimation=c.iconAnimation,r)&&(r.style.fill=c.iconColor),t.insertAdjacentElement("afterend",o),t.parentNode.classList.add(u),p.beforeAnimation(t)),(!c.forceMode||s)&&(n=e,a=l,c.forceMode||b(n,a))&&(n.dataset.wptbLazyLoadStatus="true",n.addEventListener("load",c.delay?function(){setTimeout(function(){f({target:n})},1e3*c.delay)}:f),n.src=n.dataset.wptbLazyLoadTarget)}),t=window.scrollY,a.lastYPosition=t}function o(){return window.innerHeight}function t(){var e=Array.from(document.querySelectorAll(".wptb-preview-table")),t=Array.from(document.querySelectorAll(".wptb-shadow-root-container")).reduce(function(e,t){t=t.shadowRoot.querySelector(".wptb-preview-table");return t&&e.push(t),e},[]),e=[].concat(e,_toConsumableArray(t));l.push.apply(l,_toConsumableArray(e.reduce(function(e,t){t=Array.from(t.querySelectorAll(".wptb-lazy-load-img"));return e.push.apply(e,t),e},[]))),r(l,o(),!0),c.forceMode||window.addEventListener("scroll",function(){r(l,o())},{passive:!0})}var n={forceMode:!1},c={},a={lastYPosition:0},l=[],d="wptb-lazy-load-buffer-element",u="wptb-lazy-load-buffer-element-container",i=new e(s),p=null,b=function(e,t){var e=e.parentNode.getBoundingClientRect(),r=e.top,o=e.height,e=e.bottom,n=c.visibilityPercentage,r=0<=window.scrollY-a.lastYPosition?r+o*(n/100):e-o*(n/100);return 0<=r&&r<=t},f=function(e){e=e.target;p.animate(e),e.removeEventListener("load",f),p.afterAnimation(e)};this.forceLoadImages=function(){r(l,null,!1,!0)},this.init=function(e){e&&"object"===_typeof(e)&&(c=_objectSpread(_objectSpread({},n),e)).enabled&&(p=i.getAnimation(c.imageLoadAnimation,_objectSpread({speed:c.imageLoadAnimationSpeed,direction:c.imageLoadAnimationDirection,perspective:c.imageLoadAnimationPerspective},c)),t())}}}),function(e,t,r){t[e]=r()}("WPTB_ScrollManager",self||global,function(){return function(e){function t(e){var t=e.parentNode.parentNode,e=e.parentNode,r=(t.dataset.wptbHorizontalScrollStatus="true",t.style.maxWidth);t.style.maxWidth="",e.style.width=r}var r=e.frontendCalculationStatus;this.init=function(){var e=Array.from(document.querySelectorAll("table[data-wptb-horizontal-scroll-status=true]"));r&&e.map(t)}}}),document.addEventListener("DOMContentLoaded",function(){var F=document.getElementsByClassName("wptb-table-container");function e(){for(var e=0;e<F.length;e++){var t=F[e],r=!0,o=t.getElementsByClassName("wptb-preview-table"),n=t.getElementsByClassName("wptb-table-container-matrix");if(0<o.length&&0<n.length){o=o[0],n=n[0];if(o.style.display="table",o.dataset.wptbTableAlignment&&(a=o.dataset.wptbTableAlignment,t.offsetWidth<o.offsetWidth?o.style.float=null:o.style.float="center"==a?null:a,t.style.float="center"==a?null:a),1==o.dataset.reconstraction&&1==o.dataset.wptbAdaptiveTable){var a=t.offsetWidth,l=o.offsetWidth,i=void 0,s=o.rows;0<s.length&&(i=s[0].querySelectorAll("td").length);var s=!1,c=void 0;if((!o.classList.contains("wptb-table-preview-head")||2<i)&&1<i)if(a<l){if(t.style.overflow="unset",n&&!n.classList.contains("wptb-matrix-hide")&&(n.classList.add("wptb-matrix-hide"),s=!0),o.classList.add("wptb-mobile-view-active"),o.rows&&i){var d=Math.floor(a/(l/i));if(d<1&&(d=1),0<t.getElementsByClassName("wptb-preview-table-mobile").length&&((c=t.getElementsByClassName("wptb-preview-table-mobile")[0]).classList.remove("wptb-mobile-hide"),(l=c.dataset.wholeColumnsInContainer)==d&&o.classList.contains("wptb-table-preview-head")||l==d&&!o.classList.contains("wptb-table-preview-head")&&(480<a||1==c.column)?r=!1:c.parentNode.removeChild(c)),r){var l=document.createElement("table"),u=document.createElement("tbody"),r=(l.appendChild(u),l.classList.add("wptb-preview-table-mobile"),o.className.match(/wptb-element-main(.+)-(\d+)/i)),p=(r&&Array.isArray(r)&&l.classList.add(r[0]),o.rows.length),b=void 0,f=!1;if(o.classList.contains("wptb-table-preview-head")){var y=p-1,m=void 0;if(d<p)for(var h=0;h<y;h++){if(0==(b=y%(m=(m=d-1-h)<=0?1:m))){f=!0;break}if(0<m&&m<=6&&m-2*b<0&&b<m){f=!0;break}if(6<m&&m<=12&&m-1.8*b<0&&b<m){f=!0;break}if(12<m&&m<=18&&m-1.6*b<0&&b<m){f=!0;break}}else m=y,f=!(b=0);if(f)for(var M=void 0,M=0<m?i*Math.ceil(y/m):i,g=(Math.floor((M-1)/i),void 0),w=0;w<M;w++){var v=Math.floor(w/i),S=document.createElement("tr"),C=o.rows[0].children[w-v*i].cloneNode(!0),T=void 0,W=window.getComputedStyle(o.rows[0]);C.style.backgroundColor||(C.style.backgroundColor=W.backgroundColor),C.style.width=null,C.style.height=null,C.removeAttribute("data-wptb-css-td-auto-width"),(g=window.getComputedStyle(o.querySelector("td"))).borderTopColor?C.style.borderColor=g.borderTopColor:C.style.borderColor=g.borderBottomColor,0<v&&w%i==0&&(C.style.borderTopWidth="5px"),S.appendChild(C);for(var z,A=m*v+1;A<m*(v+1)+1;A++)A<o.rows.length?(T=o.rows[A].children[w-v*i].cloneNode(!0),z=window.getComputedStyle(o.rows[A]),T.style.backgroundColor||(T.style.backgroundColor=z.backgroundColor),T.style.width=null,T.style.height=null,T.removeAttribute("data-wptb-css-td-auto-width")):((T=document.createElement("td")).style.borderWidth="0px",T.style.background="#fff"),(g=window.getComputedStyle(o.querySelector("td"))).borderTopColor?T.style.borderColor=g.borderTopColor:T.style.borderColor=g.borderBottomColor,0<v&&w%i==0&&(T.style.borderTopWidth="5px"),S.appendChild(T);u.appendChild(S)}}else{var x=void 0;if(480<a)for(var _=0;_<i;_++){if(0==(b=i%(x=0==(x=d-_)?1:x))){f=!0;break}if(0<x&&x<=6&&x-2*b<=0&&b<x){f=!0;break}if(6<x&&x<=12&&x-1.8*b<=0&&b<x){f=!0;break}if(12<x&&x<=18&&x-1.6*b<=0&&b<x){f=!0;break}}else f=!(b=0),l.column=x=1;var D=Math.ceil(i/x),N=D*p;if(f)for(var E=0;E<N;E++){var k=Math.floor(E/p),R=document.createElement("tr"),H=void 0,P=void 0,H=k!=D-1||0==b?(P=k*x,x*(1+k)):(P=i-b,i),O=o.rows[E-k*p];R.classList=O.classList,R.style.backgroundColor=O.style.backgroundColor;for(var I=P;I<H;I++){var q,j=O.children[I].cloneNode(!0);j.style.backgroundColor||(q=window.getComputedStyle(O),j.style.backgroundColor=q.backgroundColor),j.style.width=null,j.style.height=null,j.removeAttribute("data-wptb-css-td-auto-width"),R.appendChild(j)}u.appendChild(R)}}l.dataset.wholeColumnsInContainer=d;var L=l.querySelectorAll("[srcset]");if(0<L.length)for(var B=0;B<L.length;B++)L[B].removeAttribute("srcset");t.appendChild(c=l),s=!0}}}else n&&n.classList.contains("wptb-matrix-hide")&&(n.classList.remove("wptb-matrix-hide"),s=!0,o.classList.remove("wptb-mobile-view-active"),(c=t.querySelector(".wptb-preview-table-mobile"))&&t.getElementsByClassName("wptb-preview-table-mobile")[0].classList.add("wptb-mobile-hide"),t.style.overflow="auto");else o.style.minWidth="auto";WPTB_RecalculateIndexes(o),s&&(WPTB_RecalculateIndexes(c),r=new CustomEvent("table:rebuilt",{detail:!0,bubbles:!0}),o.dispatchEvent(r))}}}}function t(){function e(){var t=v[S],r=(t.classList.add("wptb-table-container-".concat(S)),t.getElementsByClassName("wptb-preview-table"));if(0<r.length){!(r=r[0]).dataset.wptbTableContainerMaxWidth||r.dataset.wptbTableHorizontalScrollStatus||t.dataset.wptbHorizontalScrollStatus||(t.style.maxWidth="".concat(r.dataset.wptbTableContainerMaxWidth,"px")),r.classList.remove("wptb-table-preview-static-indic"),r.mergingСellsHorizontally=!1;for(var e=r.querySelectorAll("td"),o=0;o<e.length;o++)1<e[o].colSpan&&(r.mergingСellsHorizontally=!0);function n(){var e=t.offsetWidth;m<e?g?(r.style.minWidth="100%",r.mergingСellsHorizontally?(r.style.width="auto",a=(a=(e-h)/g)-f-y,w=!0):r.style.width="100%"):(r.style.width="auto",r.style.minWidth=null,r.style.maxWidth="".concat(m,"px")):(r.style.maxWidth=null,r.style.minWidth="".concat(r.dataset.wptbTableTdsSumMaxWidth,"px"),r.style.width="auto",a=r.dataset.wptbTdWidthAuto||"100",w=!0)}var a,l,i,s,c=t.offsetWidth,d=r.querySelector("td"),d=window.getComputedStyle(d,null),u=d.getPropertyValue("border-left-width"),p=d.getPropertyValue("border-right-width"),b=d.getPropertyValue("padding-left"),d=d.getPropertyValue("padding-left"),f=parseFloat(b,10)+parseFloat(d,10),y=parseFloat(u,10)+parseFloat(p,10),m=r.dataset.wptbTableTdsSumMaxWidth,h=r.dataset.wptbFixedWidthSize,g=r.dataset.wptbCellsWidthAutoCount,w=!1;c<=0?(l=function(e){var e=getComputedStyle(e),t=e.display,e=e.visibility;return"none"!==t||"visible"===e},(b=(i=function(e){var e=e.parentNode,t=l(e),r=e.nodeName.toLowerCase();return t||"body"===r?"body"===r?null:e:i(e)})(t))&&(s=new MutationObserver(function(e){try{e.map(function(e){var t=l(e.target),e=e.target.getBoundingClientRect().width;if(t&&0<e)throw n(),s.disconnect(),new Error("get out of iteration")})}catch(e){}})).observe(b,{attributes:!0,childList:!1,subtree:!1})):n();d=document.head;d&&(u=d.querySelector("style[data-wptb-td-auto-width-".concat(S,'="true"]')))&&d.removeChild(u),w&&((p=document.createElement("style")).setAttribute("data-wptb-td-auto-width-".concat(S),!0),p.innerHTML=".wptb-table-container-".concat(S," table td[data-wptb-css-td-auto-width=true]{width:").concat(a,"px}"),d)&&d.appendChild(p)}}for(var v=document.getElementsByClassName("wptb-table-container"),S=0;S<v.length;S++)e()}d=".wptb-preview-table .wptb-button",Array.from(document.querySelectorAll(d)).map(function(t){t.addEventListener("mouseenter",function(e){e=e.target;e.dataset.wptbElementHoverBgColor&&(e.style.backgroundColor=e.dataset.wptbElementHoverBgColor),e.dataset.wptbElementHoverTextColor&&(e.style.color=e.dataset.wptbElementHoverTextColor),e.dataset.wptbElementHoverScale&&(e.style.transform="scale(".concat(t.dataset.wptbElementHoverScale,")"))}),t.addEventListener("mouseleave",function(e){e=e.target;e.dataset.wptbElementHoverBgColor&&(e.style.backgroundColor=e.dataset.wptbElementBgColor),e.dataset.wptbElementHoverTextColor&&(e.style.color=e.dataset.wptbElementColor),e.dataset.wptbElementHoverScale&&(e.style.transform="scale(1)")})}),t(),e(),window.addEventListener("resize",function(){t(),e()});for(var r=document.getElementsByClassName("wptb-ph-element"),o=0;o<r.length;o++){var n,a,l=r[o];l.classList.contains("wptb-list-item-container")&&(l.classList.remove("wptb-list-item-container"),l.classList.add("wptb-list-container")),l.classList.contains("wptb-button-container")&&(a=l.className.match(/wptb-size-([A-Z]+)/i))&&Array.isArray(a)&&(n=(a=a[0]).toLowerCase(),l.classList.remove(a),a=l.querySelector(".wptb-button-wrapper"))&&a.classList.add(n)}var i=new WPTB_ResponsiveFrontend({query:".wptb-preview-table",bindToResize:!0});(self||global).wptbResponsiveFrontendInstance=i;for(var s=document.querySelectorAll(".wptb-preview-table"),c=0;c<s.length;c+=1)new WPTB_SortableTable({table:s[c]}).sortableTableInitialization(i);var d=new CustomEvent("responsive:front",{detail:{responsiveFront:i}});document.dispatchEvent(d),new WPTB_ScrollManager(WptbFrontendData.scrollManager).init(),WPTB_ExtraStyles.applyStyles(WPTB_ExtraStyles.modes.frontEnd,WptbFrontendData.generalStyles),i.rebuildTables(),WPTB_LazyLoad.init(WptbFrontendData.lazyLoad),WptbFrontendBase.getTableObjects().map(function(e){e=e.mainTable;Array.from(e.querySelectorAll(".wptb-text_icon_element-container")).map(function(e){e.setAttribute("contenteditable",!1)})}),WptbFrontendBase.getTableObjects().map(function(e){e=e.mainTable;Array.from(e.querySelectorAll(".wptb-badge-container")).map(function(e){e.setAttribute("contenteditable",!1)})}),WPTB_StylePass.init(WptbFrontendData.stylePass)});
|
||
//# sourceMappingURL=wp-table-builder-frontend.js.map
|
||
;
|
||
!function(r){"use strict";var t,e,n;t=[function(r,t,e){e(1),e(73),e(76),e(78),e(80),e(92),e(93),e(95),e(98),e(100),e(101),e(110),e(111),e(114),e(120),e(135),e(137),e(138),r.exports=e(139)},function(r,t,e){var n=e(2),o=e(67),a=e(11),i=e(68),c=Array;n({target:"Array",proto:!0},{toReversed:function(){return o(a(this),c)}}),i("toReversed")},function(t,e,n){var o=n(3),a=n(4).f,i=n(42),c=n(46),u=n(36),f=n(54),s=n(66);t.exports=function(t,e){var n,p,l,y,v,h=t.target,g=t.global,d=t.stat;if(n=g?o:d?o[h]||u(h,{}):o[h]&&o[h].prototype)for(p in e){if(y=e[p],l=t.dontCallGetSet?(v=a(n,p))&&v.value:n[p],!s(g?p:h+(d?".":"#")+p,t.forced)&&l!==r){if(typeof y==typeof l)continue;f(y,l)}(t.sham||l&&l.sham)&&i(y,"sham",!0),c(n,p,y,t)}}},function(r,t,e){var n=function(r){return r&&r.Math===Math&&r};r.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof global&&global)||n("object"==typeof this&&this)||function(){return this}()||Function("return this")()},function(r,t,e){var n=e(5),o=e(7),a=e(9),i=e(10),c=e(11),u=e(17),f=e(37),s=e(40),p=Object.getOwnPropertyDescriptor;t.f=n?p:function(r,t){if(r=c(r),t=u(t),s)try{return p(r,t)}catch(r){}if(f(r,t))return i(!o(a.f,r,t),r[t])}},function(r,t,e){var n=e(6);r.exports=!n((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(r,t,e){r.exports=function(r){try{return!!r()}catch(r){return!0}}},function(r,t,e){var n=e(8),o=Function.prototype.call;r.exports=n?o.bind(o):function(){return o.apply(o,arguments)}},function(r,t,e){var n=e(6);r.exports=!n((function(){var r=function(){}.bind();return"function"!=typeof r||r.hasOwnProperty("prototype")}))},function(r,t,e){var n={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,a=o&&!n.call({1:2},1);t.f=a?function(r){var t=o(this,r);return!!t&&t.enumerable}:n},function(r,t,e){r.exports=function(r,t){return{enumerable:!(1&r),configurable:!(2&r),writable:!(4&r),value:t}}},function(r,t,e){var n=e(12),o=e(15);r.exports=function(r){return n(o(r))}},function(r,t,e){var n=e(13),o=e(6),a=e(14),i=Object,c=n("".split);r.exports=o((function(){return!i("z").propertyIsEnumerable(0)}))?function(r){return"String"===a(r)?c(r,""):i(r)}:i},function(r,t,e){var n=e(8),o=Function.prototype,a=o.call,i=n&&o.bind.bind(a,a);r.exports=n?i:function(r){return function(){return a.apply(r,arguments)}}},function(r,t,e){var n=e(13),o=n({}.toString),a=n("".slice);r.exports=function(r){return a(o(r),8,-1)}},function(r,t,e){var n=e(16),o=TypeError;r.exports=function(r){if(n(r))throw new o("Can't call method on "+r);return r}},function(t,e,n){t.exports=function(t){return null===t||t===r}},function(r,t,e){var n=e(18),o=e(21);r.exports=function(r){var t=n(r,"string");return o(t)?t:t+""}},function(t,e,n){var o=n(7),a=n(19),i=n(21),c=n(28),u=n(31),f=n(32),s=TypeError,p=f("toPrimitive");t.exports=function(t,e){if(!a(t)||i(t))return t;var n,f=c(t,p);if(f){if(e===r&&(e="default"),n=o(f,t,e),!a(n)||i(n))return n;throw new s("Can't convert object to primitive value")}return e===r&&(e="number"),u(t,e)}},function(r,t,e){var n=e(20);r.exports=function(r){return"object"==typeof r?null!==r:n(r)}},function(t,e,n){var o="object"==typeof document&&document.all;t.exports=void 0===o&&o!==r?function(r){return"function"==typeof r||r===o}:function(r){return"function"==typeof r}},function(r,t,e){var n=e(22),o=e(20),a=e(23),i=e(24),c=Object;r.exports=i?function(r){return"symbol"==typeof r}:function(r){var t=n("Symbol");return o(t)&&a(t.prototype,c(r))}},function(t,e,n){var o=n(3),a=n(20);t.exports=function(t,e){return arguments.length<2?(n=o[t],a(n)?n:r):o[t]&&o[t][e];var n}},function(r,t,e){var n=e(13);r.exports=n({}.isPrototypeOf)},function(r,t,e){var n=e(25);r.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(r,t,e){var n=e(26),o=e(6),a=e(3).String;r.exports=!!Object.getOwnPropertySymbols&&!o((function(){var r=Symbol("symbol detection");return!a(r)||!(Object(r)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},function(r,t,e){var n,o,a=e(3),i=e(27),c=a.process,u=a.Deno,f=c&&c.versions||u&&u.version,s=f&&f.v8;s&&(o=(n=s.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!o&&i&&(!(n=i.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=i.match(/Chrome\/(\d+)/))&&(o=+n[1]),r.exports=o},function(r,t,e){r.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},function(t,e,n){var o=n(29),a=n(16);t.exports=function(t,e){var n=t[e];return a(n)?r:o(n)}},function(r,t,e){var n=e(20),o=e(30),a=TypeError;r.exports=function(r){if(n(r))return r;throw new a(o(r)+" is not a function")}},function(r,t,e){var n=String;r.exports=function(r){try{return n(r)}catch(r){return"Object"}}},function(r,t,e){var n=e(7),o=e(20),a=e(19),i=TypeError;r.exports=function(r,t){var e,c;if("string"===t&&o(e=r.toString)&&!a(c=n(e,r)))return c;if(o(e=r.valueOf)&&!a(c=n(e,r)))return c;if("string"!==t&&o(e=r.toString)&&!a(c=n(e,r)))return c;throw new i("Can't convert object to primitive value")}},function(r,t,e){var n=e(3),o=e(33),a=e(37),i=e(39),c=e(25),u=e(24),f=n.Symbol,s=o("wks"),p=u?f.for||f:f&&f.withoutSetter||i;r.exports=function(r){return a(s,r)||(s[r]=c&&a(f,r)?f[r]:p("Symbol."+r)),s[r]}},function(t,e,n){var o=n(34),a=n(35);(t.exports=function(t,e){return a[t]||(a[t]=e!==r?e:{})})("versions",[]).push({version:"3.35.1",mode:o?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.35.1/LICENSE",source:"https://github.com/zloirock/core-js"})},function(r,t,e){r.exports=!1},function(r,t,e){var n=e(3),o=e(36),a="__core-js_shared__",i=n[a]||o(a,{});r.exports=i},function(r,t,e){var n=e(3),o=Object.defineProperty;r.exports=function(r,t){try{o(n,r,{value:t,configurable:!0,writable:!0})}catch(e){n[r]=t}return t}},function(r,t,e){var n=e(13),o=e(38),a=n({}.hasOwnProperty);r.exports=Object.hasOwn||function(r,t){return a(o(r),t)}},function(r,t,e){var n=e(15),o=Object;r.exports=function(r){return o(n(r))}},function(t,e,n){var o=n(13),a=0,i=Math.random(),c=o(1..toString);t.exports=function(t){return"Symbol("+(t===r?"":t)+")_"+c(++a+i,36)}},function(r,t,e){var n=e(5),o=e(6),a=e(41);r.exports=!n&&!o((function(){return 7!==Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a}))},function(r,t,e){var n=e(3),o=e(19),a=n.document,i=o(a)&&o(a.createElement);r.exports=function(r){return i?a.createElement(r):{}}},function(r,t,e){var n=e(5),o=e(43),a=e(10);r.exports=n?function(r,t,e){return o.f(r,t,a(1,e))}:function(r,t,e){return r[t]=e,r}},function(r,t,e){var n=e(5),o=e(40),a=e(44),i=e(45),c=e(17),u=TypeError,f=Object.defineProperty,s=Object.getOwnPropertyDescriptor,p="enumerable",l="configurable",y="writable";t.f=n?a?function(r,t,e){if(i(r),t=c(t),i(e),"function"==typeof r&&"prototype"===t&&"value"in e&&y in e&&!e[y]){var n=s(r,t);n&&n[y]&&(r[t]=e.value,e={configurable:l in e?e[l]:n[l],enumerable:p in e?e[p]:n[p],writable:!1})}return f(r,t,e)}:f:function(r,t,e){if(i(r),t=c(t),i(e),o)try{return f(r,t,e)}catch(r){}if("get"in e||"set"in e)throw new u("Accessors not supported");return"value"in e&&(r[t]=e.value),r}},function(r,t,e){var n=e(5),o=e(6);r.exports=n&&o((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},function(r,t,e){var n=e(19),o=String,a=TypeError;r.exports=function(r){if(n(r))return r;throw new a(o(r)+" is not an object")}},function(t,e,n){var o=n(20),a=n(43),i=n(47),c=n(36);t.exports=function(t,e,n,u){u||(u={});var f=u.enumerable,s=u.name!==r?u.name:e;if(o(n)&&i(n,s,u),u.global)f?t[e]=n:c(e,n);else{try{u.unsafe?t[e]&&(f=!0):delete t[e]}catch(r){}f?t[e]=n:a.f(t,e,{value:n,enumerable:!1,configurable:!u.nonConfigurable,writable:!u.nonWritable})}return t}},function(t,e,n){var o=n(13),a=n(6),i=n(20),c=n(37),u=n(5),f=n(48).CONFIGURABLE,s=n(49),p=n(50),l=p.enforce,y=p.get,v=String,h=Object.defineProperty,g=o("".slice),d=o("".replace),b=o([].join),m=u&&!a((function(){return 8!==h((function(){}),"length",{value:8}).length})),w=String(String).split("String"),x=t.exports=function(t,e,n){"Symbol("===g(v(e),0,7)&&(e="["+d(v(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!c(t,"name")||f&&t.name!==e)&&(u?h(t,"name",{value:e,configurable:!0}):t.name=e),m&&n&&c(n,"arity")&&t.length!==n.arity&&h(t,"length",{value:n.arity});try{n&&c(n,"constructor")&&n.constructor?u&&h(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=r)}catch(r){}var o=l(t);return c(o,"source")||(o.source=b(w,"string"==typeof e?e:"")),t};Function.prototype.toString=x((function(){return i(this)&&y(this).source||s(this)}),"toString")},function(r,t,e){var n=e(5),o=e(37),a=Function.prototype,i=n&&Object.getOwnPropertyDescriptor,c=o(a,"name"),u=c&&"something"===function(){}.name,f=c&&(!n||n&&i(a,"name").configurable);r.exports={EXISTS:c,PROPER:u,CONFIGURABLE:f}},function(r,t,e){var n=e(13),o=e(20),a=e(35),i=n(Function.toString);o(a.inspectSource)||(a.inspectSource=function(r){return i(r)}),r.exports=a.inspectSource},function(r,t,e){var n,o,a,i=e(51),c=e(3),u=e(19),f=e(42),s=e(37),p=e(35),l=e(52),y=e(53),v="Object already initialized",h=c.TypeError,g=c.WeakMap;if(i||p.state){var d=p.state||(p.state=new g);d.get=d.get,d.has=d.has,d.set=d.set,n=function(r,t){if(d.has(r))throw new h(v);return t.facade=r,d.set(r,t),t},o=function(r){return d.get(r)||{}},a=function(r){return d.has(r)}}else{var b=l("state");y[b]=!0,n=function(r,t){if(s(r,b))throw new h(v);return t.facade=r,f(r,b,t),t},o=function(r){return s(r,b)?r[b]:{}},a=function(r){return s(r,b)}}r.exports={set:n,get:o,has:a,enforce:function(r){return a(r)?o(r):n(r,{})},getterFor:function(r){return function(t){var e;if(!u(t)||(e=o(t)).type!==r)throw new h("Incompatible receiver, "+r+" required");return e}}}},function(r,t,e){var n=e(3),o=e(20),a=n.WeakMap;r.exports=o(a)&&/native code/.test(String(a))},function(r,t,e){var n=e(33),o=e(39),a=n("keys");r.exports=function(r){return a[r]||(a[r]=o(r))}},function(r,t,e){r.exports={}},function(r,t,e){var n=e(37),o=e(55),a=e(4),i=e(43);r.exports=function(r,t,e){for(var c=o(t),u=i.f,f=a.f,s=0;s<c.length;s++){var p=c[s];n(r,p)||e&&n(e,p)||u(r,p,f(t,p))}}},function(r,t,e){var n=e(22),o=e(13),a=e(56),i=e(65),c=e(45),u=o([].concat);r.exports=n("Reflect","ownKeys")||function(r){var t=a.f(c(r)),e=i.f;return e?u(t,e(r)):t}},function(r,t,e){var n=e(57),o=e(64).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(r){return n(r,o)}},function(r,t,e){var n=e(13),o=e(37),a=e(11),i=e(58).indexOf,c=e(53),u=n([].push);r.exports=function(r,t){var e,n=a(r),f=0,s=[];for(e in n)!o(c,e)&&o(n,e)&&u(s,e);for(;t.length>f;)o(n,e=t[f++])&&(~i(s,e)||u(s,e));return s}},function(r,t,e){var n=e(11),o=e(59),a=e(62),i=function(r){return function(t,e,i){var c,u=n(t),f=a(u),s=o(i,f);if(r&&e!=e){for(;f>s;)if((c=u[s++])!=c)return!0}else for(;f>s;s++)if((r||s in u)&&u[s]===e)return r||s||0;return!r&&-1}};r.exports={includes:i(!0),indexOf:i(!1)}},function(r,t,e){var n=e(60),o=Math.max,a=Math.min;r.exports=function(r,t){var e=n(r);return e<0?o(e+t,0):a(e,t)}},function(r,t,e){var n=e(61);r.exports=function(r){var t=+r;return t!=t||0===t?0:n(t)}},function(r,t,e){var n=Math.ceil,o=Math.floor;r.exports=Math.trunc||function(r){var t=+r;return(t>0?o:n)(t)}},function(r,t,e){var n=e(63);r.exports=function(r){return n(r.length)}},function(r,t,e){var n=e(60),o=Math.min;r.exports=function(r){var t=n(r);return t>0?o(t,9007199254740991):0}},function(r,t,e){r.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(r,t,e){t.f=Object.getOwnPropertySymbols},function(r,t,e){var n=e(6),o=e(20),a=/#|\.prototype\./,i=function(r,t){var e=u[c(r)];return e===s||e!==f&&(o(t)?n(t):!!t)},c=i.normalize=function(r){return String(r).replace(a,".").toLowerCase()},u=i.data={},f=i.NATIVE="N",s=i.POLYFILL="P";r.exports=i},function(r,t,e){var n=e(62);r.exports=function(r,t){for(var e=n(r),o=new t(e),a=0;a<e;a++)o[a]=r[e-a-1];return o}},function(t,e,n){var o=n(32),a=n(69),i=n(43).f,c=o("unscopables"),u=Array.prototype;u[c]===r&&i(u,c,{configurable:!0,value:a(null)}),t.exports=function(r){u[c][r]=!0}},function(t,e,n){var o,a=n(45),i=n(70),c=n(64),u=n(53),f=n(72),s=n(41),p=n(52),l="prototype",y="script",v=p("IE_PROTO"),h=function(){},g=function(r){return"<"+y+">"+r+"</"+y+">"},d=function(r){r.write(g("")),r.close();var t=r.parentWindow.Object;return r=null,t},b=function(){try{o=new ActiveXObject("htmlfile")}catch(r){}var r,t,e;b="undefined"!=typeof document?document.domain&&o?d(o):(t=s("iframe"),e="java"+y+":",t.style.display="none",f.appendChild(t),t.src=String(e),(r=t.contentWindow.document).open(),r.write(g("document.F=Object")),r.close(),r.F):d(o);for(var n=c.length;n--;)delete b[l][c[n]];return b()};u[v]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(h[l]=a(t),n=new h,h[l]=null,n[v]=t):n=b(),e===r?n:i.f(n,e)}},function(r,t,e){var n=e(5),o=e(44),a=e(43),i=e(45),c=e(11),u=e(71);t.f=n&&!o?Object.defineProperties:function(r,t){i(r);for(var e,n=c(t),o=u(t),f=o.length,s=0;f>s;)a.f(r,e=o[s++],n[e]);return r}},function(r,t,e){var n=e(57),o=e(64);r.exports=Object.keys||function(r){return n(r,o)}},function(r,t,e){var n=e(22);r.exports=n("document","documentElement")},function(t,e,n){var o=n(2),a=n(13),i=n(29),c=n(11),u=n(74),f=n(75),s=n(68),p=Array,l=a(f("Array","sort"));o({target:"Array",proto:!0},{toSorted:function(t){t!==r&&i(t);var e=c(this),n=u(p,e);return l(n,t)}}),s("toSorted")},function(r,t,e){var n=e(62);r.exports=function(r,t,e){for(var o=0,a=arguments.length>2?e:n(t),i=new r(a);a>o;)i[o]=t[o++];return i}},function(r,t,e){var n=e(3);r.exports=function(r,t){var e=n[r],o=e&&e.prototype;return o&&o[t]}},function(r,t,e){var n=e(2),o=e(68),a=e(77),i=e(62),c=e(59),u=e(11),f=e(60),s=Array,p=Math.max,l=Math.min;n({target:"Array",proto:!0},{toSpliced:function(r,t){var e,n,o,y,v=u(this),h=i(v),g=c(r,h),d=arguments.length,b=0;for(0===d?e=n=0:1===d?(e=0,n=h-g):(e=d-2,n=l(p(f(t),0),h-g)),o=a(h+e-n),y=s(o);b<g;b++)y[b]=v[b];for(;b<g+e;b++)y[b]=arguments[b-g+2];for(;b<o;b++)y[b]=v[b+n-e];return y}}),o("toSpliced")},function(r,t,e){var n=TypeError;r.exports=function(r){if(r>9007199254740991)throw n("Maximum allowed index exceeded");return r}},function(r,t,e){var n=e(2),o=e(79),a=e(11),i=Array;n({target:"Array",proto:!0},{with:function(r,t){return o(a(this),i,r,t)}})},function(r,t,e){var n=e(62),o=e(60),a=RangeError;r.exports=function(r,t,e,i){var c=n(r),u=o(e),f=u<0?c+u:u;if(f>=c||f<0)throw new a("Incorrect index");for(var s=new t(c),p=0;p<c;p++)s[p]=p===f?i:r[p];return s}},function(r,t,e){var n=e(2),o=e(13),a=e(29),i=e(15),c=e(81),u=e(91),f=e(34),s=u.Map,p=u.has,l=u.get,y=u.set,v=o([].push);n({target:"Map",stat:!0,forced:f},{groupBy:function(r,t){i(r),a(t);var e=new s,n=0;return c(r,(function(r){var o=t(r,n++);p(e,o)?v(l(e,o),r):y(e,o,[r])})),e}})},function(r,t,e){var n=e(82),o=e(7),a=e(45),i=e(30),c=e(84),u=e(62),f=e(23),s=e(86),p=e(87),l=e(90),y=TypeError,v=function(r,t){this.stopped=r,this.result=t},h=v.prototype;r.exports=function(r,t,e){var g,d,b,m,w,x,E,A=e&&e.that,O=!(!e||!e.AS_ENTRIES),S=!(!e||!e.IS_RECORD),R=!(!e||!e.IS_ITERATOR),T=!(!e||!e.INTERRUPTED),_=n(t,A),I=function(r){return g&&l(g,"normal",r),new v(!0,r)},j=function(r){return O?(a(r),T?_(r[0],r[1],I):_(r[0],r[1])):T?_(r,I):_(r)};if(S)g=r.iterator;else if(R)g=r;else{if(!(d=p(r)))throw new y(i(r)+" is not iterable");if(c(d)){for(b=0,m=u(r);m>b;b++)if((w=j(r[b]))&&f(h,w))return w;return new v(!1)}g=s(r,d)}for(x=S?r.next:g.next;!(E=o(x,g)).done;){try{w=j(E.value)}catch(r){l(g,"throw",r)}if("object"==typeof w&&w&&f(h,w))return w}return new v(!1)}},function(t,e,n){var o=n(83),a=n(29),i=n(8),c=o(o.bind);t.exports=function(t,e){return a(t),e===r?t:i?c(t,e):function(){return t.apply(e,arguments)}}},function(r,t,e){var n=e(14),o=e(13);r.exports=function(r){if("Function"===n(r))return o(r)}},function(t,e,n){var o=n(32),a=n(85),i=o("iterator"),c=Array.prototype;t.exports=function(t){return t!==r&&(a.Array===t||c[i]===t)}},function(r,t,e){r.exports={}},function(r,t,e){var n=e(7),o=e(29),a=e(45),i=e(30),c=e(87),u=TypeError;r.exports=function(r,t){var e=arguments.length<2?c(r):t;if(o(e))return a(n(e,r));throw new u(i(r)+" is not iterable")}},function(r,t,e){var n=e(88),o=e(28),a=e(16),i=e(85),c=e(32)("iterator");r.exports=function(r){if(!a(r))return o(r,c)||o(r,"@@iterator")||i[n(r)]}},function(t,e,n){var o=n(89),a=n(20),i=n(14),c=n(32)("toStringTag"),u=Object,f="Arguments"===i(function(){return arguments}());t.exports=o?i:function(t){var e,n,o;return t===r?"Undefined":null===t?"Null":"string"==typeof(n=function(r,t){try{return r[t]}catch(r){}}(e=u(t),c))?n:f?i(e):"Object"===(o=i(e))&&a(e.callee)?"Arguments":o}},function(r,t,e){var n={};n[e(32)("toStringTag")]="z",r.exports="[object z]"===String(n)},function(r,t,e){var n=e(7),o=e(45),a=e(28);r.exports=function(r,t,e){var i,c;o(r);try{if(!(i=a(r,"return"))){if("throw"===t)throw e;return e}i=n(i,r)}catch(r){c=!0,i=r}if("throw"===t)throw e;if(c)throw i;return o(i),e}},function(r,t,e){var n=e(13),o=Map.prototype;r.exports={Map,set:n(o.set),get:n(o.get),has:n(o.has),remove:n(o.delete),proto:o}},function(r,t,e){var n=e(2),o=e(22),a=e(13),i=e(29),c=e(15),u=e(17),f=e(81),s=o("Object","create"),p=a([].push);n({target:"Object",stat:!0},{groupBy:function(r,t){c(r),i(t);var e=s(null),n=0;return f(r,(function(r){var o=u(t(r,n++));o in e?p(e[o],r):e[o]=[r]})),e}})},function(r,t,e){var n=e(2),o=e(94);n({target:"Promise",stat:!0},{withResolvers:function(){var r=o.f(this);return{promise:r.promise,resolve:r.resolve,reject:r.reject}}})},function(t,e,n){var o=n(29),a=TypeError,i=function(t){var e,n;this.promise=new t((function(t,o){if(e!==r||n!==r)throw new a("Bad Promise constructor");e=t,n=o})),this.resolve=o(e),this.reject=o(n)};t.exports.f=function(r){return new i(r)}},function(r,t,e){var n=e(3),o=e(5),a=e(96),i=e(97),c=e(6),u=n.RegExp,f=u.prototype;o&&c((function(){var r=!0;try{u(".","d")}catch(t){r=!1}var t={},e="",n=r?"dgimsy":"gimsy",o=function(r,n){Object.defineProperty(t,r,{get:function(){return e+=n,!0}})},a={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var i in r&&(a.hasIndices="d"),a)o(i,a[i]);return Object.getOwnPropertyDescriptor(f,"flags").get.call(t)!==n||e!==n}))&&a(f,"flags",{configurable:!0,get:i})},function(r,t,e){var n=e(47),o=e(43);r.exports=function(r,t,e){return e.get&&n(e.get,t,{getter:!0}),e.set&&n(e.set,t,{setter:!0}),o.f(r,t,e)}},function(r,t,e){var n=e(45);r.exports=function(){var r=n(this),t="";return r.hasIndices&&(t+="d"),r.global&&(t+="g"),r.ignoreCase&&(t+="i"),r.multiline&&(t+="m"),r.dotAll&&(t+="s"),r.unicode&&(t+="u"),r.unicodeSets&&(t+="v"),r.sticky&&(t+="y"),t}},function(r,t,e){var n=e(2),o=e(13),a=e(15),i=e(99),c=o("".charCodeAt);n({target:"String",proto:!0},{isWellFormed:function(){for(var r=i(a(this)),t=r.length,e=0;e<t;e++){var n=c(r,e);if(55296==(63488&n)&&(n>=56320||++e>=t||56320!=(64512&c(r,e))))return!1}return!0}})},function(r,t,e){var n=e(88),o=String;r.exports=function(r){if("Symbol"===n(r))throw new TypeError("Cannot convert a Symbol value to a string");return o(r)}},function(r,t,e){var n=e(2),o=e(7),a=e(13),i=e(15),c=e(99),u=e(6),f=Array,s=a("".charAt),p=a("".charCodeAt),l=a([].join),y="".toWellFormed,v=y&&u((function(){return"1"!==o(y,1)}));n({target:"String",proto:!0,forced:v},{toWellFormed:function(){var r=c(i(this));if(v)return o(y,r);for(var t=r.length,e=f(t),n=0;n<t;n++){var a=p(r,n);55296!=(63488&a)?e[n]=s(r,n):a>=56320||n+1>=t||56320!=(64512&p(r,n+1))?e[n]="<22>":(e[n]=s(r,n),e[++n]=s(r,n))}return l(e,"")}})},function(r,t,e){var n=e(67),o=e(102),a=o.aTypedArray,i=o.exportTypedArrayMethod,c=o.getTypedArrayConstructor;i("toReversed",(function(){return n(a(this),c(this))}))},function(t,e,n){var o,a,i,c=n(103),u=n(5),f=n(3),s=n(20),p=n(19),l=n(37),y=n(88),v=n(30),h=n(42),g=n(46),d=n(96),b=n(23),m=n(104),w=n(106),x=n(32),E=n(39),A=n(50),O=A.enforce,S=A.get,R=f.Int8Array,T=R&&R.prototype,_=f.Uint8ClampedArray,I=_&&_.prototype,j=R&&m(R),M=T&&m(T),D=Object.prototype,P=f.TypeError,k=x("toStringTag"),C=E("TYPED_ARRAY_TAG"),U="TypedArrayConstructor",L=c&&!!w&&"Opera"!==y(f.opera),N=!1,F={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},B={BigInt64Array:8,BigUint64Array:8},V=function(r){var t=m(r);if(p(t)){var e=S(t);return e&&l(e,U)?e[U]:V(t)}},z=function(r){if(!p(r))return!1;var t=y(r);return l(F,t)||l(B,t)};for(o in F)(i=(a=f[o])&&a.prototype)?O(i)[U]=a:L=!1;for(o in B)(i=(a=f[o])&&a.prototype)&&(O(i)[U]=a);if((!L||!s(j)||j===Function.prototype)&&(j=function(){throw new P("Incorrect invocation")},L))for(o in F)f[o]&&w(f[o],j);if((!L||!M||M===D)&&(M=j.prototype,L))for(o in F)f[o]&&w(f[o].prototype,M);if(L&&m(I)!==M&&w(I,M),u&&!l(M,k))for(o in N=!0,d(M,k,{configurable:!0,get:function(){return p(this)?this[C]:r}}),F)f[o]&&h(f[o],C,o);t.exports={NATIVE_ARRAY_BUFFER_VIEWS:L,TYPED_ARRAY_TAG:N&&C,aTypedArray:function(r){if(z(r))return r;throw new P("Target is not a typed array")},aTypedArrayConstructor:function(r){if(s(r)&&(!w||b(j,r)))return r;throw new P(v(r)+" is not a typed array constructor")},exportTypedArrayMethod:function(r,t,e,n){if(u){if(e)for(var o in F){var a=f[o];if(a&&l(a.prototype,r))try{delete a.prototype[r]}catch(e){try{a.prototype[r]=t}catch(r){}}}M[r]&&!e||g(M,r,e?t:L&&T[r]||t,n)}},exportTypedArrayStaticMethod:function(r,t,e){var n,o;if(u){if(w){if(e)for(n in F)if((o=f[n])&&l(o,r))try{delete o[r]}catch(r){}if(j[r]&&!e)return;try{return g(j,r,e?t:L&&j[r]||t)}catch(r){}}for(n in F)!(o=f[n])||o[r]&&!e||g(o,r,t)}},getTypedArrayConstructor:V,isView:function(r){if(!p(r))return!1;var t=y(r);return"DataView"===t||l(F,t)||l(B,t)},isTypedArray:z,TypedArray:j,TypedArrayPrototype:M}},function(r,t,e){r.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},function(r,t,e){var n=e(37),o=e(20),a=e(38),i=e(52),c=e(105),u=i("IE_PROTO"),f=Object,s=f.prototype;r.exports=c?f.getPrototypeOf:function(r){var t=a(r);if(n(t,u))return t[u];var e=t.constructor;return o(e)&&t instanceof e?e.prototype:t instanceof f?s:null}},function(r,t,e){var n=e(6);r.exports=!n((function(){function r(){}return r.prototype.constructor=null,Object.getPrototypeOf(new r)!==r.prototype}))},function(t,e,n){var o=n(107),a=n(45),i=n(108);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var r,t=!1,e={};try{(r=o(Object.prototype,"__proto__","set"))(e,[]),t=e instanceof Array}catch(r){}return function(e,n){return a(e),i(n),t?r(e,n):e.__proto__=n,e}}():r)},function(r,t,e){var n=e(13),o=e(29);r.exports=function(r,t,e){try{return n(o(Object.getOwnPropertyDescriptor(r,t)[e]))}catch(r){}}},function(r,t,e){var n=e(109),o=String,a=TypeError;r.exports=function(r){if(n(r))return r;throw new a("Can't set "+o(r)+" as a prototype")}},function(r,t,e){var n=e(19);r.exports=function(r){return n(r)||null===r}},function(t,e,n){var o=n(102),a=n(13),i=n(29),c=n(74),u=o.aTypedArray,f=o.getTypedArrayConstructor,s=o.exportTypedArrayMethod,p=a(o.TypedArrayPrototype.sort);s("toSorted",(function(t){t!==r&&i(t);var e=u(this),n=c(f(e),e);return p(n,t)}))},function(r,t,e){var n=e(79),o=e(102),a=e(112),i=e(60),c=e(113),u=o.aTypedArray,f=o.getTypedArrayConstructor,s=o.exportTypedArrayMethod,p=!!function(){try{new Int8Array(1).with(2,{valueOf:function(){throw 8}})}catch(r){return 8===r}}();s("with",{with:function(r,t){var e=u(this),o=i(r),s=a(e)?c(t):+t;return n(e,f(e),o,s)}}.with,!p)},function(r,t,e){var n=e(88);r.exports=function(r){var t=n(r);return"BigInt64Array"===t||"BigUint64Array"===t}},function(r,t,e){var n=e(18),o=TypeError;r.exports=function(r){var t=n(r,"number");if("number"==typeof t)throw new o("Can't convert number to bigint");return BigInt(t)}},function(t,e,n){var o=n(2),a=n(3),i=n(22),c=n(10),u=n(43).f,f=n(37),s=n(115),p=n(116),l=n(117),y=n(118),v=n(119),h=n(5),g=n(34),d="DOMException",b=i("Error"),m=i(d),w=function(){s(this,x);var t=arguments.length,e=l(t<1?r:arguments[0]),n=l(t<2?r:arguments[1],"Error"),o=new m(e,n),a=new b(e);return a.name=d,u(o,"stack",c(1,v(a.stack,1))),p(o,this,w),o},x=w.prototype=m.prototype,E="stack"in new b(d),A="stack"in new m(1,2),O=m&&h&&Object.getOwnPropertyDescriptor(a,d),S=!(!O||O.writable&&O.configurable),R=E&&!S&&!A;o({global:!0,constructor:!0,forced:g||R},{DOMException:R?w:m});var T=i(d),_=T.prototype;if(_.constructor!==T)for(var I in g||u(_,"constructor",c(1,T)),y)if(f(y,I)){var j=y[I],M=j.s;f(T,M)||u(T,M,c(6,j.c))}},function(r,t,e){var n=e(23),o=TypeError;r.exports=function(r,t){if(n(t,r))return r;throw new o("Incorrect invocation")}},function(r,t,e){var n=e(20),o=e(19),a=e(106);r.exports=function(r,t,e){var i,c;return a&&n(i=t.constructor)&&i!==e&&o(c=i.prototype)&&c!==e.prototype&&a(r,c),r}},function(t,e,n){var o=n(99);t.exports=function(t,e){return t===r?arguments.length<2?"":e:o(t)}},function(r,t,e){r.exports={IndexSizeError:{s:"INDEX_SIZE_ERR",c:1,m:1},DOMStringSizeError:{s:"DOMSTRING_SIZE_ERR",c:2,m:0},HierarchyRequestError:{s:"HIERARCHY_REQUEST_ERR",c:3,m:1},WrongDocumentError:{s:"WRONG_DOCUMENT_ERR",c:4,m:1},InvalidCharacterError:{s:"INVALID_CHARACTER_ERR",c:5,m:1},NoDataAllowedError:{s:"NO_DATA_ALLOWED_ERR",c:6,m:0},NoModificationAllowedError:{s:"NO_MODIFICATION_ALLOWED_ERR",c:7,m:1},NotFoundError:{s:"NOT_FOUND_ERR",c:8,m:1},NotSupportedError:{s:"NOT_SUPPORTED_ERR",c:9,m:1},InUseAttributeError:{s:"INUSE_ATTRIBUTE_ERR",c:10,m:1},InvalidStateError:{s:"INVALID_STATE_ERR",c:11,m:1},SyntaxError:{s:"SYNTAX_ERR",c:12,m:1},InvalidModificationError:{s:"INVALID_MODIFICATION_ERR",c:13,m:1},NamespaceError:{s:"NAMESPACE_ERR",c:14,m:1},InvalidAccessError:{s:"INVALID_ACCESS_ERR",c:15,m:1},ValidationError:{s:"VALIDATION_ERR",c:16,m:0},TypeMismatchError:{s:"TYPE_MISMATCH_ERR",c:17,m:1},SecurityError:{s:"SECURITY_ERR",c:18,m:1},NetworkError:{s:"NETWORK_ERR",c:19,m:1},AbortError:{s:"ABORT_ERR",c:20,m:1},URLMismatchError:{s:"URL_MISMATCH_ERR",c:21,m:1},QuotaExceededError:{s:"QUOTA_EXCEEDED_ERR",c:22,m:1},TimeoutError:{s:"TIMEOUT_ERR",c:23,m:1},InvalidNodeTypeError:{s:"INVALID_NODE_TYPE_ERR",c:24,m:1},DataCloneError:{s:"DATA_CLONE_ERR",c:25,m:1}}},function(r,t,e){var n=e(13),o=Error,a=n("".replace),i=String(new o("zxcasd").stack),c=/\n\s*at [^:]*:[^\n]*/,u=c.test(i);r.exports=function(r,t){if(u&&"string"==typeof r&&!o.prepareStackTrace)for(;t--;)r=a(r,c,"");return r}},function(t,e,n){var o,a=n(34),i=n(2),c=n(3),u=n(22),f=n(13),s=n(6),p=n(39),l=n(20),y=n(121),v=n(16),h=n(19),g=n(21),d=n(81),b=n(45),m=n(88),w=n(37),x=n(122),E=n(42),A=n(62),O=n(123),S=n(124),R=n(91),T=n(125),_=n(126),I=n(128),j=n(134),M=n(131),D=c.Object,P=c.Array,k=c.Date,C=c.Error,U=c.TypeError,L=c.PerformanceMark,N=u("DOMException"),F=R.Map,B=R.has,V=R.get,z=R.set,W=T.Set,G=T.add,Y=T.has,H=u("Object","keys"),Q=f([].push),X=f((!0).valueOf),q=f(1..valueOf),K=f("".valueOf),Z=f(k.prototype.getTime),$=p("structuredClone"),J="DataCloneError",rr="Transferring",tr=function(r){return!s((function(){var t=new c.Set([7]),e=r(t),n=r(D(7));return e===t||!e.has(7)||!h(n)||7!=+n}))&&r},er=function(r,t){return!s((function(){var e=new t,n=r({a:e,b:e});return!(n&&n.a===n.b&&n.a instanceof t&&n.a.stack===e.stack)}))},nr=c.structuredClone,or=a||!er(nr,C)||!er(nr,N)||(o=nr,!!s((function(){var r=o(new c.AggregateError([1],$,{cause:3}));return"AggregateError"!==r.name||1!==r.errors[0]||r.message!==$||3!==r.cause}))),ar=!nr&&tr((function(r){return new L($,{detail:r}).detail})),ir=tr(nr)||ar,cr=function(r){throw new N("Uncloneable type: "+r,J)},ur=function(r,t){throw new N((t||"Cloning")+" of "+r+" cannot be properly polyfilled in this engine",J)},fr=function(r,t){return ir||ur(t),ir(r)},sr=function(t,e,n){if(B(e,t))return V(e,t);var o,a,i,u,f,s;if("SharedArrayBuffer"===(n||m(t)))o=ir?ir(t):t;else{var p=c.DataView;p||l(t.slice)||ur("ArrayBuffer");try{if(l(t.slice)&&!t.resizable)o=t.slice(0);else{a=t.byteLength,i="maxByteLength"in t?{maxByteLength:t.maxByteLength}:r,o=new ArrayBuffer(a,i),u=new p(t),f=new p(o);for(s=0;s<a;s++)f.setUint8(s,u.getUint8(s))}}catch(r){throw new N("ArrayBuffer is detached",J)}}return z(e,t,o),o},pr=function(t,e){if(g(t)&&cr("Symbol"),!h(t))return t;if(e){if(B(e,t))return V(e,t)}else e=new F;var n,o,a,i,f,s,p,y,v=m(t);switch(v){case"Array":a=P(A(t));break;case"Object":a={};break;case"Map":a=new F;break;case"Set":a=new W;break;case"RegExp":a=new RegExp(t.source,S(t));break;case"Error":switch(o=t.name){case"AggregateError":a=new(u(o))([]);break;case"EvalError":case"RangeError":case"ReferenceError":case"SuppressedError":case"SyntaxError":case"TypeError":case"URIError":a=new(u(o));break;case"CompileError":case"LinkError":case"RuntimeError":a=new(u("WebAssembly",o));break;default:a=new C}break;case"DOMException":a=new N(t.message,t.name);break;case"ArrayBuffer":case"SharedArrayBuffer":a=sr(t,e,v);break;case"DataView":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float16Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":s="DataView"===v?t.byteLength:t.length,a=function(r,t,e,n,o){var a=c[t];return h(a)||ur(t),new a(sr(r.buffer,o),e,n)}(t,v,t.byteOffset,s,e);break;case"DOMQuad":try{a=new DOMQuad(pr(t.p1,e),pr(t.p2,e),pr(t.p3,e),pr(t.p4,e))}catch(r){a=fr(t,v)}break;case"File":if(ir)try{a=ir(t),m(a)!==v&&(a=r)}catch(r){}if(!a)try{a=new File([t],t.name,t)}catch(r){}a||ur(v);break;case"FileList":if(i=function(){var r;try{r=new c.DataTransfer}catch(t){try{r=new c.ClipboardEvent("").clipboardData}catch(r){}}return r&&r.items&&r.files?r:null}()){for(f=0,s=A(t);f<s;f++)i.items.add(pr(t[f],e));a=i.files}else a=fr(t,v);break;case"ImageData":try{a=new ImageData(pr(t.data,e),t.width,t.height,{colorSpace:t.colorSpace})}catch(r){a=fr(t,v)}break;default:if(ir)a=ir(t);else switch(v){case"BigInt":a=D(t.valueOf());break;case"Boolean":a=D(X(t));break;case"Number":a=D(q(t));break;case"String":a=D(K(t));break;case"Date":a=new k(Z(t));break;case"Blob":try{a=t.slice(0,t.size,t.type)}catch(r){ur(v)}break;case"DOMPoint":case"DOMPointReadOnly":n=c[v];try{a=n.fromPoint?n.fromPoint(t):new n(t.x,t.y,t.z,t.w)}catch(r){ur(v)}break;case"DOMRect":case"DOMRectReadOnly":n=c[v];try{a=n.fromRect?n.fromRect(t):new n(t.x,t.y,t.width,t.height)}catch(r){ur(v)}break;case"DOMMatrix":case"DOMMatrixReadOnly":n=c[v];try{a=n.fromMatrix?n.fromMatrix(t):new n(t)}catch(r){ur(v)}break;case"AudioData":case"VideoFrame":l(t.clone)||ur(v);try{a=t.clone()}catch(r){cr(v)}break;case"CropTarget":case"CryptoKey":case"FileSystemDirectoryHandle":case"FileSystemFileHandle":case"FileSystemHandle":case"GPUCompilationInfo":case"GPUCompilationMessage":case"ImageBitmap":case"RTCCertificate":case"WebAssembly.Module":ur(v);default:cr(v)}}switch(z(e,t,a),v){case"Array":case"Object":for(p=H(t),f=0,s=A(p);f<s;f++)y=p[f],x(a,y,pr(t[y],e));break;case"Map":t.forEach((function(r,t){z(a,pr(t,e),pr(r,e))}));break;case"Set":t.forEach((function(r){G(a,pr(r,e))}));break;case"Error":E(a,"message",pr(t.message,e)),w(t,"cause")&&E(a,"cause",pr(t.cause,e)),"AggregateError"===o?a.errors=pr(t.errors,e):"SuppressedError"===o&&(a.error=pr(t.error,e),a.suppressed=pr(t.suppressed,e));case"DOMException":j&&E(a,"stack",pr(t.stack,e))}return a};i({global:!0,enumerable:!0,sham:!M,forced:or},{structuredClone:function(t){var e,n,o=O(arguments.length,1)>1&&!v(arguments[1])?b(arguments[1]):r,a=o?o.transfer:r;a!==r&&(n=function(t,e){if(!h(t))throw new U("Transfer option cannot be converted to a sequence");var n=[];d(t,(function(r){Q(n,b(r))}));for(var o,a,i,u,f,s=0,p=A(n),v=new W;s<p;){if(o=n[s++],"ArrayBuffer"===(a=m(o))?Y(v,o):B(e,o))throw new N("Duplicate transferable",J);if("ArrayBuffer"!==a){if(M)u=nr(o,{transfer:[o]});else switch(a){case"ImageBitmap":i=c.OffscreenCanvas,y(i)||ur(a,rr);try{(f=new i(o.width,o.height)).getContext("bitmaprenderer").transferFromImageBitmap(o),u=f.transferToImageBitmap()}catch(r){}break;case"AudioData":case"VideoFrame":l(o.clone)&&l(o.close)||ur(a,rr);try{u=o.clone(),o.close()}catch(r){}break;case"MediaSourceHandle":case"MessagePort":case"OffscreenCanvas":case"ReadableStream":case"TransformStream":case"WritableStream":ur(a,rr)}if(u===r)throw new N("This object cannot be transferred: "+a,J);z(e,o,u)}else G(v,o)}return v}(a,e=new F));var i=pr(t,e);return n&&function(r){_(r,(function(r){M?ir(r,{transfer:[r]}):l(r.transfer)?r.transfer():I?I(r):ur("ArrayBuffer",rr)}))}(n),i}})},function(r,t,e){var n=e(13),o=e(6),a=e(20),i=e(88),c=e(22),u=e(49),f=function(){},s=c("Reflect","construct"),p=/^\s*(?:class|function)\b/,l=n(p.exec),y=!p.test(f),v=function(r){if(!a(r))return!1;try{return s(f,[],r),!0}catch(r){return!1}},h=function(r){if(!a(r))return!1;switch(i(r)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return y||!!l(p,u(r))}catch(r){return!0}};h.sham=!0,r.exports=!s||o((function(){var r;return v(v.call)||!v(Object)||!v((function(){r=!0}))||r}))?h:v},function(r,t,e){var n=e(17),o=e(43),a=e(10);r.exports=function(r,t,e){var i=n(t);i in r?o.f(r,i,a(0,e)):r[i]=e}},function(r,t,e){var n=TypeError;r.exports=function(r,t){if(r<t)throw new n("Not enough arguments");return r}},function(t,e,n){var o=n(7),a=n(37),i=n(23),c=n(97),u=RegExp.prototype;t.exports=function(t){var e=t.flags;return e!==r||"flags"in u||a(t,"flags")||!i(u,t)?e:o(c,t)}},function(r,t,e){var n=e(13),o=Set.prototype;r.exports={Set,add:n(o.add),has:n(o.has),remove:n(o.delete),proto:o}},function(r,t,e){var n=e(13),o=e(127),a=e(125),i=a.Set,c=a.proto,u=n(c.forEach),f=n(c.keys),s=f(new i).next;r.exports=function(r,t,e){return e?o({iterator:f(r),next:s},t):u(r,t)}},function(t,e,n){var o=n(7);t.exports=function(t,e,n){for(var a,i,c=n?t:t.iterator,u=t.next;!(a=o(u,c)).done;)if((i=e(a.value))!==r)return i}},function(r,t,e){var n,o,a,i,c=e(3),u=e(129),f=e(131),s=c.structuredClone,p=c.ArrayBuffer,l=c.MessageChannel,y=!1;if(f)y=function(r){s(r,{transfer:[r]})};else if(p)try{l||(n=u("worker_threads"))&&(l=n.MessageChannel),l&&(o=new l,a=new p(2),i=function(r){o.port1.postMessage(null,[r])},2===a.byteLength&&(i(a),0===a.byteLength&&(y=i)))}catch(r){}r.exports=y},function(r,t,e){var n=e(130);r.exports=function(r){try{if(n)return Function('return require("'+r+'")')()}catch(r){}}},function(r,t,e){var n=e(3),o=e(14);r.exports="process"===o(n.process)},function(r,t,e){var n=e(3),o=e(6),a=e(26),i=e(132),c=e(133),u=e(130),f=n.structuredClone;r.exports=!!f&&!o((function(){if(c&&a>92||u&&a>94||i&&a>97)return!1;var r=new ArrayBuffer(8),t=f(r,{transfer:[r]});return 0!==r.byteLength||8!==t.byteLength}))},function(r,t,e){var n=e(133),o=e(130);r.exports=!n&&!o&&"object"==typeof window&&"object"==typeof document},function(r,t,e){r.exports="object"==typeof Deno&&Deno&&"object"==typeof Deno.version},function(r,t,e){var n=e(6),o=e(10);r.exports=!n((function(){var r=new Error("a");return!("stack"in r)||(Object.defineProperty(r,"stack",o(1,7)),7!==r.stack)}))},function(t,e,n){var o=n(2),a=n(22),i=n(6),c=n(123),u=n(99),f=n(136),s=a("URL");o({target:"URL",stat:!0,forced:!(f&&i((function(){s.canParse()})))},{canParse:function(t){var e=c(arguments.length,1),n=u(t),o=e<2||arguments[1]===r?r:u(arguments[1]);try{return!!new s(n,o)}catch(r){return!1}}})},function(t,e,n){var o=n(6),a=n(32),i=n(5),c=n(34),u=a("iterator");t.exports=!o((function(){var t=new URL("b?a=1&b=2&c=3","http://a"),e=t.searchParams,n=new URLSearchParams("a=1&a=2&b=3"),o="";return t.pathname="c%20d",e.forEach((function(r,t){e.delete("b"),o+=t+r})),n.delete("a",2),n.delete("b",r),c&&(!t.toJSON||!n.has("a",1)||n.has("a",2)||!n.has("a",r)||n.has("b"))||!e.size&&(c||!i)||!e.sort||"http://a/c%20d?a=1&c=3"!==t.href||"3"!==e.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!e[u]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==o||"x"!==new URL("http://x",r).host}))},function(t,e,n){var o=n(46),a=n(13),i=n(99),c=n(123),u=URLSearchParams,f=u.prototype,s=a(f.append),p=a(f.delete),l=a(f.forEach),y=a([].push),v=new u("a=1&a=2&b=3");v.delete("a",1),v.delete("b",r),v+""!="a=2"&&o(f,"delete",(function(t){var e=arguments.length,n=e<2?r:arguments[1];if(e&&n===r)return p(this,t);var o=[];l(this,(function(r,t){y(o,{key:t,value:r})})),c(e,1);for(var a,u=i(t),f=i(n),v=0,h=0,g=!1,d=o.length;v<d;)a=o[v++],g||a.key===u?(g=!0,p(this,a.key)):h++;for(;h<d;)(a=o[h++]).key===u&&a.value===f||s(this,a.key,a.value)}),{enumerable:!0,unsafe:!0})},function(t,e,n){var o=n(46),a=n(13),i=n(99),c=n(123),u=URLSearchParams,f=u.prototype,s=a(f.getAll),p=a(f.has),l=new u("a=1");!l.has("a",2)&&l.has("a",r)||o(f,"has",(function(t){var e=arguments.length,n=e<2?r:arguments[1];if(e&&n===r)return p(this,t);var o=s(this,t);c(e,1);for(var a=i(n),u=0;u<o.length;)if(o[u++]===a)return!0;return!1}),{enumerable:!0,unsafe:!0})},function(r,t,e){var n=e(5),o=e(13),a=e(96),i=URLSearchParams.prototype,c=o(i.forEach);n&&!("size"in i)&&a(i,"size",{get:function(){var r=0;return c(this,(function(){r++})),r},configurable:!0,enumerable:!0})}],e={},(n=function(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}).m=t,n.c=e,n.d=function(r,t,e){n.o(r,t)||Object.defineProperty(r,t,{enumerable:!0,get:e})},n.r=function(r){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},n.t=function(r,t){if(1&t&&(r=n(r)),8&t)return r;if(4&t&&"object"==typeof r&&r&&r.__esModule)return r;var e=Object.create(null);if(n.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:r}),2&t&&"string"!=typeof r)for(var o in r)n.d(e,o,function(t){return r[t]}.bind(null,o));return e},n.n=function(r){var t=r&&r.__esModule?function(){return r.default}:function(){return r};return n.d(t,"a",t),t},n.o=function(r,t){return Object.prototype.hasOwnProperty.call(r,t)},n.p="",n(n.s=0)}();;
|
||
(()=>{"use strict";var t={d:(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};t.r(e),t.d(e,{actions:()=>P,addAction:()=>A,addFilter:()=>m,applyFilters:()=>w,applyFiltersAsync:()=>I,createHooks:()=>h,currentAction:()=>x,currentFilter:()=>T,defaultHooks:()=>f,didAction:()=>j,didFilter:()=>z,doAction:()=>g,doActionAsync:()=>k,doingAction:()=>O,doingFilter:()=>S,filters:()=>Z,hasAction:()=>_,hasFilter:()=>v,removeAction:()=>p,removeAllActions:()=>F,removeAllFilters:()=>b,removeFilter:()=>y});const n=function(t){return"string"!=typeof t||""===t?(console.error("The namespace must be a non-empty string."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.\-\/]*$/.test(t)||(console.error("The namespace can only contain numbers, letters, dashes, periods, underscores and slashes."),!1)},r=function(t){return"string"!=typeof t||""===t?(console.error("The hook name must be a non-empty string."),!1):/^__/.test(t)?(console.error("The hook name cannot begin with `__`."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.-]*$/.test(t)||(console.error("The hook name can only contain numbers, letters, dashes, periods and underscores."),!1)},i=function(t,e){return function(i,o,s,c=10){const l=t[e];if(!r(i))return;if(!n(o))return;if("function"!=typeof s)return void console.error("The hook callback must be a function.");if("number"!=typeof c)return void console.error("If specified, the hook priority must be a number.");const a={callback:s,priority:c,namespace:o};if(l[i]){const t=l[i].handlers;let e;for(e=t.length;e>0&&!(c>=t[e-1].priority);e--);e===t.length?t[e]=a:t.splice(e,0,a),l.__current.forEach((t=>{t.name===i&&t.currentIndex>=e&&t.currentIndex++}))}else l[i]={handlers:[a],runs:0};"hookAdded"!==i&&t.doAction("hookAdded",i,o,s,c)}},o=function(t,e,i=!1){return function(o,s){const c=t[e];if(!r(o))return;if(!i&&!n(s))return;if(!c[o])return 0;let l=0;if(i)l=c[o].handlers.length,c[o]={runs:c[o].runs,handlers:[]};else{const t=c[o].handlers;for(let e=t.length-1;e>=0;e--)t[e].namespace===s&&(t.splice(e,1),l++,c.__current.forEach((t=>{t.name===o&&t.currentIndex>=e&&t.currentIndex--})))}return"hookRemoved"!==o&&t.doAction("hookRemoved",o,s),l}},s=function(t,e){return function(n,r){const i=t[e];return void 0!==r?n in i&&i[n].handlers.some((t=>t.namespace===r)):n in i}},c=function(t,e,n,r){return function(i,...o){const s=t[e];s[i]||(s[i]={handlers:[],runs:0}),s[i].runs++;const c=s[i].handlers;if(!c||!c.length)return n?o[0]:void 0;const l={name:i,currentIndex:0};return(r?async function(){try{s.__current.add(l);let t=n?o[0]:void 0;for(;l.currentIndex<c.length;){const e=c[l.currentIndex];t=await e.callback.apply(null,o),n&&(o[0]=t),l.currentIndex++}return n?t:void 0}finally{s.__current.delete(l)}}:function(){try{s.__current.add(l);let t=n?o[0]:void 0;for(;l.currentIndex<c.length;)t=c[l.currentIndex].callback.apply(null,o),n&&(o[0]=t),l.currentIndex++;return n?t:void 0}finally{s.__current.delete(l)}})()}},l=function(t,e){return function(){var n;const r=t[e],i=Array.from(r.__current);return null!==(n=i.at(-1)?.name)&&void 0!==n?n:null}},a=function(t,e){return function(n){const r=t[e];return void 0===n?r.__current.size>0:Array.from(r.__current).some((t=>t.name===n))}},u=function(t,e){return function(n){const i=t[e];if(r(n))return i[n]&&i[n].runs?i[n].runs:0}};class d{constructor(){this.actions=Object.create(null),this.actions.__current=new Set,this.filters=Object.create(null),this.filters.__current=new Set,this.addAction=i(this,"actions"),this.addFilter=i(this,"filters"),this.removeAction=o(this,"actions"),this.removeFilter=o(this,"filters"),this.hasAction=s(this,"actions"),this.hasFilter=s(this,"filters"),this.removeAllActions=o(this,"actions",!0),this.removeAllFilters=o(this,"filters",!0),this.doAction=c(this,"actions",!1,!1),this.doActionAsync=c(this,"actions",!1,!0),this.applyFilters=c(this,"filters",!0,!1),this.applyFiltersAsync=c(this,"filters",!0,!0),this.currentAction=l(this,"actions"),this.currentFilter=l(this,"filters"),this.doingAction=a(this,"actions"),this.doingFilter=a(this,"filters"),this.didAction=u(this,"actions"),this.didFilter=u(this,"filters")}}const h=function(){return new d},f=h(),{addAction:A,addFilter:m,removeAction:p,removeFilter:y,hasAction:_,hasFilter:v,removeAllActions:F,removeAllFilters:b,doAction:g,doActionAsync:k,applyFilters:w,applyFiltersAsync:I,currentAction:x,currentFilter:T,doingAction:O,doingFilter:S,didAction:j,didFilter:z,actions:P,filters:Z}=f;(window.wp=window.wp||{}).hooks=e})();
|
||
//# sourceMappingURL=index.min.js.map;
|