{"version":3,"sources":["PNotifyDesktop.js"],"names":["PNotify","permission","notify","title","options","onclick","onclose","window","notice","Notification","addEventListener","navigator","mozNotification","createNotification","body","this","get","show","webkitNotifications","data","Object","assign","_notice","_options","modules","Desktop","defaults","methods","[object Object]","set","observe","value","_animatingClass","_oldAnimation","oldValue","undefined","checkPermission","animation","addModuleClass","genNotice","autoDisplay","removeModuleClass","_moduleIsNoticeOpen","close","_icon","tag","_tag","Math","round","random","requireInteraction","icon","apply","desktopNotice","fire","target","_desktop","cancel","setup","Component","key","desktop","fallback","text","init","document","requestPermission","add_css","style","createElement","id","textContent","appendNode","head","create_main_fragment","state","component","c","noop","m","p","u","d","PNotifyDesktop","_state","getElementById","_fragment","anchor","name","node","appendChild","_observers","pre","blankObject","post","_handlers","_bind","root","store","k","source","i","len","arguments","length","destroy","detach","eventName","handlers","slice","call","callback","group","defer","push","__calling","index","indexOf","splice","on","handler","newState","_set","_lock","callAll","_beforecreate","_oncreate","_aftercreate","oldState","changed","dirty","_differs","_recompute","dispatchObservers","_mount","_unmount","a","b","create","fns","shift","newValue","callbacks","prototype","teardown"],"mappings":"OACOA,YAAa,eAEpB,IAAIC,WAEAC,OAAS,CAACC,EAAOC,EAASC,EAASC,KAGnCJ,OADE,iBAAkBK,OACX,CAACJ,EAAOC,EAASC,EAASC,KACjC,MAAME,EAAS,IAAIC,aAAaN,EAAOC,GAWvC,MAVI,sBAAuBG,QACzBC,EAAOE,iBAAiB,oBAAqBL,GAC7CG,EAAOE,iBAAiB,QAASJ,IACxB,qBAAsBE,GAC/BA,EAAOE,iBAAiB,QAASL,GACjCG,EAAOE,iBAAiB,QAASJ,KAEjCE,EAAOH,QAAUA,EACjBG,EAAOF,QAAUA,GAEZE,GAEA,oBAAqBG,UACrB,CAACR,EAAOC,EAASC,EAASC,KAEjC,MAAME,EAASG,UAAUC,gBACtBC,mBAAmBV,EAAOC,EAAQU,KAAMC,KAAKC,IAAI,SACjDC,OAGH,OAFAT,EAAOH,QAAUA,EAC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