console.warn( 'Direct loading of this file is deprecated and it will be removed in the next major release of LifterLMS!' );
console.warn( 'Instead, enqueue the registered script `llms-quill-wordcount`' );
!function(){var n={54:function(n){n.exports=(()=>{"use strict";var n={314:(n,t,e)=>{e.r(t),e.d(t,{default:()=>a,wordsCount:()=>u,wordsSplit:()=>l,wordsDetect:()=>i});var r=[",","，",".","。",":","：",";","；","[","]","【","]","】","{","｛","}","｝","(","（",")","）","<","《",">","》","$","￥","!","！","?","？","~","～","'","’",'"',"“","”","*","/","\\","&","%","@","#","^","、","、","、","、"],o={words:[],count:0},i=function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!n)return o;var e=String(n);if(""===e.trim())return o;var i=t.punctuationAsBreaker?" ":"",u=t.disableDefaultPunctuation?[]:r,l=t.punctuation||[];u.concat(l).forEach((function(n){var t=new RegExp("\\"+n,"g");e=e.replace(t,i)})),e=(e=(e=(e=e.replace(/[\uFF00-\uFFEF\u2000-\u206F]/g,"")).replace(/\s+/," ")).split(" ")).filter((function(n){return n.trim()}));var a=new RegExp("(\\d+)|[a-zA-ZÀ-ÿĀ-ſƀ-ɏɐ-ʯḀ-ỿЀ-ӿԀ-ԯഀ-ൿ]+|[⺀-⻿⼀-⿟　-〿㇀-㇯㈀-㋿㌀-㏿㐀-㿿䀀-䶿一-俿倀-忿怀-濿瀀-翿耀-迿退-鿿豈-﫿぀-ゟ゠-ヿㇰ-ㇿ㆐-㆟ᄀ-ᇿ㄰-㆏ꥠ-꥿가-꿿뀀-뿿쀀-쿿퀀-힯ힰ-퟿]","g"),c=[];return e.forEach((function(n){var t,e=[];do{(t=a.exec(n))&&e.push(t[0])}while(t);0===e.length?c.push(n):c=c.concat(e)})),{words:c,count:c.length}},u=function(n){return i(n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).count},l=function(n){return i(n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).words};const a=u}},t={};function e(r){if(t[r])return t[r].exports;var o=t[r]={exports:{}};return n[r](o,o.exports,e),o.exports}return e.d=(n,t)=>{for(var r in t)e.o(t,r)&&!e.o(n,r)&&Object.defineProperty(n,r,{enumerable:!0,get:t[r]})},e.o=(n,t)=>Object.prototype.hasOwnProperty.call(n,t),e.r=n=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},e(314)})()}},t={};function e(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return n[r].call(i.exports,i,i.exports,e),i.exports}e.n=function(n){var t=n&&n.__esModule?function(){return n.default}:function(){return n};return e.d(t,{a:t}),t},e.d=function(n,t){for(var r in t)e.o(t,r)&&!e.o(n,r)&&Object.defineProperty(n,r,{enumerable:!0,get:t[r]})},e.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)},function(){"use strict";var n=e(54),t=e.n(n);function r(n){return(new Intl.NumberFormat).format(n)}function o(n,t,e){const o=document.createElement("i");return o.className=`ql-wordcount-${n}`,o.style.opacity="0.5",o.style.marginRight="10px",o.innerHTML=`${t}: ${r(e)}`,o}function i(n){const{l10n:t,min:e,max:r}=n,i=document.createElement("div");return i.className="ql-wordcount ql-toolbar ql-snow",i.style.marginTop="-1px",i.style.fontSize="85%",e&&i.appendChild(o("min",t.min,e)),r&&i.appendChild(o("max",t.max,r)),i}function u(n,t){const{min:e,max:r,colorWarning:o,colorError:i}=t;let u="initial";return e&&n<e||r&&n>r?u=i:r&&n>=.9*r&&(u=o),u}function l(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return n={min:null,max:null,colorWarning:"#ff922b",colorError:"#e5554e",onChange:(n,t,e)=>{},l10n:{},...n},n.l10n={singular:"word",plural:"words",min:"Minimum",max:"Maximum",...n.l10n},n}function a(n){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e=l(e);const o=i(e),a=document.createElement("span");a.className="ql-wordcount-counter",a.style.float="right",o.appendChild(a);const c=()=>{const o=t()(n.getText());a.style.color=u(o,e);const i=1===o?e.l10n.singular:e.l10n.plural;a.innerHTML=r(o)+" "+i,e.onChange(n,e,o)};c(),n.container.parentNode.insertBefore(o,n.container.nextSibling),n.on("text-change",c)}!function(){const{Quill:n}=window;void 0!==n&&n.register("modules/wordcount",a)}()}()}();