From a1379c0c4afab7b6dd913f3b81c145a4c2142b7b Mon Sep 17 00:00:00 2001 From: purestart <522382456@qq.com> Date: Wed, 6 May 2020 16:41:17 +0800 Subject: [PATCH] update v0.1.28 --- README.md | 6 +++++- dist/vue-fabric.min.js | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 4060a0e..418cd35 100644 --- a/README.md +++ b/README.md @@ -320,4 +320,8 @@ Vue.use(Fabric); ### 2020.04.15---v0.1.27 -- 修复id = "canvas"的情况下会报错的问题 \ No newline at end of file +- 修复id = "canvas"的情况下会报错的问题 + +### 2020.05.08---v0.1.28 + +- 修复更新Mirror只有图片生效的问题 \ No newline at end of file diff --git a/dist/vue-fabric.min.js b/dist/vue-fabric.min.js index 37b44df..141dc6b 100644 --- a/dist/vue-fabric.min.js +++ b/dist/vue-fabric.min.js @@ -1 +1 @@ -!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["vue-fabric"]=e():t["vue-fabric"]=e()}("undefined"!=typeof self?self:this,function(){return function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},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=30)}([function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e){var n=t.exports={version:"2.6.5"};"number"==typeof __e&&(__e=n)},function(t,e,n){var r=n(24)("wks"),o=n(25),i=n(0).Symbol,a="function"==typeof i;(t.exports=function(t){return r[t]||(r[t]=a&&i[t]||(a?i:o)("Symbol."+t))}).store=r},function(t,e,n){var r=n(6),o=n(22);t.exports=n(4)?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){t.exports=!n(13)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e){t.exports={}},function(t,e,n){var r=n(7),o=n(43),i=n(44),a=Object.defineProperty;e.f=n(4)?Object.defineProperty:function(t,e,n){if(r(t),e=i(e,!0),r(n),o)try{return a(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var r=n(12);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var r=n(17),o=n(10);t.exports=function(t){return r(o(t))}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){var r=n(0),o=n(1),i=n(41),a=n(3),c=n(8),s=function(t,e,n){var u,f,l,d=t&s.F,v=t&s.G,h=t&s.S,p=t&s.P,g=t&s.B,b=t&s.W,m=v?o:o[e]||(o[e]={}),A=m.prototype,y=v?r:h?r[e]:(r[e]||{}).prototype;v&&(n=e);for(u in n)(f=!d&&y&&void 0!==y[u])&&c(m,u)||(l=f?y[u]:n[u],m[u]=v&&"function"!=typeof y[u]?n[u]:g&&f?i(l,r):b&&y[u]==l?function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(l):p&&"function"==typeof l?i(Function.call,l):l,p&&((m.virtual||(m.virtual={}))[u]=l,t&s.R&&A&&!A[u]&&a(A,u,l)))};s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,t.exports=s},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e,n){var r=n(24)("keys"),o=n(25);t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,e,n){"use strict";var r=n(35),o=n.n(r),i=n(60),a=n.n(i),c=n(29),s=n.n(c),u=n(66),f=n(72),l=n(73);e.a={name:"VueFabric",props:{id:{type:String,required:!1,default:"fabricCanvas"},width:{type:Number,required:!0},height:{type:Number,required:!0}},data:function(){return{canvas:null,currentObj:null}},created:function(){},mounted:function(){this.canvas=new fabric.Canvas(this.id,{preserveObjectStacking:!0});var t=this.canvas;fabric.Canvas.prototype.customiseControls({tl:{action:"scale"},tr:{action:"scale"},bl:{action:"scale",cursor:"pointer"},br:{action:"scale",cursor:"pointer"},mb:{action:"scale",cursor:"pointer"},mt:{action:"scale",cursor:"pointer"},mtr:{action:"rotate"}}),this.setCornerIcons({}),t.backgroundColor="#ffffff";var e=this;this.canvas.controlsAboveOverlay=!1,this.canvas.skipOffscreen=!0,this.canvas.on("selection:created",function(t){e.$emit("selection:created",t)}),this.canvas.on("mouse:down",function(t){e.$emit("mouse:down",t)}),this.canvas.on("mouse:up",function(t){e.$emit("mouse:up",t)}),this.canvas.on("mouse:move",function(t){e.$emit("mouse:move",t)}),this.canvas.on("mouse:dblclick",function(t){e.$emit("mouse:dblclick",t)}),this.canvas.on("mouse:over",function(t){e.$emit("mouse:over",t)}),this.canvas.on("mouse:out",function(t){e.$emit("mouse:out",t)}),this.canvas.on("object:added",function(t){e.$emit("object:added",t)}),this.canvas.on("object:removed",function(t){e.$emit("object:removed",t)}),this.canvas.on("object:modified",function(t){e.$emit("object:modified",t)}),this.canvas.on("object:rotating",function(t){e.$emit("object:rotating",t)}),this.canvas.on("object:scaling",function(t){e.$emit("object:scaling",t)}),this.canvas.on("object:moving",function(t){e.$emit("object:moving",t)}),this.canvas.on("selection:updated",function(t){e.$emit("selection:updated",t)}),this.canvas.on("selection:cleared",function(t){e.$emit("selection:cleared",t)}),this.canvas.on("before:selection:cleared",function(t){e.$emit("before:selection:cleared",t)})},methods:{setCornerIcons:function(t){var e=t.size,n=void 0===e?20:e,r=t.borderColor,o=void 0===r?"#e4e4e4":r,i=t.cornerBackgroundColor,a=void 0===i?"#ffffff":i,c=t.cornerShape,s=void 0===c?"rect":c,u=t.tl,d=void 0===u?f:u,v=t.tr,h=void 0===v?f:v,p=t.bl,g=void 0===p?f:p,b=t.br,m=void 0===b?f:b,A=t.ml,y=void 0===A?f:A,x=t.mr,w=void 0===x?f:x,j=t.mtr,O=void 0===j?l:j,C=this;fabric.Object.prototype.customiseCornerIcons({settings:{borderColor:o,cornerSize:n,cornerShape:s,cornerBackgroundColor:a},tl:{icon:d},tr:{icon:h},bl:{icon:g},br:{icon:m},ml:{icon:y},mr:{icon:w},mtr:{icon:O}},function(){C.canvas.renderAll()})},drawDottedline:function(t){t=s()({x:0,y:0,x1:10,y1:10,color:"#B2B2B2",drawWidth:2,offset:6,empty:3},t);var e=new fabric.Line([t.x,t.y,t.x1,t.y1],a()({},t,{strokeDashArray:[t.offset,t.empty],stroke:t.color,strokeWidth:t.drawWidth}));this.canvas.add(e),this.canvas.renderAll()},drawArrowLine:function(t){t=s()({x:0,y:0,x1:0,y1:0,color:"#B2B2B2",drawWidth:2,fillColor:"rgba(255,255,255,0)",theta:35,headlen:35},t);var e=new fabric.Path(this.drawArrowBase(t.x,t.y,t.x1,t.y1,t.theta,t.headlen),a()({},t,{stroke:t.color,fill:t.fillColor,strokeWidth:t.drawWidth}));this.canvas.add(e),this.canvas.renderAll()},drawArrowBase:function(t,e,n,r,o,i){o=void 0!==o?o:30,i=void 0!==o?i:10;var a=180*Math.atan2(e-r,t-n)/Math.PI,c=(a+o)*Math.PI/180,s=(a-o)*Math.PI/180,u=i*Math.cos(c),f=i*Math.sin(c),l=i*Math.cos(s),d=i*Math.sin(s),v=t-u,h=e-f,p=" M "+t+" "+e;return p+=" L "+n+" "+r,v=n+u,h=r+f,p+=" M "+v+" "+h,p+=" L "+n+" "+r,v=n+l,h=r+d,p+=" L "+v+" "+h},freeDrawConfig:function(t){t=s()({color:"#b2b2b2",drawWidth:2},t),this.canvas.isDrawingMode=t.isDrawingMode,this.canvas.freeDrawingBrush.color=t.color,this.canvas.freeDrawingBrush.width=t.drawWidth,this.canvas.renderAll()},removeCurrentObj:function(){var t=this.canvas.getActiveObject();this.canvas.remove(t),this.canvas.renderAll()},getEditObj:function(){var t=this.canvas.getActiveObject();return this.removeCurrentObj(),t},setEditObj:function(t){this.canvas.add(t),this.canvas.renderAll()},setRotate:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:36,e=this.canvas.getActiveObject(),n=e.angle;e.rotate(n+t),this.canvas.renderAll()},discardActive:function(){this.canvas.discardActiveObject(),this.canvas.renderAll()},moveTo:function(){var t=this.canvas.getActiveObject();console.log(this.canvas.sendBackwards),this.canvas.sendBackwards(t,!0),this.canvas.discardActiveObject()},createRect:function(t){t=s()({width:0,height:0,fillColor:"rgba(255, 255, 255, 0)",left:50,top:50},t);var e=new fabric.Rect(a()({},t,{fill:t.fillColor}));this.canvas.add(e),this.canvas.renderAll()},createCircle:function(t){t=s()({left:0,top:0,radius:30,fillColor:"rgba(255, 255, 255, 0)",color:"#B2B2B2",drawWidth:2},t);var e=a()({},t,{fill:t.fillColor,strokeWidth:t.drawWidth,stroke:t.color}),n=new fabric.Circle(e);this.canvas.add(n),this.canvas.renderAll()},createTriangle:function(t){t=s()({x:0,y:0,x1:0,y1:0,x2:0,y2:0,left:100,top:100,color:"#B2B2B2",drawWidth:2,fillColor:"rgba(255, 255, 255, 0)",id:"triangle"},t);var e="M "+t.x+" "+t.y+" L "+t.x1+" "+t.y1+" L "+t.x2+" "+t.y2+" z",n=new fabric.Path(e,a()({},t,{stroke:t.color,strokeWidth:t.drawWidth,fill:t.fillColor}));this.canvas.add(n),this.canvas.renderAll()},createEqualTriangle:function(t){t=s()({left:100,top:100,width:50,height:80,fillColor:"rgba(255, 255, 255, 0)",color:"#B2B2B2",drawWidth:2},t);var e=new fabric.Triangle(a()({},t,{fill:t.fillColor,strokeWidth:t.drawWidth,stroke:t.color}));this.setContronVisibility(e),this.canvas.add(e),this.canvas.renderAll()},createLine:function(t){t=s()({x:0,y:0,x1:10,y1:10,fillColor:"rgba(255, 255, 255, 0)",strokeColor:"#B0B0B0"},t);var e=new fabric.Line([t.x,t.y,t.x1,t.y1],a()({},t,{fill:t.fillColor,stroke:t.strokeColor}));this.canvas.add(e),this.canvas.renderAll()},createEllipse:function(t){t=s()({rx:100,ry:200,fillColor:"rgba(255, 255, 255, 0)",angle:90,strokeColor:"#B0B0B0",strokeWidth:3,left:50,top:50},t);var e=new fabric.Ellipse(a()({},t,{fill:t.fillColor,stroke:t.strokeColor}));this.canvas.add(e),this.canvas.renderAll()},createText:function(t,e){e=s()({left:100,top:100},e);var n=new fabric.Text(t,a()({},e));this.canvas.add(n),this.canvas.renderAll()},createTextbox:function(t,e){e=s()({fontSize:14,fillColor:"#000000",registeObjectEvent:!1,width:50,left:100,top:100},e);var n=new fabric.Textbox(t,a()({},e,{fill:e.fillColor}));this.canvas.add(n),e.registeObjectEvent&&u.a.registeObjectEvent(this,n),this.canvas.renderAll()},createImage:function(t,e){var n=this.canvas,r=this;fabric.Image.fromURL(t,function(t){var o=r.width/2,i=0,a=0;t.width>t.height?t.width>o?(i=o,a=t.height/t.width*i):(i=t.width,a=t.height):t.height>o?(a=o,i=t.width/t.height*a):(i=t.width,a=t.height),e&&e.width&&(i=e.width),e&&e.height&&(a=e.height);var c=r.width/2,s=r.height/2;e&&e.left&&(c=e.left),e&&e.top&&(s=e.top),t.set({id:e&&e.id?e.id:"image",left:c,top:s,scaleX:i/t.width,scaleY:a/t.height,originX:"center",originY:"center",cornerStrokeColor:"blue"});t.get("originX"),t.get("originY"),t.getCenterPoint();t.hasControls=!0,t.hasBorders=!0,n.add(t),e&&e.registeObjectEvent&&u.a.registeObjectEvent(r,t),n.renderAll.bind(n)})},toJson:function(){return this.canvas.toJSON()},toDataUrl:function(){return this.canvas.toDataURL({format:"jpeg",quality:1})},loadFromJSON:function(t,e){var n=this.canvas;n.loadFromJSON(t,n.renderAll.bind(n),function(t,n){e(t),n.setControlsVisibility({bl:!0,br:!0,mb:!1,ml:!0,mr:!0,mt:!1,mtr:!0,tl:!0,tr:!0})})},clear:function(){this.canvas.clear()},getObjects:function(){return this.canvas.getObjects()},renderAll:function(){this.canvas.renderAll(this.canvas)},renderTop:function(){this.canvas.renderTop()},setBackgroundColor:function(t){var e=this.canvas;this.canvas.setBackgroundColor(t,e.renderAll.bind(e))},setBackgroundImage:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,a=this.canvas;a.setBackgroundImage(t,a.renderAll.bind(a),{opacity:e,angle:n,left:r,top:o,originX:"left",originY:"top",crossOrigin:i})},toSvg:function(){return this.canvas.toSVG()},drawControls:function(){var t=document.createElement("canvas"),e=t.getContext("2d");e.setLineDash([]),e.beginPath(),e.ellipse(100,100,50,75,45*Math.PI/180,0,2*Math.PI),e.stroke(),e.setLineDash([5]),e.moveTo(0,200),e.lineTo(200,0),e.stroke(),this.canvas.drawControls(e)},setContronVisibility:function(t){t.setControlsVisibility({bl:!0,br:!0,mb:!1,ml:!0,mr:!0,mt:!1,mtr:!0,tl:!0,tr:!0})},toggleMirror:function(t){var e=t.flip,n=void 0===e?"X":e,r=this.canvas.getActiveObject();r&&"image"==r.type&&("X"===n?r.toggle("flipX"):r.toggle("flipY"),this.renderAll())},toNextLayer:function(){var t=this.canvas.getActiveObject();t&&(t.sendBackwards(!0),this.renderTop())},toBottomLayer:function(){var t=this.canvas.getActiveObject();t&&(t.sendToBack(),this.renderTop())},toLastLayer:function(){var t=this.canvas.getActiveObject();t&&(t.bringForward(!0),this.renderTop())},toTopLayer:function(){var t=this.canvas.getActiveObject();t&&(t.bringToFront(),this.renderTop())},drawByPath:function(t,e){e=s()({fillColor:"rgba(255, 255, 255, 0)",left:150,top:150,strokeColor:"#B0B0B0",strokeWidth:3},e);var n="M ",r=!0,i=!1,c=void 0;try{for(var u,f=o()(t);!(r=(u=f.next()).done);r=!0){var l=u.value;n=n+l[0]+" "+l[1]+" "}}catch(t){i=!0,c=t}finally{try{!r&&f.return&&f.return()}finally{if(i)throw c}}n+="z",console.log(n);var d=new fabric.Path(n);d.set(a()({},e,{stroke:e.strokeColor,fill:e.fillColor})),this.canvas.add(d)}}}},function(t,e,n){var r=n(18);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e,n){"use strict";var r=n(20),o=n(11),i=n(45),a=n(3),c=n(5),s=n(46),u=n(27),f=n(54),l=n(2)("iterator"),d=!([].keys&&"next"in[].keys()),v=function(){return this};t.exports=function(t,e,n,h,p,g,b){s(n,e,h);var m,A,y,x=function(t){if(!d&&t in C)return C[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},w=e+" Iterator",j="values"==p,O=!1,C=t.prototype,k=C[l]||C["@@iterator"]||p&&C[p],S=k||x(p),E=p?j?x("entries"):S:void 0,M="Array"==e?C.entries||k:k;if(M&&(y=f(M.call(new t)))!==Object.prototype&&y.next&&(u(y,w,!0),r||"function"==typeof y[l]||a(y,l,v)),j&&k&&"values"!==k.name&&(O=!0,S=function(){return k.call(this)}),r&&!b||!d&&!O&&C[l]||a(C,l,S),c[e]=S,c[w]=v,p)if(m={values:j?S:x("values"),keys:g?S:x("keys"),entries:E},b)for(A in m)A in C||i(C,A,m[A]);else o(o.P+o.F*(d||O),e,m);return m}},function(t,e){t.exports=!0},function(t,e,n){var r=n(12),o=n(0).document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){var r=n(49),o=n(26);t.exports=Object.keys||function(t){return r(t,o)}},function(t,e,n){var r=n(1),o=n(0),i=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n(20)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,n){var r=n(6).f,o=n(8),i=n(2)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,i)&&r(t,i,{configurable:!0,value:e})}},function(t,e,n){var r=n(10);t.exports=function(t){return Object(r(t))}},function(t,e,n){t.exports={default:n(61),__esModule:!0}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(31);n.d(e,"Fabric",function(){return r.a})},function(t,e,n){"use strict";var r=n(32),o={install:function(t){t.component(r.a.name,r.a)}};e.a=o},function(t,e,n){"use strict";function r(t){n(33)}var o=n(16),i=n(74),a=n(34),c=r,s=a(o.a,i.a,!1,c,"data-v-45d672ac",null);e.a=s.exports},function(t,e){},function(t,e){t.exports=function(t,e,n,r,o,i){var a,c=t=t||{},s=typeof t.default;"object"!==s&&"function"!==s||(a=t,c=t.default);var u="function"==typeof c?c.options:c;e&&(u.render=e.render,u.staticRenderFns=e.staticRenderFns,u._compiled=!0),n&&(u.functional=!0),o&&(u._scopeId=o);var f;if(i?(f=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(i)},u._ssrRegister=f):r&&(f=r),f){var l=u.functional,d=l?u.render:u.beforeCreate;l?(u._injectStyles=f,u.render=function(t,e){return f.call(e),d(t,e)}):u.beforeCreate=d?[].concat(d,f):[f]}return{esModule:a,exports:c,options:u}}},function(t,e,n){t.exports={default:n(36),__esModule:!0}},function(t,e,n){n(37),n(55),t.exports=n(57)},function(t,e,n){n(38);for(var r=n(0),o=n(3),i=n(5),a=n(2)("toStringTag"),c="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),s=0;s=t.length?(this._t=void 0,o(1)):"keys"==e?o(0,n):"values"==e?o(0,t[n]):o(0,[n,t[n]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(t,e){t.exports=function(){}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){var r=n(42);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,n){t.exports=!n(4)&&!n(13)(function(){return 7!=Object.defineProperty(n(21)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(12);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e,n){t.exports=n(3)},function(t,e,n){"use strict";var r=n(47),o=n(22),i=n(27),a={};n(3)(a,n(2)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(a,{next:o(1,n)}),i(t,e+" Iterator")}},function(t,e,n){var r=n(7),o=n(48),i=n(26),a=n(15)("IE_PROTO"),c=function(){},s=function(){var t,e=n(21)("iframe"),r=i.length;for(e.style.display="none",n(53).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write("