-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathvideo-resize.min.js
1 lines (1 loc) · 28.6 KB
/
video-resize.min.js
1
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.VideoResize=e():t.VideoResize=e()}(this,function(){return function(t){function e(o){if(n[o])return n[o].exports;var r=n[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var n={};return e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,o){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:o})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=38)}([function(t,e){function n(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}t.exports=n},function(t,e,n){var o=n(22),r="object"==typeof self&&self&&self.Object===Object&&self,i=o||r||Function("return this")();t.exports=i},function(t,e){function n(t){return null!=t&&"object"==typeof t}t.exports=n},function(t,e,n){function o(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}var r=n(75),i=n(76),s=n(77),u=n(78),a=n(79);o.prototype.clear=r,o.prototype.delete=i,o.prototype.get=s,o.prototype.has=u,o.prototype.set=a,t.exports=o},function(t,e,n){function o(t,e){for(var n=t.length;n--;)if(r(t[n][0],e))return n;return-1}var r=n(8);t.exports=o},function(t,e,n){function o(t){return null==t?void 0===t?a:u:c&&c in Object(t)?i(t):s(t)}var r=n(16),i=n(64),s=n(87),u="[object Null]",a="[object Undefined]",c=r?r.toStringTag:void 0;t.exports=o},function(t,e,n){function o(t,e){var n=t.__data__;return r(e)?n["string"==typeof e?"string":"hash"]:n.map}var r=n(73);t.exports=o},function(t,e,n){var o=n(11),r=o(Object,"create");t.exports=r},function(t,e){function n(t,e){return t===e||t!==t&&e!==e}t.exports=n},function(t,e,n){"use strict";function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}n.d(e,"a",function(){return i});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),i=function(){function t(e){o(this,t),this.overlay=e.overlay,this.vid=e.vid,this.options=e.options,this.requestUpdate=e.onUpdate}return r(t,[{key:"onCreate",value:function(){}},{key:"onDestroy",value:function(){}},{key:"onUpdate",value:function(){}}]),t}()},function(t,e,n){function o(t,e,n){"__proto__"==e&&r?r(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}var r=n(21);t.exports=o},function(t,e,n){function o(t,e){var n=i(t,e);return r(n)?n:void 0}var r=n(48),i=n(65);t.exports=o},function(t,e,n){function o(t){return null!=t&&i(t.length)&&!r(t)}var r=n(13),i=n(30);t.exports=o},function(t,e,n){function o(t){if(!i(t))return!1;var e=r(t);return e==u||e==a||e==s||e==c}var r=n(5),i=n(0),s="[object AsyncFunction]",u="[object Function]",a="[object GeneratorFunction]",c="[object Proxy]";t.exports=o},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,n){var o=n(11),r=n(1),i=o(r,"Map");t.exports=i},function(t,e,n){var o=n(1),r=o.Symbol;t.exports=r},function(t,e){function n(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}t.exports=n},function(t,e,n){function o(t,e,n){(void 0===n||i(t[e],n))&&(void 0!==n||e in t)||r(t,e,n)}var r=n(10),i=n(8);t.exports=o},function(t,e,n){function o(t,e,n,l,f){t!==e&&s(e,function(s,c){if(a(s))f||(f=new r),u(t,e,c,n,o,l,f);else{var p=l?l(t[c],s,c+"",t,e,f):void 0;void 0===p&&(p=s),i(t,c,p)}},c)}var r=n(41),i=n(18),s=n(46),u=n(51),a=n(0),c=n(32);t.exports=o},function(t,e,n){function o(t,e){return s(i(t,e,r),t+"")}var r=n(26),i=n(89),s=n(90);t.exports=o},function(t,e,n){var o=n(11),r=function(){try{var t=o(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=r},function(t,e,n){(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.exports=n}).call(e,n(107))},function(t,e,n){var o=n(88),r=o(Object.getPrototypeOf,Object);t.exports=r},function(t,e){function n(t,e){return!!(e=null==e?o:e)&&("number"==typeof t||r.test(t))&&t>-1&&t%1==0&&t<e}var o=9007199254740991,r=/^(?:0|[1-9]\d*)$/;t.exports=n},function(t,e){function n(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||o)}var o=Object.prototype;t.exports=n},function(t,e){function n(t){return t}t.exports=n},function(t,e,n){var o=n(47),r=n(2),i=Object.prototype,s=i.hasOwnProperty,u=i.propertyIsEnumerable,a=o(function(){return arguments}())?o:function(t){return r(t)&&s.call(t,"callee")&&!u.call(t,"callee")};t.exports=a},function(t,e){var n=Array.isArray;t.exports=n},function(t,e,n){(function(t){var o=n(1),r=n(102),i="object"==typeof e&&e&&!e.nodeType&&e,s=i&&"object"==typeof t&&t&&!t.nodeType&&t,u=s&&s.exports===i,a=u?o.Buffer:void 0,c=a?a.isBuffer:void 0,l=c||r;t.exports=l}).call(e,n(14)(t))},function(t,e){function n(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=o}var o=9007199254740991;t.exports=n},function(t,e,n){var o=n(49),r=n(54),i=n(86),s=i&&i.isTypedArray,u=s?r(s):o;t.exports=u},function(t,e,n){function o(t){return s(t)?r(t,!0):i(t)}var r=n(43),i=n(50),s=n(12);t.exports=o},function(t,e,n){"use strict";e.a={modules:["DisplaySize","Toolbar","Resize"],overlayStyles:{position:"absolute",boxSizing:"border-box",border:"1px dashed #444"},handleStyles:{position:"absolute",height:"12px",width:"12px",backgroundColor:"white",border:"1px solid #777",boxSizing:"border-box",opacity:"0.80"},displayStyles:{position:"absolute",font:"12px/1.0 Arial, Helvetica, sans-serif",padding:"4px 8px",textAlign:"center",backgroundColor:"white",color:"#333",border:"1px solid #777",boxSizing:"border-box",opacity:"0.80",cursor:"default"},toolbarStyles:{position:"absolute",top:"-12px",right:"0",left:"0",height:"0",minWidth:"100px",font:"12px/1.0 Arial, Helvetica, sans-serif",textAlign:"center",color:"#333",boxSizing:"border-box",cursor:"default"},toolbarButtonStyles:{display:"inline-block",width:"24px",height:"24px",background:"white",border:"1px solid #999",verticalAlign:"middle"},toolbarButtonSvgStyles:{fill:"#444",stroke:"#444",strokeWidth:"2"}}},function(t,e,n){"use strict";function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var s=n(9);n.d(e,"a",function(){return a});var u=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),a=function(t){function e(){return o(this,e),r(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return i(e,t),u(e,[{key:"onCreate",value:function(){this.display=document.createElement("div"),Object.assign(this.display.style,this.options.displayStyles),this.overlay.appendChild(this.display)}},{key:"onDestroy",value:function(){}},{key:"onUpdate",value:function(){if(this.display&&this.vid){var t=this.getCurrentSize();if(this.display.innerHTML=t.join(" × "),t[0]>120&&t[1]>30)Object.assign(this.display.style,{right:"4px",bottom:"4px",left:"auto"});else if("right"==this.vid.style.float){var e=this.display.getBoundingClientRect();Object.assign(this.display.style,{right:"auto",bottom:"-"+(e.height+4)+"px",left:"-"+(e.width+4)+"px"})}else{var n=this.display.getBoundingClientRect();Object.assign(this.display.style,{right:"-"+(n.width+4)+"px",bottom:"-"+(n.height+4)+"px",left:"auto"})}}}},{key:"getCurrentSize",value:function(){return[this.vid.width,this.vid.height]}}]),e}(s.a)},function(t,e,n){"use strict";function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var s=n(9);n.d(e,"a",function(){return a});var u=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),a=function(t){function e(){return o(this,e),r(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return i(e,t),u(e,[{key:"onCreate",value:function(){var t=this;this.boxes=[],this.addBox("nwse-resize"),this.addBox("nesw-resize"),this.addBox("nwse-resize"),this.addBox("nesw-resize"),this.handleMouseup=function(){t.setCursor(""),document.removeEventListener("mousemove",t.handleDrag),document.removeEventListener("mouseup",t.handleMouseup)},this.handleDrag=function(e){if(t.vid){var n=e.clientX-t.dragStartX,o=e.clientY-t.dragStartY;t.dragBox===t.boxes[0]||t.dragBox===t.boxes[3]?(t.vid.width=Math.round(t.preDragWidth-n),t.vid.height=Math.round(t.preDragHeight-o)):(t.vid.width=Math.round(t.preDragWidth+n),t.vid.height=Math.round(t.preDragHeight+o)),t.requestUpdate()}},this.positionBoxes()}},{key:"onDestroy",value:function(){this.setCursor("")}},{key:"positionBoxes",value:function(){var t=this,e=-parseFloat(this.options.handleStyles.width)/2+"px",n=-parseFloat(this.options.handleStyles.height)/2+"px";[{left:e,top:n},{right:e,top:n},{right:e,bottom:n},{left:e,bottom:n}].forEach(function(e,n){Object.assign(t.boxes[n].style,e)})}},{key:"addBox",value:function(t){var e=this,n=document.createElement("div");Object.assign(n.style,this.options.handleStyles),n.style.cursor=t,n.style.width=this.options.handleStyles.width+"px",n.style.height=this.options.handleStyles.height+"px",n.addEventListener("mousedown",function(t){e.handleMousedown(t)},!1),this.overlay.appendChild(n),this.boxes.push(n)}},{key:"handleMousedown",value:function(t){this.dragBox=t.target,this.dragStartX=t.clientX,this.dragStartY=t.clientY,this.preDragWidth=this.vid.getBoundingClientRect().width,this.preDragHeight=this.vid.getBoundingClientRect().height,this.setCursor(this.dragBox.style.cursor),document.addEventListener("mousemove",this.handleDrag,!1),document.addEventListener("mouseup",this.handleMouseup,!1)}},{key:"setCursor",value:function(t){[document.body,this.vid].forEach(function(e){e.style.cursor=t})}}]),e}(s.a)},function(t,e,n){"use strict";function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var s=n(105),u=n.n(s),a=n(104),c=n.n(a),l=n(106),f=n.n(l),p=n(9);n.d(e,"a",function(){return x});var h=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),d=void 0,v=void 0,y=void 0,b=void 0,x=function(t){function e(t){o(this,e);var n=r(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));b=t.quill.constructor;var i=b.imports.parchment;return d=new i.Attributor.Style("float","float"),v=new i.Attributor.Style("margin","margin"),y=new i.Attributor.Style("display","display"),n}return i(e,t),h(e,[{key:"onCreate",value:function(){this.toolbar=document.createElement("div"),Object.assign(this.toolbar.style,this.options.toolbarStyles),this.overlay.appendChild(this.toolbar),this._defineAlignments(),this._addToolbarButtons()}},{key:"onDestroy",value:function(){}},{key:"onUpdate",value:function(){}},{key:"_defineAlignments",value:function(){var t=this;this.alignments=[{icon:u.a,apply:function(){y.add(t.vid,"inline"),d.add(t.vid,"left"),v.add(t.vid,"0 1em 1em 0")},isApplied:function(){return"left"==d.value(t.vid)}},{icon:c.a,apply:function(){y.add(t.vid,"block"),d.remove(t.vid),v.add(t.vid,"auto")},isApplied:function(){return"auto"==v.value(t.vid)}},{icon:f.a,apply:function(){y.add(t.vid,"inline"),d.add(t.vid,"right"),v.add(t.vid,"0 0 1em 1em")},isApplied:function(){return"right"==d.value(t.vid)}}]}},{key:"_addToolbarButtons",value:function(){var t=this,e=[];this.alignments.forEach(function(n,o){var r=document.createElement("span");e.push(r),r.innerHTML=n.icon,r.addEventListener("click",function(){e.forEach(function(t){return t.style.filter=""}),n.isApplied()?(d.remove(t.vid),v.remove(t.vid),y.remove(t.vid)):(t._selectButton(r),n.apply()),t.requestUpdate()}),Object.assign(r.style,t.options.toolbarButtonStyles),o>0&&(r.style.borderLeftWidth="0"),Object.assign(r.children[0].style,t.options.toolbarButtonSvgStyles),n.isApplied()&&t._selectButton(r),t.toolbar.appendChild(r)})}},{key:"_selectButton",value:function(t){return t.style.filter="invert(20%)"}}]),e}(p.a)},function(t,e,n){var o=n(17),r=n(20),i=n(63),s=n(101),u=r(function(t){return t.push(void 0,i),o(s,void 0,t)});t.exports=u},function(t,e,n){"use strict";function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var r=n(37),i=n.n(r),s=n(33),u=n(34),a=n(36),c=n(35),l=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),f={DisplaySize:u.a,Toolbar:a.a,Resize:c.a},p=function(){function t(e){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o(this,t),this.quill=e;var u=!1;r.modules&&(u=r.modules.slice()),this.options=i()({},r,s.a),u!==!1&&(this.options.modules=u),document.execCommand("enableObjectResizing",!1,"false"),this.quill.root.addEventListener("click",function(t){n.handleClick(t)},!1),this.quill.root.parentNode.style.position=this.quill.root.parentNode.style.position||"relative",this.moduleClasses=this.options.modules,this.modules=[],this.onUpdate=function(){n.repositionElements(),n.modules.forEach(function(t){t.onUpdate()})};var a=this.quill;this.checkVideo=function(t){n.vid&&(46!=t.keyCode&&8!=t.keyCode||a.find(n.vid).deleteAt(0),n.hide())}}return l(t,[{key:"initializeModules",value:function(){var t=this;this.removeModules(),this.modules=this.moduleClasses.map(function(e){return new(f[e]||e)(t)}),this.modules.forEach(function(t){t.onCreate()}),this.onUpdate()}},{key:"removeModules",value:function(){this.modules.forEach(function(t){t.onDestroy()}),this.modules=[]}},{key:"handleClick",value:function(t){if(t.target===this.quill.root)for(var e=this.quill.root.querySelectorAll("iframe"),n=0;n<e.length;++n){var o=e[n].getBoundingClientRect();if(!(t.clientX<o.x-5)&&!(t.clientX>o.right+5||t.clientY<o.y||t.clientY>o.bottom)){if(e[n]&&e[n].tagName&&"IFRAME"===e[n].tagName.toUpperCase()){if(this.vid===e[n])return;this.vid&&this.hide(),this.show(e[n])}else this.vid&&this.hide();return}}this.vid&&this.hide()}},{key:"show",value:function(t){this.vid=t,this.showOverlay(),this.initializeModules()}},{key:"showOverlay",value:function(){this.overlay&&this.hideOverlay(),this.quill.setSelection(null),this.setUserSelect("none"),document.addEventListener("keyup",this.checkVideo,!0),this.quill.root.addEventListener("input",this.checkVideo,!0),this.overlay=document.createElement("div"),Object.assign(this.overlay.style,this.options.overlayStyles),this.quill.root.parentNode.appendChild(this.overlay),this.repositionElements()}},{key:"hideOverlay",value:function(){this.overlay&&(this.quill.root.parentNode.removeChild(this.overlay),this.overlay=void 0,document.removeEventListener("keyup",this.checkVideo),this.quill.root.removeEventListener("input",this.checkVideo),this.setUserSelect(""))}},{key:"repositionElements",value:function(){if(this.overlay&&this.vid){var t=this.quill.root.parentNode,e=this.vid.getBoundingClientRect(),n=t.getBoundingClientRect();Object.assign(this.overlay.style,{left:e.left-n.left-1+t.scrollLeft+"px",top:e.top-n.top+t.scrollTop+"px",width:e.width+"px",height:e.height+"px"})}}},{key:"hide",value:function(){this.hideOverlay(),this.removeModules(),this.vid=void 0}},{key:"setUserSelect",value:function(t){var e=this;["userSelect","mozUserSelect","webkitUserSelect","msUserSelect"].forEach(function(n){e.quill.root.style[n]=t,document.documentElement.style[n]=t})}}]),t}();e.default=p,window.Quill&&window.Quill.register("modules/videoResize",p)},function(t,e,n){function o(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}var r=n(66),i=n(67),s=n(68),u=n(69),a=n(70);o.prototype.clear=r,o.prototype.delete=i,o.prototype.get=s,o.prototype.has=u,o.prototype.set=a,t.exports=o},function(t,e,n){function o(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}var r=n(80),i=n(81),s=n(82),u=n(83),a=n(84);o.prototype.clear=r,o.prototype.delete=i,o.prototype.get=s,o.prototype.has=u,o.prototype.set=a,t.exports=o},function(t,e,n){function o(t){var e=this.__data__=new r(t);this.size=e.size}var r=n(3),i=n(92),s=n(93),u=n(94),a=n(95),c=n(96);o.prototype.clear=i,o.prototype.delete=s,o.prototype.get=u,o.prototype.has=a,o.prototype.set=c,t.exports=o},function(t,e,n){var o=n(1),r=o.Uint8Array;t.exports=r},function(t,e,n){function o(t,e){var n=s(t),o=!n&&i(t),l=!n&&!o&&u(t),p=!n&&!o&&!l&&c(t),h=n||o||l||p,d=h?r(t.length,String):[],v=d.length;for(var y in t)!e&&!f.call(t,y)||h&&("length"==y||l&&("offset"==y||"parent"==y)||p&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||a(y,v))||d.push(y);return d}var r=n(53),i=n(27),s=n(28),u=n(29),a=n(24),c=n(31),l=Object.prototype,f=l.hasOwnProperty;t.exports=o},function(t,e,n){function o(t,e,n){var o=t[e];u.call(t,e)&&i(o,n)&&(void 0!==n||e in t)||r(t,e,n)}var r=n(10),i=n(8),s=Object.prototype,u=s.hasOwnProperty;t.exports=o},function(t,e,n){var o=n(0),r=Object.create,i=function(){function t(){}return function(e){if(!o(e))return{};if(r)return r(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();t.exports=i},function(t,e,n){var o=n(62),r=o();t.exports=r},function(t,e,n){function o(t){return i(t)&&r(t)==s}var r=n(5),i=n(2),s="[object Arguments]";t.exports=o},function(t,e,n){function o(t){return!(!s(t)||i(t))&&(r(t)?h:a).test(u(t))}var r=n(13),i=n(74),s=n(0),u=n(97),a=/^\[object .+?Constructor\]$/,c=Function.prototype,l=Object.prototype,f=c.toString,p=l.hasOwnProperty,h=RegExp("^"+f.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=o},function(t,e,n){function o(t){return s(t)&&i(t.length)&&!!u[r(t)]}var r=n(5),i=n(30),s=n(2),u={};u["[object Float32Array]"]=u["[object Float64Array]"]=u["[object Int8Array]"]=u["[object Int16Array]"]=u["[object Int32Array]"]=u["[object Uint8Array]"]=u["[object Uint8ClampedArray]"]=u["[object Uint16Array]"]=u["[object Uint32Array]"]=!0,u["[object Arguments]"]=u["[object Array]"]=u["[object ArrayBuffer]"]=u["[object Boolean]"]=u["[object DataView]"]=u["[object Date]"]=u["[object Error]"]=u["[object Function]"]=u["[object Map]"]=u["[object Number]"]=u["[object Object]"]=u["[object RegExp]"]=u["[object Set]"]=u["[object String]"]=u["[object WeakMap]"]=!1,t.exports=o},function(t,e,n){function o(t){if(!r(t))return s(t);var e=i(t),n=[];for(var o in t)("constructor"!=o||!e&&a.call(t,o))&&n.push(o);return n}var r=n(0),i=n(25),s=n(85),u=Object.prototype,a=u.hasOwnProperty;t.exports=o},function(t,e,n){function o(t,e,n,o,x,g,_){var m=t[n],j=e[n],w=_.get(j);if(w)return void r(t,n,w);var O=g?g(m,j,n+"",t,e,_):void 0,k=void 0===O;if(k){var S=l(j),E=!S&&p(j),z=!S&&!E&&y(j);O=j,S||E||z?l(m)?O=m:f(m)?O=u(m):E?(k=!1,O=i(j,!0)):z?(k=!1,O=s(j,!0)):O=[]:v(j)||c(j)?(O=m,c(m)?O=b(m):(!d(m)||o&&h(m))&&(O=a(j))):k=!1}k&&(_.set(j,O),x(O,j,o,g,_),_.delete(j)),r(t,n,O)}var r=n(18),i=n(56),s=n(57),u=n(58),a=n(71),c=n(27),l=n(28),f=n(99),p=n(29),h=n(13),d=n(0),v=n(100),y=n(31),b=n(103);t.exports=o},function(t,e,n){var o=n(98),r=n(21),i=n(26),s=r?function(t,e){return r(t,"toString",{configurable:!0,enumerable:!1,value:o(e),writable:!0})}:i;t.exports=s},function(t,e){function n(t,e){for(var n=-1,o=Array(t);++n<t;)o[n]=e(n);return o}t.exports=n},function(t,e){function n(t){return function(e){return t(e)}}t.exports=n},function(t,e,n){function o(t){var e=new t.constructor(t.byteLength);return new r(e).set(new r(t)),e}var r=n(42);t.exports=o},function(t,e,n){(function(t){function o(t,e){if(e)return t.slice();var n=t.length,o=c?c(n):new t.constructor(n);return t.copy(o),o}var r=n(1),i="object"==typeof e&&e&&!e.nodeType&&e,s=i&&"object"==typeof t&&t&&!t.nodeType&&t,u=s&&s.exports===i,a=u?r.Buffer:void 0,c=a?a.allocUnsafe:void 0;t.exports=o}).call(e,n(14)(t))},function(t,e,n){function o(t,e){var n=e?r(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}var r=n(55);t.exports=o},function(t,e){function n(t,e){var n=-1,o=t.length;for(e||(e=Array(o));++n<o;)e[n]=t[n];return e}t.exports=n},function(t,e,n){function o(t,e,n,o){var s=!n;n||(n={});for(var u=-1,a=e.length;++u<a;){var c=e[u],l=o?o(n[c],t[c],c,n,t):void 0;void 0===l&&(l=t[c]),s?i(n,c,l):r(n,c,l)}return n}var r=n(44),i=n(10);t.exports=o},function(t,e,n){var o=n(1),r=o["__core-js_shared__"];t.exports=r},function(t,e,n){function o(t){return r(function(e,n){var o=-1,r=n.length,s=r>1?n[r-1]:void 0,u=r>2?n[2]:void 0;for(s=t.length>3&&"function"==typeof s?(r--,s):void 0,u&&i(n[0],n[1],u)&&(s=r<3?void 0:s,r=1),e=Object(e);++o<r;){var a=n[o];a&&t(e,a,o,s)}return e})}var r=n(20),i=n(72);t.exports=o},function(t,e){function n(t){return function(e,n,o){for(var r=-1,i=Object(e),s=o(e),u=s.length;u--;){var a=s[t?u:++r];if(n(i[a],a,i)===!1)break}return e}}t.exports=n},function(t,e,n){function o(t,e,n,s,u,a){return i(t)&&i(e)&&(a.set(e,t),r(t,e,void 0,o,a),a.delete(e)),t}var r=n(19),i=n(0);t.exports=o},function(t,e,n){function o(t){var e=s.call(t,a),n=t[a];try{t[a]=void 0}catch(t){}var o=u.call(t);return e?t[a]=n:delete t[a],o}var r=n(16),i=Object.prototype,s=i.hasOwnProperty,u=i.toString,a=r?r.toStringTag:void 0;t.exports=o},function(t,e){function n(t,e){return null==t?void 0:t[e]}t.exports=n},function(t,e,n){function o(){this.__data__=r?r(null):{},this.size=0}var r=n(7);t.exports=o},function(t,e){function n(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}t.exports=n},function(t,e,n){function o(t){var e=this.__data__;if(r){var n=e[t];return n===i?void 0:n}return u.call(e,t)?e[t]:void 0}var r=n(7),i="__lodash_hash_undefined__",s=Object.prototype,u=s.hasOwnProperty;t.exports=o},function(t,e,n){function o(t){var e=this.__data__;return r?void 0!==e[t]:s.call(e,t)}var r=n(7),i=Object.prototype,s=i.hasOwnProperty;t.exports=o},function(t,e,n){function o(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=r&&void 0===e?i:e,this}var r=n(7),i="__lodash_hash_undefined__";t.exports=o},function(t,e,n){function o(t){return"function"!=typeof t.constructor||s(t)?{}:r(i(t))}var r=n(45),i=n(23),s=n(25);t.exports=o},function(t,e,n){function o(t,e,n){if(!u(n))return!1;var o=typeof e;return!!("number"==o?i(n)&&s(e,n.length):"string"==o&&e in n)&&r(n[e],t)}var r=n(8),i=n(12),s=n(24),u=n(0);t.exports=o},function(t,e){function n(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}t.exports=n},function(t,e,n){function o(t){return!!i&&i in t}var r=n(60),i=function(){var t=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();t.exports=o},function(t,e){function n(){this.__data__=[],this.size=0}t.exports=n},function(t,e,n){function o(t){var e=this.__data__,n=r(e,t);return!(n<0)&&(n==e.length-1?e.pop():s.call(e,n,1),--this.size,!0)}var r=n(4),i=Array.prototype,s=i.splice;t.exports=o},function(t,e,n){function o(t){var e=this.__data__,n=r(e,t);return n<0?void 0:e[n][1]}var r=n(4);t.exports=o},function(t,e,n){function o(t){return r(this.__data__,t)>-1}var r=n(4);t.exports=o},function(t,e,n){function o(t,e){var n=this.__data__,o=r(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this}var r=n(4);t.exports=o},function(t,e,n){function o(){this.size=0,this.__data__={hash:new r,map:new(s||i),string:new r}}var r=n(39),i=n(3),s=n(15);t.exports=o},function(t,e,n){function o(t){var e=r(this,t).delete(t);return this.size-=e?1:0,e}var r=n(6);t.exports=o},function(t,e,n){function o(t){return r(this,t).get(t)}var r=n(6);t.exports=o},function(t,e,n){function o(t){return r(this,t).has(t)}var r=n(6);t.exports=o},function(t,e,n){function o(t,e){var n=r(this,t),o=n.size;return n.set(t,e),this.size+=n.size==o?0:1,this}var r=n(6);t.exports=o},function(t,e){function n(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}t.exports=n},function(t,e,n){(function(t){var o=n(22),r="object"==typeof e&&e&&!e.nodeType&&e,i=r&&"object"==typeof t&&t&&!t.nodeType&&t,s=i&&i.exports===r,u=s&&o.process,a=function(){try{return u&&u.binding&&u.binding("util")}catch(t){}}();t.exports=a}).call(e,n(14)(t))},function(t,e){function n(t){return r.call(t)}var o=Object.prototype,r=o.toString;t.exports=n},function(t,e){function n(t,e){return function(n){return t(e(n))}}t.exports=n},function(t,e,n){function o(t,e,n){return e=i(void 0===e?t.length-1:e,0),function(){for(var o=arguments,s=-1,u=i(o.length-e,0),a=Array(u);++s<u;)a[s]=o[e+s];s=-1;for(var c=Array(e+1);++s<e;)c[s]=o[s];return c[e]=n(a),r(t,this,c)}}var r=n(17),i=Math.max;t.exports=o},function(t,e,n){var o=n(52),r=n(91),i=r(o);t.exports=i},function(t,e){function n(t){var e=0,n=0;return function(){var s=i(),u=r-(s-n);if(n=s,u>0){if(++e>=o)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var o=800,r=16,i=Date.now;t.exports=n},function(t,e,n){function o(){this.__data__=new r,this.size=0}var r=n(3);t.exports=o},function(t,e){function n(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}t.exports=n},function(t,e){function n(t){return this.__data__.get(t)}t.exports=n},function(t,e){function n(t){return this.__data__.has(t)}t.exports=n},function(t,e,n){function o(t,e){var n=this.__data__;if(n instanceof r){var o=n.__data__;if(!i||o.length<u-1)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new s(o)}return n.set(t,e),this.size=n.size,this}var r=n(3),i=n(15),s=n(40),u=200;t.exports=o},function(t,e){function n(t){if(null!=t){try{return r.call(t)}catch(t){}try{return t+""}catch(t){}}return""}var o=Function.prototype,r=o.toString;t.exports=n},function(t,e){function n(t){return function(){return t}}t.exports=n},function(t,e,n){function o(t){return i(t)&&r(t)}var r=n(12),i=n(2);t.exports=o},function(t,e,n){function o(t){if(!s(t)||r(t)!=u)return!1;var e=i(t);if(null===e)return!0;var n=f.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==p}var r=n(5),i=n(23),s=n(2),u="[object Object]",a=Function.prototype,c=Object.prototype,l=a.toString,f=c.hasOwnProperty,p=l.call(Object);t.exports=o},function(t,e,n){var o=n(19),r=n(61),i=r(function(t,e,n,r){o(t,e,n,r)});t.exports=i},function(t,e){function n(){return!1}t.exports=n},function(t,e,n){function o(t){return r(t,i(t))}var r=n(59),i=n(32);t.exports=o},function(t,e){t.exports='<svg viewbox="0 0 18 18">\n <line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"></line>\n <line class="ql-stroke" x1="14" x2="4" y1="14" y2="14"></line>\n <line class="ql-stroke" x1="12" x2="6" y1="4" y2="4"></line>\n</svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18">\n <line class="ql-stroke" x1="3" x2="15" y1="9" y2="9"></line>\n <line class="ql-stroke" x1="3" x2="13" y1="14" y2="14"></line>\n <line class="ql-stroke" x1="3" x2="9" y1="4" y2="4"></line>\n</svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18">\n <line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"></line>\n <line class="ql-stroke" x1="15" x2="5" y1="14" y2="14"></line>\n <line class="ql-stroke" x1="15" x2="9" y1="4" y2="4"></line>\n</svg>'},function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n}])});