@fileverse-dev/ddoc 1.7.6-patch-1 → 1.7.6-patch-2

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.es.js CHANGED
@@ -64944,7 +64944,7 @@ const yhe = /* @__PURE__ */ op(ghe), Ew = () => {
64944
64944
  {
64945
64945
  className: "p-4 sm:px-[88px] sm:py-[78px] bg-white w-full sm:w-[70%] max-w-[856px] mx-auto",
64946
64946
  style: {
64947
- height: D ? "calc(100vh - 8rem)" : "100vh"
64947
+ height: D && !t ? "calc(100vh - 8rem)" : "100vh"
64948
64948
  },
64949
64949
  children: [
64950
64950
  /* @__PURE__ */ O.jsxs(
package/dist/index.umd.js CHANGED
@@ -525,4 +525,4 @@ ${n.innerHTML}
525
525
  * Copyright 2014-2020 Benjamin Tan
526
526
  * Copyright 2011-2013 John-David Dalton
527
527
  * Available under MIT license
528
- */ib.exports,function(t,e){(function(){var n={function:!0,object:!0},r=n[typeof window]&&window||this,i=e,s=t&&!t.nodeType&&t,o=i&&s&&typeof An=="object"&&An;o&&(o.global===o||o.window===o||o.self===o)&&(r=o);var a=Math.pow(2,53)-1,l=/\bOpera/,u=Object.prototype,c=u.hasOwnProperty,f=u.toString;function d(E){return E=String(E),E.charAt(0).toUpperCase()+E.slice(1)}function h(E,D,T){var R={"10.0":"10","6.4":"10 Technical Preview","6.3":"8.1","6.2":"8","6.1":"Server 2008 R2 / 7","6.0":"Server 2008 / Vista","5.2":"Server 2003 / XP 64-bit","5.1":"XP","5.01":"2000 SP1","5.0":"2000","4.0":"NT","4.90":"ME"};return D&&T&&/^Win/i.test(E)&&!/^Windows Phone /i.test(E)&&(R=R[/[\d.]+$/.exec(E)])&&(E="Windows "+R),E=String(E),D&&T&&(E=E.replace(RegExp(D,"i"),T)),E=m(E.replace(/ ce$/i," CE").replace(/\bhpw/i,"web").replace(/\bMacintosh\b/,"Mac OS").replace(/_PowerPC\b/i," OS").replace(/\b(OS X) [^ \d]+/i,"$1").replace(/\bMac (OS X)\b/,"$1").replace(/\/(\d)/," $1").replace(/_/g,".").replace(/(?: BePC|[ .]*fc[ \d.]+)$/i,"").replace(/\bx86\.64\b/gi,"x86_64").replace(/\b(Windows Phone) OS\b/,"$1").replace(/\b(Chrome OS \w+) [\d.]+\b/,"$1").split(" on ")[0]),E}function p(E,D){var T=-1,R=E?E.length:0;if(typeof R=="number"&&R>-1&&R<=a)for(;++T<R;)D(E[T],T,E);else g(E,D)}function m(E){return E=x(E),/^(?:webOS|i(?:OS|P))/.test(E)?E:d(E)}function g(E,D){for(var T in E)c.call(E,T)&&D(E[T],T,E)}function b(E){return E==null?d(E):f.call(E).slice(8,-1)}function v(E,D){var T=E!=null?typeof E[D]:"number";return!/^(?:boolean|number|string|undefined)$/.test(T)&&(T=="object"?!!E[D]:!0)}function y(E){return String(E).replace(/([ -])(?!$)/g,"$1?")}function A(E,D){var T=null;return p(E,function(R,L){T=D(T,R,L,E)}),T}function x(E){return String(E).replace(/^ +| +$/g,"")}function k(E){var D=r,T=E&&typeof E=="object"&&b(E)!="String";T&&(D=E,E=null);var R=D.navigator||{},L=R.userAgent||"";E||(E=L);var B=T?!!R.likeChrome:/\bChrome\b/.test(E)&&!/internal|\n/i.test(f.toString()),z="Object",F=T?z:"ScriptBridgingProxyObject",$=T?z:"Environment",Y=T&&D.java?"JavaPackage":b(D.java),ie=T?z:"RuntimeObject",ee=/\bJava/.test(Y)&&D.java,Ae=ee&&b(D.environment)==$,Me=ee?"a":"α",Be=ee?"b":"β",_e=D.document||{},Ee=D.operamini||D.opera,Ue=l.test(Ue=T&&Ee?Ee["[[Class]]"]:b(Ee))?Ue:Ee=null,H,Ve=E,me=[],Ke=null,fe=E==L,oe=fe&&Ee&&typeof Ee.version=="function"&&Ee.version(),de,ae=pe([{label:"EdgeHTML",pattern:"Edge"},"Trident",{label:"WebKit",pattern:"AppleWebKit"},"iCab","Presto","NetFront","Tasman","KHTML","Gecko"]),te=w(["Adobe AIR","Arora","Avant Browser","Breach","Camino","Electron","Epiphany","Fennec","Flock","Galeon","GreenBrowser","iCab","Iceweasel","K-Meleon","Konqueror","Lunascape","Maxthon",{label:"Microsoft Edge",pattern:"(?:Edge|Edg|EdgA|EdgiOS)"},"Midori","Nook Browser","PaleMoon","PhantomJS","Raven","Rekonq","RockMelt",{label:"Samsung Internet",pattern:"SamsungBrowser"},"SeaMonkey",{label:"Silk",pattern:"(?:Cloud9|Silk-Accelerated)"},"Sleipnir","SlimBrowser",{label:"SRWare Iron",pattern:"Iron"},"Sunrise","Swiftfox","Vivaldi","Waterfox","WebPositive",{label:"Yandex Browser",pattern:"YaBrowser"},{label:"UC Browser",pattern:"UCBrowser"},"Opera Mini",{label:"Opera Mini",pattern:"OPiOS"},"Opera",{label:"Opera",pattern:"OPR"},"Chromium","Chrome",{label:"Chrome",pattern:"(?:HeadlessChrome)"},{label:"Chrome Mobile",pattern:"(?:CriOS|CrMo)"},{label:"Firefox",pattern:"(?:Firefox|Minefield)"},{label:"Firefox for iOS",pattern:"FxiOS"},{label:"IE",pattern:"IEMobile"},{label:"IE",pattern:"MSIE"},"Safari"]),j=_([{label:"BlackBerry",pattern:"BB10"},"BlackBerry",{label:"Galaxy S",pattern:"GT-I9000"},{label:"Galaxy S2",pattern:"GT-I9100"},{label:"Galaxy S3",pattern:"GT-I9300"},{label:"Galaxy S4",pattern:"GT-I9500"},{label:"Galaxy S5",pattern:"SM-G900"},{label:"Galaxy S6",pattern:"SM-G920"},{label:"Galaxy S6 Edge",pattern:"SM-G925"},{label:"Galaxy S7",pattern:"SM-G930"},{label:"Galaxy S7 Edge",pattern:"SM-G935"},"Google TV","Lumia","iPad","iPod","iPhone","Kindle",{label:"Kindle Fire",pattern:"(?:Cloud9|Silk-Accelerated)"},"Nexus","Nook","PlayBook","PlayStation Vita","PlayStation","TouchPad","Transformer",{label:"Wii U",pattern:"WiiU"},"Wii","Xbox One",{label:"Xbox 360",pattern:"Xbox"},"Xoom"]),q=P({Apple:{iPad:1,iPhone:1,iPod:1},Alcatel:{},Archos:{},Amazon:{Kindle:1,"Kindle Fire":1},Asus:{Transformer:1},"Barnes & Noble":{Nook:1},BlackBerry:{PlayBook:1},Google:{"Google TV":1,Nexus:1},HP:{TouchPad:1},HTC:{},Huawei:{},Lenovo:{},LG:{},Microsoft:{Xbox:1,"Xbox One":1},Motorola:{Xoom:1},Nintendo:{"Wii U":1,Wii:1},Nokia:{Lumia:1},Oppo:{},Samsung:{"Galaxy S":1,"Galaxy S2":1,"Galaxy S3":1,"Galaxy S4":1},Sony:{PlayStation:1,"PlayStation Vita":1},Xiaomi:{Mi:1,Redmi:1}}),K=C(["Windows Phone","KaiOS","Android","CentOS",{label:"Chrome OS",pattern:"CrOS"},"Debian",{label:"DragonFly BSD",pattern:"DragonFly"},"Fedora","FreeBSD","Gentoo","Haiku","Kubuntu","Linux Mint","OpenBSD","Red Hat","SuSE","Ubuntu","Xubuntu","Cygwin","Symbian OS","hpwOS","webOS ","webOS","Tablet OS","Tizen","Linux","Mac OS X","Macintosh","Mac","Windows 98;","Windows "]);function pe(he){return A(he,function(ye,ke){return ye||RegExp("\\b"+(ke.pattern||y(ke))+"\\b","i").exec(E)&&(ke.label||ke)})}function P(he){return A(he,function(ye,ke,Ne){return ye||(ke[j]||ke[/^[a-z]+(?: +[a-z]+\b)*/i.exec(j)]||RegExp("\\b"+y(Ne)+"(?:\\b|\\w*\\d)","i").exec(E))&&Ne})}function w(he){return A(he,function(ye,ke){return ye||RegExp("\\b"+(ke.pattern||y(ke))+"\\b","i").exec(E)&&(ke.label||ke)})}function C(he){return A(he,function(ye,ke){var Ne=ke.pattern||y(ke);return!ye&&(ye=RegExp("\\b"+Ne+"(?:/[\\d.]+|[ \\w.]*)","i").exec(E))&&(ye=h(ye,Ne,ke.label||ke)),ye})}function _(he){return A(he,function(ye,ke){var Ne=ke.pattern||y(ke);return!ye&&(ye=RegExp("\\b"+Ne+" *\\d+[.\\w_]*","i").exec(E)||RegExp("\\b"+Ne+" *\\w+-[\\w]*","i").exec(E)||RegExp("\\b"+Ne+"(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)","i").exec(E))&&((ye=String(ke.label&&!RegExp(Ne,"i").test(ke.label)?ke.label:ye).split("/"))[1]&&!/[\d.]+/.test(ye[0])&&(ye[0]+=" "+ye[1]),ke=ke.label||ke,ye=m(ye[0].replace(RegExp(Ne,"i"),ke).replace(RegExp("; *(?:"+ke+"[_-])?","i")," ").replace(RegExp("("+ke+")[-_.]?(\\w)","i"),"$1 $2"))),ye})}function U(he){return A(he,function(ye,ke){return ye||(RegExp(ke+"(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)","i").exec(E)||0)[1]||null})}function Q(){return this.description||""}if(ae&&(ae=[ae]),/\bAndroid\b/.test(K)&&!j&&(H=/\bAndroid[^;]*;(.*?)(?:Build|\) AppleWebKit)\b/i.exec(E))&&(j=x(H[1]).replace(/^[a-z]{2}-[a-z]{2};\s*/i,"")||null),q&&!j?j=_([q]):q&&j&&(j=j.replace(RegExp("^("+y(q)+")[-_.\\s]","i"),q+" ").replace(RegExp("^("+y(q)+")[-_.]?(\\w)","i"),q+" $2")),(H=/\bGoogle TV\b/.exec(j))&&(j=H[0]),/\bSimulator\b/i.test(E)&&(j=(j?j+" ":"")+"Simulator"),te=="Opera Mini"&&/\bOPiOS\b/.test(E)&&me.push("running in Turbo/Uncompressed mode"),te=="IE"&&/\blike iPhone OS\b/.test(E)?(H=k(E.replace(/like iPhone OS/,"")),q=H.manufacturer,j=H.product):/^iP/.test(j)?(te||(te="Safari"),K="iOS"+((H=/ OS ([\d_]+)/i.exec(E))?" "+H[1].replace(/_/g,"."):"")):te=="Konqueror"&&/^Linux\b/i.test(K)?K="Kubuntu":q&&q!="Google"&&(/Chrome/.test(te)&&!/\bMobile Safari\b/i.test(E)||/\bVita\b/.test(j))||/\bAndroid\b/.test(K)&&/^Chrome/.test(te)&&/\bVersion\//i.test(E)?(te="Android Browser",K=/\bAndroid\b/.test(K)?K:"Android"):te=="Silk"?(/\bMobi/i.test(E)||(K="Android",me.unshift("desktop mode")),/Accelerated *= *true/i.test(E)&&me.unshift("accelerated")):te=="UC Browser"&&/\bUCWEB\b/.test(E)?me.push("speed mode"):te=="PaleMoon"&&(H=/\bFirefox\/([\d.]+)\b/.exec(E))?me.push("identifying as Firefox "+H[1]):te=="Firefox"&&(H=/\b(Mobile|Tablet|TV)\b/i.exec(E))?(K||(K="Firefox OS"),j||(j=H[1])):!te||(H=!/\bMinefield\b/i.test(E)&&/\b(?:Firefox|Safari)\b/.exec(te))?(te&&!j&&/[\/,]|^[^(]+?\)/.test(E.slice(E.indexOf(H+"/")+8))&&(te=null),(H=j||q||K)&&(j||q||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(K))&&(te=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(K)?K:H)+" Browser")):te=="Electron"&&(H=(/\bChrome\/([\d.]+)\b/.exec(E)||0)[1])&&me.push("Chromium "+H),oe||(oe=U(["(?:Cloud9|CriOS|CrMo|Edge|Edg|EdgA|EdgiOS|FxiOS|HeadlessChrome|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$)|UCBrowser|YaBrowser)","Version",y(te),"(?:Firefox|Minefield|NetFront)"])),(H=ae=="iCab"&&parseFloat(oe)>3&&"WebKit"||/\bOpera\b/.test(te)&&(/\bOPR\b/.test(E)?"Blink":"Presto")||/\b(?:Midori|Nook|Safari)\b/i.test(E)&&!/^(?:Trident|EdgeHTML)$/.test(ae)&&"WebKit"||!ae&&/\bMSIE\b/i.test(E)&&(K=="Mac OS"?"Tasman":"Trident")||ae=="WebKit"&&/\bPlayStation\b(?! Vita\b)/i.test(te)&&"NetFront")&&(ae=[H]),te=="IE"&&(H=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(E)||0)[1])?(te+=" Mobile",K="Windows Phone "+(/\+$/.test(H)?H:H+".x"),me.unshift("desktop mode")):/\bWPDesktop\b/i.test(E)?(te="IE Mobile",K="Windows Phone 8.x",me.unshift("desktop mode"),oe||(oe=(/\brv:([\d.]+)/.exec(E)||0)[1])):te!="IE"&&ae=="Trident"&&(H=/\brv:([\d.]+)/.exec(E))&&(te&&me.push("identifying as "+te+(oe?" "+oe:"")),te="IE",oe=H[1]),fe){if(v(D,"global"))if(ee&&(H=ee.lang.System,Ve=H.getProperty("os.arch"),K=K||H.getProperty("os.name")+" "+H.getProperty("os.version")),Ae){try{oe=D.require("ringo/engine").version.join("."),te="RingoJS"}catch{(H=D.system)&&H.global.system==D.system&&(te="Narwhal",K||(K=H[0].os||null))}te||(te="Rhino")}else typeof D.process=="object"&&!D.process.browser&&(H=D.process)&&(typeof H.versions=="object"&&(typeof H.versions.electron=="string"?(me.push("Node "+H.versions.node),te="Electron",oe=H.versions.electron):typeof H.versions.nw=="string"&&(me.push("Chromium "+oe,"Node "+H.versions.node),te="NW.js",oe=H.versions.nw)),te||(te="Node.js",Ve=H.arch,K=H.platform,oe=/[\d.]+/.exec(H.version),oe=oe?oe[0]:null));else b(H=D.runtime)==F?(te="Adobe AIR",K=H.flash.system.Capabilities.os):b(H=D.phantom)==ie?(te="PhantomJS",oe=(H=H.version||null)&&H.major+"."+H.minor+"."+H.patch):typeof _e.documentMode=="number"&&(H=/\bTrident\/(\d+)/i.exec(E))?(oe=[oe,_e.documentMode],(H=+H[1]+4)!=oe[1]&&(me.push("IE "+oe[1]+" mode"),ae&&(ae[1]=""),oe[1]=H),oe=te=="IE"?String(oe[1].toFixed(1)):oe[0]):typeof _e.documentMode=="number"&&/^(?:Chrome|Firefox)\b/.test(te)&&(me.push("masking as "+te+" "+oe),te="IE",oe="11.0",ae=["Trident"],K="Windows");K=K&&m(K)}if(oe&&(H=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(oe)||/(?:alpha|beta)(?: ?\d)?/i.exec(E+";"+(fe&&R.appMinorVersion))||/\bMinefield\b/i.test(E)&&"a")&&(Ke=/b/i.test(H)?"beta":"alpha",oe=oe.replace(RegExp(H+"\\+?$"),"")+(Ke=="beta"?Be:Me)+(/\d+\+?/.exec(H)||"")),te=="Fennec"||te=="Firefox"&&/\b(?:Android|Firefox OS|KaiOS)\b/.test(K))te="Firefox Mobile";else if(te=="Maxthon"&&oe)oe=oe.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(j))j=="Xbox 360"&&(K=null),j=="Xbox 360"&&/\bIEMobile\b/.test(E)&&me.unshift("mobile mode");else if((/^(?:Chrome|IE|Opera)$/.test(te)||te&&!j&&!/Browser|Mobi/.test(te))&&(K=="Windows CE"||/Mobi/i.test(E)))te+=" Mobile";else if(te=="IE"&&fe)try{D.external===null&&me.unshift("platform preview")}catch{me.unshift("embedded")}else(/\bBlackBerry\b/.test(j)||/\bBB10\b/.test(E))&&(H=(RegExp(j.replace(/ +/g," *")+"/([.\\d]+)","i").exec(E)||0)[1]||oe)?(H=[H,/BB10/.test(E)],K=(H[1]?(j=null,q="BlackBerry"):"Device Software")+" "+H[0],oe=null):this!=g&&j!="Wii"&&(fe&&Ee||/Opera/.test(te)&&/\b(?:MSIE|Firefox)\b/i.test(E)||te=="Firefox"&&/\bOS X (?:\d+\.){2,}/.test(K)||te=="IE"&&(K&&!/^Win/.test(K)&&oe>5.5||/\bWindows XP\b/.test(K)&&oe>8||oe==8&&!/\bTrident\b/.test(E)))&&!l.test(H=k.call(g,E.replace(l,"")+";"))&&H.name&&(H="ing as "+H.name+((H=H.version)?" "+H:""),l.test(te)?(/\bIE\b/.test(H)&&K=="Mac OS"&&(K=null),H="identify"+H):(H="mask"+H,Ue?te=m(Ue.replace(/([a-z])([A-Z])/g,"$1 $2")):te="Opera",/\bIE\b/.test(H)&&(K=null),fe||(oe=null)),ae=["Presto"],me.push(H));(H=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(E)||0)[1])&&(H=[parseFloat(H.replace(/\.(\d)$/,".0$1")),H],te=="Safari"&&H[1].slice(-1)=="+"?(te="WebKit Nightly",Ke="alpha",oe=H[1].slice(0,-1)):(oe==H[1]||oe==(H[2]=(/\bSafari\/([\d.]+\+?)/i.exec(E)||0)[1]))&&(oe=null),H[1]=(/\b(?:Headless)?Chrome\/([\d.]+)/i.exec(E)||0)[1],H[0]==537.36&&H[2]==537.36&&parseFloat(H[1])>=28&&ae=="WebKit"&&(ae=["Blink"]),!fe||!B&&!H[1]?(ae&&(ae[1]="like Safari"),H=(H=H[0],H<400?1:H<500?2:H<526?3:H<533?4:H<534?"4+":H<535?5:H<537?6:H<538?7:H<601?8:H<602?9:H<604?10:H<606?11:H<608?12:"12")):(ae&&(ae[1]="like Chrome"),H=H[1]||(H=H[0],H<530?1:H<532?2:H<532.05?3:H<533?4:H<534.03?5:H<534.07?6:H<534.1?7:H<534.13?8:H<534.16?9:H<534.24?10:H<534.3?11:H<535.01?12:H<535.02?"13+":H<535.07?15:H<535.11?16:H<535.19?17:H<536.05?18:H<536.1?19:H<537.01?20:H<537.11?"21+":H<537.13?23:H<537.18?24:H<537.24?25:H<537.36?26:ae!="Blink"?"27":"28")),ae&&(ae[1]+=" "+(H+=typeof H=="number"?".x":/[.+]/.test(H)?"":"+")),te=="Safari"&&(!oe||parseInt(oe)>45)?oe=H:te=="Chrome"&&/\bHeadlessChrome/i.test(E)&&me.unshift("headless")),te=="Opera"&&(H=/\bzbov|zvav$/.exec(K))?(te+=" ",me.unshift("desktop mode"),H=="zvav"?(te+="Mini",oe=null):te+="Mobile",K=K.replace(RegExp(" *"+H+"$"),"")):te=="Safari"&&/\bChrome\b/.exec(ae&&ae[1])?(me.unshift("desktop mode"),te="Chrome Mobile",oe=null,/\bOS X\b/.test(K)?(q="Apple",K="iOS 4.3+"):K=null):/\bSRWare Iron\b/.test(te)&&!oe&&(oe=U("Chrome")),oe&&oe.indexOf(H=/[\d.]+$/.exec(K))==0&&E.indexOf("/"+H+"-")>-1&&(K=x(K.replace(H,""))),K&&K.indexOf(te)!=-1&&!RegExp(te+" OS").test(K)&&(K=K.replace(RegExp(" *"+y(te)+" *"),"")),ae&&!/\b(?:Avant|Nook)\b/.test(te)&&(/Browser|Lunascape|Maxthon/.test(te)||te!="Safari"&&/^iOS/.test(K)&&/\bSafari\b/.test(ae[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|SRWare Iron|Vivaldi|Web)/.test(te)&&ae[1])&&(H=ae[ae.length-1])&&me.push(H),me.length&&(me=["("+me.join("; ")+")"]),q&&j&&j.indexOf(q)<0&&me.push("on "+q),j&&me.push((/^on /.test(me[me.length-1])?"":"on ")+j),K&&(H=/ ([\d.+]+)$/.exec(K),de=H&&K.charAt(K.length-H[0].length-1)=="/",K={architecture:32,family:H&&!de?K.replace(H[0],""):K,version:H?H[1]:null,toString:function(){var he=this.version;return this.family+(he&&!de?" "+he:"")+(this.architecture==64?" 64-bit":"")}}),(H=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(Ve))&&!/\bi686\b/i.test(Ve)?(K&&(K.architecture=64,K.family=K.family.replace(RegExp(" *"+H),"")),te&&(/\bWOW64\b/i.test(E)||fe&&/\w(?:86|32)$/.test(R.cpuClass||R.platform)&&!/\bWin64; x64\b/i.test(E))&&me.unshift("32-bit")):K&&/^OS X/.test(K.family)&&te=="Chrome"&&parseFloat(oe)>=39&&(K.architecture=64),E||(E=null);var X={};return X.description=E,X.layout=ae&&ae[0],X.manufacturer=q,X.name=te,X.prerelease=Ke,X.product=j,X.ua=E,X.version=te&&oe,X.os=K||{architecture:null,family:null,version:null,toString:function(){return"null"}},X.parse=k,X.toString=Q,X.version&&me.unshift(oe),X.name&&me.unshift(te),K&&te&&!(K==String(K).split(" ")[0]&&(K==te.split(" ")[0]||j))&&me.push(j?"("+K+")":"on "+K),me.length&&(X.description=me.join(" ")),X}var S=k();i&&s?g(S,function(E,D){i[D]=E}):r.platform=S}).call(An)}(ib,ib.exports);var Nfe=ib.exports;const Rfe=Yf(Nfe),zk=()=>{var t;return(t=Rfe.os)==null?void 0:t.family},Pfe=N.forwardRef(({isPreviewMode:t=!1,initialContent:e,enableCollaboration:n,collaborationId:r,username:i,renderToolRightSection:s,renderToolLeftSection:o,walletAddress:a,onChange:l,onCollaboratorChange:u,onTextSelection:c,onCommentInteraction:f,handleCommentButtonClick:d,showCommentButton:h,ensResolutionUrl:p,disableBottomToolbar:m,onError:g},b)=>{const[v,y]=N.useState(!1),[A,x]=N.useState(!1),k=N.useRef(null),S=N.useRef(null),E=B2("(max-width: 640px)"),D=zk()==="iOS"||zk()==="Android"||zk()==="Windows Phone"||E,{editor:T,ref:R,ydoc:L}=cae({isPreviewMode:t,initialContent:e,enableCollaboration:n,collaborationId:r,walletAddress:a,username:i,onChange:l,onCollaboratorChange:u,onCommentInteraction:f,onTextSelection:c,ensResolutionUrl:p,onError:g});return N.useImperativeHandle(b,()=>({getEditor:()=>T,getYdoc:()=>L}),[T,L]),N.useEffect(()=>{if(!T)return;const B=$=>{const{key:Y}=$;return Y.length===1},z=$=>{B($)&&D&&(k.current&&clearTimeout(k.current),x(!0),k.current=setTimeout(()=>{x(!1)},500))},F=T.view.dom;return F.addEventListener("keydown",z),()=>{F.removeEventListener("keydown",z),k.current&&clearTimeout(k.current)}},[T,D]),N.useEffect(()=>{if(T&&D){const B=()=>{y(!0)},z=()=>{y(!1)};return T.on("focus",B),T.on("blur",z),()=>{T.off("focus",B),T.off("blur",z)}}},[D,T]),N.useEffect(()=>{if(!T)return;const B=F=>{F.key==="Enter"&&T.commands.scrollIntoView()},z=T.view.dom;return z.addEventListener("keydown",B),()=>{z.removeEventListener("keydown",B)}},[T]),N.useEffect(()=>{if(!D||!T)return;const B=()=>{R.current&&R.current.scrollIntoView()},z=T.view.dom;return z.addEventListener("resize",B),()=>{z.removeEventListener("resize",B)}},[T,R,D]),T?O.jsxs("div",{"data-cy":"single-webpage",className:"bg-[#f8f9fa] h-full w-full",children:[O.jsx("div",{id:"toolbar",className:"flex items-center w-full h-16 sticky left-0 top-0 z-10 px-4 bg-[#f8f9fa]",children:O.jsxs("div",{className:"flex items-center justify-between gap-2 w-full",children:[O.jsx("div",{className:"grow",children:o==null?void 0:o({editor:T.getJSON()})}),!t&&O.jsx("div",{className:"grow relative hidden xl:block",children:O.jsx(p$,{onError:g,editor:T})}),s==null?void 0:s({editor:T.getJSON()})]})}),O.jsxs("div",{className:"p-4 sm:px-[88px] sm:py-[78px] bg-white w-full sm:w-[70%] max-w-[856px] mx-auto",style:{height:D?"calc(100vh - 8rem)":"100vh"},children:[O.jsxs("div",{ref:R,className:"w-full h-full overflow-y-scroll overflow-x-hidden no-scrollbar",children:[!t&&O.jsxs("div",{children:[O.jsx(s$,{editor:T}),O.jsx(d$,{editor:T,appendTo:R})]}),O.jsx(h$,{isPreviewMode:t,children:O.jsx(_U,{editor:T,id:"editor",className:"w-full h-full py-4"})})]}),h&&!D&&O.jsx(Lo,{ref:S,onClick:()=>{d==null||d(T)},variant:"ghost",className:ve("absolute w-12 h-12 bg-white rounded-full shadow-xl top-[70px] right-[-23px]"),children:O.jsx(rV,{})})]}),!t&&O.jsx(_fe,{children:!A&&!m&&O.jsx(kfe.div,{initial:{y:50,opacity:0},animate:{y:0,opacity:1},exit:{y:50,opacity:0},transition:{duration:.2},className:ve("flex xl:hidden items-center w-full h-16 fixed left-0 bottom-0 z-10 px-4 bg-[#f8f9fa] transition-all duration-300 ease-in-out",v&&"hidden"),children:O.jsx(dae,{onError:g,editor:T,isKeyboardVisible:v})})})]}):O.jsxs("div",{className:"w-screen h-screen flex flex-col gap-4 justify-center items-center",children:[O.jsx(JO,{}),O.jsx("p",{children:"Loading Editor..."})]})});ot.DdocEditor=Pfe,Object.defineProperty(ot,Symbol.toStringTag,{value:"Module"})});
528
+ */ib.exports,function(t,e){(function(){var n={function:!0,object:!0},r=n[typeof window]&&window||this,i=e,s=t&&!t.nodeType&&t,o=i&&s&&typeof An=="object"&&An;o&&(o.global===o||o.window===o||o.self===o)&&(r=o);var a=Math.pow(2,53)-1,l=/\bOpera/,u=Object.prototype,c=u.hasOwnProperty,f=u.toString;function d(E){return E=String(E),E.charAt(0).toUpperCase()+E.slice(1)}function h(E,D,T){var R={"10.0":"10","6.4":"10 Technical Preview","6.3":"8.1","6.2":"8","6.1":"Server 2008 R2 / 7","6.0":"Server 2008 / Vista","5.2":"Server 2003 / XP 64-bit","5.1":"XP","5.01":"2000 SP1","5.0":"2000","4.0":"NT","4.90":"ME"};return D&&T&&/^Win/i.test(E)&&!/^Windows Phone /i.test(E)&&(R=R[/[\d.]+$/.exec(E)])&&(E="Windows "+R),E=String(E),D&&T&&(E=E.replace(RegExp(D,"i"),T)),E=m(E.replace(/ ce$/i," CE").replace(/\bhpw/i,"web").replace(/\bMacintosh\b/,"Mac OS").replace(/_PowerPC\b/i," OS").replace(/\b(OS X) [^ \d]+/i,"$1").replace(/\bMac (OS X)\b/,"$1").replace(/\/(\d)/," $1").replace(/_/g,".").replace(/(?: BePC|[ .]*fc[ \d.]+)$/i,"").replace(/\bx86\.64\b/gi,"x86_64").replace(/\b(Windows Phone) OS\b/,"$1").replace(/\b(Chrome OS \w+) [\d.]+\b/,"$1").split(" on ")[0]),E}function p(E,D){var T=-1,R=E?E.length:0;if(typeof R=="number"&&R>-1&&R<=a)for(;++T<R;)D(E[T],T,E);else g(E,D)}function m(E){return E=x(E),/^(?:webOS|i(?:OS|P))/.test(E)?E:d(E)}function g(E,D){for(var T in E)c.call(E,T)&&D(E[T],T,E)}function b(E){return E==null?d(E):f.call(E).slice(8,-1)}function v(E,D){var T=E!=null?typeof E[D]:"number";return!/^(?:boolean|number|string|undefined)$/.test(T)&&(T=="object"?!!E[D]:!0)}function y(E){return String(E).replace(/([ -])(?!$)/g,"$1?")}function A(E,D){var T=null;return p(E,function(R,L){T=D(T,R,L,E)}),T}function x(E){return String(E).replace(/^ +| +$/g,"")}function k(E){var D=r,T=E&&typeof E=="object"&&b(E)!="String";T&&(D=E,E=null);var R=D.navigator||{},L=R.userAgent||"";E||(E=L);var B=T?!!R.likeChrome:/\bChrome\b/.test(E)&&!/internal|\n/i.test(f.toString()),z="Object",F=T?z:"ScriptBridgingProxyObject",$=T?z:"Environment",Y=T&&D.java?"JavaPackage":b(D.java),ie=T?z:"RuntimeObject",ee=/\bJava/.test(Y)&&D.java,Ae=ee&&b(D.environment)==$,Me=ee?"a":"α",Be=ee?"b":"β",_e=D.document||{},Ee=D.operamini||D.opera,Ue=l.test(Ue=T&&Ee?Ee["[[Class]]"]:b(Ee))?Ue:Ee=null,H,Ve=E,me=[],Ke=null,fe=E==L,oe=fe&&Ee&&typeof Ee.version=="function"&&Ee.version(),de,ae=pe([{label:"EdgeHTML",pattern:"Edge"},"Trident",{label:"WebKit",pattern:"AppleWebKit"},"iCab","Presto","NetFront","Tasman","KHTML","Gecko"]),te=w(["Adobe AIR","Arora","Avant Browser","Breach","Camino","Electron","Epiphany","Fennec","Flock","Galeon","GreenBrowser","iCab","Iceweasel","K-Meleon","Konqueror","Lunascape","Maxthon",{label:"Microsoft Edge",pattern:"(?:Edge|Edg|EdgA|EdgiOS)"},"Midori","Nook Browser","PaleMoon","PhantomJS","Raven","Rekonq","RockMelt",{label:"Samsung Internet",pattern:"SamsungBrowser"},"SeaMonkey",{label:"Silk",pattern:"(?:Cloud9|Silk-Accelerated)"},"Sleipnir","SlimBrowser",{label:"SRWare Iron",pattern:"Iron"},"Sunrise","Swiftfox","Vivaldi","Waterfox","WebPositive",{label:"Yandex Browser",pattern:"YaBrowser"},{label:"UC Browser",pattern:"UCBrowser"},"Opera Mini",{label:"Opera Mini",pattern:"OPiOS"},"Opera",{label:"Opera",pattern:"OPR"},"Chromium","Chrome",{label:"Chrome",pattern:"(?:HeadlessChrome)"},{label:"Chrome Mobile",pattern:"(?:CriOS|CrMo)"},{label:"Firefox",pattern:"(?:Firefox|Minefield)"},{label:"Firefox for iOS",pattern:"FxiOS"},{label:"IE",pattern:"IEMobile"},{label:"IE",pattern:"MSIE"},"Safari"]),j=_([{label:"BlackBerry",pattern:"BB10"},"BlackBerry",{label:"Galaxy S",pattern:"GT-I9000"},{label:"Galaxy S2",pattern:"GT-I9100"},{label:"Galaxy S3",pattern:"GT-I9300"},{label:"Galaxy S4",pattern:"GT-I9500"},{label:"Galaxy S5",pattern:"SM-G900"},{label:"Galaxy S6",pattern:"SM-G920"},{label:"Galaxy S6 Edge",pattern:"SM-G925"},{label:"Galaxy S7",pattern:"SM-G930"},{label:"Galaxy S7 Edge",pattern:"SM-G935"},"Google TV","Lumia","iPad","iPod","iPhone","Kindle",{label:"Kindle Fire",pattern:"(?:Cloud9|Silk-Accelerated)"},"Nexus","Nook","PlayBook","PlayStation Vita","PlayStation","TouchPad","Transformer",{label:"Wii U",pattern:"WiiU"},"Wii","Xbox One",{label:"Xbox 360",pattern:"Xbox"},"Xoom"]),q=P({Apple:{iPad:1,iPhone:1,iPod:1},Alcatel:{},Archos:{},Amazon:{Kindle:1,"Kindle Fire":1},Asus:{Transformer:1},"Barnes & Noble":{Nook:1},BlackBerry:{PlayBook:1},Google:{"Google TV":1,Nexus:1},HP:{TouchPad:1},HTC:{},Huawei:{},Lenovo:{},LG:{},Microsoft:{Xbox:1,"Xbox One":1},Motorola:{Xoom:1},Nintendo:{"Wii U":1,Wii:1},Nokia:{Lumia:1},Oppo:{},Samsung:{"Galaxy S":1,"Galaxy S2":1,"Galaxy S3":1,"Galaxy S4":1},Sony:{PlayStation:1,"PlayStation Vita":1},Xiaomi:{Mi:1,Redmi:1}}),K=C(["Windows Phone","KaiOS","Android","CentOS",{label:"Chrome OS",pattern:"CrOS"},"Debian",{label:"DragonFly BSD",pattern:"DragonFly"},"Fedora","FreeBSD","Gentoo","Haiku","Kubuntu","Linux Mint","OpenBSD","Red Hat","SuSE","Ubuntu","Xubuntu","Cygwin","Symbian OS","hpwOS","webOS ","webOS","Tablet OS","Tizen","Linux","Mac OS X","Macintosh","Mac","Windows 98;","Windows "]);function pe(he){return A(he,function(ye,ke){return ye||RegExp("\\b"+(ke.pattern||y(ke))+"\\b","i").exec(E)&&(ke.label||ke)})}function P(he){return A(he,function(ye,ke,Ne){return ye||(ke[j]||ke[/^[a-z]+(?: +[a-z]+\b)*/i.exec(j)]||RegExp("\\b"+y(Ne)+"(?:\\b|\\w*\\d)","i").exec(E))&&Ne})}function w(he){return A(he,function(ye,ke){return ye||RegExp("\\b"+(ke.pattern||y(ke))+"\\b","i").exec(E)&&(ke.label||ke)})}function C(he){return A(he,function(ye,ke){var Ne=ke.pattern||y(ke);return!ye&&(ye=RegExp("\\b"+Ne+"(?:/[\\d.]+|[ \\w.]*)","i").exec(E))&&(ye=h(ye,Ne,ke.label||ke)),ye})}function _(he){return A(he,function(ye,ke){var Ne=ke.pattern||y(ke);return!ye&&(ye=RegExp("\\b"+Ne+" *\\d+[.\\w_]*","i").exec(E)||RegExp("\\b"+Ne+" *\\w+-[\\w]*","i").exec(E)||RegExp("\\b"+Ne+"(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)","i").exec(E))&&((ye=String(ke.label&&!RegExp(Ne,"i").test(ke.label)?ke.label:ye).split("/"))[1]&&!/[\d.]+/.test(ye[0])&&(ye[0]+=" "+ye[1]),ke=ke.label||ke,ye=m(ye[0].replace(RegExp(Ne,"i"),ke).replace(RegExp("; *(?:"+ke+"[_-])?","i")," ").replace(RegExp("("+ke+")[-_.]?(\\w)","i"),"$1 $2"))),ye})}function U(he){return A(he,function(ye,ke){return ye||(RegExp(ke+"(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)","i").exec(E)||0)[1]||null})}function Q(){return this.description||""}if(ae&&(ae=[ae]),/\bAndroid\b/.test(K)&&!j&&(H=/\bAndroid[^;]*;(.*?)(?:Build|\) AppleWebKit)\b/i.exec(E))&&(j=x(H[1]).replace(/^[a-z]{2}-[a-z]{2};\s*/i,"")||null),q&&!j?j=_([q]):q&&j&&(j=j.replace(RegExp("^("+y(q)+")[-_.\\s]","i"),q+" ").replace(RegExp("^("+y(q)+")[-_.]?(\\w)","i"),q+" $2")),(H=/\bGoogle TV\b/.exec(j))&&(j=H[0]),/\bSimulator\b/i.test(E)&&(j=(j?j+" ":"")+"Simulator"),te=="Opera Mini"&&/\bOPiOS\b/.test(E)&&me.push("running in Turbo/Uncompressed mode"),te=="IE"&&/\blike iPhone OS\b/.test(E)?(H=k(E.replace(/like iPhone OS/,"")),q=H.manufacturer,j=H.product):/^iP/.test(j)?(te||(te="Safari"),K="iOS"+((H=/ OS ([\d_]+)/i.exec(E))?" "+H[1].replace(/_/g,"."):"")):te=="Konqueror"&&/^Linux\b/i.test(K)?K="Kubuntu":q&&q!="Google"&&(/Chrome/.test(te)&&!/\bMobile Safari\b/i.test(E)||/\bVita\b/.test(j))||/\bAndroid\b/.test(K)&&/^Chrome/.test(te)&&/\bVersion\//i.test(E)?(te="Android Browser",K=/\bAndroid\b/.test(K)?K:"Android"):te=="Silk"?(/\bMobi/i.test(E)||(K="Android",me.unshift("desktop mode")),/Accelerated *= *true/i.test(E)&&me.unshift("accelerated")):te=="UC Browser"&&/\bUCWEB\b/.test(E)?me.push("speed mode"):te=="PaleMoon"&&(H=/\bFirefox\/([\d.]+)\b/.exec(E))?me.push("identifying as Firefox "+H[1]):te=="Firefox"&&(H=/\b(Mobile|Tablet|TV)\b/i.exec(E))?(K||(K="Firefox OS"),j||(j=H[1])):!te||(H=!/\bMinefield\b/i.test(E)&&/\b(?:Firefox|Safari)\b/.exec(te))?(te&&!j&&/[\/,]|^[^(]+?\)/.test(E.slice(E.indexOf(H+"/")+8))&&(te=null),(H=j||q||K)&&(j||q||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(K))&&(te=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(K)?K:H)+" Browser")):te=="Electron"&&(H=(/\bChrome\/([\d.]+)\b/.exec(E)||0)[1])&&me.push("Chromium "+H),oe||(oe=U(["(?:Cloud9|CriOS|CrMo|Edge|Edg|EdgA|EdgiOS|FxiOS|HeadlessChrome|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$)|UCBrowser|YaBrowser)","Version",y(te),"(?:Firefox|Minefield|NetFront)"])),(H=ae=="iCab"&&parseFloat(oe)>3&&"WebKit"||/\bOpera\b/.test(te)&&(/\bOPR\b/.test(E)?"Blink":"Presto")||/\b(?:Midori|Nook|Safari)\b/i.test(E)&&!/^(?:Trident|EdgeHTML)$/.test(ae)&&"WebKit"||!ae&&/\bMSIE\b/i.test(E)&&(K=="Mac OS"?"Tasman":"Trident")||ae=="WebKit"&&/\bPlayStation\b(?! Vita\b)/i.test(te)&&"NetFront")&&(ae=[H]),te=="IE"&&(H=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(E)||0)[1])?(te+=" Mobile",K="Windows Phone "+(/\+$/.test(H)?H:H+".x"),me.unshift("desktop mode")):/\bWPDesktop\b/i.test(E)?(te="IE Mobile",K="Windows Phone 8.x",me.unshift("desktop mode"),oe||(oe=(/\brv:([\d.]+)/.exec(E)||0)[1])):te!="IE"&&ae=="Trident"&&(H=/\brv:([\d.]+)/.exec(E))&&(te&&me.push("identifying as "+te+(oe?" "+oe:"")),te="IE",oe=H[1]),fe){if(v(D,"global"))if(ee&&(H=ee.lang.System,Ve=H.getProperty("os.arch"),K=K||H.getProperty("os.name")+" "+H.getProperty("os.version")),Ae){try{oe=D.require("ringo/engine").version.join("."),te="RingoJS"}catch{(H=D.system)&&H.global.system==D.system&&(te="Narwhal",K||(K=H[0].os||null))}te||(te="Rhino")}else typeof D.process=="object"&&!D.process.browser&&(H=D.process)&&(typeof H.versions=="object"&&(typeof H.versions.electron=="string"?(me.push("Node "+H.versions.node),te="Electron",oe=H.versions.electron):typeof H.versions.nw=="string"&&(me.push("Chromium "+oe,"Node "+H.versions.node),te="NW.js",oe=H.versions.nw)),te||(te="Node.js",Ve=H.arch,K=H.platform,oe=/[\d.]+/.exec(H.version),oe=oe?oe[0]:null));else b(H=D.runtime)==F?(te="Adobe AIR",K=H.flash.system.Capabilities.os):b(H=D.phantom)==ie?(te="PhantomJS",oe=(H=H.version||null)&&H.major+"."+H.minor+"."+H.patch):typeof _e.documentMode=="number"&&(H=/\bTrident\/(\d+)/i.exec(E))?(oe=[oe,_e.documentMode],(H=+H[1]+4)!=oe[1]&&(me.push("IE "+oe[1]+" mode"),ae&&(ae[1]=""),oe[1]=H),oe=te=="IE"?String(oe[1].toFixed(1)):oe[0]):typeof _e.documentMode=="number"&&/^(?:Chrome|Firefox)\b/.test(te)&&(me.push("masking as "+te+" "+oe),te="IE",oe="11.0",ae=["Trident"],K="Windows");K=K&&m(K)}if(oe&&(H=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(oe)||/(?:alpha|beta)(?: ?\d)?/i.exec(E+";"+(fe&&R.appMinorVersion))||/\bMinefield\b/i.test(E)&&"a")&&(Ke=/b/i.test(H)?"beta":"alpha",oe=oe.replace(RegExp(H+"\\+?$"),"")+(Ke=="beta"?Be:Me)+(/\d+\+?/.exec(H)||"")),te=="Fennec"||te=="Firefox"&&/\b(?:Android|Firefox OS|KaiOS)\b/.test(K))te="Firefox Mobile";else if(te=="Maxthon"&&oe)oe=oe.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(j))j=="Xbox 360"&&(K=null),j=="Xbox 360"&&/\bIEMobile\b/.test(E)&&me.unshift("mobile mode");else if((/^(?:Chrome|IE|Opera)$/.test(te)||te&&!j&&!/Browser|Mobi/.test(te))&&(K=="Windows CE"||/Mobi/i.test(E)))te+=" Mobile";else if(te=="IE"&&fe)try{D.external===null&&me.unshift("platform preview")}catch{me.unshift("embedded")}else(/\bBlackBerry\b/.test(j)||/\bBB10\b/.test(E))&&(H=(RegExp(j.replace(/ +/g," *")+"/([.\\d]+)","i").exec(E)||0)[1]||oe)?(H=[H,/BB10/.test(E)],K=(H[1]?(j=null,q="BlackBerry"):"Device Software")+" "+H[0],oe=null):this!=g&&j!="Wii"&&(fe&&Ee||/Opera/.test(te)&&/\b(?:MSIE|Firefox)\b/i.test(E)||te=="Firefox"&&/\bOS X (?:\d+\.){2,}/.test(K)||te=="IE"&&(K&&!/^Win/.test(K)&&oe>5.5||/\bWindows XP\b/.test(K)&&oe>8||oe==8&&!/\bTrident\b/.test(E)))&&!l.test(H=k.call(g,E.replace(l,"")+";"))&&H.name&&(H="ing as "+H.name+((H=H.version)?" "+H:""),l.test(te)?(/\bIE\b/.test(H)&&K=="Mac OS"&&(K=null),H="identify"+H):(H="mask"+H,Ue?te=m(Ue.replace(/([a-z])([A-Z])/g,"$1 $2")):te="Opera",/\bIE\b/.test(H)&&(K=null),fe||(oe=null)),ae=["Presto"],me.push(H));(H=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(E)||0)[1])&&(H=[parseFloat(H.replace(/\.(\d)$/,".0$1")),H],te=="Safari"&&H[1].slice(-1)=="+"?(te="WebKit Nightly",Ke="alpha",oe=H[1].slice(0,-1)):(oe==H[1]||oe==(H[2]=(/\bSafari\/([\d.]+\+?)/i.exec(E)||0)[1]))&&(oe=null),H[1]=(/\b(?:Headless)?Chrome\/([\d.]+)/i.exec(E)||0)[1],H[0]==537.36&&H[2]==537.36&&parseFloat(H[1])>=28&&ae=="WebKit"&&(ae=["Blink"]),!fe||!B&&!H[1]?(ae&&(ae[1]="like Safari"),H=(H=H[0],H<400?1:H<500?2:H<526?3:H<533?4:H<534?"4+":H<535?5:H<537?6:H<538?7:H<601?8:H<602?9:H<604?10:H<606?11:H<608?12:"12")):(ae&&(ae[1]="like Chrome"),H=H[1]||(H=H[0],H<530?1:H<532?2:H<532.05?3:H<533?4:H<534.03?5:H<534.07?6:H<534.1?7:H<534.13?8:H<534.16?9:H<534.24?10:H<534.3?11:H<535.01?12:H<535.02?"13+":H<535.07?15:H<535.11?16:H<535.19?17:H<536.05?18:H<536.1?19:H<537.01?20:H<537.11?"21+":H<537.13?23:H<537.18?24:H<537.24?25:H<537.36?26:ae!="Blink"?"27":"28")),ae&&(ae[1]+=" "+(H+=typeof H=="number"?".x":/[.+]/.test(H)?"":"+")),te=="Safari"&&(!oe||parseInt(oe)>45)?oe=H:te=="Chrome"&&/\bHeadlessChrome/i.test(E)&&me.unshift("headless")),te=="Opera"&&(H=/\bzbov|zvav$/.exec(K))?(te+=" ",me.unshift("desktop mode"),H=="zvav"?(te+="Mini",oe=null):te+="Mobile",K=K.replace(RegExp(" *"+H+"$"),"")):te=="Safari"&&/\bChrome\b/.exec(ae&&ae[1])?(me.unshift("desktop mode"),te="Chrome Mobile",oe=null,/\bOS X\b/.test(K)?(q="Apple",K="iOS 4.3+"):K=null):/\bSRWare Iron\b/.test(te)&&!oe&&(oe=U("Chrome")),oe&&oe.indexOf(H=/[\d.]+$/.exec(K))==0&&E.indexOf("/"+H+"-")>-1&&(K=x(K.replace(H,""))),K&&K.indexOf(te)!=-1&&!RegExp(te+" OS").test(K)&&(K=K.replace(RegExp(" *"+y(te)+" *"),"")),ae&&!/\b(?:Avant|Nook)\b/.test(te)&&(/Browser|Lunascape|Maxthon/.test(te)||te!="Safari"&&/^iOS/.test(K)&&/\bSafari\b/.test(ae[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|SRWare Iron|Vivaldi|Web)/.test(te)&&ae[1])&&(H=ae[ae.length-1])&&me.push(H),me.length&&(me=["("+me.join("; ")+")"]),q&&j&&j.indexOf(q)<0&&me.push("on "+q),j&&me.push((/^on /.test(me[me.length-1])?"":"on ")+j),K&&(H=/ ([\d.+]+)$/.exec(K),de=H&&K.charAt(K.length-H[0].length-1)=="/",K={architecture:32,family:H&&!de?K.replace(H[0],""):K,version:H?H[1]:null,toString:function(){var he=this.version;return this.family+(he&&!de?" "+he:"")+(this.architecture==64?" 64-bit":"")}}),(H=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(Ve))&&!/\bi686\b/i.test(Ve)?(K&&(K.architecture=64,K.family=K.family.replace(RegExp(" *"+H),"")),te&&(/\bWOW64\b/i.test(E)||fe&&/\w(?:86|32)$/.test(R.cpuClass||R.platform)&&!/\bWin64; x64\b/i.test(E))&&me.unshift("32-bit")):K&&/^OS X/.test(K.family)&&te=="Chrome"&&parseFloat(oe)>=39&&(K.architecture=64),E||(E=null);var X={};return X.description=E,X.layout=ae&&ae[0],X.manufacturer=q,X.name=te,X.prerelease=Ke,X.product=j,X.ua=E,X.version=te&&oe,X.os=K||{architecture:null,family:null,version:null,toString:function(){return"null"}},X.parse=k,X.toString=Q,X.version&&me.unshift(oe),X.name&&me.unshift(te),K&&te&&!(K==String(K).split(" ")[0]&&(K==te.split(" ")[0]||j))&&me.push(j?"("+K+")":"on "+K),me.length&&(X.description=me.join(" ")),X}var S=k();i&&s?g(S,function(E,D){i[D]=E}):r.platform=S}).call(An)}(ib,ib.exports);var Nfe=ib.exports;const Rfe=Yf(Nfe),zk=()=>{var t;return(t=Rfe.os)==null?void 0:t.family},Pfe=N.forwardRef(({isPreviewMode:t=!1,initialContent:e,enableCollaboration:n,collaborationId:r,username:i,renderToolRightSection:s,renderToolLeftSection:o,walletAddress:a,onChange:l,onCollaboratorChange:u,onTextSelection:c,onCommentInteraction:f,handleCommentButtonClick:d,showCommentButton:h,ensResolutionUrl:p,disableBottomToolbar:m,onError:g},b)=>{const[v,y]=N.useState(!1),[A,x]=N.useState(!1),k=N.useRef(null),S=N.useRef(null),E=B2("(max-width: 640px)"),D=zk()==="iOS"||zk()==="Android"||zk()==="Windows Phone"||E,{editor:T,ref:R,ydoc:L}=cae({isPreviewMode:t,initialContent:e,enableCollaboration:n,collaborationId:r,walletAddress:a,username:i,onChange:l,onCollaboratorChange:u,onCommentInteraction:f,onTextSelection:c,ensResolutionUrl:p,onError:g});return N.useImperativeHandle(b,()=>({getEditor:()=>T,getYdoc:()=>L}),[T,L]),N.useEffect(()=>{if(!T)return;const B=$=>{const{key:Y}=$;return Y.length===1},z=$=>{B($)&&D&&(k.current&&clearTimeout(k.current),x(!0),k.current=setTimeout(()=>{x(!1)},500))},F=T.view.dom;return F.addEventListener("keydown",z),()=>{F.removeEventListener("keydown",z),k.current&&clearTimeout(k.current)}},[T,D]),N.useEffect(()=>{if(T&&D){const B=()=>{y(!0)},z=()=>{y(!1)};return T.on("focus",B),T.on("blur",z),()=>{T.off("focus",B),T.off("blur",z)}}},[D,T]),N.useEffect(()=>{if(!T)return;const B=F=>{F.key==="Enter"&&T.commands.scrollIntoView()},z=T.view.dom;return z.addEventListener("keydown",B),()=>{z.removeEventListener("keydown",B)}},[T]),N.useEffect(()=>{if(!D||!T)return;const B=()=>{R.current&&R.current.scrollIntoView()},z=T.view.dom;return z.addEventListener("resize",B),()=>{z.removeEventListener("resize",B)}},[T,R,D]),T?O.jsxs("div",{"data-cy":"single-webpage",className:"bg-[#f8f9fa] h-full w-full",children:[O.jsx("div",{id:"toolbar",className:"flex items-center w-full h-16 sticky left-0 top-0 z-10 px-4 bg-[#f8f9fa]",children:O.jsxs("div",{className:"flex items-center justify-between gap-2 w-full",children:[O.jsx("div",{className:"grow",children:o==null?void 0:o({editor:T.getJSON()})}),!t&&O.jsx("div",{className:"grow relative hidden xl:block",children:O.jsx(p$,{onError:g,editor:T})}),s==null?void 0:s({editor:T.getJSON()})]})}),O.jsxs("div",{className:"p-4 sm:px-[88px] sm:py-[78px] bg-white w-full sm:w-[70%] max-w-[856px] mx-auto",style:{height:D&&!t?"calc(100vh - 8rem)":"100vh"},children:[O.jsxs("div",{ref:R,className:"w-full h-full overflow-y-scroll overflow-x-hidden no-scrollbar",children:[!t&&O.jsxs("div",{children:[O.jsx(s$,{editor:T}),O.jsx(d$,{editor:T,appendTo:R})]}),O.jsx(h$,{isPreviewMode:t,children:O.jsx(_U,{editor:T,id:"editor",className:"w-full h-full py-4"})})]}),h&&!D&&O.jsx(Lo,{ref:S,onClick:()=>{d==null||d(T)},variant:"ghost",className:ve("absolute w-12 h-12 bg-white rounded-full shadow-xl top-[70px] right-[-23px]"),children:O.jsx(rV,{})})]}),!t&&O.jsx(_fe,{children:!A&&!m&&O.jsx(kfe.div,{initial:{y:50,opacity:0},animate:{y:0,opacity:1},exit:{y:50,opacity:0},transition:{duration:.2},className:ve("flex xl:hidden items-center w-full h-16 fixed left-0 bottom-0 z-10 px-4 bg-[#f8f9fa] transition-all duration-300 ease-in-out",v&&"hidden"),children:O.jsx(dae,{onError:g,editor:T,isKeyboardVisible:v})})})]}):O.jsxs("div",{className:"w-screen h-screen flex flex-col gap-4 justify-center items-center",children:[O.jsx(JO,{}),O.jsx("p",{children:"Loading Editor..."})]})});ot.DdocEditor=Pfe,Object.defineProperty(ot,Symbol.toStringTag,{value:"Module"})});
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@fileverse-dev/ddoc",
3
3
  "private": false,
4
4
  "description": "DDoc",
5
- "version": "1.7.6-patch-1",
5
+ "version": "1.7.6-patch-2",
6
6
  "main": "dist/index.umd.js",
7
7
  "module": "dist/index.es.js",
8
8
  "exports": {